Article - CS272585

Not able to fetch Swagger JSON Error: 404 in FlexPLM 11.0 FCS

Modified: 24-Oct-2017   


Applies To

  • FlexPLM 11.0 F000

Description

  • Not able to fetch Swagger JSON in FlexPLM
  • No errors on HTTPServer or in Method server.
  • Error in flexplmwebservice.log
START: 2017-10-19.10:54:19
URL: https://[server]/Windchill/servlet/rest/p76/security/csrf
HTTP CODE: 404
CURL CODE: 0
END:   2017-10-19.10:54:20
:
  • Check if RESTful services are configured correctly with plugin
    • xconfmanager -d plugin76.rest.resources
E:\ptc\Windchill_11.0\Windchill>xconfmanager -d plugin76.rest.resources
Default product root=E:\ptc\Windchill_11.0\Windchill\bin\..
java -cp "E:\ptc\Windchill_11.0\Windchill\bin\..\codebase;E:\ptc\Windchill_11.0\Windchill\bin\..\codebase\WEB-INF\lib\*;E:\ptc\Windchill_11.0\Windchill\bin\..\lib\*" com.ptc.windchill.structconf.StructConfManager -r "E:\ptc\Windchill_11.0\Windchill\bin\.." -d plugin76.rest.resources
Property information for 'plugin76.rest.resources':
   Multivalued property delimiter: ,
   Values:
   - com.plugin76.rest.security.CSRFService
   -  com.plugin76.rest.security.AuthenticationFilter
   -  com.plugin76.rest.favorites.FavoritesService
   -  com.plugin76.rest.instances.InstancesService
   -  com.plugin76.rest.types.TypesService
   -  com.plugin76.rest.documents.DocumentRestService
   -  com.plugin76.rest.views.ViewRestService
   -  com.plugin76.rest.filters.FilterRestService
   -  com.plugin76.rest.product.ProductRestService
   -  com.plugin76.rest.imagespage.ImagesPageService
   -  com.plugin76.rest.specification.SpecificationRestService
   -  com.plugin76.rest.palette.PaletteRestService
   -  com.plugin76.rest.search.InstanceSearchService
   -  com.plugin76.rest.upload.UploadRestService
   -  com.plugin76.rest.bom.BOMRestService
   -  com.plugin76.rest.materials.MaterialsRestService
   -  com.plugin76.rest.seasons.SeasonsRestService
   Locations:
   - file:/E:/ptc/Windchill_11.0/Windchill/codebase/com/plugin76/rest/plugin76.rest.xconf, line 4
   Target File(s):
   - E:\ptc\Windchill_11.0\Windchill\codebase\com\ptc\windchill\rest\rest.properties

E:\ptc\Windchill_11.0\Windchill>
  • ​​Fetch swagger JSON to test connection for Plugin76
    • Error: ‘Can’t read Swagger JSON‘ 
  • Verify web.xml file and check rest services:
    •   <servlet>
          <description>RESTEasy Servlet</description>
          <servlet-name>resteasy-servlet</servlet-name>
          <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
          <init-param>
            <param-name>javax.ws.rs.Application</param-name>
            <param-value>com.ptc.windchill.rest.ApplicationConfig</param-value>
          </init-param>
        </servlet>
       
This is a printer-friendly version of Article 272585 and may be out of date. For the latest version click CS272585