> 데이터 베이스 > MySQL 튜토리얼 > INFO: Illegal access: this web application instance has been

INFO: Illegal access: this web application instance has been

WBOY
풀어 주다: 2016-06-07 15:37:02
원래의
2019명이 탐색했습니다.

开发完项目以后,部署到服务器上的时候,出现的问题如下(本地运行正常): 十二月 07, 2012 5:37:35 下午 org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could

开发完项目以后,部署到服务器上的时候,出现的问题如下(本地运行正常):

十二月 07, 2012 5:37:35 下午 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load oracle.xdb.XMLTypeFactory.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1597)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at oracle.jdbc.driver.PhysicalConnection.safelyGetClassForName(PhysicalConnection.java:4682)
 at oracle.jdbc.driver.PhysicalConnection.addClassMapEntry(PhysicalConnection.java:2750)
 at oracle.jdbc.driver.PhysicalConnection.addDefaultClassMapEntriesTo(PhysicalConnection.java:2739)
 at oracle.jdbc.driver.PhysicalConnection.initializeClassMap(PhysicalConnection.java:2443)
 at oracle.jdbc.driver.PhysicalConnection.ensureClassMapExists(PhysicalConnection.java:2436)
 at oracle.jdbc.driver.PhysicalConnection.getTypeMap(PhysicalConnection.java:2723)
 at com.mchange.v2.c3p0.impl.NewPooledConnection.carefulCheckTypeMap(NewPooledConnection.java:130)
 at com.mchange.v2.c3p0.impl.NewPooledConnection.(NewPooledConnection.java:108)
 at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:198)
 at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
 at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
 at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
 at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
 at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
 at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

 

 

解决问题的方法:

直接在我的帐号zhang下面对tomcat进行重新启动操作还是不可以,说是logs没有权限访问。然后我把logs  chmod 777以后,还是不可以。

就在root帐号下重新配置了一下环境变量,然后重启了tomcat,问题解决了。但是不知道为什么这样就可以了

操作如下:

第一、切换到root用户下;

第二、[root@wn7-lcg bin]#vi /home/lxm/.bash_profile
第三、加入如下配置
#2012-12-10 zhangshibo add
export JAVA_HOME=/usr/local/jdk1.7.0_03
PATH=$PATH:$JAVA_HOME/bin;

第四、立即生效

[root@wn7-lcg bin]# source /home/lxm/.bash_profile

第五、重启tomcat
[root@wn7-lcg bin]# ./shutdown.sh
Using CATALINA_BASE:   /usr/local/apache-tomcat-7.0.26
Using CATALINA_HOME:   /usr/local/apache-tomcat-7.0.26
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.26/temp
Using JRE_HOME:        /usr/local/jdk1.7.0_03
Using CLASSPATH:       /usr/local/apache-tomcat-7.0.26/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.26/bin/tomcat-juli.jar
[root@wn7-lcg bin]# ./startup.sh
Using CATALINA_BASE:   /usr/local/apache-tomcat-7.0.26
Using CATALINA_HOME:   /usr/local/apache-tomcat-7.0.26
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.26/temp
Using JRE_HOME:        /usr/local/jdk1.7.0_03
Using CLASSPATH:       /usr/local/apache-tomcat-7.0.26/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.26/bin/tomcat-juli.jar
[root@wn7-lcg bin]#

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿