1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【intra-mart】ClassNotFoundExceptionでe Builder上のプロジェクトが起動失敗

Last updated at Posted at 2023-11-22

事象

サーバ起動時、下記エラーが発生する。
[WARN] c.c.s.w.WebApp - [] java.lang.ClassNotFoundException: JsonProcessingException (in EnvironmentClassLoader[web-app:production/webapp/default/{モジュール名}])

[INFO] c.c.s.w.WebApp - [] WebApp[production/webapp/default/{モジュール名}] fail
[23-11-13 17:04:45.867] {resin-49} WebApp[production/webapp/default/{モジュール名}] fail
[WARN] c.c.s.w.WebApp - [] java.lang.ClassNotFoundException: JsonProcessingException (in EnvironmentClassLoader[web-app:production/webapp/default/{モジュール名}])
java.lang.ClassNotFoundException: JsonProcessingException (in EnvironmentClassLoader[web-app:production/webapp/default/{モジュール名}])
	at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1569)
	at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1539)
	at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
	at java.base/java.lang.Class.privateGetPublicMethods(Class.java:3191)
	at java.base/java.lang.Class.getMethods(Class.java:1904)
	at jp.co.intra_mart.system.javascript.JavaMembers.discoverAccessibleMethods(JavaMembers.java:346)
	at jp.co.intra_mart.system.javascript.JavaMembers.discoverAccessibleMethods(JavaMembers.java:302)
	at jp.co.intra_mart.system.javascript.JavaMembers.reflect(JavaMembers.java:419)
	at jp.co.intra_mart.system.javascript.JavaMembers.<init>(JavaMembers.java:43)
	at jp.co.intra_mart.system.javascript.JavaMembers.lookupClass(JavaMembers.java:807)
	at jp.co.intra_mart.system.javascript.NativeJavaClass.initMembers(NativeJavaClass.java:49)
	at jp.co.intra_mart.system.javascript.NativeJavaObject.<init>(NativeJavaObject.java:44)
	at jp.co.intra_mart.system.javascript.NativeJavaClass.<init>(NativeJavaClass.java:43)
	at jp.co.intra_mart.system.javascript.NativeJavaClass.<init>(NativeJavaClass.java:39)
	at jp.co.intra_mart.system.javascript.WrapFactory.wrapJavaClass(WrapFactory.java:134)
	at jp.co.intra_mart.system.javascript.NativeJavaPackage.getPkgProperty(NativeJavaPackage.java:133)
	at jp.co.intra_mart.system.javascript.NativeJavaPackage.get(NativeJavaPackage.java:82)
	at jp.co.intra_mart.system.javascript.ScriptableObject.getProperty(ScriptableObject.java:2185)
	at jp.co.intra_mart.system.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1502)
	at jp.co.intra_mart.system.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1495)
	at jp.co.intra_mart.system.javascript.Interpreter.interpretLoop(Interpreter.java:1239)
	at jp.co.intra_mart.system.javascript.Interpreter.interpret(Interpreter.java:815)
	at jp.co.intra_mart.system.javascript.InterpretedFunction.exec(InterpretedFunction.java:123)
	at jp.co.intra_mart.system.jssp.provider.application.JSSPScriptBuilder.getScriptScope(JSSPScriptBuilder.java:374)
	at jp.co.intra_mart.system.jssp.provider.application.JSSPScriptBuilder.getScriptScope(JSSPScriptBuilder.java:343)
	at jp.co.intra_mart.system.session.FoundationScope4FunctionContainer.load(FoundationScope4FunctionContainer.java:745)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at jp.co.intra_mart.system.javascript.MemberBox.invoke(MemberBox.java:126)
	at jp.co.intra_mart.system.javascript.FunctionObject.call(FunctionObject.java:379)
	at jp.co.intra_mart.system.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
	at jp.co.intra_mart.system.javascript.Interpreter.interpret(Interpreter.java:815)
	at jp.co.intra_mart.system.javascript.InterpretedFunction.exec(InterpretedFunction.java:123)
	at jp.co.intra_mart.system.jssp.provider.application.JSSPScriptBuilder.getScriptScope(JSSPScriptBuilder.java:374)
	at jp.co.intra_mart.system.jssp.provider.application.JSSPScriptBuilder.getScriptScope(JSSPScriptBuilder.java:343)
	at jp.co.intra_mart.system.session.FoundationScope4FunctionContainer.load(FoundationScope4FunctionContainer.java:745)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at jp.co.intra_mart.system.javascript.MemberBox.invoke(MemberBox.java:126)
	at jp.co.intra_mart.system.javascript.FunctionObject.call(FunctionObject.java:379)
	at jp.co.intra_mart.system.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
	at jp.co.intra_mart.system.javascript.Interpreter.interpret(Interpreter.java:815)
	at jp.co.intra_mart.system.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
	at jp.co.intra_mart.system.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
	at jp.co.intra_mart.system.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3101)
	at jp.co.intra_mart.system.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
	at jp.co.intra_mart.system.display.ScriptScope.call(ScriptScope.java:156)
	at jp.co.intra_mart.system.display.ScriptScope.call(ScriptScope.java:142)
	at jp.co.intra_mart.system.service.provider.JavaScriptFunctionInitializer.initializeApplicationScript(JavaScriptFunctionInitializer.java:254)
	at jp.co.intra_mart.system.service.provider.ApplicationRuntimeInitializer.defineAPI(ApplicationRuntimeInitializer.java:211)
	at jp.co.intra_mart.system.service.provider.ApplicationRuntimeInitializer.executeInitializer(ApplicationRuntimeInitializer.java:182)
	at jp.co.intra_mart.system.service.provider.ApplicationRuntimeInitializer.initialize(ApplicationRuntimeInitializer.java:152)
	at jp.co.intra_mart.system.servlet.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:146)
	at com.caucho.server.webapp.WebApp.callInitializers(WebApp.java:3570)
	at com.caucho.server.webapp.WebApp.startImpl(WebApp.java:3898)
	at com.caucho.server.webapp.WebApp.access$700(WebApp.java:209)
	at com.caucho.server.webapp.WebApp$StartupTask.run(WebApp.java:5488)
	at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
	at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)

原因

Accel Platform Libraryが「モジュールパス」に含まれている。

解決方法

Accel Platform Libraryを「クラスパス」に移動し、プロジェクトをクリーンする。
[追加]ライブラリーの追加よりクラスパスに追加。
tempsnip.png

[無事起動]
image.png

結論

モジュールたちがIMのライブラリを見つけられなかったみたい。
Accel Platform Libraryはクラスパスに含めましょう。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?