resin-pro-4.0.53报错java.lang.Error: java.lang.ClassNotFoundException: com.caucho.loader.SystemClassLoader
最初并未发现,笔者的系统环境变量JAVA_HOME变量设置错误
D:\develop\Java\x64\jdk1.8.0_144 #最初使用了阉割版的JDK
改成完整安装的JDK就可以
D:\develop\Java\jdk1.8.0_144
另外还有设置RESIN_HOME环境变量
RESIN_HOME=D:\develop\resin-pro-4.0.
设置环境变量
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%RESIN_HOME%\lib\resin.jar;%RESIN_HOME%\lib\javamail-.jar
网上说要把lib目录下所有jar加进去,即使JAVA_HOME设置正确,不加仍旧保持
缺少%RESIN_HOME%\lib\resin.jar;报错
Error occurred during initialization of VM
java.lang.Error: java.lang.ClassNotFoundException: com.caucho.loader.SystemClassLoader
at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1469)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1436)
Caused by: java.lang.ClassNotFoundException: com.caucho.loader.SystemClassLoader at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at java.lang.SystemClassLoaderAction.run(ClassLoader.java:2209)
at java.lang.SystemClassLoaderAction.run(ClassLoader.java:2195)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1456)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1436)
缺少%RESIN_HOME%\lib\javamail-141.jar报错:
file:/d:/develop/resin-pro-4.0.53/conf/health.xml:723: com.caucho.config.core.ResinIf.init(): java.lang.NoClassDefFoundError: javax/mail/Session 721: - Automatic PDF reports
722: -->
723: <resin:if test="${pdf_summary}">
724: <health:PdfReport>
725: <path>${resin.root}/doc/admin/pdf-gen.php</path> at com.caucho.config.xml.XmlConfigContext.error(XmlConfigContext.java:1244)
at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:471)
at com.caucho.config.xml.XmlConfigContext.configureAttribute(XmlConfigContext.java:324)
at com.caucho.config.program.NodeBuilderChildProgram.inject(NodeBuilderChildProgram.java:82)
at com.caucho.config.program.ContainerProgram.inject(ContainerProgram.java:88)
at com.caucho.config.program.ConfigProgram.configure(ConfigProgram.java:107)
at com.caucho.config.core.ResinIf.init(ResinIf.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.caucho.config.j2ee.PostConstructProgram.inject(PostConstructProgram.java:140)
at com.caucho.config.type.InlineBeanType.init(InlineBeanType.java:458)
at com.caucho.config.xml.XmlConfigContext.configureChildBean(XmlConfigContext.java:705)
at com.caucho.config.xml.XmlConfigContext.configureBeanProperties(XmlConfigContext.java:686)
at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:464)
at com.caucho.config.xml.XmlConfigContext.configureNode(XmlConfigContext.java:371)
at com.caucho.config.xml.XmlConfigContext.configureBean(XmlConfigContext.java:285)
at com.caucho.config.Config.configureBean(Config.java:376)
at com.caucho.config.Config.configureBean(Config.java:342)
at com.caucho.config.core.ResinImport.initImpl(ResinImport.java:176)
at com.caucho.config.core.ResinImport.init(ResinImport.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.caucho.config.j2ee.PostConstructProgram.inject(PostConstructProgram.java:140)
at com.caucho.config.type.InlineBeanType.init(InlineBeanType.java:458)
at com.caucho.config.xml.XmlConfigContext.configureChildBean(XmlConfigContext.java:705)
at com.caucho.config.xml.XmlConfigContext.configureBeanProperties(XmlConfigContext.java:686)
at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:464)
at com.caucho.config.xml.XmlConfigContext.configureNode(XmlConfigContext.java:371)
at com.caucho.config.xml.XmlConfigContext.configureBean(XmlConfigContext.java:285)
at com.caucho.config.xml.XmlConfigContext.configure(XmlConfigContext.java:243)
at com.caucho.config.Config.configure(Config.java:324)
at com.caucho.config.Config.configure(Config.java:254)
at com.caucho.server.resin.BootConfig.configureFile(BootConfig.java:132) at com.caucho.server.resin.Resin.configureFile(Resin.java:1036)
at com.caucho.server.resin.Resin.<init>(Resin.java:251)
at com.caucho.server.resin.Resin.<init>(Resin.java:183)
at com.caucho.server.resin.Resin.main(Resin.java:1465)
Caused by: com.caucho.config.ConfigException: com.caucho.config.core.ResinIf.init(): java.lang.NoClassDefFoundError: javax/mail/Session
at com.caucho.config.ConfigException.create(ConfigException.java:102)
at com.caucho.config.ConfigException.create(ConfigException.java:130)
at com.caucho.config.j2ee.PostConstructProgram.inject(PostConstructProgram.java:142)
at com.caucho.config.type.InlineBeanType.init(InlineBeanType.java:458)
at com.caucho.config.xml.XmlConfigContext.configureChildBean(XmlConfigContext.java:705)
at com.caucho.config.xml.XmlConfigContext.configureBeanProperties(XmlConfigContext.java:686)
at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:464)
... 39 more
Caused by: java.lang.NoClassDefFoundError: javax/mail/Session
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.getDeclaredMethods(Class.java:1975)
at com.caucho.config.reflect.ReflectionAnnotatedType.introspectMethods(ReflectionAnnotatedType.java:260)
at com.caucho.config.reflect.ReflectionAnnotatedType.introspect(ReflectionAnnotatedType.java:212)
at com.caucho.config.reflect.ReflectionAnnotatedType.introspect(ReflectionAnnotatedType.java:193)
at com.caucho.config.reflect.ReflectionAnnotatedType.getMethods(ReflectionAnnotatedType.java:152)
at com.caucho.config.reflect.AnnotatedTypeImpl.getMethods(AnnotatedTypeImpl.java:132)
at com.caucho.config.xml.XmlBeanConfig.<init>(XmlBeanConfig.java:130)
at com.caucho.config.xml.XmlBeanAttribute.create(XmlBeanAttribute.java:139)
at com.caucho.config.xml.XmlConfigContext.configureBeanProperties(XmlConfigContext.java:677)
at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:464)
at com.caucho.config.xml.XmlConfigContext.configureAttribute(XmlConfigContext.java:324)
at com.caucho.config.program.NodeBuilderChildProgram.inject(NodeBuilderChildProgram.java:82)
at com.caucho.config.program.ContainerProgram.inject(ContainerProgram.java:88)
at com.caucho.config.program.ConfigProgram.configure(ConfigProgram.java:107)
at com.caucho.config.core.ResinIf.init(ResinIf.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.caucho.config.j2ee.PostConstructProgram.inject(PostConstructProgram.java:140)
... 43 more
Caused by: java.lang.ClassNotFoundException: javax.mail.Session
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 65 more
file:/d:/develop/resin-pro-4.0.53/conf/health.xml:723: com.caucho.config.core.ResinIf.init(): java.lang.NoClassDefFoundError: javax/mail/Session 721: - Automatic PDF reports
722: -->
723: <resin:if test="${pdf_summary}">
724: <health:PdfReport>
725: <path>${resin.root}/doc/admin/pdf-gen.php</path>
当然如果你的resin启动还报错,请根据出错类所在包添加到%resin_home%\lib\目录
在linux下,专业版还有以下两种启动参数
IV) PDF Reports
--------------- With Resin-Pro, you can get a PDF snapshot report of the server with the
command-line: unix> bin/resin.sh pdf-report #生成pdf报告 You can also get a watchdog restart report with the -watchdog option unix> bin/resin.sh pdf-report -watchdog
resin-pro-4.0.53报错java.lang.Error: java.lang.ClassNotFoundException: com.caucho.loader.SystemClassLoader的更多相关文章
- spring boot 1.5.3项目放到resin4.0.53报错
报错信息: {main} java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImp ...
- Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification version
Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification ...
- eclipse连接远程Hadoop报错,Caused by: java.io.IOException: 远程主机强迫关闭了一个现有的连接。
eclipse连接远程Hadoop报错,Caused by: java.io.IOException: 远程主机强迫关闭了一个现有的连接.全部报错信息如下: Exception in thread & ...
- wince6.0 编译报错:"error C2220: warning treated as error - no 'object' file generated"的解决办法
内容提要:wince6.0编译报错:"error C2220: warning treated as error - no 'object' file generated" 原因是 ...
- Eclipse启动报错An internal error occurred during: "Initializing Java Tooling"
Eclipse启动报错An internal error occurred during: "Initializing Java Tooling" 解决方案: 删除工作空间work ...
- zipkin启动报错(Caused by: java.lang.ClassNotFoundException: zipkin.Component)的解决方法
使用ziplin依赖: <dependency> <groupId>org.springframework.cloud</groupId> <artifact ...
- 项目报错:Caused by: java.lang.ClassNotFoundException: Didn't find class "..."on path: DexPathList
项目报错: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.eshore.njb.MyApplicat ...
- AndroidStudio3.0 注解报错Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor.
把Androidstudio2.2的项目放到3.0里面去了,然后开始报错了. 体验最新版AndroidStudio3.0 Canary 8的时候,发现之前项目的butter knife报错,用到注解的 ...
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">报错
https://blog.csdn.net/qq_36611526/article/details/79067159 今天遇到个问题 文件内引入某个资源 pom.xml头部http://maven.a ...
随机推荐
- ExtJS模板与菜单的使用案例-床位卡
ExtJS的模板的使用: 项目中场景基本就是表格模型: TPL:自己编写模板 store:数据源 UI组件: tbar,rbr,bbar实现工具栏 PageBar与StatusBar:可以针对TPL的 ...
- QT中使用自己定的类和Vector出现错误
关于QT自定义类不能调用问题: 在Main()函数里面一定要定义include“XXX.cpp”include“XXX.h”,具体原因我也不知道为什么这样定义,是在一个贴吧看见的,弄了好久才解决. 第 ...
- centos7环境下的Mysql5.7.22安装
参考网站: https://blog.csdn.net/vipbupafeng/article/details/80271089 1.下载 官网链接:https://dev.mysql.com/dow ...
- git提交到远程仓库
Git概述 什么是Git? 刚开始对这个东西也感到挺迷茫,并且问了好多已经学习android一段时间的同学也是一头雾水,直到了解并使用之后,才体会到Git的好处以及重要意义. Git:是目前世界上最先 ...
- js改变div高度
用bootsrap响应式布局的时候,遇到个很恶心的问题:左边栏很短很难看!! 于是,想用js来自动改变左边的高度,没成功!!原来是设置的时候,没加单位,坑爹了. 参考:http://blog.sina ...
- mysql 修改用户密码
修改mysql用户密码 目录 mysqladmin命令 UPDATE user 语句 SET PASSWORD 语句 root密码丢失的情况(待验证) mysqladmin命令(回目录) 格式如下 ...
- 删除数据恢复数据语句 Oracle
SELECT * FROM TBL_DZYJ_GEORELICSINFO AS OF TIMESTAMP TO_TIMESTAMP('2017-5-8 9:00:00','YYYY-MM-DD HH: ...
- 超简单,webpack配置
有看过我的博客的童鞋可能有看到我最近有在利用闲暇时间做一个前后台均涵盖的音乐播放器项目,但是呢,我是一个小小的前端,对后台的了解可以说只停留在很初级的阶段,当然了音乐播放器的音乐列表是后台轮循出来的, ...
- win32允许前置窗口
win32允许前置窗口函数 AllowSetForegroundWindow(HWND hWnd) 该函数允许其他窗口调用SetForegroundWindow()(将窗口设为前置窗口),前提是调用A ...
- VBox 安装 macOS 10.12
安装步骤⑴ 下载及解压 macOS 10.12 Sierra Final by TechReviews.rar ⑵ 下载及双击安装 VirtualBox-5.1.6-110634-Win.exe ,默 ...