Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS 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

class files not in the War

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone, I was wondering if anyone can tell me what's wrong with my code



When I unzip the war file, my WEB-INF/classes/Pay_Roll/Action/ is empty

I copy an example build.xml from apache site and modify it for my project. can anyone tell me what I did wrong?

thanks so much
 
Ranch Hand
Posts: 136
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the value of ${build.dir} ?
 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


assuming that your ${build.dir} and that it really contains your classes, try to remove the <include> tag inside the classes may be it includes only the .properties files and ignores all the .class files. make it like this



 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ${build.dir} is



actually, I believe that



the **/WEB-INF/**/*.* is where the problem is
because I build it with "**/WEB-INF/**/*.*" deleted and the .class file is there

I have another problem, my struts.xml is currently under /WEB-INF/ but it needs to be under /WEB-INF/classes
how can I modifiy the above to make it so the struts.xml is in /WEB-INF/classes when the .war is made?

thanks again

 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hint: It looks to me like you're already doing something similar with including your properties files......
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic