我使用tomcat 7和jdk7和axis2在eclipse上开发了一个web服务,我必须在jboss51GA和jdk5上部署它,当我尝试访问web服务时,我得到了流动的错误: 此Web axisService具有部署错误
Error: java.lang.UnsupportedClassVersionError: pachet/clasa_ws : Unsupported
major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at
java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at
java.lang.ClassLoader.defineClass(ClassLoader.java:615) at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at
java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at
java.net.URLClassLoader.access$000(URLClassLoader.java:58) at
java.net.URLClassLoader$1.run(URLClassLoader.java:197) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:190) at
org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:82) at
java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:277) at
java.lang.ClassLoader.loadClass(ClassLoader.java:247) at
org.apache.axis2.util.Loader.load
我将Web服务部署为war文件,而不是在axis目录中。 任何人都可以帮助我解决这个问题,我面对一个星期..
答案 0 :(得分:0)
Some Condition to be followed in eclipse
1.Eclipse Dynamice Module version should be 2.5 or less
2.In Configuration select axis2 (if not there if install axis2)
For JBoss need to have a Maven Project and Jboss version less than 7