[Java] GlassFish 5 Troubleshooting Log

I tried to move GlassFish 5 and it didn't go smoothly, so it's a record of troubleshooting.

environment

OS: Windows Server 2008 R2 on Azure JDK: Zulu

Troubleshooting record

[Resolution] NullPointerException when executing the ʻasadmin` command

It didn't work with JDK 11 (Zulu 11.31.11). It was OK with JDK 8 (Zulu 8.44.0.9).

[Resolve] NoClassDefFoundError exception when ʻasadmin start-domain`

When I tried ʻasadmin start-domain`, I got this error.

Exception in thread "main" MultiException stack 1 of 2
java.lang.NoClassDefFoundError: com/sun/enterprise/admin/launcher/GFLauncherException
        at java.lang.Class.getDeclaredConstructors0(Native Method)
(Omitted)

I'm sorry. I used GlassFish 5.0. Use GlassFish 5.1, which was transferred to Eclipse.

https://projects.eclipse.org/projects/ee4j.glassfish

[Unresolved] IllegalStateException when deployed

When I deployed the war file, I got an error like this:

remote failure:
 Error occurred during deployment:
 Exception while loading the app :
 java.lang.IllegalStateException:
 ContainerBase.addChild:
 start:
 org.apache.catalina.LifecycleException:
 org.apache.catalina.LifecycleException:
 org.glassfish.jersey.server.model.ModelValidationException:
 Validation of the application resource model has failed during application initialization.
[[FATAL] No injection source found for a parameter of type public java.lang.String service.AddonFacadeREST.create(java.io.File,java.io.File,java.lang.String,javax.ws.rs.core.SecurityContext) at index 0.; source='ResourceMethod{httpMethod=PO
(Omitted)

GlassFish 5 gave up. I decided to use 4.1.2. It's in good shape.

Recommended Posts

[Java] GlassFish 5 Troubleshooting Log
About Java log output
Docker-Client Java API Troubleshooting
Troubleshooting with Java Flight Recorder
Java standard log output sample
Log Java NullPointerException stack trace
Log output to file in Java
Java
Java
Introduction to Java Web Apps Performance Troubleshooting