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
1 answer

Custom bean validation does not `@inject` CDI beans and does not interpolate message?

I am using GF4 with bean validation. I am trying to @Inject a service bean in my custom validator but I get a null value. public class TestValidator implements ConstraintValidator<>{ @Inject Service myService; } Isn't this suppose to be working…
Ioannis Deligiannis
  • 2,679
  • 5
  • 25
  • 48
0
votes
2 answers

A connection pool error in CloudBees Java EE/Glassfish 4 Full plateform

CloudBees is add a new Java EE 7/Glassfish 4 Full plateform in their clickstart. If I understand correctly, this mean that it support all Java EE 7 features(contain JMS app). But when I run my JMS app, it log a error "Failed to obtain/create…
0
votes
0 answers

Trying to read tiff file using jai_imageio

I'm having some issue trying to create a subimage through a doGet method. I'm using jai_imageio, the same method "getInvoiceNumberTif()" works fine when using the main method.But when I try to call the method from servlet I get an exception. …
Gideon Oduro
  • 200
  • 1
  • 2
  • 15
0
votes
1 answer

EJB 3.1 ClassCastException Stateless Session Bean on glassfish server

I am new to EJB and i'm trying to get a simple Stateless Session Bean working. I'm using glassfish for this. What i've done: I've created a jar file containing the interface: @Local public interface SimpleStatelessBeanLocal { public String…
stefaan dutry
  • 1,096
  • 1
  • 10
  • 21
0
votes
1 answer

How to use/configure JAX-RS 2.0, SpringSecurity 3.1.+, EJB 3.2 all together

I am currently trying to setup a project with these main technologies: Java EE 7 EJB 3.2 JAX-RS (Jersey) 2.0 Glassfish 4 Spring Security 3.1.5 I saw that it is possible to write something like that @Stateless @Path("apath") public class…
Laurent
  • 156
  • 2
  • 11
0
votes
1 answer

unable to clean a project because of eclipselink.jar

I am trying to clean a project because of an unvailable servlet, but Glassfish 4 tells me it can't delete a file : ...\my_project\build\web\WEB-INF\lib\eclipselink.jar
0
votes
1 answer

JSF Backing Bean property not saved and commandLink not functional

Two questions today, I have this peace of code: catalog.xhtml:
Irwene
  • 2,807
  • 23
  • 48
0
votes
2 answers

glassfish-web.xml deployment descriptor file is not using GUI tabs in netbeans

I am trying to setup security in my web application and following this tutorial Under section "Configuring Server Deployment Descriptors" when I following following instructions. In the Projects window, expand the project's Configuration…
Developer
  • 25,073
  • 20
  • 81
  • 128
0
votes
1 answer

Using java ee 7 batch processing in Netbeans 7.4 and Glassfish 4

Hi I've created an new Maven Enterprise Application, which gives me 3 modules: {proj}-ear, {proj}-web and {proj}-ejb. I think my Facelets and JSF beans should be in {proj}-web, but in this module, I cannot import from javax.batch.*. If I put the…
cpliu338
  • 645
  • 1
  • 7
  • 20
0
votes
1 answer

Can't run "mvn install" successfully on Java EE 7 tutorials

According to the Java EE 7 tutorial, I reached the point where I need to install the samples archetypes by running the command "mvn install". I'm prompted this error [INFO] [talledLocalContainer] PER01003: Deployment encountered SQL…
Muhammad Gelbana
  • 3,890
  • 3
  • 43
  • 81
0
votes
1 answer

Glassfish4 EE JSF java.lang.ClassNotFoundException: javax.faces.webapp.JSFServlet

I can't seem to figure this one out... When deploying a JSF web app Glassfish complains about not being able to find JSFSServlet. It's Glassfish 4 EE and I checked that c:/glassfish4/glassfish/modules contains javax.faces.jar. My webapp doesn't have…
Atheba
  • 33
  • 9
0
votes
1 answer

How to configure Java EE 7 application to use MySQL connection pool in GlassFish

I have a GlassFish 4.0 server, and I've configured a MySQL connection pool and a resource name for the pool. I can access the pool using simple JDBC. Now I want to use JPA, and this is where I'm lost. I believe that Glassfish already includes…
Rick
  • 362
  • 5
  • 16
0
votes
1 answer

Glassfish 4 netbeans 7.4

I am having an issue with Glassfish 4.0 using netbeans 7.4. The 'Enable JDBC Driver Deployment' in netbeans is grayed out. I am unable to deploy the data resources from netbeans to Glassfish . What am i doing wrong ? The glassfish server is on a…
amol ghonge
  • 73
  • 1
  • 5
0
votes
2 answers

using GlassFish 4.0 and getting No suitable driver found for jdbc:mysql error

the following error i am getting; type Exception report messageInternal Server Error descriptionThe server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException:…
Roshan
  • 645
  • 1
  • 11
  • 36
0
votes
0 answers

websocket clients authetication with glassfish in server side

I am using glassfish 4.0 with websocket support add i would like to know how it is possible to check the origin of webcoket clients and autheticate or not their requests. Please help i cant find any solution.