旧项目web工程启动问题。

lashengcrh hologic 技术经理  2015-11-27 10:17:44
一个旧项目ssh的工程,如果不使用以前同事留下的jdk1.6.0_22,工程就无法运行! 奇怪了

试了很多次,tomcat版本使用最新的6.x 和7.x 都没有问题。

只要将环境变量中的JAVA_HOME指向其他jdk(也是从官网下载的),web工程就无法启动,tomcat运行一会就自动退出了!
怎么回事?

所以我才怀疑,是不是jdk中有什么配置??

请大侠指点迷津

...全文
88 点赞 收藏 8
写回复
8 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
lashengcrh 2015-11-27
# # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (c1_Optimizer.cpp:271), pid=2008, tid=2040 # guarantee(x_compare_res != Constant::not_comparable) failed: incomparable constants in IfOp # # JRE version: 6.0_45-b06 # Java VM: Java HotSpot(TM) Client VM (20.45-b01 mixed mode, sharing windows-x86 ) # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread (0x02bb5400): JavaThread "C1 CompilerThread0" daemon [_thread_in_native, id=2040, stack(0x02de0000,0x02e30000)] Stack: [0x02de0000,0x02e30000], sp=0x02e2f504, free space=317k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [jvm.dll+0x13490a] V [jvm.dll+0x12f35c] V [jvm.dll+0x206672] V [jvm.dll+0x207346] V [jvm.dll+0x1f1597] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f15e6] V [jvm.dll+0x1f1aeb] V [jvm.dll+0x205d80] V [jvm.dll+0x205e41] V [jvm.dll+0x1f23da] V [jvm.dll+0x1e468e] V [jvm.dll+0x1e4c95] V [jvm.dll+0x1e4d9c] V [jvm.dll+0x1e4eef] V [jvm.dll+0x1e5144] V [jvm.dll+0x3e53d] V [jvm.dll+0x3f06f] V [jvm.dll+0x119b74] V [jvm.dll+0x14217c] C [msvcr71.dll+0x9565] endthreadex+0xa0 C [kernel32.dll+0xb713] GetModuleFileNameA+0x1b4 Current CompileTask: C1: 4042 1245 org.hibernate.cfg.annotations.SimpleValueBinder.setType(Lorg/hibernate/annotations/common/reflection/XProperty;Lorg/hibernate/annotations/common/reflection/XClass;)V (936 bytes) --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x030c0400 JavaThread "GC Daemon" daemon [_thread_blocked, id=180, stack(0x035f0000,0x03640000)] 0x02bbc000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2044, stack(0x02e30000,0x02e80000)] =>0x02bb5400 JavaThread "C1 CompilerThread0" daemon [_thread_in_native, id=2040, stack(0x02de0000,0x02e30000)] 0x02bb3c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2036, stack(0x02d90000,0x02de0000)] 0x02bd3400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2032, stack(0x02d40000,0x02d90000)] 0x02bac000 JavaThread "Finalizer" daemon [_thread_blocked, id=1840, stack(0x02cf0000,0x02d40000)] 0x02ba7400 JavaThread "Reference Handler" daemon [_thread_blocked, id=2024, stack(0x02ca0000,0x02cf0000)] 0x00317000 JavaThread "main" [_thread_in_vm, id=2016, stack(0x008f0000,0x00940000)] Other Threads: 0x02b6ac00 VMThread [stack: 0x02c50000,0x02ca0000] [id=2020] 0x02bca400 WatcherThread [stack: 0x02e80000,0x02ed0000] [id=136] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 7552K, used 2835K [0x1a9e0000, 0x1b210000, 0x1ff30000) eden space 6720K, 29% used [0x1a9e0000, 0x1abd4cc8, 0x1b070000) from space 832K, 100% used [0x1b140000, 0x1b210000, 0x1b210000) to space 832K, 0% used [0x1b070000, 0x1b070000, 0x1b140000) tenured generation total 16716K, used 10795K [0x1ff30000, 0x20f83000, 0x2a9e0000) the space 16716K, 64% used [0x1ff30000, 0x209bafa8, 0x209bb000, 0x20f83000) compacting perm gen total 16128K, used 15881K [0x2a9e0000, 0x2b9a0000, 0x2e9e0000) the space 16128K, 98% used [0x2a9e0000, 0x2b962558, 0x2b962600, 0x2b9a0000) ro space 10240K, 55% used [0x2e9e0000, 0x2ef63dd8, 0x2ef63e00, 0x2f3e0000) rw space 12288K, 55% used [0x2f3e0000, 0x2fa86cd0, 0x2fa86e00, 0x2ffe0000) Code Cache [0x00970000, 0x00c68000, 0x02970000) total_blobs=1439 nmethods=1258 adapters=116 free_code_cache=30452032 largest_free_block=384 Dynamic libraries: 0x00400000 - 0x00425000 D:\jdk1.6.0_45\jdk1.6.0_45\bin\java.exe 0x7c920000 - 0x7c9b3000 C:\WINDOWS\system32\ntdll.dll 0x7c800000 - 0x7c91e000 C:\WINDOWS\system32\kernel32.dll 0x77da0000 - 0x77e49000 C:\WINDOWS\system32\ADVAPI32.dll 0x77e50000 - 0x77ee2000 C:\WINDOWS\system32\RPCRT4.dll 0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll 0x7c340000 - 0x7c396000 D:\jdk1.6.0_45\jdk1.6.0_45\jre\bin\msvcr71.dll 0x6d8e0000 - 0x6db90000 D:\jdk1.6.0_45\jdk1.6.0_45\jre\bin\client\jvm.dll 0x77d10000 - 0x77da0000 C:\WINDOWS\system32\USER32.dll 0x77ef0000 - 0x77f39000 C:\WINDOWS\system32\GDI32.dll 0x76b10000 - 0x76b3a000 C:\WINDOWS\system32\WINMM.dll 0x76300000 - 0x7631d000 C:\WINDOWS\system32\IMM32.DLL 0x62c20000 - 0x62c29000 C:\WINDOWS\system32\LPK.DLL 0x73fa0000 - 0x7400b000 C:\WINDOWS\system32\USP10.dll 0x6d890000 - 0x6d89c000 D:\jdk1.6.0_45\jdk1.6.0_45\jre\bin\verify.dll 0x6d3e0000 - 0x6d3ff000 D:\jdk1.6.0_45\jdk1.6.0_45\jre\bin\java.dll 0x6d8d0000 - 0x6d8df000 D:\jdk1.6.0_45\jdk1.6.0_45\jre\bin\zip.dll 0x6d610000 - 0x6d619000 D:\jdk1.6.0_45\jdk1.6.0_45\jre\bin\management.dll 0x10000000 - 0x1011f000 D:\apache-tomcat-6.0.44\bin\tcnative-1.dll 0x76bc0000 - 0x76bcb000 C:\WINDOWS\system32\PSAPI.DLL 0x77f40000 - 0x77fb6000 C:\WINDOWS\system32\SHLWAPI.dll 0x77be0000 - 0x77c38000 C:\WINDOWS\system32\msvcrt.dll 0x71a20000 - 0x71a37000 C:\WINDOWS\system32\WS2_32.dll 0x71a10000 - 0x71a18000 C:\WINDOWS\system32\WS2HELP.dll 0x719c0000 - 0x719fe000 C:\WINDOWS\system32\MSWSOCK.dll 0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll 0x6d870000 - 0x6d878000 D:\jdk1.6.0_45\jdk1.6.0_45\jre\bin\sunmscapi.dll 0x765e0000 - 0x76673000 C:\WINDOWS\system32\CRYPT32.dll 0x76db0000 - 0x76dc2000 C:\WINDOWS\system32\MSASN1.dll 0x60fd0000 - 0x61025000 C:\WINDOWS\system32\hnetcfg.dll 0x71a00000 - 0x71a08000 C:\WINDOWS\System32\wshtcpip.dll 0x759d0000 - 0x75a7f000 C:\WINDOWS\system32\USERENV.dll 0x5fdd0000 - 0x5fe25000 C:\WINDOWS\system32\netapi32.dll 0x6d6c0000 - 0x6d6d3000 D:\jdk1.6.0_45\jdk1.6.0_45\jre\bin\net.dll 0x76ef0000 - 0x76f17000 C:\WINDOWS\system32\DNSAPI.dll 0x76d30000 - 0x76d48000 C:\WINDOWS\system32\iphlpapi.dll 0x76f80000 - 0x76f88000 C:\WINDOWS\System32\winrnr.dll 0x76f30000 - 0x76f5c000 C:\WINDOWS\system32\WLDAP32.dll 0x76f90000 - 0x76f96000 C:\WINDOWS\system32\rasadhlp.dll VM Arguments: jvm_args: -Djava.util.logging.config.file=D:\apache-tomcat-6.0.44\conf\logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=D:\apache-tomcat-6.0.44\endorsed -Dcatalina.base=D:\apache-tomcat-6.0.44 -Dcatalina.home=D:\apache-tomcat-6.0.44 -Djava.io.tmpdir=D:\apache-tomcat-6.0.44\temp java_command: org.apache.catalina.startup.Bootstrap start Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=D:\jdk1.6.0_45\jdk1.6.0_45 JRE_HOME=D:\jdk1.6.0_45\jdk1.6.0_45 CLASSPATH=D:\apache-tomcat-6.0.44\bin\bootstrap.jar PATH=D:\jdk1.6.0_45\jdk1.6.0_45\bin;D:\jdk1.6.0_45\jdk1.6.0_45\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem USERNAME=Administrator OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 6 Model 60 Stepping 3, GenuineIntel --------------- S Y S T E M --------------- OS: Windows XP Build 2600 Service Pack 3 CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt Memory: 4k page, physical 1048048k(323096k free), swap 1734808k(989040k free) vm_info: Java HotSpot(TM) Client VM (20.45-b01) for windows-x86 JRE (1.6.0_45-b06), built on Mar 26 2013 13:40:03 by "java_re" with MS VC++ 7.1 (VS2003) time: Fri Nov 27 11:32:56 2015 elapsed time: 4 seconds
回复
lashengcrh 2015-11-27
一切换到原来的jdk,就顺利启动。原web工程web-info\lib目录下内容如下图。

回复
lashengcrh 2015-11-27
引用 2 楼 my_God_sky 的回复:
什么是运行一会就自动退出?tomcat启动没有? 查看tomcat运行错误,---------》在cmd里执行tomcat中bin文件夹下的startup.bat,查看tomcat的错误信息。看看到底是什么原因。
举例:原jdk 1.6.0.22 tomcat 6.0.30 我从官网下载jdk6最后一个版本 1.6.0.45 (x86),tomcat 6 最后一个版本6.0.44(win32) tomccat 运行到 15-11-27 11:24:07,570 [main] INFO [EntityBinder org.hibernate.cfg.annotations.EntityBinder.bindTable(EntityBinder.java:501)] 时退出, 并生成了hs_err_pid500.log文件。 不知道为什么? 请大虾指教
回复
张狂年少 2015-11-27
先把报错贴出来,tomcat能启动吗
回复
有空的话,你可以研究下各个jdk版本的特性
回复
_南天北落 2015-11-27
什么是运行一会就自动退出?tomcat启动没有? 查看tomcat运行错误,---------》在cmd里执行tomcat中bin文件夹下的startup.bat,查看tomcat的错误信息。看看到底是什么原因。
回复
你下的jdk版本是多少, 可能是现有项目的jar版本 跟jdk1.6.0_22 相符合的。过高或者过低版本都不兼容
回复
_南天北落 2015-11-27
引用 5 楼 lashengcrh 的回复:
[quote=引用 2 楼 my_God_sky 的回复:] 什么是运行一会就自动退出?tomcat启动没有? 查看tomcat运行错误,---------》在cmd里执行tomcat中bin文件夹下的startup.bat,查看tomcat的错误信息。看看到底是什么原因。
举例:原jdk 1.6.0.22 tomcat 6.0.30 我从官网下载jdk6最后一个版本 1.6.0.45 (x86),tomcat 6 最后一个版本6.0.44(win32) tomccat 运行到 15-11-27 11:24:07,570 [main] INFO [EntityBinder org.hibernate.cfg.annotations.EntityBinder.bindTable(EntityBinder.java:501)] 时退出, 并生成了hs_err_pid500.log文件。 不知道为什么? 请大虾指教 [/quote] hs_err_pid500.log看看里面的信息,是不是缺啥了。
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2015-11-27 10:17
社区公告
暂无公告