cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Windchill customization

SB_10566278
12-Amethyst

Windchill customization

Hi,

 

Is it necessary to restart Windchill after modifying the JSP file (e.g. method parameter is modified)?

If not are there any configurations that I need to on the Windchill server?

 

Regards,

Shrikant Bhosle

 

 

ACCEPTED SOLUTION

Accepted Solutions

Hello @SB_10566278 

OOTB configuration needs to restart the method server.

 

You can configure the tomcat to do not use a cache so yes you can configure system that update JPS does not need the restart

 

in a file <WTHOME>\tomcat\conf\web.xml

change a development param name to true , restart server and that's all.

search for <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>

 

<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>

 

hope this can help 

PetrH

View solution in original post

8 REPLIES 8

Hello @SB_10566278 

OOTB configuration needs to restart the method server.

 

You can configure the tomcat to do not use a cache so yes you can configure system that update JPS does not need the restart

 

in a file <WTHOME>\tomcat\conf\web.xml

change a development param name to true , restart server and that's all.

search for <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>

 

<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>

 

hope this can help 

PetrH

avillanueva
22-Sapphire II
(To:HelesicPetr)

That or clearing the Windchill/tomcat/instances/instance-801x/work folder to force Windchill to recompile pages.

Hi @avillanueva 

True, true but it is annoying to delete the cache each time if you change the JSP file 😄 

PS: the restart method server also needs to clean this cache .

PetrH

avillanueva
22-Sapphire II
(To:HelesicPetr)

unless we are talking about a production server.

Thanks for your valuable inputs.

 

Best Regards,

Shrikant Bhosle

Thanks PetrH,

For your input.

 

I have somewhat similar question on the same topic.

Is it necessary to restart Windchill after each build of a jar file for a Java project?

 

Regards,

Shrikant Bhosle

Hello @SB_10566278 

for jar file you need to restart Windchill, because you need to reload full jar packages

 

but you can add the class files in a codebase folder, instead of adding them to the jar package. 

 

then you need to activate debug mode in the wt.properties. 

 

 if you set the java debug arg, then you can connect your IDE directly to the method server in debug mode. 

Then recompilation can be loaded directly to the method server

 

here is the instructions how to set it CS96048 - How to build a development environment and perform remote debug using Eclipse in Windchill

 

PetrH

Thank you so much PetrH.

Appreciate your help.

 

Regards,

Shrikant Bhosle

Announcements

Top Tags