Tomcat5.5 query  
Author Message
ruds





PostPosted: 12/16/2007 12:42:00 PM Top

java-programmer, Tomcat5.5 query 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?
 
Arne Vajh?





PostPosted: 12/16/2007 12:57:00 PM Top

java-programmer >> Tomcat5.5 query ruds wrote:
> 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
 
ruds





PostPosted: 12/16/2007 1:24:00 PM Top

java-programmer >> Tomcat5.5 query 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:odbc:FTPDSN");
}
}

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


 
 
Arne Vajh?





PostPosted: 12/17/2007 12:56:00 AM Top

java-programmer >> Tomcat5.5 query ruds wrote:
> 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:odbc: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
 
 
ruds





PostPosted: 12/17/2007 11:45:00 AM Top

java-programmer >> Tomcat5.5 query On Dec 16, 9:56 pm, Arne Vajh? <email***@***.com> wrote:
> ruds wrote:
> > 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:odbc: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;





 
 
Arne Vajh?





PostPosted: 12/17/2007 11:55:00 AM Top

java-programmer >> Tomcat5.5 query ruds wrote:
> On Dec 16, 9:56 pm, Arne Vajh? <email***@***.com> wrote:
>> ruds wrote:
>>> 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:odbc: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
 
 
ruds





PostPosted: 12/17/2007 1:57:00 PM Top

java-programmer >> Tomcat5.5 query > > 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-

same context? sorry but I didnt get you..

 
 
Arne Vajh?





PostPosted: 12/18/2007 10:37:00 AM Top

java-programmer >> Tomcat5.5 query ruds wrote:
>>> 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 ?
>
> same context? sorry but I didnt get you..

Same username among other things.

Arne
 
 
ruds





PostPosted: 12/18/2007 12:18:00 PM Top

java-programmer >> Tomcat5.5 query > > same context? sorry but I didnt get you..
>
> Same username among other things.
>
> Arne

yes. I'm using it on same machine with my login.