The symptom will be corrected shortly (we already decided to quit
trying to load the classes in the MetaData).  I'm not sure what the
underlying problem is (that is, why the class javax.ejb.EJBHome would be
unavailable).

Aaron

On Wed, 26 Jul 2000, Greg Pierce wrote:
> Well it seems I've found a very interesting problem. jboss.xml is not
> optional as some of the documentation implies. Removing the jboss.xml from
> the HelloWorld.jar makes the system blow up in the same manner as before
> with the system spitting out :
>  
> [Configuration] VerifyDeployments set to false in
> EJB:service=ContainerFactory
> [Configuration] Port set to 8083 in DefaultDomain:service=Webserver
> [Auto deployer] Starting
> [Auto deploy] Auto deploy of file:/C:/jboss/dist/deploy/player.jar
> [Container factory] Deploying:file:/C:/jboss/dist/deploy/player.jar
>         at java.lang.ClassLoader.defineClass0(Native Method)
> [Container factory] java.lang.NoClassDefFoundError: javax/ejb/EJBHome
>         at java.lang.ClassLoader.defineClass(Unknown Source)
>         at java.security.SecureClassLoader.defineClass(Unknown Source)
>         at java.net.URLClassLoader.defineClass(Unknown Source)
>         at java.net.URLClassLoader.access$100(Unknown Source)
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at
> org.jboss.metadata.ejbjar.EJBXMLReader.loadClass(EJBXMLReader.java:25
> 1)
>         at
> org.jboss.metadata.ejbjar.EJBXMLReader.endElement(EJBXMLReader.java:1
> 52)
>         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1412)
>         at com.sun.xml.parser.Parser.content(Parser.java:1498)
>         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
>         at com.sun.xml.parser.Parser.content(Parser.java:1498)
>         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
>         at com.sun.xml.parser.Parser.content(Parser.java:1498)
>         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
>         at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
>         at com.sun.xml.parser.Parser.parse(Parser.java:283)
>         at
> org.jboss.metadata.ejbjar.EJBXMLReader.readXML(EJBXMLReader.java:40)
>         at
> org.jboss.ejb.deployment.jBossFileManager.load(jBossFileManager.java:
> 169)
>         at
> org.jboss.ejb.deployment.jBossFileManager.load(jBossFileManager.java:
> 298)
>         at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:278)
>         at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:183)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
>         at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
>         at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
>         at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
>         at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:237)
>         at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:89)
>  
>         at java.lang.reflect.Method.invoke(Native Method)
>         at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
>         at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
>         at org.jboss.Main.<init>(Main.java:155)
>         at org.jboss.Main.<init>(Main.java:86)
>         at org.jboss.Main$1.run(Main.java:76)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.jboss.Main.main(Main.java:67)
> [Auto deploy] Deployment failed:file:/C:/jboss/dist/deploy/player.jar
> [Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
> file:/C:/jboss
> /dist/deploy/player.jar
> [Auto deploy]   at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:5
> 14)
> [Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
> [Auto deploy]   at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:1
> 83)
> [Auto deploy]   at
> javax.management.MBeanServer.invoke(MBeanServer.java:1635)
> [Auto deploy]   at
> javax.management.MBeanServer.invoke(MBeanServer.java:1501)
> [Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
> [Auto deploy]   at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.
> java:89)
> [Auto deploy]   at
> javax.management.MBeanServer.invoke(MBeanServer.java:1635)
> [Auto deploy]   at org.jboss.Main.<init>(Main.java:155)
> [Auto deploy]   at org.jboss.Main$1.run(Main.java:76)
> [Auto deploy]   at org.jboss.Main.main(Main.java:67)
> [Auto deployer] Started
> [Auto deploy]   at
> org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:237
> )
> [Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
> [Webserver] Started webserver on port 8083
> [Container factory] Starting
> [Transaction manager] Starting
> [JMX RMI Adaptor] Starting
> [Auto deploy]   at
> javax.management.MBeanServer.invoke(MBeanServer.java:1501)
> [Auto deploy]   at org.jboss.Main.<init>(Main.java:86)
> [Auto deploy]   at java.security.AccessController.doPrivileged(Native
> Method)
> [Webserver] Starting
> [Webserver] Codebase set to http://localhost:8083/ <http://localhost:8083/> 
> 
> -----Original Message-----
> From: Greg Pierce [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 26, 2000 9:54 AM
> To: 'jBoss'
> Subject: RE: [jBoss-User] Stateful Session Bean Support
> 
> 
> Well I'm not useing a jboss.xml because its supposed to be optional and the
> system should work with the defaults I'm told. If it doesn't work with just
> the ejb-jar.xml (which is the case in every bean I'm using) and it does in
> the binary, then we have another issue altogether.
> 
> -----Original Message-----
> From: Luan O'Carroll [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 26, 2000 5:26 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [jBoss-User] Stateful Session Bean Support
> 
> 
> I too have stateful session beans working with the CVS dowloaded last
> Friday.
>  
> marc fleury wrote:
> > 
> > btw the stateful beans in there work just off ejb-jar.xml (no jboss.xml
> with
>  
> My jar has a jboss.xml file as does the one posted at 
>   http://www.bonevich.com/ejb/helloworld.jar
> <http://www.bonevich.com/ejb/helloworld.jar> 
> 
>  
> it contains the following sections that might be of interest?
>  
>      <enterprise-beans>
>        <session>
>        <ejb-name>ShoppingCart</ejb-name>
>        <jndi-name>ShoppingCart</jndi-name>
>        <configuration-name>Default Stateful SessionBean</configuration-name>
>        </session>
> ....
>      </enterprise-beans>
> 
>     <container-configurations>
>      <container-configuration
> configuration-class="org.jboss.ejb.deployment.StatefulSessionContainerConfig
> uration">
>       <container-name>Default Stateful SessionBean</container-name>
>       <call-logging>false</call-logging>
>  
> <container-invoker>org.jboss.ejb.plugins.jrmp13.server.JRMPContainerInvoker<
> /container-invoker>
>  
> <instance-cache>org.jboss.ejb.plugins.NoPassivationStatefulSessionInstanceCa
> che</instance-cache>
>  
> <persistence-manager>org.jboss.ejb.plugins.StatefulSessionFilePersistenceMan
> ager</persistence-manager>
>       <transaction-manager>org.jboss.tm.TxManager</transaction-manager>
>       <container-invoker-conf>
>       <Optimized>False</Optimized>
>       </container-invoker-conf>
>      </container-configuration>
> .....    
>     </container-configurations>
>  
> When I removed the above from jboss.xml I got exceptions when deploying the
> JAR
> 
> 



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to