Skip to main content
14-Alexandrite
May 31, 2023
Solved

wt.load.LoadFromFile

  • May 31, 2023
  • 2 replies
  • 3431 views

windchill shell:

windchill wt.load.LoadFromFile -d "D:\PTC\Windchill_12.0\Windchill\src\loadFiles/users.xml"--javaargs="-Dcom.ptc.net.auth.user="wcadmin" -Dcom.ptc.net.auth.password="wcadmin"" -CONT_PATH \"/wt.inf.container.OrgContainer=xxx\"

Error:

The operation:   "getPrincipal" failed.

Nested exception is: wt.util.WTRemoteException: Unable to invoke remote method

Nested exception is: wt.method.AuthenticationException

 

Resolution tried:

1. keytool -import -alias someAliasName -file C:\ptc\Windchill_12.0\HTTPServer\conf\server.crt -storetype jks -keystore c:\ptc\JDK11\lib\security\jssecacerts

2. ant -DHTTPS_ENABLED=true -f config.xml reconfigure

3. Restarted all Apache services

and tried to run the windchill wt.load.LoadFromFile"". still facing the same issue, any suggestions

 

 

Best answer by HelesicPetr

Hi @NSS 

Is the certificate generated to specific server name with full domain? There are several troubles if the certificate is in chain.

 

Use any app to open the keyStore and check if the store really contains your certificate with correct windchill server name

 

PetrH

2 replies

avillanueva
23-Emerald I
23-Emerald I
May 31, 2023

Is it your quotes around wcadmin? You also seem to have mixed slashes in your path for the load file. 

HelesicPetr
22-Sapphire II
22-Sapphire II
May 31, 2023

Hi @NSS 

I would check all cases described in the article https://www.ptc.com/en/support/article/cs82453

Check if the certificate is really the one that should be used and is really in the key store.

 

ps: why do you use javaargs instead of -u and -p arguments ?

I would like to see a methodserver log file because the error "getPrincipal failed" show me that the principal may not exist

 

PetrH

PetrH
NSS14-AlexandriteAuthor
14-Alexandrite
May 31, 2023

I have used  javaargs by referring this article https://www.ptc.com/en/support/article/CS63015

avillanueva
23-Emerald I
23-Emerald I
May 31, 2023

correct but you do not need quotes around username and password values. 

 --javaargs="-Dcom.ptc.net.auth.user=<username> -Dcom.ptc.net.auth.password=<password>"