Thanks for the idea. I passed the Class itself in the session and that did
the trick. Not very efficient in terms of coding, but does the job right now
:)

On Thu, Jul 10, 2008 at 4:54 PM, David Blevins <[EMAIL PROTECTED]>
wrote:

>
> On Jul 10, 2008, at 1:14 PM, Karan Malhi wrote:
>
>  I have a situation where I am getting a ClassNotFoundException.
>> The code I am trying to run is viewclass.jsp in openejb-tomcat-webapp
>> module.
>>
>> Here is what I did:
>>
>> 1. I deployed the openejb-tomcat-webapp.war in tomcat
>> 2. deployed the itests-beans.war inside tomcat
>> 3. went to localhost:8080/openejb/viewjndi.jsp
>> 4. clicked on a Bean to view it
>> 5. Clicked on the BusinessLocal/Remote interface of the EJB to view its
>> class
>> 6. Thats where I get the ClassNotFoundException
>>
>> The reason is that viewclass.jsp is not able to find the
>> BusinessLocal/Remote interface (or any other class ) in the itests webapps
>> lib directory (which contains several jars which contains the class we
>> need
>> to find)
>> I understand that a web module should not be able to find classes in
>> abother
>> web modules lib or classes directory. But, we still need to find a way to
>> get that. Does anybody know any Tomcat specific API to allow me to load
>> that
>> class?
>>
>
> We definitely have the classloader as well as the class for the EJBs in
> other webapps in the CoreDeploymentInfo.  We maybe want to pass the
> classloader to the viewclass.jsp in some way.  Maybe an extra param and a
> map like we do with invokeobj.jsp
>
> -David
>
>


-- 
Karan Singh Malhi

Reply via email to