0

ZK and Websphere 5.1

asked 2006-03-09 20:17:34 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3621329

By: dcyaste

I am trying to load zk on websphere and get the following error.
3/9/06 14:01:34:247 CST] 4c92f59a WebGroup E SRVE0020E: [Servlet
Error]-[zkLoader]: Failed to load servlet: java.lang.LinkageError: LinkageError while defining class: com.potix.zk.ui.http.DHtmlLayoutServlet
Could not be defined due to: com/potix/zk/ui/http/DHtmlLayoutServlet (Unsupported major.minor version 48.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.classloader.CompoundClassLoader@36c3b59c
Local ClassPath:
C:\dev\workspace\zk\WebContent\WEB-INF\classes;C:\dev\workspace\zk\WebContent\WE
B-INF\lib\commons-beanutils.jar;C:\dev\workspace\z
k\WebContent\WEB-INF\lib\commons-collections.jar;C:\dev\workspace\zk\WebContent\
WEB-INF\lib\commons-digester.jar;C:\dev\workspace\zk\WebContent\WEB-IN
F\lib\commons-fileupload.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\commons-
lang.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\commons-logging.ja
r;C:\dev\workspace\zk\WebContent\WEB-INF\lib\commons-validator.jar;C:\dev\worksp
ace\zk\WebContent\WEB-INF\lib\dbbeans.jar;C:\dev\workspace\zk\WebConte
nt\WEB-INF\lib\dom.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\i18n.jar;C:\de
v\workspace\zk\WebContent\WEB-INF\lib\jaxen-full.jar;C:\dev\workspace\
zk\WebContent\WEB-INF\lib\jaxp-api.jar;C:\dev\workspace\zk\WebContent\WEB-INF\li
b\jdbc2_0-stdext.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\jspsql
.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\jstl.jar;C:\dev\workspace\zk\Web
Content\WEB-INF\lib\pxcommon.jar;C:\dev\workspace\zk\WebContent\WEB-IN
F\lib\pxweb.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\sax.jar;C:\dev\worksp
ace\zk\WebContent\WEB-INF\lib\saxpath.jar;C:\dev\workspace\zk\WebConte
nt\WEB-INF\lib\standard.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\struts.ja
r;C:\dev\workspace\zk\WebContent\WEB-INF\lib\taglibs-application.jar;C
:\dev\workspace\zk\WebContent\WEB-INF\lib\taglibs-datetime.jar;C:\dev\workspace\
zk\WebContent\WEB-INF\lib\taglibs-mailer.jar;C:\dev\workspace\zk\WebCo
ntent\WEB-INF\lib\taglibs-page.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\ta
glibs-request.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\taglibs-r
esponse.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\taglibs-session.jar;C:\de
v\workspace\zk\WebContent\WEB-INF\lib\taglibs-string.jar;C:\dev\worksp
ace\zk\WebContent\WEB-INF\lib\utility.jar;C:\dev\workspace\zk\WebContent\WEB-INF
\lib\xalan.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\xercesImpl.j
ar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\zhtml.jar;C:\dev\workspace\zk\WebC
ontent\WEB-INF\lib\zk.jar;C:\dev\workspace\zk\WebContent\WEB-INF\lib\z
ul.jar;C:\dev\workspace\zk\WebContent;
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@920122780 Local Classpath: Delegation
mode: PARENT_FIRST
[2] com.ibm.ws.classloader.ExtJarClassLoader@1237153168 Local ClassPath:
C:\dev\tools\wsad51\runtimes\base_v5\lib\app; Delegation Mode: PARENT_LAS T
[3] com.ibm.ws.classloader.ProtectionClassLoader@1d44f59d
[4] com.ibm.ws.bootstrap.ExtClassLoader@4c9cb59a
[5] sun.misc.Launcher$AppClassLoader@4c97b59a
[6] sun.misc.Launcher$ExtClassLoader@4f6a759a
---Original exception---
java.lang.UnsupportedClassVersionError: com/potix/zk/ui/http/DHtmlLayoutServlet
(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:407)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.jav
a(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.jav
a(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.beans.Beans.instantiate(Beans.java:216)
at java.beans.Beans.instantiate(Beans.java:77)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServle
tManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(Web
AppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1270)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:277)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:396)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:216)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:984
)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:
136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:35
6)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.jav
a:415)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart
(DeployedApplicationImpl.java:787)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.jav
a:351)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicati
onImpl.java:575)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Application
MgrImpl.java:268)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.jav
a:246)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerIm
pl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV
5.java:97)

--- end Original exception----

at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.
java:452)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.jav
a(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.jav
a(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.beans.Beans.instantiate(Beans.java:216)
at java.beans.Beans.instantiate(Beans.java:77)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServle
tManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(Web
AppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1270)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:277)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:396)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:216)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:984
)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:
136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:35
6)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.jav
a:415)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart
(DeployedApplicationImpl.java:787)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.jav
a:351)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicati
onImpl.java:575)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Application
MgrImpl.java:268)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.jav
a:246)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerIm
pl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV
5.java:97)

[3/9/06 14:01:34:263 CST] 4c92f59a TraceNLS u No message text associated
with key Servlet.[zkLoader]:.could.not.be.loaded in bundle com.ibm.ejs.r esources.seriousMessages
[3/9/06 14:01:34:247 CST] 4c92f59a WebAppServlet E Servlet [zkLoader]: could not be loaded
[3/9/06 14:01:34:372 CST] 4c92f59a WebGroup I SRVE0180I: [zk] [/zk]
[Servlet.LOG]: action: init
[3/9/06 14:01:34:419 CST] 4c92f59a PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.util.Local
Strings', returnNull=true
[3/9/06 14:01:34:419 CST] 4c92f59a PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.action.Act
ionResources', returnNull=true
[3/9/06 14:01:34:638 CST] 4c92f59a PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='com.mmm.zk.resources.Applica
tionResources', returnNull=true
[3/9/06 14:01:34:700 CST] 4c92f59a WebGroup E SRVE0054E: An error occurred
while loading Web application
[3/9/06 14:01:34:747 CST] 4c92f59a DeployedAppli W WSVR0206E: Module, zk.war, of application, zkEAR.ear/deployments/zkEAR, failed to start
[3/9/06 14:01:34:763 CST] 4c92f59a ApplicationMg W WSVR0101W: An error occurred starting, zkEAR
[3/9/06 14:01:34:763 CST] 4c92f59a ApplicationMg A WSVR0217I: Stopping application:
zkEAR
[3/9/06 14:01:34:935 CST] 4c92f59a ApplicationMg A WSVR0220I: Application stopped:
zkEAR

Anyone run zk on websphere 5?

Thanks.

delete flag offensive retag edit

13 Replies

Sort by ยป oldest newest

answered 2006-03-10 01:25:00 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3621673

By: tomyeh

Where did you put zk.jar? According to the messages, it looks like zk.jar are found in multiple locations.

link publish delete flag offensive edit

answered 2006-03-10 02:06:39 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3621698

By: henrichen

Hi! dcyaste,

I searched the Local ClassPath dumpped. I found at least two other jars should be there:

bsh.jar - The BeanShell script interpreter.

commons-el.jar - The EL script interpreter (Tomcat implementation. Maybe Websphere got its own implementation?).

I am not sure whether they are related to this symptom. However, the DHtmlLayoutServlet would refer to classes inside these two jars. These extra jars are located at following directory.

dist/lib/ext/*.jar.

If you are using Fckeditor or Dojo components (as in the zkdemo) you have to download related jars and copy to your WEB-INF/lib too.

/henri



link publish delete flag offensive edit

answered 2006-03-10 16:56:31 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3622851

By: dcyaste

Just to be sure, is there supposed to be a jar file named "commons-el.jar" in the dist/lib/ext/ directory. The one I found was bsh.jar and commons-fileupload.jar not commons-el.jar?

Thanks

link publish delete flag offensive edit

answered 2006-03-10 17:21:24 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3622950

By: tomyeh

EL is supported natively by Web server, so there is no need to distribute and install the file.

Tomcat uses commons-el.jar, but WebShpere might use another. I am not sure.

If WebShpere doesn't use commons-el, please let us know since you have to specify a proper class name in web.xml. Refer to Developer's Guide for details.

link publish delete flag offensive edit

answered 2006-03-10 17:32:59 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3622970

By: dcyaste

Websphere does not use commons-el.jar. What changes are needed for the web.xml?

Thanks.

link publish delete flag offensive edit

answered 2006-03-10 17:50:32 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3623004

By: tomyeh

You have to find out the class that implements javax.servlet.jsp.el.ExpressionEvaluator.

Then, specify it with init-param called el-evaluator-class. Refer to Appendix A for details.

Once you got ZK to work with WebSphere, please share it at http://en.wikibooks.org/wiki/ZK/How-Tos
Thanks.

link publish delete flag offensive edit

answered 2006-03-10 20:31:00 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3623263

By: dcyaste

What is the servlet and jvm level that ZK needs?

link publish delete flag offensive edit

answered 2006-03-11 02:38:01 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3623532

By: tomyeh

level? Please be more specific.

link publish delete flag offensive edit

answered 2006-03-11 15:26:04 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3623951

By: henrichen

Do you mean the version number?

/henri

link publish delete flag offensive edit

answered 2006-03-14 19:35:22 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3629602

By: dcyaste

Sorry, I meant version. I am still not able to get ZK working with Websphere 5.x.

Thanks.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-03-09 20:17:34 +0800

Seen: 1,100 times

Last updated: Apr 06 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More