Questions tagged [glassfish-4]

Fourth version of the popular Java EE open source application server and the reference implementation of the Java EE 7.

Java EE 7 brings the new versions of the many Java enterprise and Web technologies, such as EJB 3.2, JMS 2.0, JPA 2.1, Servlet 3.1 etc. GlassFish is an open source server that represents a reference implementation of Java EE standard. In its fourth version, GlassFish offers the complete Java EE 7 (JSR-342) platform. It is a first certified application server that fully supports Java EE 7.

This tag is for questions specific to version 4. For generall questions to GlassFish see:

908 questions
1
vote
1 answer

Atmosphere @ManagedService Injection fails with WebSockets

I'm having a problem using websocket transport when using Atmosphere. The code is shown below: When I use long-polling as a transport, everything works fine. I'm able to call methods on the injected class without any problems. When I configure the…
Baldy
  • 2,002
  • 14
  • 14
1
vote
1 answer

Intellij IDEA 13 and Glassfish 4 integration - Error: Admin port configuration not found

I have IntelliJ IDEA 13 and Glassfish 4. I created a new domain in Glassfish using command: asadmin create-domain --portbase 10000 --nopassword test-domain Then, in Intellij, I setup a run configuration for Glassfish specifying Server Domain:…
kevjam
  • 11
  • 1
  • 3
1
vote
2 answers

Validate CSR against keystore

I used keytool to generate a keystore and, from that, generated a CSR: keytool -genkey \ -alias server \ -keyalg RSA \ -keysize 2048 \ -keystore api_annacares_com.jks \ -dname "CN=api.example.com, O=Acme Ltd, L=Sydney, ST=New…
Steve
  • 8,066
  • 11
  • 70
  • 112
1
vote
1 answer

MultiException and PerseistenceException in javaEE with Beans

I know there are a lot of threads to this topic, but after searching for ~10 hours without a solution I will ask in a new thread. I got two projects not working (properly). I use Windows 8.1 64 bit with a clean jre/jdk 8 and javaee7. I have a…
j0chn
  • 1,103
  • 1
  • 7
  • 13
1
vote
1 answer

MDB(Message Driven Bean) failing on server startup

Several people seem to have the same problem(see this and this): If you startup a glassfish(v 4) server with an MDB(Message Driven Bean) and there are messages to be consumed, the MDB will start consuming the messages while the container is still…
Roland
  • 7,525
  • 13
  • 61
  • 124
1
vote
1 answer

Glassfish 4 (Spring MVC/JSP/Hibernate Application) builds up HEAP

Our Glassfish 4 Application Server builds up heap space and hangs while testing high loads (200 parallel connections). We used different garbage collection settings while testing. The application runs on a clustered Glassfish Server with one…
1
vote
1 answer

Glassfish Server administrator password accidently removed

I have Netbeans 7.4 & GlassFish Server 4.0, I've accidently removed the password in server properties.. now everytime I start Netbeans a message box pops up saying Authorization failed while checking GlassFish Server status, Please provide valid…
Aboud Zakaria
  • 567
  • 9
  • 25
1
vote
0 answers

The module has not been Deployed [Glassfish 4.0]

I am new to EJB and trying to create a EJB Application..But when I deploy my project after creating entity class and session class, I am getting the following error... Initial deploying contact to…
Java Enthusiast
  • 654
  • 7
  • 19
1
vote
1 answer

Error Creating a new Glassfish 4 server with Oracle Tools for Kepler

I installed Oracle Tools for Kepler with no problem. But when I want to create a new server and fill in the directory to the server (which is valid, C:/glassfish4/glassfish), nothing happens. I can only click 'back' or 'cancel'. attached image for…
1
vote
0 answers

GlassFish web application suddenly dies without an explicable reason

I'm developing a web application via Netbeans 8.0,Glassfish server 4 and JavaEE 7. Everything was going great but now I'm facing a strange issue. If the user interrupts uploads or downloads before their completion (by closing browser's windows or…
Muntaner
  • 105
  • 1
  • 5
1
vote
1 answer

Unable to change @Path in NetBeans and GlassFish

I created a simple entity and then used NetBeans "create rest services from entity" wizard to generate the rest resource. All good so far. It gives a @Path of the entity package to the resource as…
U-L
  • 2,671
  • 8
  • 35
  • 50
1
vote
3 answers

Proper format for log4j2.xml RollingFile configuration

I am getting the following exception in my glassfish 4 application that uses log4j2: SEVERE: ERROR StatusLogger Invalid URL C:/glassfish4/glassfish/domains/domain1/config/log4j2.xml java.net.MalformedURLException: Unknown protocol: c I have the…
Rick
  • 362
  • 5
  • 16
1
vote
1 answer

Forcing Glassfish4 to use javax.faces-2.2.6.jar as module per domain using Maven pom.xml?

Due to a bug in Mojarra 2.2.0 I'd like to use javax.faces-2.2.6.jar with Glassfish 4. It does work if I replace the existing /opt/glassfish4/glassfish/modules/javax.faces.jar but that would affect all apps in all domains. I tried putting it at least…
lathspell
  • 3,040
  • 1
  • 30
  • 49
1
vote
0 answers

Java EE and glassfish - getting two persistence units working

I am trying to set up two persistence units in my app to map to different schemas in the underlying postgresql database. I am running the app with glassfish 4. /web/META-INF/persistence.xml
vancan1ty
  • 563
  • 1
  • 4
  • 16
1
vote
2 answers

CDI deployment failure:com/sun/enterprise/InjectionException

I've been trying to solve the Problem here: Previous Deployment error and I have reduced the application code to a minimum. I still have problem deploying the application to GlassFish 4. Here the Server Log: INFO: WELD-000119 Not generating any…
ken
  • 471
  • 9
  • 19