Hi All

I've cross posted the following to the castor mailing list and was recommended to put 
my beans.jar in the \jboss\lib\ext
directory as well as in \jboss\deploy because castor and jboss use different class 
loaders - seems a bit inelegant. 
Is this really the only solution?

--------------------------------

I've tried using JDO within jBoss session beans i.e. I've packaged my beans and value 
objects
into a beans.jar and put them in the \jboss\deploy directory and I've put the needed 
castor jars into \jboss\lib\ext so they can be
seen from within jboss. Unfortunately I get the following exception unless I put my 
beans.jar file in the \jBoss\lib\ext 
directory also:

[test] Loading mapping descriptors from 
jar:file:/C:/TEMP/ejbjar2735.jar!/aremissoft/construction/pr
icing/server/dao/mapping.xml
        at 
org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(MappingLoader.java:292)
        at 
org.exolab.castor.jdo.engine.JDOMappingLoader.createDescriptor(JDOMappingLoader.java:138)

        at 
org.exolab.castor.mapping.loader.MappingLoader.loadMapping(MappingLoader.java:205)
        at 
org.exolab.castor.jdo.engine.JDOMappingLoader.loadMapping(JDOMappingLoader.java:253)
        at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java:252)
        at 
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:304)
        at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:400)
        at 
aremissoft.construction.pricing.server.dao.CompanyServiceDAO2.findCompany(CompanyServiceD
AO2.java:100)
        at 
aremissoft.construction.pricing.server.ejb.CompanyServiceBean.findCompany(CompanyServiceB
ean.java:40)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta
iner.java:332)
        at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance
Interceptor.java:73)
        at 
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:148)
        at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:1
33)
        at java.lang.reflect.Method.invoke(Native Method)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[Default] Exception in findCompany()
[Default] Nested error: org.exolab.castor.mapping.MappingException: Could not find the 
class aremiss
oft.construction.pricing.server.dao.CompanyData
[Default] org.exolab.castor.mapping.MappingException: Could not find the class 
aremissoft.constructi
on.pricing.server.dao.CompanyData

This is odd as I am able to load the CompanyData class explicitly within the method 
which throws the exception using
Class.forName().

Can anyone shed some light on this? I'm not sure if it's a jboss or a castor issue at 
the moment.

Regards

Terry Child





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

Reply via email to