NutzCN Logo
问答 是用空间跑nutzwk出现错误
发布于 2920天前 作者 qq_1aa76597 2042 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
to listener instance of class org.apache.shiro.web.env.EnvironmentLoaderListener 
org.apache.shiro.cache.CacheException: net.sf.ehcache.CacheException: java.io.FileNotFoundException: ehcache.disk.store.dir\nutzwk\shiro-active%0053ession%0043ache.data (系统找不到指定的路径。) 
at org.apache.shiro.cache.ehcache.EhCacheManager.ensureCacheManager(EhCacheManager.java:224) 
at org.apache.shiro.cache.ehcache.EhCacheManager.init(EhCacheManager.java:199) 
at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45) 
at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40) 
at org.apache.shiro.config.ReflectionBuilder$BeanConfigurationProcessor.execute(ReflectionBuilder.java:785) 
at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:260) 
at org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:167) 
at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:130) 
at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:108) 
at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:94) 
at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:46) 
at org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123) 
at org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47) 
at org.apache.shiro.web.env.IniWebEnvironment.createWebSecurityManager(IniWebEnvironment.java:203) 
at org.apache.shiro.web.env.IniWebEnvironment.configure(IniWebEnvironment.java:99) 
at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:92) 
at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45) 
at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40) 
at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:221) 
at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:133) 
at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58) 
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) 
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189) 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724) 
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700) 
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) 
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107) 
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
at java.lang.Thread.run(Thread.java:745) 
Caused by: net.sf.ehcache.CacheException: java.io.FileNotFoundException: ehcache.disk.store.dir\nutzwk\shiro-active%0053ession%0043ache.data (系统找不到指定的路径。) 
at net.sf.ehcache.store.disk.DiskStorageFactory.(DiskStorageFactory.java:146) 
at net.sf.ehcache.store.disk.DiskStore.create(DiskStore.java:154) 
at net.sf.ehcache.store.disk.DiskStore.createCacheStore(DiskStore.java:182) 
at net.sf.ehcache.Cache.initialise(Cache.java:1216) 
at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1370) 
at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1436) 
at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:832) 
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:500) 
at net.sf.ehcache.CacheManager.init(CacheManager.java:395) 
at net.sf.ehcache.CacheManager.(CacheManager.java:356) 
at org.apache.shiro.cache.ehcache.EhCacheManager.ensureCacheManager(EhCacheManager.java:213) 
... 33 more 
Caused by: java.io.FileNotFoundException: ehcache.disk.store.dir\nutzwk\shiro-active%0053ession%0043ache.data (系统找不到指定的路径。) 
at java.io.RandomAccessFile.open0(Native Method) 
at java.io.RandomAccessFile.open(RandomAccessFile.java:316) 
at java.io.RandomAccessFile.(RandomAccessFile.java:243) 
at net.sf.ehcache.store.disk.DiskStorageFactory.allocateRandomAccessFiles(DiskStorageFactory.java:207) 
at net.sf.ehcache.store.disk.DiskStorageFactory.(DiskStorageFactory.java:144) 
... 43 more 

23-Nov-2016 15:22:27.243 SEVERE [iugyv66258.jsp.cdnjsp.cn-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 
23-Nov-2016 15:22:27.243 SEVERE [iugyv66258.jsp.cdnjsp.cn-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 
23-Nov-2016 15:22:27.258 INFO [iugyv66258.jsp.cdnjsp.cn-startStop-1] org.apache.catalina.core.ApplicationContext.log Cleaning up Shiro Environment 
23-Nov-2016 15:22:27.258 INFO [iugyv66258.jsp.cdnjsp.cn-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory F:\www2\ofvthw_iy5am1jioslf59xumy7oo-0b44449e5868937b0158900644b90b72\webapps\ROOT has finished in 2,593 ms 
23-Nov-2016 15:22:27.258 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [ajp-nio-127.0.0.1-22113] 
23-Nov-2016 15:22:27.258 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 2627 ms 
23-Nov-2016 15:22:37.259 INFO [iugyv66258.jsp.cdnjsp.cn-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory F:\www2\ofvthw_iy5am1jioslf59xumy7oo-0b44449e5868937b0158900644b90b72\webapps\ehcache.disk.store.dir 
23-Nov-2016 15:22:37.540 INFO [iugyv66258.jsp.cdnjsp.cn-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory F:\www2\ofvthw_iy5am1jioslf59xumy7oo-0b44449e5868937b0158900644b90b72\webapps\ehcache.disk.store.dir has finished in 281 ms 
6 回复

ehcache.xml里面的ehcache.disk.store.dir去掉试试

@wendal 后面又出现这个问题了,是JAR出问题了吗

4-Nov-2016 15:06:48.390 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 
24-Nov-2016 15:06:48.390 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 
24-Nov-2016 15:06:48.921 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-127.0.0.1-27515"] 
24-Nov-2016 15:06:49.296 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 
24-Nov-2016 15:06:49.312 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 2336 ms 
24-Nov-2016 15:06:49.406 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina 
24-Nov-2016 15:06:49.406 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.5 
24-Nov-2016 15:06:49.437 INFO [juefj08746.hk.jspkj.wang-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\www1\a33f71220f7adcbb344f441a8c4a51e7-0b44449e5868937b01588a989013094d\webapps\ROOT 
24-Nov-2016 15:06:49.687 SEVERE [juefj08746.hk.jspkj.wang-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[juefj08746.hk.jspkj.wang].StandardContext[]] 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) 
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724) 
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700) 
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) 
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107) 
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
at java.lang.Thread.run(Thread.java:745) 
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@1b8acd5] 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) 
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4842) 
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4974) 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
... 10 more 
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@1c857f2] 
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112) 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) 
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:705) 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
... 13 more 
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid CEN header (bad signature) 
at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:139) 
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) 
... 16 more 
Caused by: java.util.zip.ZipException: invalid CEN header (bad signature) 
at java.util.zip.ZipFile.open(Native Method) 
at java.util.zip.ZipFile.(ZipFile.java:220) 
at java.util.zip.ZipFile.(ZipFile.java:150) 
at java.util.jar.JarFile.(JarFile.java:166) 
at java.util.jar.JarFile.(JarFile.java:103) 
at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:136) 
... 17 more 

24-Nov-2016 15:06:49.703 SEVERE [juefj08746.hk.jspkj.wang-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory D:\www1\a33f71220f7adcbb344f441a8c4a51e7-0b44449e5868937b01588a989013094d\webapps\ROOT 
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[juefj08746.hk.jspkj.wang].StandardContext[]] 
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:728) 
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700) 
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) 
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107) 
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
at java.lang.Thread.run(Thread.java:745) 

24-Nov-2016 15:06:49.703 INFO [juefj08746.hk.jspkj.wang-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\www1\a33f71220f7adcbb344f441a8c4a51e7-0b44449e5868937b01588a989013094d\webapps\ROOT has finished in 266 ms 
24-Nov-2016 15:06:49.703 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [ajp-nio-127.0.0.1-27515] 
24-Nov-2016 15:06:49.734 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 433 ms 

看上去是有个jar损坏了, 先本地用tomcat跑war嘛,本地ok再上传

@wendal 本地上我跑起来了的,我直接上传的Tomcat下面的项目文件,前面我打包的war包上传上去一直说war包不完整

mvn clean jar war

添加回复
请先登陆
回到顶部