I've tested struts-example successfully with websphere 4 fixpack 2 (with
no-changed struts 1.0.2 binary distrib) on IBM AIX

Perhaps you would have to upgrade to fixpack 2 (websphere 4.0.2) ?

Nico



Do I need to make change to the struts source and rebuild it to deploy on
WebSphere 4.0? I would do like to touch the struts code as a last
alternative. In the meantime are there any WebSphere config or app source
code modification alternative?

Apache site addresses potential problems for WebSpehere 3.5 but could not
see anything for 4.0. Has anyone tried struts on WebSphere 4.0 without any
modification to struts source code?

Thanks,

-V Prabhakar

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 7:27 PM
To: Struts Users Mailing List
Subject: Re: Getting Struts Example work with WebSphere 4.0




      Using the source distrib, open org.apache.struts.taglib.html
   package.FormTag and make the following changes

      Replace the following lines in the doEndTag() method in the FormTag
   class:

           pageContext.removeAttribute(Constants.BEAN_KEY,
                                              PageContext.REQUEST_SCOPE);
           pageContext.removeAttribute(Constants.FORM_KEY,
                      PageContext.REQUEST_SCOPE);

      with the following:

           pageContext.getRequest().removeAttribute(Constants.BEAN_KEY)
           pageContext.getRequest().removeAttribute(Constants.FORM_KEY)





"Prabhakar, V" <[EMAIL PROTECTED]> on 05/16/2002 04:09:22 PM

Please respond to "Struts Users Mailing List"
      <[EMAIL PROTECTED]>

To:   <[EMAIL PROTECTED]>
cc:
Subject:  Getting Struts Example work with WebSphere 4.0


I am trying to get the struts example (struts-example.war) work with
Websphere. I am getting to the main page (index.jsp). From there I am able
to go to the tour page. But I am unable to get to login page. When I try
login page, the web server encounters internal error.

My config is:

Win 2000 server
IIS 5.0
Websphere 4.0
Xceres 1.4.4 (installed separately)


I have *not* configured the websphere with any jdbc resources. I assume the
sample (example) does not require any database and keeps the thing in an
xml file. Am I wrong?

Any help would be appreciated. I have attached the stack trace which I got
from the websphere log file:

[02.05.16 18:56:48:820 EDT] 516e1a24 WebGroup      X Servlet Error (Root +
1)
[02.05.16 18:56:48:852 EDT] 516e1a24 WebGroup      X SRVE0030E: Root Cause
java.lang.IllegalArgumentException: cant remove Attributes from request
scope
     at
org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl..j
ava:269)

     at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
     at logon_jsp_0._jspService(logon_jsp_0.java:389)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet..j
ava:286)

     at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
     at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:532)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:718)

     at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.
_service(StrictLifecycleServlet.java:160)
     at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

     at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

     at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:42
8)

     at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:870)

     at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:788)

     at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:439)

     at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:239)

     at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:104)

     at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:61)
     at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:132)

     at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)

     at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106)

     at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:125)

     at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:271)

     at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection..j
ava:49)

     at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:303)

     at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:232)
     at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

Thanks,

_V Prabhakar


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






**********************************************************************
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**********************************************************************



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


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


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

Reply via email to