Remote debugging of tomcat using eclipse

If you are running tomcat on a remote machine and you want to debug the application running on the remote tomcat using eclipse on your local machine then this is the guide for you. Tomcat remote debug Configure tomcat The first step would be to add the following properties to the setenv.sh in the tomcat/bin/ … Read more

SEVERE: The web application [/mywar] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [[email protected]]) and a value of type [com.sun.xml.messaging.saaj.util.transform.EfficientStreamingTransformer] (value [com.sun.[email protected]5617593e]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

I have been debugging this issue using jvisiualvm and eclipse MAT. I had the below error when I was undeploying the war file. And after 10 deployments the tomcat was running out of memory After doing some research i found that this issue existed with the version 1.3 of saaj-impl https://java.net/jira/si/jira.issueviews:issue-html/SAAJ-46/SAAJ-46.html Since I use maven … Read more

GWT nocache.js cached by browser

Recently we faced an issue with the GWT deployment. Whenever we were doing a new deployment the users seemed to get errors as the gwt did not refresh the javascript files even when the user reloaded the page. Then the temporary solution was to reload all the files using Shift+F5.  All our pages had this … Read more

java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.fault.SOAPFaultBuilder

I was running gwt application on tomcat server and here is the error I encountered. After fighting with this error for some time I resolved this issue by deleting the jax-impl.jar from the tomcat lib folder. It was a possible conflict of the jaxb jar versions with one of my webapps installed in tomcat.