If you are changing JSP pages on a regular basis on your development machine, you should consider switching tomcat to development mode. This will mean it will check if the cached version is older than the new JSP and re-compile the page if needed. So if you change the page you do not need to clear the cache or restart the tomcat server.
Edit the following file
change the setting to true.
Restart the server
How to use Netbeans debugger when your code is running in the Windchill® Method Server?
In order to specify that a debugger can be attached to the process, we need to add the following option to the Method Server Java command :
-Xrunjdwp:transport=dt_socket,server=y,address=Port,suspend=y or n
For this How To, let’s choose the port 8000, and let’s say that the MethodServer should not wait for debugger attachement (suspend=n), the option will looks like this :
Start a Windchill® shell and execute :
xconfmanager -s wt.manager.cmd.MethodServer.debug.args=
Start Apache/Tomcat/Method server, under Netbeans you can now attach the debugger to the method server by selecting “Attach Debugger…” under the “Debug” menu (using the parameters specified in the property file) :
You may also debug in Tomcat, on 9.1, by updating the batch file that starts tomcat (Note that Tomcat is embedded from release 10)
And add the following line.
Note the different port number to allow use to debug in the MS and the Tomcat in the same session