NutzCN Logo
问答 使用nutz框架 tomcat启动之后打不过项目
发布于 2860天前 作者 qq_f5519c6b 3054 次浏览 复制 上一个帖子 下一个帖子
标签:
2017-1-16 14:04:54 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:sjdcbs' did not find a matching property.
2017-1-16 14:04:54 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.6.0_17\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\jdk1.6.0_17\bin;D:\jdk1.6.0_17\jre\bin;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\asus\AppData\Local\Microsoft\WindowsApps;
2017-1-16 14:04:54 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2017-1-16 14:04:54 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 338 ms
2017-1-16 14:04:54 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2017-1-16 14:04:54 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.20
2017-1-16 14:04:54 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\myproject\calileo\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sjdcbs\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.nutz.log.Logs).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2017-1-16 14:04:56 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.json.JsonLoader'
 by args: [
  @(ioc/)] becasue:
folder or file like '^(.+[.])(js|json)$' no found in 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:16)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:926)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:159)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:114)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
	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:413)
Caused by: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.json.JsonLoader'
 by args: [
  @(ioc/)] becasue:
folder or file like '^(.+[.])(js|json)$' no found in ioc/
	at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:21)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:926)
	at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:85)
	at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:62)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
	at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:316)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:91)
	... 20 more
Caused by: java.lang.RuntimeException: folder or file like '^(.+[.])(js|json)$' no found in 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:16)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:926)
	at org.nutz.lang.Lang.makeThrow(Lang.java:111)
	at org.nutz.resource.Scans.loadResource(Scans.java:85)
	at org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:39)
	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.DynamicConstructorBorning.born(DynamicConstructorBorning.java:18)
	... 27 more
2017-1-16 14:04:56 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2017-1-16 14:04:56 org.apache.catalina.core.StandardContext start
严重: Context [/sjdcbs] startup failed due to previous errors
2017-1-16 14:04:56 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2017-1-16 14:04:56 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2017-1-16 14:04:56 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/16  config=null
2017-1-16 14:04:56 org.apache.catalina.startup.Catalina start
信息: Server startup in 1989 ms

我tomcat 启动之后,但是项目打不开 报404

4 回复

启动失败了呢

  1. 日志没配好
  2. ioc配置文件没打包进去

看上去是所有资源文件都没打包进去

@wendal 我全部导进去了 可是就是运行不了。 那个配置我看了 也是正确的。

@qq_f5519c6b 全部导进去?这是哪个项目? 按理说有log4j.properties吧?但启动的时候没有找到呢。同理,ioc的配置文件也找不到。

是不是有src和conf两个目录,然后conf目录没设置为源文件夹?

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