Duplicate URL mapping : Websphere 8.5.5 and ZK 8.6.0

asked 2019-10-03 18:23:54 +0800

vickychan gravatar image vickychan

We are trying to upgrade existing webapp from ZK 6.5.4 to ZK 8.6.0 under WebSphere As WebSphere 8.5.5 support servlet 3.0, we upgraded web.xml version and the following ZK servlet config:

    The ZK loader for ZUML pages</description>
    The asynchronous update engine for ZK</description>

However, Eclipse cannot build the project with the following errors:

  1. Duplicate URL mapping *.zhtml
  2. Duplicate URL mapping *.zul
  3. Duplicate URL mapping /zkau/*

Please advise the settings need to upgrade ZK to support servlet 3.0. Thanks.

delete flag offensive retag edit

2 Replies

Sort by » oldest newest

answered 2019-10-04 15:25:41 +0800

cor3000 gravatar image cor3000
5399 2 7
ZK Team

Since you didn't post your whole web.xml or the complete maven dependencies you are using, I assume your server finds both configurations the one you provide in your web.xml and the one already included in zk, since 8.6.0 in the zkwebfragment dependency https://mavensync.zkoss.org/maven2/org/zkoss/zk/zkwebfragment/

In order to fix those "duplicate URL mapping ..." errors, you have pick only one configuration method.

Either leave the configuration out of your web.xml:


Or specify metadata-complete="true" to prevent the server from scanning for webfragments.

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"

Or 3rd:

exclude the maven dependency for webfragment (possible since 8.6.0)

link publish delete flag offensive edit

answered 2019-10-28 11:59:07 +0800

vickychan gravatar image vickychan

Thanks for your information. i have set 'metadata-complete="true"' and remvoe the maven dependency and it works now. 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

1 follower



Asked: 2019-10-03 18:23:54 +0800

Seen: 8 times

Last updated: Oct 28 '19

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