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

Accepting dynamic JSON object in a jersey serice

I'm new to Java. In jersey, how can I accept a dynamic object (not bound to a class)? Example: public class MyResource extends Application { @POST public String process(??? obj) { return obj.get("dynamic_property"); } } I thought that…
Igor S.
  • 553
  • 4
  • 10
0
votes
0 answers

SSL Error when I launch SPARQL query in Web Service project using Netbeans and Glassfish

I have a question: I have this code: @WebService(serviceName = "Prova_WS") @Stateless() public class Prova_WS{ /** * Web service operation * @param f * @param label * @return */ …
Musich87
  • 562
  • 1
  • 12
  • 31
0
votes
1 answer

Glassfish Connection Pool - java.sql.SQLException: Connection closed

I'm using for a web project JSF2 with Oracle Glassfish Server Open Source Edition 4.0 and Oracle Database 11g (Version 11.2.0-1.0). The server and database are running on the same windows machine. A connection pool managed the connections to the…
0
votes
4 answers

Cannot set the glassfish server runtime enviroment in eclipse

I changed my default jre to jdk 1.7x in eclipse kepler. I was getting a null pointer exception when I started glassfish 4. To fix this issue, I did all the steps to change the jre/jdk of my glassfish. On the final screen, when I click finish,…
james
  • 1,667
  • 5
  • 26
  • 38
0
votes
1 answer

Glassfish loads JavaScript files really slow (> 1 minute)

I have a weird problem with my Glassfish-Web application. Most of the time, my index.jsp site loads really fast. But sometimes (especially after updating a new version of the application), I get a bunch of TimeOutExceptions in Glassfish. In the…
hoppeljs
  • 31
  • 5
0
votes
1 answer

ClassCastException during cast to interface

I'm trying to play with OSGi and I stuck with one problem... I have simple class FirstVersionPrinter public class FirstVersionPrinter implements VersionPrinter { private final static String VERSION = "111"; @Override public String printVersion()…
Alex
  • 967
  • 4
  • 15
  • 38
0
votes
3 answers

"Unsatisfied dependencies" injecting @Stateless into managed bean

My problem differs from both WELD-001408 Unsatisfied dependencies when injecting EntityManager and WELD-001408 Unsatisfied dependencies. While those issues dealt with trying to inject a managed bean into a stateless EJB, I'm trying to do the…
John Manko
  • 1,828
  • 27
  • 51
0
votes
1 answer

Glassfish and eclipse - Getting unexpected Null pointer exception

I just opened the .log file in my .metadata folder of Eclipse. I see that my glassfish server has thrown a null pointer exception. I don't know why this happened. Can someone help me to figure it out and fix it ? !ENTRY…
james
  • 1,667
  • 5
  • 26
  • 38
0
votes
1 answer

Practise remote debugging on local glassfish server?

I tried to do remote debugging on a remote glassfish server for some time, using eclipse. I want to do it on my local server which is in my own computer. I followed the same instructions that one follows for setting up remote debugging. In…
james
  • 1,667
  • 5
  • 26
  • 38
0
votes
1 answer

h:outputLink value escaped

I am using JSF with glassfish 4.0. The following fragment of code ...skipped... ...skipped...
im_3772071
  • 11
  • 4
0
votes
1 answer

GlassFish 4.0 as a windows 7 service

I am using GlassFish 4.0 in a cluster configuration with two nodes and each node has one instance. The DAS and two instances are setup as Window 7 services that use a logon account that has administrator privileges. Upon starting the machine the…
0
votes
1 answer

Error occurred during deployment: Exception while deploying the app : UnsupportedClassVersionError

An error has occurred Error occurred during deployment: Exception while deploying the app [EnterpriseApplication1] : UnsupportedClassVersionError: Class mn.interactive.module.meta.dao.MetaDataDao has unsupported major…
0
votes
1 answer

Eclipse EAR project structure in eclipse

For the past years I have been working with Java EE 6 and simpler application structures, where only one ejb and one war project were present. Now we have a more complex project, where I need to have additional modules: - JPA package - client…
csabee
  • 217
  • 2
  • 12
0
votes
1 answer

How to accessing a business bean via JNDI from a library?

I've written my own authentification realm for Glassfish server 4. As the reference says, I've placed the jar with the realm class and login module in domains/[domain]/lib and everything works. Now I want to access a business bean from this realm…
mythbu
  • 786
  • 1
  • 7
  • 20
0
votes
1 answer

How to make @EJB injection work on the server?

Looking at this answer, it says: If you don't want to use an Application Client Container and instead just run the application client class through a java command, injection won't be possible and you'll have to perform a JNDI lookup. However,…
Ken Y-N
  • 14,644
  • 21
  • 71
  • 114