aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Not able to include Constainer specific xml file in WEB-INF folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Not able to include Constainer specific xml file in WEB-INF folder " Watch "Not able to include Constainer specific xml file in WEB-INF folder " New topic
Author

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

Rahul Shivsharan
Ranch Hand

Joined: Jun 17, 2009
Posts: 83
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

Joined: Jul 15, 2009
Posts: 377

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


I love this place!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to include Constainer specific xml file in WEB-INF folder
 
Similar Threads
Issue related to JAX-WS and Maven
Sonar - Native Plugin
maven cannot access javax.annotation.PostConstruct
Maven web project dependencies
java.util.MissingResourceException: Can't find bundle for base name in JSF Spring Maven project