Running TKL appliances under proxmox

Trying to get Axis 1.4 to run on the Tomcat apliance to no avail.  Axis deploys fine and is shown to be running on the apache status page but happyaxis.jsp returns:

HTTP Status 500

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception
	org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: com/ibm/wsdl/factory/WSDLFactoryImpl : Unsupported major.minor version 51.0 (unable to load class com.ibm.wsdl.factory.WSDLFactoryImpl)
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

	javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: com/ibm/wsdl/factory/WSDLFactoryImpl : Unsupported major.minor version 51.0 (unable to load class com.ibm.wsdl.factory.WSDLFactoryImpl)
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)
	org.apache.jsp.happyaxis_jsp._jspService(happyaxis_jsp.java:808)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

	java.lang.UnsupportedClassVersionError: com/ibm/wsdl/factory/WSDLFactoryImpl : Unsupported major.minor version 51.0 (unable to load class com.ibm.wsdl.factory.WSDLFactoryImpl)
	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
	java.lang.Class.forName0(Native Method)
	java.lang.Class.forName(Class.java:186)
	org.apache.jsp.happyaxis_jsp.classExists(happyaxis_jsp.java:34)
	org.apache.jsp.happyaxis_jsp.probeClass(happyaxis_jsp.java:77)
	org.apache.jsp.happyaxis_jsp.needClass(happyaxis_jsp.java:151)
	org.apache.jsp.happyaxis_jsp._jspService(happyaxis_jsp.java:650)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 

What I've tried:

installed sun-jdk, set environment variables in etc/environment like so:

CATALINA_HOME="/usr/share/tomcat6"
CATALINA_BASE="/var/lib/tomcat6"
CATALINA_OPTS="-server -Xms384M -Xmx512M -XX:MaxPermSize=256M"
JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.26"
AXIS_HOME="/var/lib/tomcat6/webapps/axis"
AXIS_LIB="/var/lib/tomcat6/webapps/axis/WEB-INF/lib"
AXISCLASSPATH="/var/lib/tomcat6/webapps/axis/WEB-INF/lib"

I'm sure its something silly but for the life of me I cannot find a solution.  Am I the only one trying to use Axis on TKL Tomcat?
 

Thanks!

Forum: 

Am I completely missing something here?  why is this so difficult.

java -version was still returning free-jdk even though JAVA_HOME was set to sun java.  I have had problems with this in the past under ubuntu so I completely removed freejdk.  only sun-java left.

there is a lot of confliting info on etc/environment but using the quotes like above and no export commands is the only way that the variables echo correctly so I think that is correct.

/usr/share/tomcat6/bin/catalina.sh contains code that overrides user classpath variables when it executes.  according to docs, all classpath references should be put setenv.sh

I created setenv.sh and in it have the recommended classpath from apache:

set AXISCLASSPATH=$AXIS_LIB/axis.jar:$AXIS_LIB/commons-discovery.jar:
  $AXIS_LIB/commons-logging.jar:$AXIS_LIB/jaxrpc.jar:$AXIS_LIB/saaj.jar:
  $AXIS_LIB/log4j-1.2.8.jar:$AXIS_LIB/xml-apis.jar:$AXIS_LIB/xercesImpl.jar

echos fine, but still no happyaxis


Add new comment