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:

915 questions
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
  • 3,457
  • 3
  • 23
  • 42
7
votes
1 answer

EntityManager.createQuery() throws NullPointerException

'm getting NullPointerException everytime any EntityManager.createQuery() or EntityManager.createNamedQuery() is called. I'm using Glassfish 4.0, Hibernate 4.3.5 and EJB. I have following hierarchy: DaoTemplate where I have PersistenceContext and…
tvazac
  • 526
  • 8
  • 21
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
  • 989
  • 3
  • 10
  • 21
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…
galovics
  • 2,884
  • 3
  • 15
  • 25
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
  • 7,686
  • 8
  • 57
  • 107
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
  • 32,441
  • 5
  • 40
  • 67
6
votes
1 answer

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
  • 688
  • 1
  • 7
  • 19
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
  • 470
  • 3
  • 18
6
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
  • 351
  • 3
  • 14
6
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…
Tale Masinov
  • 223
  • 4
  • 11
6
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,344
  • 2
  • 13
  • 28
6
votes
1 answer

How to change EclipseLink in GlashFish 4.0?

I want to change EclipseLink from 2.5.0 to 2.5.1 in GlashFish 4.0. I have downloaded the OSGi bundle and replaced the following jar…
Tiny
  • 24,933
  • 92
  • 299
  • 571
6
votes
2 answers

How to make each user access resources at a specific location according to their authority/role in JAAS?

I'm using GlassFish server 4.0 in which I have assigned different authorities/roles to different users. A user may have multiple authorities/roles. For example, an admin user may be associated with ROLE_ADMIN (to perform administrative tasks) and…
Tiny
  • 24,933
  • 92
  • 299
  • 571
1 2
3
60 61