How to debug the Catalina.jar while debugging the nuxeo application

I have one senario in which we are using a custom class loader by extending the org.apache.catalina.loader.WebappClassLoader

i have made the extending class singleton . I get an unexpected error while using the classLoader second time onwards First time it works fine .

The error is

Caused by: java.lang.NullPointerException
    at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2956)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2830)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
    at fr.studec.webxml.s1000d18.exporter.utilities.PublisherHelper$1.run(PublisherHelper.java:99)
    ... 1 more

I when i try to debug the org.apache.catalina.loader.WebappClassLoader I get this message

The JAR of this class file belongs the container "Nuxeo Sdk" (Main) .Which do not allow modification to the source attached 

Can someone help me to fix above two issue Thanks Atul

0 votes

1 answers

4447 views

ANSWER



About the last error, the catalina sources are not included in the SDK. You may extend it by hand by providing the convienent zip file in the folder sdk/sources and re-register the SDK in your eclipse.

But, Can you explain further more your primary use case ? Nuxeo tomcat adaptor is already based on it's own class loader. If you're overrding it by your own without a specialization, you're going to break our tomcat integration.

1 votes