=javauser password=javadude
driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true/
/Context
--David
cuco2772 wrote:
I'm starting to think that putting that Context in the main
conf/context.xml
is not the way
make any sense to me.
Thanks again for all the helpful replies.
cuco2772 wrote:
Just a follow up. I copied the 2nd Context to META-INF/context.xml and
it worked !
It's kind of funny because I was saying to myself There is 0% chance this
is going to work to prepare
myself for the usual
.
--David
cuco2772 wrote:
Where is the jdbc driver normally located ? I did a 'locate jdbc' and
found
it in a bunch of places, ie,
/usr/lib/jvm/java-6-sun-1.6.0.00/imq/demo/jdbc/config.properties.mysql
Would it be in this directory in tomcat ?:
[EMAIL
PROTECTED]:/usr/local/tomcat/apache
, and the stuff there.
Should I have put that second Context element in /META-IINF instead ?
cuco2772 wrote:
I set up the test app and the database as per the instructions provided on
that link you gave me which
I will reproduce here :
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource
?
cuco2772 wrote:
This context.xml is the one in /conf. From what I understand (and
according to the apache site) this
is where you put stuff that you want to be loaded by all webapps.
The /META-INF/context.xml would be for things that are more application
specific.(I'm making an educated
Hello all;
I'm in need of some help in setting up my environment correctly. I have
mysql 5.0, tomcat 6, and am running tomcat through apache2.
I downloaded mysql-connector-java-5.0.8-bin.jar and put it in
/usr/local/tomcat/apache-tomcat-6.0.14/lib
There is also a copy in
for authoritative information on how to configure tomcat 6.
--David
cuco2772 wrote:
Hello all;
I'm in need of some help in setting up my environment correctly. I have
mysql 5.0, tomcat 6, and am running tomcat through apache2.
I downloaded mysql-connector-java-5.0.8-bin.jar and put it in
/usr
classloaders will handle finding the jars and making
them available.
I would highly recommend you take a look at
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
for authoritative information on how to configure tomcat 6.
--David
cuco2772 wrote:
Hello all
-connector-java-5.0.8
(I also have the mysql-connector-java-5.0.8-bin.jar file copied to /lib, but
not in
mysql-connector-java-5.0.8.
Caldarale, Charles R wrote:
From: cuco2772 [mailto:[EMAIL PROTECTED]
Subject: Re: how to configure (server.xml) for mysql dev with
tomcat/JDBC
I gathered from
want to do
something like that, I mean what kind of situation would compel you to want
to edit one of those
context.xmls ? Anyway, thanks a bunch for the help. This is the most
helpful forum I'v been on.
You guys rock !
-adam
Caldarale, Charles R wrote:
From: cuco2772 [mailto:[EMAIL
error from tomcat. Here is my web.xml:
servlet
servlet-nameHelloServlet/servlet-name
servlet-classHelloServlet/servlet-class
/servlet
servlet
servlet-nameHelloServlet2/servlet-name
servlet-classcoreservlets.HelloServlet2/servlet-class
/servlet
servlet-mapping
logs regarding the request? Are
you sure the webapp is running after you restart tomcat?
--David
cuco2772 wrote:
error from tomcat. Here is my web.xml:
servlet
servlet-nameHelloServlet/servlet-name
servlet-classHelloServlet/servlet-class
/servlet
servlet
servlet-nameHelloServlet2/servlet
I did touch web.xml and it worked. Weird. Of course if I restart tomcat it
wont work again.
Its the latest tomcat 6.0.14. The tomcat error logs are posted in the above
reply.
Caldarale, Charles R wrote:
From: cuco2772 [mailto:[EMAIL PROTECTED]
Subject: web.xml configured correctly
cuco2772 wrote:
The guide I've been using for trying to set this up is the coreservlets
book
by Marty Hall. He says set the
classpath but the info there is for tomcat 4. Are you saying I could just
get rid of the classpath
environment variable entirely and it wouldn't make any difference ? (I did
.
cuco2772 wrote:
Check this out, I did 'touch web.xml' then hit reload in the browser
window and it worked.
If I restart tomcat though, it probably wont work as before.
Here's what my catalina.out looked like after that:
[EMAIL PROTECTED]:/usr/local/tomcat/apache-tomcat-6.0.14/logs# tail -f
for your
help.
Caldarale, Charles R wrote:
From: cuco2772 [mailto:[EMAIL PROTECTED]
Subject: Re: web.xml configured correctly, but still getting
'404...resourcenot found'
There was a parse error at context.xml, line 20, column 2.
Which context.xml? If it's in the webapp's META-INF
.
- Original Message -
From: cuco2772 [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, December 19, 2007 3:43 PM
Subject: Configuring tomcat, servlet not found error
I keep getting this error:
'The requested resource (/servlet/HelloServlet) is not available'. (404
Mary,
When I did something similar to this PATH=$JAVA_HOME/bin;$PATH, editing my
my .bashrc file for my root account and my username account (ubuntu feisty)
the bash shell couldn't find basic
programs such as ls or vim. The only thing that saved this from being a real
nightmare was that I had
I keep getting this error:
'The requested resource (/servlet/HelloServlet) is not available'. (404)
The servlet is not getting located by tomcat for some reason. This happens
when I go to localhost:8080/servlet/HelloServlet.
The servlet engine is running, tomcat is running.
I did this:
javac
19 matches
Mail list logo