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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Rehost issue - java.lang.ClassNotFoundException: ${domain}.Note

pyalavarthi
1-Visitor

Rehost issue - java.lang.ClassNotFoundException: ${domain}.Note

Hello all,
I recently did a rehost of our production server to a dev server
in another domain. Dev server is up and working fine most of the
functionality.
When searches are performed, it is giving following errors. Looks like the
old domain name is still lingering in either the configurations or
database.
I verified all the Windchill configuration files(site.xconf, wt.properties,
ie.properties,db.properties, web.xml, MapCredentials.xml). Also verified
the database tables Site, Repository, fvhost, wttypedefinition,
wttypedefinitionmaster,lwctypedefinition to make sure that the domain name
is changed to new one.
I am wondering if any one has seen this error before. Any ideas to debug
this issue would be helpful.


Thanks,
Prathap

[image: Inline image 1]
4 REPLIES 4

hello,

1. clear tomcat and apache cache
2. clear tasks folder
3. clear servlet cache
4. restart server in order , wds, apache,tomcat,ms

check if the class is missing ?

thanks
Selvam p

Hi Prathap,


I believe that the Type Note is still pointing to the old domain.


Go to Type and Attribute Manager and check if Type Note is pointing to the old domain. If yes, then change the internal name as per new domain.


I hope this resolves your issue.



Regards,


Karan Narang

Hi Prathap,



I recalled your issue below from last week and I fixed it today on a
development server where I exported LDAP to LDIF from one server at the
ou=people level. I have known aobut this issue some time, so I knew how to
fix it. The issue shown below is just a 10.x version of the issue.
Sometimes when you install Windchill the organizations in the Windchill
Directory Server use a domain that matches the entire fully qualified domain
host name. Using an LDAP browser, navigate to ou=people and locate the one
or more organizations (Windchill Organizations) you have by name. When you
select it, you will see an attribute titled 'associatedDomain' where it's
value might be servername.subdomain.domain.com and what you really want
(what is okay) is for it to be subdomain.domain.com. It is the very fact
that servername is included (some Organizations have them, some do not
depending on what created them) that confuses Windchill, which knows
${domain} to be different.



I'm not sure how you completed the rehost - did you use the new rehost tool?
If so I would bring this to PTC's attention and get an SPR filed. I have
fixed it multiple times on 9.1.



Two things:

1 - Shutdown Windchill, reclear caches

2 - Backup LDAP before making change, or write down value of attribute in
case you make a mistake



Upon starting back up, also clear browser cache and cookies for Windchill,
should see things working correctly again.



I can provide a screenshot of this if need be, but I think this is fairly
straight forward to figure out.



Regards,

David DeMay




Hello Selvam, Karan and David
Thanks for your input. I cleaned the tomcat and IE cache multiple
times with no success. I did the rehosting manually by editing the ldap
export file from source server and re importing into new server. I
verified the ldap for any references to old domain name or old hostname and
there are none. I modified the database tables also manually. I did
rehosting with just hostname change many times successfully. However this
is the first time I tried with rehosting with domain name change. I had to
modify extra database tables in the process. Here are the list of files and
tables that I modified/verified. Let me know if I have overlooked any other
files.



Windchill PDMLink 10.1

Apache files.
Apache/config.properties
ant -f webAppConfig.xml regenWebAppConf
Verified the following files
Apache/conf/httpd.conf
Apache/conf/extra/app-Windchill-Auth.conf
Apache/conf/extra/app-Windchill-AuthProvider.xml
Apache/conf/extra/httpd-ssl.conf

Windchill configuration files
Windchill/site.xconf
Verified the following files
Windchill/codebase/wt.properties
Windchill/db/db.properties
Windchill/codebase/WEB-INF/ie.properties
Windchill/codebase/WEB-INF/web.xml
Windchill/codebase/WEB-INF/mapcredentials.txt
Windchill/tasks/wt/federation/MapCredentials.xml


Database tables I modified
1. Fvhost
2. Repository
3. Site
For domain name changes I had to modify these extra tables
4.* LWCTypeDefinition*
*5. WTTypeDefinition*
*6. WTTypeDefinitionMaster*
*
*
Also I had to add following file to fix the CAD Document checkin
*Windchill/codebase/EPMDefaultSoftTypes.xml*

<softtypedescriptor xmlns="&lt;a style="COLOR: blue; TEXT-DECORATION: underline" target="_BLANK" href="http://www.ptc.com" &quot;=">http://www.ptc.com' xmlns:xsi='

<objectclassinfo classtype="EPMDocument">
<objecttypeinfo type="*">
<softtypeinfo<br/>softTypeId="wt.epm.EPMDocument|com.amazon.aka.DefaultEPMDocument"/>

<softtypeinfo subtype="*"&lt;br"/>softTypeId="wt.epm.EPMDocument|com.amazon.aka.DefaultEPMDocument"/>
</objecttypeinfo>
</objectclassinfo>
</auth...




">http://goo.gl/LuT5>



Announcements


Top Tags