我有一个在weblogic8.1上部署好的系统test.war,现在我把它部署到weblogic9.2上时出现以下错误:
An error occurred during activation of changes, please see the log for details.
[J2EE:160177]The application at "D:\test.war" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml. WAR files require a WEB-INF/web.xml, and RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.
1.
为什么会出现以上错误:
我看了WEB-INF下的weblogic.xml中的头部是:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
是不是应该改成92 ?
2.
weblogic.xml文件是在部署应用时自动生成的,还是自己手工添加的?因为我重新部署一个应用时,在WEB-INF文件夹下并没有生成weblogic.xml文件.
谢谢!
------解决方案--------------------------------------------------------
2.weblogic.xml文件需要自己手工增加的