Stack overflow error - please help me
jeditom Oct 10, 2002 6:18 AMCan anyone help me please? I'm trying to deploy an ear file containing a bunch of servlets and a couple of stateless EJBs and I'm getting the following error the first time one of my EJBs is looked up.
----------------------------------------------------------
10:18:12,297 WARN [jbossweb] WARNING: Error for /singlescrowd/Authentication/submit/login?pin=420151&password=121313&ph
one224041java.lang.StackOverflowError
at com.sun.naming.internal.VersionHelper12$6.run(VersionHelper12.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.naming.internal.VersionHelper12.getContextClassLoader(VersionHelper12.java:158)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:41)
at javax.naming.spi.NamingManager.getObjectFactoryFromReference(NamingManager.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:299)
at javax.naming.spi.NamingManager.getContext(NamingManager.java:419)
at javax.naming.spi.ContinuationContext.getTargetContext(ContinuationContext.java:35)
at javax.naming.spi.NamingManager.getContinuationContext(NamingManager.java:763)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:440)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:533)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:569)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:440)
---------------------------------------------------------
I'm pretty sure that I have modified the web.xml and the jboss-web.xml correctly but the error still occurs. The application deploys fine (according to my DOS window.) I've also been reading about the jboss.xml and am unsure as to what to do with all these XML tags!
I'm running JBoss 3.0.3, with JDK 1.4.1 and J2EE 1.3.1 on a windows 2000 machine. The relevant contents of my xml files are...
web.xml...
<ejb-ref>
<ejb-ref-name>ejb/UserSession</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
com.masc.singles.ejb/UserSessionHome
com.masc.singles.ejb.UserSession
</ejb-ref>
jboss-web.xml
<ejb-ref>
<ejb-ref-name>ejb/SCInterface</ejb-ref-name>
<jndi-name>java:comp/env/ejb/SCInterface</jndi-name>
</ejb-ref>
Many thanks in advance for any help!