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

LDAP authentication and Database Authorization J2EE

I'm doing a web app where I have to login as an LDAP user (which works fine until now), but the thing is that for every user, I need some roles that aren't in LDAP but in my Database. I'm working with J2EE 7, Glassfish, and MySQL. Anyone knows how…
0
votes
1 answer

Java EE Ear application deployment failing -- javaDB persistance issue

I know why it's failing -- it can't find the resource I've specified in the persistence.xml file. Which is purely wrong. I created the database, and connected it to netbeans. What I don't know is why there's extra characters for the resource name in…
Richard Barker
  • 1,161
  • 2
  • 12
  • 30
0
votes
1 answer

Custom events for GlassFish in Java Flight Recorder / Java Mission Control

I've read that GlassFish provides custom events for Java Flight Recorder (JFR) / Java Mission Control (JMC). I tried viewing in JMC 5.4 a JFR 5.3 recording obtained from GlassFish 4.1 running in Java 7u67. The recording was setup from the command…
XDR
  • 4,070
  • 3
  • 30
  • 54
0
votes
1 answer

GlassFish 4.1 - simultaneous access to web admin console of two domains of the same GF

I use GlassFish 4.1 - final release (downloaded from java.net). I have two domains - domain1 and domain2 The problem is that I can't work simultaneously with web admin console of two domains of the same GF server. I open admin of domain1 -…
user2022068
0
votes
3 answers

CDI Inject Alternatives {identifier not found}

I already checked other posts but nothing seems to solve my trivial issue. Hope you can help me. I created a J2EE application with NetBeans 8.0.1 and GlassFish 4.1. I have an input.xhtml and a show.xhtml file. (Both are facelets and use…
0x44656E6E79
  • 1,053
  • 3
  • 14
  • 21
0
votes
0 answers

Jersey2 + JacksonFeature issues on Glashfish 4

I have a RESTful aplication with jersey 2 (2.13) and glashfish4. My rest services works, but I want use special configuration in the pojo/json json/pojo conversion as @JsonIngnore annotation to avoid circular references (I'm using hibernate too). I…
Gere
  • 2,114
  • 24
  • 24
0
votes
2 answers

How to configure Wildfly JMS connection factory and destination

I have migrated recently from Glassfish 4 to Wildfly 8.1 I have configured JMS Connection Factory and Destination in Glassfish as: connection factory------------------------------ jndi name: emailConnectionFactory resource type:…
jakentus
  • 896
  • 12
  • 22
0
votes
1 answer

Glassfish 4 hangs after some time

I have glassfish 4 instance, and a simple java app with servlets on it (using mysql). After some time, server hangs, and I can't get any replay from it. After force restart from command line everything works fine for some time... I don't understand…
0
votes
1 answer

ClassNotFoundException: com.sun.gjc.spi.base.ConnectionHolder

When trying to persist an entity containing an oracle.spatial.geometry.JGeometry-object I keep getting this warning: WARNING: java.lang.ClassNotFoundException: com.sun.gjc.spi.base.ConnectionHolder. The object gets saved correctly in DB but…
0
votes
0 answers

CDI + JSF does not work

I created a simple Maven project in Eclipse. My container is Glassfish 4. First I added the following dependencies: pom.xml
otisonoza
  • 1,334
  • 2
  • 14
  • 32
0
votes
0 answers

JPA OrderBy not working

This is a rather simple jpa query but the ordering is never working. doesn´t matter if i add ASC or DESC SELECT hfp FROM Lap l INNER JOIN l.footprints hfp WHERE l.id = :id ORDER BY hfp.date ASC After this query my output is always the same. Query…
perotom
  • 851
  • 13
  • 33
0
votes
1 answer

OSGI Felix with Jasper Reports

I want to create a Module to generate reports using OSGI (Felix in Glassfish), First, I have downloaded and deployed the Jasper Reports Bundle, The Deploy returns "OK" After, I have created a Project Bundle that imports the Jasper Reports Packages,…
jrey
  • 2,163
  • 1
  • 32
  • 48
0
votes
0 answers

WSDL periodically unavailable on Glassfish

Periodically our Glassfish 4.1 installation seems to be unable to allow the WSDL for our Web service to be available. When I try to reach it through my browser it gives a "connection was reset" error. The typical stack trace from our java…
user1539401
  • 293
  • 1
  • 3
  • 10
0
votes
0 answers

Injecting/exposing an EntityManager as a CDI bean

Example : import javax.ejb.Stateless; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import javax.enterprise.context.RequestScoped; import javax.enterprise.inject.Produces; import…
Tiny
  • 27,221
  • 105
  • 339
  • 599
0
votes
2 answers

JPA 2.0 Map

I would like to store a map with Integer,Entity but JPA is storing the entity inline so that means i get an error like that: A truncation error was encountered trying to shrink VARCHAR '곭獲4捯洮瑨潭慳灥牯畴歡⹡汰瑩浩湧⹭潤敬⹈慲摷慲敆潯瑰物湴���Ȁౌ彰敲獩獴敮捥彦整捨䝲潵灴,䱯牧⽥捬楰獥⽰敲獩獴&'…
perotom
  • 851
  • 13
  • 33