Custom context.xml for Tomcat 7 runs from NetBeans 7

I try not to enter passwords in versioned files and packed files. To do this, I cannot have context.xml (which contains database information) inside my project.

I am currently deploying my war file using Tomcat 7.0.35 Manager, because it allows you to specify the path to the context.xml file on the server.

All this works great, except that I have not found a way to do this in development from Netbeans 7.2.1. So when I try to run my project in Netbeans, I get the following message

In-place deployment at (...)/trace
(...)/trace/target/trace/META-INF/context.xml (No such file or directory)

Any help for setting up Netbeans or another way to accomplish my goal would be greatly appreciated.

+5
source share
2

. context.xml, Apache Ant - , Tomcat.

, $CATALINA_BASE/conf/catalina.properties, . catalina.example.properties , .

, - .

+3

Netbeans META-INF/context.xml IDE. , context.xml , .

META-INF/context.xml , .gitignore ( SCM), ?

+4

All Articles