急急急求助!!大家帮帮我~~~~~

04-04-23 fugees
我用jdom把数据库数据写到xml文件中,单独在一个项目中运行没问题!

但是部署我的EJB应用时,就报错:

java.lang.NoClassDefFoundError: org/jdom/Content

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)

at java.lang.Class.privateGetPublicMethods(Class.java:1655)

at java.lang.Class.getMethods(Class.java:815)

at weblogic.ejb20.ejbc.VersionHelper.computeCRC(VersionHelper.java:319)

at weblogic.ejb20.ejbc.VersionHelper.makeFileHash(VersionHelper.java:239)

at weblogic.ejb20.ejbc.VersionHelper.<init>(VersionHelper.java:74)

at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:616)

at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)

at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)

at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847)

at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)

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

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

at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)

at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)

at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)

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

at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)

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

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

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

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

--------------- nested within: ------------------

weblogic.management.ManagementException: - with nested exception:

[java.lang.NoClassDefFoundError: org/jdom/Content]

at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2523)

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

at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)

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

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

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

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

>

du_d_u
2004-04-23 10:21
发布的时候就有报错还是运行的时候有错?

fugees
2004-04-23 10:31
是deploy时出现这样的 错误!

du_d_u
2004-04-23 17:51
你是怎么发布的? 用开发工具jb之类的? 还是自己打的ear包发布的?

du_d_u
2004-04-25 11:16
你看看下面的文章是否对你有帮助?

http://www.hibernate.org.cn/60.html

猜你喜欢