项目

一般

简介

应用部署启动出现Caused by: java.lang.ClassNotFoundException: org.operamasks.el.eval.ExpressionFactoryImpl

由 何 善才 在 大约 3 年 之前添加

异常详情:

"C:\Program Files\Java\jdk1.8.0_202\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:55800,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -javaagent:C:\Users\kingdee\AppData\Local\JetBrains\IntelliJIdea2021.1\captureAgent\debugger-agent.jar -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_202\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_202\jre\lib\rt.jar;D:\ideaCode\spring-boot_ApusicV9-start-1.5\target\classes;D:\repository\org\springframework\boot\spring-boot-loader\1.5.3.RELEASE\spring-boot-loader-1.5.3.RELEASE.jar;D:\repository\com\apusic\apusic-micro-spring-boot-starter\9.5\apusic-micro-spring-boot-starter-9.5.jar;D:\repository\org\springframework\boot\spring-boot-starter-web\1.5.3.RELEASE\spring-boot-starter-web-1.5.3.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter\1.5.3.RELEASE\spring-boot-starter-1.5.3.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot\1.5.3.RELEASE\spring-boot-1.5.3.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-autoconfigure\1.5.3.RELEASE\spring-boot-autoconfigure-1.5.3.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter-logging\1.5.3.RELEASE\spring-boot-starter-logging-1.5.3.RELEASE.jar;D:\repository\ch\qos\logback\logback-classic\1.1.11\logback-classic-1.1.11.jar;D:\repository\ch\qos\logback\logback-core\1.1.11\logback-core-1.1.11.jar;D:\repository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;D:\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\repository\org\slf4j\log4j-over-slf4j\1.7.25\log4j-over-slf4j-1.7.25.jar;D:\repository\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;D:\repository\org\hibernate\hibernate-validator\5.3.5.Final\hibernate-validator-5.3.5.Final.jar;D:\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;D:\repository\org\jboss\logging\jboss-logging\3.3.1.Final\jboss-logging-3.3.1.Final.jar;D:\repository\com\fasterxml\classmate\1.3.3\classmate-1.3.3.jar;D:\repository\com\fasterxml\jackson\core\jackson-databind\2.8.8\jackson-databind-2.8.8.jar;D:\repository\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.8.8\jackson-core-2.8.8.jar;D:\repository\org\springframework\spring-web\4.3.8.RELEASE\spring-web-4.3.8.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.8.RELEASE\spring-aop-4.3.8.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.8.RELEASE\spring-beans-4.3.8.RELEASE.jar;D:\repository\org\springframework\spring-context\4.3.8.RELEASE\spring-context-4.3.8.RELEASE.jar;D:\repository\org\springframework\spring-webmvc\4.3.8.RELEASE\spring-webmvc-4.3.8.RELEASE.jar;D:\repository\org\springframework\spring-expression\4.3.8.RELEASE\spring-expression-4.3.8.RELEASE.jar;D:\repository\com\apusic\apusic-micro-core\9.5\apusic-micro-core-9.5.jar;D:\repository\com\apusic\javaee\6.0\javaee-6.0.jar;D:\repository\com\apusic\apusic-weld-core\2.1.2.Final\apusic-weld-core-2.1.2.Final.jar;D:\repository\com\apusic\apusic-weld-spi\2.1.Final\apusic-weld-spi-2.1.Final.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\springframework\spring-core\4.3.8.RELEASE\spring-core-4.3.8.RELEASE.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2021.1.2\lib\idea_rt.jar" com.example.springbootaasapusicv9.SpringbootAasApusicV9Application
Connected to the target VM, address: '127.0.0.1:55800', transport: 'socket'

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.3.RELEASE)

2021-11-26 19:31:56.751  INFO 11084 --- [           main] c.e.s.SpringbootAasApusicV9Application   : Starting SpringbootAasApusicV9Application on DESKTOP-CMLPD8E with PID 11084 (D:\ideaCode\spring-boot_ApusicV9-start-1.5\target\classes started by kingdee in D:\ideaCode\spring-boot_ApusicV9-start-1.5)
2021-11-26 19:31:56.754  INFO 11084 --- [           main] c.e.s.SpringbootAasApusicV9Application   : No active profile set, falling back to default profiles: default
2021-11-26 19:31:56.797  INFO 11084 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5b38c1ec: startup date [Fri Nov 26 19:31:56 CST 2021]; root of context hierarchy
2021-11-26 19:31:57.196  INFO 11084 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2021-11-26 19:31:57.224  WARN 11084 --- [           main] o.h.v.m.ParameterMessageInterpolator     : HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported
2021-11-26 19:31:57.301  WARN 11084 --- [           main] o.h.v.m.ParameterMessageInterpolator     : HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported
no apusic home setting, use the user.dir environment variable instead
Apusic Application Server Enterprise Edition 9.0 SP5
Licensed to sztest
Licensed from 2021-01-01 to 2021-12-31
Connections limited to 10
CPUs limited to 1

2021-11-26 19:31:57 信息 [con.out-Thread 1] 101
2021-11-26 19:31:57 信息 [apusic.service.ThreadPool.default-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.ThreadPool.MuxHandler-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.ThreadPool.HTTPHandler-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.ThreadPool.MQHandler-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.ThreadPool.ORBWorker-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.Muxer-Thread 1] 侦听端口 6888
2021-11-26 19:31:57 信息 [apusic.service.Muxer-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.ORB-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.Naming-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.Transaction-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.JDBC-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.realm.default-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.Security-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.Web-Thread 1] write apusic port fail
2021-11-26 19:31:57 信息 [apusic.service.MUXEndpoint-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.Web-Thread 1] apusic.web.io.type = nio
2021-11-26 19:31:57 信息 [apusic.service.Web-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.HttpSessionStore-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.HttpSession-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.J2EEDeployer-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.service.RMIConnector-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.bridge.JNDIResourceService-Thread 1] 成功启动
2021-11-26 19:31:57 信息 [apusic.server.Main-Thread 1] 服务器就绪。
2021-11-26 19:31:57 信息 [apusic.service.Muxer-Thread 1] 成功停止
2021-11-26 19:31:57 信息 [con.out-Thread 1] 2021-11-26 19:31:57.790  WARN 11084 --- [           main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: org/operamasks/el/eval/ExpressionFactoryImpl
2021-11-26 19:31:57 信息 [con.out-Thread 1] 2021-11-26 19:31:57.797 ERROR 11084 --- [           main] o.s.boot.SpringApplication               : Application startup failed

org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: org/operamasks/el/eval/ExpressionFactoryImpl
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:536) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at com.example.springbootaasapusicv9.SpringbootAasApusicV9Application.main(SpringbootAasApusicV9Application.java:10) [classes/:na]
Caused by: java.lang.NoClassDefFoundError: org/operamasks/el/eval/ExpressionFactoryImpl
    at com.apusic.web.jsp.runtime.JspApplicationContextImpl.<init>(JspApplicationContextImpl.java:35) ~[apusic-micro-core-9.5.jar:na]
    at com.apusic.web.container.WebContainer.<init>(WebContainer.java:183) ~[apusic-micro-core-9.5.jar:na]
    at com.apusic.web.http.VirtualHost.addContextWithoutStart(VirtualHost.java:524) ~[apusic-micro-core-9.5.jar:na]
    at com.apusic.springframework.boot.context.embedded.ApusicEmbeddedServletContainerFactory.getEmbeddedServletContainer(ApusicEmbeddedServletContainerFactory.java:84) ~[apusic-micro-spring-boot-starter-9.5.jar:na]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    ... 8 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.operamasks.el.eval.ExpressionFactoryImpl
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_202]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_202]
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_202]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_202]
    ... 14 common frames omitted
 

解决:引入依赖

<dependency>
    <groupId>org.operamasks</groupId>
    <artifactId>elite-impl</artifactId>
    <version>0.5.0</version>
</dependency>
<dependency>
    <groupId>org.operamasks.elite</groupId>
    <artifactId>elite</artifactId>
    <version>0.5.0</version>
</dependency>