-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello, We are updating our weblogics servers to version 12.2.1.4 from 12.2.1.3. When we finish the update and test our zk application we see that the windows are not loading. We are getting an error of type ClassNotFoundExcepcion like the one shown below:
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException: com.cajamar.zk.WSAGDBE.LWSAGDBE_v1
We use version 2.3 of servlets in the web.xml associated with the application. We use version 9.0.0 of zk on the test server. In the production server we have version 8.0.4.
We would appreciate any help you can offer us. If you need more information tell us.
Thanks.
Hi, we have located this trace. We think it may be related:
The url-pattern /zkau/* in web application PSD2 is mapped to multiple Servlets.
thanks
Your exception (ClassNotFoundException) indicates that one of your own classes is missing on the classpath. So I'd look out for a compilation or war packaging problem.
After building a war, simply un-zip it to verify all your expected jars and classes are contained in WEB-INF/lib and WEB-INF/classes.
Besides that I personally prefer such an upgrade in a 2 step process. Upgrade the infrastructure (weblogic version) independent of the application dependencies.
e.g. Try deploying your old war file on the new weblogic version first, without any changes. Then you know whether a problem correlates with the server version update.
Once that's ruled out: Unzip both the old and the new war file and do a directory comparison. There you'll see if any files are missing or were added between your builds. This often reveals the changes potentially leading to problems.
Hi Our zk application works correctly on weblogic version 12.2.1.3. We update version 12.2.1.4 and see the errors described. We have put version 12.2.1.3 back and it works normally. The .jar files have not been modified. We believe that it may be derived from the error I put in the second comment: The url-pattern /zkau/* in web application PSD2 is mapped to multiple Servlets but
We don't know if there are any changes to be do in the application configuration
Thanks for your help.
Hi, we have no duplicate url-pattern in the web.xml. The web.xml works correctly with weblogic version 12.2.1.3. When we update to version 12.2.1.4 it is when it gives the error that I have commented. Next I indicate what I have in the web.xml regarding zk.
<listener> <listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class> </listener> <servlet> <description>ZK loader for ZUML pages</description> <servlet-name>zkLoader</servlet-name> <servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class> <init-param> <param-name>update-uri</param-name> <param-value>/zkau</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>zkLoader</servlet-name> <url-pattern>*.zul</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>zkLoader</servlet-name> <url-pattern>*.zhtml</url-pattern> </servlet-mapping> <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>
What you shared doesn't look wrong... so the problem must be hidden somewhere else.
I think this case is too specific to debug in a forum. Please contact our support. Once the problem is identified, and a solution is available (or not) it makes sense to share the information in public.
Do you resolve the issue?
I had similar problem, on weblogic 11g works fine, but on weblogic 12c fails. If you see the content on web.xml, the servlet section, is repeated, that is generated by zk studio, but works on weblogic 11g.
<servlet>
<description>The asynchronous update engine for ZK</description>
<servlet-name>auEngine</servlet-name> <----- here **
<servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>auEngine</servlet-name> <----- and here **
<url-pattern>/zkau/*</url-pattern>
</servlet-mapping>
Deletes the last section of servlet-mapping, in my case works
Hi alexamm the problem of the url-pattern duplicated we resolved add the attribute metadata-complete="true" to element root in the web.xml of application. The problem of the classnotfound we have not solved it yet.
zk has built in servlet 3.0 servlet configuration, since you mentioned that you are using version 2.3 metadata-complete should have NO effect, unless there's an application server ignoring the servlet spec version of your web.xml.
since ZK version 8.6.0 the automatic servlet configuration has been moved into a separate optional jar file zkwebfragment.jar, which can be omitted or excluded in your maven dependencies to avoid duplicate servlet(-mapping) configuration (Related Release Article)
Related Feature: ZK-4022
sounds like others have similar weblogic issues when upgrading weblogic:
Asked: 2020-09-23 13:43:31 +0800
Seen: 31 times
Last updated: Nov 19 '20