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
0 answers

Ubuntu 16.04 Eclipse Oxygen + GlassFish = falls eclipse

On Ubuntu 16.04 I have installed Eclipse Oxygen and the GlassFish Tools. During the steps on picture Eclipse is shooting down without any message: What am I doing wrong?
0
votes
1 answer

OneToOne eclipseLink

I want to create a oneToOne relation between PatientEntity and MonitoringEntity but i have this error :The attribute [patient] in entity class [class ch.lestoises.monitopsy.medication.entity.MonitoringEntity] has a mappedBy value of [monitoringCode]…
kao
  • 11
  • 5
0
votes
1 answer

Glassfish Logging Custom Pattern

I would like to print some MDC values in Glassfish, but I can't find where to change the logging pattern. This is what I have in my code: MDC.put("something", "SOME_VALUE"); But then I need to configure somewhere the pattern like this: %-4r…
Pablo Santa Cruz
  • 176,835
  • 32
  • 241
  • 292
0
votes
1 answer

How to switch with another application when redeploying a WAR?

Sorry if this question was asked before, if it was, I didn't find it. I'm using GlassFish 4. When I need to redeploy an application (for fixing a bug for exemple), its URL will return temporarily a 404 NOT FOUND error until the application is fully…
Nordine
  • 824
  • 7
  • 25
0
votes
1 answer

IncorrectString with mariadb and not with mysql5.5

A java application using payara (glassfish) try to save the body of an email into a column into db (with eclipslink) We have the same application onto 2 different server,that differ for dbserver: the first one is with mariadb 10.1.26 (java…
user2946593
  • 63
  • 2
  • 11
0
votes
0 answers

JDBC Realm not working : Login failed: No LoginModules configured for jdbcAuth

Getting the following error while i try to login : Warning: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: No LoginModules configured for jdbcAuth My Glassfish server version is 4 I am working…
Nihal Saxena
  • 948
  • 3
  • 11
  • 24
0
votes
1 answer

Glassfish4 JMX Configuration using asadmin

I have Glassfish4 and want make JMX to listen only to localhost and diable TLS and Security via asaadmin. I can do the same via Admin Web UI, but not sure how to do that via asadim. The below command updates the jmx-connecter property under…
Shan
  • 2,141
  • 2
  • 17
  • 32
0
votes
2 answers

Multipoint discovery in glassfish

In AWS, If I want to add new server instance of Glassfish dynamically where my EJB project is deployed. In TomEE, we have multipoint discovery, where if I add new server it will automatically connect with the existing server cluster. Is any such…
Vicky Rathee
  • 69
  • 11
0
votes
1 answer

Cannot install Glassfish update tool

Firstly, there are related posts: GlassFish Server update center installation times out Java EE 7 updatetool installation fails I got my Java EE 7 SDK (Update 3) from here: http://www.oracle.com/technetwork/java/javaee/downloads/index.html I have…
Broots Waymb
  • 4,713
  • 3
  • 28
  • 51
0
votes
1 answer

EAR structure for Java EE

Migrating an application from Glassfish 2.1.1 to Glassfish 4. Upon deploying the .ear to the server using the admin console, an error of the type (Archive of type xxxx.ear is not recognised) - while the same ear file is deployable to glassfish 2.…
user3601148
  • 175
  • 1
  • 9
0
votes
1 answer

Can i override the behavior of .jsp implicit objects?

I want to know if I can make the .jsp file to use another class that inherits the behavior of HttpServlet when it makes the translation from .jsp to .java . In other words, I want to override the behavior of the HttpServlet used in .jsp.
user6223781
0
votes
1 answer

Installing a certificate in Glassfish v4 without storing password in config files

I have a wildcard certificate I want to install in a Glassfish v4 server. After converting certificate format and importing it to java keystore (using commands already discussed in other topics) we have to configure file domain.xml to include a…
Denio Mariz
  • 1,065
  • 1
  • 10
  • 12
0
votes
1 answer

Glassfish Exception during Deployment: Failure while processing glassfish-resources.xml(s) in the archive

I'm new to Glassfish and I already discovered that Glassfish 4.1.1 (and I guess 4.1) had a bug. I got around that after a google search and I updated to Glassfish 4.1.2. Now, I'm getting the following exception and stack trace when I deploy my…
Paul Allen
  • 11
  • 1
  • 6
0
votes
1 answer

openJPA configured not persisting

I have a very minimal test that properly configures openJPA, JTA, database connectivity, enhancement and emits no exceptions however it does not persist with the simple code below. What more do I need to show or what is necessary beyond the simple…
cp.
  • 1,241
  • 5
  • 15
  • 26
0
votes
1 answer

curl error method PUT

I am trying to use the method PUT for a REST service and I got an error: curl -v -H "Content-Type: application/xml" -X PUT --data-binary "@putUsers.xml" http://localhost:8080/RestDB/webresources/User/5 The response is: Trying ::1... * Connected to…
user4533396