I hope someone will be able to help me figure this out.
I was requested to migrate apache axis 1.4 from a server with Tomcat 6 to a more recent server with Tomcat 9.
OS is RedHat Enterprise 5.9 on older server, RedHat Enterprise 8.4 on newer server.
The older Tomcat 6 uses JRE 1.6, and it runs without issues, while the Tomcat 9 uses JDK 1.8
What I did was simply take the folder under CATALINA_HOME\webapps\axis and copy it under the same folder on the new Tomcat 9.
Everything seemed fine until I changed a custom .jws file. When I tryed reloading axis, visiting page https://IP/axis/FILE_NAME.jws?wsdl I get the following error:
Sorry, something seems to have gone wrong... here are the details:
Fault - ; nested exception is:
java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:client.localdomain
I checked for tools.jar on the JDK installed and found it under /usr/lib/jvm/java-1.8.0-openjdk/lib/
I also looked online and, as most posts said, I tried copying the tools.jar under CATALINA_HOME\webapps\axis\WEB_INF\lib, but I still get the same error.
I tried a bunch of stuff like adding the AXISCLASSPATH=CATALINA_HOME\webapps\axis\WEB_INF\lib to my tomcat setenv.sh, or copying the tools.jar under the CATALINA_HOME\lib folder, but nothing seems to work.
Could you please help me understand what the issue may be?