Keyword: weblogic? org/saxpath/SAXPathException
?
我部署的一个工程出现了以下异常
?
rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Bexs' defined in ServletContext resource [/WEB-INF/conf/spring-config/bex.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'configHandle' threw exception; nested exception is java.lang.NoClassDefFoundError: org/saxpath/SAXPathException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'configDefine' threw exception; nested exception is java.lang.NoClassDefFoundError: org/saxpath/SAXPathException
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1074)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:863)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:382)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144)
?? ?at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
?? ?at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:321)
?? ?at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
?? ?at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)
?? ?at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
?? ?at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)
?? ?at com.sakd.servlet.SpringLoaderServlet.init(SpringLoaderServlet.java:23)
?? ?at javax.servlet.GenericServlet.init(GenericServlet.java:241)
?? ?at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:282)
?? ?at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
?? ?at weblogic.security.service.SecurityManager.runAs(Unknown Source)
?? ?at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63)
?? ?at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
?? ?at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
?? ?at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
?? ?at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1830)
?? ?at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1807)
?? ?at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1727)
?? ?at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2890)
?? ?at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:948)
?? ?at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:353)
?? ?at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
?? ?at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
?? ?at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
?? ?at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
?? ?at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
?? ?at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
?? ?at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
?? ?at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
?? ?at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
?? ?at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
?? ?at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
?? ?at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
?? ?at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
?? ?at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
?? ?at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
?? ?at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
?? ?at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
?? ?at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:139)
?? ?at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
?? ?at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:816)
?? ?at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1223)
?? ?at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:434)
?? ?at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161)
?? ?at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
?? ?at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
?? ?at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
?? ?at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
?? ?at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
?? ?at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
?
在网上查了一下解决方法为在 工程的 WEB-INF\lib\下加入了 saxpath.jar
?
我在 weblogic 9.2? weblogic 10.0部署时都出现了这个错误 在tomcat中不会出现这个错误
?
?
?
?
?
?
2.? java.net.URISyntaxException??? URI.create()
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kcbpFactory' defined in ServletContext resource [/WEB-INF/conf/spring-config/bex.xml]: Initialization of bean failed; nested exception is java.lang.ExceptionInInitializerError
??????? at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407)
??????? at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234)
??????? at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144)
??????? at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
??????? at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:321)
??????? Truncated. see log file for complete stacktrace
java.lang.ExceptionInInitializerError
??????? at com.szkd.kjp.ConnectionPool.createConnection(ConnectionPool.java:33)
??????? at com.szkd.kjp.ConnectionPool.initPool(ConnectionPool.java:87)
??????? at com.szkd.kjp.ConnectionFactory.initFactory(ConnectionFactory.java:58)
??????? at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
??????? at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
??????? Truncated. see log file for complete stacktrace
java.lang.IllegalArgumentException
??????? at java.net.URI.create(URI.java:842)
??????? at com.szjni.kcbpcli.KCBPClient.<clinit>(KCBPClient.java:224)
??????? at com.szkd.kjp.ConnectionPool.createConnection(ConnectionPool.java:33)
??????? at com.szkd.kjp.ConnectionPool.initPool(ConnectionPool.java:87)
??????? at com.szkd.kjp.ConnectionFactory.initFactory(ConnectionFactory.java:58)
??????? Truncated. see log file for complete stacktrace
java.net.URISyntaxException: Illegal character in path at index 16
: file:/E:/Web Files/webl
ogic/test/FundSales/WEB-INF/classes/
??????? at java.net.URI$Parser.fail(URI.java:2809)
??????? at java.net.URI$Parser.checkChars(URI.java:2982)
??????? at java.net.URI$Parser.parseHierarchical(URI.java:3066)
??????? at java.net.URI$Parser.parse(URI.java:3014)
??????? at java.net.URI.<init>(URI.java:578)
??????? Truncated. see log file for complete stacktrace
?
?
部署时工程换了一个路径后出错了? 发现java.net.URISyntaxException: Illegal character in path at index 16 : file:/E:/Web Files/weblogic/test/FundSales/WEB-INF/classes/
原来在部署工程的路径中? 出现了名称带有空格的文件夹? Web Files 文件夹