昨天运行还好好的,今天就起不来了,报错如下:
三月 08, 2018 9:46:52 上午 org.apache.catalina.loader.WebappClassLoader loadClass
信息: Illegal access: this web application instance has been stopped already. Could not load com.mchange.v2.c3p0.ComboPooledDataSourceCustomizer. 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:1600)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:278)
at com.sun.beans.finder.ClassFinder.findClass(ClassFinder.java:67)
at com.sun.beans.finder.ClassFinder.findClass(ClassFinder.java:110)
at java.beans.Introspector.findCustomizerClass(Introspector.java:1245)
at java.beans.Introspector.getTargetBeanDescriptor(Introspector.java:1239)
at java.beans.Introspector.getBeanInfo(Introspector.java:415)
at java.beans.Introspector.getBeanInfo(Introspector.java:252)
at java.beans.Introspector.getBeanInfo(Introspector.java:214)
at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean.extractAttributeInfos(DynamicPooledDataSourceManagerMBean.java:544)
at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean.reinitialize(DynamicPooledDataSourceManagerMBean.java:188)
at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean.(DynamicPooledDataSourceManagerMBean.java:158)
at com.mchange.v2.c3p0.management.ActiveManagementCoordinator.attemptManagePooledDataSource(ActiveManagementCoordinator.java:110)
at com.mchange.v2.c3p0.C3P0Registry.incorporate(C3P0Registry.java:233)
at com.mchange.v2.c3p0.C3P0Registry.reregister(C3P0Registry.java:251)
at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.(PoolBackedDataSourceBase.java:228)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.(AbstractPoolBackedDataSource.java:62)
at com.mchange.v2.c3p0.ComboPooledDataSource.(ComboPooledDataSource.java:108)
at com.mchange.v2.c3p0.ComboPooledDataSource.(ComboPooledDataSource.java:104)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:898)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
at org.jbpm.pvm.internal.env.SpringContext.get(SpringContext.java:65)
at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:154)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:711)
at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:154)
at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:711)
at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:132)
at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:123)
at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:207)
at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:196)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.resolveTransactionManager(SpringTransactionInterceptor.java:62)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:46)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)
at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.acquireJobs(DispatcherThread.java:126)
at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(DispatcherThread.java:67)
三月 08, 2018 9:46:52 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. 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.
三月 08, 2018 9:47:02 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. 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.
三月 08, 2018 9:47:22 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. 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.
三月 08, 2018 9:48:02 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. 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.
三月 08, 2018 9:49:22 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. 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.
三月 08, 2018 9:52:02 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. 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.
三月 08, 2018 9:57:22 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
信息: Illegal access: this web application instance has been stopped already. Could not load jbpm.hibernate.cfg.xml. 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.
在eclipse中配置server时,双击配置的servers,modules页,add web modules,添加时有一个auto reloading enabled 默认是选中的,把那个√去掉
找到问题所在了,oracle服务停了,所以起不来了
在eclipse中配置server时,双击配置的servers,modules页,add web modules,添加时有一个auto reloading enabled 默认是选中的,把那个√去掉
已经启动一个服务器了,建议重启一下电脑
1.独立运行的Tomcat没有关闭。 2.Tomcat之前运行过,或者Tomcat非正常关闭,进程当中的Tomcat依然存在。
3.Tomcat使用的端口被其他软件所占(Tomcat默认的端口:8080)。
针对这些错误的解决方案:
1.在系统服务当中将Tomcat的启动方式由“自动”改为“手动”(默认的情况Tomcat是自动启动的服务,随开机启动)。
2.关闭独立运行的Tomcat,要保证Eclipse启动Tomcat之前,Tomcat服务是停用的。
3.查看任务管理器,进程里有没有Tomcat,如果有,将其关掉。
4.如果在Eclipse当中启动Tomcat还是不成功,则可能是Tomcat的端口被占了。
a.找到Tomcat路径:..\Tomcat 5.0.28\conf\下的server.xml文件,检索到端口号:8080,将其改成未被占用的端口号如8088等。
b.可以在dos下用命令:netstat -a 查看一下端口的使用情况,看看Tomcat的端口有没有被其他的软件所占用
c3p0一般都是数据库方面的错误
在连接oracle数据库时,正常的java application可以连接,但是到javabean web中就出错,说是Class.forName(dirver)找不到驱 动,问题是,我将oracle的classes12.zip的包放到了web-inf下的lib文件夹下,这是不够的还需要配置java的编译路径,其过程如下:
1.在 windows-->properties-->java-->build path-->user libraries-->右边选"New",输入一个名称 然后点"Add JARs"导入oracle驱动,classes12.jar,"ok"关闭窗口
2.然后在到 project--〉properties --> Java build path ---> Liabriaries -->add library-->user library-->选前面建好 的名称 -->“finish”
3.刷新工程,重新部署,重启tomcat就可以了。
//纯手打
表示某个方法在非法或不适当的时间被调用。换句话说,对于请求的操作,Java环境或Java应用程序不处于适当的状态。