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

2008-09-02 Thread sam wun
Sent: 03/09/08 12: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.xm

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 /tomcat/apache-tomcat-5.

Re: Can't execute servlet project

2008-09-02 Thread David Smith
riginal 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/localhost/ with the content changed to: WEB-INF/web.xml type=&

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 > /tom

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
let.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) ... 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:

Re: Can't execute servlet project

2008-09-02 Thread David Smith
- 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 of class '' for connect URL 

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
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 of class '' for connect URL 'null'" > > This error ty

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
upport.doStartTag(QueryTagSupport.java:159) > > > > > org.apache.jsp.testdb_jsp._jspx_meth_sql_005fquery_005f0(testdb_jsp.java:101) > > org.apache.jsp.testdb_jsp._jspService(testdb_jsp.java:58) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:

Re: Can't execute servlet project

2008-09-02 Thread sam wun
am > To: Tomcat Users List > Subject: Re: Re: Can't execute servlet project > > Thanks David, > > > > After copied the jstl and standard dot jar files into the directory: > > linux:~/tomcat/apache-tomcat-5.5.26/webapps/DBTest/WEB-INF/lib # ls > .  ..  jstl.ja

Re: Can't execute servlet project

2008-09-02 Thread David Smith
pServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) - Original Message - 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

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
Servlet.java:803) > - Original Message - > 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

Re: Can't execute servlet project

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

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
> > > > > > > > > >> - Original Message - > >> From: David Smith > >> Sent: 02/09/08 10:39 pm > >> To: Tomcat Users List > >> Subject: Re: Can't execute servlet project > >> > >> Do

Re: Can't execute servlet project

2008-09-02 Thread David Smith
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 and standard.jar in your WEB-INF/lib directory? --David

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

Re: Can't execute servlet project

2008-09-02 Thread David Smith
javax.sql.DataSource Container Thanks Sam 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 d

Re: Re: Can't execute servlet project

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

Re: Can't execute servlet project

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

Re: Can't execute servlet project

2008-08-28 Thread David Smith
true"/> where username/password is the root/admin user/password of the mysql 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&

Re: Can't execute servlet project

2008-08-28 Thread David Smith
5.26/common/lib # 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 serv

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, t

Re: Can't execute servlet project

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

Re: Can't execute servlet project

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

Re: Can't execute servlet project

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

Re: Re: Can't execute servlet project

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

Re: Can't execute servlet project

2008-08-27 Thread David Smith
inal 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 CreateCustomerServlet.class in WEB-INF/classes/ser

Re: Can't execute servlet project

2008-08-27 Thread David Smith
o: Tomcat Users 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 e

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

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

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
ce of the root cause is available 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 nam

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 in

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
; 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 CreateCustomerServlet.class in > WEB-INF

Re: Can't execute servlet project

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

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
1:29 pm > To: Tomcat Users List > Subject: Re: Can't execute servlet project > > But if you followed the tutorial, there should be a servlet mapping in > your web.xml looking like what I copied and pasted from the article > below: > > > Create Customer

Re: Can't execute servlet project

2008-08-27 Thread David Smith
older. 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 designed to be run on it's own. Try http://localhost/DBTest/ListCusto

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

RE: Can't execute servlet project

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

Re: Can't execute servlet project

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

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
vid Smith > Sent: 26/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

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

Can't execute servlet project

2008-08-26 Thread sam wun
HI tere, I have completed a servlet project in Eclipse (3.4). I also made a war.file by seleting the project name (DBTest in this case) and the export command from the Eclipse menu, and export it to the Tomcat 5.5.26 server in linux using manager. However when I click on the project name (/DBTe