Re: Can't execute servlet project

2008-09-02 Thread David Smith
, 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

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
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

Re: Can't execute servlet project

2008-09-02 Thread David Smith
/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

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
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

Re: Can't execute servlet project

2008-09-02 Thread David Smith
. 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

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
/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

Re: Can't execute servlet project

2008-09-02 Thread David Smith
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

Re: Can't execute servlet project

2008-09-02 Thread sam wun
- 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

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
--     !--     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

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
: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

Re: Can't execute servlet project

2008-09-02 Thread David Smith
-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

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
) ... 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

Re: Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
/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

Re: Can't execute servlet project

2008-09-02 Thread David Smith
- 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

Re: Can't execute servlet project

2008-09-02 Thread David Smith
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

Re: Re: Can't execute servlet project - it works now

2008-09-02 Thread sam wun
: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

Re: Can't execute servlet project

2008-09-01 Thread sam wun
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

Re: Re: Can't execute servlet project

2008-09-01 Thread sam wun
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

Re: Re: Can't execute servlet project

2008-08-28 Thread sam wun
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: Can't execute servlet project

2008-08-28 Thread sam wun
: 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

Re: Can't execute servlet project

2008-08-28 Thread Pid
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

Re: Can't execute servlet project

2008-08-28 Thread Pid
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

Re: Re: Can't execute servlet project

2008-08-28 Thread sam wun
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

Re: Can't execute servlet project

2008-08-28 Thread David Smith
# 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

Re: Can't execute servlet project

2008-08-28 Thread David Smith
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

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
/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

Re: Can't execute servlet project

2008-08-27 Thread David Smith
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

RE: Can't execute servlet project

2008-08-27 Thread Martin Gainty
. 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

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
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

Re: Can't execute servlet project

2008-08-27 Thread David Smith
/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

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
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

Re: Can't execute servlet project

2008-08-27 Thread David Smith
/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

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
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

RE: Re: Can't execute servlet project

2008-08-27 Thread Peter Crowther
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

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
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

Re: Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
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

Re: Can't execute servlet project

2008-08-27 Thread David Smith
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

Re: Can't execute servlet project

2008-08-27 Thread David Smith
/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

Re: Can't execute servlet project

2008-08-26 Thread David Smith
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