> Hi guys,
I have made some progress on connecting to an EJB from Tomcat/OXF running on a
standalone server. It looks like a JBoss/Tomcat issue but for your info, here is where
I am at.
1. I have this in web.xml
<ejb-ref>
<description>Test EJB connection.....</description>
<ejb-ref-name>ejb/HelloWorld</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.service.helloworld.server.facade.interfaces.HelloWorldRemoteHome</home>
<remote>org.service.helloworld.server.facade.interfaces.HelloWorldRemote</remote>
<ejb-link>jnp://server:1099/remote/org.service.helloworld.server.facade.ejb.HelloWorld</ejb-link>
</ejb-ref>
2. And in /WEB-INF/classes/jndi.properties
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
3. And copy all the jars from JBoss 3.2.3 client folder into %JRE_HOME%/lib/ext
4. Copied my helloworld-service.jar (containing the EJB interfaces) into web-inf/lib
Now I am now running into this error..
class java.lang.NoClassDefFoundError: javax.ejb.EJBObject
And if I solve that one but making j2ee.jar available to Tomcat I get too..
class java.lang.NoClassDefFoundError:
org/jboss/tm/TransactionPropagationContextFactory
So looks like I am going to run into a sequence of NoClassDefFoundError that lead me
to put the whole of JBoss into my OXF webapp -- not a preferable option. ;-)
So, I am going to post for help on this to the JBoss forums..
Regards,
Damon.
> I can't seem to find any examples of how to configure Tomcat/OXF and the
> delegation processor to communicate with an EJB on a seperate server.
> (ie. Things like defining the host address and port) Presumably a
> JNDI connection needs to be defined somewhere.. Is this done in the
> web.xml, the Tomcat context, the oxf properties file
> (all three/somewhere else?) Do you have an example of what the definition
> should look like. Currently I have this in my XPL..
> <p:input name="interface">
> <config>
> <service id="sejb" type="stateless-ejb"
> uri="local/org.service.helloworld.server.facade.ejb.HelloWorld"></service>
> </config>
> </p:input>
>
> Any pointers would be most appreciated..
>
> Damon.
>
>
>
_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users