1. 程式人生 > >Caused by java io FileNotFoundException

Caused by java io FileNotFoundException

               

1、錯誤描述

usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ]  { -help | start | stop }2014-7-13 0:49:34 org.apache.catalina.core.AprLifecycleListener init資訊: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.8.2014-7-13 0:49:35 org.apache.catalina.core.AprLifecycleListener init資訊: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].2014-7-13 0:49:36 org.apache.catalina.core.AprLifecycleListener initializeSSL資訊: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)2014-7-13 0:49:37 org.apache.coyote.AbstractProtocol init資訊: Initializing ProtocolHandler ["http-apr-8686"]2014-7-13 0:49:37 org.apache.coyote.AbstractProtocol init資訊: Initializing ProtocolHandler ["ajp-apr-8009"]2014-7-13 0:49:37 org.apache.catalina.startup.Catalina load資訊: Initialization processed in 3579 ms2014-7-13 0:49:37 org.apache.catalina.core.StandardService startInternal資訊: Starting service Catalina2014-7-13 0:49:37 org.apache.catalina.core.StandardEngine startInternal資訊: Starting Servlet Engine: Apache Tomcat/7.0.532014-7-13 0:49:39 org.apache.tomcat.websocket.server.WsSci onStartup資訊: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 2014-7-13 0:49:40 org.apache.catalina.util.SessionIdGenerator createSecureRandom資訊: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [320] milliseconds.2014-7-13 0:49:41 org.apache.catalina.startup.HostConfig deployWAR資訊: Deploying web application archive D:\MyEclipse\apache-tomcat-7.0.53\webapps\blazeds.war2014-7-13 0:49:43 org.apache.catalina.startup.HostConfig deployDirectory資訊: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\docs2014-7-13 0:49:43 org.apache.catalina.startup.HostConfig deployDirectory資訊: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\examples2014-7-13 0:49:44 org.apache.catalina.core.ApplicationContext log資訊: ContextListener: contextInitialized()2014-7-13 0:49:44 org.apache.catalina.core.ApplicationContext log資訊: SessionListener: contextInitialized()2014-7-13 0:49:44 org.apache.catalina.core.ApplicationContext log資訊: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', '
[email protected]
')2014-7-13 0:49:44 org.apache.catalina.startup.HostConfig deployDirectory資訊: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\FirstSSH2014-7-13 0:49:51 org.apache.catalina.core.ApplicationContext log資訊: No Spring WebApplicationInitializer types detected on classpath2014-7-13 0:49:51 org.apache.catalina.core.ApplicationContext log資訊: Initializing Spring root WebApplicationContext2014-7-13 0:49:51 org.springframework.web.context.ContextLoader initWebApplicationContext資訊: Root WebApplicationContext: initialization started2014-7-13 0:49:51 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh資訊: Refreshing Root WebApplicationContext: startup date [Sun Jul 13 00:49:51 CST 2014]; root of context hierarchy2014-7-13 0:49:51 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions資訊: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]2014-7-13 0:49:52 org.springframework.context.annotation.ClassPathBeanDefinitionScanner registerDefaultFilters資訊: JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning2014-7-13 0:49:52 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties資訊: Loading properties file from class path resource [jdbc.mysql.properties]2014-7-13 0:49:52 com.mchange.v2.log.MLog <clinit>資訊: MLog clients using java 1.4+ standard logging.2014-7-13 0:49:53 com.mchange.v2.c3p0.C3P0Registry banner資訊: Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]2014-7-13 0:49:54 org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>INFO: HCANN000001: Hibernate Commons Annotations {4.0.4.Final}2014-7-13 0:49:54 org.hibernate.Version logVersionINFO: HHH000412: Hibernate Core {4.2.14.Final}2014-7-13 0:49:54 org.hibernate.cfg.Environment <clinit>INFO: HHH000206: hibernate.properties not found2014-7-13 0:49:54 org.hibernate.cfg.Environment buildBytecodeProviderINFO: HHH000021: Bytecode provider name : javassist2014-7-13 0:49:54 org.springframework.web.context.ContextLoader initWebApplicationContext嚴重: Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [jbpm.repository.hbm.xml] cannot be opened because it does not exist at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:299) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:295) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:646) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)Caused by: java.io.FileNotFoundException: class path resource [jbpm.repository.hbm.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158) at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:293) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1566) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1503) ... 26 more2014-7-13 0:49:54 org.apache.catalina.core.StandardContext listenerStart嚴重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [jbpm.repository.hbm.xml] cannot be opened because it does not exist at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:299) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:295) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:646) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)Caused by: java.io.FileNotFoundException: class path resource [jbpm.repository.hbm.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158) at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:293) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1566) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1503) ... 26 more2014-7-13 0:49:54 com.sun.faces.config.ConfigureListener contextInitialized資訊: 初始化上下文 '/FirstSSH' 的 Mojarra 2.0.3 (FCS b03)2014-7-13 0:49:55 com.sun.faces.spi.InjectionProviderFactory createInstance資訊: JSF1048:有 PostConstruct/PreDestroy 註釋。標有這些註釋的 ManagedBeans 方法將表示註釋已處理。2014-7-13 0:49:55 org.apache.catalina.core.StandardContext startInternal嚴重: Error listenerStart2014-7-13 0:49:55 org.apache.catalina.core.StandardContext startInternal嚴重: Context [/FirstSSH] startup failed due to previous errors2014-7-13 0:49:55 org.apache.catalina.core.ApplicationContext log資訊: Closing Spring root WebApplicationContext2014-7-13 0:49:56 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks嚴重: The web application [/FirstSSH] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [
[email protected]
]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.2014-7-13 0:49:56 org.apache.catalina.startup.HostConfig deployDirectory資訊: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\host-manager2014-7-13 0:49:56 org.apache.catalina.startup.HostConfig deployDirectory資訊: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\manager2014-7-13 0:49:56 org.apache.catalina.startup.HostConfig deployDirectory資訊: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\ROOT2014-7-13 0:49:56 org.apache.catalina.startup.HostConfig deployDirectory資訊: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\StudentSystem2014-7-13 0:49:58 com.sun.faces.config.ConfigureListener contextInitialized資訊: 初始化上下文 '/StudentSystem' 的 Mojarra 2.0.3 (FCS b03)2014-7-13 0:49:59 com.sun.faces.spi.InjectionProviderFactory createInstance資訊: JSF1048:有 PostConstruct/PreDestroy 註釋。標有這些註釋的 ManagedBeans 方法將表示註釋已處理。2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Parsing configuration file [struts-default.xml]2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Unable to locate configuration files of the name struts-plugin.xml, skipping2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Parsing configuration file [struts-plugin.xml]2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Unable to locate configuration files of the name struts.xml, skipping2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Parsing configuration file [struts.xml]2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ActionFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ResultFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ConverterFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.factory.InterceptorFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ValidatorFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)2014-7-13 0:50:00 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info資訊: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)2014-7-13 0:50:00 org.apache.coyote.AbstractProtocol start資訊: Starting ProtocolHandler ["http-apr-8686"]2014-7-13 0:50:00 org.apache.coyote.AbstractProtocol start資訊: Starting ProtocolHandler ["ajp-apr-8009"]2014-7-13 0:50:00 org.apache.catalina.startup.Catalina start資訊: Server startup in 23327 ms

2、錯誤原因

3、解決辦法