问题描述
我部署应用程序成功后,启动时报如下错误,谁知道怎么解决??在tomcat上运行正常[08-10-3114:00:39:984CST]00000038CollectionFacIJDK1.4+collectionsavailable[08-10-3114:00:40:047CST]00000038CollectionFacICommonsCollections3.xavailable[08-10-3114:00:40:312CST]00000038XmlBeanDefiniILoadingXMLbeandefinitionsfromServletContextresource[/WEB-INF/applicationContext.xml][08-10-3114:00:40:609CST]00000038JbossCacheNamINosupportforJDK1.5Annotations.Unabletoloadparserfornamespace'annotations'[08-10-3114:00:40:672CST]00000038EhCacheNamespINosupportforJDK1.5Annotations.Unabletoloadparserfornamespace'annotations'[08-10-3114:00:40:953CST]00000038JcsNamespaceHINosupportforJDK1.5Annotations.Unabletoloadparserfornamespace'annotations'[08-10-3114:00:40:984CST]00000038GigaSpacesNamINosupportforJDK1.5Annotations.Unabletoloadparserfornamespace'annotations'[08-10-3114:00:41:047CST]00000038OsCacheNamespINosupportforJDK1.5Annotations.Unabletoloadparserfornamespace'annotations'[08-10-3114:00:41:312CST]00000038XmlBeanDefiniILoadingXMLbeandefinitionsfromServletContextresource[/WEB-INF/dataAccessContext.xml][08-10-3114:00:41:375CST]00000038ContextLoaderEContextinitializationfailed[08-10-3114:00:41:422CST]00000038ContextLoaderETRAS0014I:下列异常已记录org.springframework.beans.factory.BeanDefinitionStoreException:Unabletodeterminevalidationmodefor[ServletContextresource[/WEB-INF/dataAccessContext.xml]]:anerroroccurredwhilstreadingfromtheInputStream.;nestedexceptionissun.io.MalformedInputExceptionCausedby:sun.io.MalformedInputExceptionatsun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java(CompiledCode))atsun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java(InlinedCompiledCode))atsun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java(CompiledCode))atsun.nio.cs.StreamDecoder.read(StreamDecoder.java(CompiledCode))atjava.io.InputStreamReader.read(InputStreamReader.java:208)atjava.io.BufferedReader.fill(BufferedReader.java:153)atjava.io.BufferedReader.readLine(BufferedReader.java(CompiledCode))atjava.io.BufferedReader.readLine(BufferedReader.java(CompiledCode))atorg.springframework.util.xml.XmlValidationModeDetector.detectValidationMode(XmlValidationModeDetector.java:79)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.detectValidationMode(XmlBeanDefinitionReader.java:468)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.getValidationModeForResource(XmlBeanDefinitionReader.java:438)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)atorg.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)atorg.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)atorg.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)atorg.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)atjavax.servlet.GenericServlet.init(GenericServlet.java:256)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:262)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1319)atcom.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:84)atcom.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:540)atcom.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:379)atcom.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)atcom.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)atcom.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)atcom.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)atcom.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)atcom.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)atcom.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)atcom.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)atcom.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)atcom.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)atcom.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)atcom.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1161)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(CompiledCode))atjava.lang.reflect.Method.invoke(Method.java(CompiledCode))atjavax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1366)atjavax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1012)atmx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:233)atmx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)atmx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)atmx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)atmx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)atmx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:167)atmx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1249)atcom.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:901)atcom.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(CompiledCode))atcom.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:817)atcom.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:184)
解决方案
解决方案二:
解决方案三:
org.springframework.beans.factory.BeanInitializationException:locationdoesnotexist又出现这个问题了目录开始以/file/aa开始file文件夹该放到哪个地方才会被系统找到
解决方案四:
想知道你的WebSphere的版本与Spring的版本各是多少?
解决方案五:
Causedby:sun.io.MalformedInputExceptionatsun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java(CompiledCode))怀疑你这个XML里面包括了一些在XML头<?xmlversion="1.0"encoding="YYY字符集"?>里面的YYY字符集中不包括的字符。建议在配置文件里不要用中文,如果用了中文最好用一个支持字符集编码的文本编辑器来编辑XML文件,不要用notepad,我们可以用Eclipse或EditPlus之类的编辑器。这样它能帮你验证字符是否正常。