Algorithman
Algorithman

Reputation: 1334

Apache Tomcat does not contain conf/Catalina/localhost

I have just installed the NetBeans IDE in Linux RHEL6. I have to create an XML file for my Java application in conf/Catalina/localhost/something.xml

The problem is, there are two Apache Tomcats. The first one is the one which is used as CATALINA_BASE in /home/../.netbeans/7.3.1/apache-tomcat-7.0.34.0_base the one contains the Catalina/localhost in the conf folder. But if I insert something.xml in that directory, nothing will happen. So, I thought that I must insert something.xml into the second Apache Tomcat /usr/local/apache-tomcat-7.0.34 with the CATALINA_HOME. But I cannot find Cataline/localhost in the conf directory. I have tried to start Tomcat manually using ./startup.sh and from NetBeans, but still the Catalina/localhost cannot be found in that directory.

How to solve this?

Thank you!

Upvotes: 4

Views: 4042

Answers (1)

Sap
Sap

Reputation: 5301

If all you want is to create something.xml in correct location then all you should do is this.

  • In Netbeans search for context.xml in your project.
  • Add your data there. When you will deploy your project a file will be automatically generated with your {projectname}.xml and will be dropped in correct conf folder

Upvotes: 1

Related Questions