Tomcat5.5 query

R

ruds

Hi,
I have installed tomcat5.5.
In the tomcat docs it is recommended that i install Ant build tool as
well as Concurrent Version System (CVS) too.
Can someone tell me, how much neccesary are these to install and use?
How it can help me for developing my application?
 
A

Arne Vajhøj

ruds said:
I have installed tomcat5.5.
In the tomcat docs it is recommended that i install Ant build tool as
well as Concurrent Version System (CVS) too.
Can someone tell me, how much neccesary are these to install and use?
How it can help me for developing my application?

Not necessary - you can run without.

But I would say that ant is practical as build tool, because
it can build your app, deploy it and manage your app.

You should use source control, but CVS or something else
should not matter.

Arne
 
R

ruds

Does tomcat5.5 have jdbc driver or i have to install one?
I'm asking this because i tried runing my application and it is giving
me an error:
org.apache.jasper.JasperException: [Microsoft][ODBC Driver Manager]
Data source name not found and no default driver specified

I have written the following code for db connection:
public class DataConnection
{
public static Connection connect() throws java.sql.SQLException
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch(Exception e)
{
System.out.println("Exception while connecting to database");
e.printStackTrace();
}
return java.sql.DriverManager.getConnection("jdbc:eek:dbc:FTPDSN");
}
}

amd I'm calling this function in my jsp pages for accessing my data.
 
A

Arne Vajhøj

ruds said:
Does tomcat5.5 have jdbc driver or i have to install one?
I'm asking this because i tried runing my application and it is giving
me an error:
org.apache.jasper.JasperException: [Microsoft][ODBC Driver Manager]
Data source name not found and no default driver specified
return java.sql.DriverManager.getConnection("jdbc:eek:dbc:FTPDSN");

I believe that error means that you do not have a DSN with the
name FTPDSN (system or user for the username Tomcat is running under).

Arne
 
R

ruds

ruds said:
Does tomcat5.5 have jdbc driver or i have to install one?
I'm asking this because i tried runing my application and it is giving
me an error:
org.apache.jasper.JasperException: [Microsoft][ODBC Driver Manager]
Data source name not found and no default driver specified
return java.sql.DriverManager.getConnection("jdbc:eek:dbc:FTPDSN");

I believe that error means that you do not have a DSN with the
name FTPDSN (system or user for the username Tomcat is running under).

Arne

The error is returned when executing the jsp page. I get the required
result if I execute the java file.
I'm importing the package in jsp page in which the code for database
connection is present.
e.g.:In my jsp page,

Connection mycon=mypack.DataConnection.connect(); //Error occured??
Statement stmt=mycon.createStatement();
ResultSet rs;
 
A

Arne Vajhøj

ruds said:
ruds said:
Does tomcat5.5 have jdbc driver or i have to install one?
I'm asking this because i tried runing my application and it is giving
me an error:
org.apache.jasper.JasperException: [Microsoft][ODBC Driver Manager]
Data source name not found and no default driver specified
return java.sql.DriverManager.getConnection("jdbc:eek:dbc:FTPDSN");
I believe that error means that you do not have a DSN with the
name FTPDSN (system or user for the username Tomcat is running under).

The error is returned when executing the jsp page. I get the required
result if I execute the java file.
I'm importing the package in jsp page in which the code for database
connection is present.
e.g.:In my jsp page,

Yes. But does your standalone app and Tomcat run in the same
context ?

Arne
 
R

ruds

The error is returned when executing the jsp page. I get the required
Yes. But does your standalone app and Tomcat run in the same
context ?

Arne-

same context? sorry but I didnt get you..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top