You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by ge...@incubator.apache.org on 2004/06/22 05:04:27 UTC

[jira] Created: (GERONIMO-248) WAR can't find class for ejb-local-ref

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-248

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-248
    Summary: WAR can't find class for ejb-local-ref
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Apache Geronimo
 Components: 
             web
   Versions:
             1.0-M2

   Assignee: 
   Reporter: Simon Godik

    Created: Mon, 21 Jun 2004 8:03 PM
    Updated: Mon, 21 Jun 2004 8:03 PM

Description:
IllegalStateException thrown by naming proxy as it can't find the classes for an ejb-jar located in the same ear.

javax.naming.NamingException: could not look up : env/ejb/Hello [Root exception
is java.lang.IllegalStateException: ejb-local-ref class not found: foo.Hello]
        at org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContex
t.java:209)
        at org.apache.geronimo.naming.java.RootContext.lookup(RootContext.java:5
5)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at com.gluecode.util.Ejb.init(Ejb.java:30)
        at javax.servlet.GenericServlet.init(GenericServlet.java:168)
        at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java
:298)
        at org.mortbay.jetty.servlet.Invoker.service(Invoker.java:166)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360
)
        at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:471)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
12)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1442)
        at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:490)
        at org.apache.geronimo.jetty.JettyWebApplicationContext.handle(JettyWebA
pplicationContext.java:193)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1394)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:821)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:988)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:838)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
212)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:315)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:510)
Caused by: java.lang.IllegalStateException: ejb-local-ref class not found: foo.H
ello
        at org.openejb.proxy.ProxyRefAddr.loadClass(ProxyRefAddr.java:120)
        at org.openejb.proxy.ProxyRefAddr.getEJBProxyFactory(ProxyRefAddr.java:1
00)
        at org.openejb.proxy.ProxyRefAddr.getContent(ProxyRefAddr.java:87)
        at org.openejb.proxy.ProxyObjectFactory.getObjectInstance(ProxyObjectFac
tory.java:73)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
01)
        at org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContex
t.java:205)
        ... 21 more


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-248) WAR can't find class for ejb-local-ref

Posted by ge...@incubator.apache.org.
The following issue has been updated:

    Updater: Simon Godik (mailto:sgodik@gluecode.com)
       Date: Mon, 21 Jun 2004 8:05 PM
    Comment:
Looks like the incorrect classloader is being used to initialize Jetty - should use the config's classloader rather than the one that loaded Jetty

Patch file uses the classLoader attribute
    Changes:
             Attachment changed to cl.patch
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/GERONIMO-248?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-248

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-248
    Summary: WAR can't find class for ejb-local-ref
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Apache Geronimo
 Components: 
             web
   Versions:
             1.0-M2

   Assignee: 
   Reporter: Simon Godik

    Created: Mon, 21 Jun 2004 8:03 PM
    Updated: Mon, 21 Jun 2004 8:05 PM

Description:
IllegalStateException thrown by naming proxy as it can't find the classes for an ejb-jar located in the same ear.

javax.naming.NamingException: could not look up : env/ejb/Hello [Root exception
is java.lang.IllegalStateException: ejb-local-ref class not found: foo.Hello]
        at org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContex
t.java:209)
        at org.apache.geronimo.naming.java.RootContext.lookup(RootContext.java:5
5)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at com.gluecode.util.Ejb.init(Ejb.java:30)
        at javax.servlet.GenericServlet.init(GenericServlet.java:168)
        at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java
:298)
        at org.mortbay.jetty.servlet.Invoker.service(Invoker.java:166)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360
)
        at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:471)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
12)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1442)
        at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:490)
        at org.apache.geronimo.jetty.JettyWebApplicationContext.handle(JettyWebA
pplicationContext.java:193)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1394)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:821)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:988)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:838)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
212)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:315)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:510)
Caused by: java.lang.IllegalStateException: ejb-local-ref class not found: foo.H
ello
        at org.openejb.proxy.ProxyRefAddr.loadClass(ProxyRefAddr.java:120)
        at org.openejb.proxy.ProxyRefAddr.getEJBProxyFactory(ProxyRefAddr.java:1
00)
        at org.openejb.proxy.ProxyRefAddr.getContent(ProxyRefAddr.java:87)
        at org.openejb.proxy.ProxyObjectFactory.getObjectInstance(ProxyObjectFac
tory.java:73)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
01)
        at org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContex
t.java:205)
        ... 21 more


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira