Support

Solution Details - TPI

Solution 136523
Type TPI
Created Date 20-Mar-2007
Last Updated 28-Sep-2007
Title Java Applets are Not Seeing Customized Resource Bundles
Details
Description

After customizing resource bundles, HTML and JSP pages will immediately see the change after restarting the MethodServer(s). However, applets do not see the change since they look at their own copies of the serialized resource bundles in their JAR files.

Resolution

First of all, to customize any enumerated type in Windchill, one needs the source file for that resource bundle. To gain access to the source files for enumerated types, one needs to install Windchill "Text Tailoring" component. Please run the setup for all of the Windchill components you have installed again, select custom setup and only install the "Text Tailoring" component. Make sure you perform this operation for all of the Windchill CD-ROMs (e.g. Windchill services, Windchill PDMLink, Windchill ProjectLink).

The process of customizing RBINFO files is documented in the Windchill Customizer's Guide, Chapter 4, Managing Customizations. You should create a Windchill\wtCustom folder to manage your customizations. Create your custom resource file and name it the same as the original file, e.g. Windchill\wtCustom\wt\lifecycle\StateRB.rbInfo, and in your file include only your custom entries.

For some enumerated types, the enumCustomize program may be used to perform this step.

After this, perform the following steps:

1. Recompile the rbinfo files using the following command from Windchill shell:
C:\ptc\Windchill> ant\bin\ant -f bin/tools.xml bundle_custom -Dbundle.forceCompile=true -Dbundle.input=registry

If this command does not build the file, try use ResourceBuild command to build it, e.g. C:\ptc\Windchill> bin\ResourceBuild wt.lifecycle.StateRB

2. Verify that .ser files are updated (by inspecting the timestamps of the corresponding .ser files in Windchill\codebase) and using enumVerify, e.g.:
enumVerify wt.part.QuantityUnit fr

3. Rebuild the Jar files using command:
ant -f codebase/MakeJar.xml custUpdate

4. At this point, if the applets still do not see the change, try clearing the clients' Jar caches through the Java applet in the Control Panel (Windows) or the system-dependent method (Unix).

Alternate Technique

Rebuild the jar files using command:
ant\bin\ant -f codebase/MakeJar.xml custUpdate
from a Windchill shell.


Affected Products

Product Windchill PDMLink
Module Customization
Reported Release 8.0
Reported Datecode F000
Resolved Release Not Available
Resolved Datecode Not Available
Affected Client All
Affected Server All

Related Documents

Type Number Status Description

None Available