I'm new to Orion Server and I'm having problems setting up my EJB beans.
I put all my .jar files in one .ear file.
My application.xml looks like this
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name> (rules!)</display-name>
<module>
<ejb>1x2ServiceEJB.jar</ejb>
</module>
<module>
<ejb>bgp.jar</ejb>
</module>
<module>
<ejb>GGService.jar</ejb>
</module>
<module>
<ejb>ReportService.jar</ejb>
</module>
</application>
and the server.xml looks like this
<application name="BGP" path="../applications/All4Services.ear" />
<library path="c:\orion\lib" />
<library path="c:\orion\lib\bgp.jar" />
<library path="c:\orion\lib\ReportService.jar" />
<library path="c:\orion\lib\GGService.jar" />
<library path="c:\orion\lib\BrokerServlet.jar" />
<library path="c:\orion\lib\1x2ServiceEJB.jar" />
The beans in bgp.jar works fine when i access them,
but when i am accessing the beans that are in the GGService.jar file i'm
having problems...
Here is the stack trace...
javax.naming.NamingException: Not in an application scope - start Orion with the
-userThreads switch if using user-created threads
at com.evermind.server.g3.bi(JAX)
at com.evermind.naming.jx.lookup(JAX)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.betware.bgp.client.BwBrokerModel.getGGService(BwBrokerModel.java:
1713)
at com.betware.bgp.client.BwBrokerModel.getCart(BwBrokerModel.java:694)
I have tried to start Orion with -userThreads switch on but it doesnt matter...
What I am i doing wrong?
Hörður Birgisson
Programmer at Betware