Hi Charles

On Tue, Dec 1, 2009 at 11:27 PM, Charles Galpin <cgal...@lhsw.com> wrote:

> Hi Sameera
>
> Yes this is what is happening and what is expected. The
> org.omg.CosNotifyFilter.InvalidGrammar class is in jacorb.jar which is in
> the .aar lib directory. What am I missing? Are you saying it should not be
> in the thread context class loader?
>

The class BaseCORBAApp is trying to loadInvalidGrammar class from the TCCL
and in this scenario TCCL is set to the WebappClassLoader. Classes in your
aar lib folder cannot be seen by the WebappClassLoader. It can only see the
classes in axis2/WEB-INF/lib folder or in the application classpath
tomcat/lib. That is things work nicely when you put jacob.jar to
axis2/WEB-INF/lib.

Do you have access to sources of the classes in client.corba.* packages.

Thanks
sameera


>
> On Dec 1, 2009, at 12:47 PM, Sameera Jayasoma wrote:
>
> > It seems that "BaseCORBAApp" class is trying to load
> "org.omg.CosNotifyFilter.InvalidGrammar" from the thread context class
> loader. That is why you see following lines in the exception log.
> >
> >  at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
> >  at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
> >
> >  This is a usual practice of loading application libraries. If you have
> access to the source code of client.corba classes, you can verify this.
> >
> > Thanks
> > Sameera
>
>
> Thanks Olindo, but the first error (see the bottom of the trace) is
> java.lang.ClassNotFoundException which I believe is the root cause. I have
> checked and jacorb.jar is not in the path or classpath.
>
> On Dec 1, 2009, at 11:55 AM, Olindo Pindaro wrote:
>
> > The exception  isn't "ClassNotFound" but "NoClassDefFoundError", that in
> my experience is caused by conflit in differente version of library present
> in compiler path and classloaderpath.
>
> thanks,
> charles
>
>


-- 
Sameera Jayasoma
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://tech.jayasoma.org

Reply via email to