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

learn more… | top users | synonyms

0
votes
0answers
9 views

Understanding Expire Rule in .htaccess and corresponding response header by the server

I have a Java application glassfish+apache and for improving performance I have this statement on top of my .htaccess file ExpiresActive On ExpiresByType text/html "access plus 1 hours" ExpiresByType ...
1
vote
2answers
81 views

Non-heap memory leak JVM

I have a glassfish v4.0 set up on Ubuntu server running on oracle java virtual machine and jvm process resident memory size (got via "top" command) grows up until jvm doesnt have memory to create new ...
0
votes
0answers
3 views

Gracefully handle IOExceptions generated by IOS UIWebView closing connection incorrectly, Glass [migrated]

I have created a content server that delivers content to a website. Running in Glassfish 4.0. This content could be of various different formats, including text, images and video. When a client is ...
0
votes
0answers
34 views

How to enable CORS on Glassfish?

Cross-Origin Resource Sharing is a mechanism that enables cross-origin requests[1]. As you can see in the link [1], It is easy to enable CORS in Apache Tomcat 7. Just a configuration in the file ...
1
vote
1answer
32 views

How to prevent load balancer from failing?

sorry if the question is a bit ambiguous but it is the first time for me to set up a load balancer and I am a little worried. I want to create a Glassfish Cluster, at the moment I am following this ...
0
votes
0answers
21 views

GlassFish force 301 redirects instead of 302

My current setup has two virtual-servers, my-server redirects to the domain with www. prefix. <virtual-server network-listeners="my-nlistener" id="my-server" sso-cookie-http-only="false" ...
1
vote
0answers
104 views

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure between Java app & database VMs

Am getting increasingly frequent JDBC Communications link failure errors between a Glassfish 3 + Java 7 server VM and a MySQL 5.6 Both VMs are hosted on the same ESXi 5.5 enterprise host (as part of a ...
0
votes
0answers
31 views

Trying to deploy Confluence on Glassfish 4

So I'm trying to deploy Confluence as a WAR on Glassfish 4 (Using Oracle JDK 7). The WAR deploys just fine except I get the following errors when trying to load the page in my browser: Could not load ...
0
votes
0answers
33 views

glassfish 4 cluster jdbc connection pool not being installed on instances

I might be missing something, but I created a JDBC mysql connection pool on the DAS and then created a resource and it says enabled on the two instances on different hosts. I do not see the ...
0
votes
1answer
49 views

Where does server store the users random salt for password

In order to make passwords more secure , a random salt is added to the password before harshing occurs . I am assuming the salt is stored on the server in an associative array [username:salt] and ...
1
vote
0answers
19 views

Transfer cacerts file to another das

I was wondering if its possible to transfer the cacerts.jks file to another glassfish DAS machine? The idea is to synchronize both das machines without having to import every certificate manually. ...
0
votes
0answers
33 views

Restart GlassFish 4.0 after deploy

Is it possible to configure GlassFish 4.0 to restart itself after a deploy has been completed? The reason I'm asking this is that there will be a lot of deploys (continuous integration) and I'm ...
0
votes
0answers
13 views

GlassFish docroot internationalization

At the moment, I am using Apache web server to redirect all HTTP request to port 8080 to be served by GlassFish app server. Just like Apache, GlassFish has a docroot folder to store static pages. ...
0
votes
0answers
34 views

What is a good approach for setting up SVN, Maven, Glassfish on CentOS

I'm trying to set up a VPS that will serve us as remote PostgreSQL database, SVN repository, Maven build tool and will also host our Java EE applications. I've just installed and configured our ...
0
votes
1answer
16 views

Block access to specific URL

I have several java war applications hosted in a glassfish, some of then exposing web services. I need a way to block access to an specific application without blocking the entire access to server by ...
0
votes
1answer
32 views

Removing glassfish installation from redhat

I am trying to remove glassfish. I have put the zipped version of glassfish in /opt/glassfish4 and I have created a service using ./asadmin create-service. How can I remove glassfish from service and ...
0
votes
2answers
69 views

Glassfish3 Apache mod_proxy_ajp and missing headers

I got Apache 2.2.22 with mod_proxy and mod_proxy_ajp. Here is my configuration of mod_proxy: ProxyRequests Off ProxyPreserveHost On ProxyErrorOverride On ProxyPass / ...
0
votes
1answer
198 views

Apache with mod_jk with glassfish instances, large number of established connections for low number of users [duplicate]

I making a tuning for our production servers for a portal, we have 4 servers, 2 for web and 2 for app, and there is a firewall before and after web servers (so yes there is a firewall between app and ...
0
votes
0answers
39 views

Windows program started with conhost.exe has no access rights to network shared drives

We clustered a Liferay portal that runs on Glassfish application server (java). The newest Glassfish works in the way that it has a central node that can start other nodes on other computers with ...
0
votes
0answers
95 views

Remove default and timerpool jdbc-resources from glassfish

Glassfish 3 internally uses derby database for JavaEE EJB timerservice via the jdbc/__TimerPool resource using the same named connection pool. I configured EJB timerservic to use a physical database, ...
0
votes
0answers
30 views

How do change the default JMS broker password in OpenMQ

For security reasons, I need to change the default password of a OpenMQ JMS broker. The broker is running in a Glassfish cluster so I can't use the imqusermgr command line tool. I haven't found any ...
1
vote
1answer
316 views

Configure Glassfish http-listener to Port 443/ 80

I want to configure the http-listeners in Glassfish 3.1.2.2 Build 5 under Linux. I changed the settings for the http-listener-1 to the port 80 and the settings for the http-listener-2 to the port 443. ...
-1
votes
1answer
309 views

Create printer localport from a network printer in windows 7

I'm having a problem to install a printer using localport, The printer is installed on a pc with windows 7 and I need to install it in another PC with Windows 2008 R2 creating a new localport for the ...
1
vote
1answer
130 views

Glassfish - Font file and stylesheets and gzip

We used to use Tomcat but are migrating to Glassfish 4 for our application server. We are trying to enable compression, but for some reason, when we do, woff and ttf files are aborted. No errors, ...
0
votes
0answers
124 views

Deploying axis2 on glassfish

I'm trying to deploy Axis2 v1.6.2 war on Glassfish v3.1.2 and I'm having some problems... I need to develop a few web services and since the main app is beeing served on Glassfish I was hoping to ...
1
vote
3answers
99 views

Webserver load test

Is there any way to simulate 1000 or so visitors accessing our server? We have undergone a complete app re-write and re-structuring. We had a very optimized Tomcat server, and are moving to a ...
0
votes
0answers
52 views

Embedded or External AcitveMQ Broker with Glassfish?

This would be my first time using ActiveMQ (instead of the out-of-the-box OpenMQ in GF) and I am trying to determine which approach is better in terms of scaling and maintaining an ActiveMQ ...
2
votes
1answer
152 views

Glassfish Server JVM Tunning

I need to setup a Oracle Glassfish Server and after some research I came up with a configuration that I would like to propose. Any suggestions and/or corrections are very welcome. My Hardware/OS ...
1
vote
0answers
77 views

glassfish cluster fail at start

I got a problem trying to set a cluster up. I'm gonna describe detailed configuration(since I couldn't find a cluster example made on two different pcs, all of them were made on one localhost): 3 ...
0
votes
0answers
32 views

Glassfish (v2.1.1) uptime command?

Is there something like asadmins uptime command as documented here[1] for older glassfishes? I have a glassfish v2.1.1-b31g application server running, when I try to execute the command the following ...
0
votes
0answers
53 views

JSF direct a subdomain to a page

A JSF application is running in a GlassFish (configured to listen to port 80) server which is hosted in a virtual server and can be accessed through internet like "www.healthdept.lk". Under the ...
0
votes
0answers
25 views

Creating Glassfish Cluster nodes across different OSes (Windows Server 2008 and Redhat)

Is it possible to create a Glassfish 3.1.2 CE cluster with one node on Windows 2008 and another on Redhat?
0
votes
1answer
101 views

Glassfish 2.1 won't start after changing Maximum Pool Size

I'm running Glassfish 2.1 on an Ubuntu server, I was trying to test something, so I change in the administrative console on localhost:4848 the Maximum Pool Size to 1, I stopped the server, but when I ...
0
votes
2answers
93 views

Glassfish admin loading forever

i have downloaded the .sh bundle of Glassfish 3.1.2 on my mac machine and started the server using ./asadmin stat-domainand tried to hit the url http://localhost:4848/ but the page is loading ...
0
votes
0answers
158 views

PortUnificationException in Glassfish after installing SSL cert

I've installed an SSL cert (incliding a GoDaddy root cert) into a brand new keystore (myks.jks) on Glassfish 3.1 and now when the server starts, I get this in the logs (and I can't access the admin ...
1
vote
1answer
913 views

How can I reduce Glassfish startup time from 2 minutes to something acceptable?

I'm running Glassfish Open Source Edition v3.1.1 on a Ubuntu 12.04 Micro Instance in Amazon EC2 (Elastic Compute Cloud). I've configured a single domain with a single application. When I start the ...
0
votes
1answer
86 views

Unable to use port even if sudo is used to create a domain for glassfish in ubuntu

I am trying to create a domain in glassfish. I have already done this in another server with ubuntu 12.04. Everything worked fine. I was just trying to replicate the same setup in another server with ...
0
votes
2answers
187 views

glassfish start script fails through crontab

I have a created a script to check to see if my glassfish server is running, if it isn't, it attempts to kill the java process to ensure it's not hung, and then issues the asadmin start-domain command ...
1
vote
0answers
276 views

Can't get Glassfish 3.1.2.2 to use anything other than jdbc/__TimerService for the EJB Timer Service

I am trying to set up a Glassfish cluster (1 DAS with a cluster that has an instance running on an ssh-node). This is where I am: DAS running Cluster created asadmin create-cluster cluster Node ...
0
votes
1answer
184 views

Glassfish admin console display no login page

I'm running glassfish 3.1.2 on Debian 6 (a VM on Mac OS X 10.8 host). Default domain1 starts OK, system listens on tcp port 4848, the 'Admin console loading' page is displayed for a duration of at ...
0
votes
1answer
112 views

Start Cluster automatically at Glassfish 3.1

I am able to start Glassfish domain automatically, in other words I can run it as a service by using "asadmin create-service". When machine is restarted, domain is getting up automcatically. I want ...
1
vote
1answer
371 views

Apache2/glassfish|tomcat: Redirecting some (but not all) requests on 80 to glassfish on port 8080, where is the admin screen?

Using that answer: How to redirect traffic on port 80 to Tomcat port 8080 whilst still allowing the server to send/receive on port 80 I've configured my apache2 server to redirect some requests to ...
0
votes
1answer
472 views

Glassfish doesnot start as a service at bootup at Ubuntu 12.04

As far as I know command statement below is used to create Glassfish service, After execution following command. GlassFish_domain1 file is created under /etc/init.d directory. And link files are ...
1
vote
0answers
122 views

proxy ajp single apache single glassfish multiple GF domains

I'm sorry if I am not well versed enough to be as specific as some would wish here. I have successfully got Apache mod_proxy_ajp working with Glassfish 3.1.2 on a VPS. However it is one Apache httpd ...
1
vote
1answer
216 views

GlassFish cluster-targeted jdbc is not enabled

I have a GlassFish cluster. When I tried to add node and a instance, DAS saids a bunch of error messages telling Resource [ jdbc/xxxx ] of type [ jdbc ] is not enabled ...
1
vote
2answers
231 views

Strange enduser experience with Liferay, Glassfish and Apache on RedHat

Tried multiple forums to get to the bottom of this. I hope I can get some direction here: Here is the stack I am working with: Red Hat Enterprise Linux Server release 5.6 (Tikanga) Liferay 6.0.6 on ...
1
vote
1answer
250 views

IIS - Forwarding requests to a folder to another port

Context I currently installed Glassfish 3 in a server that currently holds ASP and PHP inside Internet Information Server 7 so we can start moving to a new system architecture (the information system ...
1
vote
1answer
220 views

Glassfish JSF/EAR Apache 2.2 proxy_ajp_mod Referred Content Missing (images/links/etc)

Full disclosure: Since this seems to be more of a configuration issue, I deleted this from Stack (where it wasn't getting any response) and reposted here. The problem is how to change the ...
3
votes
1answer
1k views

Apache in front of Glassfish: mod_jk on https(443)

After the recommendation of using Apache http server in front of glassfish ( check question ), i used the following tutorial and made it work but only on port 80. What i mean is now i can type: ...
5
votes
1answer
539 views

Is it bad practice to run a glassfish app directly on port 80/443

I am hosting a web app on amazon aws, using an ec2 instance. On that instance i will be running only one application. using glassfish v3.0.1 I do not want to run the app using : ...