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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Translate the entire conversation x

Error Page Customization

AS_10714952
3-Newcomer

Error Page Customization

I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.2

Hello,
We are currently using Windchill version 13.0.2.2 in our organization. We've observed that some users are attempting to access Windchill without being assigned any valid licenses. In such cases, the error message displayed is overly technical and difficult for end users to understand.
To improve the user experience, we would like to customize the error page to display a simple and clear message indicating that the issue is due to missing Windchill licenses. I’ve attached a screenshot of the current error for reference.

This request is of high priority, as the existing error page is causing confusion among users and generating unnecessary support tickets.

Thank you for your attention to this matter.
14 REPLIES 14

There are no screenshots attached to your message.

2025-09-29 14_39_31-image (4).png

Fadel
22-Sapphire III
(To:AS_10714952)

Try below on a test server before touching any prod : 

  1. Copy Windchill/src/wt/licenseusage/licenseUsageResource*.java and paste to Windchill/wtCustom/wt/licenseusage/ - Create folder manually if not exist
  2. Edit below message @RBEntry in Windchill/wtCustom/wt/licenseusage/licenseUsageResource*.java with proper language
        @RBEntry("User is not a member of any valid license groups. Access is denied. You do not have a Windchill license assigned to your account. Contact your administrator for further assistance.")
        @RBComment("Message stating that Failed to login because user is not member of any active license group")
        public static final String INVALID_USER_LOGIN_FOR_ACTIVE_LICENSE_GROUP = "INVALID_USER_LOGIN_FOR_ACTIVE_LICENSE_GROUP";
  3. Stop Windchill
  4. Execute command in Windchill Shell: ant -f bin/tools.xml class -Dclass.includes=*.java -Dclass.source=%WT_HOME%\wtCustom\wt\licenseusage\
  5. Restart Windchill
Fede
avillanueva
23-Emerald I
(To:Fadel)

That will change the error message you highlighted which seems very clear that you do not have a valid license. Are you also asking to change the rest of that page?

Yes. I am.
I want to remove all those details which are showing in the landing page.
My main request is that to change remove all the technical details and keep the page simple with only the content I need.

AS_10714952_1-1759168521770.png

 

AS_10714952
3-Newcomer
(To:Fadel)

Hello Fedel, 
Thanks a lot for the detailed message.

I want the page to display only the message stating that the user doesn't have a license and therefore cannot log in. All other details should be removed. Does the change you suggested help achieve that as well?
I have highlighted the contents that I need to hide from the error page.

AS_10714952_0-1759168400493.png


Akhil



I believe the page is covered by <codebase>/wtcore/error.jsp

In the <codebase>/WEB-INF/web.xml there is a section for error pages based on the error code. 500 is not defined but all appear to use the same jsp page. I would tinker here but follow @Fadel recommendations.

I have updated as per Fedal's suggestion. It updated the message as I need.
But my requirement was to remove all other details and keep only the message.

AS_10714952_0-1759209529420.png


Akhil

Fadel
22-Sapphire III
(To:AS_10714952)

You have to customize codebase/wtcore/error.jsp  

 

Fadel_0-1759484670428.png

 

Fede
AS_10714952
3-Newcomer
(To:Fadel)

@Fadel I have updated the error.jsp to show the exception message as we need.
logic: 

AS_10714952_0-1759487050165.png

Result:

AS_10714952_1-1759487129627.png


But my request is to understand if we have any possibility to show only the message to the users instead of all other results.
Can we customize the page itself only for the license exception errors?

Fadel
22-Sapphire III
(To:AS_10714952)

in the jsp there is a html table keep only last rows  : 

Fadel_1-1759492319016.png

 

Fadel_0-1759492237755.png

 

 

 

 

Fede
AS_10714952
3-Newcomer
(To:Fadel)

Makes sense now.
And the changes we are making in this table will create issues with other error warning as well? or only for the license exception cases?
Because I notice this is a common template for all sorts of errors.

Fadel
22-Sapphire III
(To:AS_10714952)

The jsp is unique but the error message  depends on the context : 

Fadel_0-1759505765686.png

 

 

Fede

Hello @AS_10714952

 

It looks like you have some responses from our community experts. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Announcements
Top Tags