Atitit.resin  could not create the java virtual machine问题

1. 正常的参数是这样1

2. 错误的cmd运行时候的参数1

3. 输出2

4. 原因: resin的一个bug导致的。。2

5. 原因:子进程参数错乱导致jvm错误。。2

1. 正常的参数是这样

D:\jdk1.7.0_51_64bit\bin\javaw -Djava.awt.headless=true -Dresin.server=1 -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djava.system.class.loader=com.caucho.loader.SystemClassLoader -Djava.endorsed.dirs=D:\jdk1.7.0_51_64bit\jre\lib\endorsed;d:\resin-4.0.22\endorsed -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl -Djava.awt.headless=true -Dresin.home=/d:/resin-4.0.22 -Xss1m -Xmx256m -Xrs -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 com.caucho.server.resin.Resin --root-directory /d:/resin-4.0.22 -conf d:\resin-4.0.22\conf\resin.xml -socketwait 53537 -resin-home /d:/resin-4.0.22 -root-directory /d:/resin-4.0.22 console -debug-port 8000

作者:: 老哇的爪子 Attilax 艾龙,  EMAIL:1466519819@qq.com

转载请注明来源: http://www.cnblogs.com/attilax/

2. 错误的cmd运行时候的参数

"%java_home%\bin\java.exe" -Xrs -jar "%RESIN-HOME%\lib\resin.jar" -resin-home "%RESIN-HOME%\"    -root-directory "%RESIN-HOME%\"  console -debug-port 8001

D:\jdk1.7.0_51_64bit\bin\javaw -Djava.awt.headless=true -Dresin.server=1 -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djava.system.class.loader=com.caucho.loader.SystemClassLoader "-Djava.endorsed.dirs=D:\jdk1.7.0_51_64bit\jre\lib\endorsed;D:\resin2-4.0.22"    -root-directory D:\resin2-4.0.22"\endorsed" -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl -Djava.awt.headless=true "-Dresin.home=/D:/resin2-4.0.22"    -root-directory D:/resin2-4.0.22"" -Xss1m -Xmx256m -Xrs com.caucho.server.resin.Resin  --root-directory /D:/resin2-4.0.22/ -conf D:\resin2-4.0.22\conf\resin.xml -socketwait 53722 -resin-home "/D:/resin2-4.0.22"    -root-directory D:/resin2-4.0.22"" console

注意最后的 -root-directory D:/resin2-4.0.22"" console

如果原始的root-directory目录以先刚结尾,就会处理后成为这样(后面多出来俩个双引号,而不是使用双引号括起来),应该是resin的一个bug导致的

3. 输出

Unrecognized option: -root-directory

分析

第一个主参数Main-Class: com.caucho.boot.ResinBoot

第二个启动主类 com.caucho.server.resin.Resin

4. 原因: resin的一个bug导致的。。

5. 原因:子进程参数错乱导致jvm错误。。

如果原始的root-directory目录以先刚结尾,就会处理后成为这样(后面多出来俩个双引号,而不是使用双引号括起来),应该是resin的一个bug导致的

通过调试com.caucho.server.resin.Resin,确定是jvm的参数解析错误,而不是里面抛出err导致的。。

我总结一下啊,一个要分离这么几个js

一个是首页配置用的js

一个是三大api的js。。里面包含那三大函数。。只在开发环境测试用的数据也可以包含这里哈。。

还有一个就是其他的js 代码了。。

Atitit.resin  could not create the java virtual machine问题的更多相关文章

  1. Failed to create the Java Virtual Machine.问题的解决

    运行Eclipse,出现了"Failed to create the Java Virtual Machine."错误: 解决的办法是在Eclipse的解压目录下找到eclipse ...

  2. eclipse failed to create the java virtual machine 问题图文解析

    eclipse failed to create the java virtual machine 问题图文解析 分类: java常用软件异常2010-10-02 23:45 73200人阅读 评论( ...

  3. 解决Eclipse启动报错Failed to create the Java Virtual Machine

    电脑:2G内存,WIN7 32位. 启动adt-bundle-windows-x86-20140702\eclipse\eclipse.exe时,报错[Failed to create the Jav ...

  4. Failed to create the java virtual machine完全解决办法

    一直用EcliPSe开发java,突然有这么一天,无法启动了,splash窗口显示“Failed to create the Java Virtual Machine”,结果发现eclipse和mye ...

  5. Eclipse 4.6 Neon, could not create the java virtual machine

    下了eclipse 4.6,打开报错:could not create the java virtual machine. a fatal exception has occurred. 命令行用 e ...

  6. eclipse:failed to create the java virtual machine

    今天eclipse出现failed to create the java virtual machine无法启动,在网上找了解决办法如下: 找到eclipse目录下的eclipse.ini,可以看到如 ...

  7. 【 Failed to create the Java Virtual Machine】的2种解决方式

    初学Android,下载并安装好了eclipse,ADT和SDK之后,打开Eclipse时,出现: Failed to create the Java Virtual Machine 点击确定,ecl ...

  8. 关于打开Eclipse时出现eclipse failed to create the java virtual machine与locking is not possible in the direc

    原文转自:http://www.cnblogs.com/steararre/p/4037453.html 今天在机子上使用Eclipse时候打开发现这两个问题,通过查阅资料膜拜大神博客得知解决方法,特 ...

  9. 关于打开Eclipse时出现eclipse failed to create the java virtual machine与locking is not possible in the directory问题的解决

    今天在机子上使用Eclipse时候打开发现这两个问题,通过查阅资料膜拜大神博客得知解决方法,特此整理下来,方便后来遇到此问题的小伙伴们. 一开始打开Eclipse时候出现问题现象1,问题1解决以后就出 ...

随机推荐

  1. 安装以及构建SSIS

    SSIS使用教程可以参照微软官网实例:https://msdn.microsoft.com/zh-cn/library/ms169917(v=sql.105).aspx 1.安装visual stud ...

  2. __name__ == "__main__"的作用是什么?

    问题: __name__ == "__main__" 的作用是什么? # Threading example import time, thread def myfunction( ...

  3. IntelliJ IDEA使用心得之问题篇;

    在使用IDEA的时候,难免会遇到一些问题,总结下来,一是备忘,而是分享. 1.IDEA代码编辑区无法编辑? 当系统时间被调整到当前时间以前时会导致IDEA无法编辑,有3中解决方案:1)重启IDEA:( ...

  4. Redis笔记(二):Redis数据类型

    Redis 数据类型 Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(集合)及zset(sorted set:有序集合). String(字符串) st ...

  5. 7-nginx-keepalived配置主从双击热备

    nginx的高可用解决方案 keepalive 是 VRRP 协议的完美实现, 通过vip(虚拟ip)来实现主从双击热备, 自动切换的高可用方案, nginx的主从是通过keepalived实现的 通 ...

  6. SpringCloud源码解读

    http://blog.didispace.com/Spring-Cloud%E5%9F%BA%E7%A1%80%E6%95%99%E7%A8%8B/

  7. Hadoop MapReduce流程及容错

    shuffle流程 输入分片(input split):在进行map计算之前,mapreduce会根据输入文件计算输入分片(input split),每个输入分片(input split)针对一个ma ...

  8. 面试:http协议

    转自:http://www.cnblogs.com/ranyonsue/p/5984001.html#undefined HTTP简介 HTTP协议是Hyper Text Transfer Proto ...

  9. 【LeetCode题解】9_回文数(Palindrome-Number)

    目录 9_回文数(Palindrome-Number) 描述 解法一:转化为字符串的比较 思路 Java 实现 Python 实现 复杂度分析 解法二:反转数字的后半部分 ★ 思路 Java 实现 P ...

  10. cookie安全隐患及防篡改机制

    Cookie和Session是为了在无状态的HTTP协议之上维护会话状态,使得服务器可以知道当前是和哪个客户在打交道.本文来详细讨论Cookie和Session的实现机制,以及其中涉及的安全问题. 因 ...