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

2008-09-02 Thread sam wun
After this final changed (renamed the context.xml file to DBTest.xml), it works fine now. Thank you very much for the help along the way. Without your patient and effort, I wouldn't be able to get this going. Thanks Sam > - Original Message - > From: David Smith > Sent: 03/09/08 1

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
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            (I have the exact db, table and username/password created like this). And I have removed the context.xml file in webapps/DBTest/WEB-I

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
302) > >> > >>>> > >>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> > >>>>>>> > >>>

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
302) > >> > >>>> > >>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>&g

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
ult.html > >>>>> default.htm > >>>>> default.jsp > >>>>> > >>>>> > >>>>> > >>>>> DB Connection > >

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
t; >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>>>> type="javax.sql.DataSource" > >>>>maxActive=&q

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
javax.sql.DataSource > >> Container > >> > >> > >> then put in this test code changing : > >> DBNAME to the name of your Database > >> TABLE to the name of the table in DBNAME you want to query > >> COLUMN for the speci

Re: Re: Can't execute servlet project

2008-09-01 Thread sam wun
Hi there, I have followed the tutorial about how to setup db connection (with mysql). But still giving me the followoing errors: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jaspe

Re: Re: Can't execute servlet project

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

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
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: where username/password is the root/admin user/password of the mysql database? thanks > - Original Message - > From

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
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 - type Exception report message description The server encount

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
OK, I followed your instruction to invoke the servlet class file, but I got errors. the url is http://10.1.9.1:8080/DBTest/CreateCustomerServlet Errors are: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from ful

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
I got a similar web.xml, but the is different. Here is the entire content of my web.xml. http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>        

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'

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
Hi, thanks for trying to help. I dont' have a clue on this *bean*. The entire tutorial doesn't mention about how to setup a bean... The tutorial I;ve followed is shown as below: http://java.sys-con.com/node/152270 Thanks Sam > - Original Message - > From: David Smith > Sent: