请好心人帮忙-关于打包部署文件

04-05-24 big1980
本人完全没有接触jboss的情况,但在公司一再要求下,要求研究怎么把weblogic上的项目移植到jboss上,只好硬着头皮上了,现在碰到这种情况:

服务器上报的错是(打包文件是sha.jar):

09:02:42,562 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope

ration 'checkIncompleteDeployments()'

Cause: Incomplete Deployment listing:

Packages waiting for a deployer:

<none>

Incompletely deployed packages:

[org.jboss.deployment.DeploymentInfo@dd0f5de5 { url=file:/C:/JBOSS/server/defaul

t/deploy/sha.jar }

deployer: org.jboss.ejb.EJBDeployer@1f31652

status: Deployment FAILED reason: Verification of Enterprise Beans failed, see

above for error messages.

state: FAILED

watch: file:/C:/JBOSS/server/default/deploy/sha.jar

lastDeployed: 1085360541406

lastModified: 1085360542000

mbeans:

]MBeans waiting for classes:

<none>

我的两个部署文件是ejb-jar.xml和jboss-service.xml内容为:

************************ejb-jar.xml******************************

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

<ejb-jar>

<enterprise-beans>

<session>

<ejb-name>Lg010G01</ejb-name>

<home>sha.shasys.lg.lg010.lg010g01.Lg010G01Home</home>

<remote>sha.shasys.lg.lg010.lg010g01.Lg010G01</remote>

<ejb-class>sha.shasys.lg.lg010.lg010g01.Lg010G01Bean</ejb-class>

<session-type>Stateless</session-type>

<transaction-type>Container</transaction-type>

</session>

<session>

<ejb-name>Sha010g01</ejb-name>

<home>sha.shasys.sha.sha010.sha010g01.Sha010G01Home</home>

<remote>sha.shasys.sha.sha010.sha010g01.Sha010G01</remote>

<ejb-class>sha.shasys.sha.sha010.sha010g01.Sha010G01Bean</ejb-class>

<session-type>Stateless</session-type>

<transaction-type>Container</transaction-type>

</session>

<session>

<ejb-name>Sha010g02</ejb-name>

<home>sha.shasys.sha.sha010.sha010g02.Sha010G02Home</home>

<remote>sha.shasys.sha.sha010.sha010g02.Sha010G02</remote>

<ejb-class>sha.shasys.sha.sha010.sha010g02.Sha010G02Bean</ejb-class>

<session-type>Stateless</session-type>

<transaction-type>Container</transaction-type>

</session>

................

****************************jboss-service.xml********************

<?xml version="1.0" encoding="gb2312"?>

<jboss>

<enterprise-beans>

<session>

<ejb-name>Lg010G01</ejb-name>

<jndi-name>lg010g01/Lg010G01</jndi-name>

</session>

<session>

<ejb-name>Sha010g01</ejb-name>

<jndi-name>sha010g01/Sha010G01</jndi-name>

</session>

<session>

<ejb-name>Sha010g02</ejb-name>

<jndi-name>sha010g02/Sha010G02</jndi-name>

</session>

...........

请各位帮小弟看看这两个文件是不是有问题?或者还是其它的问题,请详细告诉小弟,本人刚刚踏足此行业,正处在学习当中。谢谢了。

big1980
2004-05-24 14:06
谁来帮我顶 阿,现自己顶!

banq
2004-05-24 18:40
部署包应该是.ear,建议您了解一下JBoss和J2EE

big1980
2004-05-25 08:45
不是有两种形式吗?一种是ear的形式,而另一种是jar的形式阿

猜你喜欢