日期:2014-05-17  浏览次数:20938 次

weblogic部署项目问题
首先我说下我的部署环境和开发模式:部署环境是MyEclipse+Weblogic9i,开发环境是JSP+Servlet,没有用框架,所以不是框架的包的问题。我部署的时候都是通过MyEclipse直接部署项目的,具体步骤就是启动服务,然后通过MyEclipse部署,结果每次部署都是报同一个错误(有时候重启下服务然后再部署就不报了,我也不知道怎么回事)。希望哪位大虾帮忙解决下,呵呵。下面是后台的异常:
没有加入EJB的包!!!
<2009-11-20 下午05时12分25秒 CST> <Error> <Deployer> <BEA-149265> <Failure occured in the execution of deployment request with ID '1258708344578' for task '1'. Error is: 'weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\tools\bea\user_projects\domains\mydomain\.\autodeploy\1.5_project" 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.'
weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\tools\bea\user_projects\domains\mydomain\.\autodeploy\1.5_project" 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.
at weblogic.application.internal.DeploymentManagerImpl.createDeployment(DeploymentManagerImpl.java:109)
at weblogic.deploy.internal.targetserver.BasicDeployment.createDeployment(BasicDeployment.java:146)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:184)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
Truncated. see log file for complete stacktrace

<2009-11-20 下午05时12分26秒 CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application '_appsdir_1.5_project_dir'.> 
<2009-11-20 下午05时12分26秒 CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\tools\bea\user_projects\domains\mydomain\.\autodeploy\1.5_project" 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.
at weblogic.application.internal.DeploymentManagerImpl.createDeployment(DeploymentManagerImpl.java:109)
at weblogic.deploy.internal.targetserver.BasicDeployment.createDeployment(BasicDeployment.java:146)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:184)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
Truncated. see log file for complete stacktrace