WebLogic的部署问题

错误代码:
<Feb 23, 2011 12:07:06 PM GMT+08:00> <Error> <J2EE> <BEA-160197> <Unable to load descriptor /netapp/NetbWeb30/WEB-INF/web.xml of mod
ule NetbWeb30. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
  /netapp/NetbWeb30/WEB-INF/web.xml:1:5:1:5: problem: No content type provided for validation of a content model.:</netapp/NetbWeb30
/WEB-INF/web.xml:1:5>
        at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:229)
        at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:216)
        at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
        at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)
        at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:749)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:378)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:72
0)

错误原因分析:
这个web项目是直接从其他项目copy过来的,之前用的服务器是weblogic10,现在部署到weblogic9主机上,部署的过程出现上述问题
解法办法:
该web.xml保存成了UTF-8字符集。修改成ANSI的,再上传上去,部署成功。

你可能感兴趣的:(java,Web,xml,weblogic)