Howto specify which files to go to META-INF in a war file?

I'm using Tomcat 6.0.16, Ubuntu Hardy, Java 1.6.0_06, Idea 7.0.3 and 7782. I have a context.xml for Tomcat 6.0 like this:

]]>

As far as I understand, this context.xml file must be in the META-INF directory of the war file which is deployed in Tomcat 6.0. How can I tell Idea to add this file in that directory?

If you use Spring, JPA and Tomcat, could you look at this bug http://www.jetbrains.net/jira/browse/IDEA-17612 (I'm not the person who created it)?

Regards.

1 comment
Comment actions Permalink

Hello Thai,

As far as I understand, this context.xml file must be in the META-INF
directory of the war file which is deployed in Tomcat 6.0. How can I
tell Idea to add this file in that directory?

Regards.


Make sure that:
1. META-INF directory is under a web resource directory of the facet you
deploy.
2. "context.xml" file name matches any of the patterns listed in Project
Settings / Compiler / Resource patterns.

Alexander.


0

Please sign in to leave a comment.