其实我也不知道起什么标题好,也许因为我只是一个新手。对不起。
1.先来说说我的Tomcat+java1.6配置(除了Host段是我配置的,其它的都是Tomcat6.0的标准配置)
Server.xml
附1:
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
maxThreads="1000" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
compression="on" compressionMinSize="2048"
compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"
connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>
resourceName="UserDatabase"/>
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
prefix="jh_log." suffix=".txt" timestamp="true" />
2.服务器启用了Native Library.
3.操作系统win2003 sp2
4.在服务模式下会出现错误(附2),在Console模式未出现这样的错误:
附2。
引用
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x031ca878, pid=1532, tid=1820
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing windows-x86)
# Problematic frame:
# C 0x031ca878
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x00878800): JavaThread "Thread-1" [_thread_in_native, id=1820, stack(0x00ab0000,0x00af0000)]
siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x00000008 0x031ca878
Registers:
EAX=0x031ca878, EBX=0x00000000, ECX=0x031ca878, EDX=0x0318f810
ESP=0x00aef6e8, EBP=0x00aef6f4, ESI=0x0318f810, EDI=0x031817a8
EIP=0x031ca878, EFLAGS=0x00010206
Top of Stack: (sp=0x00aef6e8)
0x00aef6e8: 10003eeb 031ca878 03179800 00aef714
0x00aef6f8: 10014394 0318f810 00000000 26cf49d0
0x00aef708: 03179800 00aef728 10004048 00aef728
0x00aef718: 10004055 031817a8 00878800 26cf49d0
0x00aef728: 00aef76c 00d79c91 008788f4 00aef774
0x00aef738: 03179800 00000000 00878c30 00878c30
0x00aef748: 00878c20 00aef74c 26cf49d0 00aef780
0x00aef758: 26cf5be0 00000000 26cf49d0 00000000
Instructions: (pc=0x031ca878)
0x031ca868: 00 00 00 00 40 58 1d 03 28 a8 1c 03 78 a8 1c 03
0x031ca878: 40 a8 1c 03 00 00 00 00 00 00 00 00 98 a8 1c 03
Stack: [0x00ab0000,0x00af0000], sp=0x00aef6e8, free space=253k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=