On 1/19/2013 11:32 AM, Gmail wrote:
Due to a hard disk failure, I had to reinstall Tomcat 5.0.28 and
MySQL 5.0.8 on my WindowsXP development machine.

I have updated sever.xml and context.xml using the parameters from my
production Linux Ubuntu server, adding Global Naming Resources to
server.xml and creating context.xml  (which both reside in
etc/Tomcat5.5 on the server).

I located both files in Tomcat5.0/conf directory.   I am using
Eclipse to develop code to be deployed to the Linux server.  When I
start Tomcat, I don't get any errors, but when I try to access MySQL
in get the Name jdbc... error.   I have been tweaking the parameters,
following many Q&A sites via Goggling.  At one point I moved the
context.xml to the Catalina/localhost directory.   That time I could
see context.xml being read, but it also threw a 'path not found'
exception.  From the Tomcat 5 documentation it seems that it should
not matter whether context.xml is in ... conf or ... localhost
directories, so I can't explain the different behavior.

If context.xml needs to be in localhost, then what should the path=
parameter be.   I did not have it coded, then added path="/", which
did not seem to make any difference.

Thanks for any advice.  I had hoped to find a "sample" of server.xml
and context.xml for WindowsXP.  Thanks in advance for any help
steering me in the right direction.  Part of the problem is that I
did the original Windows XP installation in 2006, and I have lost a
few brain cells since then.


I don't even know how old 5.0.x is these days. It hasn't been worked on in a long time.

5.5.x reached end of life a bit ago.

In short, upgrade to at least 6.0 (6.0.36 as I write this).

Same for MySQL. Current version is 5.5.29.

1. Start with a fresh install of 6.0.36 and MySQL 5.5.29.
2. Use an updated version of J2EE Eclipse (or switch to NetBeans)
3. Associate Tomcat 6.0.36 with Eclipse - Server project
4. Follow the instructions on the Tomcat web site.

http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html

. . . . just my two cents.
/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to