1

Maintaining an old application written in Netbeans and trying to currently update it to Java 11. I was able to solve some initial problems when I asked a previous question and got directed to this:

Replacements for deprecated JPMS modules with Java EE APIs

I added those modules as Jar libraries to the project and it got rid of compile errors. Now I am stuck with one last exception being thrown when Tomcat starts.

Caused by: java.lang.ClassNotFoundException: javax.jws.WebService
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1109)

I'm pretty sure this should be included in this jar file jaxws-api-2.3.0.jar since other errors in the localhost log files disappeared after adding this jar.

Are there other settings / options I may need to add, perhaps something to do with modules, in order for Tomcat to find this class?

kailoon
  • 2,131
  • 1
  • 18
  • 33
  • 1
    The Tomcat class path and the Netbeans class path are different. Make sure the jars are compiled with the project so that they are available on the Tomcat server at start up – Alan Kavanagh Jan 17 '19 at 17:05
  • I checked the generated Jar which is placed in the /usr/local/tomcat/webapps directory and they contain the Jar files in the /WEB-INF/lib folder of the war file. Do I just need to add that classpath to Tomcat? – kailoon Jan 17 '19 at 17:49
  • @AK47 and how do you make sure that they are compiled? Please provide a complete answer :( – iSpain17 Sep 27 '19 at 07:17
  • @iSpain17 I guess you compile them all into a .WAR file and deploy your .WAR file to Tomcat – Alan Kavanagh Sep 27 '19 at 09:42

0 Answers0