RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread James Holmes
Oops...I left off the link.

Here it is:

http://forum.java.sun.com/thread.jsp?forum=427&thread=503652

-James
JSF Resources and JSF Console GUI Tool
http://www.jamesholmes.com/JavaServerFaces/

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 05, 2004 1:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

Yes, the problem is a bug with Weblogic 8.1.  Weblogic is not properly
implementing the servlet 2.3 spec.  To fix this you will need to use the
"hack servlet".  Following is a link to a thread on the JSF forum that
explains what you must do to get JSF apps working under WebLogic.


-Original Message-
From: Albrecht, Michael [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 05, 2004 10:45 AM
To: 'Struts Users Mailing List'
Subject: AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

Hi @all!

There`s still a problem with the struts-faces.war example.

The hint of Matthias was correct and very helpful: The BEA Weblogic 8.1 is a
J2EE 1.3 compliant app server and so the jstl.jar has to be another one.

There`s also a problem with the ServletContextListener. This listener has to
be initialized before JSF-Servlet init-methods are called, but BEA won`t do
this. So you have to force it to by programming a Servlet which is running
before all JSF-Servlets.

After all these improvements I`ve got the following exception:

javax.faces.FacesException: javax.servlet.ServletException:
javax/servlet/jsp/el/ELException
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
327)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.doForward(Fac
esTilesRequestProcessor.java:148)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:254)
at
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(
TilesRequestProcessor.java:341)
at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.ja
va:582)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.processForwar
d(FacesTilesRequestProcessor.java:245)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:286)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:151)
at jsp_servlet.__index._jspService(__index.java:127)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:431)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: javax.servlet.ServletException: javax/ser

RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread James Holmes
Yes, the problem is a bug with Weblogic 8.1.  Weblogic is not properly
implementing the servlet 2.3 spec.  To fix this you will need to use the
"hack servlet".  Following is a link to a thread on the JSF forum that
explains what you must do to get JSF apps working under WebLogic.


-Original Message-
From: Albrecht, Michael [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 05, 2004 10:45 AM
To: 'Struts Users Mailing List'
Subject: AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

Hi @all!

There`s still a problem with the struts-faces.war example.

The hint of Matthias was correct and very helpful: The BEA Weblogic 8.1 is a
J2EE 1.3 compliant app server and so the jstl.jar has to be another one.

There`s also a problem with the ServletContextListener. This listener has to
be initialized before JSF-Servlet init-methods are called, but BEA won`t do
this. So you have to force it to by programming a Servlet which is running
before all JSF-Servlets.

After all these improvements I`ve got the following exception:

javax.faces.FacesException: javax.servlet.ServletException:
javax/servlet/jsp/el/ELException
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
327)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.doForward(Fac
esTilesRequestProcessor.java:148)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:254)
at
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(
TilesRequestProcessor.java:341)
at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.ja
va:582)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.processForwar
d(FacesTilesRequestProcessor.java:245)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:286)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:151)
at jsp_servlet.__index._jspService(__index.java:127)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:431)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: javax.servlet.ServletException: javax/servlet/jsp/el/ELException
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:307)
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
322)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle

RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Matthias Wessendorf
Michael,

on my website, there is an hello-world
with tiles, struts, jsf

www.wessendorf.net

(follow the link of "java forum stuttgart")

if there are any problems in it, please let me know...

i run it in tomcat4.1.X which is a j2ee-1.3-webcontainer
as well

Cheers,
 
> Because the EL-package is introduced in JSP 2.0 (J2EE 1.4) I 
> think it fails because of lack of EL-classes, doesn't it?!
> 
> I packed the commons-el.jar additionally to the WEB-INF\lib - 
> directory but nothing has been changed.
> 
> I`m not sure if anybody has ever achieved a running 
> JSF-Tiles-Struts - example. If it is so, please contact me.
> 
> Thanks in advance,
> Michael
> http://www.struts-it.de
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
Hi @all!

There`s still a problem with the struts-faces.war example.

The hint of Matthias was correct and very helpful: The BEA Weblogic 8.1 is a
J2EE 1.3 compliant app server and so the jstl.jar has to be another one.

There`s also a problem with the ServletContextListener. This listener has to
be initialized before JSF-Servlet init-methods are called, but BEA won`t do
this. So you have to force it to by programming a Servlet which is running
before all JSF-Servlets.

After all these improvements I`ve got the following exception:

javax.faces.FacesException: javax.servlet.ServletException:
javax/servlet/jsp/el/ELException
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
327)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.doForward(Fac
esTilesRequestProcessor.java:148)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:254)
at
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(
TilesRequestProcessor.java:341)
at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.ja
va:582)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.processForwar
d(FacesTilesRequestProcessor.java:245)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:286)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:151)
at jsp_servlet.__index._jspService(__index.java:127)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:431)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: javax.servlet.ServletException: javax/servlet/jsp/el/ELException
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:307)
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
322)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.R

RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Matthias Wessendorf
> Yes, I`ve done this. Not directly, but I`ve unzipped the 
> war-file and zipped after copying the three-jsf-jars into 
> (jsf-api.jar, jsf-impl.jar, jstl.jar). Though it`s not running.
Hi

i guess you need standard.jar too
see jsf-deployment-guide:
http://java.sun.com/j2ee/javaserverfaces/docs/Deployment_Guide.html


> If I`m debugging the first call of the example app, the 
> LifeCycleFactory returns null in the RequestProcessor and so 
> nothing can go on.

a side effect?
btw. there is an issue with bea weblogic and jsf

a *hack*-servlet is available in jsf-forum.

Matthias

> Other hints?
> 
> Michael
> http://www.struts-it.de
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
Hi James!

Did you copy the JSF jar files into the directory where the
struts-faces*.war files are expanded to?  The JSF jars are not packaged
inside the .war files.

Yes, I`ve done this. Not directly, but I`ve unzipped the war-file and zipped
after copying the three-jsf-jars into (jsf-api.jar, jsf-impl.jar, jstl.jar).
Though it`s not running.

If I`m debugging the first call of the example app, the LifeCycleFactory
returns null in the RequestProcessor and so nothing can go on.

Other hints?

Michael
http://www.struts-it.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread James Holmes
Did you copy the JSF jar files into the directory where the
struts-faces*.war files are expanded to?  The JSF jars are not packaged
inside the .war files.

-James
http://www.jamesholmes.com/JavaServerFaces/
http://www.jamesholmes.com/struts/


-Original Message-
From: Albrecht, Michael [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 05, 2004 6:29 AM
To: 'Struts Users Mailing List'
Subject: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

Hi @all!

The example struts-faces2.war (and the other example struts-faces.war)
doesn't run on my BEA weblogic 8.1 SP1.

During startup of the server the following exception is thrown:

<05.07.2004 12.19 Uhr CEST> 

Is there anybody having the same problem or better knowing the solution? ;-)

Thanks in advance for help.

Michael


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
Hi @all!

The example struts-faces2.war (and the other example struts-faces.war)
doesn't run on my BEA weblogic 8.1 SP1.

During startup of the server the following exception is thrown:

<05.07.2004 12.19 Uhr CEST> 

Is there anybody having the same problem or better knowing the solution? ;-)

Thanks in advance for help.

Michael