• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error with EJB Lookup from jsp for jboss/eclipse

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I got a working code from production .But when I tried to setup my workspace with it and run it , I get below error for EJB Lookup from JSP Page.
The code looks correct (and infact it runs is prod) for web.xml,jboss-web.xml and jsp which calls EJB .
Am I missing anything as I get below error ?

javax.servlet.ServletException: java.lang.StackOverflowError
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause

java.lang.StackOverflowError
java.security.AccessController.doPrivileged(Native Method)
com.sun.naming.internal.VersionHelper12.getContextClassLoader(Unknown Source)
com.sun.naming.internal.ResourceManager.getFactory(Unknown Source)
javax.naming.spi.NamingManager.getURLObject(Unknown Source)
javax.naming.spi.NamingManager.getURLContext(Unknown Source)
javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
javax.naming.InitialContext.lookup(Unknown Source)
org.jboss.ejb3.naming.SimpleMultiplexer.getObjectInstance(SimpleMultiplexer.java:85)
javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
javax.naming.spi.NamingManager.getContext(Unknown Source)
javax.naming.spi.ContinuationContext.getTargetContext(Unknown Source)
javax.naming.spi.NamingManager.getContinuationContext(Unknown Source)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:773)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
javax.naming.InitialContext.lookup(Unknown Source)
org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1209)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:758)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:774)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
javax.naming.InitialContext.lookup(Unknown Source)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic