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

learn more… | top users | synonyms

1
vote
1answer
2k 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
0answers
289 views

Auto-deployed Glassfish having trouble with secure connection between Redhat and Windows7 machines

I have inherited a web-service that was written in Netbeans and runs on Glassfish (version 3) and used to talk between a Redhat server and a Windows7 machine. These can be started manually, by using ...
0
votes
3answers
2k views

“Too many openfiles” error with Glassfish on Ubuntu

I am having issues with tuning Glassfish 2.1.1 on Ubuntu 10.04 LTS 64-bit (Amazon EC2). As soon as I change the HTTP Service thread count from the default 5 value to 100, I get the following errors ...
1
vote
1answer
175 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 ...
-1
votes
2answers
244 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 ...
4
votes
2answers
2k views

Issues with setting up SSL on Glassfish v3

I am currently setting up SSL on glassfish and having some issues connecting to the server. http://javadude.wordpress.com/2010/04/06/getting-started-with-glassfish-v3-and-ssl/ I have followed this ...
3
votes
1answer
2k 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 ...
1
vote
0answers
314 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 ...
0
votes
1answer
639 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 ?
9
votes
5answers
3k 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
1answer
513 views

Glassfish v3 failure when startup. “Cannot allocate memory ”

It is clear in this Question Fail to start Glassfish 3.1: java.io.IOException: error=12, Cannot allocate memory But in my case,I have a 512M memory Ubuntu 10.04 vps.It seems that I don't need ...
3
votes
1answer
606 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
2answers
1k views

Problem starting Glassfish on a VPS

I am attempting to install Glassfishv3 on my Ubuntu (8.04) VPS using Java 1.6. I initially tried starting the server using: asadmin start-domain and received the following error message: ...
0
votes
2answers
229 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
1answer
846 views

Export SSL Cert from IIS and import into GlassFish keystore

What I need: I have an existing SSL certificate installed on IIS 6. On the same machine, I have GlassFish installed and would like to share the same certificate since they both share the same ...
0
votes
2answers
776 views

GF 3.0.1 + Virtual Server: www.myhost.com:8080/projectname-war => www.myhost.com. How?

I need to change www.myhost.com:8080/myproject-war to www.myhost.com. Here is what I've been trying: I configurate the Virtual Server: server. I have still have default Network Listeners to be ...
2
votes
1answer
522 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
1answer
487 views

Set up Glassfish connection pool to talk to a database on a Ubuntu VPS

On my Ubuntu VPS, i have a mysql server running and a Glassfish 3.0.1 Application Server running. And I am having a hard to have my GF successfully ping the database. Here is my GF set up Assume: ...
3
votes
4answers
2k views

Can't launch glassfish on ec2 - can't open port

I'm trying to start glassfish on an EBS-based AMI of Ubuntu 10.04 64-bit. I have used glassfish on non-ec2 servers with no problems, but on ec2 I get this message: $ sudo -u glassfish bin/asadmin ...
0
votes
1answer
367 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 ...
2
votes
2answers
8k views

How can I rewrite / redirect URL's in Glassfish V3?

I'd like to simplify the URL's to access a Glassfish V3 application by removing file extensions and otherwise shortening URL's. I've already set my application as the default application, so that ...
0
votes
1answer
349 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 ...
1
vote
4answers
260 views

Java Application Hosting

I've made a webapplication which runs on glassfish v3 on my computer. It's not a big application and i am not expecting a lot of traffic. All the hosts supporting glassfish is very expensive (about ...
0
votes
1answer
93 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 ...
0
votes
1answer
1k views

Why does my MySQL server keep converting HEAP to MyISAM

We ve been having some issues with our MySQL server intermittently. It keeps throwing out a lot of these queries concurrently (thus stacking them up in my processlist). We are using a MyISAM db and ...
1
vote
1answer
2k 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 ...
1
vote
1answer
425 views

filtering request from IIS and redirecting it to Glassfish

I have IIS running on my server on 80 i want if request with /webapplication comes then the request should be redirected to my glassfish from IIS it self glassfish is running on 8080 how to configure ...
0
votes
1answer
3k views

Setting up SSL on Glassfish V2 or V3

My employer recently purchased a Trustwave SSL certificate. Trustwave advertises support on their website, but they don't give an installation guide like they do for their other servers at all, and I ...
0
votes
2answers
321 views

Glassfish basic configuration forgotten

I installed glassfish v3 some time ago and it's been a while since I last used it, so I forgot the port on which the server is listening and the port on which the admin console is listening. Moreover, ...
1
vote
2answers
1k views

Glassfish V3 using up all available memory

I have a Virtual Server with 1GB of RAM. When i start glassfish with asadmin start-domain it instantly allocates all available memory, although i defined -Xmx128m in my domain.xml. Am I missing an ...
1
vote
2answers
689 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 ...
6
votes
2answers
2k views

offline undeploy war from glassfish

I've got Glassfish 2.1.1 here and I need to undeploy war application. Problem is that the application is corrupted and prevents the Glassfish server from starting, so I need to undeploy it while ...
0
votes
2answers
1k 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 ...
3
votes
1answer
4k views

authbind, privbind or iptables REDIRECT (port 80 to 8080)?

I'd like to run Glassfish v3 as a non-privileged user on Linux (Debian), but make it available on port 80. I'm currently doing this with iptables: iptables -t nat -I PREROUTING -p tcp -d x.x.x.x ...
0
votes
1answer
295 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 ...
1
vote
1answer
525 views

Setup IIS 6/7 to passthrough to Glassfish v2.x

I need to setup IIS 6 and 7 to pass all request to Glassfish v2.x. Is there a simple tutorial that will get this interaction between IIS and Glassfish working?
1
vote
1answer
481 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 ...
1
vote
0answers
197 views

(Rails, Warbler) Deploying and initializing Rails applications in Glassfish…?

I'm currently in the process of finishing up a Rails application. I am using Warbler to package it up as a ".war" file and am using GlassFish to deploy it. I do this because the application is to be ...
0
votes
1answer
1k views

Listening to 80 port with non-root Glassfish on Centos

I use Glassfish Stack to manage applications. I run Glassfish on CentOS with non-root user. Therefor I am not able to open 80 port as the ports under 1024 are accessibly only by root users. There is ...
1
vote
3answers
1k 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 ...
4
votes
2answers
1k views

How can I use Glassfish under Linux as a reverse-proxy?

Question says it all. I would like to use SUN Glassfish 2.0x server as a reverse-proxy server, so that when someone hits this server, he/she is transparently redirected to an internal web site, which ...
1
vote
1answer
1k views

How to stop OpenEsb Glassfish Admin console from opening connection to glassfishesb.org

I have a Glassfish v2.1 app server (OpenEsb distribution) running behind a very restrictive firewall. Some times a bottom frame will appear, trying to connect to this address: ...
2
votes
3answers
3k views

HAProxy check says server is down when it is up

I am trying to setup 2 Glassfish servers in a load balanced configuration using UCARP and HAProxy Server1 has 2 IPs x.x.x.17 and x.x.x.18 HAProxy is listening on only x.x.x.18 and Glassfish ...
0
votes
1answer
917 views

Glassfish memory leak?

I have been developing a flex application and noticing that my Glassfish server seems to be using more and more memory each time I tested the application. Specifically, it seems that to take more ...
0
votes
1answer
735 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?
0
votes
1answer
971 views

Security exception when moving from toplink to eclipselink in glassfish 2.1

My app is working fine with toplink, but I need some eclipselink features, so I decided to swap. I changed the provider in persistence.xml to: ...
4
votes
4answers
4k views

Glassfish Vs Tomcat (Java app servers)

I am looking at running a java application server on my debian linux webserver, and am looking for a breakdown of the advantages that using either app server would provide me with (or disadvantages). ...
1
vote
1answer
569 views

Glassfish with Webservices on non default port

I have a simple web service that I created that deploys perfectly on a default Glassfish V2.1 install on both a windows and a linux system. HOWEVER, In the production environment, Glassfish has the ...
0
votes
1answer
116 views

Controlling Web Site Access via IP addresses

Say I have a single physical server, running Windows 2003 Server. Install two GalssFish application servers, one running on port 80, and the other port 8080. Each GlassFish instance has an application ...
-1
votes
6answers
2k 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 ...