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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

wt.load.LoadFromFile

NSS
14-Alexandrite
14-Alexandrite

wt.load.LoadFromFile

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

 

 

ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire I
(To:NSS)

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

View solution in original post

10 REPLIES 10
avillanueva
22-Sapphire II
(To:NSS)

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

HelesicPetr
22-Sapphire I
(To:NSS)

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

NSS
14-Alexandrite
14-Alexandrite
(To:HelesicPetr)

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

avillanueva
22-Sapphire II
(To:NSS)

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>"

 

NSS
14-Alexandrite
14-Alexandrite
(To:avillanueva)

I have tried both with and w/o quotes and also please ignore mixed slashes too as I mentioned earlier

it throws same error.

avillanueva
22-Sapphire II
(To:NSS)

Let's take a step back. You can leave off that block and let system prompt you for login. Also, have you tried wt.auth.Authentication to verify that login is working?

 

NSS
14-Alexandrite
14-Alexandrite
(To:avillanueva)

wt.auth.Authentication failed.

DEBUG wt.httpgw.HTTPLogin - Failed to get input stream from connection
javax.net.ssl.SSLHandshakeException: No name matching xxx.com found.

 

Also, next step "wt.server.codebase" value is not getting updated in wt.properties.

HelesicPetr
22-Sapphire I
(To:NSS)

Hi @NSS 

 

This error tells you that the ssl certificate in the key store is wrong. So you need to import correct one. 

 

PetrH

NSS
14-Alexandrite
14-Alexandrite
(To:HelesicPetr)

Hi PetrH,

ssl certificate created by me and followed the steps in the article for importing.

would you like to suggest any idea here on verify the same or any other possibilities.

HelesicPetr
22-Sapphire I
(To:NSS)

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

Announcements


Top Tags