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

How to Authenticate Windchill in a JSP

Regular Member

How to Authenticate Windchill in a JSP

Hi,

I'm creating a JSP that would list all the groups of a specified organisation in the Windchill.

To prevent the authentication window, I'm trying to use RemoteMethodServer API and the suggested method of authentication from CS254321 in PTC K-Base.

But i still get the authentication window when i try to access this JSP.

Any help?

Capture.PNG

Tags (1)
7 REPLIES 7

Re: How to Authenticate Windchill in a JSP

How are you calling this JSP? Is it from an action from Windchill or a stand alone? If it is a standalone and if the JSP is in one of the protected resource locations, you will not be able to access the resource without authentication.

Re: How to Authenticate Windchill in a JSP

Hi Binesh,

Thanks for replying.

It is a standalone JSP and it resides in the <WT_HOME>\netmarkets\jsp.

Is there any other way that i can achieve my need? My actual requirement is to get the list of groups from an organisation in Windchill and process it in an external Java code, and in future try to add some users to an existing group. Any suggestions.

Re: How to Authenticate Windchill in a JSP

What if you explicitly set the username and password?

rms.setUserName("wcadmin");

rms.setPassword("pwd");

Re: How to Authenticate Windchill in a JSP

I tried that initially and ended up with this below error.

Untitled.png

Re: How to Authenticate Windchill in a JSP

This error is a compilation error in your class. If you run your code from a standalone java class , does it work?

Re: How to Authenticate Windchill in a JSP

The auth window come from Apache.

codebase/netmarket/jsp is an Apache authenticated ressource. And by default, all ressources are authenticated...

Take a look to HTTPServer/conf/extra/app-Windchill-AuthRes.xml, you'll find some anonymous URLs, like

   <resource type="anonymous">wtcore/getWtProperties.jsp</resource>

Maybe you'll need to add a new resource there, or use an existing one.

PS : I'm not sure that anonymous access to PDMLink is allowed by PTC's licence.

Re: How to Authenticate Windchill in a JSP

Hi aarasan-3,

 

Did you ever solve this problem? I have the same problem now and maybe you can help me with this?

 

Thanks

Announcements
LiveWorx Call For Papers Happening Now!