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

设置环境变量

.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%RESIN_HOME%\lib\resin.jar;%RESIN_HOME%\lib\javamail-141.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
时间: 2024-10-12 23:06:24

resin-pro-4.0.53报错java.lang.Error: java.lang.ClassNotFoundException: com.caucho.loader.SystemClassLoader的相关文章

SQL Developer 4.0 启动报错“unable to create an instance of the java virtual machine located at path”

安装了Oracle之后,第一件事情就是想想怎么去连接,进而操作.SQL Developer是官方提供的强大工具,个人看来也是第一选择. 目前官网提供的最新版是4.0.1.14.48,下载下来之后,就跃跃欲试了.将下载下来的包解压,直接运行sqldeveloper.exe这个文件,选择了本地安装的JDK路径,之后却不幸的报错了,提示"unable to create an instance of the java virtual machine located at path",具体界面

mysql 保存emoji时报,数据库报错:Caused by: java.sql.SQLException: Incorrect string value: &#39;\xF0\x9F\x98\x82\xF0\x9F...&#39; for column &#39;review&#39; at row 1

错误原因:我们可以看到错误提示中的字符0xF0 0x9F 0x98 0x84 ,这对应UTF-8编码格式中的4字节编码(UTF-8编码规范).正常的汉字一般不会超过3个字节,为什么为出现4个字节呢?实际上是它对应的是智能手机输入法中的表情.那为什么会报错呢?因为mysql中的utf-8并不是真正意义上的utf-8,它只能存储1~3个字节长度的utf-8编码,如果想存储4个字节的必须用utf8mb4类型.不而要使用utf8mb4类型,首先要保证Mysql版本要不低于 MySQL 5.5.3. 常用

RedHat5.5_X64 Linux安装oracle 11.2.0.3 报错

REDHAT linux 安装 11G  11.2.0.3   报错 oracle用户执行./runinstaller后 直接报错 查看日志后 [[email protected] OraInstall2012-06-29_12-08-50AM]# more installActions2012-06-29_12-08-50AM.log  SEVERE: [FATAL] HXZG: HXZG. Refer associated stacktrace #oracle.install.commons

关于web.xml3.0启动报错

九月 08, 2017 10:18:19 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:war_item' did not find a matching property. 九月 08, 20

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

eclipse连接远程Hadoop报错,Caused by: java.io.IOException: 远程主机强迫关闭了一个现有的连接.全部报错信息如下: Exception in thread "main" java.io.IOException: Call to hadoopmaster/192.168.1.180:9000 failed on local exception: java.io.IOException: 远程主机强迫关闭了一个现有的连接. at org.apach

CentOS7.0开机报错“piix4_smbus”和“dev fd0”的解决办法

系统:CentOS 7.0 X64 报错现象: 此问题包含了两个错误: 错误1: piix4_smbus host smbus controller not enabled 修改办法: [[email protected] ~]# lsmod | grep i2c i2c_piix4              22106  0  i2c_core               40325  2 drm,i2c_piix4 [[email protected] ~]# vi /etc/modprob

AndroidStudio3.0 注解报错Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor.

体验最新版AndroidStudio3.0 Canary 8的时候,发现之前项目的butter knife报错,用到注解的应该都会报错 Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to

mysql8.0+运行报错The server time zone value &#39;&#214;&#208;&#185;&#250;&#177;&#234;&#215;&#188;&#202;&#177;&#188;&#228;&#39; is unrecognized or represents more than one time zone. 解决办法

话不多说,从错误即可知道是时区的错误,因此只要将时区设置为你当前系统时区即可, 因此使用root用户登录mysql,按照如下图所示操作即可. 我电脑的系统为北京时区,因此在系统中设置后,再连接数据库运行,一切OK! mysql8.0+运行报错The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. 解决办法 原文地址:https://www.cnblogs.co

hivesql 迁移spark3.0 sparksql报错如Cannot safely cast &#39;字段&#39;:StringType to IntegerType的问题

一 问题 hivesql可以正常运行,spark3.0运行报错如图 spark3.0配置 查看源码新增一个 val STORE_ASSIGNMENT_POLICY = buildConf("spark.sql.storeAssignmentPolicy") .doc("When inserting a value into a column with different data type, Spark will perform " + "type coe