( 转)weblogic92启动Unmarshaller failed和web-app@http://java.sun.com/xml/ns/javaee
转?http://blog.csdn.net/helloworld123/article/details/4089758?
?
?
就是在eclipse里面新建个web project 部署到weblogic上后,启动时报错:
<Unable to load descriptor C:/bea/user_projects/domains/base_domain/./autodeploy/demo/WEB-INF/web.xml of module webProject. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
?at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor
Caused by: com.bea.xml.XmlException: failed to load java type corresponding to?e=web-app@http://java.sun.com/xml/ns/javaee
?at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType
......
?
同样是该项目,部署在tomcat上就没问题,顿时晕倒...
?
到网上google了半天,都没找到啥靠谱的解决方案。差点崩溃!
?
意外间发现在JBoss Community网站上发现了这个问题,这个网址:https://jira.jboss.org/jira/browse/JBSEAM-2247
?
对着洋文又搞了小半天,终于被我搞掂了,嘻嘻......
?
原来是weblogic90不支持用eclipse自动生成2.5版本的web.xml,我的如下:
?
[c-sharp]?view plaincopy??
我把原来的:
<web-app version="2.5"?
????????????????????? xmlns="http://java.sun.com/xml/ns/javaee"?
????????????????????? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?
????????????????????? xsi:schemaLocation="http://java.sun.com/xml/ns/javaee?
???????????????????? ?http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
?
换成:并且去掉version="2.5"
<web-app xmlns:j2ee="http://java.sun.com/xml/ns/j2ee">
?
再重新部署后启动,o了!!