RE: mod_jk.log errors

2003-05-27 Thread Marco Laponder
> OK, let's take a step back and answer a few questions:
> 
> 1.  what module is being loaded by Apache?  This is done using the 
> LoadModule directive.  Is it mod_jk.so, mod_jk2.so, or both?

It is mod_jk.so it is in the mod_jk.conf which is included from the
httpd.conf. The mod_jk.conf was autogenerated initially.

mod_jk.conf:

  LoadModule jk_module /usr/lib/httpd/modules/mod_jk.so
  

> 
> 2.  what connectors do you have enabled in server.xml?  There 
> are 2 by 
> default: one on 8080, and one on 8009.  There shouldn't be any others 
> unless you absolutely need them, and in production with 
> Apache and JK/JK2 
> you can disable the connector on port 8080.

Hmm, this might be the problem then, I see a lot of connector in the
server.xml file. I pasted the server.xml at the bottom of my message. I
didn't change it much I thought but maybe I messed up somewhere. Is there a
way to recreate the default server.xml file ? 

> 
> 3.  how is Apache getting its JK/JK2 configuration?  Did you modify 
> httpd.conf by hand, or are you using some other method?

I auto-generated mod_jk.conf and included that in the httpd.conf file. I use
now a copie of that file so it will not be overwritten by the autogenerate.

> 
> 4.  what .properties files do you have on your system, where 
> are they, and 
> what are their contents?

./etc/tomcat4/jk2.properties

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

I donnot understand why I have this as I think I have jk and not jk2. Not
that I build the mod_jk.so from source as there was no binary for linux
redhat-8.0 available.

./etc/tomcat4/jk/workers.properties  

# workers.properties -
#
# This file provides jk derived plugins with the needed information to
# connect to the different tomcat workers.  Note that the distributed
# version of this file requires modification before it is usable by a
# plugin.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to do is un-comment and modify the first three
# properties, i.e. workers.tomcat_home, workers.java_home and ps.
# Most of the configuration is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009
# - A jni inprocess worker.
# - A load balancer worker
#
# However by default the plugins will only use the ajp12 worker. To have
# the plugins use other workers you should modify the worker.list property.
#
#

# OPTIONS ( very important for jni mode ) 

#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=/var/tomcat4

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/usr/java/j2sdk1.4.1_02

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/

#
#-- ADVANCED MODE 
#-
#

#
#-- DEFAULT worket list --
#-
#
#
# The workers that your plugins should create and work with
#
# Add 'inprocess' if you want JNI connector 
worker.list=ajp12, ajp13
# , inprocess


#
#-- DEFAULT ajp12 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp12 and of type ajp12
# Note that the name and the type do not have to match.
#
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.ajp12.lbfactor=1

#
#-- D

Re: [ot] Re: Tomcat and Weblogic Integration

2003-05-27 Thread John Turner
As already pointed out, Weblogic != Tomcat.  Tomcat does not do J2EE.  
Comparing the two gets you nowhere.  People should use what works, and 
making assumptions or judgements about product quality based on whether 
something costs money or not is foolish.  The proof of that is everywhere.

John

On Tue, 27 May 2003 11:34:27 -0400, Kannan Sundararajan 
<[EMAIL PROTECTED]> wrote:

Tim,

Your experience is application specific. Since each company has specific
experience, and lot of changes in their environment, it is very difficult 
to
say about it. The proper plan in architecture, hardware, OS, code, 
database
and other segments leads to success of a product.

Always some percent of programmers disagrees about their quality of code 
(
it was bad, but not that bad ). I hope future app server will check these
codes :)

Kannan

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 11:21 AM
To: Tomcat Users List
Subject: [ot] Re: Tomcat and Weblogic Integration
I must disagree with weblogic performance from my own painful experience. 
I ran a site with weblogic which was as stable as a 2 year old running 
with a oversized beach ball on a windy day.

We were told it was our coding (it was bad, but not that bad). They had 
one of their ISVs come in and critique our site and they said they could 
rewrite

it in 4 months and a LOT of money and all would be solved. Meaning we had 
to

freeze all work for 4 months. We were tempted to do so because of the 
stability issues.

Then we switched to tomcat + apache - the speed was measurably faster and 
much more reliable/stable with no code changes (excluding fixing some
servlet api compliance issues). The only real code difference was I 
needed to write
a database pooling library (couldn't use dbcp yet) and bridge to the 
custom weblogic code we were using.

-Tim

Kannan Sundararajan wrote:
I disagree on this Yoav. I have used both WebLogic and Tomcat. You pay
what
you get it. If it is free that is your/our choice. Positively weblogic 
is
much more and better than tomcat. But still price concerns, we are using
tomcat. But if you on quality and the performance, weblogic is always
better.

WebLogic.jar is specific to weblogic and if you are using against other
jar
files, there could be lot of times you may end up getting error. I don't
think legally it is advisable to use the jar files from WebLogic to
tomcat,
unless you pay for the jar file for weblogic.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


System cannot find the path specified !

2003-05-27 Thread DominskiS
Hello Tomcat People,
   Trying to get started using Tomcat. I did:

1) C:\> set PATH = j2sdk1.4.0_03
2) C:\> set PATH = %JAVA_HOME%\bin;%PATH%
3) C:\> set JDBC_HOME = C:\oracle\jdbc\lib
4) C:\> CATALINA_HOME\bin\startup.bin

The error message says:
" system cannot find the path specified "

Your suggestions are appreciated
Stan


RE: Stopping caching in tomcat

2003-05-27 Thread pete . storey
Surely a querystring has no bearing on a URL mapping?  I will add some 
logging though to see.  I have solved the problem with a workaround by 
putting in  tags in the header.  After looking at MSDN I 
have added a subtely different tag of expires=-1 instead of expires=0 and 
it does now work, but essentially Im not sure why it works on the page 
itself but not as real headers.  Id certainly rather have the filter work 
instead of writing these into every page where they can easily be missed 
out.
Hmm!
Pete





"Shapira, Yoav" <[EMAIL PROTECTED]>
27/05/2003 15:20
Please respond to "Tomcat Users List"
 
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc: 
Subject:RE: Stopping caching in tomcat



Howdy,
1. Meta tags will work.  They are almost the same as what you're putting
in the filter.  However, I like your filter approach better, so

2. Have you verified your filter is correctly mapped?  Add some logging
statements to it, as I for one am not sure it's being mapped to your
first action.  /*.ktx does not match /startquote.ktx?policyID=1 because
of the part after .ktx.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 7:25 AM
>To: [EMAIL PROTECTED]
>Subject: Stopping caching in tomcat
>
>Hi,
>Im running a Tomcat/IIS app and I have a major problem in that I am
using
>struts to power a set of actions in the site and the first action that
is
>linked to is done as a link : /startquote.ktx?policyID=1 .  IE6 however
>caches this page and so doesnt run the action to pull up the page.
this
>causes various things not to be set up properly.
>Furthermore, the index page is also cached which means that a session
is
>not instatiated for the user so the first time they submit a page, they
>get a session timed out problem.
>I have written a filter which I hoped would cure caching but it hasnt
made
>any difference.  I know caching is a problem but I cant seem to find
any
>way around it!  Has anyone got any ideas?  Putting in meta tags has
never
>really worked before but maybe it will - if so what should they be?
>
>The filter is below:
>
>/*
> * AntiCachingFilter.java
> *
> * Created on 27 May 2003, 10:58
> */
>
>package com.ktdev.filters;
>
>import java.io.*;
>import java.net.*;
>import java.util.*;
>import java.text.*;
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>import javax.servlet.Filter;
>import javax.servlet.FilterChain;
>import javax.servlet.FilterConfig;
>import javax.servlet.ServletContext;
>import javax.servlet.ServletException;
>import javax.servlet.ServletRequest;
>import javax.servlet.ServletResponse;
>
>/**
> *
> * @author  Pete Storey
> * @version
> */
>
>public class AntiCachingFilter extends GenericFilter {
>
>public AntiCachingFilter() {
>}
>
>/**
> *
> * @param request The servlet request we are processing
> * @param result The servlet response we are creating
> * @param chain The filter chain we are processing
> *
> * @exception IOException if an input/output error occurs
> * @exception ServletException if a servlet error occurs
>
> */
>public void doFilter(ServletRequest request, ServletResponse
response,
>FilterChain chain)
>throws IOException, ServletException {
>
>HttpServletResponse httpResponse = (HttpServletResponse)
response;
>
>httpResponse.setHeader("Pragma", "no-cache");
>httpResponse.setHeader("Expires", "0");
>httpResponse.setHeader("Cache-control", "no-cache,
>must-revalidate");
>
>// Go on to the next one
>chain.doFilter(request, response);
>
>}
>
>}
>
>In web.xml
>
>  
>AntiCachingFilter
>Sets anti caching headers in the
response
>com.ktdev.filters.AntiCachingFilter
>  
>
>  
>AntiCachingFilter
>/*.ktx
>  
>
>Thanks
>Pete
>
>Kiss Technologies
>
>http://www.kisstechnologies.co.uk/
>
>Please note, we have moved!
>
>4, Percy Street
>London
>W1T 1DF
>
>New permanent phone numbers:
>
>Phone 020 7692 9922
>Fax 020 7692 9923



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: System cannot find the path specified !

2003-05-27 Thread John Turner
Try startup.bat.  There is no startup.bin.

John

On Tue, 27 May 2003 11:56:30 EDT, <[EMAIL PROTECTED]> wrote:

Hello Tomcat People,
Trying to get started using Tomcat. I did:
1) C:\> set PATH = j2sdk1.4.0_03
2) C:\> set PATH = %JAVA_HOME%\bin;%PATH%
3) C:\> set JDBC_HOME = C:\oracle\jdbc\lib
4) C:\> CATALINA_HOME\bin\startup.bin
The error message says:
" system cannot find the path specified "
Your suggestions are appreciated
Stan


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: System cannot find the path specified !

2003-05-27 Thread George Sexton
Assuming CATALINA_HOME has already been set, then 4 should be:

4) C:\> %CATALINA_HOME%\bin\startup.bin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 9:57 AM
To: [EMAIL PROTECTED]
Subject: System cannot find the path specified !


Hello Tomcat People,
   Trying to get started using Tomcat. I did:

1) C:\> set PATH = j2sdk1.4.0_03
2) C:\> set PATH = %JAVA_HOME%\bin;%PATH%
3) C:\> set JDBC_HOME = C:\oracle\jdbc\lib
4) C:\> CATALINA_HOME\bin\startup.bin

The error message says:
" system cannot find the path specified "

Your suggestions are appreciated
Stan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk.log errors

2003-05-27 Thread John Turner
Your server.xml file looks OK.

Does Tomcat work by itself on port 8080?  Let's deal with that first.  You 
should be able to independently reach both http://localhost (Apache) and 
http://locahost:8080 (Tomcat).  Remember that you don't need Apache if you 
don't want it...Tomcat works just fine as an HTTP server on port 80 if you 
can handle the consequences (running as root on port 80, etc.).

Next, delete jk2.properties.  You don't need it.

Next, change workers.properties.  Get rid of all the stuff in there.  
Workers.properties, to start, just needs this:

# BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties
Remember that you don't need JK/JK2 or Apache if you don't want it.  Only 
proceed with configuring JK or JK2 once you can verify that BOTH Apache and 
Tomcat work fine by themselves.

I really suggest looking at my HOWTO, at least for background.  It covers 
everything step by step.  http://www.johnturner.com/howto.

John

On Tue, 27 May 2003 17:38:15 +0200, Marco Laponder <[EMAIL PROTECTED]> 
wrote:

OK, let's take a step back and answer a few questions:

1.  what module is being loaded by Apache?  This is done using the 
LoadModule directive.  Is it mod_jk.so, mod_jk2.so, or both?
It is mod_jk.so it is in the mod_jk.conf which is included from the
httpd.conf. The mod_jk.conf was autogenerated initially.
mod_jk.conf:

LoadModule jk_module /usr/lib/httpd/modules/mod_jk.so

2.  what connectors do you have enabled in server.xml?  There are 2 by 
default: one on 8080, and one on 8009.  There shouldn't be any others 
unless you absolutely need them, and in production with Apache and 
JK/JK2 you can disable the connector on port 8080.
Hmm, this might be the problem then, I see a lot of connector in the
server.xml file. I pasted the server.xml at the bottom of my message. I
didn't change it much I thought but maybe I messed up somewhere. Is there 
a
way to recreate the default server.xml file ?

3.  how is Apache getting its JK/JK2 configuration?  Did you modify 
httpd.conf by hand, or are you using some other method?
I auto-generated mod_jk.conf and included that in the httpd.conf file. I 
use
now a copie of that file so it will not be overwritten by the 
autogenerate.

4.  what .properties files do you have on your system, where are they, 
and what are their contents?
./etc/tomcat4/jk2.properties

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: # channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
I donnot understand why I have this as I think I have jk and not jk2. Not
that I build the mod_jk.so from source as there was no binary for linux
redhat-8.0 available.
./etc/tomcat4/jk/workers.properties

# workers.properties -
#
# This file provides jk derived plugins with the needed information to
# connect to the different tomcat workers.  Note that the distributed
# version of this file requires modification before it is usable by a
# plugin.
#
# As a general note, the characters $( and ) are used internally to 
define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to do is un-comment and modify the first 
three
# properties, i.e. workers.tomcat_home, workers.java_home and ps.
# Most of the configuration is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and 
ps
# you should have 3 workers configured:
#
# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009
# - A jni inprocess worker.
# - A load balancer worker
#
# However by default the plugins will only use the ajp12 worker. To have
# the plugins use other workers you should modify the worker.list 
property.
#
#

# OPTIONS ( very important for jni mode )

#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=/var/tomcat4
#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/usr/java/j2sdk1.4.1_02
#
# You should configure your environment slash... p

RE: Is servlet chaining possible using Tomcat

2003-05-27 Thread Schwartz, David (CHR)
what is servlet chaining?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 11:40 AM
To: Tomcat Users List
Subject: RE: Is servlet chaining possible using Tomcat



Howdy,
The real question is, is servlet chaining part of the Servlet
Specification?  If the answer to that is "yes" then the answer to your
original question is also "yes."

See the request dispatcher forward and include methods.  The resources
your forward to or include in your requests can be servlets or JSPs.  

Also check out the idea of filters.  This is a newer idea than servlet
chaining and in some cases offers a better alternative.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Bilal Ahmad [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 11:38 AM
>To: [EMAIL PROTECTED]
>Subject: Is servlet chaining possible using Tomcat
>
>Is servlet chaining possible in tomcat like in java web server
>
>_
>The new MSN 8: smart spam protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is servlet chaining possible using Tomcat

2003-05-27 Thread Shapira, Yoav

Howdy,
See example:
http://www.java-conf.gr.jp/wg_bof/servlet/docs/980914/naka/KMCAppendix2.
html

It relies on the deprecated (with no replacement, for good reasons)
ServletContext#getServlet(String) method.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 12:16 PM
>To: 'Tomcat Users List'
>Subject: RE: Is servlet chaining possible using Tomcat
>
>what is servlet chaining?
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 11:40 AM
>To: Tomcat Users List
>Subject: RE: Is servlet chaining possible using Tomcat
>
>
>
>Howdy,
>The real question is, is servlet chaining part of the Servlet
>Specification?  If the answer to that is "yes" then the answer to your
>original question is also "yes."
>
>See the request dispatcher forward and include methods.  The resources
>your forward to or include in your requests can be servlets or JSPs.
>
>Also check out the idea of filters.  This is a newer idea than servlet
>chaining and in some cases offers a better alternative.
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Bilal Ahmad [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, May 27, 2003 11:38 AM
>>To: [EMAIL PROTECTED]
>>Subject: Is servlet chaining possible using Tomcat
>>
>>Is servlet chaining possible in tomcat like in java web server
>>
>>_
>>The new MSN 8: smart spam protection and 2 months FREE*
>>http://join.msn.com/?page=features/junkmail
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat - JDBC - MS SQL Driver Recommendations? (was: Tomcat / JDBC / MSSQL / Connection lost and won't reconnect)

2003-05-27 Thread pete . storey
We use iNet software's Sprinta 2000 driver and find it excellent.  It is 
high performance and provides considerably more features than the MS 
driver.  It is not very high cost (a few hundred dollars for a site 
license IIRC) and is both fully type 4 compliant and small.
Their whole range of drivers is very good and I have found them to be a 
lot better than any others for type 4 drivers - I would use them every 
time (and I have for some of their other products too!)
Go to www.inetsoftware.de if you would like a look
Pete





"Paul \(BRI\)" <[EMAIL PROTECTED]>
27/05/2003 16:13
Please respond to "Tomcat Users List"
 
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc: 
Subject:Tomcat - JDBC - MS SQL Driver Recommendations? 
(was: Tomcat / JDBC / MS SQL / Connection lost and won't reconnect)


I had posted this question about reconnection problems with MS's JDBC
driver. While it turned out that no one had the same issue on this, I
wondered what drivers are best for Tomcat -> SQL Server. Are there other
suitable free drivers? Are others using commercial drivers? I have read
some of the reviews on various sites - but words from those actually
using the drivers would be appreciated.

If this question seems to afar from tomcat I would be happy to post
elsewhere. But it is nice to find a good group dedicated to tomcat -
this is new to me (coming from MS) and I have been happy so far learning
more each day.

Thanks for your help,

Paul

-Original Message-
From: Paul (BRI) [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 23, 2003 10:28 AM
To: [EMAIL PROTECTED]
Subject: Tomcat / JDBC / MS SQL / Connection lost and won't reconnect


I am having a problem that I am guessing can't be uncommon. I wanted to
provide details on my exact setup to see if anyone has solved this...or
if I am doing something stupid..

I have: Tomcat 4.1.x, Microsoft's JDBC Type 4 driver, and MS SQL Server
2000. Tomcat is running on a linux (red hat) box and SQL Server is
running on a separate box (with Windows 2000 Server). The application
sitting on the linux box is a web application. Tomcat is the only server
(for the web and servlets).

I noticed that if there is any interruption in the network connection
between the two boxes the connection is dropped and Tomcat (or the
driver) will not reconnect until I shutdown/startup Tomcat. I have seen
some code for autoReconnect for mySQL and wasn't clear if that was the
answer for MS drivers. If so, what is the syntax for this? 

I am curious if this is common. Or, is using a Microsoft Driver the
problem? :o It seens hard to believe that the default behavior of the
driver allows for this connection drop. Am I doing something else wrong?

Below is the resource entry in my server.xml file. Thank you very much
for your help. Paul




 
 
 factory
 
org.apache.commons.dbcp.BasicDataSourceFactory
 

 
 
 username
 myUserName/value>
 

 
 
 password
 myPassword
 

 
 
 driverClassName
 
com.microsoft.jdbc.sqlserver.SQLServerDriver
 

 
 
 url
 
jdbc:microsoft:sqlserver://xxx.xxx.xxx.xxx:;DatabaseName=myNa
me
 

 
 
 removeAbandoned
 true
 

 
 
 removeAbandonedTimeout
 60
 

 
 
 maxActive
 100
 
 
 
 
 maxIdle
 30
 

 
 
 maxWait
 -1
 
 
<-- end //-->



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: System cannot find the path specified !

2003-05-27 Thread DominskiS

>>Assuming CATALINA_HOME has already been set, then 4 should be:

At the command prompt I did:
C:\> set CATALINA_HOME = C:\jakarta-tomcat-5-bin-20030526

then I did :
C:\> CATALINA_HOME\bin\startup.bat

and I also tried:
C:\> %CATALINA_HONE%\bin\startup.bat

the error message both times was:
"system cannot find the path specified"

Thank you for your advice
Stan



> 4) C:\> %CATALINA_HOME%\bin\startup.bin
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 27, 2003 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: System cannot find the path specified !
> 
> 
> Hello Tomcat People,
>   Trying to get started using Tomcat. I did:
> 
> 1) C:\> set PATH = j2sdk1.4.0_03
> 2) C:\> set PATH = %JAVA_HOME%\bin;%PATH%
> 3) C:\> set JDBC_HOME = C:\oracle\jdbc\lib
> 4) C:\> CATALINA_HOME\bin\startup.bin
> 
> The error message says:
> " system cannot find the path specified "
> 
> Your suggestions are appreciated
> Stan
> 



Re: System cannot find the path specified !

2003-05-27 Thread Ben Souther
Try setting the env variable without spaces:
set CATALINA_HOME=C:\jakarta-tomcat-5-bin-20030526

Then test it:
echo %CATALINA_HOME%
It will print the value to the command window.

Then test it for accuracy:
cd %CATALINA_HOME%
That should put you in the catalina directory.


On Tuesday 27 May 2003 12:31 pm, [EMAIL PROTECTED] wrote:
> >>Assuming CATALINA_HOME has already been set, then 4 should be:
>
> At the command prompt I did:
> C:\> set CATALINA_HOME = C:\jakarta-tomcat-5-bin-20030526
>
> then I did :
> C:\> CATALINA_HOME\bin\startup.bat
>
> and I also tried:
> C:\> %CATALINA_HONE%\bin\startup.bat
>
> the error message both times was:
> "system cannot find the path specified"
>
> Thank you for your advice
> Stan
>
> > 4) C:\> %CATALINA_HOME%\bin\startup.bin
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 27, 2003 9:57 AM
> > To: [EMAIL PROTECTED]
> > Subject: System cannot find the path specified !
> >
> >
> > Hello Tomcat People,
> >   Trying to get started using Tomcat. I did:
> >
> > 1) C:\> set PATH = j2sdk1.4.0_03
> > 2) C:\> set PATH = %JAVA_HOME%\bin;%PATH%
> > 3) C:\> set JDBC_HOME = C:\oracle\jdbc\lib
> > 4) C:\> CATALINA_HOME\bin\startup.bin
> >
> > The error message says:
> > " system cannot find the path specified "
> >
> > Your suggestions are appreciated
> > Stan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is servlet chaining possible using Tomcat

2003-05-27 Thread Kannan Sundararajan
Here is the link which can explain about servlet chaining
http://info.borland.com/techpubs/books/appserver/appserver40/web/servlets/se
rvlet_chains.html

-Original Message-
From: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 12:16 PM
To: 'Tomcat Users List'
Subject: RE: Is servlet chaining possible using Tomcat


what is servlet chaining?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 11:40 AM
To: Tomcat Users List
Subject: RE: Is servlet chaining possible using Tomcat



Howdy,
The real question is, is servlet chaining part of the Servlet
Specification?  If the answer to that is "yes" then the answer to your
original question is also "yes."

See the request dispatcher forward and include methods.  The resources
your forward to or include in your requests can be servlets or JSPs.  

Also check out the idea of filters.  This is a newer idea than servlet
chaining and in some cases offers a better alternative.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Bilal Ahmad [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 11:38 AM
>To: [EMAIL PROTECTED]
>Subject: Is servlet chaining possible using Tomcat
>
>Is servlet chaining possible in tomcat like in java web server
>
>_
>The new MSN 8: smart spam protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Proper way to deal with serialization of session attribute with Loggerattribute

2003-05-27 Thread Karr, David
I'm using JDK 1.4.1, and Tomcat 4.1.24.

I was seeing a strange situation where some cactus/ant tests of mine
would succeed on one run, and then fail on the next, and alternate in
that pattern continuously.

After looking carefully at the Tomcat logs, I discovered that a class
that is instantiated and then put into the session has a Log4J Logger
object.  Tomcat tries to persist that session, but it fails because
Logger is not serializable.

If I want to allow objects of this class to be serialized and
deserialized, how do I deal with the contained Logger object?

The class presently defines it's "logger" instance variable like this:

protected final Logger logger =
Logger.getLogger(this.getClass());

Do I instead have to make this "transient" and change all the references
to the "logger" instance variable to call an accessor which tries to
initialize the value first if it's null?  Or perhaps do I have to add
"writeObject()" and "readObject()" methods where the "writeObject()"
method specifically writes all the fields but this one, and the
"readObject()" method reads all those fields, and then manually sets the
"logger" value?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Proper way to deal with serialization of session attribute withLogger attribute

2003-05-27 Thread Tom Oinn
Make the logger static? Effectively the same as you're creating it from 
the class name anyway, and avoids attempts to serialize it as it's not 
attached to an object of any kind.

Tom

Karr, David wrote:
I'm using JDK 1.4.1, and Tomcat 4.1.24.

I was seeing a strange situation where some cactus/ant tests of mine
would succeed on one run, and then fail on the next, and alternate in
that pattern continuously.
After looking carefully at the Tomcat logs, I discovered that a class
that is instantiated and then put into the session has a Log4J Logger
object.  Tomcat tries to persist that session, but it fails because
Logger is not serializable.
If I want to allow objects of this class to be serialized and
deserialized, how do I deal with the contained Logger object?
The class presently defines it's "logger" instance variable like this:

protected final Logger logger =
Logger.getLogger(this.getClass());
Do I instead have to make this "transient" and change all the references
to the "logger" instance variable to call an accessor which tries to
initialize the value first if it's null?  Or perhaps do I have to add
"writeObject()" and "readObject()" methods where the "writeObject()"
method specifically writes all the fields but this one, and the
"readObject()" method reads all those fields, and then manually sets the
"logger" value?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat - JDBC - MS SQL Driver Recommendations? (was: Tomcat / JDBC / MS SQL / Connection lost and won't reconnect)

2003-05-27 Thread Jason Bainbridge
On Tue, 27 May 2003 23:13, Paul \(BRI\) wrote:
>  had posted this question about reconnection problems with MS's JDBC
> driver. While it turned out that no one had the same issue on this, I
> wondered what drivers are best for Tomcat -> SQL Server. Are there other
> suitable free drivers?

We've recently switched to http://jtds.sourceforge.net/ it's Open Source, a 
Type 4 JDBC driver and almost fully JDBC 2.0 compliant.

Definitely worth trying. :)

-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running Jakarta-Tomcat-3.3.1a as a service

2003-05-27 Thread James . DeForge
I'm running W2K Advanced Server and am running Jakarta-Tomcat-3.3.1a.  How
do I set this up to run as a service?

Thanks,
James DeForge
Systems Enterprise Management - SYSEM
First Data Resources (FDR)
402-777-4303 Work
402-777-1268 Fax
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is this possible?

2003-05-27 Thread Kannan Sundararajan
Nope it is not possible

-Original Message-
From: Rohit Peyyeti [mailto:[EMAIL PROTECTED]
Sent: Monday, May 26, 2003 3:31 AM
To: Tomcat Users List
Subject: Is this possible?


Hello:

Is this scenario possible?

I want to run tomcat 3.1, tomcat 4.1 and apache 1.3 on the 
same machine and both need to share single apache 1.3 instance 
with Virtual Hosts in place. 

I have several apps which are already running on tomcat 3.1/apache 1.3 
and I want to port one app to tomcat 4/apache 1.3 without touching
rest of the apps.  

If yes, can anybody guide me?

Cheers

Rohit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS
>Try setting the env variable without spaces:
set CATALINA_HOME=C:\jakarta-tomcat-5-bin-20030526

   Thank you very  much 
By taking out the spaces when I did
   C:\>set CATALINA_HOME=C:\jakarta-tamcat-5-bin-20030526

 and

C:\>cd %CATALINA_HOME%

I got:

C:\jakarta-tomcat-5-bin-20030526

But now I should be able to startup the Tomcat with
CATALINA_HOME\bin\startuup.bat

My prompt is at

C:\jakarta-tomcat-5-bin-20030526> _

but if I type in 
C:\jakarta-tomcat-5-bin-20030526> cd 
C:\jakarta-tomcat-5-bin-20030526\bin\startup.bat

I get   "The system cannot find the path specified"

Your assistance is appreciated !
Stan





> 
> Then test it:
> echo %CATALINA_HOME%
> It will print the value to the command window.
> 
> Then test it for accuracy:
> cd %CATALINA_HOME%
> That should put you in the catalina directory.
> 
> 
> On Tuesday 27 May 2003 12:31 pm, [EMAIL PROTECTED] wrote:
> >>>Assuming CATALINA_HOME has already been set, then 4 should be:
> >
> >At the command prompt I did:
> >C:\> set CATALINA_HOME = C:\jakarta-tomcat-5-bin-20030526
> >
> >then I did :
> >C:\> CATALINA_HOME\bin\startup.bat
> >
> >and I also tried:
> >C:\> %CATALINA_HONE%\bin\startup.bat
> >
> >the error message both times was:
> >"system cannot find the path specified"
> >
> >Thank you for your advice
> >Stan
> >
> >>4) C:\> %CATALINA_HOME%\bin\startup.bin
> >>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, May 27, 2003 9:57 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: System cannot find the path specified !
> >>
> >>
> >>Hello Tomcat People,
> >>  Trying to get started using Tomcat. I did:
> >>
> >>1) C:\> set PATH = j2sdk1.4.0_03
> >>2) C:\> set PATH = %JAVA_HOME%\bin;%PATH%
> >>3) C:\> set JDBC_HOME = C:\oracle\jdbc\lib
> >>4) C:\> CATALINA_HOME\bin\startup.bin
> >>
> >>The error message says:
> >>" system cannot find the path specified "
> >>
> >>Your suggestions are appreciated
> >>Stan
> 
> 



RE: Proper way to deal with serialization of session attribute with Logger attribute

2003-05-27 Thread Shapira, Yoav

Howdy,
It's dangerous to stick class objects in a session object as attributes,
precisely for these serializable type problems.

The transient approach should be fine.  I would skip the checking if its
null or not in every accessor method.  The static initialization is
still reliable for transient members.

The custom readObject / writeObject would work too, but is a pain ;)

Another alternative is to not stick that class in the session.  Instead
get what you need out of it into a serializable bean or just into
primitives, and put those in the session.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Karr, David [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 1:10 PM
>To: [EMAIL PROTECTED]
>Subject: Proper way to deal with serialization of session attribute
with
>Logger attribute
>
>I'm using JDK 1.4.1, and Tomcat 4.1.24.
>
>I was seeing a strange situation where some cactus/ant tests of mine
>would succeed on one run, and then fail on the next, and alternate in
>that pattern continuously.
>
>After looking carefully at the Tomcat logs, I discovered that a class
>that is instantiated and then put into the session has a Log4J Logger
>object.  Tomcat tries to persist that session, but it fails because
>Logger is not serializable.
>
>If I want to allow objects of this class to be serialized and
>deserialized, how do I deal with the contained Logger object?
>
>The class presently defines it's "logger" instance variable like this:
>
>   protected final Logger logger =
>Logger.getLogger(this.getClass());
>
>Do I instead have to make this "transient" and change all the
references
>to the "logger" instance variable to call an accessor which tries to
>initialize the value first if it's null?  Or perhaps do I have to add
>"writeObject()" and "readObject()" methods where the "writeObject()"
>method specifically writes all the fields but this one, and the
>"readObject()" method reads all those fields, and then manually sets
the
>"logger" value?
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Proper way to deal with serialization of session attribute with Logger attribute

2003-05-27 Thread Jacob Kjome
Normally, loggers should be created as class static variable which are, 
effectively, transient already.  Why would you want instance loggers 
anyway?  Loggers are thread safe.  Just make it static.  You can deal with 
creating a new logger in the readObject() when the object is deserialized.

Jake

At 10:09 AM 5/27/2003 -0700, you wrote:
I'm using JDK 1.4.1, and Tomcat 4.1.24.

I was seeing a strange situation where some cactus/ant tests of mine
would succeed on one run, and then fail on the next, and alternate in
that pattern continuously.
After looking carefully at the Tomcat logs, I discovered that a class
that is instantiated and then put into the session has a Log4J Logger
object.  Tomcat tries to persist that session, but it fails because
Logger is not serializable.
If I want to allow objects of this class to be serialized and
deserialized, how do I deal with the contained Logger object?
The class presently defines it's "logger" instance variable like this:

protected final Logger logger =
Logger.getLogger(this.getClass());
Do I instead have to make this "transient" and change all the references
to the "logger" instance variable to call an accessor which tries to
initialize the value first if it's null?  Or perhaps do I have to add
"writeObject()" and "readObject()" methods where the "writeObject()"
method specifically writes all the fields but this one, and the
"readObject()" method reads all those fields, and then manually sets the
"logger" value?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: System cannot find the path specified !

2003-05-27 Thread Jacob Kjome
um you are cd'ing to a file, not a directory.  Of course it can't find 
the path specified.

If you are currently in CATALINA_HOME, type...

bin\startup.bat

Jake

At 01:27 PM 5/27/2003 -0400, you wrote:
>Try setting the env variable without spaces:
set CATALINA_HOME=C:\jakarta-tomcat-5-bin-20030526
   Thank you very  much
By taking out the spaces when I did
   C:\>set CATALINA_HOME=C:\jakarta-tamcat-5-bin-20030526
 and

C:\>cd %CATALINA_HOME%

I got:

C:\jakarta-tomcat-5-bin-20030526

But now I should be able to startup the Tomcat with
CATALINA_HOME\bin\startuup.bat
My prompt is at

C:\jakarta-tomcat-5-bin-20030526> _

but if I type in
C:\jakarta-tomcat-5-bin-20030526> cd
C:\jakarta-tomcat-5-bin-20030526\bin\startup.bat
I get   "The system cannot find the path specified"

Your assistance is appreciated !
Stan




>
> Then test it:
> echo %CATALINA_HOME%
> It will print the value to the command window.
>
> Then test it for accuracy:
> cd %CATALINA_HOME%
> That should put you in the catalina directory.
>
>
> On Tuesday 27 May 2003 12:31 pm, [EMAIL PROTECTED] wrote:
> >>>Assuming CATALINA_HOME has already been set, then 4 should be:
> >
> >At the command prompt I did:
> >C:\> set CATALINA_HOME = C:\jakarta-tomcat-5-bin-20030526
> >
> >then I did :
> >C:\> CATALINA_HOME\bin\startup.bat
> >
> >and I also tried:
> >C:\> %CATALINA_HONE%\bin\startup.bat
> >
> >the error message both times was:
> >"system cannot find the path specified"
> >
> >Thank you for your advice
> >Stan
> >
> >>4) C:\> %CATALINA_HOME%\bin\startup.bin
> >>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, May 27, 2003 9:57 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: System cannot find the path specified !
> >>
> >>
> >>Hello Tomcat People,
> >>  Trying to get started using Tomcat. I did:
> >>
> >>1) C:\> set PATH = j2sdk1.4.0_03
> >>2) C:\> set PATH = %JAVA_HOME%\bin;%PATH%
> >>3) C:\> set JDBC_HOME = C:\oracle\jdbc\lib
> >>4) C:\> CATALINA_HOME\bin\startup.bin
> >>
> >>The error message says:
> >>" system cannot find the path specified "
> >>
> >>Your suggestions are appreciated
> >>Stan
>
>


JAAS Realm on windows NT

2003-05-27 Thread Philip G. Baruc
Can some one give me an example of how to configure a JAASRealm
on windows NT.

In particular i'm looking for what the realm entry in server.xml would look
like,
what the login config file would like, and what the web.xml file would look
like.

I'm using Tomcat 4.1
and jsdk 1.4.1.


Thanks,
Philip B.
-
Philip G. Baruc
Tel: 212-420-9270
Mobile: 646-345-0988
E-mail: [EMAIL PROTECTED]
Web: http://www.appsecinc.com

Securing Business by Securing Enterprise Applications



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SendMailServlet

2003-05-27 Thread Mark Irvine LCGI
Hi,

I recently installed Tomcat 4.1.24 along side IIS5.0 (W2K).  All of the
examples work fine with the exception of the SendMailServlet.  I have
already downloeaded the Jave Mail API and installed it.  I have also
tried to run the samples provided with the Java Mail API - they all work
fine.  There error message is as follows:

java.lang.NoClassDefFoundError: javax/mail/Message
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
at java.lang.Class.getConstructor0(Class.java:1762)
at java.lang.Class.newInstance0(Class.java:276)
at java.lang.Class.newInstance(Class.java:259)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:903)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
68)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:494)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)

Any help would be approciated,

Mark


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Proper way to deal with serialization of session attribute withLogger attribute

2003-05-27 Thread Karr, David
> -Original Message-
> From: Karr, David
> 
> I'm using JDK 1.4.1, and Tomcat 4.1.24.
> 
> I was seeing a strange situation where some cactus/ant tests of mine
> would succeed on one run, and then fail on the next, and alternate in
> that pattern continuously.
> 
> After looking carefully at the Tomcat logs, I discovered that a class
> that is instantiated and then put into the session has a Log4J Logger
> object.  Tomcat tries to persist that session, but it fails because
> Logger is not serializable.
> 
> If I want to allow objects of this class to be serialized and
> deserialized, how do I deal with the contained Logger object?

Ok, making the "Logger" variable static is an easy fix for this.

However, I'm now seeing another problem related to the serialization and
deserialization of this class.  I see that (I didn't write this code)
this class has a static initializer that calls an accessor to read
something that is created in the "init()" method of the servlet related
to this class.  Normally, the servlet's "init()" method is executed
(load-on-startup), and then later this class is loaded, making those
references safe.  However, when Tomcat loads serialized sessions, it
loads these classes before loading servlets.  This causes my reloaded
session to fail.  It seems pretty clear to me that the logic needs to be
changed so that the accessor (on a null check) should call the same
method that the servlet's "init()" method calls, to deal with the case
that this accessor is called before the servlet is inited.  However, I
would ask, is it expected that Tomcat will load serialized sessions
before loading the "load-on-startup" servlets?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS
>um you are cd'ing to a file, not a directory.  Of course it can't find 
the path specified.

If you are currently in CATALINA_HOME, type...

bin\startup.bat

Jake

i am at:
C:\jakarta-tomcat-5-bin-20030526> _

so I did:
C:\jakarta-tomcat-5-bin-20030526>bin\startup.bat

the error message is the same

: "system cannot find the path specified "

Your assistance is appreciated
Stan



Then test it:
echo %CATALINA_HOME%
It will print the value to the command window.

Then test it for accuracy:
cd %CATALINA_HOME%
That should put you in the catalina directory.


On Tuesday 27 May 2003 12:31 pm, [EMAIL PROTECTED] wrote:
Assuming CATALINA_HOME has already been set, then 4 should be:

At the command prompt I did:
C:\> set CATALINA_HOME = C:\jakarta-tomcat-5-bin-20030526

then I did :
C:\> CATALINA_HOME\bin\startup.bat

and I also tried:
C:\> %CATALINA_HONE%\bin\startup.bat

the error message both times was:
"system cannot find the path specified"

Thank you for your advice
Stan

4) C:\> %CATALINA_HOME%\bin\startup.bin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 9:57 AM
To: [EMAIL PROTECTED]
Subject: System cannot find the path specified !


Hello Tomcat People,
 Trying to get started using Tomcat. I did:

1) C:\> set PATH = j2sdk1.4.0_03
2) C:\> set PATH = %JAVA_HOME%\bin;%PATH%
3) C:\> set JDBC_HOME = C:\oracle\jdbc\lib
4) C:\> CATALINA_HOME\bin\startup.bin

The error message says:
" system cannot find the path specified "

Your suggestions are appreciated
Stan




RE: SendMailServlet

2003-05-27 Thread Shapira, Yoav

Howdy,
Where did you "install" the JavaMail jar?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 1:44 PM
>To: [EMAIL PROTECTED]
>Subject: SendMailServlet
>
>Hi,
>
>I recently installed Tomcat 4.1.24 along side IIS5.0 (W2K).  All of the
>examples work fine with the exception of the SendMailServlet.  I have
>already downloeaded the Jave Mail API and installed it.  I have also
>tried to run the samples provided with the Java Mail API - they all
work
>fine.  There error message is as follows:
>
>java.lang.NoClassDefFoundError: javax/mail/Message
>   at java.lang.Class.getDeclaredConstructors0(Native Method)
>   at
>java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
>   at java.lang.Class.getConstructor0(Class.java:1762)
>   at java.lang.Class.newInstance0(Class.java:276)
>   at java.lang.Class.newInstance(Class.java:259)
>   at
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
v
>a:903)
>   at
>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
6
>68)
>   at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
>e.java:210)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
>e.java:191)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
r
>Base.java:494)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
1
>5)
>   at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a
>:180)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
a
>lve.java:171)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
>:172)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.
>java:174)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
>   at
>org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
>   at java.lang.Thread.run(Thread.java:536)
>
>Any help would be approciated,
>
>Mark
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread Jason Bainbridge
On Wed, 28 May 2003 01:46, [EMAIL PROTECTED] wrote:
> i am at:
> C:\jakarta-tomcat-5-bin-20030526>

Do a DIR from there you should have bin, common,conf, logs, server, 
shared,temp,webapps,work

If not did you extract the Zip using the directory option (can't remember what 
WinZip calls it)?

If so cd into the bin directory and then try startup.bat, if that doesn't work 
do a DIR inside there and see what is listed.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SendMailServlet

2003-05-27 Thread streeper
The NoClassDefFoundError is the java file not found error. It's case sensitive.

At 06:43 PM 5/27/2003 +0100, you wrote:
Hi,

I recently installed Tomcat 4.1.24 along side IIS5.0 (W2K).  All of the
examples work fine with the exception of the SendMailServlet.  I have
already downloeaded the Jave Mail API and installed it.  I have also
tried to run the samples provided with the Java Mail API - they all work
fine.  There error message is as follows:
java.lang.NoClassDefFoundError: javax/mail/Message
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
at java.lang.Class.getConstructor0(Class.java:1762)
at java.lang.Class.newInstance0(Class.java:276)
at java.lang.Class.newInstance(Class.java:259)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:903)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
68)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:494)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)
Any help would be approciated,

Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
[SMGazette.com E-mail is scanned for viruses by Declude Virus]
[Visit us on the web at SMGazette.com]
---
[SMGazette.com E-mail is scanned for viruses by Declude Virus]
[Visit us on the web at SMGazette.com]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[half-offtopic servlet/db layers / log4j

2003-05-27 Thread Emerson Cargnin
I have a doubt regarding use of log4j and layers. eg: I have a DAO class 
that uses jdbc to get data from db. When a error happen, it calls 
logger.error, and throws a new exception (DAOException, for exemple), 
which is catch by the servlet, that in the same way calls for 
looger.error and redirects to an error page (with a error id to map to 
the log file). The logger call in DAO puts the sql string executed in 
the log  message, as the logger cal at the servlet just knows it was a 
db error and the error id.
My question : would be it better not call logger in the lower level (DAO 
class in the case) and let the servlet log all the errors? so I would 
pass the entire string of sql when creating the new excpetion (and 
passing the first exception, what would appear as the root exception?). 
The problem is that in case of error, a lot of error logs entries would 
appear, what could be a kind of confusion. In the approache i just 
suggest, i would have a single entry, with the sql code, and the error 
id (it's a time stamp).
I'm trying to find a good pattern to use log4j in my apps.

Thanks in advance

--
Emerson Cargnin
Analista de Sitemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: System cannot find the path specified !

2003-05-27 Thread DominskiS

On Wed, 28 May 2003 01:46, [EMAIL PROTECTED] wrote:
>i am at:
>C:\jakarta-tomcat-5-bin-20030526>

Do a DIR from there you should have bin, common,conf, logs, server, 
shared,temp,webapps,work

If not did you extract the Zip using the directory option (can't remember 
what 
WinZip calls it)?

  >>I did extract it. The problem might be that I stopped the download of 
Tomcat
  halfway through and then restarted it. I have 2 copies of Tomcat. One with 
9 Meg and one with 61 Meg.

What to do?
Thank you for your assistance
Stan


> 
> If so cd into the bin directory and then try startup.bat, if that doesn't 
> work 
> do a DIR inside there and see what is listed.
> 
> Regards,
> -- 
> Jason Bainbridge
> KDE Web Team - http://kde.org 
> [EMAIL PROTECTED] 
> 



Re: Tomcat - JDBC - MS SQL Driver Recommendations? (was: Tomcat / JDBC / MS SQL / Connection lost and won't reconnect)

2003-05-27 Thread John Turner
Hah!  Cool...I knew that was out there, I just could never remember the 
name of the darn thing.  Thanks for the refresher!

John

On Wed, 28 May 2003 01:14:05 +0800, Jason Bainbridge <[EMAIL PROTECTED]> 
wrote:

On Tue, 27 May 2003 23:13, Paul \(BRI\) wrote:
had posted this question about reconnection problems with MS's JDBC
driver. While it turned out that no one had the same issue on this, I
wondered what drivers are best for Tomcat -> SQL Server. Are there other
suitable free drivers?
We've recently switched to http://jtds.sourceforge.net/ it's Open Source, 
a Type 4 JDBC driver and almost fully JDBC 2.0 compliant.

Definitely worth trying. :)



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Running Jakarta-Tomcat-3.3.1a as a service

2003-05-27 Thread Larry Isaacs
See:



Also see the note at the bottom of:



If using a relatively current Sun JDK, you can address this by
including at least "-Xrs" in the wrapper.jvm.options setting.
This will address the "log out" problem much better than the
obsolete comment in "Notice for JDK 1.3 users" of the first
document about using JDK 1.2 as a work around.

Cheers,
Larry


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 27, 2003 11:32 AM
> To: [EMAIL PROTECTED]
> Subject: Running Jakarta-Tomcat-3.3.1a as a service
> 
> 
> I'm running W2K Advanced Server and am running 
> Jakarta-Tomcat-3.3.1a.  How
> do I set this up to run as a service?
> 
> Thanks,
> James DeForge
> Systems Enterprise Management - SYSEM
> First Data Resources (FDR)
> 402-777-4303 Work
> 402-777-1268 Fax
> [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is this possible?

2003-05-27 Thread John Turner
You are incorrect.

It is most certainly possible, and several (many) people have environments 
like this, both devel and production.  I do.

John

On Tue, 27 May 2003 13:24:49 -0400, Kannan Sundararajan 
<[EMAIL PROTECTED]> wrote:

Nope it is not possible

-Original Message-
From: Rohit Peyyeti [mailto:[EMAIL PROTECTED]
Sent: Monday, May 26, 2003 3:31 AM
To: Tomcat Users List
Subject: Is this possible?
Hello:

Is this scenario possible?

I want to run tomcat 3.1, tomcat 4.1 and apache 1.3 on the same machine 
and both need to share single apache 1.3 instance with Virtual Hosts in 
place.

I have several apps which are already running on tomcat 3.1/apache 1.3 
and I want to port one app to tomcat 4/apache 1.3 without touching
rest of the apps.

If yes, can anybody guide me?

Cheers

Rohit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: System cannot find the path specified !

2003-05-27 Thread John Turner
Better yet:

- CD to C:\

- type "DIR /S STARTUP.BAT"

- tell us what the results are (the location of startup.bat)

John

On Wed, 28 May 2003 01:55:22 +0800, Jason Bainbridge <[EMAIL PROTECTED]> 
wrote:

On Wed, 28 May 2003 01:46, [EMAIL PROTECTED] wrote:
i am at:
C:\jakarta-tomcat-5-bin-20030526>
Do a DIR from there you should have bin, common,conf, logs, server, 
shared,temp,webapps,work

If not did you extract the Zip using the directory option (can't remember 
what WinZip calls it)?

If so cd into the bin directory and then try startup.bat, if that doesn't 
work do a DIR inside there and see what is listed.

Regards,


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: SendMailServlet

2003-05-27 Thread Shapira, Yoav

Howdy,

>The NoClassDefFoundError is the java file not found error. It's case
>sensitive.

This is rapidly climbing up the charts as the most misunderstood Java
error.

NoClassDefFoundError is not the same as ClassNotFoundException.
NoClassDefFoundError does NOT typically indicate a file not found.  On
the contrary: it indicates a class with the same fully-qualified name as
specified was located, but the class signature does not match the
expected definition.  Usually, this means a method is missing or has the
wrong signature.

A typical example is when you compile your class against a later version
of an XML-related API or implementation that the version of the same API
provided by the server/JDK.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread John Turner
Start over with a fresh copy (fresh download) of Tomcat.  I don't know of a 
Tomcat distribution that is 61 MB...that's huge.

John

On Tue, 27 May 2003 14:10:08 EDT, <[EMAIL PROTECTED]> wrote:

On Wed, 28 May 2003 01:46, [EMAIL PROTECTED] wrote:
i am at:
C:\jakarta-tomcat-5-bin-20030526>
Do a DIR from there you should have bin, common,conf, logs, server, 
shared,temp,webapps,work

If not did you extract the Zip using the directory option (can't remember 
what WinZip calls it)?

>>I did extract it. The problem might be that I stopped the download of 
Tomcat
halfway through and then restarted it. I have 2 copies of Tomcat. One 
with 9 Meg and one with 61 Meg.

What to do?
Thank you for your assistance
Stan

If so cd into the bin directory and then try startup.bat, if that 
doesn't work do a DIR inside there and see what is listed.

Regards,
-- Jason Bainbridge
KDE Web Team - http://kde.org [EMAIL PROTECTED]




--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


CharConversionException

2003-05-27 Thread Shapira, Yoav

Howdy,
Has anyone been seeing
java.io.CharConversionException: isHexDigit
  at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:124)
  at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:87)
  at
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java
:408)
?

This is using tomcat 4.1.24-LE, JDK 1.4.1, on Solaris 8, with the
default Coyote connector configuration.  (And no other connections).  I
don't have the RequestDumperValve enabled so I don't know what the
request parameters looked like.

Yoav Shapira
Millennium ChemInformatics





This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread Jason Bainbridge
On Wed, 28 May 2003 02:10, [EMAIL PROTECTED] wrote:
>   >>I did extract it. The problem might be that I stopped the download of
> Tomcat
>   halfway through and then restarted it. I have 2 copies of Tomcat. One
> with 9 Meg and one with 61 Meg.

61mb??? Are you sure that isn't the JDK?

the jakarta-tomcat-5.0.2.zip should be 11mb or if you got the installer then 
that is 9.5mb (hmmm why's the zip bigger than the installer? isn't usually 
the other way around?).

Have a quick look at your directory structure as per my earlier email and see 
if it looks okay.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running tomcat from CD-ROM

2003-05-27 Thread Wolfgang Egger
Servus Sriram,

Am Dienstag, 27. Mai 2003 12:00 schrieb Sriram N:

> Some questions:
>
> 1. If your project is browser based, how "automatic" do you plan to make
> the solution ? Will the user have to type in the URL ? (I don't know if
> Un*x has anything like Windows' Internet Shortcuts).

As automatic as possible;-)

> If you could depend on your user to run some file, you might have to just
> alter startup.bat, I think. You could then bundle JRE+tools.jar on the CD
> itself
Yes, I hope I can talk with the customers that this should be the way we go. 
The concept says, that there should be some autostart-action when putting the 
CD into the CD-player, but I don't think, that I will find a solution doing 
that for all platforms with the same procedure, so I hope I could let the 
user make the choice. In real life 98% of the possible users have MS Windows 
running, so may be we only promote the windows-cd-autostart and let the other 
users starting the system manually.

> (I'm busy with industrial automation at factories now-a-days, and have no
> access to a real Tomcat system or code, sorry...)

No problem! I'm happy to have some days to think about all of that, without 
time-pressure. Thanx for your constructive answer!

Wolfgang


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread Jason Bainbridge
On Wed, 28 May 2003 02:20, John Turner wrote:
>  type "DIR /S STARTUP.BAT"

That brings back warm and fuzzy memories from the pre windows 3.1 days, it's 
amazing all the cool things DOS can do that I've forgotten, that one will 
come in handy, thanks for reminding me. :)

Cheers,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Proper way to deal with serialization of session attribute with Logger attribute

2003-05-27 Thread Micael
At 12:31 PM 5/27/03 -0500, you wrote:

Normally, loggers should be created as class static variable which are, 
effectively, transient already.  Why would you want instance loggers 
anyway?  Loggers are thread safe.  Just make it static.  You can deal with 
creating a new logger in the readObject() when the object is deserialized.

Jake

At 10:09 AM 5/27/2003 -0700, you wrote:
I'm using JDK 1.4.1, and Tomcat 4.1.24.

I was seeing a strange situation where some cactus/ant tests of mine
would succeed on one run, and then fail on the next, and alternate in
that pattern continuously.
After looking carefully at the Tomcat logs, I discovered that a class
that is instantiated and then put into the session has a Log4J Logger
object.  Tomcat tries to persist that session, but it fails because
Logger is not serializable.
If I want to allow objects of this class to be serialized and
deserialized, how do I deal with the contained Logger object?
The class presently defines it's "logger" instance variable like this:

protected final Logger logger =
Logger.getLogger(this.getClass());
Do I instead have to make this "transient" and change all the references
to the "logger" instance variable to call an accessor which tries to
initialize the value first if it's null?  Or perhaps do I have to add
"writeObject()" and "readObject()" methods where the "writeObject()"
method specifically writes all the fields but this one, and the
"readObject()" method reads all those fields, and then manually sets the
"logger" value?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  <%@ page language='java'  %>
<%@ taglib uri='struts-bean' 
   prefix='bean' %>
<%@ taglib uri='struts-html' 
   prefix='html' %>
<%@ taglib uri='struts-tiles' 
   prefix='tiles' %>
<%@ page import='com.michaelmcgrady.user.GuiData' %>
<%@ page import='com.michaelmcgrady.constant.SiteConstant' %>













 




  
  

  

  
  

  

  
  

  




  

  

  
  

  

  
  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: System cannot find the path specified !

2003-05-27 Thread DominskiS
Better yet:

- CD to C:\

- type "DIR /S STARTUP.BAT"

- tell us what the results are (the location of startup.bat)

John

>>
I did 
>cd C:\

then I said
C:\dir /s startup.bat

response was
Volume in drive C has no label
volune serial number is 3E28-A856

Directory of C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist\bin
12:52 AM  1,216 startup.bat


What to do now ? ?
PS I have 2 copies of Tomcat...one with 9 meg and one with 61 meg.
should I delete one ?

Thank you for your advice !
Stan



Re: System cannot find the path specified !

2003-05-27 Thread Jason Bainbridge
On Wed, 28 May 2003 02:31, [EMAIL PROTECTED] wrote:
> Directory of C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist\bin

forgot about that dist sub directory... 

You either need to amend your catalina home to be 
C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist or move the contents 
of that directory up a level to 
C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5 and discard the dist 
directory.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CharConversionException

2003-05-27 Thread Andre E. Bar'yudin
On Tue, May 27, 2003 at 02:24:50PM -0400, Shapira, Yoav wrote:
> 
> Howdy,
> Has anyone been seeing
> java.io.CharConversionException: isHexDigit
>   at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:124)
>   at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:87)
>   at
> org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java
> :408)
> ?
> 
> This is using tomcat 4.1.24-LE, JDK 1.4.1, on Solaris 8, with the
> default Coyote connector configuration.  (And no other connections).  I
> don't have the RequestDumperValve enabled so I don't know what the
> request parameters looked like.

Don't you have an "access" log?  For tomcat or apache, if you use JK
Coyote connector?  In case of GET method you can locate the offending
request...

Regards,

Andre.

-- 
Andre E. Bar'yudin
Home page: http://www.cs.huji.ac.il/~baryudin/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS
Start over with a fresh copy (fresh download) of Tomcat.  I don't know of a 
Tomcat distribution that is 61 MB...that's huge.

John

  >> I have one Tomcat that says 
   25 Meg, 61 Meg on disk
   the other copy says:
   9 Meg

 Can't I just delete one from the Windows Explorer ?
It will take a couple of hours to redownload !

Thank you for your assiatance
Stan


> On Tue, 27 May 2003 14:10:08 EDT, <[EMAIL PROTECTED]> wrote:
> 
> >
> >On Wed, 28 May 2003 01:46, [EMAIL PROTECTED] wrote:
> >>i am at:
> >>C:\jakarta-tomcat-5-bin-20030526>
> >
> >Do a DIR from there you should have bin, common,conf, logs, server, 
> >shared,temp,webapps,work
> >
> >If not did you extract the Zip using the directory option (can't remember 
> >what WinZip calls it)?
> >
> >>>I did extract it. The problem might be that I stopped the download of 
> >Tomcat
> >halfway through and then restarted it. I have 2 copies of Tomcat. One 
> >with 9 Meg and one with 61 Meg.
> >
> >What to do?
> >Thank you for your assistance
> >Stan
> >
> >
> >>
> >>If so cd into the bin directory and then try startup.bat, if that 
> >>doesn't work do a DIR inside there and see what is listed.
> >>
> >>Regards,
> >>-- Jason Bainbridge
> >>KDE Web Team - http://kde.org [EMAIL PROTECTED]
> >>
> >
> >



RE: CharConversionException

2003-05-27 Thread Shapira, Yoav

Howdy,

>Don't you have an "access" log?  For tomcat or apache, if you use JK
>Coyote connector?  In case of GET method you can locate the offending
>request...

I do have an access log, in the combined pattern.  These access logs are
very large, however, as I get thousands of requests per hour on average.
Moreover, the exception in CharConversionException catalina.out does not
have a timestamp to narrow down my search.  Any suggestions?

This is a stand-alone tomcat setup.  A Coyote HTTP connector.  No
apache, no JK, no other connectors.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is Tomcat a standalone Web Server also?

2003-05-27 Thread Kannan Sundararajan
Yes, just change to port 8080 to 80 .. it looks better.. 

-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 2:36 AM
To: [EMAIL PROTECTED]
Subject: Is Tomcat a standalone Web Server also?


Hi

Can I use Tomcat as a standalone WebServer?

regards,
Naresh Agarwal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS
forgot about that dist sub directory... 

You either need to amend your catalina home to be 
C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist or move the contents 
of that directory up a level to 
C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5 and discard the dist 
directory.

Regards,
-- 
Jason Bainbridge


  Jason
  I changed CATALINA_HOME to be
  
C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist 

I did
C:\> CATALINA_HOME\dist\bin\startup.bat

response is 
"sytsem connot find the file specified"

When I go to windows explorer I see that under the directory "dist"
bin
conf
serv
temp
work
common
logs
shared
webapps

when I go to  windows exploere and look under the bin directory I see
bootstrap
catalina
commons-launcher
digest
launcher properties
setclasspath
shutdown
startup
tool-wrapper
cpappend
digest
lauvher bootstrap
starup.sh
etc

What to do now ?
Your assistance is appreciated
Stan




RE: SendMailServlet

2003-05-27 Thread Mark Irvine LCGI
Hi,

The JavaMail was installed in a folder called javamail-1.3 in the C
drive.  The CLASSPATH was updated appropiately.

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 27 May 2003 18:54
To: Tomcat Users List
Subject: RE: SendMailServlet



Howdy,
Where did you "install" the JavaMail jar?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 1:44 PM
>To: [EMAIL PROTECTED]
>Subject: SendMailServlet
>
>Hi,
>
>I recently installed Tomcat 4.1.24 along side IIS5.0 (W2K).  All of the

>examples work fine with the exception of the SendMailServlet.  I have 
>already downloeaded the Jave Mail API and installed it.  I have also 
>tried to run the samples provided with the Java Mail API - they all
work
>fine.  There error message is as follows:
>
>java.lang.NoClassDefFoundError: javax/mail/Message
>   at java.lang.Class.getDeclaredConstructors0(Native Method)
>   at
>java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
>   at java.lang.Class.getConstructor0(Class.java:1762)
>   at java.lang.Class.newInstance0(Class.java:276)
>   at java.lang.Class.newInstance(Class.java:259)
>   at 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
v
>a:903)
>   at
>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
6
>68)
>   at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
>e.java:210)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
>e.java:191)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at 
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
r
>Base.java:494)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
1
>5)
>   at 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a
>:180)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
a
>lve.java:171)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:641)
>   at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
>:172)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.
>java:174)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
>   at
>org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
>   at java.lang.Thread.run(Thread.java:536)
>
>Any help would be approciated,
>
>Mark
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



4.0.4 to 4.1.24 Upgrade problems

2003-05-27 Thread Shannon Scott
Hello,
I tried to upgrade to the latest and greatest tomcat version today ( 4.1.24 ), but 
whenever I try to run my index.jsp, I get the following error.

An error occurred at line: 2 in the jsp file: /index.jsp

Generated servlet error:

[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] /var/tomcat4/work/Apache-Integrate/192.168.200.63/_/index_jsp.java:7: '.' 
expected
[javac] import MyBean;
[javac] ^
[javac] /var/tomcat4/work/Apache-Integrate/192.168.200.63/_/index_jsp.java:42: 
cannot resolve symbol
[javac] symbol  : class MyBean
[javac] location: class org.apache.jsp.index_jsp
[javac]   MyBean mb = null;


My page starts like this:

<%@ page session="false" %>
<%@ page import="MyBean" %>

<% ...

Everything was good under the 4.0.4. version.
Any Ideas?
Thank You for Any Help... everything is appreciated.
Shannon

Apache 1.3
Tomcat 4.0.4
Redhat 7.2
JKD 1.4











RE: SendMailServlet

2003-05-27 Thread Shapira, Yoav

Howdy,
What CLASSPATH?

You should put the mail.jar (and activation.jar file required by
JavaMail) into the WEB-INF/lib directory of the webapp that needs the
mail API.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 3:07 PM
>To: 'Tomcat Users List'
>Subject: RE: SendMailServlet
>
>Hi,
>
>The JavaMail was installed in a folder called javamail-1.3 in the C
>drive.  The CLASSPATH was updated appropiately.
>
>Mark
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: 27 May 2003 18:54
>To: Tomcat Users List
>Subject: RE: SendMailServlet
>
>
>
>Howdy,
>Where did you "install" the JavaMail jar?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, May 27, 2003 1:44 PM
>>To: [EMAIL PROTECTED]
>>Subject: SendMailServlet
>>
>>Hi,
>>
>>I recently installed Tomcat 4.1.24 along side IIS5.0 (W2K).  All of
the
>
>>examples work fine with the exception of the SendMailServlet.  I have
>>already downloeaded the Jave Mail API and installed it.  I have also
>>tried to run the samples provided with the Java Mail API - they all
>work
>>fine.  There error message is as follows:
>>
>>java.lang.NoClassDefFoundError: javax/mail/Message
>>  at java.lang.Class.getDeclaredConstructors0(Native Method)
>>  at
>>java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
>>  at java.lang.Class.getConstructor0(Class.java:1762)
>>  at java.lang.Class.newInstance0(Class.java:276)
>>  at java.lang.Class.newInstance(Class.java:259)
>>  at
>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
a
>v
>>a:903)
>>  at
>>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
:
>6
>>68)
>>  at
>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
l
>v
>>e.java:210)
>>  at
>>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.
>i
>>nvokeNext(StandardPipeline.java:643)
>>  at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:
>4
>>80)
>>  at
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>  at
>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
l
>v
>>e.java:191)
>>  at
>>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.
>i
>>nvokeNext(StandardPipeline.java:643)
>>  at
>>org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
o
>r
>>Base.java:494)
>>  at
>>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.
>i
>>nvokeNext(StandardPipeline.java:641)
>>  at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:
>4
>>80)
>>  at
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>  at
>>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
4
>1
>>5)
>>  at
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
v
>a
>>:180)
>>  at
>>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.
>i
>>nvokeNext(StandardPipeline.java:643)
>>  at
>>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
V
>a
>>lve.java:171)
>>  at
>>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.
>i
>>nvokeNext(StandardPipeline.java:641)
>>  at
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
v
>a
>>:172)
>>  at
>>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.
>i
>>nvokeNext(StandardPipeline.java:641)
>>  at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:
>4
>>80)
>>  at
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>  at
>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
e
>.
>>java:174)
>>  at
>>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.
>i
>>nvokeNext(StandardPipeline.java:643)
>>  at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:
>4
>>80)
>>  at
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>  at
>>org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
>>  at
>>org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
>>  at java.lang.Thread.run(Thread.java:536)
>>
>>Any help would be approciated,
>>
>>Mark
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printe

RE: 4.0.4 to 4.1.24 Upgrade problems

2003-05-27 Thread Shapira, Yoav

Howdy,
Is your bean in a package?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Shannon Scott [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 3:08 PM
>To: Tomcat Users List
>Subject: 4.0.4 to 4.1.24 Upgrade problems
>
>Hello,
>I tried to upgrade to the latest and greatest tomcat version today (
4.1.24
>), but whenever I try to run my index.jsp, I get the following error.
>
>An error occurred at line: 2 in the jsp file: /index.jsp
>
>Generated servlet error:
>
>[javac] Since fork is true, ignoring compiler setting.
>[javac] Compiling 1 source file
>[javac] Since fork is true, ignoring compiler setting.
>[javac] /var/tomcat4/work/Apache-
>Integrate/192.168.200.63/_/index_jsp.java:7: '.' expected
>[javac] import MyBean;
>[javac] ^
>[javac] /var/tomcat4/work/Apache-
>Integrate/192.168.200.63/_/index_jsp.java:42: cannot resolve symbol
>[javac] symbol  : class MyBean
>[javac] location: class org.apache.jsp.index_jsp
>[javac]   MyBean mb = null;
>
>
>My page starts like this:
>
><%@ page session="false" %>
><%@ page import="MyBean" %>
>
><% ...
>
>Everything was good under the 4.0.4. version.
>Any Ideas?
>Thank You for Any Help... everything is appreciated.
>Shannon
>
>Apache 1.3
>Tomcat 4.0.4
>Redhat 7.2
>JKD 1.4
>
>
>
>
>
>
>
>




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Oracle Type 4 Driver

2003-05-27 Thread Schwartz, David (CHR)
Can anyone recomend a type 4 driver for oracle 8.1.7?
I'm running Tomcat 4.1.24

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 4.0.4 to 4.1.24 Upgrade problems

2003-05-27 Thread Shannon Scott
Hello,
No.
Does it have to be?
Thank You Much.
Shannon

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:09 PM
Subject: RE: 4.0.4 to 4.1.24 Upgrade problems



Howdy,
Is your bean in a package?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Shannon Scott [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 3:08 PM
>To: Tomcat Users List
>Subject: 4.0.4 to 4.1.24 Upgrade problems
>
>Hello,
>I tried to upgrade to the latest and greatest tomcat version today (
4.1.24
>), but whenever I try to run my index.jsp, I get the following error.
>
>An error occurred at line: 2 in the jsp file: /index.jsp
>
>Generated servlet error:
>
>[javac] Since fork is true, ignoring compiler setting.
>[javac] Compiling 1 source file
>[javac] Since fork is true, ignoring compiler setting.
>[javac] /var/tomcat4/work/Apache-
>Integrate/192.168.200.63/_/index_jsp.java:7: '.' expected
>[javac] import MyBean;
>[javac] ^
>[javac] /var/tomcat4/work/Apache-
>Integrate/192.168.200.63/_/index_jsp.java:42: cannot resolve symbol
>[javac] symbol  : class MyBean
>[javac] location: class org.apache.jsp.index_jsp
>[javac]   MyBean mb = null;
>
>
>My page starts like this:
>
><%@ page session="false" %>
><%@ page import="MyBean" %>
>
><% ...
>
>Everything was good under the 4.0.4. version.
>Any Ideas?
>Thank You for Any Help... everything is appreciated.
>Shannon
>
>Apache 1.3
>Tomcat 4.0.4
>Redhat 7.2
>JKD 1.4
>
>
>
>
>
>
>
>




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SendMailServlet

2003-05-27 Thread Mark Irvine LCGI
Hi,

Many thanks for your reply.  This did change the error message to:

ENCOUNTERED EXCEPTION: java.lang.NoClassDefFoundError:
javax/mail/Session 
java.lang.NoClassDefFoundError: javax/mail/Session
at
org.apache.naming.factory.MailSessionFactory$1.run(MailSessionFactory.ja
va:163)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.naming.factory.MailSessionFactory.getObjectInstance(MailSessi
onFactory.java:147)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact
ory.java:186)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at SendMailServlet.doPost(SendMailServlet.java:63)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:494)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 27 May 2003 20:09
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: SendMailServlet



Howdy,
What CLASSPATH?

You should put the mail.jar (and activation.jar file required by
JavaMail) into the WEB-INF/lib directory of the webapp that needs the
mail API.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 3:07 PM
>To: 'Tomcat Users List'
>Subject: RE: SendMailServlet
>
>Hi,
>
>The JavaMail was installed in a folder called javamail-1.3 in the C 
>drive.  The CLASSPATH was updated appropiately.
>
>Mark
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: 27 May 2003 18:54
>To: Tomcat Users List
>Subject: RE: SendMailServlet
>
>
>
>Howdy,
>Where did you "install" the JavaMail jar?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, May 27, 2003 1:44 PM
>>To: [EMAIL PROTECTED]
>>Subject: SendMailServlet
>>
>>Hi,
>>
>>I recently installed

Re: System cannot find the path specified !

2003-05-27 Thread John Turner
OK, we're going around in circles.

If CATALINA_HOME = "C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat- 
5\dist", then the CORRECT COMMAND is:

%CATALINA_HOME%\bin\startup.bat

Note the "%", note the lack of "dist" because its already included in the 
value of CATALINA_HOME.

John

On Tue, 27 May 2003 14:58:54 EDT, <[EMAIL PROTECTED]> wrote:

Jason
 I changed CATALINA_HOME to be
 
C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist  
I did
C:\> CATALINA_HOME\dist\bin\startup.bat
 
response is "sytsem connot find the file specified"
 
When I go to windows explorer I see that under the directory "dist"
bin

forgot about that dist sub directory...

You either need to amend your catalina home to be C:\Jakarta-tomcat-5- 
bin-20030526\jakarta-tomcat-5\dist or move the contents of that directory 
up a level to C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5 and 
discard the dist directory.

Regards,


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: 4.0.4 to 4.1.24 Upgrade problems

2003-05-27 Thread Shapira, Yoav

Howdy,
Yes.  See http://tomcatfaq.sourceforge.net/classnotfound.html for more
details and the relevant thread from this list.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Shannon Scott [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 3:12 PM
>To: Tomcat Users List
>Subject: Re: 4.0.4 to 4.1.24 Upgrade problems
>
>Hello,
>No.
>Does it have to be?
>Thank You Much.
>Shannon
>
>- Original Message -
>From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Tuesday, May 27, 2003 3:09 PM
>Subject: RE: 4.0.4 to 4.1.24 Upgrade problems
>
>
>
>Howdy,
>Is your bean in a package?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Shannon Scott [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, May 27, 2003 3:08 PM
>>To: Tomcat Users List
>>Subject: 4.0.4 to 4.1.24 Upgrade problems
>>
>>Hello,
>>I tried to upgrade to the latest and greatest tomcat version today (
>4.1.24
>>), but whenever I try to run my index.jsp, I get the following error.
>>
>>An error occurred at line: 2 in the jsp file: /index.jsp
>>
>>Generated servlet error:
>>
>>[javac] Since fork is true, ignoring compiler setting.
>>[javac] Compiling 1 source file
>>[javac] Since fork is true, ignoring compiler setting.
>>[javac] /var/tomcat4/work/Apache-
>>Integrate/192.168.200.63/_/index_jsp.java:7: '.' expected
>>[javac] import MyBean;
>>[javac] ^
>>[javac] /var/tomcat4/work/Apache-
>>Integrate/192.168.200.63/_/index_jsp.java:42: cannot resolve symbol
>>[javac] symbol  : class MyBean
>>[javac] location: class org.apache.jsp.index_jsp
>>[javac]   MyBean mb = null;
>>
>>
>>My page starts like this:
>>
>><%@ page session="false" %>
>><%@ page import="MyBean" %>
>>
>><% ...
>>
>>Everything was good under the 4.0.4. version.
>>Any Ideas?
>>Thank You for Any Help... everything is appreciated.
>>Shannon
>>
>>Apache 1.3
>>Tomcat 4.0.4
>>Redhat 7.2
>>JKD 1.4
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Oracle Type 4 Driver

2003-05-27 Thread Jason Bainbridge
On Wed, 28 May 2003 03:10, Schwartz, David (CHR) wrote:
> Can anyone recomend a type 4 driver for oracle 8.1.7?
> I'm running Tomcat 4.1.24

Isn't Oracle's own JDBC Thin Driver type 4? I'm fairly sure it is, it gets 
installed with the Oracle client, something likew classes12.zip and 
nls_charset12.zip, rename those to .jar files and you're good to go.

They should be documented within Oracle's doco if not there is plenty of 
reference material on the web you can google for.

Regard,s
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 4.0.4 to 4.1.24 Upgrade problems

2003-05-27 Thread John Turner
There are two separate errors here...

To resolve the first one, you will need to put JAVA_HOME/bin in your PATH.  
For JAVA_HOME, use the value of JAVA_HOME, not the variable itself.

To resolve the second error, I think Yoav has already replied.

John

On Tue, 27 May 2003 15:07:38 -0400, Shannon Scott <[EMAIL PROTECTED]> wrote:

Hello,
I tried to upgrade to the latest and greatest tomcat version today ( 
4.1.24 ), but whenever I try to run my index.jsp, I get the following 
error.

An error occurred at line: 2 in the jsp file: /index.jsp

Generated servlet error:

[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] /var/tomcat4/work/Apache- 
Integrate/192.168.200.63/_/index_jsp.java:7: '.' expected
[javac] import MyBean;
[javac] ^
[javac] /var/tomcat4/work/Apache- 
Integrate/192.168.200.63/_/index_jsp.java:42: cannot resolve symbol
[javac] symbol  : class MyBean
[javac] location: class org.apache.jsp.index_jsp
[javac]   MyBean mb = null;

My page starts like this:

<%@ page session="false" %>
<%@ page import="MyBean" %>

<% ...
Everything was good under the 4.0.4. version.
Any Ideas?
Thank You for Any Help... everything is appreciated.
Shannon
Apache 1.3
Tomcat 4.0.4
Redhat 7.2
JKD 1.4











--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: SendMailServlet

2003-05-27 Thread Shapira, Yoav

Howdy,

>Many thanks for your reply.  This did change the error message to:
>
>ENCOUNTERED EXCEPTION: java.lang.NoClassDefFoundError:
>javax/mail/Session
>java.lang.NoClassDefFoundError: javax/mail/Session

Ah, now we're getting somewhere.  You have multiple copies of the
JavaMail API of different versions in your tomcat installation.  Ensure
you only have one copy of the JavaMail API around.  Also make sure
mail.jar and activation.jar are in the same classloader repository (i.e.
both in WEB-INF/lib, or both in common/lib, but not in separate places)
to be safe.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS
OK, we're going around in circles.

If CATALINA_HOME = "C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat- 
5\dist", then the CORRECT COMMAND is:

%CATALINA_HOME%\bin\startup.bat

Note the "%", note the lack of "dist" because its already included in the 
value of CATALINA_HOME.

John

Thank you very much for your assistance. This is my first day attempting to 
start
 the Tomcat. Thank you for your patience 

I understand that now "dist" is included in the value of CATALINA_HOME

I did
C:\> %CATALINA_HOME%\bin\startup.bat

and still get
"system cannot find the path specified"

Stan


Re: System cannot find the path specified !

2003-05-27 Thread Jason Bainbridge
On Wed, 28 May 2003 03:22, [EMAIL PROTECTED] wrote:
> I did
> C:\> %CATALINA_HOME%\bin\startup.bat
>
> and still get
> "system cannot find the path specified"

Lets try this the easy way... Find the file in Windows Explorer either by 
searching for it or navigating into the right directory and just double click 
on it. Hopefully that will work. :)

Also can you do a:

set CATALINA_HOME

and let us know what it returns?

-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CharConversionException

2003-05-27 Thread Andre E. Bar'yudin
On Tue, May 27, 2003 at 02:46:38PM -0400, Shapira, Yoav wrote:
> 
> Howdy,
> 
> >Don't you have an "access" log?  For tomcat or apache, if you use JK
> >Coyote connector?  In case of GET method you can locate the offending
> >request...
> 
> I do have an access log, in the combined pattern.  These access logs are
> very large, however, as I get thousands of requests per hour on average.
> Moreover, the exception in CharConversionException catalina.out does not
> have a timestamp to narrow down my search.  Any suggestions?
> 
> This is a stand-alone tomcat setup.  A Coyote HTTP connector.  No
> apache, no JK, no other connectors.

No timestamping is bad... is increasing the debug level of the connector
an option for you?

My wild guess is that there could be a mismatch between the request
declared (or assumed by tomcat/defined in your code) character set and
the "real" one.  How often does this exception shows up in your logs?

Regards,

Andre.

-- 
Andre E. Bar'yudin
Home page: http://www.cs.huji.ac.il/~baryudin/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS

Lets try this the easy way... Find the file in Windows Explorer either by 
searching for it or navigating into the right directory and just double click 

on it. Hopefully that will work. :)

Also can you do a:

set CATALINA_HOME

and let us know what it returns?


When I go to windows explorer I see that under the directory "dist"
bin
conf
serv
temp
work
common
logs
shared
webapps

when I go to  windows exploere and look under the bin directory I see
bootstrap
catalina
commons-launcher
digest
launcher properties
setclasspath
shutdown
startup
tool-wrapper
cpappend
digest
lauvher bootstrap
starup.sh
etc


I did
C:\> set CATALINA_HOME and it said

CATALINA_HOME=C:\>set 
CATALINA_HOME=C:\jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist

CATALINA_HOME  =   C:\jakarta-tomcat-5-bin-20030526

Maybe the problem is that when I created a new one I still had the first one.

Thank you for your assistance 
Stan

ps what do I double click on in windows explorer ?> 
> 



RE: CharConversionException

2003-05-27 Thread Shapira, Yoav

Howdy,

>No timestamping is bad... is increasing the debug level of the
connector
>an option for you?

I suppose I could try that.  Heopfully the exception will come up again
after I do.

>My wild guess is that there could be a mismatch between the request
>declared (or assumed by tomcat/defined in your code) character set and
>the "real" one.  How often does this exception shows up in your logs?

That's an interesting idea.  This exception is rare and appears
apparently at random.

I don't define any charsets, nor rely explicitly on any specific
charset, in my request processing.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread John Turner
"startup" in the bin directory

On Tue, 27 May 2003 15:43:36 EDT, <[EMAIL PROTECTED]> wrote:

Lets try this the easy way... Find the file in Windows Explorer either by 
searching for it or navigating into the right directory and just double 
click

on it. Hopefully that will work. :)

Also can you do a:

set CATALINA_HOME

and let us know what it returns?

When I go to windows explorer I see that under the directory "dist"
bin
conf
serv
temp
work
common
logs
shared
webapps
when I go to  windows exploere and look under the bin directory I see
bootstrap
catalina
commons-launcher
digest
launcher properties
setclasspath
shutdown
startup
tool-wrapper
cpappend
digest
lauvher bootstrap
starup.sh
etc
I did
C:\> set CATALINA_HOME and it said
CATALINA_HOME=C:\>set CATALINA_HOME=C:\jakarta-tomcat-5-bin- 
20030526\jakarta-tomcat-5\dist

CATALINA_HOME  =   C:\jakarta-tomcat-5-bin-20030526

Maybe the problem is that when I created a new one I still had the first 
one.

Thank you for your assistance Stan

ps what do I double click on in windows explorer ?>





--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Oracle Type 4 Driver

2003-05-27 Thread Schwartz, David (CHR)
thanks. got it.
can you point me to a simple example of using it in servlet with basic
select statement (to help get started)?

thanks

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:16 PM
To: Tomcat Users List
Subject: Re: Oracle Type 4 Driver


On Wed, 28 May 2003 03:10, Schwartz, David (CHR) wrote:
> Can anyone recomend a type 4 driver for oracle 8.1.7?
> I'm running Tomcat 4.1.24

Isn't Oracle's own JDBC Thin Driver type 4? I'm fairly sure it is, it gets 
installed with the Oracle client, something likew classes12.zip and 
nls_charset12.zip, rename those to .jar files and you're good to go.

They should be documented within Oracle's doco if not there is plenty of 
reference material on the web you can google for.

Regard,s
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Message Archives?

2003-05-27 Thread Kevin Andryc
Hi,
   I was wondering if anyone has problems obtaining archived messages when
performing a search? I have tried several times but have received a "403:
Forbidden" message on every message I have received back from the search.

Thanks,
Kevin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread Jason Bainbridge
On Wed, 28 May 2003 03:43, [EMAIL PROTECTED] wrote:
> CATALINA_HOME=C:\>set
> CATALINA_HOME=C:\jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist
>
> CATALINA_HOME  =   C:\jakarta-tomcat-5-bin-20030526
>
> Maybe the problem is that when I created a new one I still had the first
> one.

I'd say you have a CATALINA_HOME set as a system wide environment variable and 
a user specific one, I'm not sure which will take preference.

Easiest way to fix it is to Right click on My Computer, Properties, Advanced 
tab, Environment Variables button, then find CATALINA_HOME in the top User 
Variables box, delete it, then find it in the System Variables box and make 
sure it points to the full path of the dist directory.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jboss to parse exsisting tomcat server.xml ...

2003-05-27 Thread graghupathy
Hi,
Can any one tell me ( or give me ) an example of how to make jboss
parse my existing tomcat server.xml file ???
jboss 3.0.X and tomcat 4.1.18. ( windows / linux )



Thanks & Regards
Guru :-)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS
"startup" in the bin directory


Thank you for your assistance. It is appreciated !
I double clicked on the 'startup" file in the bin directory
the error message said:
"The JAVA_HOME environment variable is not defined.
the environment variable is needed to run this program
using CATALINA_BASE
 CATALINA_HOME
  CATALINA_TMPDIR..\temp
 JAVA_HOME   "

Thank you for your  patience
Stan 



> On Tue, 27 May 2003 15:43:36 EDT, <[EMAIL PROTECTED]> wrote:
> 
> >
> >Lets try this the easy way... Find the file in Windows Explorer either by 
> >searching for it or navigating into the right directory and just double 
> >click
> >
> >on it. Hopefully that will work. :)
> >
> >Also can you do a:
> >
> >set CATALINA_HOME
> >
> >and let us know what it returns?
> >
> >
> >When I go to windows explorer I see that under the directory "dist"
> >bin
> >conf
> >serv
> >temp
> >work
> >common
> >logs
> >shared
> >webapps
> >
> >when I go to  windows exploere and look under the bin directory I see
> >bootstrap
> >catalina
> >commons-launcher
> >digest
> >launcher properties
> >setclasspath
> >shutdown
> >startup
> >tool-wrapper
> >cpappend
> >digest
> >lauvher bootstrap
> >starup.sh
> >etc
> >
> >
> >I did
> >C:\> set CATALINA_HOMEand it said
> >
> >CATALINA_HOME=C:\>set CATALINA_HOME=C:\jakarta-tomcat-5-bin- 
> >20030526\jakarta-tomcat-5\dist
> >
> >CATALINA_HOME  =   C:\jakarta-tomcat-5-bin-20030526
> >
> >Maybe the problem is that when I created a new one I still had the first 
> >one.
> >
> >Thank you for your assistance Stan
> >
> >ps what do I double click on in windows explorer ?>
> >>
> >
> >
> 



RE: SendMailServlet

2003-05-27 Thread Mark Irvine LCGI
Hi,

Thank you very much for your help - It Works!!!

However I'm still a little confused.  Before moving the mail.jar and
activation.jar files to the common\lib folder, they were in the
examples\WEB-INF\lib (I had to create the lib folder).  I checked the
entire tomcat directory and there was only one copy of each file, I even
removed the files in the C drive of the computer.  In this situation the
sendmailservlet did not work.  Do you have any idea why?  Having created
the lib folder must I edit an XML configuration file?

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 27 May 2003 20:17
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: SendMailServlet



Howdy,

>Many thanks for your reply.  This did change the error message to:
>
>ENCOUNTERED EXCEPTION: java.lang.NoClassDefFoundError: 
>javax/mail/Session
>java.lang.NoClassDefFoundError: javax/mail/Session

Ah, now we're getting somewhere.  You have multiple copies of the
JavaMail API of different versions in your tomcat installation.  Ensure
you only have one copy of the JavaMail API around.  Also make sure
mail.jar and activation.jar are in the same classloader repository (i.e.
both in WEB-INF/lib, or both in common/lib, but not in separate places)
to be safe.

Yoav Shapira 



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Oracle Type 4 Driver

2003-05-27 Thread Jason Bainbridge
On Wed, 28 May 2003 03:50, Schwartz, David (CHR) wrote:
> thanks. got it.
> can you point me to a simple example of using it in servlet with basic
> select statement (to help get started)?

A quick google turned up:

http://www.classicity.com/oracle/htdocs/forums/ClsyForumID124/7.html

You would be wise to look into the JNDI datasource example on the 
jakarta.apache.org site though to handle your datasources better. :)

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS


Easiest way to fix it is to Right click on My Computer, Properties, Advanced 
tab, Environment Variables button, then find CATALINA_HOME in the top User 
Variables box, delete it, then find it in the System Variables box and make 
sure it points to the full path of the dist directory.

>I did not find CATALINA_HOME listed in the user variables box on the top.
 I did not see it in the System variables box either.

Thank you very much for your assistance
Stan



> Regards,
> -- 
> Jason Bainbridge



On Wed, 28 May 2003 03:43, [EMAIL PROTECTED] wrote:
>CATALINA_HOME=C:\>set
>CATALINA_HOME=C:\jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist
>
>CATALINA_HOME  =  C:\jakarta-tomcat-5-bin-20030526
>
>Maybe the problem is that when I created a new one I still had the first
>one.

I'd say you have a CATALINA_HOME set as a system wide environment variable 
and 
a user specific one, I'm not sure which will take preference.


Re: System cannot find the path specified !

2003-05-27 Thread Jason Bainbridge
On Wed, 28 May 2003 03:56, [EMAIL PROTECTED] wrote:
> "The JAVA_HOME environment variable is not defined.
> the environment variable is needed to run this program

Have you got a JDK installed? If not you need one...

Then you need to create an environment variable JAVA_HOME similar to 
CATALINA_HOME but it needs to point to your installation of the JDK, 
something like C:\j2sdk1.4.0

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CharConversionException

2003-05-27 Thread Andre E. Bar'yudin
On Tue, May 27, 2003 at 03:43:25PM -0400, Shapira, Yoav wrote:
> 
> Howdy,
> 
> >No timestamping is bad... is increasing the debug level of the
> connector
> >an option for you?
> 
> I suppose I could try that.  Heopfully the exception will come up again
> after I do.
> 
> >My wild guess is that there could be a mismatch between the request
> >declared (or assumed by tomcat/defined in your code) character set and
> >the "real" one.  How often does this exception shows up in your logs?
> 
> That's an interesting idea.  This exception is rare and appears
> apparently at random.

If I'm right, the mismatch may be caused by some rare type of browser.

> I don't define any charsets, nor rely explicitly on any specific
> charset, in my request processing.

Still some charset is used to decode the incoming HTTP requests.
Anyway, without more info it's hard to make any assumptions.

Regards,

Andre.

-- 
Andre E. Bar'yudin
Home page: http://www.cs.huji.ac.il/~baryudin/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread John Turner
Ugh.

For setting JAVA_HOME, see my HOWTO: http://www.johnturner.com/howto/winxp- 
howto.html

For setting CATALINA_HOME, see my HOWTO: 
http://www.johnturner.com/howto/winxp-howto.html

You need both.  Once both are set, reboot, then try starting Tomcat again.

John

On Tue, 27 May 2003 16:03:15 EDT, <[EMAIL PROTECTED]> wrote:



Easiest way to fix it is to Right click on My Computer, Properties, 
Advanced tab, Environment Variables button, then find CATALINA_HOME in 
the top User Variables box, delete it, then find it in the System 
Variables box and make sure it points to the full path of the dist 
directory.

I did not find CATALINA_HOME listed in the user variables box on the 
top.
I did not see it in the System variables box either.

Thank you very much for your assistance
Stan


Regards,
-- Jason Bainbridge


On Wed, 28 May 2003 03:43, [EMAIL PROTECTED] wrote:
CATALINA_HOME=C:\>set
CATALINA_HOME=C:\jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist
CATALINA_HOME  =  C:\jakarta-tomcat-5-bin-20030526

Maybe the problem is that when I created a new one I still had the first
one.
I'd say you have a CATALINA_HOME set as a system wide environment 
variable and a user specific one, I'm not sure which will take 
preference.



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RES: Oracle Type 4 Driver

2003-05-27 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I am using the thin(?) client 8.17 with TomCat 4.1.18 and CPDS ( connection
pool ). No problem yet.
Euclides. 

-Mensagem original-
De: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 16:10
Para: 'Tomcat Users List'
Assunto: Oracle Type 4 Driver


Can anyone recomend a type 4 driver for oracle 8.1.7?
I'm running Tomcat 4.1.24

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS
John,
   Your web site is a great help. I am taking time to study there now
 Thanks very much !
 Stan

> 
> Ugh.
> 
> For setting JAVA_HOME, see my HOWTO: http://www.johnturner.com/howto/winxp- 
> howto.html
> 
> For setting CATALINA_HOME, see my HOWTO: 
> http://www.johnturner.com/howto/winxp-howto.html
> 
> You need both.  Once both are set, reboot, then try starting Tomcat again.
> 
> John
> 



Re: System cannot find the path specified !

2003-05-27 Thread DominskiS
On Wed, 28 May 2003 03:56, [EMAIL PROTECTED] wrote:
> "The JAVA_HOME environment variable is not defined.
> the environment variable is needed to run this program

Have you got a JDK installed? If not you need one...

>>  I have j2sdk1.4.0_03

At the command prompt I did
C:\>JAVA_HOME=C:\j2sdk1.4.0_03

the response was
"JAVA_HOME" was not recognized as a internal or external command, operable 
program or  batch file

Thank you for your  patience
Stan




> 
> Then you need to create an environment variable JAVA_HOME similar to 
> CATALINA_HOME but it needs to point to your installation of the JDK, 
> something like C:\j2sdk1.4.0
> 
> Regards,
> -- 
> Jason Bainbridge
> KDE Web Team - http://kde.org 
> [EMAIL PROTECTED] 
> 



Re: Firebird|Tomcat "java.sql.SQLException: Cannot load JDBC driver class 'null'"

2003-05-27 Thread Rob Casteen
Thank you Chong for your reply,
Perhaps I need to clarify, I have downloaded the FirebirdSQL-1.0.0 
(Jaybird) driver and am following the directions in the FAQ file, with 
modifications to the connection url for the fact that I am on a windows 
system. As far as the type 4 driver that is included (that you 
mentioned), I do not see any info other than release notes (which seem 
to indicate the driver I downloaded and installed are same as the one 
included) the information in the release are very general in nature and 
not help in the way of  installation and testing. The Jaybird driver is 
the one I wish to use due to the connection pooling feature, I am 
following the information in the Tomcat "jndi-datasource" howto in the 
Tomcat docs, although as indicated in my previous email, I am having 
little luck. In addition, I want to confirm that I have placed all 
relevant .jars in the commom/lib directory. Again thank you for your 
previous response - any additional assistance will be very helpful.
Thank you,
Rob



Chong Yu Meng wrote:

Hello Rob !

I'm not sure if you are aware : the Firebird database comes with 2 JDBC 
"flavors", a Type 4 JDBC driver (which is a separate download) and 
Interclient (which is really more of a JDBC mediation component). The 
configuration for Interclient is covered in this link : 
http://www.kpi.com.au/interbase/index.jsp while the configuration for 
the Type 4 JDBC driver is in the README file that comes with the driver 
download. Depending on which driver you use, the configuration is *very*

different! If you are following the MySQL examples, you should use the 
Type 4 driver.

Second, make sure that your JDBC driver is in your CLASSPATH and that 
Tomcat can "see" it. That is, either point to it explicitly in your 
CLASSPATH, or save the jar file into $TOMCAT_HOME/common/lib.

HTH

Regards,
pascal chong


Rob Casteen wrote:

 

Hey guys, I am hoping I could get some help with this issue. The 
research I have done online reveals this error with several databases 
although I have yet to find a actionable answer nor anything firebird 
spoecific. I am attempting to connect Firebird to Tomcat based on the 
MYSQL example in the Tomcat Docs and through the datasource setup in 
the administration console. I have attempted to include all relevant 
data to show the activity on my server,  including the log, the 
example code, and the relevant server.xml code.

I appreciate all help that you can offer.
Rob
**Log

java.sql.SQLException: Cannot load JDBC driver class 'null'
  at 

   

org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:529) 
 

  at 

   

org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:312) 
 

  at foo.DBTest.init(DBTest.java:23)
  at org.apache.jsp.test_jsp._jspService(test_jsp.java:49)
  at
   

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 

   

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:204) 
 

  at 

   

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 

  at
   

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 

   

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247) 
 

  at 

   

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193) 
 

  at 

   

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260) 
 

  at 

   

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643) 
 

  at 

   

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80) 
 

  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 

   

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191) 
 

  at 

   

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643) 
 

  at 

   

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80) 
 

  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 

   

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5) 
 

  at 

   

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180) 
 

  at 

   

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643) 
 

  at 

   

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170) 
 

  at 

   

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641) 
 

  at 

   

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172) 
 

  at 

   

org.apache.c

RE: Firebird|Tomcat "java.sql.SQLException: Cannot load JDBC dri ver class 'null'"

2003-05-27 Thread graghupathy
if it ias zip file then rename it to jar  
and put it into common lib directory of tomcat :)

-Original Message-
From: Rob Casteen [mailto:[EMAIL PROTECTED]
Sent: 27 May 2003 21:59
To: Tomcat Users List
Subject: Re: Firebird|Tomcat "java.sql.SQLException: Cannot load JDBC
dri ver class 'null'"


Thank you Chong for your reply,
Perhaps I need to clarify, I have downloaded the FirebirdSQL-1.0.0 
(Jaybird) driver and am following the directions in the FAQ file, with 
modifications to the connection url for the fact that I am on a windows 
system. As far as the type 4 driver that is included (that you 
mentioned), I do not see any info other than release notes (which seem 
to indicate the driver I downloaded and installed are same as the one 
included) the information in the release are very general in nature and 
not help in the way of  installation and testing. The Jaybird driver is 
the one I wish to use due to the connection pooling feature, I am 
following the information in the Tomcat "jndi-datasource" howto in the 
Tomcat docs, although as indicated in my previous email, I am having 
little luck. In addition, I want to confirm that I have placed all 
relevant .jars in the commom/lib directory. Again thank you for your 
previous response - any additional assistance will be very helpful.
Thank you,
Rob



Chong Yu Meng wrote:

>Hello Rob !
>
>I'm not sure if you are aware : the Firebird database comes with 2 JDBC 
>"flavors", a Type 4 JDBC driver (which is a separate download) and 
>Interclient (which is really more of a JDBC mediation component). The 
>configuration for Interclient is covered in this link : 
>http://www.kpi.com.au/interbase/index.jsp while the configuration for 
>the Type 4 JDBC driver is in the README file that comes with the driver 
>download. Depending on which driver you use, the configuration is *very*
>
>different! If you are following the MySQL examples, you should use the 
>Type 4 driver.
>
>Second, make sure that your JDBC driver is in your CLASSPATH and that 
>Tomcat can "see" it. That is, either point to it explicitly in your 
>CLASSPATH, or save the jar file into $TOMCAT_HOME/common/lib.
>
>HTH
>
>Regards,
>pascal chong
>
>
>
>
>Rob Casteen wrote:
>
>  
>
>>Hey guys, I am hoping I could get some help with this issue. The 
>>research I have done online reveals this error with several databases 
>>although I have yet to find a actionable answer nor anything firebird 
>>spoecific. I am attempting to connect Firebird to Tomcat based on the 
>>MYSQL example in the Tomcat Docs and through the datasource setup in 
>>the administration console. I have attempted to include all relevant 
>>data to show the activity on my server,  including the log, the 
>>example code, and the relevant server.xml code.
>>
>>I appreciate all help that you can offer.
>>Rob
>>
>>**Log
>>
>>java.sql.SQLException: Cannot load JDBC driver class 'null'
>>   at 
>>
>>
>>
>org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
>.java:529) 
>  
>
>>   at 
>>
>>
>>
>org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
>va:312) 
>  
>
>>   at foo.DBTest.init(DBTest.java:23)
>>   at org.apache.jsp.test_jsp._jspService(test_jsp.java:49)
>>   at
>>
>>
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>  
>
>>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>   at 
>>
>>
>>
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
>va:204) 
>  
>
>>   at 
>>
>>
>>
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>  
>
>>   at
>>
>>
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>  
>
>>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>   at 
>>
>>
>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
>tionFilterChain.java:247) 
>  
>
>>   at 
>>
>>
>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
>erChain.java:193) 
>  
>
>>   at 
>>
>>
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
>e.java:260) 
>  
>
>>   at 
>>
>>
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643) 
>  
>
>>   at 
>>
>>
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80) 
>  
>
>>   at 
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>   at 
>>
>>
>>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
>e.java:191) 
>  
>
>>   at 
>>
>>
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643) 
>  
>
>>   at 
>>
>>
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80) 
>  
>
>>   at 
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>   at 
>>
>>
>>
>org.apache.catalina.core.StandardContext.

RE: System cannot find the path specified !

2003-05-27 Thread Longley, Andrew
I'm sure you're past this, but the first line (line 1) is not correct.
You need to 

set PATH=c:\j2sdk1.4.0_03
 
or whatever.  (you are missing the c:)

Andrew

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 27, 2003 10:57 AM
To: [EMAIL PROTECTED]
Subject: System cannot find the path specified !

Hello Tomcat People,
   Trying to get started using Tomcat. I did:

1) C:\> set PATH = j2sdk1.4.0_03
2) C:\> set PATH = %JAVA_HOME%\bin;%PATH%
3) C:\> set JDBC_HOME = C:\oracle\jdbc\lib
4) C:\> CATALINA_HOME\bin\startup.bin

The error message says:
" system cannot find the path specified "

Your suggestions are appreciated
Stan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



is it a good practice?

2003-05-27 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I am using the package CPDS ( connection pooling ) into my init() method of
my servlet, which is called from an initial jsp form.Is it really a good
practice, since i am building a small system.
Regards,
Euclides.  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Firebird|Tomcat "java.sql.SQLException: Cannot load JDBC driver class 'null'"

2003-05-27 Thread Jason Bainbridge
On Sat, 24 May 2003 06:53, Rob Casteen wrote:

You need this first:



> ***Server.xml additions:
> 

Should be 


> jdbc:firebirdsql:localhost/3050:C:\\Firebird\\DBcontain\\JAVATEST.FD
>B 

That doesn't look right, I would have expected it to be something like 
jdbc:firebirdsql:localhost:3050/JAVATEST although if you are using the 
intermediary driver I could be wrong, I'd look it up but I'm in the middle of 
building KDE and Konqueror is currently borked.

You will also need to use the jdbc/TestDB name to reference the DataSource as 
well.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Address help

2003-05-27 Thread Christian Fredrickson
 have a Tomcat server (v. 4) running on a Windows 2000 server.

It has 2 NICs with separate IP addresses.

It also runs IIS. I have set IIS to run on one address and Tomcat on
another. I used the Server.xml file and set the connector tags with a
address="x.x.x.x" value in order to have it start on the correct address. It
seems no matter what I do, Tomcat always wants to start on all IP addresses
and fails to start if the IIS web server is started.

Any help in solving this would be appreciated.

Chris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Good practice with connection pooling

2003-05-27 Thread Jose Euclides da Silva Junior - DATAPREVRJ


> I am using the package CPDS ( connection pooling ) into my init() method
> of my servlet, which is called from an initial jsp form.Is it really a
> good practice, since i am building a small system.
> Regards,
> Euclides.  
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is Tomcat a standalone Web Server also?

2003-05-27 Thread Hassan
Yes offcourse. Further, I think J2EE Server is all but Tomcat implementation
;)

Hassan
- Original Message -
From: "Agarwal, Naresh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 7:36 AM
Subject: Is Tomcat a standalone Web Server also?


Hi

Can I use Tomcat as a standalone WebServer?

regards,
Naresh Agarwal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



arrowhead asp server on win xp

2003-05-27 Thread streeper
Does anyone have the arrowhead asp server running on win xp?

thanks,
Bill Streeper
---
[SMGazette.com E-mail is scanned for viruses by Declude Virus]
[Visit us on the web at SMGazette.com]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


servlet question

2003-05-27 Thread Paul Hsu
Hi,

I try to forward a HTTP request from my servlet. I am using the following code.

RequestDispatcher rd =
getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);

I have no problem with code, but I have one issue is how can I change the request 
method from "POST" to "GET" before I forward the original request.

I would appreciate any help

Paul 

Re: servlet question

2003-05-27 Thread Emerson Cargnin
for what you want to change the request method.
I usally call doGet from doPost, so i do everything in the get method
Paul Hsu wrote:

Hi,

I try to forward a HTTP request from my servlet. I am using the following code.

RequestDispatcher rd =
   getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);
I have no problem with code, but I have one issue is how can I change the request method from "POST" to "GET" before I forward the original request.

I would appreciate any help

Paul 
 

--
Emerson Cargnin
Analista de Sitemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RES: servlet question

2003-05-27 Thread Jose Euclides da Silva Junior - DATAPREVRJ
try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


Hi,

I try to forward a HTTP request from my servlet. I am using the following
code.

RequestDispatcher rd =
getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);

I have no problem with code, but I have one issue is how can I change the
request method from "POST" to "GET" before I forward the original request.

I would appreciate any help

Paul 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is servlet chaining possible using Tomcat

2003-05-27 Thread Hassan
Not sure if servlet chaining is still supported as that's now a deprecated
practice. Use Servlet Collaboration to achieve the same.


- Original Message -
From: "Bilal Ahmad" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 4:38 PM
Subject: Is servlet chaining possible using Tomcat


> Is servlet chaining possible in tomcat like in java web server
>
> _
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: is it a good practice?

2003-05-27 Thread Emerson Cargnin
I use other connection pool framework, http://www.bitmechanic.com/.
I have a ConnManager servlet, which uses a static Class to configure the 
pools (by the web.xml params).  The others apps just call a static 
method in my class to get the connection. in this way i decouple the 
connection management from the apps and I can Update , manage and 
test the connections pools from this servlet.

Jose Euclides da Silva Junior - DATAPREVRJ wrote:

I am using the package CPDS ( connection pooling ) into my init() method of
my servlet, which is called from an initial jsp form.Is it really a good
practice, since i am building a small system.
Regards,
Euclides.  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Emerson Cargnin
Analista de Sitemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: servlet question

2003-05-27 Thread Paul Hsu
Thank you for the help. I think you may misunderstand my question. My
question is how can I forward the request to my next URL and change the
method to 'GET' if the orignal request is using 'POST'.
For example:

test1.html call servlet1 by using "POST" method, but servlet1 need to
forward to servlet2 by using "GET". How can I switch from "POST" to "GET" in
servlet1.

thanks

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


Hi,

I try to forward a HTTP request from my servlet. I am using the following
code.

RequestDispatcher rd =
getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);

I have no problem with code, but I have one issue is how can I change the
request method from "POST" to "GET" before I forward the original request.

I would appreciate any help

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: servlet question

2003-05-27 Thread Tam, Michael
Just a wild guess, how about servlet 1 doPost() call its own doGet() and
redirect in the doGet body???

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:41 PM
To: Tomcat Users List
Subject: Re: servlet question


Thank you for the help. I think you may misunderstand my question. My
question is how can I forward the request to my next URL and change the
method to 'GET' if the orignal request is using 'POST'.
For example:

test1.html call servlet1 by using "POST" method, but servlet1 need to
forward to servlet2 by using "GET". How can I switch from "POST" to "GET" in
servlet1.

thanks

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


Hi,

I try to forward a HTTP request from my servlet. I am using the following
code.

RequestDispatcher rd =
getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);

I have no problem with code, but I have one issue is how can I change the
request method from "POST" to "GET" before I forward the original request.

I would appreciate any help

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2003-05-27 Thread Hassan
if your dispatched request is getting problems because of non compatible
types of GET/Post methods at collaborating servlets then at the receiving
end add a dummy method of (Get or Post), whichever is missing, and forward
the processing to the actual method. For example:

protected void doGet(HttpServletRequest req, HttpServletResponse res)
  throws IOException, ServletException
 {
  doPost(req, res);
 }

protected void doPost(HttpServletRequest req, HttpServletResponse res)
  throws IOException, ServletException
{
with full implementation
}




- Original Message -
From: "Paul Hsu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 11:26 PM
Subject: servlet question


Hi,

I try to forward a HTTP request from my servlet. I am using the following
code.

RequestDispatcher rd =
getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);

I have no problem with code, but I have one issue is how can I change the
request method from "POST" to "GET" before I forward the original request.

I would appreciate any help

Paul



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2003-05-27 Thread Paul Hsu
Actually my servlet try to forward a 'POST' request to a Flash program, but
the Flash program cannot process 'POST', so I must forward the request to
Flash with 'GET' method. That is my issue.

- Original Message -
From: "Hassan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:45 PM
Subject: Re: servlet question


> if your dispatched request is getting problems because of non compatible
> types of GET/Post methods at collaborating servlets then at the receiving
> end add a dummy method of (Get or Post), whichever is missing, and forward
> the processing to the actual method. For example:
>
> protected void doGet(HttpServletRequest req, HttpServletResponse res)
>   throws IOException, ServletException
>  {
>   doPost(req, res);
>  }
>
> protected void doPost(HttpServletRequest req, HttpServletResponse res)
>   throws IOException, ServletException
> {
> with full implementation
> }
>
>
>
>
> - Original Message -
> From: "Paul Hsu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 27, 2003 11:26 PM
> Subject: servlet question
>
>
> Hi,
>
> I try to forward a HTTP request from my servlet. I am using the following
> code.
>
> RequestDispatcher rd =
> getServletContext().getRequestDispatcher(direct);
> rd.forward(request, response);
>
> I have no problem with code, but I have one issue is how can I change the
> request method from "POST" to "GET" before I forward the original request.
>
> I would appreciate any help
>
> Paul
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2003-05-27 Thread Paul Hsu
My code is doing this way already, but it does not work.You think the method
will change if I forward the "POST" request inside doGet().

- Original Message -
From: "Tam, Michael" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:44 PM
Subject: RE: servlet question


Just a wild guess, how about servlet 1 doPost() call its own doGet() and
redirect in the doGet body???

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:41 PM
To: Tomcat Users List
Subject: Re: servlet question


Thank you for the help. I think you may misunderstand my question. My
question is how can I forward the request to my next URL and change the
method to 'GET' if the orignal request is using 'POST'.
For example:

test1.html call servlet1 by using "POST" method, but servlet1 need to
forward to servlet2 by using "GET". How can I switch from "POST" to "GET" in
servlet1.

thanks

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


Hi,

I try to forward a HTTP request from my servlet. I am using the following
code.

RequestDispatcher rd =
getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);

I have no problem with code, but I have one issue is how can I change the
request method from "POST" to "GET" before I forward the original request.

I would appreciate any help

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >