项目部署在WebLogic上

哈莱米修 发布于 2015/01/07 16:20
阅读 2K+
收藏 0

大家帮我看看,我这web.xml文件问题出现在哪,这项目在Tomcat下部署成功,可到WebLogic中就报这错了。。。

激活更改期间出错, 有关详细信息, 请查看日志。
[HTTP:101064][WebAppModule(piccucp:piccucp)] Error parsing descriptor in Web appplication "/home/middleware/weblogic12/user_projects/domains/ucpcluster/servers/server2/stage/piccucp/piccucp" weblogic.application.ModuleException: VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.3: Element 'web-app@http ://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.:<null> at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:1494) at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:253) at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636) at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162) at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74) at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:84) at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:312) at weblogic.application.internal.flow.InitModulesFlow.initModules(InitModulesFlow.java:325) at weblogic.application.internal.flow.InitModulesFlow.prepare(InitModulesFlow.java:378) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237) at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.RedeployOperation.createAndPrepareContainer(RedeployOperation.java:104) at weblogic.deploy.internal.targetserver.operations.RedeployOperation.doPrepare(RedeployOperation.java:138) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229) at

加载中
0
TonyJian
TonyJian

web.xml的编码是utf-8 + BOM,应该是utf-8

去掉里面乱起八糟的空格,换行,注解

标签顺序

删掉servlet里的display-name

返回顶部
顶部