Windchill XML Info*Engine tasks not found at login

Problem

After Installing the Connector Extensions to Windchill, when the user tries to login to OSLC Connect for Windchill, a 404 error is displayed. In such case, locate the following file: _your_tomcat_folder_/logs/oslc_adapter_windchill.log, it should contain a similar trace as this one:

ver.oslc.person.builder.WindchillUserByNameBuilder  - CRRWC0B030 Unable to properly run the Windchill Info*Engine task "com/sodius/oslc/FindUserByName.xml":
org.eclipse.core.runtime.CoreException: HTTP/1.1 404 Not Found
      at com.sodius.internal.windchill.server.infoengine.task.TaskRunnerImpl.getInputStream(TaskRunnerImpl.java:74)
      at com.sodius.internal.windchill.server.infoengine.task.AbstractTaskRunnerImpl.run(AbstractTaskRunnerImpl.java:38)
      at com.sodius.windchill.server.infoengine.task.builder.TaskResourceBuilder.runTask

Solution

This error may have several different causes. Here are some ways to diagnose and fix the problem.

Check the Windchill Server property is correct in the OSLC Connect for Windchill settings

  1. Open the OSLC Connect for Windchill key configuration page: _adapter_server_url/oslc-windchill/configuration/admin
  2. Note the value set in the first field, the Windchill Server
  3. Ensure this value is the identical to the value of the oslc-windchill.windchill.server OSLC Connect for Windchill value at the Configuring Context Parameters section
Note: the oslc-windchill.windchill.server context parameter value must end with a trailing slash ('/').

Verify that the Windchill task url is responding

Open a web browser and enter this url: _oslc-windchill.windchill.server_/Windchill/protocolAuth/servlet/IE/tasks/com/sodius/oslc/FindUserByName.xml?authenticationName=_windchill_user_login_

Example: https://windchill-11.sodius.cloud/Windchill/protocolAuth/servlet/IE/tasks/com/sodius/oslc/FindUserByName.xml?authenticationName=wcadmin

You should get an XML ouput, but if you get an error 404, this probably means the tasks is not correctly installed, you're going to check this in the next step.

Verify that Sodius OSLC tasks are installed

List the content of the folder which should contain those files:

If you don't get this content, this is probably because the OSLC Connect for Windchill extensions failed to get installed, so it's time to contact your Sodius representative.

Force OSLC Connect for Windchill tasks compilation

Open Windchilll shell and type this commande: windchill com.infoengine.SAK.Taskc com\sodius\oslc

Now, check the content of the _Windchill_installation_folder_/tasks/codebase/com/infoengine/compiledTasks/file/_a_unique_id_folder_/com/sodius/oslc folder, you should find those files:

Note: For each XML file listed in the previous section, you should get a .class and a .java files.>

If you don't get this content, this is probably because the OSLC Connect for Windchill extensions failed to get installed, so it's time to contact your Sodius representative. Providing the output of the compilation command would be great.

Restart Windchill

If eveything seems normal, try to restart Windchill and login again in OSLC Connect for Windchill, if you still get the error 404, please contact your Sodius representative.