Hi,

Seems the ServletContainer doesnt have the Home/Remote interfaces of
your beans in its classpath.

Do you use an ear file for your app or do you deploy your ejb package
separate from the web package?

In case of .ear file you must reference the package with the remote
interfaces (wether the ejb package itself -> ugly; or a separate package
containing the Remote stuff, which you use for yor app client too ->
clean, good) in the web archives manifest/Classpath section. 

Did you read the Deployment howto at:
http://www.jboss.org/documentation/J2eeDeployment_howto.html

In case of separate deployed packages you need the remote classes in
your web archive (WEB-INF/lib or WEB-INF/classes) but in this case you
can not make use of the optimized inVM method invocation.

HTH

\Daniel



[EMAIL PROTECTED] wrote:
> 
> Hello
> New jboss_jetty server is really great (servlets, JSP work perfectly and
> FAST), but I have
> problems with servlet-ejb communication.
> 
> I am using Interest EJB (downloaded with manual and slightly modified for
> jboss_jetty), and it
> works  fine with standalone java app, when accessed via servlet (same code),
> always gives me
> a following exception:
> [Jetty] Unable to get reference to Interest Interface:
> javax.naming.CommunicationException
> [Root exception is java.lang.ClassNotFoundException:
> com.web_tomorrow.interest.InterestHome]
> 
> Please, is there any downloadable example or pointer how to make the
> jboss_jetty
> servlet resolve the EJB components, specified via its JAR in the EAR (which
> also contains WAR) file in a standard way (without  having unpacked classes,
> as in jboss
> manual)
> I found jboss_tomcat example but it is very tomcat specific as it require
> editing of
> classpath for tomcat.bat. Also, specifying ejb jar file in classpath, before
> starting server,
> does not work for me (jboss-jetty servlet itself could not be resolved
> then).
> 
> I tried lot of things without success. Please help! Thanks. Miomir
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to