• 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

Not able to include Constainer specific xml file in WEB-INF folder

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i am creating an web application using Maven 2

this is my folder structure

sampleWebProj
|
----main
|
-----java
|
----web

and below is my pom.xml


i am using glassfish as an appserver,
now i want to include glassfish-web.xml file in WEB-INF folder, how should i do it.

i tried using

<containerConfigXML>glassfish-web.xml</containerConfigXML>

but it doesnt includes

my question is as per the above folder structure , where should i put the glassfish-web.xml file ,
and what should i enter in pom.xml file so that the glassfish-web.xml file get copied in WEB-INF folder

 
Rancher
Posts: 377
Android Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Should your web folder not have a WEB-INF folder nested inside it?
Then you would put your container specific file in there?

EDIT - Check here your folder structure should match this. i.e src/main/java, src/main/webapp

Sean
 
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic