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
0 answers

How to maintain a web session between pages?

Glassfish 4.0 Primefaces 5.0 Linux I'm trying to understand how to secure my web application. I have a form-based login page, /index.xhtml. I created a JDBC-Realm for which to authenticate the admin against. I think this is called basic…
Ender
  • 1,652
  • 2
  • 25
  • 50
1
vote
0 answers

Glassfish JDBC Connection pool throws NoClassDefFoundError CharacterConverterJDBC

Glassfish version: GlassFish Server Open Source Edition 4.1 (build 13) Oracle Database : 11.2.0.4 JDBC Driver obtained (ojdbc6.jar) obtained from Oracle download site w/c were copied into \glassfish-4.1\glassfish\domains\domain1\lib folder. When I…
Elmer
  • 262
  • 2
  • 15
1
vote
2 answers

JPA Entity Class Instances

I have a very curious problem when I deploy my Java EE application to Glassfish. I have an Eclipse EAR project that references a web project (containing a servlet), and an EJB project (that has one EJB) and a JPA Project (that has one @Entity). In…
Raoul
  • 133
  • 3
  • 15
1
vote
1 answer

Injected EntityManager Doesn't Know Entity

I have a very basic Java EE application defined in Eclipse (one EJB, one web page with PrimeFaces, one JPA entity). It has four projects, one for the EAR, one for the EJB(s), one for JPA and one for web parts. The problem is that I've tried to…
Raoul
  • 133
  • 3
  • 15
1
vote
1 answer

Glassfish override keystore with p12 keystore

Good evening! I am integrating with Bloombergs Data License Web Services, they provided me with p12 keystore. In normal java app, it works perfectly by providing: System.setProperty("javax.net.ssl.keyStore",…
Jake OS
  • 180
  • 1
  • 16
1
vote
2 answers

the package javax.enterprise.context is missing after glassfish update

this morning I used glassfish update tool to update the server when the process is finished I find that Eclipse can't recognize javax.enterprise.context package (CDI), how can I rollback installed updates?? http://im61.gulfup.com/uqpxlA.png
user3923327
  • 137
  • 1
  • 4
  • 11
1
vote
0 answers

Upgraded to Glassfish 4.1 - Now error while deploying EAR with Swing app packaged - Can't find resource for PropertyResourceBundle

The full error from the log is: org.glassfish.deployment.common.DeploymentException: Can't find resource for bundle java.util.PropertyResourceBundle, key enterprise.deployment.appclient.noManifest The relevant stack trace…
user924069
1
vote
1 answer

Hibernate 4.3.6 Glassfish 4 UserType Issue

I'm migrating my application, working well on GlassFish 3.0.1 to Glassfish 4.0, and updating Hibernate as well, from 3.6 to 4.0. After a lot of migration issues, I'm stucked in this one: The application has several org.hibernate.usertype.UserType…
Rodrigo Leitão
  • 949
  • 1
  • 11
  • 21
1
vote
0 answers

Eclipselink 2.5.2 JPA NPE querying elementcollection on glassfish 4

I'm facing a strange problem porting a working application from JEE6 (glassfish 3/eclipselink 2.5.1) to JEE7 (glassfish 4/eclipselink 2.5.2). I've these entities (getter/setter are project Lombok annotations): @Entity @Table(name =…
giates
  • 301
  • 4
  • 15
1
vote
2 answers

Struts 2 Select tag not getting populated from DAO

I have this DAO Class, public class CountriesDAO { static final Logger logger = LogManager.getLogger(CountriesDAO.class.getName()); public List getAllCountries() { java.sql.Connection conn = null; …
Kiran Badi
  • 501
  • 2
  • 9
  • 24
1
vote
1 answer

Glassfish v4 not logging log4j2 statements

I am using glassfish v4 with struts 2.I am also using log4j 2 but for some reasons I dont see any logs being generated by glassfish. I have log level set at info at glassfish. I have also observed that intermittently it just don't log…
Kiran Badi
  • 501
  • 2
  • 9
  • 24
1
vote
1 answer

Accessing OpenMQ JMS Broker from ServiceMix+Camel

I am trying to get ServiceMix+Camel talking to OpenMQ JMS Broker. I have a Camel route definition defined in Blueprint DSL which posts messages into an ActiveMQ JMS Queue. This is working fine, but I am now trying to convert this to post messages to…
1
vote
0 answers

Glassfish 4 JACC permission fails on EJB TimerService method

I get the following log message when an EJB timer method executes: JACC Policy Provider: Failed Permission Check, context(null)- permission(("java.lang.RuntimePermission" "modifyThread")) The method seems to work correctly, but I would like to…
Rick
  • 362
  • 5
  • 16
1
vote
2 answers

Need to specify class name in environment or system property error

I'm testing Remote EJB from a standlone client to a call a jar file deployed in a glassfish server 4, but it show me the following message: Grave: null javax.naming.NoInitialContextException: Need to specify class name in environment or system…
Robert
  • 29
  • 2
  • 5
1
vote
1 answer

How to use the Push of Primefaces 5 with GlassFish 4.0?

I create an example on eclipse to use push of primefaces 5 with glassfish 4.0. I copy code of primefaces's push (http://www.primefaces.org/showcase/push/chat.xhtml). I configuration in pom.xml like bellow: pom.xml