cancel
Showing results for 
Search instead for 
Did you mean: 

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

atul_
Champ on-the-rise
Champ on-the-rise

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

1 ACCEPTED ANSWER

slacoin_Lacoin
Star Contributor
Star Contributor

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.

View answer in original post

1 REPLY 1

slacoin_Lacoin
Star Contributor
Star Contributor

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.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.