ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Linkage error while running jsp file provided in the demo war file

mudassirali
18 Jan 2011 05:40:50 GMT
18 Jan 2011 05:40:50 GMT

Hi All,

I am trying to run helloZSS.jsp provided in the demo war file on WebSphere6.0,but unable to run as Linkage error is being displayed in the browser .I think this might be due to some version mismatch please help I am unable to find out the root cause of the problem ,as I have followed all the steps given for running the demo war file,maybe I am running short of ideas.Please provide solution for this.

Error being displayed in the browser window::

Error 500: LinkageError while defining class: org.zkoss.zkjsp.ui.ZKSpreadsheetTag Could not be defined due to: org/zkoss/zkjsp/ui/ZKSpreadsheetTag (Unsupported major.minor version 50.0) 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.bootstrap.ExtClassLoader@7bee246a [1] sun.misc.Launcher$AppClassLoader@7be4646a [2] sun.misc.Launcher$ExtClassLoader@7be0646a ---Original exception--- java.lang.UnsupportedClassVersionError: org/zkoss/zkjsp/ui/ZKSpreadsheetTag (Unsupported major.minor version 50.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:576) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitCustomTagStart(ValidateVisitor.java(Compiled Code)) at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java(Compiled Code)) at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java(Inlined Compiled Code)) at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java(Compiled Code)) at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:110) at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:121) at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:168) at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:81) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp(JSPExtensionServletWrapper.java:298) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:265) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:137) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code)) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code)) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code)) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code)) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code)) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code)) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code)) --- end Original exception----


Here is the helloZSS.jsp :

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>My First ZK Spreadsheet JSP application</title>
</head>
<body>
<%@ taglib prefix="zss" uri="http://www.zkoss.org/jsp/zss"%>
<div width="100%" style="height: 100%;"><zss:spreadsheet
id="myzss" src="/WEB-INF/HelloZSS.xlsx" width="100%"
height="800px" maxrows="200" maxcolumns="40" /></div>
</body>
</html>

My web.xml :

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>myzssjsp</display-name>
<servlet>
<description>The asynchronous update engine for ZK</description>
<servlet-name>auEngine</servlet-name>
<servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>auEngine</servlet-name>
<url-pattern>/zkau/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>

mudassirali
18 Jan 2011 23:14:45 GMT
18 Jan 2011 23:14:45 GMT

Till now I am unable to get any solution for my problem.I am using jdk 1.4,Jsp and Servlet 2.4,WebSphere 6.0.

Whenever I am inserting below line to my helloZSS.jsp a read cross mark is appearing at the first line of my jsp file.

<%@ taglib prefix="zss" uri="http://www.zkoss.org/jsp/zss"%>


Please help me as I am new to this.

dmoralesnava
22 Feb 2011 11:30:40 GMT
22 Feb 2011 11:30:40 GMT

i've the same problem, can somebody help us please?