第一次接触jboss,运行例子出错,郁闷,求教

03-10-23 renhb
我按照本论坛“JBoss的安装”一文将documentation-example.zip用ant intro-interest-ear编译以后,将interest.ear复制到E:\jboss-3.2.2\server\default\deploy中,运行jboss3.2.2出现错误:

org.jboss.deployment.DeploymentException: ejb-jar.xml must define a valid DOCTYP

E!

at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMet

aData.java:206)

at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:141)

at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)

at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)

at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea

nDispatcher.java:284)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

at $Proxy6.deploy(Unknown Source)

at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen

tScanner.java:302)

at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS

canner.java:476)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.

doScan(AbstractDeploymentScanner.java:201)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.

loop(AbstractDeploymentScanner.java:212)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.

run(AbstractDeploymentScanner.java:191)

16:44:04,743 ERROR [MainDeployer] could not create deployment: file:/E:/jboss-3.

2.2/server/default/deploy/interest.ear

org.jboss.deployment.DeploymentException: ejb-jar.xml must define a valid DOCTYP

E!

at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMet

aData.java:206)

at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:141)

at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)

at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)

at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea

nDispatcher.java:284)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

at $Proxy6.deploy(Unknown Source)

at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen

tScanner.java:302)

at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS

canner.java:476)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.

doScan(AbstractDeploymentScanner.java:201)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.

loop(AbstractDeploymentScanner.java:212)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.

run(AbstractDeploymentScanner.java:191)

那位高手能告诉我是哪里出了错误了?谢谢!

anonymous
2003-10-24 07:48
>>>>>>>>>>>>

org.jboss.deployment.DeploymentException: ejb-jar.xml must define a valid DOCTYP

E!

这里错了吧!

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

<ejb-jar>
     <description>JBoss Interest Sample Application</description>
     <display-name>Interest EJB</display-name>
     <enterprise-beans>
       <session>
         <ejb-name>Interest</ejb-name>
         <home>org.jboss.docs.interest.InterestHome</home>
         <remote>org.jboss.docs.interest.Interest</remote>
         <ejb-class>org.jboss.docs.interest.InterestBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Bean</transaction-type>
       </session>
     </enterprise-beans>
</ejb-jar>

<p>

renhb
2003-10-24 12:58
to yung:

您好,我该怎样修改哪?谢谢

猜你喜欢