Struts 2.1.2 action url fails (possible bug)

View: New views
3 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 the two blank war files for struts 2.0.11 and struts 2.1.2. While struts 2.0.11 works perfectly fine, I have the following problem with struts 2.1.2.
Whenever I type a url as follows:
https://localhost:9445/struts2.1.2/example/HelloWorld.action
I get "page not found" error. However, the following for struts 2.0.11 works:
https://localhost:9445/struts2.0.11/example/HelloWorld.action
but if I do the following:
https://localhost:9445/struts2.1.2/index.html
the url is redirected to https://localhost:9445/struts2.1.2/example/HelloWorld.action  and I can see the page but if I open a new browser and copy and paste the url, it fails [page not found]. Anyone has any idea why this is happening. I would like to mention that I have security [form based] enabled for both application. As I said, the blank war file for struts 2.0.11 works fine and I have this issue with 2.1.2.
I am running both apps in Websphere 6.1 with EJB3 feature pack.
regards,


      __________________________________________________________________
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 Laurie Harper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Struts Two wrote:

> I have deployed the two blank war files for struts 2.0.11 and struts 2.1.2. While struts 2.0.11 works perfectly fine, I have the following problem with struts 2.1.2.
> Whenever I type a url as follows:
> https://localhost:9445/struts2.1.2/example/HelloWorld.action
> I get "page not found" error. However, the following for struts 2.0.11 works:
> https://localhost:9445/struts2.0.11/example/HelloWorld.action
> but if I do the following:
> https://localhost:9445/struts2.1.2/index.html
> the url is redirected to https://localhost:9445/struts2.1.2/example/HelloWorld.action  and I can see the page but if I open a new browser and copy and paste the url, it fails [page not found]. Anyone has any idea why this is happening. I would like to mention that I have security [form based] enabled for both application. As I said, the blank war file for struts 2.0.11 works fine and I have this issue with 2.1.2.
> I am running both apps in Websphere 6.1 with EJB3 feature pack.
> regards,

That seems strange, particularly as you say the redirect from index.html
is working. Can you reproduce this on a different servlet container
(e.g. Tomcat or Jetty)? What do you see in the logs for the 2.1.2
version when you request HelloWorld.action vs. index.html? What if you
up the log level to DEBUG?

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-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 did one more test to verify the problem [I also changed the context root - just to get crazy] and the problem is there [you will find the server partial dump beflow]:
 I first typed:
https://localhost:9445/ccol/index.html
 The url got redirected to the following url [after I was prompted to basic http authentication dialog]:
 https://localhost:9445/ccol/example/HelloWorld.action
 Now from within the same browser, I can type anyother existing url (including those that end with .action], everything works fine.
 Then, I opened a new browser, copied the above link in it [https://localhost:9445/ccol/example/HelloWorld.action], and I got "page not found" error [not to mention that I even did not get prompted for authentication].
 Then I uninstalled the app, and installed the same app [blank.war] for struts 2.0.11 and It works like charm with no problem.
 
Here is the partial server dump:
 
[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
 at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:414)
 at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:113)
 at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
 at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
 at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
 at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
 at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
 at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1002)
 ..............


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

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