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

WELD CDI Exception in Glassfish 4

i want to deploy an jax-rs 2.0 (jersey 2.0) webservice to my glassfish 4, but i get an weld CDI exception. I have no beans.xml in my project. SEVERE: Undeployment failed for context /restExample SEVERE: Exception while loading the app : CDI…
Tim
  • 643
  • 3
  • 12
  • 23
4
votes
2 answers

Can't install tutorial content for javaee7 tutorial with updatetool

I downloaded the latest javaee7 tutorial and tried downloading the tutorial files with command updatetool. I did following steps: downloaded glassfish4 zip file and unzipped it I set the $AS_JAVA variable equal to $JAVA_HOME. JAVA_HOME was…
VaidAbhishek
  • 5,895
  • 7
  • 43
  • 59
4
votes
3 answers

Error with GlassFish 4 and Eclipse Juno JavaEE

I downloaded Eclipse Juno a while ago but until now used its Java SE perspective only. Today I downloaded GlassFish 4 for Windows and installed it. During installation I got a screen that showed that installation process didn't find Java JDK but…
PM 77-1
  • 12,933
  • 21
  • 68
  • 111
4
votes
2 answers

WELD-001408 Unsatisfied dependencies for type [Validator]

I'm unable to deploy my project after migrating it from Java EE 6 to Java EE 7. I already have CDI enabled (beans.xml with bean-discovery-mode="all" for backwards compatibility) The deployment error does not seem to be related to my code since it…
Juan
  • 467
  • 1
  • 5
  • 19
4
votes
2 answers

Java EE7/Glassfish Update Tool does not show up

I'm trying to do the Java EE 7 tutorials on my Windows 7 laptop. To use the tutorial, you have to run the Update Tool. You can run the Update Tool either by right-clicking on Glassfish 4 under Servers in the Services section of NetBeans. Or you…
Kyle Walker
  • 559
  • 3
  • 12
  • 25
4
votes
3 answers

Eclipse - Glassfish 4 Debugging startup timeout

Glassfish 4.0 final gives a timeout everytime I try to start it in Debug mode. The normal run on server (from Eclipse) does work without a timeout. I've tried running Glassfish 4.0 from Eclipse Juno and Eclipse Kepler, both have the correct port…
Cloud
  • 458
  • 1
  • 13
  • 34
3
votes
5 answers

Intellij 2019.2: GlassFish requires Java SE version 6. Your JDK is version 0

I'm working with IntelliJ 2019.2 and cannot start the Glassfish Server 4.1.2 (Full Platform). I've found some solution proposals for this error, but none of them worked for me, e.g. this post or this…
user10417331
3
votes
2 answers

How to limit the number of threads excecuted by ManagedExecutorService

The class javax.enterprise.concurrent.ManagedExecutorService manages threads within Enterprise Java Bean. As threads in EJBs should not be started in the classical Java SE way, I use the ManagedExecutorService to handle threads. "Obligatory warning:…
3
votes
2 answers

Glassfish4 and Eclipse Neon Cannot bridge runtimes

I am trying to use glassfish4 with eclipse-neon but when i try to add server it gives me following error. I am new to eclispe so i don't know much about it Screenshot of error
Muh. Abdullah
  • 51
  • 1
  • 6
3
votes
0 answers

encryption of jndi in glassfish4

I've found that it had encrypted jndi in glassfish3 as shown in cloveretl However once I use it in glassfish4, I found that it always comes out with the warning : Error in dealiasing the password ${ALIAS=passwd}: Alias passwd does not…
JamLau
  • 31
  • 3
3
votes
1 answer

Well-Known Strategy to avoid Ambiguous dependencies in multi Project Environment

I have a setup of multiple Maven project, ultimately packaged as EAR archive. Those Projects are of the Type jar,ejb or war. Now I have a javax.enterprise.context.SessionScoped CDI Bean, annotaded as javax.enterprise.inject.Default, carrying…
Omega1001
  • 502
  • 6
  • 14
3
votes
3 answers

Glassfish 4.1 - Latest Jersey version

We want to integrate latest Jersey Version in Glassfish 4.1. Glassfish provides Jersey 2.21.0 implementations, so we added Jersey 2.22.2 to WEB-INF/lib. It seams to work with new version. But is this the correct solution? Will Glassfish always put…
Jens Peters
  • 2,075
  • 1
  • 22
  • 30
3
votes
1 answer

Hibernate c3p0 initialization error

After my project is deployed a few times, I get this log and it just pauses there. I have to re-run my project afterwards. How can I solve this and prevent in future? Info: Initializing c3p0-0.9.2-pre2 [built 18-May-2012 10:14:10 -0400; debug?…
Sanal S
  • 1,105
  • 14
  • 27
3
votes
1 answer

Start Glassfish Java DB on Eclipse

How do you start Java DB on Glassfish when Glassfish start, and on Eclipse IDE? The software versions are as follow: Eclipse 4.5.1 (Mars) Glassfish 4.1 (or 4.x) In the past there was an option in Eclipse preferences that allowed to do this. It used…
pntran84
  • 463
  • 1
  • 3
  • 11
3
votes
1 answer

Eclipse Mars crashes when attempting to add GlassFish 4 Server

When I am trying to add a new GlassFish Server (Servers -> New -> Server -> GlassFish 4) Eclipse Mars just crashes (without any errors). Reinstallation of IDE and GlassFish not helped. Maybe someone faced such problem? Help me please. I am using…
minGO
  • 53
  • 3