facebook

context.xml not copied

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #247449 Reply

    fermataintl
    Member

    I am running myeclipse 4.1.0GA and tomcat 5.0.28 on windows xp. In my application, I am defining mysql resource in a context.xml file that is located in WebRoot/META-INF. I was running into problems with tomcat resolving the database resource. After much investigation I found that context.xml is not getting copied into $CATALINA_HOME/conf/Catalina/localhost/myapp.xml

    I have not done this in awhile so I am probably missing something simple. Also, I know this is not specifically a [my]eclipse problem but probably more related to tomcat. If I copy the context.xml (and name it myapp.xml) into the above mentioned location, it works just fine. Any idea how I can make this automatic?

    Thanks!
    Dean

    #247496

    Riyad Kalla
    Member

    After much investigation I found that context.xml is not getting copied into $CATALINA_HOME/conf/Catalina/localhost/myapp.xml

    This is a Tomcat issue. This feature of a context.xml file is so flaky and I can’t figure out why. In my own development I’ve fought with this stupid thing enough times to not even bother any more. Just rename the XML file and drop it in to that dir manually yourself; save some hair.

    Any idea how I can make this automatic?

    No, you are doing exactly the right thing. It seems on some versions of Tomcat this works and other’s it doesn’t. It’s totally random, like I said, I just gave up.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: context.xml not copied

You must be logged in to post in the forum log in