google-code-export / nutz

Automatically exported from code.google.com/p/nutz
Apache License 2.0
1 stars 1 forks source link

更新20100916快照版的jar包后,JsonLoader无法找到js文件所在的文件夹 #289

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
问题产生的条件:
原始版本为:nutz-1.a.32-snapshot-r1500-20100914-jdk6.jar
更新版本为:nutz-1.a.32-snapshot-r1500-20100916-jdk6.jar

发生问题的调用代码:
java.lang.RuntimeException: Js folder or file no found !! Path = com/lhfc/ioc

问题的详细说明:
之前一直不断更新,一直没有发现过这个问题,今天突然我��
�ioc文件目录找不到了。在web目录里新建目录也没用。

异常堆栈:
2010-09-16 22:10:40,500 [main] DEBUG org.nutz.mvc.init.DefaultLoading - Loading 
configuration...
2010-09-16 22:10:40,500 [main] DEBUG org.nutz.mvc.init.DefaultLoading - Create 
Ioc by 'org.nutz.mvc.ioc.provider.JsonIocProvider'
2010-09-16 22:10:40,531 [main] ERROR org.nutz.mvc.init.Inits - Error happend 
during start serivce!
java.lang.RuntimeException: Js folder or file no found !! Path = com/lhfc/ioc
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:15)
    at org.nutz.lang.MirrorBorning.born(MirrorBorning.java:38)
    at org.nutz.lang.Mirror.born(Mirror.java:667)
    at org.nutz.lang.Lang.makeThrow(Lang.java:85)
    at org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:71)
    at org.nutz.mvc.ioc.provider.JsonIocProvider.create(JsonIocProvider.java:13)
    at org.nutz.mvc.init.DefaultLoading.loadIoc(DefaultLoading.java:83)
    at org.nutz.mvc.init.DefaultLoading.load(DefaultLoading.java:54)
    at org.nutz.mvc.init.Inits.init(Inits.java:61)
    at org.nutz.mvc.NutFilter.init(NutFilter.java:36)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:269)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250)
    at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:368)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4193)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4801)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:785)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:763)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:557)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:674)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:599)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:538)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1390)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:355)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:313)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:293)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:996)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:771)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:988)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:275)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:427)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:649)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:585)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
2010-9-16 22:10:40 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.init.InitException: java.lang.RuntimeException: Js folder or file 
no found !! Path = com/lhfc/ioc
    at org.nutz.mvc.init.Inits.init(Inits.java:74)
    at org.nutz.mvc.NutFilter.init(NutFilter.java:36)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:269)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250)
    at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:368)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4193)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4801)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:785)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:763)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:557)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:674)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:599)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:538)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1390)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:355)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:313)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:293)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:996)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:771)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:988)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:275)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:427)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:649)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:585)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
Caused by: java.lang.RuntimeException: Js folder or file no found !! Path = 
com/lhfc/ioc
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:15)
    at org.nutz.lang.MirrorBorning.born(MirrorBorning.java:38)
    at org.nutz.lang.Mirror.born(Mirror.java:667)
    at org.nutz.lang.Lang.makeThrow(Lang.java:85)
    at org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:71)
    at org.nutz.mvc.ioc.provider.JsonIocProvider.create(JsonIocProvider.java:13)
    at org.nutz.mvc.init.DefaultLoading.loadIoc(DefaultLoading.java:83)
    at org.nutz.mvc.init.DefaultLoading.load(DefaultLoading.java:54)
    at org.nutz.mvc.init.Inits.init(Inits.java:61)
    ... 37 more
2010-9-16 22:10:40 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart

相关日志:

Original issue reported on code.google.com by qi.yang...@gmail.com on 16 Sep 2010 at 2:11

GoogleCodeExporter commented 9 years ago
@IocBy(type = JsonIocProvider.class, args = { "com/lhfc/ioc" })

Original comment by qi.yang...@gmail.com on 16 Sep 2010 at 2:13

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 16 Sep 2010 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 16 Sep 2010 at 2:20

GoogleCodeExporter commented 9 years ago
试试最新快照版 http://jperl.oicp.net:908/nutz/lastest/

Original comment by zozoh...@gmail.com on 17 Sep 2010 at 6:50

GoogleCodeExporter commented 9 years ago
最新版是可以的.

Original comment by wendal1985@gmail.com on 19 Sep 2010 at 5:47