Now it can find the class but I get a ClassCastException
at :
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:296)
I'm confused, it gets the context and can lookup the reference to
interest/Interest
but can not get to the InterestHome.class correctly.
I'm running
[Info] Java version: 1.3.0beta_refresh, Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Server VM 1.3.0beta-b07, Sun Microsystems
Inc.
[Info] System: Linux 2.2.14-5.0,i386
Richard Backhouse wrote:
> Yes, I have jsp's and servlets calling my ejbs. I think that there is
> currently no intergration between tomcats classloader and the jboss
> classloader so you have to provide all the home and ejb interfaces as
> part of the web application setup (put them in WEB-INF/classes). That's
> how I have it and I have not had any problems with class loading. The
> only issue I had was getting tomcat to find the jndi.properties. It
> doesn't seem to find it when I place it in the WEB-INF/classes
> directory. I had to put it in the TOMCAT_HOME/bin directory.
>
> Richard Backhouse
>
> Werner Ramaekers wrote:
> >
> > Have you tested it calling an EJB from a servlet ?
> > I'm trying to call the Interest stateless session bean from the
> > documentation at the jBoss site
> > from a servlet runnig in the /test context from Tomcat but it con not
> > find the
> > InterestHome.class
> >
> > // Get a reference from this to the Bean's Home interface
> > InterestHome home = (InterestHome) PortableRemoteObject.narrow
> > (ref, InterestHome.class);
> >
> > I get a NoClassDefFoundError exception :
> > com/web_tomorrow/interest/InterestHome
> > even though it's in the webapps/test/WEB-INF/classes
> >
> > any ideas ?
> >
> > --
> > -----------------------------------------------------------------------
> > crypto : One who covertly supports a certain doctrine, group, or party.
> > <mailto: [EMAIL PROTECTED]> <http://www.shiftat.com>
> > -----------------------------------------------------------------------
> >
> > Richard Backhouse wrote:
> >
> > > FYI
> > >
> > > The Tomcat intergration module doesn't work with the Tomcat binary
> > > version unless the run.sh is changed to include the webserver.jar and
> > > jasper.jar in the Tomcat specfic classpath setup. I guess that the
> > > documentation was written with the Tomcat source version in mind.
> > >
> > > Also I have got the Tomcat 3.1 Binary dist working fine thru jboss.
> > >
> > > Richard Backhouse
> > > Oak Grove Software.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]