NutzCN Logo
问答 nutzboot 启动类为什么放在com包名下启动就报错,其它包名下启动都是正常的,以下是报错日志!
发布于 2436天前 作者 小苍蝇 1679 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
[INFO ] 09:31:05.015 org.nutz.boot.banner.SimpleBannerPrinter.printBanner(SimpleBannerPrinter.java:34) - 
 _   _ ______                                      ___   
| \ | || ___ \  ______ ______ ______ ______ ______| \ \  
|  \| || |_/ / |______|______|______|______|______| |\ \ 
| . ` || ___ \  ______ ______ ______ ______ ______| | > >
| |\  || |_/ / |______|______|______|______|______| |/ / 
\_| \_/\____/                                     |_/_/  
  
:: Nutz Boot ::   (2.2-SNAPSHOT)

[INFO ] 09:31:05.032 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorResourceLocation.java:28) - [loc=D:\working%20space\testms\iads\target\classes]not exist
[INFO ] 09:31:05.036 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorResourceLocation.java:28) - [loc=D:\working%20space\testms\iads\target\classes]not exist
[DEBUG] 09:31:05.202 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=101 time use 171ms
[DEBUG] 09:31:05.215 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
[DEBUG] 09:31:05.215 org.nutz.ioc.impl.PropertiesProxy.setPaths(PropertiesProxy.java:114) - load properties from jar:file:/D:/repository/maven/repo/org/nutz/nutzboot-core/2.2-SNAPSHOT/nutzboot-core-2.2-SNAPSHOT.jar!/custom/emtry.properties
[DEBUG] 09:31:05.217 org.nutz.boot.config.impl.PropertiesConfigureLoader.init(PropertiesConfigureLoader.java:39) - load D:\working space\testms\iads\target\classes\application.properties
[DEBUG] 09:31:05.317 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 09:31:05.318 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [emtry.json]
[DEBUG] 09:31:05.321 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 0 bean define from path=[ioc/] --> []
[DEBUG] 09:31:05.433 org.nutz.castor.Castors.reload(Castors.java:116) - Using 101 castor for Castors
[DEBUG] 09:31:05.461 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
[INFO ] 09:31:05.574 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) -  > scan 'com'
[DEBUG] 09:31:08.214 org.nutz.resource.Scans.scan(Scans.java:280) - Found 4269 resource by src( com/ ) , regex( ^.+[.]class$ )
[INFO ] 09:31:09.369 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource mysql/jdbc/integration/c3p0/MysqlConnectionTester.class
[INFO ] 09:31:09.372 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource mysql/jdbc/integration/jboss/ExtendedMysqlExceptionSorter.class
[INFO ] 09:31:09.377 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource mysql/jdbc/integration/jboss/MysqlValidConnectionChecker.class
[INFO ] 09:31:09.643 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/calcite/DDLTable.class
[INFO ] 09:31:09.645 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/calcite/DDLColumn.class
[INFO ] 09:31:09.648 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/calcite/DDLSchema.class
[INFO ] 09:31:09.654 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/opds/udf/ExportConditions.class
[INFO ] 09:31:09.658 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/opds/udf/ExportSelectListColumns.class
[INFO ] 09:31:09.663 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/opds/udf/ExportColumns.class
[INFO ] 09:31:09.668 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/opds/udf/ExportConditionColumns.class
[INFO ] 09:31:09.673 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/opds/udf/ExportTables.class
[INFO ] 09:31:09.709 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/simplejndi/DruidDataSourceConverter.class
[INFO ] 09:31:09.714 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/hibernate/DruidConnectionProvider.class
[INFO ] 09:31:09.749 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/quartz/DruidQuartzConnectionProvider.class
[INFO ] 09:31:09.759 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/ibatis/SqlMapClientImplWrapper.class
[INFO ] 09:31:09.762 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/ibatis/SqlMapClientWrapper.class
[INFO ] 09:31:09.765 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/ibatis/SqlMapExecutorWrapper.class
[INFO ] 09:31:09.768 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/ibatis/DruidDataSourceFactory.class
[INFO ] 09:31:09.772 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/ibatis/SqlMapSessionWrapper.class
[INFO ] 09:31:09.785 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/jconsole/DruidPlugin.class
[INFO ] 09:31:09.941 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/spring/mvc/StatHandlerInterceptor.class
[INFO ] 09:31:09.944 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/spring/DruidLobHandler.class
[INFO ] 09:31:09.957 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/spring/DruidNativeJdbcExtractor.class
[INFO ] 09:31:09.960 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource alibaba/druid/support/spring/DruidLobCreator.class
[ERROR] 09:31:10.485 org.nutz.boot.NbApp.run(NbApp.java:173) - something happen
java.lang.NoClassDefFoundError: com/microsoft/schemas/office/excel/STCF
	at java.lang.Class.getDeclaringClass0(Native Method)
	at java.lang.Class.getDeclaringClass(Class.java:1235)
	at java.lang.Class.getEnclosingClass(Class.java:1277)
	at java.lang.Class.getSimpleBinaryName(Class.java:1443)
	at java.lang.Class.isMemberClass(Class.java:1433)
	at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:62)
	at org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:52)
	at org.nutz.ioc.loader.annotation.AnnotationIocLoader$FC$31c2b655809620aa3360d108200d18f6.invoke(AnnotationIocLoader.java)
	at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
	at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:17)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:1022)
	at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:124)
	at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:98)
	at org.nutz.boot.NbApp.prepareIocLoader(NbApp.java:342)
	at org.nutz.boot.NbApp.prepare(NbApp.java:232)
	at org.nutz.boot.NbApp._run(NbApp.java:184)
	at org.nutz.boot.NbApp.run(NbApp.java:170)
	at com.MainLauncher.main(MainLauncher.java:54)
Caused by: java.lang.ClassNotFoundException: com.microsoft.schemas.office.excel.STCF
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 19 more

2 回复

因为会扫描MainLauncher所在的package及子package

作为很基本的编程习惯,起码要放在二级package,且唯一,例如 net.qxxxx org.zudnd 等自定义package,而不要放在com/org/net这些烂大街的package下

soga! 原来如此,我记录下来了,多谢大神

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