Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rahul Shivsharan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • 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

 
Sean Clark
Rancher
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic