I am new to Struts and just started tinkering with the struts blank war file that comes bundled with the dowloaded zip. When I deploy the actual war file directly into the Tomcat webapps everything works as expected and I get the correct page. However, I tried to rebuild the war inside Eclipse by importing it into a new project, and I get an error message as follows.
I am thinking this might be a problem with my configuartion in Eclipse. I am using Eclipse 3.2 with a SysDeo Tomcat plugin. I am running Tomcat inside Eclipse.
Also in a different note, how can you build war files inside Eclipse using the Tomcat Project? I used to do it by Run Packaging but that was using the JBoss IDE. Is there a way to do it inside Eclipse or should I use Ant instead? If there is a way to do it inside Eclipse, I will be delighted if someone enumerate to me the steps to configure it.
Thanks in advance.
There's so much to learn in this industry, and not everybody has the necessary interest.
The above error message is only a warning. The page should still display properly. All it's telling you is that Struts first looked for a myBundle_en_US.properties, but it didn't find one, so it just used myBundle.properties.
As for developing Struts in Eclipse, I believe using the Web Tools Platform (WTP) is the best option. For more information on how to get this plugin see question 8 in the JavaRanch Struts FAQ. With the WTP plugin, packaging the app for deployment is part of the build process and doesn't require any extra effort on your part. When you want to make updates, just right-click the server and select "publish".
Thanks for your quick response. I will try out this WTP plugin you strongly recommended.
Joined: May 18, 2006
I have sucessfully installed the WTP plugin in my Eclipse, and it looks great. I found a more detailed article than the one in the FAQ section about the installation in the following site. Some peeps may find this useful: WTP installation
I want to know though how I can properly package my project into a WAR file using WTP. Can somebody enumerate to me the details of the configuration? I tried right-clicking the project from the Project Explorer -> Export -> WAR file, but the generated file is messed up. Probably I should configure something in the build path? Please point me in the right direction.