Maison >base de données >tutoriel mysql >INFO: Illegal access: this web application instance has been

INFO: Illegal access: this web application instance has been

WBOY
WBOYoriginal
2016-06-07 15:37:022025parcourir

开发完项目以后,部署到服务器上的时候,出现的问题如下(本地运行正常): 十二月 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]#

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Article précédent:vb.net操作数据库之ACCESS(1)Article suivant:Oracle 数据泵详解