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

JDBC Realm Form Authentication Login Failed

I tried to create a JDBC Realm and Form Base Authentication, I was able to successfully follow the instructions in JavaEE tutorial but I always receive a login failed message. Can someone point me to the right direction ? I know that I just missed…
bell
  • 63
  • 11
1
vote
2 answers

Can Inject (@EJB) Bean in method of other Bean Session(Remote or Local) class

I'm a newbie to EJB. I want to know is can inject EJB in method of other bean session, if not why? as code below: @Local interface car { public void drive(); } @Stateless public class Toyota implements Car { @Override public void drive()…
Vu NG
  • 280
  • 3
  • 20
1
vote
2 answers

NULL EJB referece

I have a EAP created with Eclipse containing two modules: a Dynamic Web Application, and a EJB module. The application.xml of the EAP:
Rafael Angarita
  • 777
  • 10
  • 27
1
vote
1 answer

Glassfish deploy error

Im having troubles deploying an APP in version 4 and 3 of glassfish.. The environment is an AIX server and I do not undersdang why im getting these errors.. I've tried in Windows and Linux and it works fine. But on AIX i cannot sucesfully…
1
vote
1 answer

Null pointer exception when attempting to use JNDI for JDBC

In Glassfish admin, I setup a JDBC connection pool that I can ping ok. Also in Glassfish admin, I have setup a JNDI JDBC resource called jdbc/myDb However I'm unable to connect to it from Java. I have tried both injection style: @Resource…
Little Code
  • 1,315
  • 2
  • 16
  • 37
1
vote
1 answer

Application request on Apache Access Log

I´m creating a Web Service using Glassfish. Now I want to know basic information about my requests like: [DATE] "GET / HTTP/1.0" 200 For that I installed apache 2.2. It has 3 logs: access.log, error.log and install.log. How can I known basic…
Goldbones
  • 1,407
  • 3
  • 21
  • 55
1
vote
1 answer

DerbyDB GlassFish simple example SEQUENCE doesn't exist

I'm trying to run simple JPA example from book Beginning_Java_EE_6_with_GlassFish_3(DerbyDB + eclipselink + maven). The problem is the same as in question The same question But my persistence configuration presented bellow:
user2105282
  • 724
  • 1
  • 12
  • 26
1
vote
1 answer

javax.ejb.EJBException: Transaction aborted Transaction marked for rollback

I'm working on a JavaEE application with EJB. Two of my Entities are the following: @Entity public class Utente implements Serializable { /** * */ private static final long serialVersionUID = 1L; @Id @GeneratedValue private int cod_utente;…
Ghost
  • 113
  • 4
  • 11
1
vote
1 answer

IllegalStateException when logging out with Shiro

I am working on a ZK 7.0.2 project on glassfish 4.0 using Shiro for authentication. The user is logged in using the following code: Subject currentUser = SecurityUtils.getSubject(); UsernamePasswordToken token = new UsernamePasswordToken(username,…
raymondboswel
  • 576
  • 4
  • 12
1
vote
2 answers

Glassfish4 log rotation "Maximum History Files" issue

Environment: Glassfish 4.0 (only one DAS), Windows Server 2012 R2, Java 1.7.0_51 Create the DAS instance service by using the create-service subcommand. Issue: The maximum history files attribute has been set, however, Glassfish Server couldn’t…
Binru
  • 31
  • 8
1
vote
2 answers

What causes "java.lang.IllegalArgumentException: Can not set java.lang.Integer field"

I cannot resolve these new exceptions Can not set java.lang.Integer field GcmRegistraionIdentity.gcmId to GcmRegistraionIdentity org.hibernate.PropertyAccessException: could not get a field value by reflection getter of…
Hector
  • 4,016
  • 21
  • 112
  • 211
1
vote
4 answers

failed to start glassfish 4 plugin in eclipse luna using java 8

The Glassfish plugin cant start in eclipse luna using java 8 .Withount any exception in glassfish log file it will be time out and i get "Unable to start server on time. java.util.concurrent.TimeoutException".
dev
  • 271
  • 1
  • 3
  • 11
1
vote
0 answers

Java EE Authentication Basic And Form

I have developed an web application with jdbc and form based authentication. The user can login through jsf-pages and everything works fine. Now i want to add an RESTful webservice with basic authentication but i only can have form based…
perotom
  • 851
  • 13
  • 33
1
vote
0 answers

Template ressource ON JSF2

I have a problem with path of template in JSF2. My template is in other war. I had this war on libraries. But I don't found this template. Image of my problem The target of this. It's a intranet with many applications war. Target Thanks Manu
Manu
  • 11
  • 3
1
vote
1 answer

How to set the principal of a MessageDriven bean using annotations?

I'm running on glassfish v4 and I use a messagedriven bean. Currently I'm defining the principal under which the bean runs in the glassfish-ejb-jar.xml like: MessageConsumerBean
Roland
  • 7,525
  • 13
  • 61
  • 124