, 28 Aug 2008 11:02:52 +0200
From: [EMAIL PROTECTED]
Subject: Re: Re: Can't execute servlet project
To: users@tomcat.apache.org; users@tomcat.apache.org
Hi,
I couldn't find an installation document about installing the driver.
I;ve downloaded the driver:
linux:~/tomcat/apache-tomcat-5.5.26
Hi David,
No, I don't have this 2 jar files in the common/lib/ directory.
where can I download it from?
Thanks
Sam
- Original Message -
From: David Smith
Sent: 02/09/08 10:39 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Do you have jstl.jar
/lib/ directory.
where can I download it from?
Thanks
Sam
- Original Message -
From: David Smith
Sent: 02/09/08 10:39 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Do you have jstl.jar and standard.jar in your WEB-INF/lib directory?
--David
sam wun wrote
this 2 jar files in the common/lib/ directory.
where can I download it from?
Thanks
Sam
- Original Message -
From: David Smith
Sent: 02/09/08 10:39 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Do you have jstl.jar
.
Thanks
- Original Message -
From: David Smith
Sent: 02/09/08 11:44 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Hmmm... good question. I moved over to Maven and don't manually
download these any more. This looks like it should do the trick:
Try
http
/09/08 01:23 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Download the binary zip file and expand it. Within it is a lib
directory with just standard.jar and jstl.jar.
--David
sam wun wrote:
I just went to the website , very confused.
The taglib file
Smith
Sent: 03/09/08 01:23 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Download the binary zip file and expand it. Within it is a lib
directory with just standard.jar and jstl.jar.
--David
sam wun wrote:
I just went to the website , very confused.
The taglib file
-
From: David Smith
Sent: 03/09/08 01:23 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Download the binary zip file and expand it. Within it is a lib
directory with just standard.jar and jstl.jar.
--David
sam wun wrote:
I just went to the website
--
!--
Manager pathname= /
--
/Context
- Original Message -
From: David Smith
Sent: 03/09/08 01:49 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException:
Cannot create JDBC driver
:49 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException:
Cannot create JDBC driver of class '' for connect URL 'null'
This error typically indicates the JNDI db pool hasn't been setup
correctly. Some config
-bin.jar
Is thsi the correct mysql jar file?
Thanks
Sam
- Original Message -
From: David Smith
Sent: 03/09/08 01:49 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException:
Cannot create JDBC driver
)
...
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
- Original Message -
From: David Smith
Sent: 03/09/08 03:06 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Here is the mysql-connector jar file I got in the common/lib directory:
linux
/conf #
do I need to remove DBTest.xml and web.xml here?
Thanks
Sam
- Original Message -
From: sam wun
Sent: 03/09/08 11:13 am
To: Tomcat Users List
Subject: Re: Re: Can't execute servlet project
After moved the context.xml file to
/tomcat/apache-tomcat-5.5.26/conf/Catalina
-
From: sam wun
Sent: 03/09/08 11:13 am
To: Tomcat Users List
Subject: Re: Re: Can't execute servlet project
After moved the context.xml file to
/tomcat/apache-tomcat-5.5.26/conf/Catalina/localhost/
with the content changed to:
Context
!-- Default set of monitored resources
If the context xml file is in
/tomcat/apache-tomcat-5.5.26/conf/Catalina/localhost, it should be named
after your webapp (e.g.: DBTest.xml). It's only named context.xml when
in your webapp's META-INF folder.
--David
sam wun wrote:
After moved the context.xml file to
:35 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
If the context xml file is in
/tomcat/apache-tomcat-5.5.26/conf/Catalina/localhost, it should be named
after your webapp (e.g.: DBTest.xml). It's only named context.xml when
in your webapp's META-INF folder
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
- Original Message -
From: Martin Gainty
Sent: 28/08/08 10:07 pm
To: [EMAIL PROTECTED]
Subject: RE: Can't execute servlet project
david's advice is correct..
configure ./META-INF/ApplicationContext.xml
Context path
To: Tomcat Users List
Subject: Re: Can't execute servlet project
The datasource for your webapp isn't setup correctly. Take a look at
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
for help on how to properly setup a database connection pool. My only
edit
Sent: 28/08/08 03:06 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
The datasource for your webapp isn't setup correctly. Take a look at
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
for help on how to properly setup a database
: Re: Re: Can't execute servlet project
HI there,
According to the tomcat online document, do I have to modify the
context.xml file?
$CATALINA_HOME/conf/context.xml
with the following new setup: Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource
Message -
From: sam wun
Sent: 28/08/08 04:44 pm
To: Tomcat Users List
Subject: Re: Re: Can't execute servlet project
HI there,
According to the tomcat online document, do I have to modify the
context.xml file?
$CATALINA_HOME/conf/context.xml
with the following new setup
Sent: 28/08/08 12:44 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Looks normal .. you won't get a file named CreateCustomerServlet under
DbTest. You should get a class named CreateCustomerServlet.class in
WEB-INF/classes/servlet. That class will be called when your
of it?
Thanks
Sam
- Original Message -
From: Pid
Sent: 28/08/08 06:47 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
sam wun wrote:
Do I need to put mysql driver in the common/lib/ directory in linux?
Yes, that's a basic requirement.
If I need to have
# ls
mysql-connector-java-5.1.3-rc-bin.jar
mysql-connector-java-5.1.3-rc-bin.jar
Do you know how to configure tomcat to make use of it?
Thanks
Sam
- Original Message -
From: Pid
Sent: 28/08/08 06:47 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
sam wun
database?
thanks
- Original Message -
From: David Smith
Sent: 28/08/08 03:06 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
The datasource for your webapp isn't setup correctly. Take a look at
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource
/08/08 11:28 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
1. The 404 error accessing /DbTest/ -- define a welcome file in
DBTest/WEB-INF/web.xml. Online docs at tomcat.apache.org and the
servlet spec will help with this.
2. It would appear you need to do some more
To: Tomcat Users List
Subject: Re: Can't execute servlet project
1. The 404 error accessing /DbTest/ -- define a welcome file in
DBTest/WEB-INF/web.xml. Online docs at tomcat.apache.org and the
servlet spec will help with this.
2. It would appear you need to do some more research on what you
. Sender does
not necessarily endorse content contained within this transmission.
Date: Wed, 27 Aug 2008 07:59:16 -0400
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject: Re: Can't execute servlet project
I see the jsp is a view and as such wasn't designed to be run on
it's
HI there,
It sounds logical, but there is no LIstCustomers in the DBTest folder.
Thanks
Sam
- Original Message -
From: David Smith
Sent: 27/08/08 09:59 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
I see the jsp is a view and as such wasn't
/08 09:59 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
I see the jsp is a view and as such wasn't designed to be run on
it's own. Try http://localhost/DBTest/ListCustomers in your browser.
That should hit the servlet which in turn should generate the required
bean
listing of my tomcat server (in linux):
linux:~/tomcat/apache-tomcat-5.5.26/webapps/DBTest # ls
. .. META-INF WEB-INF customers.jsp
Thanks
Sam
- Original Message -
From: David Smith
Sent: 27/08/08 11:29 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
/apache-tomcat-5.5.26/webapps/DBTest # ls
. .. META-INF WEB-INF customers.jsp
Thanks
Sam
- Original Message -
From: David Smith
Sent: 27/08/08 11:29 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project
But if you followed the tutorial, there should be a servlet
Smith
Sent: 28/08/08 12:44 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Looks normal .. you won't get a file named CreateCustomerServlet under
DbTest. You should get a class named CreateCustomerServlet.class in
WEB-INF/classes/servlet. That class will be called
From: sam wun [mailto:[EMAIL PROTECTED]
OK, I followed your instruction to invoke the servlet class
file, but I got errors.
[...]
root cause java.lang.UnsupportedClassVersionError: Bad version number in
.class file
You're compiling your class with a newer Java version than your Tomcat
in the Apache
Tomcat/5.5.26 logs.
- Original Message -
From: David Smith
Sent: 28/08/08 12:44 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Looks normal .. you won't get a file named CreateCustomerServlet under
DbTest. You should get a class named
Subject: Re: Re: Can't execute servlet project
HI there,
I managed to fix the jdk version error, now it comes with a different
error.
The url I am trying to put on the firefox browser is
http://10.1.9.1:8080/DBTest/CreateCustomerServlet
The error is:
TTP Status 500
List, Tomcat Users List
Subject: Re: Re: Can't execute servlet project
HI there,
I managed to fix the jdk version error, now it comes with a different
error.
The url I am trying to put on the firefox browser is
http://10.1.9.1:8080/DBTest/CreateCustomerServlet
The error is:
TTP Status
/08 12:44 am
To: Tomcat Users List
Subject: Re: Can't execute servlet project
Looks normal .. you won't get a file named CreateCustomerServlet under
DbTest. You should get a class named CreateCustomerServlet.class in
WEB-INF/classes/servlet. That class will be called when your webapp
receive's
1. The 404 error accessing /DbTest/ -- define a welcome file in
DBTest/WEB-INF/web.xml. Online docs at tomcat.apache.org and the
servlet spec will help with this.
2. It would appear you need to do some more research on what you want to
do. It looks like you are trying to expose an ArrayList
39 matches
Mail list logo