[jira] Closed: (GERONIMO-282) servlet calls ejb: "class not found" at deployment and run time

2006-12-05 Thread Vamsavardhana Reddy (JIRA)
 [ http://issues.apache.org/jira/browse/GERONIMO-282?page=all ]

Vamsavardhana Reddy closed GERONIMO-282.


Resolution: Fixed

>From the comments, it looks like this issue is resolved.  Reopen if it is 
>still a problem.

> servlet calls ejb: "class not found" at deployment and run time
> ---
>
> Key: GERONIMO-282
> URL: http://issues.apache.org/jira/browse/GERONIMO-282
> Project: Geronimo
>  Issue Type: Bug
>  Components: web
>Affects Versions: 1.0-M2
> Environment: fedora core 2
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
>Reporter: toby cabot
> Fix For: 1.x
>
>
> I'm trying to deploy a servlet that calls an EJB.  I can
> deploy the EJB and call if from a command-line Java client, so I think
> that part works, thanks to the dev list for help with JNDI.
>   
> 
> I did the usual stuff in the servlet, but when I add
>   
> 
> 
> g6o/SSEJB
> Session
> g6o.ejbclient.StatelessSessionHome
> g6o.ejbclient.StatelessSession
> 
>   
> 
> to web.xml I get a stack trace when I run the deploy tool.
>   
> 
> org.apache.geronimo.deployment.DeploymentException: Remote interface class 
> not found: g6o.ejbclient.StatelessSession
> at 
> org.apache.geronimo.jetty.deployment.JettyModuleBuilder.assureInterface(JettyModuleBuilder.java:593)
> at 
> org.apache.geronimo.jetty.deployment.JettyModuleBuilder.assureEJBObjectInterface(JettyModuleBuilder.java:573)
> at 
> org.apache.geronimo.jetty.deployment.JettyModuleBuilder.addEJBRefs(JettyModuleBuilder.java:491)
>   
> 
> etc...
>   
> 
> I've got the EJB interfaces in a jar in the war file's WEB-INF/lib
> directory, but I also tried putting the jar with the EJB interfaces in
> geronimo's lib directory with the same result.
>   
> 
> Copying my ejb client jar to geronimo's repository and adding an element to 
> geronimo-jetty.xml:
> 
> g6o-ejb-client.jar
> 
> ...allows the deployment to get farther, but then I get a message about how 
> references that aren't ejb-link are not implemented, so I cut the ejb-ref 
> element out of web.xml to make the deployment work, and when my servlet tries 
> to look up the EJB I get:
> 13:19:22,715 ERROR [Daemon] Exception caught during kernel configuration, 
> starting kernel shutdown
> org.apache.geronimo.kernel.config.InvalidConfigException: Invalid GBean 
> configuration for geronimo.config:name="g6o/web"
> at 
> org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:274)
> at org.apache.geronimo.system.main.Daemon.main(Daemon.java:146)
> Caused by: javax.servlet.ServletException: Naming exception in servlet init: 
> Cannot lookup /g6o/SSEJB: Received error: Error while communicating with 
> server: ; nested exception is:
> java.rmi.RemoteException: Cannot read the response from the server.  
> The class for an object being returned is not located in this system:; nested 
> exception is:
> java.lang.ClassNotFoundException: g6o.ejbclient.StatelessSessionHome
> at g6o.servlet.Servlet.init(Servlet.java:64)
> at 
> org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:226)
> at 
> org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:390)
> at 
> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:287)
> at 
> org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:421)
> at 
> org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:198)
> at 
> org.apache.geronimo.gbean.jmx.GBeanMBean.doStart(GBeanMBean.java:593)
> at 
> org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(AbstractManagedObject.java:479)
> at 
> org.apache.geronimo.gbean.jmx.AbstractManagedObject.start(AbstractManagedO

[jira] Closed: (GERONIMO-282) servlet calls ejb: "class not found" at deployment and run time

2004-09-08 Thread dev
Message:

   The following issue has been closed.

   Resolver: Dain Sundstrom
   Date: Wed, 8 Sep 2004 11:29 AM

Works now
-
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-282

Here is an overview of the issue:
-
Key: GERONIMO-282
Summary: servlet calls ejb: "class not found" at deployment and run time
   Type: Bug

 Status: Closed
   Priority: Major
 Resolution: FIXED

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

   Assignee: 
   Reporter: toby cabot

Created: Thu, 5 Aug 2004 10:35 AM
Updated: Wed, 8 Sep 2004 11:29 AM
Environment: fedora core 2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)


Description:
I'm trying to deploy a servlet that calls an EJB.  I can
deploy the EJB and call if from a command-line Java client, so I think
that part works, thanks to the dev list for help with JNDI.

  
I did the usual stuff in the servlet, but when I add

  

g6o/SSEJB
Session
g6o.ejbclient.StatelessSessionHome
g6o.ejbclient.StatelessSession


  
to web.xml I get a stack trace when I run the deploy tool.

  
org.apache.geronimo.deployment.DeploymentException: Remote interface class not 
found: g6o.ejbclient.StatelessSession
at 
org.apache.geronimo.jetty.deployment.JettyModuleBuilder.assureInterface(JettyModuleBuilder.java:593)
at 
org.apache.geronimo.jetty.deployment.JettyModuleBuilder.assureEJBObjectInterface(JettyModuleBuilder.java:573)
at 
org.apache.geronimo.jetty.deployment.JettyModuleBuilder.addEJBRefs(JettyModuleBuilder.java:491)

  
etc...

  
I've got the EJB interfaces in a jar in the war file's WEB-INF/lib
directory, but I also tried putting the jar with the EJB interfaces in
geronimo's lib directory with the same result.

  
Copying my ejb client jar to geronimo's repository and adding an element to 
geronimo-jetty.xml:


g6o-ejb-client.jar


...allows the deployment to get farther, but then I get a message about how 
references that aren't ejb-link are not implemented, so I cut the ejb-ref 
element out of web.xml to make the deployment work, and when my servlet tries 
to look up the EJB I get:

13:19:22,715 ERROR [Daemon] Exception caught during kernel configuration, 
starting kernel shutdown
org.apache.geronimo.kernel.config.InvalidConfigException: Invalid GBean 
configuration for geronimo.config:name="g6o/web"
at 
org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:274)
at org.apache.geronimo.system.main.Daemon.main(Daemon.java:146)
Caused by: javax.servlet.ServletException: Naming exception in servlet init: 
Cannot lookup /g6o/SSEJB: Received error: Error while communicating with 
server: ; nested exception is:
java.rmi.RemoteException: Cannot read the response from the server.  
The class for an object being returned is not located in this system:; nested 
exception is:
java.lang.ClassNotFoundException: g6o.ejbclient.StatelessSessionHome
at g6o.servlet.Servlet.init(Servlet.java:64)
at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:226)
at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:390)
at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:287)
at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:421)
at 
org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:198)
at org.apache.geronimo.gbean.jmx.GBeanMBean.doStart(GBeanMBean.java:593)
at 
org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(AbstractManagedObject.java:479)
at 
org.apache.geronimo.gbean.jmx.AbstractManagedObject.start(AbstractManagedObject.java:279)
at 
org.apache.geronimo.gbean.jmx.AbstractManagedObject.star