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

jsf get file path or directory outside war

i'm working in java web application project with jsf 2.2.4 framework and glassfish 4 server. i have directory structure like this in my project: how do i access the gambar directory and file inside the gambar directory ? note : the gambar directory…
1
vote
0 answers

Glassfish4 cannot create singelton exception

I have a system consist of ear project and some related EJB and JSF projects. I was using glassfish3.1.2, the EJB projects were exported into EJB jar and added to the deployment assembly of the EAR project. Everything was ok until i tried to upgrade…
primeFaceUser
  • 295
  • 2
  • 15
1
vote
1 answer

Where is the Glassfish 4 upgrade tool

I am trying to upgrade Glassfish 3.1.2.2 to 4.0 and according to the instructions the I should use the Upgrade tool. I have downloaded the glassfish zip and the upgrade tool is nowhere to be found. I have also looked in the update tool and it is not…
Stefan Rasmusson
  • 5,445
  • 3
  • 21
  • 48
1
vote
1 answer

how to use truevfs META-INF/services on glassfish 4

Im trying to use truevfs library from application deployed on glassfish 4. Below code works excelent if used in a standalone java-se app, but it fails to look up the filesystem provider when used from inside glassfish. Is this suposed to work? what…
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
1
vote
1 answer

Cargo hangs while starting GlassFish 4.x and uses up 100% CPU

Trying to go with Maven Cargo plugin instead of the Maven GlassFish plugin that doesn't support hot redeploy. Cargo hangs on goals start/run for GlassFish local existing installation and eats up to 100% CPU until I kill it! I tried with a plain text…
Abhijit Sarkar
  • 21,927
  • 20
  • 110
  • 219
1
vote
1 answer

Using derby built-in glassfish4 through EclipseLink

I have been trying to learn how to connect to the embedded database Apache Derby that comes out of the box with glassfish4. What do I have to set in the src/META-INF/persistence.xml in my project? Is it somehow preconfigured? If not, how can I…
Mateusz Chrzaszcz
  • 1,240
  • 14
  • 32
1
vote
1 answer

CDI SessionBean does not exist after first request

Im using JSF 2 and GlassFish Server 4 with CDI (importing javax.enterprise.context...). I am trying to Inject a SessionBean, A, into another SessionBean, B, however when I try to access B on the second http request, it does not exist anymore.…
fridberg
  • 161
  • 4
  • 14
1
vote
1 answer

Jersey 2.x issue with MultivaluedMap

I am using Jersey 2.3.1 on Glassfish 4. My resource method is similar to the following: @POST @Consumes("application/x-www-form-urlencoded") @Path("/update") public Response update(MultivaluedMap
siva636
  • 16,109
  • 23
  • 97
  • 135
1
vote
1 answer

JavaServer Faces 2.2 composite component rendered with enclosing ... tags

While migrating a project from JavaServer Faces 2.1 / Java EE 5 to JavaServer Faces 2.2 / Java EE 7 web profile on GlassFish 4, I encountered invalid HTML code because of additional ... tags for every instance of a composite component…
mjn
  • 36,362
  • 28
  • 176
  • 378
1
vote
0 answers

Can I get GF4 to log to log4j?

Just to make myself clear. My application does log properly with log4j. What I would like is to also change GF java logger to log4j and remove the ugly and useless 2013-10-22T18:52:15.199+0100|INFO: from my console appender. Ideally I would like to…
Ioannis Deligiannis
  • 2,679
  • 5
  • 25
  • 48
1
vote
1 answer

Running JUnit Tests on embedded glassfish 4 causing WARNING: AS-CDI-005

I want to run JUnit Tests on an Embedded Glassfish 4 using CDI. It end up with an endless loop of the following output: WARNING: AS-CDI-005 Okt 22, 2013 4:49:23 PM org.glassfish.weld.BeanDeploymentArchiveImpl handleEntry Can anybody help Chears
flosk8
  • 465
  • 1
  • 6
  • 17
1
vote
1 answer

Has anybody (successfully) used Openjpa with Glassfish 4 yet?

We're currently using openjpa 2.2.1 with Glassfish 3. Since we have to make changes to our infrastructure anyway, we're considering upgrading to Glassfish 4. Unfortunately, I can't get OpenJpa to work with it. Whenever I try to access a Entity I get…
Markus
  • 569
  • 2
  • 4
  • 18
1
vote
1 answer

Glassfish v4.0 cannot work on Mac OSX 10.6.8 + JDK 7.0 U40

I had been using 2010 Macbook Pro for a while and had updated the Mac OSX to the latest version, and I had been suffering the slow speed for a long time. So last night I googled and do some cleanup , such as fix disk permissions, but the Mac was…
Barry Zhong
  • 470
  • 3
  • 17
1
vote
1 answer

file upload using jsf 2.2 and glassfish 4. File path not found error

This is the error I am getting: java.io.FileNotFoundException: C:\Users\Owner\AppData\Roaming\NetBeans\7.3.1\config\GF3\domain1\generated\jsp\uploadRamki\data\images.jpg (The system cannot find the path specified) This is my backing bean: package…
Dave
  • 11
  • 4
1
vote
1 answer

JAXB marshalling fails in webservice call

I have a web service that throws an exception when called. It fails with marshalling my entity. Can anyone see what im doing wrong. (I have omitted lots of code for readability) My entities @Entity @Table(name="Question",…
Marthin
  • 6,413
  • 15
  • 58
  • 95