我刚刚在Linux RHEL6中安装了netbeans . 我必须在conf / Catalina / localhost / something.xml中为我的Java应用程序创建xml文件
问题是,有两个tomcats . 第一个是在/home/../.netbeans/7.3.1/apache-tomcat-7.0.34.0_base中用作CATALINA_BASE的那个,它包含conf文件夹中的Catalina / localhost . 但是,如果我在该目录中插入something.xml,则不会发生任何事情 . 所以,我必须在第二个tomcat /usr/local/apache-tomcat-7.0.34 CATALINA_HOME中插入something.xml . 但我在conf目录中找不到Cataline / localhost . 我曾尝试使用./startup.sh和netbeans手动启动tomcat,但仍无法在该目录中找到Catalina / localhost .
怎么解决这个?
谢谢
1 回答
如果你想要的只是在正确的位置创建something.xml,那么你应该做的就是这个 .
在Netbeans中搜索项目中的context.xml .
在那里添加您的数据 . 当您部署项目时,将使用您的 .xml自动生成一个文件,并将其放入正确的conf文件夹中