Re: TOmcat 5.0.16 console error,Pls help

2004-02-01 Thread Doug Parsons
Post your HelloServlet code or attach it. - Original Message - From: Avinash Sridhar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 01, 2004 10:21 PM Subject: TOmcat 5.0.16 console error,Pls help Hi, I was told that the .class files must be put into a package in

Re: Re: TOmcat 5.0.16 console error,Pls help

2004-02-01 Thread Doug Parsons
- From: Avinash Sridhar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: Doug Parsons [EMAIL PROTECTED] Sent: Sunday, February 01, 2004 11:19 PM Subject: Re: Re: TOmcat 5.0.16 console error,Pls help Hi, Thanks for the help,The HelloServlet.java file is as follows

Re: servlet gets smtp relay denied error

2003-12-29 Thread Doug Parsons
resonded and every now and then I get lucky. Good Luck Doug Parsons SCJP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Test

2003-12-23 Thread Doug Parsons
Testing please ignore. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: connection refused, localhost not found

2003-12-08 Thread Doug Parsons
If I read correctly, he said root context still worked. This means the server is running. What is lost is the ability to move to another context. Since the standard context are working, it sounds like a typo in the setup. Learning the details myself, so maybe someone else can narrow the area to

OT: Re: Database pool problem

2003-12-08 Thread Doug Parsons
Everyone has reasons. And some may question our choice. But the goal here is to help each other. Had he ask which database to use, then I would have nothing to say. But each of us have conditions which we must work with that are not under our control. The question of changing databases had already

Re: newbie help please, localhost not found

2003-12-06 Thread Doug Parsons
You may want to go even more basic than that. Open a command prompt and try pinging localhost and then try 127.0.0.1 Unless you are running some type of firewall you should get a response. If not, do you have a personal firewall enabled? No you don't have to be connected to a lan, but the TCP/IP

Re: Unclear about JDBC resource def in Tomcat 4.1

2003-12-05 Thread Doug Parsons
. Being slow in the IDE isn't a problem. Yeah, I know, more than you asked for. Doug Parsons Sun Certified Programmer Parsons Technical Services Inc. Best Regards, Michael Dean Sun Certified Programmer for the Java 2 Platform Washington State Department of Corrections ph: 360-664-8802 fx

Re: Servlets with JDBC connectivity

2003-12-04 Thread Doug Parsons
This is how I handle mine modified for your application. import java.sql.*; public class DBUtil { /** Retrieves results from query as a DBResults class. */ public static DBResults getQueryResults(String query, String dBase) { Connection connection = Conn.getConn(dBase); Statement statement =

Re: Problems with Tomcat 4.1.27 and MySQL J/Connector 3.0.9 (stable)

2003-12-03 Thread Doug Parsons
Here's my two cent's. The problem is that when I try to open the connection by calling method dataSource.getConnection() it throws a java.sql.SQLException stating Cannot load JDBC driver class 'null'. Had the same problem on 4.1.29 and 3.23.58 Try adding this to the Web.xml servlet-mapping

Re: Servlets with JDBC connectivity

2003-12-03 Thread Doug Parsons
Based on the how-to and modified for your app: package yourpackage; import java.sql.*; import javax.naming.*; import javax.sql.*; public class Conn { /**Takes desired database as a string and returns a connection. */ public static Connection getConn(String dBase) { Connection connection =

Re: forward thing: tomcat 4.1

2003-12-01 Thread Doug Parsons
Kumar, Why not? There is nothing in the code to stop it from proceeding. Think in the terms of a servlet. If you called a servlet instead of placing this code in the jsp, how would you write it. Also do you mean for the (5) statement to be outside your else bracket? Or did you mean for it to look

Re: forward thing: tomcat 4.1

2003-12-01 Thread Doug Parsons
Sorry I read to fast. You are in a servlet. Unless you return or escape out or try catch it is going to execute to the end or until you do something to exit. - Original Message - From: Kumar, Sumit [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 01,