0

Issue with Theme 9.6.4 and my zk ee 9.6.4-jakarta

asked 2023-09-08 10:53:38 +0800

PonSambo1 gravatar image PonSambo1
1

updated 2023-09-11 21:51:50 +0800

hawk gravatar image hawk
3185 1 5
http://hawkphoenix.blogsp... ZK Team

I have issue when my zk ee version 9.6.4-jarkarta but theme version don't have version jarkarta so I use 9.6.4 then it got error when run application.

org.zkoss.zk.ui.UiException: Unknown listener: class org.zkoss.theme.iceblue_c.ThemeWebAppInit at org.zkoss.zk.ui.util.Configuration.addListener(Configuration.java:413) ~[zk-9.6.4-jakarta.jar:9.6.4-migrated-1.0.0] at org.zkoss.zk.ui.sys.ConfigParser.parseListener(ConfigParser.java:288) ~[zk-9.6.4-

delete flag offensive retag edit

Comments

because the theme jar doesn't rely on any java EE API, so there is no need to build a jakarta jar. Could the complete error stack trace you saw?

hawk ( 2023-09-11 11:50:02 +0800 )edit

org.zkoss.zk.ui.UiException: Unknown listener: class org.zkoss.theme.iceblue_c.ThemeWebAppInit at org.zkoss.zk.ui.util.Configuration.addListener(Configuration.java:413) ~[zk-9.6.4-jakarta.jar:9.6.4-migrated-1.0.0] at org.zkoss.zk.ui.sys.ConfigParser.parseListener(ConfigParser.java:288) ~[zk-9.6.4-

PonSambo1 ( 2023-09-11 12:33:27 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-09-12 12:06:56 +0800

hawk gravatar image hawk
3185 1 5
http://hawkphoenix.blogsp... ZK Team

I can run zk 9.6.4-jakarta with iceblue_c 9.6.4 successfully You can try the example project at https://github.com/zkoss/zkbooks/tree/jakarta/componentreference run it with mvn jetty:run

According to your error message, it looks like a class loading issue. There is a similar one: https://forum.zkoss.org/question/114378/unknown-listener-class-orgzkossthemeiceblue_cthemewebappinit-when-use-zkspringboot-2512/

Make sure you don't put zk jar in Tomcat endorsed folder. Checking the following possible issues:

  1. Classpath Issue: The iceblue_c.jar might not be in the classpath at runtime. Ensure that the JAR is correctly placed in the classpath, typically under the WEB-INF/lib directory of your web application.
  2. JAR Corruption: The iceblue_c.jar might be corrupted. Try to obtain a fresh copy of the JAR and replace it or try another theme jar
  3. Custom ClassLoaders: If your application server or web application uses custom class loaders, they might be interfering with the class loading process.
  4. Ensure that there are no multiple versions of the same JAR in the classpath.
link publish delete flag offensive edit
Your answer
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: 2023-09-08 10:53:38 +0800

Seen: 5 times

Last updated: Sep 12

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