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

Glassfish 4: how to set application or module name for JNDI

I use EJB inside OSGi bundles. And now when I need to get EJB I have long jndi, for example: bean = (InterfaceName) ctx.lookup("java:global/longBundleName_version/OrganizationDirBean!and.plus.path.and.InterfaceName"); I want to change this…
user2022068
7
votes
1 answer

injectionPoint.getBean() returns null if bean is an EJB bean in Java EE 7 (CDI 1.1)

I want to get bean from producer method in order to read its properties. In some scenarios the bean is a EJB Singleton bean. I've simplified my code to focus on the problem. My simple qualifier: @Qualifier @Retention(RUNTIME) @Target({TYPE, METHOD,…
A.Panzer
  • 391
  • 3
  • 15
7
votes
0 answers

GlassFish deployment error: ComponentProvider is not found

This looks like a configuration problem in GlassFish which I cannot resolve. To make it worse, GlassFish deploys fine on one of my laptops, but not on the other. Context: I am developing a RESTful service/API, building it with Maven, packaging it…
Masinov
  • 233
  • 4
  • 11
7
votes
2 answers

NetBeans - "sun-resources.xml" vs. "glassfish-resources.xml"

Do you know how Netbeans decides which filename to use for the application-scoped resources: sun-resources.xml or glassfish-resources.xml? Is this name configurable or hard-coded? As far as I understand GlassFish supports sun-resources.xml for…
Ebeneezer
  • 89
  • 5
7
votes
1 answer

Upgrading Jackson in GlassFish 4.1

I am using GlassFish 4.1, which includes Jackson 2.3.2. I would like to upgrade to the newest version of Jackson (currently 2.4.4). Is the procedure for upgrading Jackson in GlassFish 4.1 as simple as: a) stopping GlassFish b) deleting the…
XDR
  • 4,070
  • 3
  • 30
  • 54
7
votes
1 answer

How to list all JNDI entries in "java:global" namespace

Goal is to list all the JNDI entries programmatically. new InitialContext().list("java:global") doesn't work. EJB 3.1, Wildfly or Glassfish 4
anergy
  • 1,374
  • 2
  • 13
  • 29
7
votes
2 answers

Issue Glassfish 4 doesn't appear glassfish-web

I'm trying to create a descriptor file for my Java web application project. For this project i am using: Netbeans 8.0 & GlassFish 4 When I try to create the glassfish descriptor file. Netbeans shows into the dialog window that is going to create a…
Erikson Murrugarra
  • 1,379
  • 3
  • 13
  • 22
7
votes
2 answers

Glassfish 4 - JDBC Realm

What's the difference between the Password encryption algorithm and the Digest Algorithm in Glassfish 4? Because Password encryption algorithm cannot be blank, I used MD5, and for Encoding, Hex. The Digest Algorithm is blank, so the default is…
Arnold Galovics
  • 3,246
  • 3
  • 22
  • 33
7
votes
1 answer

Glassfish 4 server stops unexpectedly

I'm new to GlassFish, and to application servers in general. I have an Amazon EC2 instance running Ubuntu and have installed GlassFish 4. It starts up without problems, but after a while the GlassFish server just shuts down all by itself. I have…
Sti
  • 8,275
  • 9
  • 62
  • 124
7
votes
0 answers

Solving org.glassfish.deployment.common.DeploymentException: CDI deployment failure - Cassandra Datastax Java Driver, Maven, Glassfish 4

I'm just posting this as a solution for those who encounters error in using Datastax's Java Driver on Glassfish 4 through Maven deployment. As was written on Datastax's web site, the dependency of the driver is:
6
votes
2 answers

How can I add GlassFish 4.1 server in Eclipse Neon 2?

I have a fresh installation of Eclipse IDE for Java EE Developers - for WIndows 64bit - Version: Neon.2 Release (4.6.2) I have downloaded the newest editions of GlassFish server 4.1.1 - both Full & Web Profie I've installed the latest GlassFish…
krokodilko
  • 35,300
  • 7
  • 55
  • 79
6
votes
2 answers

How do i reset the forgotten password of glassfish server 4

Recently, i change the password for admin, and unfortunately i don't remember the password of my glassfish server 4. How, can i reset the password. I've followed the instruction provided in the following link…
Jagesh Maharjan
  • 866
  • 1
  • 11
  • 24
6
votes
1 answer

Prevent Glassfish from using its own versions of libraries instead of those in a project

Glassfish has whole bunch of third-side libraries stored in its modules directory. To my surprise, if my project uses a library which is present there, Glassfish will provide it from there, instead of the right version I have packed-in in my WAR…
Mikhail Batcer
  • 1,938
  • 7
  • 37
  • 57
6
votes
2 answers

Connecting JConsole to remote glassfish 4.1 / 4.1.1 via JMX

GlassFish running on a host with a public ip address and jmx port 8986 On startup JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://test.anahata.net.au:8986/jndi/rmi://test.anahata.net.au:8986/jmxrmi]] When I try to…
pranahata
  • 530
  • 4
  • 18
6
votes
1 answer

Glassfish 4 Grizzly Threads Heavy CPU usage

I have a Jersey application running on Glassfish 4 (4.1 build 13), JDK 1.7 update 67 and AWS Linux AMI and I'm noticing that after some hours running it, CPU usage goes up and stays up even though clients are stopped. Running "top -H" identifies 2…
user3112808
  • 93
  • 1
  • 4
1 2
3
60 61