When I attempt the following steps:
– installed MyEclipse 7.1 (full version)
– installed Weblogic 10.3
– created a Web project Foo (with Maven support)
– added JSF capability
– deploy Foo to the WebLogic application server
I’m seeing this error:
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
I noticed in the pom.xml that javax.faces has the following tag:
<scope>provided</scope>
If I *remove* this line, I can successfully deploy in a packaged mode, but not in an exploded mode (which is necessary for development). With this line, it doesn’t work in either mode.
Perhaps the assumption is that it will use the Weblogic shared libraries for these packages? However, that doesn’t seem to be happening. Are there special circumstances that I’m not seeing where these shared libraries are seen or not seen?
Thanks,
John