changes in application after upgrading tomcat4 to tomcat6

R

ruds

Hi
Can someone tell me what changes i have to make to my existing
application currently running on tomcat 4 after i upgrade it to tomcat
6?
Thanks in advance for your help.
 
A

Arne Vajhøj

ruds said:
Can someone tell me what changes i have to make to my existing
application currently running on tomcat 4 after i upgrade it to tomcat
6?

First guess: none.

So try it and see what error you get (if any) and take it from
there.

Arne
 
L

Lew

Arne said:
First guess: none.

So try it and see what error you get (if any) and take it from
there.

Well, you will have to redeploy the application into the webapps/ of the new
Tomcat.
 
R

ruds

I have installed tomcat6 and java 6 on my server, which is Windows
server 2003.
tomcat selected jre6 instead of jdk while installing, will it give me
problem?
after i deployed my existing application which was running on tomcat4
to the new onw i get an error as 'Data Source name not found'.
I have changed a Environment Variables to the new ones.
what might be the problem?
 
L

Lew

ruds said:
I have installed tomcat6 and java 6 on my server, which is Windows
server 2003.
tomcat selected jre6 instead of jdk while installing, will it give me
problem?

Tomcat doesn't need the JDK. The JDK is for building the applications, the
JRE is for running them.

The JDK includes a JRE, but that's not important here.
after i [sic] deployed my existing application which was running on tomcat4
to the new onw i get an error as 'Data Source name not found'.
I have changed a Environment Variables to the new ones.
what might be the problem?

Data Sources have to be defined in a deployment descriptor; they don't come
from environment variables.

<http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html>

I admit that I find the instructions a bit tricky myself.
 
R

ruds

ruds said:
I have installed tomcat6 and java 6 on my server, which is Windows
server 2003.
tomcat selected jre6 instead of jdk while installing, will it give me
problem?

Tomcat doesn't need the JDK. The JDK is for building the applications, the
JRE is for running them.

The JDK includes a JRE, but that's not important here.
after i [sic] deployed my existing application which was running on tomcat4
to the new onw i get an error as 'Data Source name not found'.
I have changed a Environment Variables to the new ones.
what might be the problem?

Data Sources have to be defined in a deployment descriptor; they don't come
from environment variables.

<http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howt...>

I admit that I find the instructions a bit tricky myself.

If i download postgresSQL JDBC driver will it work on windows?
Previuosly i did'nt require this to be done.Why so?
 
N

Nigel Wade

Lew said:
Tomcat doesn't need the JDK. The JDK is for building the applications, the
JRE is for running them.

What about JSP? Does it need a compiler for those, or does it have one built in?
[I've never used JSP.]
 
T

Thomas Kellerer

Lew, 11.12.2007 06:12:
Tomcat doesn't need the JDK. The JDK is for building the applications,
the JRE is for running them.

Not sure about Tomcat6, but Tomcat4 definitely needed the JDK because it
used javac to compile the servlets generated from the JSP pages.
 
L

Lew

Nigel said:
Lew said:
Tomcat doesn't need the JDK. The JDK is for building the applications, the
JRE is for running them.

What about JSP? Does it need a compiler for those, or does it have one built in?
[I've never used JSP.]

You might be right. (Checking . . . )

It looks like you are absolutely correct.
 
L

Lew

Nigel said:
Lew said:
Tomcat doesn't need the JDK. The JDK is for building the applications, the
JRE is for running them.

What about JSP? Does it need a compiler for those, or does it have one built in?
[I've never used JSP.]

You can use precompiled JSPs and install Tomcat just with a JRE.
For Tomcat to function fully you need a full Java Development Kit (JDK),
If you intend to simply run pre compiled JavaServer pages
you can do so using just the Java Runtime Environment(JRE).
<http://www.recital.com/articles/cm/tomcat/article.htm>
 
L

Lew

Thomas said:
Lew, 11.12.2007 06:12:

Not sure about Tomcat6, but Tomcat4 definitely needed the JDK because it
used javac to compile the servlets generated from the JSP pages.

See the response to Nigel Wade's post.
 
R

ruds

From where do I get the JDBC driver for MS Access Sun java's site has
so many links...
Which would be the right one? and free to download.
 
S

Sabine Dinis Blochberger

ruds said:
From where do I get the JDBC driver for MS Access Sun java's site has
so many links...
Which would be the right one? and free to download.

I would first see if Microsoft provides a JDBC driver for Access. If
not, maybe the generic JDBC-ODBC driver works.
 
T

Thomas Kellerer

ruds, 12.12.2007 07:38:
From where do I get the JDBC driver for MS Access Sun java's site has
so many links...
Which would be the right one? and free to download.

There is no JDBC driver for Access (at least no free one as far as I
know). There is only an ODBC driver (which is shipped together with
Windows).

You need to use the JDBC/ODBC bridge to connect to an Access database.
That bridge is part of the JDK, so you don't need to download anything.

You don't need to create a DataSource to be able to connect to Access,
as you can specify the database file directly:

jdbc:eek:dbc:DRIVER={Microsoft Access Driver
(*.mdb)};DBQ=c:\Daten\db\access\test.mdb

(Note the URL is one line only)

Thomas
 
R

ruds

I have loaded jdbc driver from weblogic in my tomcat.
But still my application wont work i have changed the files according
to Tomcat's documentation as suggested to me by Lew.
Does someone have a step by step and simple way of to doing database
connection.Please et me know as the documentation is very confusing..
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top