File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes jsf run in weblogic 8.1 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf run in weblogic 8.1 ?" Watch "jsf run in weblogic 8.1 ?" New topic
Author

jsf run in weblogic 8.1 ?

pino astarita
Greenhorn

Joined: Nov 14, 2006
Posts: 15
Hi, jsf run in weblogic 8.1 ? I'm some problem to understand this because i've build an application but the log give me two exception:

1. a servlet exception (generic)
2.<14-nov-2006 8.59.14 CET> <Warning> <HTTP> <BEA-101162> <User defined listener o
rg.apache.myfaces.webapp.StartupServletContextListener failed: java.lang.NoClass
DefFoundError: javax/servlet/jsp/el/ELException.>

Thanks for help..
Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
Hi Pino,

If you use MyFaces with Weblogic 8.1 you must include servlet-api.jar and jsp-api.jar (e.g. from tomcat 5 library) into the weblogic classpath.
Furthermore, put the following snippet into your web deployment descriptor:



This patch works with WL8.1sp2 and Myfaces 1.1.1. I don't know if things have changed in newer releases.

Lars
pino astarita
Greenhorn

Joined: Nov 14, 2006
Posts: 15
Ok, but j've do it but don't run!! There are many exception raised in the console:

AVVERTENZA: ServletContextListener not yet called
<15-nov-2006 9.28.43 CET> <Error> <HTTP> <BEA-101216> <Servlet: "Faces Servlet"
failed to preload on startup in Web application: "webapp1".
javax.servlet.ServletException: javax/servlet/jsp/el/ELException
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:884)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:787)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3252)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3197)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3174)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java
:688)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java
:483)
at weblogic.servlet.internal.ServletInitService.resume(ServletInitServic
e.java:30)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)
>
<15-nov-2006 9.28.43 CET> <Error> <HTTP> <BEA-101165> <Could not load user defin
ed filter: oracle.adf.model.servlet.ADFBindingFilter.
java.lang.ClassNotFoundException: oracle.adf.model.servlet.ADFBindingFilter
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:198)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
areClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:223)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:41)
at weblogic.servlet.internal.WebAppServletContext.loadClass(WebAppServle
tContext.java:5574)
at weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppS
ervletContext.java:2901)
at weblogic.servlet.internal.WebAppServletContext.initFilters(WebAppServ...

why? THANKS FOR REPLY ..
Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
I cannot tell you for sure what went wrong here. From the stack track I take that weblogic cannot find an ADF-library. I recommend checking your classpath.

Lars
pino astarita
Greenhorn

Joined: Nov 14, 2006
Posts: 15
OK , i've put all library needed in the CLASSPATH but finally i receive thi exception:

<15-nov-2006 17.03.47 CET> <Error> <HTTP> <BEA-101216> <Servlet: "Faces Servlet"
failed to preload on startup in Web application: "JSF_EX1-EX1-context-root".
javax.servlet.ServletException
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:884)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:787)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3252)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3197)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3174)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java
:688)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java
:483)
at weblogic.servlet.internal.ServletInitService.resume(ServletInitServic
e.java:30)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)
>
<15-nov-2006 17.03.47 CET> <Warning> <HTTP> <BEA-101162> <User defined listener
org.apache.myfaces.webapp.StartupServletContextListener failed: java.lang.NoClas
sDefFoundError: javax/servlet/jsp/el/ELException.>
<15-nov-2006 17.03.48 CET> <Notice> <WebLogicServer> <BEA-000329> <Started WebLo
gic Admin Server "myserver" for domain "firstDomain" running in Production Mode>



i've seen on internet that the problem can happen because all ServletContextListener are loaded after the servlet 'javax.faces.webapp.FacesServlet' and i've applied a solution that don't running!
Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
Hi.

The missing class ELException belongs to the JSP API. From which tomcat version did you take servlet-api.jar and jsp-api.jar? Try 5.0.x.

Regards,
Lars
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsf run in weblogic 8.1 ?
 
Similar Threads
Problem with web.xml (WebLogic Server 8.1 SP2) ?
problems with weblogic 8.1
STRUTS + WEBLOGIC 8.1
code too large for try statement
Problem: application.ViewHandlerImpl: Found no URL patterns mapping to FacesServlet