Re: wo use MyFaces on Weblogic 8.1
Hi anthony Many many thanks, i solved the pb by included all my-faces jar in the war file and add this dummy class. if you include the original'one wich is in the jsf-ri , you've got a blank page ! All works fine ! Thank Bruno -- View this message in context: http://www.nabble.com/wo-use-MyFaces-on-Weblogic-8.1-t1652531.html#a4678606 Sent from the MyFaces - Users forum at Nabble.com.
RE: wo use MyFaces on Weblogic 8.1
I tried a few days last week to get MyFaces 1.2/1.3 and Tomahawk 1.2 to work with Weblogic 8.1 sp 5 running on Windows with no success. I read somewhere there may be a bug with MyFaces and Weblogic on Windows. After a few wasted days I went back to JSF1.1 and Tomahawk 1.1.1. --Brad -Original Message- From: Burno [mailto:[EMAIL PROTECTED] Sent: Fri 5/19/2006 3:21 PM To: users@myfaces.apache.org Subject: wo use MyFaces on Weblogic 8.1 Hi all i am looking for users of Myfaces under WebLogic 8.1 sp 5. The last release does'nt work and getting me crazy. Wich relase of Myfaces and Tomahawk do you use ? Thank's Bruno -- View this message in context: http://www.nabble.com/wo+use+MyFaces+on+Weblogic+8.1-t1652531.html#a4477266 Sent from the MyFaces - Users forum at Nabble.com.
wo use MyFaces on Weblogic 8.1
Hi all i am looking for users of Myfaces under WebLogic 8.1 sp 5. The last release does'nt work and getting me crazy. Wich relase of Myfaces and Tomahawk do you use ? Thank's Bruno -- View this message in context: http://www.nabble.com/wo+use+MyFaces+on+Weblogic+8.1-t1652531.html#a4477266 Sent from the MyFaces - Users forum at Nabble.com.
myfaces in weblogic
Hi all,I'm trying to get a basic myfaces application to run on weblogic 8.1 but without any luck yet. I googled arround a bit and found some contradicting bits on form but no 'THIS is how to to it, THIS is why'. The problem I'm running into seems to be related to context initialisation:java.lang.ExceptionInInitializerError. at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java :822) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3236) at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3181) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3154) at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:654) at weblogic.servlet.internal.WebService.preloadResources (WebService.java:483) at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.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)A forum on the sun site recommends the use of a specific listener, which is not included in the myfaces distribution... another post on yet another forum recommended the use of a different servlet ( net.sourceforge.myfaces.webapp.MyFacesServlet) which is no part at of the myfaces distribution either?any help appriciated!-P
Re: myfaces in weblogic
Which service pack? Udo Peter Maas wrote: Hi all, I'm trying to get a basic myfaces application to run on weblogic 8.1 but without any luck yet. I googled arround a bit and found some contradicting bits on form but no 'THIS is how to to it, THIS is why'. The problem I'm running into seems to be related to context initialisation: java.lang.ExceptionInInitializerError. at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java :822) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3236) at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3181) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3154) at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:654) at weblogic.servlet.internal.WebService.preloadResources (WebService.java:483) at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.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) A forum on the sun site recommends the use of a specific listener, which is not included in the myfaces distribution... another post on yet another forum recommended the use of a different servlet ( net.sourceforge.myfaces.webapp.MyFacesServlet) which is no part at of the myfaces distribution either? any help appriciated! -P
Re: myfaces in weblogic
wl version 8.11, so SP1... and I don't have the option to install additional service packs... hopefully this is not mandatory?-POn 12/6/05, Udo Schnurpfeil [EMAIL PROTECTED] wrote: Which service pack?UdoPeter Maas wrote: Hi all, I'm trying to get a basic myfaces application to run on weblogic 8.1 but without any luck yet. I googled arround a bit and found some contradicting bits on form but no 'THIS is how to to it, THIS is why'. The problem I'm running into seems to be related to context initialisation: java.lang.ExceptionInInitializerError . at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java :822) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java :3236) at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3181) at weblogic.servlet.internal.WebAppServletContext.preloadResources (WebAppServletContext.java:3154) at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:654) at weblogic.servlet.internal.WebService.preloadResources (WebService.java :483) at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.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) A forum on the sun site recommends the use of a specific listener, which is not included in the myfaces distribution... another post on yet another forum recommended the use of a different servlet ( net.sourceforge.myfaces.webapp.MyFacesServlet) which is no part at of the myfaces distribution either? any help appriciated! -P
Re: myfaces in weblogic
Hi Peter, I had your same problem and finally solved it including the file jsp-api.jar in the lib directory of my project. Hope it helps, Rosalba --- Peter Maas [EMAIL PROTECTED] wrote: wl version 8.11, so SP1... and I don't have the option to install additional service packs... hopefully this is not mandatory? -P On 12/6/05, Udo Schnurpfeil [EMAIL PROTECTED] wrote: Which service pack? Udo Peter Maas wrote: Hi all, I'm trying to get a basic myfaces application to run on weblogic 8.1 but without any luck yet. I googled arround a bit and found some contradicting bits on form but no 'THIS is how to to it, THIS is why'. The problem I'm running into seems to be related to context initialisation: java.lang.ExceptionInInitializerError. at weblogic.servlet.internal.ServletStubImpl.prepareServlet( ServletStubImpl.java :822) at weblogic.servlet.internal.WebAppServletContext.preloadServlet( WebAppServletContext.java:3236) at weblogic.servlet.internal.WebAppServletContext.preloadServlets( WebAppServletContext.java:3181) at weblogic.servlet.internal.WebAppServletContext.preloadResources( WebAppServletContext.java:3154) at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java :654) at weblogic.servlet.internal.WebService.preloadResources (WebService.java:483) at weblogic.servlet.internal.ServletInitService.resume( ServletInitService.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) A forum on the sun site recommends the use of a specific listener, which is not included in the myfaces distribution... another post on yet another forum recommended the use of a different servlet ( net.sourceforge.myfaces.webapp.MyFacesServlet) which is no part at of the myfaces distribution either? any help appriciated! -P __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com
Re: myfaces in weblogic
Ah! O.k.I think I already tried this, but I'll give it a go. Supposively this jsp-api.jar needs to be jsp2.0 and is needed for the web.xml dtd?-POn 12/6/05, rosalba bochicchio [EMAIL PROTECTED] wrote: Hi Peter,I had your same problem and finally solved itincluding the file jsp-api.jar in the libdirectory of my project.Hope it helps,Rosalba--- Peter Maas [EMAIL PROTECTED] wrote: wl version 8.11, so SP1... and I don't have the option to install additional service packs... hopefully this is not mandatory? -P On 12/6/05, Udo Schnurpfeil [EMAIL PROTECTED] wrote: Which service pack? Udo Peter Maas wrote: Hi all, I'm trying to get a basic myfaces application to run on weblogic 8.1 but without any luck yet. I googled arround a bit and found some contradicting bits on form but no 'THIS is how to to it, THIS is why'. The problem I'm running into seems to be related to context initialisation: java.lang.ExceptionInInitializerError. at weblogic.servlet.internal.ServletStubImpl.prepareServlet ( ServletStubImpl.java :822) at weblogic.servlet.internal.WebAppServletContext.preloadServlet( WebAppServletContext.java:3236) at weblogic.servlet.internal.WebAppServletContext.preloadServlets( WebAppServletContext.java:3181) at weblogic.servlet.internal.WebAppServletContext.preloadResources( WebAppServletContext.java:3154) at weblogic.servlet.internal.HttpServer.preloadResources (HttpServer.java :654) atweblogic.servlet.internal.WebService.preloadResources (WebService.java:483) at weblogic.servlet.internal.ServletInitService.resume( ServletInitService.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) A forum on the sun site recommends the use of a specific listener, which is not included in the myfaces distribution... another post on yet another forum recommended the use of a different servlet ( net.sourceforge.myfaces.webapp.MyFacesServlet) which is no part at of the myfaces distribution either? any help appriciated! -P __Yahoo! DSL – Something to write home about. Just $16.99/mo. or less.dsl.yahoo.com
RE: myfaces in weblogic
Hi Peter I think I read somewhere, that SP4 for WLS fixes the problem, that WLS initializes the Servlets before the listeners have finished. That's why the MyFacesServlet explicetely can initialize MyFaces in its init()-method. This Servlet is still in the MyFaces jar-files. It only changed its package-name. - org.apache.myfaces.webapp.MyFacesServlet For the listener it could be something similar to the servlet: repackaging... hth Alexander --- Peter Maas [EMAIL PROTECTED] wrote: wl version 8.11, so SP1... and I don't have the option to install additional service packs... hopefully this is not mandatory? -P On 12/6/05, Udo Schnurpfeil [EMAIL PROTECTED] wrote: Which service pack? Udo Peter Maas wrote: Hi all, I'm trying to get a basic myfaces application to run on weblogic 8.1 but without any luck yet. I googled arround a bit and found some contradicting bits on form but no 'THIS is how to to it, THIS is why'. The problem I'm running into seems to be related to context initialisation: java.lang.ExceptionInInitializerError. at weblogic.servlet.internal.ServletStubImpl.prepareServlet( ServletStubImpl.java :822) at weblogic.servlet.internal.WebAppServletContext.preloadServlet( WebAppServletContext.java:3236) at weblogic.servlet.internal.WebAppServletContext.preloadServlets( WebAppServletContext.java:3181) at weblogic.servlet.internal.WebAppServletContext.preloadResources( WebAppServletContext.java:3154) at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java :654) at weblogic.servlet.internal.WebService.preloadResources (WebService.java:483) at weblogic.servlet.internal.ServletInitService.resume( ServletInitService.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) A forum on the sun site recommends the use of a specific listener, which is not included in the myfaces distribution... another post on yet another forum recommended the use of a different servlet ( net.sourceforge.myfaces.webapp.MyFacesServlet) which is no part at of the myfaces distribution either? any help appriciated! -P __ Yahoo! DSL - Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com
Re: myfaces in weblogic
yes,I think so. Let mi know if it works! --- Peter Maas [EMAIL PROTECTED] wrote: Ah! O.k. I think I already tried this, but I'll give it a go. Supposively this jsp-api.jar needs to be jsp2.0 and is needed for the web.xml dtd? -P On 12/6/05, rosalba bochicchio [EMAIL PROTECTED] wrote: Hi Peter, I had your same problem and finally solved it including the file jsp-api.jar in the lib directory of my project. Hope it helps, Rosalba --- Peter Maas [EMAIL PROTECTED] wrote: wl version 8.11, so SP1... and I don't have the option to install additional service packs... hopefully this is not mandatory? -P On 12/6/05, Udo Schnurpfeil [EMAIL PROTECTED] wrote: Which service pack? Udo Peter Maas wrote: Hi all, I'm trying to get a basic myfaces application to run on weblogic 8.1 but without any luck yet. I googled arround a bit and found some contradicting bits on form but no 'THIS is how to to it, THIS is why'. The problem I'm running into seems to be related to context initialisation: java.lang.ExceptionInInitializerError. at weblogic.servlet.internal.ServletStubImpl.prepareServlet( ServletStubImpl.java :822) at weblogic.servlet.internal.WebAppServletContext.preloadServlet( WebAppServletContext.java:3236) at weblogic.servlet.internal.WebAppServletContext.preloadServlets( WebAppServletContext.java:3181) at weblogic.servlet.internal.WebAppServletContext.preloadResources( WebAppServletContext.java:3154) at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java :654) at weblogic.servlet.internal.WebService.preloadResources (WebService.java:483) at weblogic.servlet.internal.ServletInitService.resume( ServletInitService.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) A forum on the sun site recommends the use of a specific listener, which is not included in the myfaces distribution... another post on yet another forum recommended the use of a different servlet ( net.sourceforge.myfaces.webapp.MyFacesServlet) which is no part at of the myfaces distribution either? any help appriciated! -P __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com
Re: myfaces in weblogic
Hmmm,after installing SP4 the myfaces blank application works... adding the jsp2.0 jar didn't seem to help to much!-POn 12/6/05, rosalba bochicchio [EMAIL PROTECTED] wrote:yes,I think so. Let mi know if it works! --- Peter Maas [EMAIL PROTECTED] wrote: Ah! O.k. I think I already tried this, but I'll give it a go. Supposively this jsp-api.jar needs to be jsp2.0 and is needed for the web.xml dtd? -P On 12/6/05, rosalba bochicchio [EMAIL PROTECTED] wrote: Hi Peter, I had your same problem and finally solved it including the file jsp-api.jar in the lib directory of my project. Hope it helps, Rosalba --- Peter Maas [EMAIL PROTECTED] wrote:wl version 8.11, so SP1... and I don't have the option to install additional service packs... hopefully this is not mandatory? -P On 12/6/05, Udo Schnurpfeil [EMAIL PROTECTED] wrote: Which service pack? Udo Peter Maas wrote: Hi all, I'm trying to get a basic myfaces application to run on weblogic 8.1 but without any luck yet. I googled arround a bit and found some contradicting bits on form but no 'THIS is how to to it, THIS is why'. The problem I'm running into seems to be related to context initialisation: java.lang.ExceptionInInitializerError. at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java :822) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3236) at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3181) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3154) at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:654) at weblogic.servlet.internal.WebService.preloadResources (WebService.java:483) at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.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) A forum on the sun site recommends the use of a specific listener, which is not included in the myfaces distribution... another post on yet another forum recommended the use of a different servlet ( net.sourceforge.myfaces.webapp.MyFacesServlet) which is no part at of the myfaces distribution either? any help appriciated! -P __ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com __Yahoo! DSL – Something to write home about.Just $16.99/mo. or less. dsl.yahoo.com
Re: Re: [HELP]Beginner having a PB using myFaces with WebLogic 8.1 [To Rosalba]
I'll try to rebuild the examples under JBuilder (the IDE i use)...thanks a lot for your suggestion. --- ced_the.bear [EMAIL PROTECTED] wrote: In fact I hadn't try the examples, I try to pass directly my application from JSF to my-Faces. But your mail was a good answer, because it present me a new approach : Trying the my-Faces examples. Actually the myfaces-simple-example is deployed and turned on my server. But I didn't deploy the war, I rebuilded it under eclipse. I didn't encounter your error : Sorry (I had some others) Actually the myfaces-example didn't not run properly cause of a problem with a custom tag renderer. I didn't try the others example. De: rosalba bochicchio [EMAIL PROTECTED] A: MyFaces Discussion myfaces-user@incubator.apache.org Objet: Re: [HELP]Beginner having a PB using myFaces with WebLogic 8.1 Date: Tue, 12 Apr 2005 00:22:08 -0700 (PDT) preHi, I have some problems with WebLogic 8.1 too, but I think the problem I get is just a step behind your one... I get the following error while trying to run my-faces examples 1.0.9 on Weblogic 8.1 Hi all, I'm getting the following error while running myfaces examples 1.0.9 in weblogic 8.1 sp3 Error 500--Internal Server Error javax.faces.FacesException: javax/servlet/jsp/el/FunctionMapper at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(Ljava.lang.String;)V(ServletExternalContextImpl.java:411) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(Ljavax.faces.context.FacesContext;Ljavax.faces.component.UIViewRoot;)V(JspViewHandlerImpl.java:280) at org.apache.myfaces.lifecycle.LifecycleImpl.render(Ljavax.faces.context.FacesContext;)V(LifecycleImpl.java:300) at javax.faces.webapp.FacesServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FacesServlet.java:110) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(ExtensionsFilter.java:112) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6458) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661) at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630) at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source) Caused by: javax.servlet.ServletException: javax/servlet/jsp/el/FunctionMapper at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:469) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:463) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.forward(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:318) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(Ljava.lang.String;)V(ServletExternalContextImpl.java:405) ... 17 more Did
Complexity of using MyFaces with Weblogic 8.1
We are evaluating what container to use for new development and are looking at JBoss 4.0.1 and Weblogic 8.1. Management is trying to push on why we need to go with Jboss. What, if any hoops does it take to get MyFaces configured running under Weblogic? Anyone with experience in this, could you lend me a hand?
RE: Complexity of using MyFaces with Weblogic 8.1
Only one problem I encountered: myfaces validates the web.xml against the dtd. If your server doesn't have direct connection to the internet, it will not be able to download the dtd from Sun, so you are forced to use a local dtd reference. What I found is that I can only make it work with an absolute path reference; it would have been better if myfaces either can read the dtd relative to the location of the web.xml, or not validate the web.xml at all. With Tomcat, I didn't have this problem. -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 3:39 PM To: MyFaces Discussion Subject: Complexity of using MyFaces with Weblogic 8.1 We are evaluating what container to use for new development and are looking at JBoss 4.0.1 and Weblogic 8.1. Management is trying to push on why we need to go with Jboss. What, if any hoops does it take to get MyFaces configured running under Weblogic? Anyone with experience in this, could you lend me a hand? *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ***
RE: Complexity of using MyFaces with Weblogic 8.1
I have MyFaces running under WLS 8.1 be it connected or disconnected. It just works. -Original Message- From: Virtudazo, Dennis (Exchange) [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 9:46 PM To: MyFaces Discussion Subject: RE: Complexity of using MyFaces with Weblogic 8.1 Only one problem I encountered: myfaces validates the web.xml against the dtd. If your server doesn't have direct connection to the internet, it will not be able to download the dtd from Sun, so you are forced to use a local dtd reference. What I found is that I can only make it work with an absolute path reference; it would have been better if myfaces either can read the dtd relative to the location of the web.xml, or not validate the web.xml at all. With Tomcat, I didn't have this problem. -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 3:39 PM To: MyFaces Discussion Subject: Complexity of using MyFaces with Weblogic 8.1 We are evaluating what container to use for new development and are looking at JBoss 4.0.1 and Weblogic 8.1. Management is trying to push on why we need to go with Jboss. What, if any hoops does it take to get MyFaces configured running under Weblogic? Anyone with experience in this, could you lend me a hand? *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ***
RE: MyFaces with Weblogic
Btw, it wasn't the parsing of faces-config.xml that was causing the problem. It was the parsing of the web.xml. I don't know why MyFaces (its ServletContextListener) is even trying to parse web.xml, I would think web.xml is already parsed by the application server and anything MyFaces needs is available through the j2ee api. -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 4:35 PM To: MyFaces Discussion; [EMAIL PROTECTED] Subject: Re: MyFaces with Weblogic On Wed, 23 Feb 2005 20:01:57 +0100, Stefan Frank [EMAIL PROTECTED] wrote: You can just change the reference to the dtd to a local reference - weblogic will not call out to the web then. I think tomcat has a mechanism to lookup the dtd inside WEB-INF, whereas weblogic tries to obey the reference and look it up. As far as I remember, there is a switch somewhere in the weblogic.xml to change this beahvior. This is not a myfaces-problem: You will have this problem with all jakarta-webapps (eg. Struts), as they all rely on this fallback to dtds in the WEB-INF. That's not quite right. The JAXP APIs provide a way to register an entity resolver that is used to look up the actual entity to use for a particular public id (the first quoted string in a DOCTYPE). In turn, if you happen to be using Digester to parse your config files, you need to call the register() method to define the replacement(s). Tomcat, Struts, and the JSF RI itself use this technique to register URLs that point inside the corresponding JAR files (i.e. the Struts DTDs are inside struts.jar itself), with no need to manually include any DTDs. This is what allows, for example, execution to work when you are not connected to the internet. If MyFaces wants to do this, the code that parses faces-config.xml files must *explicitly* register its own replacements with the XML parser that you are using. There is no such thing as an automatic fallback to a DTD included in the WEB-INF directory. Craig Cheers stf -Original Message- Wrom: AOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPN Sent: Mittwoch, 23. Februar 2005 19:00 To: myfaces-user@incubator.apache.org Subject: Re: MyFaces with Weblogic I went to great effort myself. Spent about three work days but could never get it going. But in my case I was using struts-faces. [EMAIL PROTECTED] 2/23/2005 6:26:52 AM Has anybody on this list successfully run MyFaces on Weblogic 8.1? ** * Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ** * *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ***
Re: MyFaces with Weblogic
Dennis, did you try org.apache.myfaces.webapp.MyFacesServlet instead of javax.faces.webapp.FacesServlet see JavaDoc for MyFacesServlet: (http://tinyurl.com/42klk) quote: Derived FacesServlet that can be used for debugging purpose and to fix the Weblogic startup issue (FacesServlet is initialized before ServletContextListener). HTH, Matthias Virtudazo, Dennis (Exchange) wrote: Has anybody on this list successfully run MyFaces on Weblogic 8.1? *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** -- Matthias Weßendorf Aechterhoek 18 DE-48282 Emsdetten Germany phone: +49-2572-9170275 cell phone: +49-179-1118979 email: matzew AT apache DOT org url: http://www.wessendorf.net callto://mwessendorf (Skype) icq: 47016183
Re: MyFaces with Weblogic
Yes- I did without problem On Wed, 23 Feb 2005 09:26:52 -0500, Virtudazo, Dennis (Exchange) [EMAIL PROTECTED] wrote: Has anybody on this list successfully run MyFaces on Weblogic 8.1? *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** -- Avishay Balderman
RE: MyFaces with Weblogic
I'm at service pack 3. My problem is that apparently when the myfaces servletcontext listener startsup it tries to validate the web.xml against the dtd and cannot access the sun website. Below is the error: Feb 15, 2005 11:26:01 AM net.sourceforge.myfaces.webapp.StartupServletContextLis tener initFaces SEVERE: Error initializing ServletContext javax.faces.FacesException: java.net.UnknownHostException: java.sun.com at net.sourceforge.myfaces.webapp.webxml.WebXmlParser.parse(WebXmlParser .java:105) at net.sourceforge.myfaces.webapp.webxml.WebXml.init(WebXml.java:140) at net.sourceforge.myfaces.webapp.StartupServletContextListener.initFace s(StartupServletContextListener.java:105) at net.sourceforge.myfaces.webapp.StartupServletContextListener.contextI nitialized(StartupServletContextListener.java:85) I'm running behind a firewall and I have access to the internet but I do have to go through an http proxy that requires authentication. However, when I drop the examples war file in Tomcat, it just runs without a problem. My tomcat installation is in the same machine. I didn't configure tomcat with the userid password for the firewall (nor do I know how) so I can only assume that myfaces is not validating the xml when run in tomcat. Did you have this problem? Matthias, Yes I did try org.apache.myfaces.webapp.MyFacesServlet instead of jjavax.faces.webapp.FacesServlet. I get a different error when I use javax.faces.webapp.FacesServlet. -Original Message- From: John Langley [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:36 AM To: MyFaces Discussion Cc: Virtudazo, Dennis (Exchange) Subject: RE: MyFaces with Weblogic Yep, everyday. I run 8.1 sp4 with myfaces 1.0.8 and previously with 1.0.7. What sp level are you at with WebLogic and what is your error? Langley -Original Message- From: Virtudazo, Dennis (Exchange) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:27 AM To: MyFaces Discussion Subject: MyFaces with Weblogic Has anybody on this list successfully run MyFaces on Weblogic 8.1? *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ***
Re: MyFaces with Weblogic
looks like it tries to fetch the web.xml dtd from Sun. Can you put the dtd inside the war? On Wed, 23 Feb 2005 11:09:55 -0500, Virtudazo, Dennis (Exchange) [EMAIL PROTECTED] wrote: I'm at service pack 3. My problem is that apparently when the myfaces servletcontext listener startsup it tries to validate the web.xml against the dtd and cannot access the sun website. Below is the error: Feb 15, 2005 11:26:01 AM net.sourceforge.myfaces.webapp.StartupServletContextLis tener initFaces SEVERE: Error initializing ServletContext javax.faces.FacesException: java.net.UnknownHostException: java.sun.com at net.sourceforge.myfaces.webapp.webxml.WebXmlParser.parse(WebXmlParser .java:105) at net.sourceforge.myfaces.webapp.webxml.WebXml.init(WebXml.java:140) at net.sourceforge.myfaces.webapp.StartupServletContextListener.initFace s(StartupServletContextListener.java:105) at net.sourceforge.myfaces.webapp.StartupServletContextListener.contextI nitialized(StartupServletContextListener.java:85) I'm running behind a firewall and I have access to the internet but I do have to go through an http proxy that requires authentication. However, when I drop the examples war file in Tomcat, it just runs without a problem. My tomcat installation is in the same machine. I didn't configure tomcat with the userid password for the firewall (nor do I know how) so I can only assume that myfaces is not validating the xml when run in tomcat. Did you have this problem? Matthias, Yes I did try org.apache.myfaces.webapp.MyFacesServlet instead of jjavax.faces.webapp.FacesServlet. I get a different error when I use javax.faces.webapp.FacesServlet. -Original Message- From: John Langley [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:36 AM To: MyFaces Discussion Cc: Virtudazo, Dennis (Exchange) Subject: RE: MyFaces with Weblogic Yep, everyday. I run 8.1 sp4 with myfaces 1.0.8 and previously with 1.0.7. What sp level are you at with WebLogic and what is your error? Langley -Original Message- From: Virtudazo, Dennis (Exchange) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:27 AM To: MyFaces Discussion Subject: MyFaces with Weblogic Has anybody on this list successfully run MyFaces on Weblogic 8.1? *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** -- Avishay Balderman
RE: MyFaces with Weblogic
I didn't have to put the dtd in the war for the tomcat installation. Also when I tried this, I ran into other problems.. I eventually gave up because it became a bigger problem than the original, eventually I just used the reference implementation of JSF. Btw, I've never had to put the dtd in the war in any of the previous war files I've deployed. However if other people are using MyFaces with weblogic without putting their dtds in the war, then there must be another solution. Is there perhaps a configuration to tell MyFaces not to validate the xml? How are you guys deploying your webapps? -Original Message- From: Avishay Balderman [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 11:20 AM To: MyFaces Discussion Subject: Re: MyFaces with Weblogic looks like it tries to fetch the web.xml dtd from Sun. Can you put the dtd inside the war? On Wed, 23 Feb 2005 11:09:55 -0500, Virtudazo, Dennis (Exchange) [EMAIL PROTECTED] wrote: I'm at service pack 3. My problem is that apparently when the myfaces servletcontext listener startsup it tries to validate the web.xml against the dtd and cannot access the sun website. Below is the error: Feb 15, 2005 11:26:01 AM net.sourceforge.myfaces.webapp.StartupServletContextLis tener initFaces SEVERE: Error initializing ServletContext javax.faces.FacesException: java.net.UnknownHostException: java.sun.com at net.sourceforge.myfaces.webapp.webxml.WebXmlParser.parse(WebXmlParser .java:105) at net.sourceforge.myfaces.webapp.webxml.WebXml.init(WebXml.java:140) at net.sourceforge.myfaces.webapp.StartupServletContextListener.initFace s(StartupServletContextListener.java:105) at net.sourceforge.myfaces.webapp.StartupServletContextListener.contextI nitialized(StartupServletContextListener.java:85) I'm running behind a firewall and I have access to the internet but I do have to go through an http proxy that requires authentication. However, when I drop the examples war file in Tomcat, it just runs without a problem. My tomcat installation is in the same machine. I didn't configure tomcat with the userid password for the firewall (nor do I know how) so I can only assume that myfaces is not validating the xml when run in tomcat. Did you have this problem? Matthias, Yes I did try org.apache.myfaces.webapp.MyFacesServlet instead of jjavax.faces.webapp.FacesServlet. I get a different error when I use javax.faces.webapp.FacesServlet. -Original Message- From: John Langley [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:36 AM To: MyFaces Discussion Cc: Virtudazo, Dennis (Exchange) Subject: RE: MyFaces with Weblogic Yep, everyday. I run 8.1 sp4 with myfaces 1.0.8 and previously with 1.0.7. What sp level are you at with WebLogic and what is your error? Langley -Original Message- From: Virtudazo, Dennis (Exchange) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:27 AM To: MyFaces Discussion Subject: MyFaces with Weblogic Has anybody on this list successfully run MyFaces on Weblogic 8.1? ** * Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** ** * Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** -- Avishay Balderman *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ***
Re: MyFaces with Weblogic
I went to great effort myself. Spent about three work days but could never get it going. But in my case I was using struts-faces. [EMAIL PROTECTED] 2/23/2005 6:26:52 AM Has anybody on this list successfully run MyFaces on Weblogic 8.1? *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ***
RE: MyFaces with Weblogic
You can just change the reference to the dtd to a local reference - weblogic will not call out to the web then. I think tomcat has a mechanism to lookup the dtd inside WEB-INF, whereas weblogic tries to obey the reference and look it up. As far as I remember, there is a switch somewhere in the weblogic.xml to change this beahvior. This is not a myfaces-problem: You will have this problem with all jakarta-webapps (eg. Struts), as they all rely on this fallback to dtds in the WEB-INF. Cheers stf -Original Message- From: Steven Holmes [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 23. Februar 2005 19:00 To: myfaces-user@incubator.apache.org Subject: Re: MyFaces with Weblogic I went to great effort myself. Spent about three work days but could never get it going. But in my case I was using struts-faces. [EMAIL PROTECTED] 2/23/2005 6:26:52 AM Has anybody on this list successfully run MyFaces on Weblogic 8.1? ** * Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ** *
RE: MyFaces with Weblogic
Thank you. It works now. I tried it before but I used SYSTEM instead of PUBLIC in the doctype. Btw, I've done struts webapps also and I didn't have to use a local dtd. So I still think it's a myfaces problem. Maybe when myfaces parses the web.xml, it is calling an API that forces validation against the dtd? Anyway, I have the solution now. Thanks to everybody who chimed in. -Original Message- From: Stefan Frank [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 2:02 PM To: 'MyFaces Discussion' Subject: RE: MyFaces with Weblogic You can just change the reference to the dtd to a local reference - weblogic will not call out to the web then. I think tomcat has a mechanism to lookup the dtd inside WEB-INF, whereas weblogic tries to obey the reference and look it up. As far as I remember, there is a switch somewhere in the weblogic.xml to change this beahvior. This is not a myfaces-problem: You will have this problem with all jakarta-webapps (eg. Struts), as they all rely on this fallback to dtds in the WEB-INF. Cheers stf -Original Message- From: Steven Holmes [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 23. Februar 2005 19:00 To: myfaces-user@incubator.apache.org Subject: Re: MyFaces with Weblogic I went to great effort myself. Spent about three work days but could never get it going. But in my case I was using struts-faces. [EMAIL PROTECTED] 2/23/2005 6:26:52 AM Has anybody on this list successfully run MyFaces on Weblogic 8.1? ** * Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ** * *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ***
Re: MyFaces with Weblogic
On Wed, 23 Feb 2005 20:01:57 +0100, Stefan Frank [EMAIL PROTECTED] wrote: You can just change the reference to the dtd to a local reference - weblogic will not call out to the web then. I think tomcat has a mechanism to lookup the dtd inside WEB-INF, whereas weblogic tries to obey the reference and look it up. As far as I remember, there is a switch somewhere in the weblogic.xml to change this beahvior. This is not a myfaces-problem: You will have this problem with all jakarta-webapps (eg. Struts), as they all rely on this fallback to dtds in the WEB-INF. That's not quite right. The JAXP APIs provide a way to register an entity resolver that is used to look up the actual entity to use for a particular public id (the first quoted string in a DOCTYPE). In turn, if you happen to be using Digester to parse your config files, you need to call the register() method to define the replacement(s). Tomcat, Struts, and the JSF RI itself use this technique to register URLs that point inside the corresponding JAR files (i.e. the Struts DTDs are inside struts.jar itself), with no need to manually include any DTDs. This is what allows, for example, execution to work when you are not connected to the internet. If MyFaces wants to do this, the code that parses faces-config.xml files must *explicitly* register its own replacements with the XML parser that you are using. There is no such thing as an automatic fallback to a DTD included in the WEB-INF directory. Craig Cheers stf -Original Message- Wrom: AOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPN Sent: Mittwoch, 23. Februar 2005 19:00 To: myfaces-user@incubator.apache.org Subject: Re: MyFaces with Weblogic I went to great effort myself. Spent about three work days but could never get it going. But in my case I was using struts-faces. [EMAIL PROTECTED] 2/23/2005 6:26:52 AM Has anybody on this list successfully run MyFaces on Weblogic 8.1? ** * Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ** *