Our server had a unexpected shutdown and now the Method Server refuses to start.
Error log from Method Server:
2020-10-20 18:02:11,284 ERROR [main] wt.method.server.startup.services - Failed to create: wt.services.service.2180=com.ptc.windchill.enterprise.generic.server.GenericService/com.ptc.wpcfg.generic.WpcfgGenericService
(wt.services.servicesResource/17) wt.util.WTException: Unable to find manager class from entry: "wt.services.service.2180=com.ptc.windchill.enterprise.generic.server.GenericService/com.ptc.wpcfg.generic.WpcfgGenericService"
Nested exception is: java.lang.ClassNotFoundException: com.ptc.windchill.enterprise.generic.server.GenericService
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at wt.services.ManagerImplementation.create(ManagerImplementation.java:206)
at wt.services.StandardManagerFactory.createImplementations(StandardManagerFactory.java:135)
at wt.services.StandardManagerFactory.<init>(StandardManagerFactory.java:117)
at wt.services.StandardManagerFactory$Singleton.<clinit>(StandardManagerFactory.java:73)
at wt.services.StandardManagerFactory.getInstance(StandardManagerFactory.java:102)
at wt.services.StandardManagerService.createFactory(StandardManagerService.java:374)
at wt.services.StandardManagerService.initialize(StandardManagerService.java:364)
at wt.services.StandardManagerService.newStandardManagerService(StandardManagerService.java:100)
at wt.services.StandardServicesHandler.getFactory(StandardServicesHandler.java:51)
at wt.services.StandardServicesHandler.start(StandardServicesHandler.java:42)
at wt.method.MethodServerMain.run(MethodServerMain.java:603)
at wt.method.MethodServerMain.main(MethodServerMain.java:373)
2020-10-20 18:02:11,499 FATAL [main] wt.method.server - MethodServerMain abort
(wt.services.servicesResource/17) wt.util.WTException: Unable to find manager class from entry: "wt.services.service.2180=com.ptc.windchill.enterprise.generic.server.GenericService/com.ptc.wpcfg.generic.WpcfgGenericService"
Nested exception is: java.lang.ClassNotFoundException: com.ptc.windchill.enterprise.generic.server.GenericService
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at wt.services.ManagerImplementation.create(ManagerImplementation.java:206)
at wt.services.StandardManagerFactory.createImplementations(StandardManagerFactory.java:135)
at wt.services.StandardManagerFactory.<init>(StandardManagerFactory.java:117)
at wt.services.StandardManagerFactory$Singleton.<clinit>(StandardManagerFactory.java:73)
at wt.services.StandardManagerFactory.getInstance(StandardManagerFactory.java:102)
at wt.services.StandardManagerService.createFactory(StandardManagerService.java:374)
at wt.services.StandardManagerService.initialize(StandardManagerService.java:364)
at wt.services.StandardManagerService.newStandardManagerService(StandardManagerService.java:100)
at wt.services.StandardServicesHandler.getFactory(StandardServicesHandler.java:51)
at wt.services.StandardServicesHandler.start(StandardServicesHandler.java:42)
at wt.method.MethodServerMain.run(MethodServerMain.java:603)
at wt.method.MethodServerMain.main(MethodServerMain.java:373)
2020-10-20 18:02:11,548 FATAL [main] wt.method.server.shutdown - Stopping services...
2020-10-20 18:02:11,548 INFO [main] wt.system.out - WARNING: The ManagerService is not initialized! This can be caused by:
2020-10-20 18:02:11,548 INFO [main] wt.system.out - 1) Attempting to invoke a server only method from a remote client
2020-10-20 18:02:11,548 INFO [main] wt.system.out - 2) Attempting to invoke a method on a service from the constructor or static initializer of another service
2020-10-20 18:02:11,548 FATAL [main] wt.method.server.shutdown - MethodServer stopped
Any help would be immensely appreciated!
The error means could not find the class under classpath. The class is for Options Variants.
1. Use which command to check whether it exits or not, please recover if it was gone.
java wt.util.jmx.Which com/ptc/windchill/enterprise/generic/server/GenericService.class
-it should under <windchill>/codebase
2. Verify the classpath
- Look MS log, it will display all ClassPaths of Windchill whether <windchill>/codebase is the first
Cliff
I was able to manually find the GenericService.class file under <windchill>\codebase\wt\generic
And the MS log shows a classpath including <windchill>/codebase, but not <windchill>\codebase\wt\generic specifically.
Here's the full classpath from the log file:
2020-10-21 00:54:23,636 INFO [main] wt.method.server.startup - Class path =
<windchill>\codebase
<windchill>\codebase\WEB-INF\lib\dpimplWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\dpinfraWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\Gantt.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\ie3rdpartylibs.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\ieWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\install.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\jmxcoreWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\jviews-chart-all.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\jviews-framework-all.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\jviews-gantt-all.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\mksapi.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\mylyn-integration.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\odataWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\pdmlWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\pjlWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\ProjectManagement.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\prowtWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\reqlWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\restWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\rialtoWeb.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\RMWebServices.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\TwxIEWebService.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\wc3rdpartylibs.jar
C:\ptc\Windchill_11.1\Windchill\codebase\WEB-INF\lib\wncWeb.jar
C:\ptc\Windchill_11.1\Windchill\lib\pdml.jar
C:\ptc\Windchill_11.1\Windchill\lib\pjl.jar
C:\ptc\Windchill_11.1\Windchill\lib\reql.jar
C:\ptc\Windchill_11.1\Windchill\lib\servlet.jar
C:\ptc\Windchill_11.1\Windchill\lib\wnc.jar
C:\ptc\Windchill_11.1\Java\lib\tools.jar
C:\ptc\Windchill_11.1\Windchill\tomcat\bin\bootstrap.jar
C:\ptc\Windchill_11.1\Windchill\tomcat\bin\tomcat-juli.jar
C:\ptc\Windchill_11.1\Windchill\srclib\wnc\WtAsmAgent.jar
what is below? It should be C:\ptc\Windchill_11.1\Windchill
Cliff
2020-10-21 00:54:23,636 INFO [main] wt.method.server.startup - Class path =
<windchill>\codebase
<windchill>\codebase\WEB-INF\lib\dpimplWeb.jar
Sorry, yes, it is!
(I debated changing them all to <windchill>/* format, and forgot to correct the ones I had changed)