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

How to make glassfish 4 recognize the new value for parameter org.jboss.weld.conversation.concurrentAccessTimeout of Weld?

I am using PrimeFaces 5.3 + Java EE 7 on Glassfish 4 when I meet a long execution operation. I constantly have this error message which interrupt the execution : WELD-000315: Failed to acquire conversation lock in 1,000 ms for Transient…
1
vote
1 answer

Added io.druid dependency breaks Glassfish deployment

My problem looks similar to this one but I already use Glassfish 4.1.13 I try to add druid-client to my Glassfish project. I added druid-client as separate module. pom.xml of druid-client includes following Druid dependency:
Bo.
  • 605
  • 1
  • 12
  • 28
1
vote
1 answer

Why we should add @Stateless to an Entity in a Maven Project?

When I created my first empty Entreprise Application with Maven, I had this error, even when I created an Entity: Invalid ejb jar it contains zero ejb Note: 1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or…
Mehdi Bouzidi
  • 1,937
  • 3
  • 15
  • 31
1
vote
0 answers

Jersey-multipart in glassfish 4.1.1 error @FormDataParam

I I have imported jersey-multipart and I have used @FormaDataParam. There is an error that project isn't deployed because of the annotation. Look at Error Message. I hope someone give me solution. Thank you very much!
Sarith Nob
  • 43
  • 8
1
vote
1 answer

Using a relative path as the value in a h:graphicImage tag

I'm using the h:graphicImage tag in HTML to load an image in a directory different from my current directory. For example, say my working directory is: /Users/nameOfUser/NetBeansProjects/MyProject/web and the image is located in directory:…
1
vote
0 answers

InitialContext lookup very slow in Glassfish server

I have a default Glassfish server setup and I'm trying to lookup the default connection factory for JMS (jms/__defaultConnectionFactory). I can get the InitialContext but when I call lookup it 'hangs' for about 60 secs (sometimes more sometimes…
Kevin Jones
  • 2,369
  • 16
  • 26
1
vote
0 answers

Glassfish 4 connection pool handling

I am trying to migrate an application from Glassfish 3.1.1.2 to Glassfish 4.0. During this process I came up with a problem accessing our database. It looked like when injecting a jdbc resouce @Resource(name = "jdbc/MyDBResource") private…
1
vote
2 answers

Why am I getting a TransactionRequiredException in @PostConstruct method in JTA EJB?

I have Java EE project where I want to use an injected JTA EntityManager in the @PostConstruct method. EntityManager.persist fails due to javax.persistence.TransactionRequiredException. It succeeds when called through an EJB instance injected into a…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
1
vote
0 answers

Passing Class object containing HashMap> as instance variable to RESTService

i have a POJO class BookType as: package com.jersey.series.json.service; import java.util.HashMap; import java.util.Set; public class BookType { @Override public String toString() { return "BookType [bookId=" + bookId + ", bookName=" +…
saurabhiitr
  • 47
  • 1
  • 7
1
vote
2 answers

WAR module can't find EJB classes in EJB module in the same EAR

Well, I have an EAR project with the following structure: EarSample - EarSample-ejb.jar - EarSample-web.war Inside the EJB module a have a simple stateless session bean with no interfaces (no-view interface). What's happening is that I'm not…
Jaumzera
  • 2,305
  • 1
  • 30
  • 44
1
vote
1 answer

Send multipart post to glassfish(payara) fail if using Certificate authentication

We have Rest web services on a glassfish4 (payara) server Our rest client is based on httpClient Lib As Authentication we use certificate and basic auth. The client work well getting and posting infos to WS But when we send a multipart post with…
1
vote
1 answer

HTTP Status 500 - Internal Server Error on Glassfish

I recently changed my domain SSL certificate since the old one was expiring. The certificate was successfully installed on glassfish and I my application was up and running. The challenge comes in whenever I log in to glassfish admin console , I…
bademba
  • 237
  • 4
  • 14
1
vote
1 answer

How to delete system property in glassfish

I have created a system property using this command: asadmin create-system-properties --target test-backend-inst-config warning.enable.for.Institution.value=false I want to delete this system property so when i try to use this command: asadmin…
user526206
1
vote
1 answer

Error creating bundle cache when starting GlassFish 4 in Eclipse (Linux)

When I try to start the GlassFish 4 server from the Servers tab in Eclipse Mars, I get the following error: 'Starting GlassFish 4 at localhost [domain1]' has encountered a problem. Unable to start server due following issues: Launch process failed…
ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
1
vote
1 answer

Enabling Jersey trace logging causes MaxHeaderCountExceededException

I am trying to debug my jersey 2 app on Payara 162, but on every request, after the trace information is printed I get this exception and the client gets no response: org.glassfish.grizzly.http.util.MimeHeaders$MaxHeaderCountExceededException:…