• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

class files not in the War

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the value of ${build.dir} ?
 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hint: It looks to me like you're already doing something similar with including your properties files......
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic