Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsf run in weblogic 8.1 ?

 
pino astarita
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic