Hey,
to me it seems that it is wrong to have 2 env-entry-value. From the EJB 1.1
Spec:
"<!ELEMENT env-entry (description?, env-entry-name, env-entry-type,
env-entry-value?)>"
So, you can have zero or at most 1 env-entry-value (this is the meaning of
the question mark).
HTH,
Simon
> -----Original Message-----
> From: Anatoly Akkerman [mailto:[EMAIL PROTECTED]]
> Sent: giovedi 25 gennaio 2001 0:28
> To: jBoss
> Subject: Re: [jBoss-User] Running Sun's PetStore 1.1.1 in jboss+tomcat
>
>
>
> Hello, again,
>
> I seem to be progressing a bit with getting PetStore 1.1.1 to run.
>
> I get as far as deploying individual beans and getting their names
> resolved (I had to add jboss.xml to each jar file).
>
> Now, I run into a problem with deploying the petstoreEjb.jar. It seems
> that jboss's ejb-jar.xml dtd is not compatible with the one used for
> PetStore by Sun. This is the exception I get:
>
> [Container factory]
> Deploying:file:/X:/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/dep
> loy/petstore.ear/ejb1007.jar
> [Container factory] Loading ejb-jar.xml
> :
> jar:file:/X:/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/pe
> tstore.ear/ejb1007.jar!/META-INF/ejb-jar.xml
> [Container factory] org.jboss.ejb.DeploymentException: Error in
> ejb-jar.xml for Session Bean TheShoppingClientController:
> expected only
> one env-entry-value tag
> [Container factory] at
> org.jboss.metadata.ApplicationMetaData.importEjbJarXml(Applica
> tionMetaData.java:120)
> [Container factory] at
> org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:89)
> [Container factory] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:341)
> [Container factory] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:272)
> [Container factory] at
> java.lang.reflect.Method.invoke(Native Method)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
> java:1628)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
> java:1523)
> [Container factory] at
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeploye
> r.java:645)
> [Container factory] at
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:137)
> [Container factory] at
> java.lang.reflect.Method.invoke(Native Method)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
> java:1628)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
> java:1523)
> [Container factory] at
> com.sun.jdmk.comm.HtmlInvokePage.buildPage(HtmlInvokePage.java:240)
> [Container factory] at
> com.sun.jdmk.comm.HtmlRequestHandler.processGetRequest(HtmlReq
> uestHandler.java:325)
> [Container factory] at
> com.sun.jdmk.comm.HtmlRequestHandler.processRequest(HtmlReques
> tHandler.java:152)
> [Container factory] at
> com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlRequestHandler.java:79)
> [Container factory] at
> com.sun.jdmk.comm.ClientHandler.run(ClientHandler.java:84)
> [Container factory] at java.lang.Thread.run(Thread.java:484)
> [J2EE Deployer] Starting petstoreEjb.jar failed!
>
>
> The ejb-jar.xml file provided by Sun has 2 env-entry-value
> fields in a few
> places, for example:
>
> - <env-entry>
> <env-entry-name>accountEvent</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
>
> <env-entry-value>com.sun.j2ee.blueprints.petstore.control.ejb.
> AccountHandler</env-entry-value>
> <env-entry-value>true</env-entry-value>
> </env-entry>
>
>
>
> --------------------------------------------------------------
> -----------
> Anatoly Akkerman
> Computer Science Dept.
> Courant Institute of Mathematical Sciences, NYU
> 719 Broadway, #715 Tel: 212 998-3525
> New York, NY 10003 Fax: 212 995-4123
> --------------------------------------------------------------
> -----------
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]