Actually you posted was, ************************************************************************ When I run index.html, it cannot find the url 'example/HelloWorld', and gives 'page not found'. ************************************************************************
Go to Project-->Properties-->Server
Check whether the WebSphere Application Server is there or not. If you have the WebSphere, make sure in the above path, the server is there or not..
If you did't install the WebSphere, you can run this on tomcat.. Install the tomcat and go to the above path and give the directory of tomcat and then try to run..
I ran on RAD 7.5 with Tomcat and it went perfectly fine.
It doesnt run on WAS 6 or jboss.
The error I described is when I am trying to run it on WAS 6.
I didnt get what you mean about the properties / server.
Also, is there any issue about struts on these servers? I am wondering why they are not able to run the sample HelloWorld.
I also tried netbeans+glassfish, and the app ran fine.
My real target now is to use eclipse(or any flavor of eclipse) , plus either glassfish, jboss or WAS 6. But I am unable to find a good set. [ March 31, 2008: Message edited by: Jesus Angeles ]
Struts 2 will not run on WebSphere 6 becuase it uses the wrong version of the java SDK. If you will look at the specifications for Struts 2, you will see that one of the requirements is that it must use Java SDK 1.5 or above. WebSphere 6.0 uses SDK 1.4.2, and therefore cannot run a Struts 2 application. If you want to run Struts 2 applications on WebSphere, you will have to use version 6.1, as it does have the required SDK level.
However, even with version 6.1, you have to "tweak" it a little before it will work. Just make sure you have the latest fix packs, and set the property com.ibm.ws.webcontainer.invokefilterscompatibility in the web Container custom properties to true. You do this by using the admin console and selecting:
Application Servers -> <server> -> Web Container Settings -> Web Container -> Custom Properties.
Another minor point: There is no RAD version 7.5. RAD 7.0.0.5 is the latest version. [ March 31, 2008: Message edited by: Merrill Higginson ]
Originally posted by Merrill Higginson: Struts 2 will not run on WebSphere 6 becuase it uses the wrong version of the java SDK. If you will look at the specifications for Struts 2, you will see that one of the requirements is that it must use Java SDK 1.5 or above. WebSphere 6.0 uses SDK 1.4.2, and therefore cannot run a Struts 2 application. If you want to run Struts 2 applications on WebSphere, you will have to use version 6.1, as it does have the required SDK level.
However, even with version 6.1, you have to "tweak" it a little before it will work. Just make sure you have the latest fix packs, and set the property com.ibm.ws.webcontainer.invokefilterscompatibility in the web Container custom properties to true. You do this by using the admin console and selecting:
Application Servers -> <server> -> Web Container Settings -> Web Container -> Custom Properties.
Another minor point: There is no RAD version 7.5. RAD 7.0.0.5 is the latest version.
[ March 31, 2008: Message edited by: Merrill Higginson ]
Merrill,
You are a life-saver! [this is not an april fool's day post]
It worked. Apparently, for the struts 1, I also needed to do it to run it in WAS 6.
Now I am ready for my Struts 2/EJB 3/WAS 6/MySql project. Few hours before your post, I already gave up on it, and decided to go netbeans/glassfish, but now I am back to my favorite IDE.
Actually it was my mistake in the web.xml config. When change from <url-pattern>/*.action</url-pattern> TO <url-pattern>*.action</url-pattern>, it fixed.