What steps will reproduce the problem?
1. Build as WAR using the instructions at:
http://books.zkoss.org/wiki/ZK%20Spring%20Essentials/Getting%20Started%20with%20
ZK%20Spring/Setting%20Up%20ZK%20Spring
http://books.zkoss.org/wiki/ZK%20Spring%20Essentials/Working%20with%20ZK%20Sprin
g
2. The web.xml is confiured NOT to use the URL-class loader:
<context-param>
<param-name>use-urlclassloader</param-name>
<param-value>false</param-value>
</context-param>
<listener>
<listener-class>
org.zkoss.spring.web.context.CoreContextListener
</listener-class>
</listener>
2.Deploy the WAR to a WebLogic 10.3.5 domain on Windows.
3. During application startup a NullPointerException is generated.
What is the expected output? What do you see instead?
The exception is thrown by CoreContextListener at:
urlSet.add(ClasspathHelper.getUrlForServletContextClasses(sce.getServletContext(
))) which returns null on WebLogic.
What version of the product are you using? On what operating system?
ZK-Spring 3.1
Windows XP
Please provide any additional information below.
Running the application on a embedded Jetty, the above method returns a defined
URL set and the application starts.
Implemented a fix for WebLogic by encapsulating the method call in a tryg-catch
clause which ate the null pointer exception. Next problem was then to get URL's
on WebLogic to scan, which was implemented by adding on of either methods:
urlSet.addAll(ClasspathHelper.getUrlsForWebInfLib(sce.getServletContext()));
urlSet.addAll(ClasspathHelper.getUrlsForPackagePrefix("com.alpha.pineapple.web.u
i"));
Original issue reported on code.google.com by einher...@gmail.com on 20 Jan 2012 at 8:21
Original issue reported on code.google.com by
einher...@gmail.com
on 20 Jan 2012 at 8:21