Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Apache Axis - Websphere 5.0 problem -Unsupported major.minor version 48.0

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am having some problem when I try to deploy an webservice in apache axis in websphere 5.0.

Its throwing Unsupported major.minor version 48.0 exception.

Preliminary Steps:
I created a project in WSAD5.0 and added the axis related jar files in
web-inf\lib folder.
I modified the web.xml to point to Axis-Servlet..

I modified the Websphere server setting....as per the suggestion from IBM site
If you're using WebSphere Application Studio V5.0, you may run into a "gotcha" on JAR conflicts between what's installed on WebSphere Application Developer V5 and what you are trying to use with Apache Axis. If you run into these problems, try this quick fix: in your Server Configuration for your test server, set the System Property (-D property) for "com.ibm.ws.classloader.warDelegationMode" to false in the Environment Options pane. You'll find this under Server perspective > the server you are using for our example > Environment Options > System Properties > Add....



Here is what I did:
1) I wrote a simple java class which returns a string.

package com;
public class SriGreetServ {
public String getGreeting(String message){
System.out.println("Message is "+message);
return message;
}
}

2) I generated WSDL from this java class using Axis Java2WSDL

3) I used Apache Axis WSDL2Java to generate the required classes. it generated Binding,Impl,Service and ServiceLocator.


4) I modified the Impl and returned the string from there.

package com.ws;

import com.SriGreetServ;

public class GreetSoapBindingImpl implements com.ws.SriGreetServ{
public java.lang.String getGreeting(java.lang.String message) throws java.rmi.RemoteException {
SriGreetServ greet = new SriGreetServ();
return greet.getGreeting(message);
}

}

The lines in Bold are modified by me.

5. I used deploy.wsdd to deploy the service into Websphere.

java org.apache.axis.client.AdminClient -lhttp://localhost:9088/SriGreetWSAxis/services/AdminService deploy.wsdd

On the console I can see that the application is deployed successfully.

When I try to look at the deployed services...

http://localhost:9088/SriGreetWSAxis/services/
there are none...

and there is an exception (which is shown below) saying that there is major minor verion.....I am using standard jdk to develop and deploy I can't understand what is major minor version here....

Can anyone please help me in resolving this issue.....

Thanks in advance.
Sri.




[10/7/04 13:06:26:088 PDT] 5f1c78a4 HttpTransport A SRVE0171I: Transport http is listening on port 9,088.
[10/7/04 13:06:28:081 PDT] 5f1c78a4 HttpTransport A SRVE0171I: Transport https is listening on port 9,443.
[10/7/04 13:06:28:131 PDT] 5f1c78a4 RMIConnectorC A ADMC0026I: RMI Connector available at port 2809
[10/7/04 13:06:28:161 PDT] 5f1c78a4 WsServer A WSVR0001I: Server server1 open for e-business
[10/7/04 13:07:05:535 PDT] 26f2b8af WebGroup I SRVE0180I: [Apache-Axis] [/SriGreetWSAxis] [Servlet.LOG]: AxisServlet: init
[10/7/04 13:07:06:667 PDT] 26f2b8af WebGroup E SRVE0026E: [Servlet Error]-[com/ws/GreetSoapBindingImpl (Unsupported major.minor version 48.0)]: java.lang.UnsupportedClassVersionError: com/ws/GreetSoapBindingImpl (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:381)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:348)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:252)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.ReloadableClassLoader.loadClass(ReloadableClassLoader.java:76)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:220)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:154)
at org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.java:123)
at org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvider.java:582)
at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:615)
at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:342)
at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:507)
at org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDDeployment.java:559)
at org.apache.axis.configuration.FileProvider.getDeployedServices(FileProvider.java:321)
at org.apache.axis.transport.http.AxisServlet.reportAvailableServices(AxisServlet.java:681)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:262)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
 
Sri Prof
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any thing wrong in my question??? Am I doing something wrong???

Please let me know....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic