关于weblogic7.02+Jbuilder9.0对EJB的部署

04-05-18 seaman0916

关于weblogic7.02+Jbuilder9.0对EJB的部署:

异常提示系统找不到´META-INF/ejb-jar.xml´,但事实上我打开´D:\bea\user_projects\mydomain\myserver\upload\Cmp\Cm

p.jar´后,里面确实有这个文件

<2004-5-12 上午11时44分17秒> <Error> <Deployer> <149201> <The Slave Deployer failed to complete the deployment task with id 3 for the application Cmp.weblogic.management.ApplicationException: Prepare failed. Task Id = 3

{

Module Name: Cmp, Error: An error occurred while reading the deployment descriptor. The error was:

java.io.FileNotFoundException: Error: The deployment descriptor ´META-INF/ejb-jar.xml´ was not found in ´D:\bea\user_projects\mydomain\.\myserver\upload\Cmp\Cmp.jar´. Please add this file to the jar and try again.

at weblogic.ejb20.dd.xml.DDUtils.getStreamDDUtils.java:196)

at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:105)

at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:90)

…………………

于是我再次编译,然后部署,这次的异常提示变成了

#TaskIDActionStatusTargetTypeApplicationSource

4ActivateFailedmyserverServerCmpD:\bea\user_projects\mydomain\myserver\upload\Cmp\Cmp.jar

Start server side stack trace:

java.lang.NullPointerException

at weblogic.ejb20.dd.xml.DDUtils.getStream(DDUtils.java:193)

at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:105)

at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:90)

at weblogic.ejb20.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:502)

at weblogic.ejb20.deployer.EJBModule.loadDescriptor(EJBModule.java:207)

at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:714)

at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)

at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1062)

at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:730)

at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)

End server side stack trace

恳请不吝赐教,谢了先!

猜你喜欢