Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts Blank WAR error

 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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.

 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
Eugene Abarquez
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

Thanks for your quick response. I will try out this WTP plugin you strongly recommended.
 
Eugene Abarquez
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again,

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.

Thanks.
 
Eugene Abarquez
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind I had it working.
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic