Article - CS285810

The Windchill Rest Services 1.1 endpoints (URLs) return an error in Windchill PDMLink

Modified: 10-Sep-2021   


Applies To

  • Windchill PDMLink 11.0 F000 to M030-CPS17
  • Windchill PDMLink 11.1 F000 to M020-CPS10

Description

  • The Windchill Rest Services 1.1+ endpoints (URLs) return an error
  • When accessing Windchill REST Services Endpoints (URLs), the following error is encountered
User-added image
  • Following exception is observed in MethodServer logs
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Windchill]  - StandardWrapper.Throwable
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.ptc.odata.windchill.context.AppConfiguration]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'AlternateUserName3' for bean class [com.ptc.odata.windchill.entity.property.WTPrincipalPropertyDelegate$AlternateUse3Name1PropertyDelegate] conflicts with existing, non-compatible bean definition of same name and class [com.ptc.odata.windchill.entity.property.UserPropertyDelegate$AlternateUse3Name1PropertyDelegate]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:187)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:321)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)
    at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
    at com.ptc.odata.windchill.servlet.WcRestServlet.init(WcRestServlet.java:92)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1144)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:773)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  • Update paths
SourceTarget
11.0 M030 CPS06/CPS07/CPS0811.0 M030 CPS09
11.1 F000/CPS01/CPS02
11.1 M020 CPS01/CPS02
11.1 F000 CPS03
 11.1 M020 CPS07
  • Errors observed during startup in Methodserver logs after applying Windchill 11.1-F000-CPS03 or CPS04
date/time ERROR [localhost-startStop-1] org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Windchill]  - Servlet [WcRestServlet] in web application [/Windchill] threw load() exception
java.lang.ClassNotFoundException: com.ptc.odata.windchill.servlet.WcRestServlet
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1291)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
                at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:544)
This is a PDF version of Article CS285810 and may be out of date. For the latest version click https://www.ptc.com/en/support/article/CS285810