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
-
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
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]
Testing please ignore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
. 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
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 =
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
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 =
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
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,
13 matches
Mail list logo