Questions tagged [glassfish]

GlassFish is an open-source application server project for the Java EE platform.

Filter by
Sorted by
Tagged with
0 votes
1 answer
65 views

Switching glassfish 2.x to 3.1.1

So I am managing a old java project that is using glassfish 2.x. Seems like netbeans does not support 2.x versions any more, so I want to change it to 3.1.1. How to properly make that change? I have ...
1 vote
1 answer
470 views

Windows server 2008/glassfish/postgres proxy timeout HTTP idle after 120 seconds

Environment: Windows 2008 Server Edition Netbeans 6.7.1 Glassfish 2.1 Apache 2.2.15 for win32 Original problem (almost fixed): The HTTP/1.1 GET method to send data fails if I wait for more than ...
0 votes
1 answer
4k views

Install Tomcat on Linux server

I am trying to install Tomcat on my linux server .Once I had installed glassfish and already working with it . I successfully installed tomcat7 to my server but when I request the machine url : 8081 (...
1 vote
1 answer
899 views

Glassfish v3 failure when startup. "Cannot allocate memory "

It is clear in this Question https://serverfault.com/questions/210275/fail-to-start-glassfish-3-1-java-io-ioexception-error-12-cannot-allocate-mem But in my case,I have a 512M memory Ubuntu 10.04 ...
1 vote
1 answer
1k views

How can I set up port forwarding for GlassFish on Windows Server 2008 and IIS7?

I bought a Windows Server 2008 and installed GlassFish, Java, PostgreSQL etc. Now my website is running on localhost:8080 in the GlassFish server. How can I set up a port forwarding such that when a ...
10 votes
4 answers
21k views

JBOSS App Server vs. Glassfish

I'm quite newbie on Glassfish. What are some differences between JBoss and Glassfish? Why would you chooose one over the other. I'm trying to read up on Glassfish, but it is really hard to pinpoint ...
0 votes
1 answer
5k views

apache mod_jk loadbalancing issue for glassfish cluster instances

I have a JEE ear application deployed on 2 clusters with 2 instances each on Glassfish v3.1. These are load balanced by an Apache server running on the same machine. My problem is that I am frequently ...
1 vote
0 answers
730 views

How to handle serlvet login redirects which cross reverse proxy virtual host boundary

I'm trying to setup the GlassFish application server behind an Apache reverse proxy. I've got it working with both port 80 and 443, but the problem is the transition between the two that occurs when ...
2 votes
1 answer
2k views

How to construct SELinux rules for a Glassfish server

I'm running Glassfish 3.1 on a CentOS 6 solution and by default SELinux is enabled. I have installed Sun's JDK version 1.6.0_29 on the server and extracted the Glassfish 3.1.1 to /opt/glassfish-3.1.1 ...
0 votes
1 answer
973 views

Error starting glassfish on port 80 on Ubuntu

I'm having some trouble starting Glassfish on port 80 - doing so yields the following error: 0.0.0.0:80: initialize: name or service not known Any tips?
1 vote
1 answer
2k views

setting up workers.properties file for mod_jk

I'm trying to create a workers.properties file to get mod_jk communicating with Apache webserver 2.2.x. The GlassFish 3.1 Administration Document includes the following example for worker.properties: ...
1 vote
1 answer
794 views

Glassfish admin page login

I have no idea what is going on here. Installed glassfish 3.1.1 onto my windows server, created domain (with admin and password) during the installation phase, everything seems to have went smoothly. ...
0 votes
1 answer
580 views

Glassfish 3 Cluster and Local init scripts

I'm trying to set-up a Glassfish 3.1.1 Cluster for testing purposes. Currently, I've got 2 hosts with Glassfish 3.1.1 installed. I've set-up a DAS domain on host1, and followed this guide to create ...
0 votes
1 answer
533 views

Putting varnish in front of a mod_jk balanced Glassfish cluster

I am just trying to get varnish in front of Glassfish instances, which are load balanced with the mod_jk connector in Apache. But I don't really know how to combine them. The AJP_Ports for instances ...
1 vote
1 answer
763 views

Reverse Proxy and Java Application Server Security

Is it possible to have the reverse proxy (Apache HTTP 2.2) handle authentication (HTTP Basic) and then still use the container managed security of the Java application server (GlassFish 3.1 or JBoss 7....
1 vote
1 answer
4k views

Apache / Glassfish integration

So I currently have a glassfish 3.1 server and an apache 2.2 server running on a single box. However I am trying to figure out to route some traffic through the apache server to the glassfish server ...
0 votes
1 answer
503 views

Glassfish Daemon with Apache and Mod_proxy

I am trying to setup an ubuntu web server which utilizes both Apache's httpd web server for some content and glassfish for Java-based applications. I figured I would use mod_proxy as I've had luck ...
2 votes
0 answers
1k views

Uninstall Glassfish and metro completely

I thought of updating my Glassfish server from 2.1 to 3.1.1 in a Linux machine. I downloaded the .ZIP package. However during uninstalling of Glassfish v2.1 I did not find the uninstall.sh file in "...
1 vote
2 answers
585 views

Why's Glassfish so laggy at times?

I've got GlassFish running as a service on a Windows Server (2008 R2). If you're actively using GlassFish, it stays nice and fast. However, if you go away and don't use it for several minutes, when ...
1 vote
2 answers
617 views

Application Server vs. Web Server?

I asked my teacher in class that Java Server Faces will work on Apache Tomcat. But he then corrected me saying that Tomcat is a Web Server not an Application Server, hence it will not run Java Server ...
2 votes
1 answer
715 views

What can I do to collect usage statistics for a local web application deployed on Glassfish behind Apache?

I have an application running in Glassfish v2.1 which does not have access to the outside world, so I cannot use Google Analytics or something else that has to phone home. It needs to be local to our ...
-1 votes
1 answer
1k views

GlassFish v2.1 -- getting Application Client and Eclipselink to work together?

We are trying to use Eclipselink 1.1 with Glassfish v2.1. Following the instructions on: http://wiki.glassfish.java.net/Wiki.jsp?page=FaqEclipseLinkGlassFishV2 I adapted the instructions for the ...
0 votes
1 answer
826 views

how to workaround glassfish 3.0.1 admin page slow startup?

I've installed netbeans which comes with glassfish. i just got a book about glassfish and i wanted to try.the first surprise is the time it took to the admin page to load. i've found on serverfault ...
0 votes
1 answer
422 views

What is the default URL for a Java EE app running on Glassfish?

Newbie question: What is the default URL for a Java EE application running on a glassfish server? I've been googling for a while, and looked through the Glassfish documentation, but I may have ...
2 votes
1 answer
2k views

Glassfish behind Apache reverse proxy: Mod-jk or HTTP?

I am planning a large deployment of a Glassfish-powered web application: A number of nodes running multiple Glassfish 3.1.1 instances are running the web application. The web application consists of ...
0 votes
1 answer
603 views

How to run a multi language web application server?

I'm a web application developer and whenever I buy a web hosting for my application I'm either limited by the technologies supported or the amount of resources (heap size for instance) so I have ...
2 votes
1 answer
1k views

Glassfish DNS Configuration

First of all, I know that I'm asking a basic question. I'm a software developer and I'm not an expert in server administration and network stuff. I have a VPS (Win 2008) with one static IP e.g. 10....
1 vote
1 answer
1k views

Apache/Glassfish recipe for running multiple apps on a single host

I'm trying to set up Apache + Glassfish so that I can access two different webapps on the same physical host, differentiated by the hostname in the URL. So if I visit http://host1.com, I'll get app1. ...
0 votes
1 answer
1k views

Glassfish hangs when it can't connect to datasources

I am running glassfish v2.1.1 on linux. I have some datasources set up to connect to mysql and other databases. There are times where I would like to run glassfish without connecting to these ...
0 votes
2 answers
358 views

Glassfish 3.0.1 memory leak when ran with Windows Server 2008 R2 Enterprise

I have a memory leak with Glassfish 3.0.1 and Windows Server 2008 R2 Enterprise (64bit machine), with or without any running applications Is there a way to resolve this? The same Glassfish 3.0.1 ...
1 vote
1 answer
8k views

Redirecting from http to https in Glassfish 3

How do you redirect port 80 -> 443 in Glassfish 3? My scenario is a web application SSL, and I want non-SSL requests to be automatically redirected.
0 votes
1 answer
2k views

glassfish v2 access control by IP

How can I restrict access to some web-app deployed in Glassfish from certain IPs ? Are there any internal access control in Glassfish or I need to proxy it with external nginx or Apache ?
1 vote
1 answer
463 views

Should I install both j2EE and J2SE

I just installed J2EE. Det version that come bundled with a JDK. Is there any reason for me to install Java SE as well? I need to run Java SE programs, but the J2EE bundled java runtime should work ...
-2 votes
1 answer
282 views

How does a certificate make a server HTTPS?

I've read plenty but i'm still very confused about the server certificate concept. At what stage does it turn a glassfish server from HTTP to HTTPS and how? I know how to create a certificate with ...
3 votes
1 answer
3k views

Installing Glassfish 3.1 on Ubuntu 10.10 Server

I've used the directions here to successfully install Glassfish 3.0.1 on an virtualized (VirtualBox and VMWare) Ubuntu 10.10 Server instance without any real difficulty not resolved by more closely ...
5 votes
1 answer
867 views

Are there RPMs for GlassFish v3?

It seems that the GlassFish project itself does not provide RPM packages, and neither does JPackage (http://jpackage.org/). Is someone else providing ready-built RPM packages for RHEL/CentOS? On a ...
1 vote
3 answers
2k views

GlassFish will not start when SNMP is enabled

I have a GlassFish v3 app server running on 64-bit Debian Lenny. Everything is running fine, except I would like to monitor GF's JVM instance with SNMP. However, every time I try to enable it by ...
1 vote
0 answers
409 views

Glassfish failed start on update

I'm new to ServerFault. My problem is that recently(today) the Update Tool Notifier of glassfish executed an update. Everything seemed to go well but when I tried to start the server, it threw this ...
15 votes
5 answers
9k views

is it really necessary to run Apache as a front-end to Glassfish/JBoss/Tomcat?

I'm primarily a Java developer, and I come to you with a question that straddles the divide between developers and sysadmins. Years ago, when it was a novel thing to run Tomcat as an app server, it ...
1 vote
1 answer
591 views

Glassfish v3 logging

In Glassfish v2.1 I could look at my web-applications log all stdout and stderr in the glassfish server log ($GF_HOME/domains/domain1/logs/server.log). But I dont see the same in v3. Is there a ...
2 votes
1 answer
3k views

glassfish v3 - update all pakages via command line on linux

Does anyone know how to do this? I just want a one-shot command to "update everything" over the command line? This is for a remote server so it must be over the command line. I used: $ sudo pkg ...
0 votes
3 answers
3k views

Two GlassFish installs on one computer

I want to install two GlassFish servers, each serving on different ports, on one Windows Server OS. Is this possible>
-1 votes
6 answers
3k views

IIS and Glassfish in Windows 7 [closed]

I installed the newest version of Windows 7. This is my development box, so I have glassfish installed, which I use for Java applications. Also, I use IIS to run PHP applications. I run both servers ...
0 votes
2 answers
2k views

How to run GlassFish as Windows service?

I already saw the http://www.ryandelaplante.com/rdelaplante/entry/creating_a_windows_service_for link, but it doesn't appear to work on GlassFish v3. If anyone's successfully gotten GlassFish v3 to ...
2 votes
1 answer
899 views

VPS for Glassfish

Our small startup company plan to deploy a web application on Glassfish, I and wonder if some of the experience user out there can answer me couple question. When I shopping for server, I usually look ...
0 votes
1 answer
534 views

How to use admin console when install glassfish-3.0 by extract from zip file?

There are two types of glassfish distribution: the executable installer and zip archive. I have to use the zip archive. But the admin console doesn't work, it only shows a blue footer div, the ...
15 votes
5 answers
4k views

Alternatives to Apache

Our current stack is Apache + Tomcat + MySQL, using ProxyPass AJP to fire requests from Apache to Tomcat. We also run PHP for Wordpress on the same sites, and so need working .htaccess files. In ...
0 votes
1 answer
487 views

404 on new install of Glassfish

I am BRAND NEW to Glassfish, so I thought I would install a copy and poke around (I'm actually looking at a number of Java servers for personal edification). So, I installed a basic copy of Glassfish ...
0 votes
1 answer
166 views

How to set JBOSS/JDBSC to cach the MySQL server settings?

Is it possible to set JBOSS/JDBC's MySQL connector to cache the server's settings so that I won't get a big bunch of "show variables" connection all the time? I think there is a similar settings ...
1 vote
2 answers
744 views

Glassfish installation error: cannot open display

When trying to extract the Glassfish jar file with java -Xmx256m -jar glassfish-installer-v2.1-b60e-linux.jar i get following error: (.:31766): Gtk-WARNING **: cannot open display: and extraction ...