NutzCN Logo
问答 intel idea 多模块调用时,ioc找不到service模块
发布于 3168天前 作者 lovegenii 5578 次浏览 复制 上一个帖子 下一个帖子
标签:

大牛好,在idea下,建立多模块,service一个模块,web一个模块(它调用service模块),web中有ioc的定义,同时,service下定义如下:
@IocBean(fields = { "dao" })
@InjectName("teachService")

我在web模块下调用
当启动jetty时,会报找不到service的块
错误如下:
java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
最关键是,我也没有Lcom这个包,这个L是那里来的呢

9 回复

完整报错信息

2016-04-20 23:06:17.556:WARN:oejd.ContextDeployer:ContextDeployer is deprecated. Use ContextProvider
STOP.PORT=54157
STOP.KEY=1com6n6k5d9ts
2016-04-20 23:06:17.561:INFO:oejs.Server:jetty-8.1.17.v20150415
2016-04-20 23:06:17.575:INFO:oejdp.ScanningAppProvider:Deployment monitor C:\Program Files (x86)\jetty8\webapps at interval 1
2016-04-20 23:06:17.579:INFO:oejd.DeploymentManager:Deployable added: C:\Program Files (x86)\jetty8\webapps\spdy.war
2016-04-20 23:06:17.682:INFO:oejw.WebInfConfiguration:Extract jar:file:/C:/Program%20Files%20(x86)/jetty8/webapps/spdy.war!/ to C:\Users\lambertliu\AppData\Local\Temp\jetty-0.0.0.0-8080-spdy.war-_spdy-any-\webapp
2016-04-20 23:06:18.057:INFO:oejdp.ScanningAppProvider:Deployment monitor C:\Program Files (x86)\jetty8\contexts at interval 1
2016-04-20 23:06:18.059:INFO:oejd.DeploymentManager:Deployable added: C:\Program Files (x86)\jetty8\contexts\test.xml
2016-04-20 23:06:18.146:INFO:oejw.WebInfConfiguration:Extract jar:file:/C:/Program%20Files%20(x86)/jetty8/webapps/test.war!/ to C:\Users\lambertliu\AppData\Local\Temp\jetty-0.0.0.0-8080-test.war-_-any-\webapp
2016-04-20 23:06:18.680:INFO:oejs.TransparentProxy:TransparentProxy @ /javadoc-proxy to http://download.eclipse.org/jetty/stable-8/apidocs
2016-04-20 23:06:18.681:INFO:oejd.DeploymentManager:Deployable added: C:\Program Files (x86)\jetty8\contexts\javadoc.xml
2016-04-20 23:06:18.699:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
ShutdownMonitorThread already started2016-04-20 23:06:18.699:INFO:oejs.Server:jetty-8.1.17.v20150415
Connected to server
[2016-04-20 11:06:18,998] Artifact web:war: Artifact is being deployed, please wait...
2016-04-20 23:06:20.725:INFO:oejd.ContextDeployer:Deploy C:\Users\lambertliu\AppData\Local\Temp\context274deploy\web-1.0.xml -> o.e.j.w.WebAppContext{/web-1.0,null},C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0.war
2016-04-20 23:06:20.760:INFO:oejw.WebInfConfiguration:Extract jar:file:/C:/Users/lambertliu/IdeaProjects/TeachArt/web/target/web-1.0.war!/ to C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0
2016-4-20 23:6:21.428 WARN [Scanner-2] !!You are using default SystemLog! Don't use it in Production environment!!
2016-4-20 23:6:21.431 INFO [Scanner-2] NutFilter[nutz] starting ...
2016-4-20 23:6:21.485 INFO [Scanner-2] [loc=C:\Program%20Files%20(x86)\jetty8\resources]not exist
2016-4-20 23:6:21.676 DEBUG [Scanner-2] Locations for Scans:
[FileSystemResourceLocation [root=C:\Program Files (x86)\jetty8], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-jndi-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-deploy-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-server-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jndi\javax.mail.glassfish-1.4.1.v201005082020.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\servlet-api-3.0.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jndi\javax.activation-1.1.0.v201105071233.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\annotations\javax.annotation-1.1.0.v201108011116.jar], ErrorResourceLocation [loc=C:\Program%20Files%20(x86)\jetty8\resources], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\annotations\org.objectweb.asm-3.1.0.v200803061910.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-websocket-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\org.eclipse.jdt.core-3.7.1.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-continuation-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-webapp-8.1.17.v20150415.jar], FileSystemResourceLocation [root=C:\Program Files (x86)\jetty8\resources], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\javax.el-2.2.0.v201108011116.jar], JarResourceLocation [jarPath=C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0\WEB-INF\lib\nutz-1.r.55.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-plus-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-util-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\javax.servlet.jsp-2.2.0.v201112011158.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-security-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-annotations-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-xml-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\javax.servlet.jsp.jstl-1.2.0.v201105211821.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-jmx-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\org.apache.jasper.glassfish-2.2.2.v201112011158.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\com.sun.el-2.2.0.v201108011116.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-http-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-io-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-servlet-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-servlets-8.1.17.v20150415.jar]]
2016-4-20 23:6:21.783 DEBUG [Scanner-2] Locations for Scans:
[FileSystemResourceLocation [root=C:\Program Files (x86)\jetty8], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-jndi-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-deploy-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-server-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jndi\javax.mail.glassfish-1.4.1.v201005082020.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\servlet-api-3.0.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jndi\javax.activation-1.1.0.v201105071233.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar], JarResourceLocation [jarPath=C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0\WEB-INF\lib\logback-core-1.1.2.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\annotations\javax.annotation-1.1.0.v201108011116.jar], ErrorResourceLocation [loc=C:\Program%20Files%20(x86)\jetty8\resources], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\annotations\org.objectweb.asm-3.1.0.v200803061910.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-websocket-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\org.eclipse.jdt.core-3.7.1.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-continuation-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-webapp-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0\WEB-INF\lib\slf4j-api-1.7.10.jar], FileSystemResourceLocation [root=C:\Program Files (x86)\jetty8\resources], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\javax.el-2.2.0.v201108011116.jar], JarResourceLocation [jarPath=C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0\WEB-INF\lib\nutz-1.r.55.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-plus-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0\WEB-INF\lib\logback-classic-1.1.2.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-util-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\javax.servlet.jsp-2.2.0.v201112011158.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-security-8.1.17.v20150415.jar], FileSystemResourceLocation [root=C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0\WEB-INF\classes], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-annotations-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-xml-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0\WEB-INF\lib\lombok-1.14.4.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\javax.servlet.jsp.jstl-1.2.0.v201105211821.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-jmx-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0\WEB-INF\lib\jcl-over-slf4j-1.7.10.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\org.apache.jasper.glassfish-2.2.2.v201112011158.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jsp\com.sun.el-2.2.0.v201108011116.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-http-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-io-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-servlet-8.1.17.v20150415.jar], JarResourceLocation [jarPath=C:\Program Files (x86)\jetty8\lib\jetty-servlets-8.1.17.v20150415.jar]]
2016-4-20 23:6:21.786 DEBUG [Scanner-2] MainModule: <com.teachart.controllers.MainModule>
2016-4-20 23:6:21.795 DEBUG [Scanner-2] Loading by class org.nutz.mvc.impl.NutLoading
2016-4-20 23:6:21.796 INFO [Scanner-2] Nutz Version : 1.r.55
2016-4-20 23:6:21.796 INFO [Scanner-2] Nutz.Mvc[nutz] is initializing ...
2016-4-20 23:6:21.796 DEBUG [Scanner-2] Web Container Information:
2016-4-20 23:6:21.797 DEBUG [Scanner-2] - Default Charset : GBK
2016-4-20 23:6:21.797 DEBUG [Scanner-2] - Current . path : C:\Program Files (x86)\jetty8.
2016-4-20 23:6:21.797 DEBUG [Scanner-2] - Java Version : 1.7.0_71
2016-4-20 23:6:21.798 DEBUG [Scanner-2] - File separator : \
2016-4-20 23:6:21.798 DEBUG [Scanner-2] - Timezone : GMT+08:00
2016-4-20 23:6:21.798 DEBUG [Scanner-2] - OS : Windows 8.1 x86
2016-4-20 23:6:21.798 DEBUG [Scanner-2] - ServerInfo : jetty/8.1.17.v20150415
2016-4-20 23:6:21.798 DEBUG [Scanner-2] - Servlet API : 3.0
2016-4-20 23:6:21.799 DEBUG [Scanner-2] - ContextPath : /web-1.0
2016-4-20 23:6:21.799 DEBUG [Scanner-2] - context.tempdir : C:\Users\lambertliu\AppData\Local\Temp\jetty-0.0.0.0-8080-web-1.0.war-_web-1.0-any-
2016-4-20 23:6:21.799 DEBUG [Scanner-2] MainModule: <com.teachart.controllers.MainModule>
2016-4-20 23:6:21.799 DEBUG [Scanner-2] >> app.root = C:/Users/lambertliu/IdeaProjects/TeachArt/web/target/web-1.0
2016-4-20 23:6:21.837 DEBUG [Scanner-2] Using 94 castor for Castors
2016-4-20 23:6:21.838 DEBUG [Scanner-2] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*org.nutz.ioc.loader.json.JsonLoader", "conf", "*org.nutz.ioc.loader.annotation.AnnotationIocLoader", "com.teachart.controllers", "com.teachart.services"],init=[])
2016-4-20 23:6:21.851 DEBUG [Scanner-2] Found 2 resource by src( conf ) , regex( ^(.+[.])(js|json)$ )
2016-4-20 23:6:21.851 DEBUG [Scanner-2] loading ioc js config from [dao.json]
2016-4-20 23:6:21.853 DEBUG [Scanner-2] loading ioc js config from [ioc.json]
2016-4-20 23:6:21.855 DEBUG [Scanner-2] Loaded 16 bean define from path=[conf] --> [mail, txREPEATABLE_READ, dataSource, txNONE, fileSqlManager, uploadFileContext, txSERIALIZABLE, tmpFilePool, $aop, txREAD_UNCOMMITTED, log, loginFilter, srvUtil, txREAD_COMMITTED, dao, myUpload]
2016-4-20 23:6:21.857 DEBUG [Scanner-2] Found 2 resource by src( com/teachart/controllers/ ) , regex( ^.+[.]class$ )
2016-4-20 23:6:21.857 DEBUG [Scanner-2] Found : class com.teachart.controllers.MainModule
2016-4-20 23:6:21.862 DEBUG [Scanner-2] Found : class com.teachart.controllers.TeachCotrollers
2016-4-20 23:6:21.862 ERROR [Scanner-2] Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.annotation.AnnotationIocLoader'
by args: [
@(com.teachart.controllers)
@(com.teachart.services)] becasue:
java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
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:988)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:102)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:383)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:102)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:353)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
at java.lang.Class.getDeclaredFields(Class.java:1811)
at org.nutz.lang.Mirror._getFields(Mirror.java:544)
at org.nutz.lang.Mirror.getFields(Mirror.java:522)
at org.nutz.lang.Mirror.getFields(Mirror.java:508)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:125)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:45)
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.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
... 27 more
Caused by: java.lang.ClassNotFoundException: com.teachart.services.TeachService
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:430)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
... 40 more
2016-04-20 23:06:21.864:WARN:oejuc.AbstractLifeCycle:FAILED nutz: org.nutz.mvc.LoadingException: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.annotation.AnnotationIocLoader'| by args: [| @(com.teachart.controllers)| @(com.teachart.services)] becasue:|java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
org.nutz.mvc.LoadingException: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.annotation.AnnotationIocLoader'| by args: [| @(com.teachart.controllers)| @(com.teachart.services)] becasue:|java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
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.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:988)
at org.nutz.lang.Lang.wrapThrow(Lang.java:165)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:134)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:353)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by:
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.annotation.AnnotationIocLoader'| by args: [| @(com.teachart.controllers)| @(com.teachart.services)] becasue:|java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
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:988)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:102)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:383)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:102)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:353)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by:
java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
at java.lang.Class.getDeclaredFields(Class.java:1811)
at org.nutz.lang.Mirror._getFields(Mirror.java:544)
at org.nutz.lang.Mirror.getFields(Mirror.java:522)
at org.nutz.lang.Mirror.getFields(Mirror.java:508)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:125)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:45)
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.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:988)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:102)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:383)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:102)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:353)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by:
java.lang.ClassNotFoundException: com.teachart.services.TeachService
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:430)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
at java.lang.Class.getDeclaredFields(Class.java:1811)
at org.nutz.lang.Mirror._getFields(Mirror.java:544)
at org.nutz.lang.Mirror.getFields(Mirror.java:522)
at org.nutz.lang.Mirror.getFields(Mirror.java:508)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:125)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:45)
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.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:988)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:102)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:383)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:102)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:353)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
2016-04-20 23:06:21.870:WARN:oejw.WebAppContext:Failed startup of context o.e.j.w.WebAppContext{/web-1.0,file:/C:/Users/lambertliu/IdeaProjects/TeachArt/web/target/web-1.0/},C:\Users\lambertliu\IdeaProjects\TeachArt\web\target\web-1.0.war
org.nutz.mvc.LoadingException: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.annotation.AnnotationIocLoader'| by args: [| @(com.teachart.controllers)| @(com.teachart.services)] becasue:|java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
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.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:988)
at org.nutz.lang.Lang.wrapThrow(Lang.java:165)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:134)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:353)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by:
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.annotation.AnnotationIocLoader'| by args: [| @(com.teachart.controllers)| @(com.teachart.services)] becasue:|java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
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:988)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:102)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:383)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:102)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:353)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by:
java.lang.NoClassDefFoundError: Lcom/teachart/services/TeachService;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
at java.lang.Class.getDeclaredFields(Class.java:1811)
at org.nutz.lang.Mirror._getFields(Mirror.java:544)
at org.nutz.lang.Mirror.getFields(Mirror.java:522)
at org.nutz.lang.Mirror.getFields(Mirror.java:508)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:125)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:45)
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.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:988)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:102)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:383)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:102)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:353)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by:
java.lang.ClassNotFoundException: com.teachart.services.TeachService
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:430)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
at java.lang.Class.getDeclaredFields(Class.java:1811)
at org.nutz.lang.Mirror._getFields(Mirror.java:544)
at org.nutz.lang.Mirror.getFields(Mirror.java:522)
at org.nutz.lang.Mirror.getFields(Mirror.java:508)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:125)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:45)
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.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:988)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:102)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:383)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:102)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:353)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

其实,我的这种做法就相当于是把service打成jar包了,然后,把jar包放到web下进行调用,按理说应该可以被调的,可就是不行。我把service放到同一个模块下,就没有问题了,原因在那里呢?

maven的pom.xml里面没依赖对?

mvn package 打包个war,看来有无引用的子模块中的类

@wendal(wendal) 确实没有把模块service打进包,这种情况怎么办呢?我的是工程下,有二个同级的模块,一个是web模块,一个是serices模块,我如何能让web正常调用同级模块呢?求大神帮助一下,谢谢大神

大神,解决了,但是新的问题来了,我的druid应该放在那个模块下呢?是应该放在service的模块下,还是放在web下?我现在是放在dao.json同级模块下,但是它返回查不到
2016-4-21 1:29:1.425 DEBUG [qtp16278084-27] Remove object 'teachService' from [app]
2016-4-21 1:29:1.425 DEBUG [qtp16278084-27] Remove object 'teachCotroller' from [app]
2016-4-21 1:29:1.425 WARN [qtp16278084-27] Error@/class/gethome :
org.nutz.ioc.IocException: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource' For object [dataSource] - type:[] FAIL to create Ioc Bean name=[dao] FAIL to create Ioc Bean name=[teachService] FAIL to create Ioc Bean name=[teachCotroller]
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:147)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:204)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:229)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:196)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.nutz.ioc.IocException: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource' For object [dataSource] - type:[] FAIL to create Ioc Bean name=[dao] FAIL to create Ioc Bean name=[teachService]
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:147)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:204)
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
... 36 more
Caused by: org.nutz.ioc.IocException: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource' For object [dataSource] - type:[] FAIL to create Ioc Bean name=[dao]
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:147)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:204)
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
... 41 more
Caused by: org.nutz.ioc.IocException: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource' For object [dataSource] - type:[]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:211)
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
... 46 more
Caused by: org.nutz.ioc.ObjectLoadException: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource'
at org.nutz.ioc.IocLoading.E(IocLoading.java:32)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:59)
at org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:86)
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:147)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:176)
... 48 more
Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.pool.DruidDataSource
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:430)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at org.nutz.lang.Lang.loadClass(Lang.java:1989)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:55)
... 51 more

都试试吧,我没这样用过

@wendal(wendal) 问题已经解决了, 实验证明放在那里都可以的, 只是在发布的时候, 要把包打进去, 这只是idea的发布规则. 弄懂后, 发现, 放在那里都是一样的.
目前实验是: web下就是在web.xml配置了一下, 引用nutz包
把配置文件json及调用数据库的对应操作放到service下

再补一句谢谢, 大神, 谢谢你反馈的这么快, 让我感觉大神永远在身边, 非常的感谢

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