請好心人幫忙-關於打包部署檔案

big1980發表於2004-05-24
本人完全沒有接觸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>
...........

請各位幫小弟看看這兩個檔案是不是有問題?或者還是其它的問題,請詳細告訴小弟,本人剛剛踏足此行業,正處在學習當中。謝謝了。

相關文章