struts 2.1.2 action url fails (possible bug)

View: New views
6 Messages — Rating Filter:   Alert me  

struts 2.1.2 action url fails (possible bug)

by Struts Two :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have deployed struts 2.1.2 blank.war application (on Websphere V6.1 with EJB 3 feature pack) under the context root of "ccol" with basic form security enabled. if I enter the url:
https://localhost:9445/ccol/index.html  
then the url is redirected to 
https://localhost:9445/ccol/exa  mple/HelloWorld.action
I see the example page ( within the same browser, I can now enter any url that ends with ".action" . However, if I open a new browser and enter: https://localhost:9445/ccol/example/HelloWorld  .action
I get "page not found" error. I then installed 2.0.11 blank.war application, everything works fine with no problem. Below is the first few lines in the server dump that got when 2.1.2 blank.war failed.

[5/8/08 9:23:38:095 EDT] , key = java.io.FileNotFoundException com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest 573
Exception = java.io.FileNotFoundException
Source = com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest
probeid = 573
Stack Dump = java.io.FileNotFoundException: /example/HelloWorld.action



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/

RE: struts 2.1.2 action url fails (possible bug)

by Relph,Brian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Can you verify what version of WAS 6.1 you are running, and can you check and make sure this fix is applied -

http://www-1.ibm.com/support/docview.wss?uid=swg24014758

The errors you describe are symptoms of not having the filter-compatibility property set.


Brian Relph

-----Original Message-----
From: Struts Two [mailto:strutstwo@...]
Sent: Friday, May 09, 2008 7:10 PM
To: dev@...
Subject: struts 2.1.2 action url fails (possible bug)

I have deployed struts 2.1.2 blank.war application (on Websphere V6.1 with EJB 3 feature pack) under the context root of "ccol" with basic form security enabled. if I enter the url:
https://localhost:9445/ccol/index.html
then the url is redirected to
https://localhost:9445/ccol/exa  mple/HelloWorld.action I see the example page ( within the same browser, I can now enter any url that ends with ".action" . However, if I open a new browser and enter: https://localhost:9445/ccol/example/HelloWorld  .action I get "page not found" error. I then installed 2.0.11 blank.war application, everything works fine with no problem. Below is the first few lines in the server dump that got when 2.1.2 blank.war failed.

[5/8/08 9:23:38:095 EDT] , key = java.io.FileNotFoundException com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest 573 Exception = java.io.FileNotFoundException Source = com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest
probeid = 573
Stack Dump = java.io.FileNotFoundException: /example/HelloWorld.action



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/

----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Parent Message unknown Re: struts 2.1.2 action url fails (possible bug)

by Struts Two :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Websphere version: 6.1.0.13 (which includes the fix - the fix was included in 6.1.0.7). I have also set the following flag to 'true' in the server custom properties for filter-compatibility: com.ibm.ws.webcontainer.invokefilterscompatibility
the blank.war for struts 2.0.11 works fine, I have few more sample apps like showcase-2.0.11.1 and sample app for "struts 2 in action book"
running on the same server and all work fine. The problem occurs only with struts 2.1.2.


      __________________________________________________________________
Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php

Re: struts 2.1.2 action url fails (possible bug)

by Jeromy Evans - Blue Sky Minds :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Struts Two wrote:
> Websphere version: 6.1.0.13 (which includes the fix - the fix was included in 6.1.0.7). I have also set the following flag to 'true' in the server custom properties for filter-compatibility: com.ibm.ws.webcontainer.invokefilterscompatibility
> the blank.war for struts 2.0.11 works fine, I have few more sample apps like showcase-2.0.11.1 and sample app for "struts 2 in action book"
> running on the same server and all work fine. The problem occurs only with struts 2.1.2.
>
>  

If you have time, can you please test with 2.1.1 and 2.1.0?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Parent Message unknown Re: struts 2.1.2 action url fails (possible bug)

by Struts Two :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have deployed 2.1.1 and I get the same result. I would like to mention that the error occurs only if Security [either Basic or form based] is enabled [ users are authenticated agains LDAP server by WAS container]. That is say, if I enter https://localhost:9445/ccol/index.html , I get prompted for id and pwd (through http form dialog box) and then the url goes to https://localhost:9445/ccol/example/HelloWorld.action. However, if I enter https://localhost:9445/ccol/example/HelloWorld.action in a new browser, I do not even get challenged for id and pwd and I get page not found error. I have been running all other sample apps for 2.0.11 in a secure mode with same setting and they work fine. But if I disable security, then entering a url that ends with *.action works both for 2.1.1 and 2.1.2.



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr..com/gift/

Parent Message unknown Re: struts 2.1.2 action url fails (possible bug)

by Struts Two :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can anyone of the developers be kind enough to verify if this is a bug. I have done no coding of my own. I have deployed blank.wars for struts 2.0.11 and 2.1.2 on the same server both have form based authentication enabled. The following url works for 2.0.11  https://localhost:9445/struts2.0.11/example/HelloWorld.action .But this fail for 2.1.2 https://localhost:9445/struts2.1.2/example/HelloWorld.action !!! (page not found error)
Now if I enter https://localhost:9445/struts2.1.2/index.hml  Then the url is redirected to https://localhost:9445/struts2.1.2/example/HelloWorld.action and it works !!!!.
As I mentioned before any url ending with "*.action" which is entered in a newly opened browser fails for 2.1.2
Your replies/inputs/feedbacks are greatly appreciated.



      __________________________________________________________________
Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/