最初并未发现,笔者的系统环境变量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的更多相关文章

  1. spring boot 1.5.3项目放到resin4.0.53报错

    报错信息: {main} java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImp ...

  2. Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification version

    Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification ...

  3. eclipse连接远程Hadoop报错,Caused by: java.io.IOException: 远程主机强迫关闭了一个现有的连接。

    eclipse连接远程Hadoop报错,Caused by: java.io.IOException: 远程主机强迫关闭了一个现有的连接.全部报错信息如下: Exception in thread & ...

  4. wince6.0 编译报错:"error C2220: warning treated as error - no 'object' file generated"的解决办法

    内容提要:wince6.0编译报错:"error C2220: warning treated as error - no 'object' file generated" 原因是 ...

  5. Eclipse启动报错An internal error occurred during: "Initializing Java Tooling"

    Eclipse启动报错An internal error occurred during: "Initializing Java Tooling" 解决方案: 删除工作空间work ...

  6. zipkin启动报错(Caused by: java.lang.ClassNotFoundException: zipkin.Component)的解决方法

    使用ziplin依赖: <dependency> <groupId>org.springframework.cloud</groupId> <artifact ...

  7. 项目报错: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 ...

  8. 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报错,用到注解的 ...

  9. 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 ...

随机推荐

  1. Docker集群管理(三)—— docker swarm mode基础教程

    docker从1.12版(及后续版本)集成了swarmkit.可以方便的实现docker集群.它有哪些特点呢: 集成了集群功能 分散设计:manager和worker两种节点. 声明式服务模式 可伸缩 ...

  2. diskspd的使用

    参数翻译 可测试目标: file_path 文件abc.file #<physical drive number> #1为第一块物理磁盘[谨慎,别拿系统盘测试,一般用于准备投入的数据磁盘测 ...

  3. 关于生成器---(yield)

    生成器:是自定义的迭代器(自己用python代码写的迭代器),函数中见到yield的就是生成器 那么yield前后的变量又该怎么理解 看例子一 def counter(name): print('%s ...

  4. kvm安装及使用

    ****centos7安装及使用kvm: http://blog.csdn.net/github_27924183/article/details/76914322?locationNum=5& ...

  5. apache http get 和 post 请求

    1.首先要把jar依赖进项目 <dependency> <groupId>org.apache.httpcomponents</groupId> <artif ...

  6. reportng代替testng的默认报告——pom设置

    既然是maven项目,直接关注pom设置. 这篇写得很清楚了:maven+testng+reportng的pom设置 强调一点的是,guice必须依赖,就因这个卡了大半天. <dependenc ...

  7. datasnap 如何监控客户端的连接情况

    如果客户端是TCP/IP是短连接的情况就没有必要了. type pClientConns = ^TClientConns; // 客户连接 TClientConns = record clientid ...

  8. idea中创建多module的maven工程

    以前自学Java web的时候,我们都是创建一个web工程,该工程下面再创建dao.service.controller等包.自从工作以后,我们会发现现在的web项目包含多个module,contro ...

  9. Spring MVC 确定目标方法POJO 类型参数

    1:确定一个Key 2. 在implicitMode 中存在Key 对应的对象, 若存在则作为参数传入 3. 在implicitMode 中不存在Key 对应的对象, 则检查当前@SessionAtr ...

  10. ubuntu16.04安装tensorflow-gpu和cuda8.0加速训练

    转载请注明出处:http://www.cnblogs.com/buxizhizhoum/p/8086230.html 环境: 系统:ubuntu 16.04 cpu:i5 gpu:gt920m mem ...