首页 > 数据库 > 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
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板