LoginSignup
0
0

More than 3 years have passed since last update.

[Java] GlassFish 5トラブルシュート記録

Posted at

GlassFish 5を動かそうとして、意外にすんなりいかなかったのでトラブルシュートの記録です。

環境

OS: Azure上のWindows Server 2008 R2
JDK: Zulu

トラブルシュート記録

[解決] asadminコマンドを実行するとNullPointerException

JDK 11 (Zulu 11.31.11)ではだめでした。
JDK 8 (Zulu 8.44.0.9)を使うとOKでした。

[解決] asadmin start-domainするとNoClassDefFoundError例外

asadmin start-domainとすると、こんなエラーになりました。

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)
(略)

すみません。GlassFish 5.0使ってました。
Eclipseに移管したGlassFish 5.1を使いましょう。

[未解決] デプロイするとIllegalStateException

warファイルをデプロイすると、このようなエラーが出ました。

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
(略)

GlassFish 5あきらめました。
4.1.2を使うことにしました。快調です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0