Questions tagged [glassfish]

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

Filter by
Sorted by
Tagged with
16 votes
6 answers
50k views

Why (or how) does the number of open file descriptors in use by root exceed ulimit -n?

Our server recently ran out of file descriptors, and in regards to that I have some questions. ulimit -n is supposed to give me the maximum number of open file descriptors. That number is 1024. I ...
oligofren's user avatar
  • 641
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 ...
Caffeine Coma's user avatar
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 ...
Marcus Downing's user avatar
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 ...
codingbear's user avatar
9 votes
1 answer
5k views

Is it bad practice to run a web application server 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 : www.mydomain.com:...
ccot's user avatar
  • 181
9 votes
3 answers
6k views

Apache Reverse Proxy Java Application Server CLOSE_WAIT Connections

I've got Apache setup as a reverse proxy for a Java Application server (GlassFish) and I noticed there are about 100 connections in the state CLOSE_WAIT even on an idle development system: sudo ...
Ryan's user avatar
  • 430
7 votes
3 answers
27k views

Apache ProxyPass Missing Images

I have a apache server that sits in front of my glassfish server. mydomain.com goes directly to my static files on apache, than if you hit the subdomain forum.mydomain.com it goes to the glassfish ...
EpicOfChaos's user avatar
6 votes
2 answers
6k 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 ...
andrej's user avatar
  • 503
5 votes
4 answers
6k 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). ...
PixelSmack's user avatar
5 votes
2 answers
8k 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 ...
user75849's user avatar
5 votes
2 answers
5k views

how to set ENABLE_CLEAR_REFERENCES in GlassFish 3.1.1?

I'm running GlassFish 3.1.1 on Linux and in my server.log I've noticed the following error: SEVERE: log4j:ERROR log4j called after unloading, see http://logging.apache.org/log4j/1.2/faq.html#...
stivlo's user avatar
  • 749
5 votes
2 answers
6k views

Using both basic and client-certificate authentication with GlassFish

I'm currently building a Java-servlet applcation (using Jersey on GlassFish to be specific). In some parts of the application I need to authenticate the user using basic authentication and in some ...
user avatar
5 votes
2 answers
3k 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 ...
Marco Aviles's user avatar
5 votes
0 answers
2k views

Glassfish connection pool don't work after restart server

I have a connection pool in Glassfish 3.1 to connect to SqlServer 2008 Express, this pool works fine, but when Glassfish is restarted, the connection pool can't ping and stops working. To work again, ...
brevleq's user avatar
  • 121
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 ...
Make Mark's user avatar
  • 1,994
4 votes
2 answers
6k 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 --...
Chris Lercher's user avatar
4 votes
3 answers
10k views

How to redirect Apache to different ports on a GlassFish server?

I have a GlassFish instance running different services on different ports. An Apache web server sits in front of the GlassFish, and I want to set up virtual hosts on Apache to redirect to certain ...
user avatar
4 votes
2 answers
3k 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 ...
jfmessier's user avatar
  • 163
4 votes
5 answers
5k 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 ...
orange80's user avatar
  • 198
3 votes
1 answer
9k 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 ...
Nilzor's user avatar
  • 185
3 votes
1 answer
2k views

How would I measure the amount of RAM needed per Glassfish domain?

In our test environment we have a lot of apps spread out over a few servers and Glassfish domains. To make versioning easier I would have liked to have one Glassfish domain per customer per app (kind ...
oligofren's user avatar
  • 641
3 votes
2 answers
12k 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 ...
Oskars Pakers's user avatar
3 votes
1 answer
3k views

glassfish 3.1.2 admin console port 4848 blocked by firewall

I've got a remote server. There is glassfish 3.1.2 running behind apache 2.2. The administration port 4848 is blocked by firewall so that I cannot use http://some_server.com:4848 where some_server is ...
Nurjan's user avatar
  • 203
3 votes
3 answers
2k 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 ...
Hunt's user avatar
  • 151
3 votes
1 answer
3k views

Glassfish 3.1.1 Creating Domain fails, The system cannot find the path specified

I tried to install Glassfish 3.1.1 on windows with an installer but the Config Result - Creating Domain fails. This is the error message: Executing command :C:\glassfish3\glassfish\bin\asadmin.bat --...
Marsellus Wallace's user avatar
3 votes
1 answer
1k views

What dictates the available Cipher Suites in GlassFish and Payara?

I have the same version of Payara Server (4.1.1.154) running on two different machines. I do not have the same list of available cipher suites between the two. What determines the available cipher ...
Blegger's user avatar
  • 272
3 votes
2 answers
13k views

How to verify that a firewall closes inactive connections?

How can I verify that a firewall closes connections on port X to a server after N minutes of inactivity? Background: I am working on a Java EE application deployed to a Glassfish application server. ...
user avatar
3 votes
1 answer
2k views

Load balancing glassfish v4.0 CLUSTER with apache HTTP server: Location of apache

I am teaching myself to build clustered Java EE 7 applications. I am focused on Glassfish Server v4.0. Based on the official documentation (Chapter 7 page 133) , Glassfish can be loadbalanced using ...
ccot's user avatar
  • 181
3 votes
1 answer
2k 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 (...
Daniel Teleginski Camargo's user avatar
3 votes
1 answer
4k 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: www....
ccot's user avatar
  • 181
3 votes
1 answer
462 views

What is and what is not replicated in a glassfish cluster with a mod_jk load balancer?

I have a Glassfish (3.1.2) cluster over 2 computers as nodes, with a mod_jk load balancer. Are servlet instance variables replicated perfectly? If not, how do I make sure it is? Are all actions, ...
Navigateur's user avatar
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 ...
andand's user avatar
  • 349
2 votes
3 answers
16k 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 ...
JamesRyan's user avatar
  • 8,196
2 votes
1 answer
6k views

How to configure Glassfish + NGINX to serve static files with NGINX?

I have a EC2 ubuntu with Glassfish v3 + Nginx setup to host my java web application. This application is deployed as a WAR file to Glassfish . The NGINX is currenty passing all request to the ...
user193116's user avatar
2 votes
3 answers
20k 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 ...
user avatar
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 ...
orange80's user avatar
  • 198
2 votes
1 answer
592 views

Communication between Apache and glassfish

We are currently using HTTPD server (apache) to handle client request. The requests are further proxied to a Application Server (glassfish) which provides the content. The content are static files (...
TheMonkWhoSoldHisCode's user avatar
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 ...
Freiheit's user avatar
  • 201
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 ...
Hank's user avatar
  • 379
2 votes
1 answer
3k views

Access Glassfish server logs via REST

I am using Glassfish 3.1.2.2. I have deployed Glassfish to localhost. I have enabled the monitoring service and set the log level to HIGH for all components. I should be able to use the view the ...
user avatar
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 ...
tronda's user avatar
  • 1,441
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....
ehsun7b's user avatar
  • 131
2 votes
2 answers
4k 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: JVM ...
Raydon's user avatar
  • 21
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 ...
Harry Pham's user avatar
2 votes
1 answer
3k views

GlassFish change port of web-service

I am new to Java and Linux. I have a JSP site and a java web service deployed on a GlassFish server (working OK). I need to change the port of both the application and web-service. I have changed ...
Dror's user avatar
  • 621
2 votes
0 answers
13k views

Websocket Error in connection establishment: net::ERR_CONNECTION_REFUSED 'wss://'

First I asked this question in stackoverflow, but it looks like a server issue more than coding problem. I am developing a project with Java EE and I have access to the server computer under a ...
tonder's user avatar
  • 121
2 votes
1 answer
1k views

enable-secure-admin not found

I'm running Glassfish 4.1 on Ubuntu 16. enable-secure-admin worked the first time I setup glassfish it. Due to some issue I had setting up security certificate I tried to set it up glassfish from ...
Omar Abdel Bari's user avatar
2 votes
0 answers
3k 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 web....
jgomo3's user avatar
  • 121
2 votes
0 answers
134 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 ...
TuxOtaku's user avatar
2 votes
1 answer
10k views

Error deploying Spring with JAX-WS application in Jboss 6 server

I'm getting the following error when deploying a Spring+JAX-WS application on JBoss server 6.1.0: 09:14:38,175 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed: org....
arlahiru's user avatar
  • 131

1
2 3 4 5