Grid-to-Excel problem on websphere 6.1 with java 1.5

Hi,

I have tried implementing this example on WSAD(Websphere application server) with java 1.5 version.
and i am not able to work this example because of the following exception. I think it has do something with jxl.jar file not compatible with Java 1.5 version. I tried using previous versions of jxl jars but was not successful.This works perfectly fine on tomcat though.can you please help me resolve this issue.

Thank you,
Karan.

[2/1/11 17:51:52:727 GMT] 00000024 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: ExcelGenerator. Exception thrown : java.lang.LinkageError: LinkageError while defining class: jxl.format.CellFormat
Could not be defined due to: (jxl/format/CellFormat) bad major version at offset=6
This is often caused by having a class defined at multiple
locations within the classloader hierarchy. Other potential causes
include compiling against an older or newer version of the class
that has an incompatible method signature.
Dumping the current context classloader hierarchy:
==> indicates defining classloader
==>[0]
com.ibm.ws.classloader.CompoundClassLoader@1df61df6
Local ClassPath: C:\Users\Karan\IBM\rationalsdp7.0\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp1\db4Deploy.ear\XML2Excel.war\WEB-INF\classes;C:\Users\Karan\IBM\rationalsdp7.0\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp1\db4Deploy.ear\XML2Excel.war\WEB-INF\lib\jxl.jar;C:\Users\Karan\IBM\rationalsdp7.0\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp1\db4Deploy.ear\XML2Excel.war
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@1321881290 Local Classpath: Delegation mode: PARENT_FIRST
[2] com.ibm.ws.classloader.ProtectionClassLoader@30f430f4
[3] com.ibm.ws.bootstrap.ExtClassLoader@60766076
[4] org.eclipse.osgi.framework.adaptor.core.CDSBundleClassLoader@14201420
[5] sun.misc.Launcher$AppClassLoader@2dbe2dbe
[6] sun.misc.Launcher$ExtClassLoader@42de42de
—Original exception—
java.lang.UnsupportedClassVersionError: (jxl/format/CellFormat) bad major version at offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:222)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:148)
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:526)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:477)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:373)
at java.lang.ClassLoader.loadClass(ClassLoader.java:561)
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
at ExcelGenerator.doPost(ExcelGenerator.java:15)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

— end Original exception----

You can grab jxl sources
sourceforge.net/projects/jexcela … jexcelapi/

And rebuild with your version of JDK
andykhan.com/jexcelapi/tutorial.html#faq