shellContextException

............
 Exception in thread "main" org.mortbay.util.MultiException[org.springframework.beans.factory.access.BootstrapException: 
 			Unable to initialize group definition. Group resource name [classpath*:telnet-beanRefContext.xml], 
 			factory key [com.vtradex.telnet]; nested exception is org.springframework.beans.factory.BeanCreationException: 
 			Error creating bean with name 'com.vtradex.telnet' defined in URL 
 			[jar:file:/D:/dev/maven-1.0.2/repository/jac_scl/jars/jac_scl_wms-4.1.4.3.jar!/telnet-beanRefContext.xml]: 
 			Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: 
 			Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: 
 			Constructor threw exception; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: 
 			Cannot find class [ com.vtradex.stms.server.telnet.shell.bangzha.SclBZShell] for bean with name 'sclBZShell' 
 			defined in URL [file:/D:/WorkspacesShangHai/jac_scl_tms/target/jac_scl_tms/WEB-INF/classes/shellContext.xml]; 
 			nested exception is java.lang.ClassNotFoundException:  com.vtradex.stms.server.telnet.shell.bangzha.SclBZShell]
	at org.mortbay.http.HttpServer.doStart(HttpServer.java:686)
	at org.mortbay.util.Container.start(Container.java:72)
	at AjaxJettyLauncher.run(AjaxJettyLauncher.java:25)
	at AjaxJettyLauncher.main(AjaxJettyLauncher.java:13)
org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. 
	Group resource name [classpath*:telnet-beanRefContext.xml], factory key [com.vtradex.telnet]; 
	nested exception is org.springframework.beans.factory.BeanCreationException: 
	Error creating bean with name 'com.vtradex.telnet' defined in URL 
	[jar:file:/D:/dev/maven-1.0.2/repository/jac_scl/jars/jac_scl_wms-4.1.4.3.jar!/telnet-beanRefContext.xml]: 
	Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: 
	Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: 
	Constructor threw exception; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: 
	Cannot find class [ com.vtradex.stms.server.telnet.shell.bangzha.SclBZShell] for bean with name 'sclBZShell' 
	defined in URL [file:/D:/WorkspacesShangHai/jac_scl_tms/target/jac_scl_tms/WEB-INF/classes/shellContext.xml]; 
	nested exception is java.lang.ClassNotFoundException:  com.vtradex.stms.server.telnet.shell.bangzha.SclBZShell
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vtradex.telnet' 
defined in URL [jar:file:/D:/dev/maven-1.0.2/repository/jac_scl/jars/jac_scl_wms-4.1.4.3.jar!/telnet-beanRefContext.xml]: 
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: 
Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: 
Constructor threw exception; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: 
Cannot find class [ com.vtradex.stms.server.telnet.shell.bangzha.SclBZShell] for bean with name 'sclBZShell' 
defined in URL [file:/D:/WorkspacesShangHai/jac_scl_tms/target/jac_scl_tms/WEB-INF/classes/shellContext.xml]; 
nested exception is java.lang.ClassNotFoundException:  com.vtradex.stms.server.telnet.shell.bangzha.SclBZShell
.....................
//每次启动后就会提示找不到这个bean对应的class,但是我看了配置是没问题的,而且用鼠标加ctrl点class也可以进去,实在纳闷。
//原因:
shellContext.xml:
 <bean id="sclBZShell" parent="abstractShell" class=" com.vtradex.stms.server.telnet.shell.bangzha.SclBZShell" singleton="false">
 </bean>
 class加了一个空格导致的。

 

你可能感兴趣的:(exception)