• 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

Eclipse 3.6 option - 'deployment assembly' not working for my web project

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having a trouble to exporting a web project to WAR file using Eclipse 3.6. Have no problem in 3.5, I used the option of "java EE module dependency" to select the external JARs I want to export to WEB-INF\lib. In 3.6 doesn't have this option and google it found I should use 'deployment assembly'. I did it but after I export my project, I don't see external jars exported. I noticed in the console, it has an warning message:

Projects must be referenced by an EAR or a WAR to use classpath publish/export dependencies whose runtime path (../) maps into the parent component.

Anyone knows what I missed?

Thanks..

Jacky
 
Jacky S Zhang
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found can do it this way. I created a empty web project, add all the external JARs I need. Then back to original web project, in the deployment assembly, add the empty project. After i export to war file, I can see the external JARs are in WEB-INF/lib. But at the same time I saw my empty project.WAR is there as well.... I think there should be a better way in 3.6 does same thing as in the old version option 'Java EE module dependency'... Anyone know how to do it?

jacky
 
Jacky S Zhang
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Resolved... just need to "deployment assembly" -> "add" -> "external archive". I was using the "referenced project classpath entries" that's why not working...
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for letting everybody know how you solved it
reply
    Bookmark Topic Watch Topic
  • New Topic