New to Tomcat 4.1.10

2002-09-18 Thread Jean-Baptiste Onofré

Hello all,

yesterday i have Apache 1.3.26 + mod_jk1 + Tomcat 4.0.3

All works fine.

I would like to update to Tomcat 4.1.10 with mod_jk2.
Someone can help me (send me url, documentation and config file) ?

Thanks,
Best regards
-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://lug-beziers.org
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: sym link problems with tomcat 4.1

2002-09-18 Thread Remy Maucherat

Dan Lipofsky wrote:
> I have a symbolic link from webapps/nuserve/images to a directory
> outside of the tomcat directory tree.  This worked fine under
> tomcat 3.2.4 but I can't see my images under tomcat 4.1.10.
> Does anyone know why this is, and if I can get tomcat 4.1 to
> follow my symbolic links?
> 
> (symbolic links between files or directories inside of
> webapps/nuserve work fine, however)
> 
> I have seen a few other posts about this (but no answers)
> that indicate it works fine in 4.0 too, but not 4.1.

I wonder why I even bother writing the release notes :-(

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat 4.0.4 and oracle

2002-09-18 Thread Ben Walding

One thing to be aware of... the thin-jdbc drivers don't support Oracle 
name servers (ONAME)


Felix Schumacher wrote:

>If you are using the oci-jdbc driver, you have to make tomcat see
>the native oracle dlls. (LD_LIBRARY_PATH under linux, don't know 
>under windows)
>
>Try using the thin-jdbc driver first (by changing the jdbc-url)
>-- Original Nachricht --
>
>  
>
>>If I run tomcat from the Windows command prompt using startup.bat, I get:
>>
>>
>>
>>Exception during startup processing
>>
>>java.lang.reflect.InvocationTargetException
>>
>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI
>>
>>java:39)
>>
>>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA
>>
>>sorImpl.java:25)
>>
>>   at java.lang.reflect.Method.invoke(Method.java:324)
>>
>>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>>
>>Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
>>
>>...
>>
>>
>>
>>However, if I run from the start menu I don't have this problem.
>>
>>
>>
>>I gather that somewhere an oracle library is not being loaded, but I'm
>>
>>
>not
>  
>
>>sure how to fix this.
>>
>>I have put classes12.jar in the common/lib because I'm using Oracle for
>>authentication.
>>
>>
>>
>>Other than that, everything is default.
>>
>>
>>
>>Can anyone help?
>>
>>
>>
>>
>
>
>
>
>
>
>
>
>Online Fotoalben - jetzt kostenlos bei http://www.ePost.de
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat 4.0.4 and oracle

2002-09-18 Thread Felix Schumacher


If you are using the oci-jdbc driver, you have to make tomcat see
the native oracle dlls. (LD_LIBRARY_PATH under linux, don't know
under windows)

Try using the thin-jdbc driver first (by changing the jdbc-url)
-- Original Nachricht --

>If I run tomcat from the Windows command prompt using startup.bat, I get:
>
>
>
>Exception during startup processing
>
>java.lang.reflect.InvocationTargetException
>
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI
>
>java:39)
>
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA
>
>sorImpl.java:25)
>
>at java.lang.reflect.Method.invoke(Method.java:324)
>
>at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>
>Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
>
>...
>
>
>
>However, if I run from the start menu I don't have this problem.
>
>
>
>I gather that somewhere an oracle library is not being loaded, but I'm
not
>sure how to fix this.
>
>I have put classes12.jar in the common/lib because I'm using Oracle for
>authentication.
>
>
>
>Other than that, everything is default.
>
>
>
>Can anyone help?
>
>








Online Fotoalben - jetzt kostenlos bei http://www.ePost.de



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Enquiry

2002-09-18 Thread Tom Cook

On  0, Lee Jesse <[EMAIL PROTECTED]> wrote:
> Dear Sir or Madam,
> 
> I have some problems changing the host name of the Tomcat. The initial host
> name for Tomcat is 'localhost', and I want to change to some other name.
> Can it be done?

You can't just assign host names.  You can address tomcat as

http://localhost:8080/

or, if your host has another valid name, say frog.pond, then you can
address tomcat as

http://frog.pond:8080/

This is not a tomcat issue, it is an operating system issue, or really
a network issue.  You can set your host name to whatever you like, but
if you are on a network then it is best to ask your sysadmin about it
- they can change your machine's entry in your DNS.

Tom
-- 
Tom Cook
Information Technology Services, The University of Adelaide

"Chaos Theory is a new theory invented by scientists panicked by the thought that the 
public were beginning to understand the old ones."
- Mike Barfield

Get my GPG public key: 
https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au



msg66304/pgp0.pgp
Description: PGP signature


Re: DESPAIR : missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread Robert L Sowders

Please, 

I'm not trying to be rude or anything but, really now.

If you had done a simple search on google or this list you would have 
found.
http://www.johnturner.com/howto/apache-tomcat-howto.html

Instructions are there for building as well as configuration and prebuilt 
binaries. 

You're leading us to believe that you're not trying to find the answers 
yourself.

To answer your question anyway the answer is simple.  Put everything on 
one box to build it, configure it, then move Apache on to the other 
system.  As mentioned before Apache does not need Java, Tomcat does.  As 
for configuring mod_jk to forward requests from one machine to the other 
I'll leave that up to you.  (think workers.properties)

Hint:  Google is your friend, searching this list is a good idea, RTFM 
should be your first step, and the src is commented fairly well.

Anyway good luck with your effort.  When you're done with it, write up a 
nice How To for splitting Apache and Tomcat and post it back to the list. 
Then be available to the list to answer questions.  After a few months 
you'll feel like I do.
 
rls





[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
09/18/2002 05:33 AM
Please respond to "Tomcat Users List"

 
To: Tomcat Users List <[EMAIL PROTECTED]>
cc: 
Subject:Re: DESPAIR :  missing tomcat-apache.conf & mod_jk.conf-auto

Ian McFarland wrote:
> 
> On the Apache box.
Okay, thanks for that, so in the file "build.properties" , how do I set
"tomcat40.home =CATALINA_HOME" since Tomcat is on another boc. Likewise
tomcat41.home ???

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




OT: Host recommendations?

2002-09-18 Thread Matt Raible

In response to:
http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg66271.ht
ml

I've been using http://www.kgbinternet.com for about 3 months now and
they're awesome!  You get your own Tomcat instance and you're allowed to
upgrade at will - comes with JDK 1.4 and one-time setup fees for MySQL
or PostgreSQL.  Seems like a small shop and Keith has always been quick
to respond (within 1/2 hour via e-mail) of any issues I have - and only
$12 US/month!

Matt



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OFF-TOPIC] RE: John: missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread Kent Perrier

On Wed, Sep 18, 2002 at 07:33:33PM +1000, [EMAIL PROTECTED] wrote:
> 
> > Apache does not need J2SDK or JRE to function.  It has nothing to do with
> > java.
> 
> Which of the 2 machines do I install mod_jk on :
> (1) on the web-server (Apache)   or
> (2) on the app-server (Tomcat)   or
> (3) both ???
> 
> I remember one of the many doco's mentioned Apache and mod_jk , but I
> can't find that one again.
> 
> I am getting so frustrated following instructions on the doco's at the
> moment because :
> (1) to get Apache to talk to Tomcat , I need mod_jk
> (1.1) ... Apache 1.3.16 is too old, build 2.0.4
> (2) to install mod_jk , I need ANT 
> (2.2) ... and no, I haven't got "libtoolize" !

You probably need to install the developer package, or build on a machine
that does.

> (3) to get ANT working I need the whole j2sdk1.4.0 kit and kaboodle...

So, why don't you build mod_jk on the machine that will run Tomcat and
then ftp/scp the mod_jk.so file over to your apache box?  You will have
to do this anyway for the mod_jk.conf file that Tomcat will automagically
create for you.

Kent

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tags and init parameters?

2002-09-18 Thread Mr. Tomcat

With filter, servlets and listeners, it is possible to provide init
parameters in their config files.  This doesn't seem possible with
tags.  Is this true, or is there a way with Tomcat 4.1 to provide tags
some init parameters?  This seems better than compiling some values into
the tag staticly.  If not, I'll have to either compile them in or put
the init stuff into the servlet context.

Thanks for any tips.





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jk connector

2002-09-18 Thread Milt Epstein

On Wed, 18 Sep 2002, "Thébault, Médérick" wrote:

> Thanx for your work. You save my live and protected my job.

Better send him his commission :-).


> -Message d'origine-
> De : Turner, John [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 17 septembre 2002 17:23
> À : 'Tomcat Users List'
> Objet : RE: jk connector
>
>
>
> You have to build from source:
>
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/src/
>
> Or select from the binaries that I have collected from myself and others
> on
> the list:
>
> http://www.johnturner.com/howto
>
> John
>
>
> > -Original Message-
> > From: "Thébault, Médérick"
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 11:16 AM
> > To: Tomcat Users List
> > Subject: jk connector
> >
> >
> > This URL
> >
> > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
> > release/v1
> > .2.0/
> >
> > does not have any files?
> >
> > Do you know where I can find it?
> >
> > Thanx
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Antwort: Re: Antwort: Re: Apache2 + Tomcat4.1.10 + coyote + jk2+ cookies + winNT

2002-09-18 Thread Milt Epstein

On Tue, 17 Sep 2002 [EMAIL PROTECTED] wrote:

>
> Hi Milt,
>
> I've filed a bug and found an old one concerning the same problem.
> Yes I know some of these debugging parameters but I couldn't bring the
> jk2-connecting to be a bit more chattily...
>
> Did somebody here bring AP2,TC4.1,JK2,WINNT/2000 to respond with
> more than cookie within one response ?
> I would like to know so in order to decide if I still have to search
> or if I have to accept this as a bug.

Well, you can always check the source yourself to see if you can find
out what's going on :-).


> Milt Epstein <[EMAIL PROTECTED]> schrieb am 17.09.2002 20:12:45:
>
> > On Mon, 16 Sep 2002 [EMAIL PROTECTED] wrote:
> >
> > > Hi Milt,
> > >
> > > yes, both values are distinct and both are true as well. It seems to
> > > be a bug in the brand new jk2!?
> > > Do you know how I can find out what jk2 sends back to Apache2
> > >
> > > private final static String COOKIE_KEY_FS   = "FStatus";
> > > private final static String COOKIE_KEY_KIB  = "KIB";
> >
> > You might be able to get more info by turning on debugging (or setting
> > it to a higher value).  Many of the tags in the server.xml file take a
> > debug attribute that controls how much info is put in the logs.
> > Likewise, jk/jk2 may have something similar -- e.g. I believe there's
> > a JkDebug directive that you can set to control how much info gets
> > logged.  Not sure what the possible values are, maybe debug, info,
> > warn, and such.
> >
> >
> > > Milt Epstein <[EMAIL PROTECTED]> schrieb am 16.09.2002 15:29:22:
> > >
> > > > On Mon, 16 Sep 2002 [EMAIL PROTECTED] wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > we are using the above depicted configuation and I have
> difficulties in
> > > > > receiving more than one cookie.
> > > > >
> > > > > The existing application, which works fine with apache1.3 + tc4.0
> and
> > > jk1
> > > > > sends back two cookies for the same domain but with different keys.
> > > > > Both cookies are valid for the current session only.
> > > > >
> > > > > The code fragment looks like the following:
> > > > >
> > > > > if ( userAuthorized_KIB ) {
> > > > >   cookie = new Cookie (COOKIE_KEY_KIB, user);
> > > > >   cookie.setMaxAge(-1);
> > > > >   cookie.setPath("/");
> > > > >   cookie.setDomain(COOKIE_DOMAIN);
> > > > >   res.addCookie(cookie);
> > > > >   System.out.println("Cookie KIB set");
> > > > > }
> > > > >   if ( userAuthorized_FS ) {
> > > > >   cookie = new Cookie(COOKIE_KEY_FS, user);
> > > > >   cookie.setMaxAge(-1);
> > > > >   cookie.setPath("/");
> > > > >   cookie.setDomain(COOKIE_DOMAIN);
> > > > >   res.addCookie(cookie);
> > > > >   System.out.println("Cookie FS set");
> > > > > }
> > > > >
> > > > > I always get back the last written cookie only. Here in the above
> > > example
> > > > > the FS cookie.
> > > > > If  I change the code (the KIB cookie is set last) I'll get back
> the
> > > KIB
> > > > > cookie only.
> > > >
> > > > Well, here's the obvious stuff: Are COOKIE_KEY_KIB and COOKIE_KEY_FS
> > > > distinct values?  Are you sure both userAuthorized_KIB and
> > > > userAuthorized_FS are true?  At what point in the processing of the
> > > > response are you doing this?
> > > >
> > > > Milt Epstein
> > > > Research Programmer
> > > > Integration and Software Engineering (ISE)
> > > > Campus Information Technologies and Educational Services (CITES)
> > > > University of Illinois at Urbana-Champaign (UIUC)
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > 
> > > > For additional commands, e-mail:
> > > 
> > > >
> > > >
> > > Da E-Mails leicht unter fremdem Namen erstellt oder manipuliert werden
> > > koennen, muessen wir zu Ihrem und unserem Schutz die rechtliche
> > > Verbindlichkeit der vorstehenden Erklaerungen ausschliessen. Die fuer
> die
> > > Stadtsparkasse Koeln geltenden Regeln ueber die Verbindlichkeit von
> > > rechtsgeschaeftlichen Erklaerungen mit verpflichtendem Inhalt bleiben
> > > unberuehrt.
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> 
> > > For additional commands, e-mail:
> 
> > >
> > >
> >
> > Milt Epstein
> > Research Programmer
> > Integration and Software Engineering (ISE)
> > Campus Information Technologies and Educational Services (CITES)
> > University of Illinois at Urbana-Champaign (UIUC)
> > [EMAIL PROTECTED]
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
> Da E-Mails leicht unter fremdem Namen erstellt oder manipuliert werden
> koennen, muessen wir zu Ihrem und unserem Schutz die rechtliche
> Verbindlichkeit der vorstehenden Erklaerungen ausschliessen. Die fuer die
> Stadtsparkasse Koeln geltenden Regeln ueber die Verbindlichke

Re: DESPAIR : missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread achana

Ian McFarland wrote:
> 
> On the Apache box.
Okay, thanks for that, so in the file "build.properties" , how do I set
"tomcat40.home =CATALINA_HOME" since Tomcat is on another boc. Likewise
tomcat41.home ???

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Antwort: Re: Antwort: Re: Apache2 + Tomcat4.1.10 + coyote + jk2 + cookies+ winNT

2002-09-18 Thread Oliver . Lauer


Hi,

I've set the status uri and get the response below. It seems I've set all
debuggung information successfully but nothing will be logged. My log file
states:

[Wed Sep 18 07:15:22 2002] (error ) [jk_logger_file.c (171)]  Initializing
log file D:/apps/apache/Apache/logs/jk2.log
[Wed Sep 18 07:15:23 2002] (error ) [jk_logger_file.c (171)]  Initializing
log file D:/apps/apache/Apache/logs/jk2.log

Oliver


Configured Properties


Original data set by user


|--++--|
|Object name   | Propert| Value|
|  |y   |  |
|--++--|
|  logger.apache2: | level  | DEBUG|
|--++--|
|  | file   | ${serverRoot}/conf/workers2.propertie|
|  || s|
|--++--|
|  | debug  | 9|
|--++--|
|  config: | debugEn| 9|
|  | v  |  |
|--++--|
|  | level  | DEBUG|
|--++--|
|   logger.file:0  | file   | ${serverRoot}/logs/jk2.log   |
|--++--|
|   ajp13:ww20020003:8009  | channel| channel.socket:ww20020003:8009   |
|--++--|
|  | port   | 8009 |
|--++--|
|  channel.socket:ww20020003:8009  | host   | ww20020003   |
|--++--|
|  | worker | ajp13:ww20020003:8009|
|--++--|
|   uri:/jstl-examples/*   | debug  | 1|
|--++--|
|  | worker | ajp13:ww20020003:8009|
|--++--|
|  uri:/kib/FSTransServlet | debug  | 1|
|--++--|
|  | worker | ajp13:ww20020003:8009|
|--++--|
|   uri:/kib/PrintKibPDF   | debug  | 1|
|--++--|
|  | worker | ajp13:ww20020003:8009|
|--++--|
|   uri:/admin/*   | debug  | 1|
|--++--|
|  | worker | ajp13:ww20020003:8009|
|--++--|
| uri:/fstatus/PWServletNew| debug  | 1|
|--++--|
|  | worker | ajp13:ww20020003:8009|
|--++--|
| uri:/fstatus/GetTreeForKusaServle| debug  | 1|
| t||  |
|--++--|
|  | worker | ajp13:ww20020003:8009|
|--++--|
|  uri:/servlet/*  | debug  | 1|
|--++--|
|

Re: sym link problems with tomcat 4.1

2002-09-18 Thread Jean-Francois Arcand

See bug 11501 and bug 12076

This is currently partially fixed in 4.1.11

-- Jeanfrancois



Dan Lipofsky wrote:

>I have a symbolic link from webapps/nuserve/images to a directory
>outside of the tomcat directory tree.  This worked fine under
>tomcat 3.2.4 but I can't see my images under tomcat 4.1.10.
>Does anyone know why this is, and if I can get tomcat 4.1 to
>follow my symbolic links?
>
>(symbolic links between files or directories inside of
>webapps/nuserve work fine, however)
>
>I have seen a few other posts about this (but no answers)
>that indicate it works fine in 4.0 too, but not 4.1.
>
>Thanks,
>Dan
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DESPAIR : missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread Ian McFarland

On the Apache box.

On Wednesday, Sep 18, 2002, at 04:54 US/Pacific, [EMAIL PROTECTED] 
wrote:

> Yes John, but Apache and Tomcat are on different boxes.
> All the doco's I read sofar subsume one box for both functions.
> Questions :
> (1) Should mod_jk be on the web-server (Apache) or
> (2) Should mod_jk be on the app-server (Tomcat) or
> (3) both ??
> Kind Regards
> AC
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DESPAIR : missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread achana

Yes John, but Apache and Tomcat are on different boxes.
All the doco's I read sofar subsume one box for both functions.
Questions :
(1) Should mod_jk be on the web-server (Apache) or
(2) Should mod_jk be on the app-server (Tomcat) or
(3) both ??
Kind Regards
AC

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Directory layout - virtual hosts in tomcat

2002-09-18 Thread Glenn Nielsen

I also use mod_jk 1.2 with virtual hosting and allow the appBase
for Tomcat to be the document root for apache.

I use JkAutoAlias.  It will automatically serve static files for
any webapp and return a 403 error if someone tries to access
a webapps /WEB-INF or /META-INF directories.

See the docs here and search for JkAutoAlias:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html

This works great for me.

Regards,

Glenn

mdevin wrote:
> Hi all,
> 
> I am looking for some advice regarding the usual directory layout for
> Virtual Hosts and tomcat.
> 
> Currently I have a working setup of apache and tomcat using mod_jk.  I
> have set things up the way that tomcat seems to prefer (or what others
> seem to have done based on the documentation I could find).
> 
> Essentially, I have apache and tomcat both using the same document root
> so that apache will serve any static html pages and tomcat will do the
> jsp and servlet stuff.  However, I am concerned that from a security
> point of view, this may not be the best option.  In particular, this
> means that my cgi-bin directory comes below my document root and I have
> to explicitely deny access to the WEB-INF directory.
> 
> Anyway, I am a little confused as to the best way to go in terms of
> security and at the same time most easily separable into Virtual Hosts
> so that different people can work on their own projects without
> interfering with others.
> 
> Any suggestions welcome.  In particular, I am interested in how others
> have set up virtual hosts for tomcat.
> 
> Regards.
> Mark.
> 
> Currently each of my Virtual Hosts has the following directory layout:
> 
> /www/hostname/-> all static html files
>   -> also appBase to tomcat host
>  /cgi-bin/-> perl cgi scripts etc.
> 
> I have configured Virtual hosts like follows in apache:
> ... cut ...
> 
> ServerName www.myhost.com
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /www/myhost
> JKMount /servlet/* ajp13
> JKMount /*.jsp ajp13
> 
> AllowOverride None
> Options Indexes
> Order Deny,Allow
> Allow from all
> 
> ScriptAlias /cgi-bin/ /www/myhost/cgi-bin/
> 
> Allow from all
> Options ExecCGI
> 
> 
> deny from all
> 
> 
> deny from all
> 
> 
> 
> And I have the following in my server.xml file:
>  ... cut ...
>   
> 
>port="8009" minProcessors="5" maxProcessors="75"
>   enableLookups="true" acceptCount="10" debug="0"/>
> 
> 
> 
>prefix="catalina_log." suffix=""
> timestamp="true"/>
> 
>   
> 
>   ......
>   ... snip localhost section ...
>   ......
> 
>   
>   
> 
>directory="logs"  prefix="myhost_access_log." suffix=""
>   pattern="common" />
> 
>directory="logs"  prefix="myhost_log." suffix=""
>   timestamp="true"/>
> 
>crossContext="false" debug="0" reloadable="true" />
> 
>   
> 
>   
> 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




sym link problems with tomcat 4.1

2002-09-18 Thread Dan Lipofsky

I have a symbolic link from webapps/nuserve/images to a directory
outside of the tomcat directory tree.  This worked fine under
tomcat 3.2.4 but I can't see my images under tomcat 4.1.10.
Does anyone know why this is, and if I can get tomcat 4.1 to
follow my symbolic links?

(symbolic links between files or directories inside of
webapps/nuserve work fine, however)

I have seen a few other posts about this (but no answers)
that indicate it works fine in 4.0 too, but not 4.1.

Thanks,
Dan



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Host recommendations?

2002-09-18 Thread Grant C. Peters

I know the http://www.hostforweb.com supports Tomcat and provides an
unlimitted number of MYSQL databases for 19.95 a month
They also have online help via chat

Grant C. Peters
[EMAIL PROTECTED]
phone  : 415.948.7030

-Original Message-
From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 17:13
To: TOMCAT USERS GROUP
Subject: OT: Host recommendations?

Can someone recommend a host for a Tomcat/MySql/Struts site, preferrably
with good tech support? I have a site that I desperately need to get up but
it's fairly complex and the hosts I've dealt with don't offer much tech
support after you've signed up. I'm willing to pay someone in NYC to help
get it launched and to help with Tomcat-related issues.

Thanks,
Bill


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problems compiling jsp's using Jasper 2 in Tomcat 4.1.10

2002-09-18 Thread Jacob Kjome


This has been discussed at length over the last 2 weeks or so.  Please 
check the archives before posting a question like this.

There is an issue with Tomcat-4.1.10 where it uses Ant to do the 
compilation and for some reason, the way things are set up it only compiles 
JSP's on the C: drive.  Try a nightly or wait for Tomcat-4.1.11 if you want 
it to work for alternate drives.

Jake

At 12:39 PM 9/19/2002 +1200, you wrote:
> At the moment tomcat 4.1.10 is not compiling any .jsp files.
>
>It is not including the \WEB-INF\classes\ directory and the directories 
>beneath this path into the classpath.
>Jasper seems to think that the path should start at C:\ when everything is 
>installed on my D:\.
>All the other necessary class files which are .jar files are included in 
>the classpath. These come from the default directories
>common\lib, server\lib, and shared\lib.
>
>I have included some of the output when compilation of a jsp takes place. 
>I increased the debug level for the JspServlet.
>
>Generated servlet error:
>Detected Java version: 1.3 in: D:\jdk1.3.1_03\jre
>Detected OS: Windows 2000
> [javac] main_jsp.java added as 
> D:\tomcat-4.1.10\work\Standalone\localhost\equal\main_jsp.class doesn't exist.
> [javac] Compiling 1 source file
> [javac] Using modern compiler
>dropping C:\D from path as it doesn't exist
>dropping C:\tomcat-4.1.10\webapps\equal\WEB-INF\classes from path as it 
>doesn't exist
>dropping C:\tomcat-4.1.10\webapps\equal\WEB-INF\lib\activation.jar from 
>path as it doesn't exist
> [javac] Compilation arguments:
> [javac] '-classpath'
> [javac] 
> 
>'D:\tomcat-4.1.10\bin\bootstrap.jar;D:\tomcat-4.1.10\shared\classes;D:\tomcat-4.1.10\shared\lib\jcommon-0.6.0.jar;D:\tomcat-4.1.10\shared\lib\jdbc.jar;D:\tomcat-4.1.10\shared\lib\jfreechart-0.8.0.jar;D:\tomcat-4.1.10\shared\lib\mail.jar;D:\tomcat-4.1.10\shared\lib\struts.jar;D:\tomcat-4.1.10\common\classes;D:\tomcat-4.1.10\common\endorsed\xercesImpl.jar;D:\tomcat-4.1.10\common\endorsed\xmlParserAPIs.jar;D:\tomcat-4.1.10\common\lib\activation.jar;D:\tomcat-4.1.10\common\lib\ant.jar;D:\tomcat-4.1.10\common\lib\commons-collections.jar;D:\tomcat-4.1.10\common\lib\commons-dbcp.jar;D:\tomcat-4.1.10\common\lib\commons-logging-api.jar;D:\tomcat-4.1.10\common\lib\commons-pool.jar;D:\tomcat-4.1.10\common\lib\jasper-compiler.jar;D:\tomcat-4.1.10\common\lib\jasper-runtime.jar;D:\tomcat-4.1.10\common\lib\jdbc2_0-stdext.jar;D:\tomcat-4.1.10\common\lib\jndi.jar;D:\tomcat-4.1.10\common\lib\jta.jar;D:\tomcat-4.1.10\common\lib\mail.jar;D:\tomcat-4.1.10\common\lib\naming-common.jar;D:\tomcat-4.1.1
0\c 
> 
>ommon\lib\naming-factory.jar;D:\tomcat-4.1.10\common\lib\naming-resources.jar;D:\tomcat-4.1.10\common\lib\servlet.jar;D:\tomcat-4.1.10\common\lib\tools.jar'
> [javac] '-sourcepath'
> [javac] 'D:\tomcat-4.1.10\work\Standalone\localhost\equal'
> [javac] '-encoding'
> [javac] 'UTF8'
> [javac] '-g'
> [javac]
> [javac] The ' characters around the executable and arguments are
> [javac] not part of the command.
> [javac] File to be compiled:
> [javac] 
> D:\tomcat-4.1.10\work\Standalone\localhost\equal\main_jsp.java
>
>As can be seen above the classpath is created using the directories 
>starting at D:\ but when trying to include the classes for our web 
>application Jasper is using C:\.
>
>What the HELL is going on. Does anybody have any insight as to how I might 
>solve this. Is there some parameter that I have not set for the Jasper 
>compiler or for Tomcat 4.1.10 itself.
>
>Any help will be greatly appreciated.
>
>
>Nathan.
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



Problems compiling jsp's using Jasper 2 in Tomcat 4.1.10

2002-09-18 Thread Nathan Smith



    At the moment tomcat 4.1.10 is not 
compiling any .jsp files. 
 
It is not including the \WEB-INF\classes\ directory and the 
directories beneath this path into the classpath.
Jasper seems to think that the path should start at C:\ when 
everything is installed on my D:\.
All the other necessary class files which are .jar files are 
included in the classpath. These come from the default directories
common\lib, server\lib, and shared\lib.
 
I have included some of the output when compilation of a jsp 
takes place. I increased the debug level for the JspServlet.
 
Generated servlet error:Detected Java version: 1.3 in: 
D:\jdk1.3.1_03\jreDetected OS: Windows 2000    [javac] 
main_jsp.java added as 
D:\tomcat-4.1.10\work\Standalone\localhost\equal\main_jsp.class doesn't 
exist.    [javac] Compiling 1 source 
file    [javac] Using modern compilerdropping C:\D from 
path as it doesn't existdropping 
C:\tomcat-4.1.10\webapps\equal\WEB-INF\classes from path as it doesn't 
existdropping C:\tomcat-4.1.10\webapps\equal\WEB-INF\lib\activation.jar from 
path as it doesn't exist    [javac] Compilation 
arguments:    [javac] '-classpath'    
[javac] 
'D:\tomcat-4.1.10\bin\bootstrap.jar;D:\tomcat-4.1.10\shared\classes;D:\tomcat-4.1.10\shared\lib\jcommon-0.6.0.jar;D:\tomcat-4.1.10\shared\lib\jdbc.jar;D:\tomcat-4.1.10\shared\lib\jfreechart-0.8.0.jar;D:\tomcat-4.1.10\shared\lib\mail.jar;D:\tomcat-4.1.10\shared\lib\struts.jar;D:\tomcat-4.1.10\common\classes;D:\tomcat-4.1.10\common\endorsed\xercesImpl.jar;D:\tomcat-4.1.10\common\endorsed\xmlParserAPIs.jar;D:\tomcat-4.1.10\common\lib\activation.jar;D:\tomcat-4.1.10\common\lib\ant.jar;D:\tomcat-4.1.10\common\lib\commons-collections.jar;D:\tomcat-4.1.10\common\lib\commons-dbcp.jar;D:\tomcat-4.1.10\common\lib\commons-logging-api.jar;D:\tomcat-4.1.10\common\lib\commons-pool.jar;D:\tomcat-4.1.10\common\lib\jasper-compiler.jar;D:\tomcat-4.1.10\common\lib\jasper-runtime.jar;D:\tomcat-4.1.10\common\lib\jdbc2_0-stdext.jar;D:\tomcat-4.1.10\common\lib\jndi.jar;D:\tomcat-4.1.10\common\lib\jta.jar;D:\tomcat-4.1.10\common\lib\mail.jar;D:\tomcat-4.1.10\common\lib\naming-common.jar;D:\tomcat-4.1.10\common\lib\naming-factory.jar;D:\tomcat-4.1.10\common\lib\naming-resources.jar;D:\tomcat-4.1.10\common\lib\servlet.jar;D:\tomcat-4.1.10\common\lib\tools.jar'    
[javac] '-sourcepath'    [javac] 
'D:\tomcat-4.1.10\work\Standalone\localhost\equal'    [javac] 
'-encoding'    [javac] 'UTF8'    [javac] 
'-g'    [javac]     [javac] The ' 
characters around the executable and arguments are    [javac] 
not part of the command.    [javac] File to be 
compiled:    [javac] 
D:\tomcat-4.1.10\work\Standalone\localhost\equal\main_jsp.java
 
As can be seen above the classpath is created using the 
directories starting at D:\ but when trying to include the classes for our web 
application Jasper is using C:\.
 
What the HELL is going on. Does anybody have any insight as to 
how I might solve this. Is there some parameter that I have not set for the 
Jasper compiler or for Tomcat 4.1.10 itself.
 
Any help will be greatly appreciated.
 
 
Nathan.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


upgrade web server from apache-1.3.14 + tomcat-3.2.1 to apache-1.3.26 + tomcat-4.0.4 or tomcat-4.1.10

2002-09-18 Thread Yaogeng Cheng

Hi,
 
I am planning to upgrade my web server from apache-1.3.14 + tomcat-3.2.1 to
apache-1.3.26 + tomcat-4.0.4 or tomcat-4.1.10. I am using Linux 6.2. Could
anybody tell me is this a good move? Is there any bad consequence with
upgrade? Which version of tomcat should I upgrade to, 4.0.4 or 4.1.10?
 
Any help will be greatly appreciated!
 
Yaogeng



Problems connecting Tomcat with Apache using ajp13

2002-09-18 Thread Marc Vila Pérez

Hi everybody!
I'm trying to connect tomcat 4.1.10 with apache 1.3.22, on Linux RH. In
the server I want to install several hosts (using virtual hosting).
I'm using org.apache.ajp.tomcat4.Ajp13Connector, I've downloaded several
mod_jk.so (tried different versions), ...
On every virtual host in httpd.conf there is a directive
JkMount /*.jsp ajp13
Seems than apache finds the connector, but tomcat cannot create the
servlet to serve the jsp page.
This is the output of the mod_jk log file (JkLogFile):

***
[Thu Sep 19 00:40:36 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Thu Sep 19 00:40:36 2002]  [jk_uri_worker_map.c (368)]: Attempting to
map URI '/telemako.jsp'
[Thu Sep 19 00:40:36 2002]  [jk_uri_worker_map.c (416)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->
*.jsp
[Thu Sep 19 00:40:36 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Thu Sep 19 00:40:36 2002]  [jk_uri_worker_map.c (368)]: Attempting to
map URI '/telemako.jsp'
[Thu Sep 19 00:40:36 2002]  [jk_uri_worker_map.c (416)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->
*.jsp
[Thu Sep 19 00:40:36 2002]  [jk_worker.c (123)]: Into
wc_get_worker_for_name ajp13
[Thu Sep 19 00:40:36 2002]  [jk_worker.c (127)]: wc_get_worker_for_name,
done  found a worker
[Thu Sep 19 00:40:36 2002]  [jk_ajp13_worker.c (865)]: Into
jk_worker_t::get_endpoint
[Thu Sep 19 00:40:36 2002]  [jk_ajp13_worker.c (775)]: Into
jk_endpoint_t::service
[Thu Sep 19 00:40:36 2002]  [jk_ajp13.c (403)]: Into
ajp13_marshal_into_msgb
[Thu Sep 19 00:40:36 2002]  [jk_ajp13.c (537)]: ajp13_marshal_into_msgb
- Done
[Thu Sep 19 00:40:36 2002]  [jk_connect.c (108)]: Into jk_open_socket
[Thu Sep 19 00:40:36 2002]  [jk_connect.c (115)]: jk_open_socket, try to
connect socket = 6
[Thu Sep 19 00:43:45 2002]  [jk_connect.c (124)]: jk_open_socket, after
connect ret = -1
[Thu Sep 19 00:43:45 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 110
[Thu Sep 19 00:43:45 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 110
[Thu Sep 19 00:43:45 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Thu Sep 19 00:43:45 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 0

***

And these are my configuration files are:

*httpd.conf
...
### Begin from mod_jk.conf ##

LoadModulejk_module  modules/mod_jk.so
#AddModule mod_jk.c

JkWorkersFile /usr/local/jakarta-tomcat-4.1.10/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug

#
# The following line mounts all JSP files and the /servlet/ uri to
tomcat
# write it for every virtual host.
#
#JkMount //servlet/* ajp13
#JkMount //*.jsp ajp13

### End from mod_jk.conf ##
...



***workers.properties*
worker.list=ajp13
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13

# Define some properties
workers.apache_log=/etc/httpd/logs
workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
workers.java_home=/usr/local/j2sdk1.4.1


worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

ps=/

**

*** server.xml  (... indicates default config settings
like loggers or valves, ...)


  
  



...

  

  
  




...
  
  
...


...

  

  

  



...
  
...
 

   

   

  

**


Any idea

Thank you very much!!!

Marc


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




help -- tomcat naming service problem

2002-09-18 Thread c tang

Hi,

I updated from tomcat4.0.3 to tomcat4.1.10 and have
problem to disable naming service.  

To connect to Borland appserver, I have to disable
tomcat naming service by issue the following command,
catalina run -nonaming.  

However, when I tried to do the same for tomcat4.1.10,
an exception is thrown,

C:\>catalina run -nonaming
Using CATALINA_BASE:  
c:\java\apache\jakarta\jakarta-tomcat
Using CATALINA_HOME:  
c:\java\apache\jakarta\jakarta-tomcat
Using CATALINA_TMPDIR:
c:\java\apache\jakarta\jakarta-tomcat\temp
Using JAVA_HOME:   c:\BES\jdk
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1
on port 8080
javax.naming.NoInitialContextException: Need to
specify class name in environmen
t or system property, or as an applet parameter, or in
an application resource f
ile:  java.naming.factory.initial
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
38)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241
)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
a:278)
at
javax.naming.InitialContext.lookup(InitialContext.java:345)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe
ans(GlobalResourcesLifecycleListener.java:167)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycle
Event(GlobalResourcesLifecycleListener.java:147)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
4)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
java.lang.IllegalStateException: No global naming
context defined for server
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe
ans(GlobalResourcesLifecycleListener.java:170)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycle
Event(GlobalResourcesLifecycleListener.java:147)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
4)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

How do I solve this problem? 

Thanks!

ct

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




wishlist: config improvement

2002-09-18 Thread Jeff da Goofrider

I think the config code in Tomcat is actually part of Jakarta Commons but I'll post 
this here always since my primary concern is Tomcat

It'll be nice to be able to use environmental variables in the server config files. If 
I already have CATALINA_HOME, JAVA_HOME, JIKES_HOME, etc., defined, it really doesn't 
make sense to hard-code the path in the config files.

The default config files need more commenting too. What's nice about Apache HTTPD's 
config file is that everything is very well commented.

Some kind of config file includes or per virtual host config files would also be a 
great addition. Such is the reason I began using Orion more and more, simply because 
its config files is more well-thoughout.


-- 
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Question

2002-09-18 Thread Jai Durgam

hi john, nin, can't get localhost to work. what other information do you need? am 
attaching some files. am using mod_jk now. 
thanks
jai



-Original Message-
From: Shannon Lal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 2:22 PM
To: [EMAIL PROTECTED]
Subject: RE: Question


Ran into the same problem,
Solution is simple just a bit of trial and error.
Can you reference the following URL
http://localhost/examples
This should bring up Tomcat example.  If this works I know the problem is, 
otherwise you ll have to give me more information.

Let me know

Nin



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




httpd.conf
Description: httpd.conf


mod_jk.conf-jni
Description: mod_jk.conf-jni


workers.properties
Description: workers.properties


mod_jk.conf
Description: mod_jk.conf







  












































 


 
















   












 


 






 
  

   






 







  





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: [OFF-TOPIC] RE: John: missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread achana


> Apache does not need J2SDK or JRE to function.  It has nothing to do with
> java.

Which of the 2 machines do I install mod_jk on :
(1) on the web-server (Apache)   or
(2) on the app-server (Tomcat)   or
(3) both ???

I remember one of the many doco's mentioned Apache and mod_jk , but I
can't find that one again.

I am getting so frustrated following instructions on the doco's at the
moment because :
(1) to get Apache to talk to Tomcat , I need mod_jk
(1.1) ... Apache 1.3.16 is too old, build 2.0.4
(2) to install mod_jk , I need ANT 
(2.2) ... and no, I haven't got "libtoolize" !
(3) to get ANT working I need the whole j2sdk1.4.0 kit and kaboodle...

Okay, I have installed j2sdk before, but that was an older version, so I
have different versions - never mind , get to it

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.10 doesn't follow symlinks?

2002-09-18 Thread Nathan Smith

This is an excerpt from the Tomcat 4.1 Relese Notes that might help.

--
Symlinking static resources
--
Unix symlinks will not work when used in a web application to link
resources
located outside the web application root directory.

This behaviour will be made optional in an upcoming version of Tomcat
4.1, but
will be the default one.

Hope this helps,

Nathan.


- Original Message -
From: "Erick Todd" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 6:06 AM
Subject: Re: Tomcat 4.1.10 doesn't follow symlinks?


> I have the same problem when I try to include following a symbolic
> link.  Worked in 4.0.4, not now.
>
> Man it is making me very upset.  If I find something I will let you
> know.
>
> -Erick
>
> On Wed, 2002-09-18 at 12:00, Roland Glenn McIntosh wrote:
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12784
> > I may have filed this bug too early, without checking here first.
> >
> > I noticed that if any of my .jar files in my WEBINF/lib directory are
symlinks, I can't start my webapp with this new version of tomcat.  Has
anyone experienced similar problems?  Is there an equivalent for the Apache
"follow symlinks" directive that I have not stumbled across yet?
> > Why did this work in 4.0.4?
> >
> > -Roland Glenn McIntosh
> >
> >
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Static content

2002-09-18 Thread Robert L Sowders

>From your description we can only tell what you expect it to do.  To find 
out where the problem is we will need to see your configs.  httpd.conf 
mod_jk.conf server.xml etc etc.

Till then we're just guessing.

rls





[EMAIL PROTECTED]
09/18/2002 02:45 PM
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:Static content

I am using Apache with Tomcat 3.2.4 and am trying to figure out how the
connector really works.  I am using mod_jk.  Basically, the question I 
have
is:  Does static content get served up by Apache or Tomcat?  I would like
static content to be served up by Apache, but I'm not confident that it is
in my configuration.  My normal configuration is to have all of my files,
including static content, reside in the /webapps/app1
directory.  server.xml is configured such that the docbase for this 
context
is "/".  My apache config includes the mod_jk.conf-auto, which
automatically generates a "context" for app1 and JkMount directives for
/*.jsp and /servlet/*.  My DocumentRoot in httpd.conf is also pointing to
the same directory (/tomcat/webapps/app1).   Up until now, I assumed that
Apache was only passing on request for jsps or servlets to Tomcat, and 
that
it was serving up static content itself.  However, now I'm skeptical and
here is why.  If I change the DocumentRoot to a directory outside of the
/tomcat/webapps directory, and place my static content there, things seems
to function as expected.  If I add another context in 
/tomcat/webapps/test,
with a docbase of /test and place a static file in that context, it stills
gets served up (which I would NOT expect, since my JkMounts say to only
pass .jsp and servlet requests).  This leads me to believe that Apache is
passing  requests to Tomcat based  on the contexts that it knows about 
thru
mod_jk.conf, and not based on the JkMounts defined therein.  Does anyone
have specifics on how the connector really works?
This correspondence may contain information that is confidential,
proprietary or "non-public personal information", as that term is defined
in the Gramm-Leach-Bliley Act (collectively, "Confidential Information").
The Confidential Information is disclosed conditioned upon your agreement
that you will treat all Confidential Information confidentially and in
accordance with applicable law, ensure that such information is not used 
or
disclosed except for the limited purpose for which it is being provided 
and
will notify and cooperate with Flagstar Bank regarding any requested
disclosure or any unauthorized disclosure or use of any Confidential
Information.  By accepting and reviewing the Confidential Information you
agree to indemnify Flagstar Bank against any losses or expenses, including
attorney's fees that Flagstar Bank may incur as a result of any
unauthorized use or disclosure of the Confidential Information due to your
acts or omissions.  If this correspondence is received by a party other
than the intended recipient, you are requested to immediately notify us of
the erroneous delivery and return to us all information so delivered.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE:Ref: John's reply -> Apache+Tomcat Error (No Context configured)

2002-09-18 Thread Manoj Kithany

Hi Experts,

Greetings!

With reference to John's last email, I created the context in SERVER.XML 
file and added a following CONTEXT:


When I run my Jboss(Tomcat) I get following ERROR at the console:
-
16:51:52,986 INFO  [EmbeddedCatalinaServiceSX] deploy, ctxPath=/kithany, 
warUrl=file:/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/default/deploy/kithany.war/76.kithany.war

16:51:53,070 ERROR [MainDeployer] could not start deployment: 
file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war
java.lang.NoClassDefFoundError: org/apache/naming/TransactionRef
at java.lang.reflect.Method.invoke(Native Method)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java(Compiled
 
Code))
at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled 
Code))
-

Also, my Directory structure is as follows:
/kithany
/kithany/META-INF/application.xml
/kithany/WEB-INF/web.xml
/kithany/foo.jsp
/kithany/index.html
/kithany/kithany.war

I have my APPLICATION.XML file as follows:
-


KITHANY


kithany.war
/kithany



-

And, my WEB.XML file is as:
-

http://java.sun.com/dtd/web-app_2_3.dtd";>



30




index.jsp


index.html


index.htm



-

I then creat WAR file as follows:
-
#pwd
#/kithany
#jar -cvfM kithany.war .
-

Which I then, put it into /jboss/server/default/deploy and then start my 
JBOSS(Tomcat/Catalina) Server and then on browser, I type following:
http://MY_IP_ADDR_ESS:8080/kithany
http://MY_IP_ADDR_ESS:8080/kithany/index.html

but it gives still gives following message.
Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process 
this request

Experts, could you please guide me on to this.

THANKS to you and to John.

Manoj G. Kithany


>>From: "Turner, John" <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>>Subject: RE: Apache+Tomcat+JBoss Error (No Context configured)
>>Date: Tue, 17 Sep 2002 08:15:38 -0400
>>
>>
>>There are plenty of servlet and JSP examples, with source, in the examples
>>directory of Tomcat, including a HelloWorld servlet.
>>
>>Your error message seems self-explanatory to me.  With all due respect, I
>>must suggest to you again (as others have) that you READ the documentation
>>available before posting questions to the list.  You cannot just create a
>>directory and drop a WAR file in it and expect Tomcat to work.  As your
>>error message says, you need a Context element in server.xml for that 
>>file.
>>Please consult the documentation and server.xml itself for help on how to
>>setup a Context element (hint: do the same thing as done for the /examples
>>Context).  Setting up a Context is basic issue #1 in Tomcat configuration,
>>it's worth learning.  If you configure your Context, and still cannot 
>>access
>>your application, then post back to the list with the error messages you
>>get.
>>
>>John
>>
>
>
>_
>MSN Photos is the easiest way to share and print your photos: 
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OFF-TOPIC] RE: John: missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread Robert L Sowders

I'm not John but I answer anyway.

Apache does not need J2SDK or JRE to function.  It has nothing to do with 
java.

rls





[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
09/17/2002 11:30 PM
Please respond to "Tomcat Users List"

 
To: Tomcat Users List <[EMAIL PROTECTED]>
cc: 
Subject:Re: [OFF-TOPIC] RE: John: missing tomcat-apache.conf & 
mod_jk.conf-auto

Hi John.
Sorry to bother again.
Apache 2.0.40 is on one machine , the web-server (j2sdk NOT loaded
here).
Tomcat 4.0.4 and j2sdk1.4.0 are loaded on another machine, an
app-server.
Do I need j2sdk on the webserver as well ???

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jasper (in tomcat 4.1.10) and jsp 1.2

2002-09-18 Thread Craig R. McClanahan



On Thu, 19 Sep 2002, Eugene Zhuravlev wrote:

> Date: Thu, 19 Sep 2002 01:44:10 +0400
> From: Eugene Zhuravlev <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  Eugene Zhuravlev <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: jasper (in tomcat 4.1.10) and jsp 1.2
>
> Hi Remy,
>
> > The spec version didn't change. What changed is that Jasper was almost
> > completely rewritten, in order to achieve performance levels an order of
> > magnitude better than the old Japser.
>
> Is there a way to enable generating comments with line number info in the
> servlets produced by Jasper?
> The functionality was present in the previous version, but is missing from
> the new implementation.
> This information is essential for building "servlet line" -> "jsp line" maps
> and vice versa. Or perhaps there is a better way to obtain these mappings?
> I would appreciate any help on this issue.
> Thanks in advance -
>

I don't know if the implementation has been completed or not, but one of
the design goals for Jasper 2 was to support the standard formats for
debugging information outlined in the JSR-45 specification.  This will
certainly be done for Tomcat 5 -- I don't know offhand whether it's been
completed (or planned) for the 4.1 version of Jasper2.

For more info about JSR-45 (which is currently in Proposed Final Draft
state), see:

  http://jcp.org/jsr/detail/45.jsp

> Best regards,
> Eugene Zhuravlev
> JetBrains Inc. / IntelliJ Software, http://www.intellij.com
> "Develop with pleasure!"
>

Craig


>
> - Original Message -
> From: "Remy Maucherat" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: 15 September, 2002 00:40
> Subject: Re: jasper (in tomcat 4.1.10) and jsp 1.2
>
>
> > > i might be misunderstanding who supports which version of what, but i
> > > was under the impression that jasper/tomcat supported version 1.2 of the
> > > jsp taglib.
> >
> > The spec version didn't change. What changed is that Jasper was almost
> > completely rewritten, in order to achieve performance levels an order of
> > magnitude better than the old Japser. However, in the process, some bugs
> > were introduced (and we are doing our best to fix them ASAP).
> >
> > You should consider filing your problem as a bug.
> >
> > Remy
> >
> > > 1) is this true?
> > > 2) if so, then i think there's a problem.  i have this in my tld file:
> > >
> > > 
> > >  id
> > >  com.begeek.engine.config.PageInfo
> > >  true
> > >  AT_BEGIN
> > > 
> > >
> > > and this will always fail, i get a NullPointerException:
> > >
> > > java.lang.NullPointerException
> > > at java.util.Hashtable.get(Hashtable.java(Compiled Code))
> > > at
> > >
> >
> org.apache.jasper.compiler.ScriptingVariabler$ScriptingVariableVisitor.setSc
> > riptingVars(ScriptingVariabler.java:175)
> > > at
> > >
> >
> org.apache.jasper.compiler.ScriptingVariabler$ScriptingVariableVisitor.visit
> > (ScriptingVariabler.java:110)
> > >
> > > it seems like it kinda works, so i think it does support 1.2, any
> > > variables defined with  seem to function as i would expect
> > > them to, just not a name-from-attribute definition.
> > >
> > > any assistance would be appreciated.
> > >
> > > --
> > >
> > > CraigL->Thx();
> > > Be Developer ID: 5852
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat 4.0.4 and oracle

2002-09-18 Thread Mark Schmeets

I have at times had to put classes12.jar, ocrs12.jar in the WEB-INF/lib
directory. On one NT setup I also ended up putting the ocijdbc9.dll in there
as well. Enough to make you wonder if there is a black art to this

Mark

-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 3:09 PM
To: '[EMAIL PROTECTED]'
Subject: tomcat 4.0.4 and oracle


If I run tomcat from the Windows command prompt using startup.bat, I get:



Exception during startup processing

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path

...



However, if I run from the start menu I don't have this problem.



I gather that somewhere an oracle library is not being loaded, but I'm not
sure how to fix this.

I have put classes12.jar in the common/lib because I'm using Oracle for
authentication.



Other than that, everything is default.



Can anyone help?



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Static content

2002-09-18 Thread Glenn . P . Brauser

I am using Apache with Tomcat 3.2.4 and am trying to figure out how the
connector really works.  I am using mod_jk.  Basically, the question I have
is:  Does static content get served up by Apache or Tomcat?  I would like
static content to be served up by Apache, but I'm not confident that it is
in my configuration.  My normal configuration is to have all of my files,
including static content, reside in the /webapps/app1
directory.  server.xml is configured such that the docbase for this context
is "/".  My apache config includes the mod_jk.conf-auto, which
automatically generates a "context" for app1 and JkMount directives for
/*.jsp and /servlet/*.  My DocumentRoot in httpd.conf is also pointing to
the same directory (/tomcat/webapps/app1).   Up until now, I assumed that
Apache was only passing on request for jsps or servlets to Tomcat, and that
it was serving up static content itself.  However, now I'm skeptical and
here is why.  If I change the DocumentRoot to a directory outside of the
/tomcat/webapps directory, and place my static content there, things seems
to function as expected.  If I add another context in /tomcat/webapps/test,
with a docbase of /test and place a static file in that context, it stills
gets served up (which I would NOT expect, since my JkMounts say to only
pass .jsp and servlet requests).  This leads me to believe that Apache is
passing  requests to Tomcat based  on the contexts that it knows about thru
mod_jk.conf, and not based on the JkMounts defined therein.  Does anyone
have specifics on how the connector really works?
This correspondence may contain information that is confidential,
proprietary or "non-public personal information", as that term is defined
in the Gramm-Leach-Bliley Act (collectively, "Confidential Information").
The Confidential Information is disclosed conditioned upon your agreement
that you will treat all Confidential Information confidentially and in
accordance with applicable law, ensure that such information is not used or
disclosed except for the limited purpose for which it is being provided and
will notify and cooperate with Flagstar Bank regarding any requested
disclosure or any unauthorized disclosure or use of any Confidential
Information.  By accepting and reviewing the Confidential Information you
agree to indemnify Flagstar Bank against any losses or expenses, including
attorney's fees that Flagstar Bank may incur as a result of any
unauthorized use or disclosure of the Confidential Information due to your
acts or omissions.  If this correspondence is received by a party other
than the intended recipient, you are requested to immediately notify us of
the erroneous delivery and return to us all information so delivered.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jasper (in tomcat 4.1.10) and jsp 1.2

2002-09-18 Thread Eugene Zhuravlev

Hi Remy,

> The spec version didn't change. What changed is that Jasper was almost
> completely rewritten, in order to achieve performance levels an order of
> magnitude better than the old Japser.

Is there a way to enable generating comments with line number info in the
servlets produced by Jasper?
The functionality was present in the previous version, but is missing from
the new implementation.
This information is essential for building "servlet line" -> "jsp line" maps
and vice versa. Or perhaps there is a better way to obtain these mappings?
I would appreciate any help on this issue.
Thanks in advance -

Best regards,
Eugene Zhuravlev
JetBrains Inc. / IntelliJ Software, http://www.intellij.com
"Develop with pleasure!"


- Original Message -
From: "Remy Maucherat" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: 15 September, 2002 00:40
Subject: Re: jasper (in tomcat 4.1.10) and jsp 1.2


> > i might be misunderstanding who supports which version of what, but i
> > was under the impression that jasper/tomcat supported version 1.2 of the
> > jsp taglib.
>
> The spec version didn't change. What changed is that Jasper was almost
> completely rewritten, in order to achieve performance levels an order of
> magnitude better than the old Japser. However, in the process, some bugs
> were introduced (and we are doing our best to fix them ASAP).
>
> You should consider filing your problem as a bug.
>
> Remy
>
> > 1) is this true?
> > 2) if so, then i think there's a problem.  i have this in my tld file:
> >
> > 
> >  id
> >  com.begeek.engine.config.PageInfo
> >  true
> >  AT_BEGIN
> > 
> >
> > and this will always fail, i get a NullPointerException:
> >
> > java.lang.NullPointerException
> > at java.util.Hashtable.get(Hashtable.java(Compiled Code))
> > at
> >
>
org.apache.jasper.compiler.ScriptingVariabler$ScriptingVariableVisitor.setSc
> riptingVars(ScriptingVariabler.java:175)
> > at
> >
>
org.apache.jasper.compiler.ScriptingVariabler$ScriptingVariableVisitor.visit
> (ScriptingVariabler.java:110)
> >
> > it seems like it kinda works, so i think it does support 1.2, any
> > variables defined with  seem to function as i would expect
> > them to, just not a name-from-attribute definition.
> >
> > any assistance would be appreciated.
> >
> > --
> >
> > CraigL->Thx();
> > Be Developer ID: 5852
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Question

2002-09-18 Thread Shannon Lal

Ran into the same problem,
Solution is simple just a bit of trial and error.
Can you reference the following URL
http://localhost/examples
This should bring up Tomcat example.  If this works I know the problem is, 
otherwise you ll have to give me more information.

Let me know

Nin



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




OT: Host recommendations?

2002-09-18 Thread Bill Blackmon

Can someone recommend a host for a Tomcat/MySql/Struts site, preferrably
with good tech support? I have a site that I desperately need to get up but
it's fairly complex and the hosts I've dealt with don't offer much tech
support after you've signed up. I'm willing to pay someone in NYC to help
get it launched and to help with Tomcat-related issues.

Thanks,
Bill


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




libtoolize & automake & autoconf

2002-09-18 Thread achana

Hi All.
I am trying to build and install mod_jk to get Tomcat talking with
Apache.
The downloaded shell script "buildconf.sh" contains the command
"libtoolize" ; "automake" and "autoconf"
Can anyone tell me where I can download these utilities ??? 
RH7.1 throws a fit everytime I run them.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Apache+Tomcat Error (No Context configured)

2002-09-18 Thread Manoj Kithany

Hi Experts,

With reference to John's last email, I created the CONTEXT in SERVER.XML 
file and added a following CONTEXT:


Also, my Directory structure is as follows:
/kithany
/kithany/META-INF/application.xml
/kithany/WEB-INF/web.xml
/kithany/foo.jsp
/kithany/index.html
/kithany/kithany.war

I have my APPLICATION.XML file as follows:
-


KITHANY


kithany.war
/kithany



-

And, my WEB.XML file is as:
-

http://java.sun.com/dtd/web-app_2_3.dtd";>



30




index.jsp


index.html


index.htm



-

I then creat WAR file as follows:
-
#pwd
#/kithany
#jar -cvfM kithany.war .
-

Which I then, put it into /jboss/server/default/deploy and then start my 
JBOSS(Tomcat/Catalina) Server and then on browser, I type following:
http://MY_IP_ADDR_ESS:8080/kithany
http://MY_IP_ADDR_ESS:8080/kithany/index.html

but it gives still gives following message.
Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process 
this request

Experts, could you please guide me on to this.

THANKS to you and to John.

Manoj G. Kithany



>From: "Turner, John" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>Subject: RE: Apache+Tomcat+JBoss Error (No Context configured)
>Date: Tue, 17 Sep 2002 08:15:38 -0400
>
>
>There are plenty of servlet and JSP examples, with source, in the examples
>directory of Tomcat, including a HelloWorld servlet.
>
>Your error message seems self-explanatory to me.  With all due respect, I
>must suggest to you again (as others have) that you READ the documentation
>available before posting questions to the list.  You cannot just create a
>directory and drop a WAR file in it and expect Tomcat to work.  As your
>error message says, you need a Context element in server.xml for that file.
>Please consult the documentation and server.xml itself for help on how to
>setup a Context element (hint: do the same thing as done for the /examples
>Context).  Setting up a Context is basic issue #1 in Tomcat configuration,
>it's worth learning.  If you configure your Context, and still cannot 
>access
>your application, then post back to the list with the error messages you
>get.
>
>John
>


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OFF-TOPIC] RE: John: missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread achana

Hi John.
Sorry to bother again.
Apache 2.0.40 is on one machine , the web-server (j2sdk NOT loaded
here).
Tomcat 4.0.4 and j2sdk1.4.0 are loaded on another machine, an
app-server.
Do I need j2sdk on the webserver as well ???

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




More issues w/ JNDI environment...

2002-09-18 Thread Michael Nicholson

Ok.  So I admit I'm confused.  Maybe even awfully confused.  I'm trying to set up the 
dbcp from commons, so I copied commons-collections.jar, dbcp.jar, and commons-pool.jar 
into my /common/lib directory.  I have a dirt simple jsp that should just connect w/ 
the pool and then count how many records there are.  I'm trying to connect to the 
oracle database to do that, but it fails with the ubiquitous 
"javax.servlet.ServletException: Cannot instantiate class: 
org.apache.naming.java.javaURLContextFactory."  It fails on the line
Context initContext = new InitialContext();

The file compiles fine, so I assume it's finding it's libraries ok, but I can't get 
past this.  I do have my server.xml and web.xml modified, but I'm supposing not 
correctly.  I'm using tomcat 4.0.x from within sunOne studio (forte), and will be 
moving it to tomcat 4.0.3 running under Solaris (haven't bothered moving it yet).  

Any suggestions?  I can certainly post the server.xml and web.xml if that helps, but I 
figured I've used enough of everyone's time by now.

Thanks for reading...

Michael Nicholson,
Carolina Center for Public Service


RE: Apache2 and Tomcat4 on different boxes

2002-09-18 Thread Raj Mettai

These are yesterday logs...I dont see anything for today..

[Tue Sep 17 09:58:27 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
[Tue Sep 17 09:58:27 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/error/HTTP_NOT_FOUND.html.var'
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (118)]: Into wc_close
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (199)]: close_workers got -1
workers to destroy
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (120)]: wc_close, done
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (190)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (441)]: Into
jk_uri_worker_map_t::uri_worker_map_close

apache error logs...
—-

[Wed Sep 18 15:54:43 2002] [notice] Apache/2.0.39 (Unix) mod_ssl/2.0.39
OpenSSL/0.9.6g mod_jk/1.2.0 configured -- resuming normal operations


thanks vincent..

-Raj






: Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 18 septembre 2002 17:44
A : [EMAIL PROTECTED]
Objet : RE: Apache2 and Tomcat4 on different boxes


yes, I have tried both( name and Ip)  http://10.103.2.4/examples  and
http://morpheus.broward.edu/exampels  , for both of them I am getting 
http 400 - Bad Request(it's not 404)

Raj



>>> [EMAIL PROTECTED] 09/18/02 11:41AM >>>
When you test, you enter this URL?
http://10.103.2.4/examples
  -Message d'origine-
  De : Raj Mettai [mailto:[EMAIL PROTECTED]]
  Envoye : mercredi 18 septembre 2002 16:42
  A : [EMAIL PROTECTED]
  Objet : RE: Apache2 and Tomcat4 on different boxes


  Hi Vincent,

  I had a typo in my servername and Ip address...

  apache server 10.103.2.4
  tomcat server 10.103.2.30

  and attached are my latest conf files

  I am getting 400 Bad request error, when I try to access examples...I
have
modified virualhost ip...that didn't fix it.

  thanks
  Raj

  >>> [EMAIL PROTECTED] 09/18/02 10:07AM >>>
  When did you have this error? When you type this URL :
  http://10.103.2.4/examples ?

  If it is the case, I think it's normal, because your Apache Virtual
Host
is
  just defined for 10.103.2.30.
  And It seems to me strange, because you said that the @IP of the
Apache
  server is 10.103.2.4 and you have a virtual host listenning on the
  10.103.2.30 @IP.
  I don't understand what you want really do.

  Hopes, it's pointed on your problem...

-Message d'origine-
De : Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 18 septembre 2002 15:26
A : [EMAIL PROTECTED]
Objet : Re: Apache2 and Tomcat4 on different boxes


thanks David,

I have removed the workers.list parm from workers.properties and
also
  there was typo in my last email for DNS and IP address..

Apache server 10.103.2 4(morphues.broward.edu)
Tomcat server 10.103.2.30(neptune.broward.edu)

Still, I am getting object not found errorapache is looking
under
  htdocs directory usr/local/apache/htdocs for /examples

Attached are the latest conf files..

thanks
Raj





>>> [EMAIL PROTECTED] 09/18/02 05:08AM >>>
Raj,

I hope something fell out of your workers file on it's way to me ...

You define the workers.list as using ajp12 and ajp13
But there is no definition for ajp12...

Also the host IP you give from the list below is the apache box.

Your httpd.conf file seems OK though.

David


Raj Mettai wrote:

> thanks Daniel for you response, I have tried the options you
> suggested, tested telnet from apche to tomcat on port 8009, that
> worked fine and also configured apache/tomcat on each box(and they
are
> working fine), then I have changed the host in workers.properties
on
> apache box to point to tomcat box, but that didn't work for me.
Can
> you please send me the config files(httpd.conf,
workers.properties,
> mod_jk.conf and server.xml) from both machines, may be I am
missing
> some simpe thingAlso I am attaching my config
> files(httpd.conf,workers.properties from apache and server.xml
from
> tomcat box.
>
> apache server 10.103.2.30(neptune.broward.edu)
> tomcat server 10.103.2.4(morpheus.broward.edu)
> (both are running on solaris 8)
>
> thanks again
>
> -Raj
>
> >>> [EMAIL PROTECTED] 09/15/02 07:53AM >>>
> I had all kinds of problems getting apache to speak to a remote
tomcat,
> and most of them were on the apache side.
> The only problem I had on the app (tomcat) server was having the
> firewalls (yes there are 2 firewalls between the web and app
server, a
> d

RE: Caching / Cloning

2002-09-18 Thread neal

Ah!   Very interesting.  You know I read a little excerpt from the
Orielly book "Java and XsLT" last night at BOrders and it seemed to suggest
a very similar strategy. Sounds like the Template is the key!

I'm going to look more into this.

Thanks for the tip!

Neal


-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 12:31 PM
To: Tomcat Users List
Subject: Re: Caching / Cloning


Actually, here's what I do:

I have a Singleton Hashtable "Cache" class that I wrote, it holds the
Templates, not the Transformers. In such a case you can get a
transformer from the template instance in the cache without needing to
read the xsl file again. When you don't find the template in the cache
then you can stick a new instance in.

-M.

Mark R. Diggory wrote:

> Put it in the "ServletContext", then its available to all Sessions and
> Servlets across the application.
>
> Are jaxp Transformers syncronized at all? If so, couldn't different
> sessions grab the same transformer from the context and use it?
>
> -M.
>
> neal wrote:
>
>> Actually,
>>
>> Isn't the SessionContext analogous to the session object in JSP? If I
>> were
>> to place the Transfomer object in their for cache it would be tied to a
>> specific user and I would have to hold numerous copies of it
>> simultaneouly
>> whether they were in use or not.  Seems like this would eat up a lot of
>> resources.
>>
>> As for what I am currently trying to do ... I just created a single
>> Hashtable which should be available to the entire application (all
>> servlets)
>> and it contains the Transformer objects for each XSLT.  My plan was
>> to have
>> the servlet make a copy of one of these Transformer objects as needed
>> and
>> perform a
>> transform and then destroy the copy, while the original would stay in
>> cache
>> in the Hashtable.  I thought this way I could reduce the overhead of
>> having
>> to (a) read from disk and (b) parse the file into a DOM-like
>> structure each
>> time.
>>
>> It does not appear however that I can make a copy of a Transformer
>> object
>> however since it does not appear to implement the Cloneable
>> interface.  Is
>> it just me or is this a significant limitation of Java ... that you
>> can't
>> make byVal copies of objects at will?  SO frustrating!!!
>>
>> Can anyone make a suggestion for caching my XSLTs?
>>
>> Thanks.
>> Neal
>>
>>
>> -Original Message-
>> From: Shannon Lal [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, September 18, 2002 6:34 AM
>> To: [EMAIL PROTECTED]
>> Subject: RE: Caching / Cloning
>>
>>
>> Neal,
>> Have you thought about using SessionContext.  I believe the session
>> context
>> is specific to the session of the servlet, so when the instance of the
>> servlet is run, it will have it s own copy of its Transforms to work
>> with.
>> That way you don t have to worry about different servlet instances
>> locking
>> of data.
>>
>> OR
>> Are is the Transforms hashtable shared by all servlet instances.  If so
>> e-mail with more information about what you are doing and I can give you
>> some more information.
>>
>> Nin
>>
>>
>>
>>
>>> From: "neal" <[EMAIL PROTECTED]>
>>> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>> To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>> Subject: RE: Caching / Cloning
>>> Date: Tue, 17 Sep 2002 22:35:55 -0700
>>>
>>> Siddarth,
>>>
>>> Thanks but I'm thinking of two possible issues:
>>>
>>> 1. using the ServletContext.getContext() - won't this still just
>>> return a
>>> pointer rather than cloning the cache?  I looked at the API and
>>> didn't see
>>> anything that said it was copying the object and creating a local copy.
>>>
>>> 2. Returning and having to handle the entire contents of the servlet
>>> context
>>> could imply alot of overheard, I would thinkat least presuming your
>>> copying the context each time a page is called in ordert to obtain a
>>> local
>>> copy of something, in this case an XsLT Transformer object.
>>>
>>> Am I misunderstanding your suggestion, or how this would work?
>>>
>>> Thanks.
>>> Neal
>>>
>>>
>>> -Original Message-
>>> From: Siddharth [mailto:[EMAIL PROTECTED]]
>>> Sent: Tuesday, September 17, 2002 10:30 PM
>>> To: Tomcat Users List
>>> Subject: Re: Caching / Cloning
>>>
>>>
>>> Neal,
>>> I have never worked with XSLT but I can show you the way where you
>>> can have
>>> an
>>> initial copy of ServletContext which you can use independently.
>>> Interface ServletContext has a mathod called
>>> getContext(java.lang.String uripath)  returns  ServletContext
>>> You can use this method by giving uripath of same application to get
>>> a copy
>>> of cache.
>>>
>>> I hope, This suggestion may help you.
>>> Siddharth
>>>
>>>
>>> - Original Message -
>>> From: neal <[EMAIL PROTECTED]>
>>> To: Tomcat Users List <[EMAIL PROTECTED]>
>>> Sent: Wednesday, September 18, 2002 9:52 AM
>>> Subject: Caching / Cloning
>>>
>>>
>>>
>>>
 Is there a way to make a copy of what's in

Tomcat's JSP examples don't even work

2002-09-18 Thread Sébastien Col

Hi,
I'm trying to get Tomcat working, but when I try to execute the JSP
examples, here the exception I get :

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
6)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
 at java.lang.Thread.run(Thread.java:536)

root cause

java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getResourcePaths(Ljava/lang/String;)Ljava/util/
Set;
 at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
ava:202)
 at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
 at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
 at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 a

Re: Caching / Cloning

2002-09-18 Thread Mark R. Diggory

Actually, here's what I do:

I have a Singleton Hashtable "Cache" class that I wrote, it holds the 
Templates, not the Transformers. In such a case you can get a 
transformer from the template instance in the cache without needing to 
read the xsl file again. When you don't find the template in the cache 
then you can stick a new instance in.

-M.

Mark R. Diggory wrote:

> Put it in the "ServletContext", then its available to all Sessions and 
> Servlets across the application.
>
> Are jaxp Transformers syncronized at all? If so, couldn't different 
> sessions grab the same transformer from the context and use it?
>
> -M.
>
> neal wrote:
>
>> Actually,
>>
>> Isn't the SessionContext analogous to the session object in JSP? If I 
>> were
>> to place the Transfomer object in their for cache it would be tied to a
>> specific user and I would have to hold numerous copies of it 
>> simultaneouly
>> whether they were in use or not.  Seems like this would eat up a lot of
>> resources.
>>
>> As for what I am currently trying to do ... I just created a single
>> Hashtable which should be available to the entire application (all 
>> servlets)
>> and it contains the Transformer objects for each XSLT.  My plan was 
>> to have
>> the servlet make a copy of one of these Transformer objects as needed 
>> and
>> perform a
>> transform and then destroy the copy, while the original would stay in 
>> cache
>> in the Hashtable.  I thought this way I could reduce the overhead of 
>> having
>> to (a) read from disk and (b) parse the file into a DOM-like 
>> structure each
>> time.
>>
>> It does not appear however that I can make a copy of a Transformer 
>> object
>> however since it does not appear to implement the Cloneable 
>> interface.  Is
>> it just me or is this a significant limitation of Java ... that you 
>> can't
>> make byVal copies of objects at will?  SO frustrating!!!
>>
>> Can anyone make a suggestion for caching my XSLTs?
>>
>> Thanks.
>> Neal
>>
>>
>> -Original Message-
>> From: Shannon Lal [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, September 18, 2002 6:34 AM
>> To: [EMAIL PROTECTED]
>> Subject: RE: Caching / Cloning
>>
>>
>> Neal,
>> Have you thought about using SessionContext.  I believe the session 
>> context
>> is specific to the session of the servlet, so when the instance of the
>> servlet is run, it will have it s own copy of its Transforms to work 
>> with.
>> That way you don t have to worry about different servlet instances 
>> locking
>> of data.
>>
>> OR
>> Are is the Transforms hashtable shared by all servlet instances.  If so
>> e-mail with more information about what you are doing and I can give you
>> some more information.
>>
>> Nin
>>
>>
>>  
>>
>>> From: "neal" <[EMAIL PROTECTED]>
>>> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>> To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>> Subject: RE: Caching / Cloning
>>> Date: Tue, 17 Sep 2002 22:35:55 -0700
>>>
>>> Siddarth,
>>>
>>> Thanks but I'm thinking of two possible issues:
>>>
>>> 1. using the ServletContext.getContext() - won't this still just 
>>> return a
>>> pointer rather than cloning the cache?  I looked at the API and 
>>> didn't see
>>> anything that said it was copying the object and creating a local copy.
>>>
>>> 2. Returning and having to handle the entire contents of the servlet
>>> context
>>> could imply alot of overheard, I would thinkat least presuming your
>>> copying the context each time a page is called in ordert to obtain a 
>>> local
>>> copy of something, in this case an XsLT Transformer object.
>>>
>>> Am I misunderstanding your suggestion, or how this would work?
>>>
>>> Thanks.
>>> Neal
>>>
>>>
>>> -Original Message-
>>> From: Siddharth [mailto:[EMAIL PROTECTED]]
>>> Sent: Tuesday, September 17, 2002 10:30 PM
>>> To: Tomcat Users List
>>> Subject: Re: Caching / Cloning
>>>
>>>
>>> Neal,
>>> I have never worked with XSLT but I can show you the way where you 
>>> can have
>>> an
>>> initial copy of ServletContext which you can use independently.
>>> Interface ServletContext has a mathod called
>>> getContext(java.lang.String uripath)  returns  ServletContext
>>> You can use this method by giving uripath of same application to get 
>>> a copy
>>> of cache.
>>>
>>> I hope, This suggestion may help you.
>>> Siddharth
>>>
>>>
>>> - Original Message -
>>> From: neal <[EMAIL PROTECTED]>
>>> To: Tomcat Users List <[EMAIL PROTECTED]>
>>> Sent: Wednesday, September 18, 2002 9:52 AM
>>> Subject: Caching / Cloning
>>>
>>>
>>>   
>>>
 Is there a way to make a copy of what's in my cache
 
>>>
>>> (getServletContext())
>>>   
>>>
 and make changes to that local copy, independent of whether the cached
 object implements Cloneable()?


 In order to speed up my XSLT I thought I would preload them (their
 Transformer objects) into app scope and simply retrieve it as 
 needed for
 transforms.

 This works fine except I just remembered that I need 

Re: Caching / Cloning

2002-09-18 Thread Mark R. Diggory

Put it in the "ServletContext", then its available to all Sessions and 
Servlets across the application.

Are jaxp Transformers syncronized at all? If so, couldn't different 
sessions grab the same transformer from the context and use it?

-M.

neal wrote:

>Actually,
>
>Isn't the SessionContext analogous to the session object in JSP? If I were
>to place the Transfomer object in their for cache it would be tied to a
>specific user and I would have to hold numerous copies of it simultaneouly
>whether they were in use or not.  Seems like this would eat up a lot of
>resources.
>
>As for what I am currently trying to do ... I just created a single
>Hashtable which should be available to the entire application (all servlets)
>and it contains the Transformer objects for each XSLT.  My plan was to have
>the servlet make a copy of one of these Transformer objects as needed and
>perform a
>transform and then destroy the copy, while the original would stay in cache
>in the Hashtable.  I thought this way I could reduce the overhead of having
>to (a) read from disk and (b) parse the file into a DOM-like structure each
>time.
>
>It does not appear however that I can make a copy of a Transformer object
>however since it does not appear to implement the Cloneable interface.  Is
>it just me or is this a significant limitation of Java ... that you can't
>make byVal copies of objects at will?  SO frustrating!!!
>
>Can anyone make a suggestion for caching my XSLTs?
>
>Thanks.
>Neal
>
>
>-Original Message-
>From: Shannon Lal [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, September 18, 2002 6:34 AM
>To: [EMAIL PROTECTED]
>Subject: RE: Caching / Cloning
>
>
>Neal,
>Have you thought about using SessionContext.  I believe the session context
>is specific to the session of the servlet, so when the instance of the
>servlet is run, it will have it s own copy of its Transforms to work with.
>That way you don t have to worry about different servlet instances locking
>of data.
>
>OR
>Are is the Transforms hashtable shared by all servlet instances.  If so
>e-mail with more information about what you are doing and I can give you
>some more information.
>
>Nin
>
>
>  
>
>>From: "neal" <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>Subject: RE: Caching / Cloning
>>Date: Tue, 17 Sep 2002 22:35:55 -0700
>>
>>Siddarth,
>>
>>Thanks but I'm thinking of two possible issues:
>>
>>1. using the ServletContext.getContext() - won't this still just return a
>>pointer rather than cloning the cache?  I looked at the API and didn't see
>>anything that said it was copying the object and creating a local copy.
>>
>>2. Returning and having to handle the entire contents of the servlet
>>context
>>could imply alot of overheard, I would thinkat least presuming your
>>copying the context each time a page is called in ordert to obtain a local
>>copy of something, in this case an XsLT Transformer object.
>>
>>Am I misunderstanding your suggestion, or how this would work?
>>
>>Thanks.
>>Neal
>>
>>
>>-Original Message-
>>From: Siddharth [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, September 17, 2002 10:30 PM
>>To: Tomcat Users List
>>Subject: Re: Caching / Cloning
>>
>>
>>Neal,
>>I have never worked with XSLT but I can show you the way where you can have
>>an
>>initial copy of ServletContext which you can use independently.
>>Interface ServletContext has a mathod called
>>getContext(java.lang.String uripath)  returns  ServletContext
>>You can use this method by giving uripath of same application to get a copy
>>of cache.
>>
>>I hope, This suggestion may help you.
>>Siddharth
>>
>>
>>- Original Message -
>>From: neal <[EMAIL PROTECTED]>
>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>Sent: Wednesday, September 18, 2002 9:52 AM
>>Subject: Caching / Cloning
>>
>>
>>
>>
>>>Is there a way to make a copy of what's in my cache
>>>  
>>>
>>(getServletContext())
>>
>>
>>>and make changes to that local copy, independent of whether the cached
>>>object implements Cloneable()?
>>>
>>>
>>>In order to speed up my XSLT I thought I would preload them (their
>>>Transformer objects) into app scope and simply retrieve it as needed for
>>>transforms.
>>>
>>>This works fine except I just remembered that I need to set attributes
>>>  
>>>
>>on
>>
>>
>>>these XsLT Transformer objects.  Now, I am PRESUMING that this means
>>>  
>>>
>>that
>>I
>>
>>
>>>would then be locking up the servlet context each time I set one of
>>>  
>>>
>>these
>>
>>
>>>parameters so then it seems I should clone() the object locally.  That
>>>  
>>>
>>way
>>I
>>
>>
>>>could set the params locally without affecting (or locking) the cached
>>>version).  BUT Transfomer does not appear to implement the Cloneable()
>>>interface.
>>>
>>>Is there a way around this?  Am I by any chance wrong about what's
>>>  
>>>
>>actually
>>
>>
>>>happening here?   Can anyone make a sugges

Re: Possible to reload single servlet?

2002-09-18 Thread Jason Young

You can configure it to reload an entire context when a class changes, 
but I don't believe there is any way to reload just one class. This is 
probably unsafe anyway, since what would happen if you have a reference 
to an object of a class that is being reloaded?

--jason


Bill Leath wrote:

>Hello group,
>
>I am running Tomcat 4.1 on Linux 7.2.
>
>I would like to get an application to recognize changes in a servlet
>without restarting the entire application.
>
>Is this possible?
>
>Thanks,
>
>Bill
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mod_jk log file errors

2002-09-18 Thread Koes, Derrick





Not the same errors, but using Apache 2.0.40 and Tomcat 4.0.4 I get:

[Wed Sep 18 14:49:03 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:18 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61
[Wed Sep 18 14:55:18 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
[Wed Sep 18 14:55:18 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Wed Sep 18 14:55:18 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 0
[Wed Sep 18 14:55:19 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61
[Wed Sep 18 14:55:19 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
[Wed Sep 18 14:55:19 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Wed Sep 18 14:55:19 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Wed Sep 18 14:55:20 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61
[Wed Sep 18 14:55:20 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
[Wed Sep 18 14:55:20 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Wed Sep 18 14:55:20 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2
[Wed Sep 18 15:05:38 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Wed Sep 18 15:05:38 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Wed Sep 18 15:06:00 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Wed Sep 18 15:06:19 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed


-Original Message-
From: Ago Meister [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 18, 2002 1:10 PM
To: Tomcat Users List
Subject: mod_jk log file errors

Hello there,

My mod_jk log file contains many error messages?
We are using Apache 1.3.26 and Tomcat 4.0.4 with AJP13 and RH 6.2.
Does anybody any ideas or has experience with similar problems?


errors are:

[Mon Sep 16 15:38:18 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Mon Sep 16 15:38:20 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Mon Sep 16 15:43:27 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Mon Sep 16 15:44:15 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:15 2002]  [jk_ajp_common.c (1013)]: Error reading reply

and

[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 1
[Mon Sep 16 15:44:22 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 111
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1013)]: Error reading reply

ki

Possible to reload single servlet?

2002-09-18 Thread Bill Leath

Hello group,

I am running Tomcat 4.1 on Linux 7.2.

I would like to get an application to recognize changes in a servlet
without restarting the entire application.

Is this possible?

Thanks,

Bill


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tomcat 4.0.4 and oracle

2002-09-18 Thread Koes, Derrick

If I run tomcat from the Windows command prompt using startup.bat, I get:

 

Exception during startup processing

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path

...

 

However, if I run from the start menu I don't have this problem.

 

I gather that somewhere an oracle library is not being loaded, but I'm not
sure how to fix this.

I have put classes12.jar in the common/lib because I'm using Oracle for
authentication.

 

Other than that, everything is default.

 

Can anyone help?




RE: Caching / Cloning

2002-09-18 Thread neal

Actually,

Isn't the SessionContext analogous to the session object in JSP? If I were
to place the Transfomer object in their for cache it would be tied to a
specific user and I would have to hold numerous copies of it simultaneouly
whether they were in use or not.  Seems like this would eat up a lot of
resources.

As for what I am currently trying to do ... I just created a single
Hashtable which should be available to the entire application (all servlets)
and it contains the Transformer objects for each XSLT.  My plan was to have
the servlet make a copy of one of these Transformer objects as needed and
perform a
transform and then destroy the copy, while the original would stay in cache
in the Hashtable.  I thought this way I could reduce the overhead of having
to (a) read from disk and (b) parse the file into a DOM-like structure each
time.

It does not appear however that I can make a copy of a Transformer object
however since it does not appear to implement the Cloneable interface.  Is
it just me or is this a significant limitation of Java ... that you can't
make byVal copies of objects at will?  SO frustrating!!!

Can anyone make a suggestion for caching my XSLTs?

Thanks.
Neal


-Original Message-
From: Shannon Lal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 6:34 AM
To: [EMAIL PROTECTED]
Subject: RE: Caching / Cloning


Neal,
Have you thought about using SessionContext.  I believe the session context
is specific to the session of the servlet, so when the instance of the
servlet is run, it will have it s own copy of its Transforms to work with.
That way you don t have to worry about different servlet instances locking
of data.

OR
Are is the Transforms hashtable shared by all servlet instances.  If so
e-mail with more information about what you are doing and I can give you
some more information.

Nin


>From: "neal" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: Caching / Cloning
>Date: Tue, 17 Sep 2002 22:35:55 -0700
>
>Siddarth,
>
>Thanks but I'm thinking of two possible issues:
>
>1. using the ServletContext.getContext() - won't this still just return a
>pointer rather than cloning the cache?  I looked at the API and didn't see
>anything that said it was copying the object and creating a local copy.
>
>2. Returning and having to handle the entire contents of the servlet
>context
>could imply alot of overheard, I would thinkat least presuming your
>copying the context each time a page is called in ordert to obtain a local
>copy of something, in this case an XsLT Transformer object.
>
>Am I misunderstanding your suggestion, or how this would work?
>
>Thanks.
>Neal
>
>
>-Original Message-
>From: Siddharth [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 17, 2002 10:30 PM
>To: Tomcat Users List
>Subject: Re: Caching / Cloning
>
>
>Neal,
>I have never worked with XSLT but I can show you the way where you can have
>an
>initial copy of ServletContext which you can use independently.
>Interface ServletContext has a mathod called
>getContext(java.lang.String uripath)  returns  ServletContext
>You can use this method by giving uripath of same application to get a copy
>of cache.
>
>I hope, This suggestion may help you.
>Siddharth
>
>
>- Original Message -
>From: neal <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Sent: Wednesday, September 18, 2002 9:52 AM
>Subject: Caching / Cloning
>
>
> > Is there a way to make a copy of what's in my cache
>(getServletContext())
> > and make changes to that local copy, independent of whether the cached
> > object implements Cloneable()?
> >
> >
> > In order to speed up my XSLT I thought I would preload them (their
> > Transformer objects) into app scope and simply retrieve it as needed for
> > transforms.
> >
> > This works fine except I just remembered that I need to set attributes
>on
> > these XsLT Transformer objects.  Now, I am PRESUMING that this means
>that
>I
> > would then be locking up the servlet context each time I set one of
>these
> > parameters so then it seems I should clone() the object locally.  That
>way
>I
> > could set the params locally without affecting (or locking) the cached
> > version).  BUT Transfomer does not appear to implement the Cloneable()
> > interface.
> >
> > Is there a way around this?  Am I by any chance wrong about what's
>actually
> > happening here?   Can anyone make a suggestion?
> >
> > Here's what I'm doing basically:
> >
> > ServletContext application = getServletContext();
> > application.setAttribute("TEMPLATES_HASH",templates);
> > (where templates is a Hashtable containing Transformer objects)
> >
> >
> > Thanks.
> > Neal
> >
> >
> > --
> > To unsubscribe, e-mail:
>
> > For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>

RE: Tomcat 4.1.11

2002-09-18 Thread Fenlason, Josh

So all I have to do is log into cvs, execute this command:
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout 
jakarta-tomcat-connectors
and build according to Building.txt?  Then I should have a working Tomcat 4.1.11?  
Thanks for your help.
,
Josh.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Sun 1.4.0_02/Linux and Tomcat/Linux startup parameters

2002-09-18 Thread Nome real

Hi all,

I see in the documentation that we need to use the following parameters to start 
Tomcat 4.1.10, if you are using 
Linux 2.4.x

ulimit -s 2048
export LD_ASSUME_KERNEL=2.2.5
export J2SE_PREEMPTCLOSE=1

Well, I also start Tomcat with -Xmx850m, but I keep having errors like "unable to 
create new native thread" 
when, I know there is plenty of memory available. 

I just commented out the 3 lines above, and everything worked back again !! Can 
someone confirm that with 
Sun JDK 1.4 we don't need these 'workarounds' anymore or this is just a fatality ?

Thanks
Renato.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat 4.1.11

2002-09-18 Thread Craig R. McClanahan

All Tomcat 4.1.x code is in the same repositories as the 4.0.x code is
(4.1 is the HEAD branch).  So the sources are still in
"jakarta-tomcat-4.0", "jakarta-tomcat-jasper", and
"jakarta-tomcat-connectors".

Craig


On Wed, 18 Sep 2002, Fenlason, Josh wrote:

> Date: Wed, 18 Sep 2002 13:02:11 -0400
> From: "Fenlason, Josh" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Tomcat 4.1.11
>
> Thanks for the reply.  I guess that was what I was asking.
> I logged into cvs with this:
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
> password: anoncvs
> I tried to download 4.1.11 with this:
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarata-tomcat-4.1
> That didn't work.  What is the module name for tomcat 4.1?  Is there anything else I 
>have to down load to get and build the "latest and greatest" of tomcat 4.1?  Thanks 
>in advance.
> ,
> Josh.
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FOUND - Re: Tomcat 4.1.10 doesn't follow symlinks?

2002-09-18 Thread Roland Glenn McIntosh

This issue is discussed in the following bugs:
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11501
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12076
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12784

It is apparently a "tightening" of security.  A fix is not available at the moment, as 
I understand it.  Eventually, the security check that enforces this particular issue 
will be optional, but no one has contributed code to this effect.

-rgm

At 12:06 PM 09.18.2002 -0600, you wrote:
>I have the same problem when I try to include following a symbolic
>link.  Worked in 4.0.4, not now.
>
>Man it is making me very upset.  If I find something I will let you
>know.
>
>-Erick




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How and when to upgrade Tomcat 3.2.4 to Tomcat 4.1.10 Stable (Anybody?)

2002-09-18 Thread Brandon Cruz


We have been running tomcat 3.2.4 connected to Apache for about a year now.
We have configured about 200 virtual hosts (through server.xml) that are
using Tomcat to serve jsp files and run web applications.  Most of the
customers use the same application.

We are having a major problem, every time we want to change that
application, we need to restart tomcat, which means shutting down sessions
for users from every single virtual host.  This is a total pain!

We would like to upgrade to Tomcat 4.1.10 for it's manager capabilities,
especially restarting applications.  We would also like to stay somewhat
current so that we can get support from this usergroup when we have
questions.  There don't seem to be too many people interested in 3.2.4
questions anymore.

Question 1: Every *.jsp request is mapped to mod_jk, the workers.properties
seems to specify the home installation for Tomcat.  We would like to setup
4.1.10 and send new hosts to that instance, while leaving old customers
running on 3.2.4 at least until we are sure everything is working with the
new installation.  We do not have access to map *.jsp to a certain tomcat
instance because of the way our server administrator tool handles apache
virtual hosts.  Is this possible?  Are we stuck with only one instance of
tomcat if every *.jsp request goes to mod_jk?

Question 2:  Has anyone done this upgrade before and is it a major task?  Is
this even worth doing, or should we stick with 3.2.4 until we need to set up
an entirely new server?


Thanks in advance for any help, advice, or answers!


Brandon





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to setup mod_jserv with Tomcat 3.3.1 (was RE: Question)

2002-09-18 Thread Turner, John


Which documents?

Please be as specific as you can if you want someone to help you out.

Post snippets of config files, error messages, log file snippets, brief
explanation of your configuration, etc.  

Maybe a good idea would be to read the list for a couple of days to get a
feel for how to ask for help by providing as much information up front as
possible.  Most (if not all) of us are quite busy, and giving us the
information we need to help you up front will 1) get you your answer much
faster and 2) cause more people to be inclined to help you.

John


> -Original Message-
> From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 1:58 PM
> To: Tomcat Users List
> Subject: RE: Question
> 
> 
> hi John, mod_jserv never worked, I guess. That is the issue. 
> I Do have all the things set up per the documents. 
> Jai
> 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 10:57 AM
> To: 'Tomcat Users List'
> Subject: RE: Question
> 
> 
> 
> Well, that's the sort of specific information we need to help you.
> 
> You're using mod_jserv?  Has it worked before, is it working 
> now?  What
> changed that caused it to stop working?  Mod_jk is recommended over
> mod_jserv, especially for Tomcat 4.
> 
> So, I'm not clear what the issue is now.  You had mod_jserv 
> working and then
> it stopped?  Or you want to know how to make mod_jserv work?
> 
> John
> 
> 
> > -Original Message-
> > From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 18, 2002 1:47 PM
> > To: Tomcat Users List
> > Subject: RE: Question
> > 
> > 
> > hi John, thanks for being patient with me. have been using 
> > mod_jserv? Is that not recommended? Can you point me to a 
> > version here? 
> > Jai
> > 
> > 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 18, 2002 10:15 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Question
> > 
> > 
> > 
> > Well, you need to do all sorts of stuff to use Apache with 
> > Tomcat.  This is
> > a pretty big subject, it comes up many times every day.  
> You'll need a
> > connector like mod_jk, and you will need to make changes to 
> > server.xml,
> > httpd.conf, and create a new file called workers.properties 
> > (if you choose
> > mod_jk...there are other alternatives).
> > 
> > Your best bet is to search the list archives, or look for 
> > some HOWTOs.  I
> > have some for Redhat here:
> > http://www.johnturner.com/howto
> > 
> > John
> > 
> > 
> > > -Original Message-
> > > From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, September 18, 2002 1:07 PM
> > > To: Tomcat Users List
> > > Subject: RE: Question
> > > 
> > > 
> > > Sorry, my mistake. am running tomcat 3.3.1 and apache 1.3.26 
> > > on linux. 
> > > apache doc root set to //nn/prm
> > > 
> > > haven't changed anything else. What more information can 
> I provide?
> > > Thanks
> > > Jai
> > > 
> > > 
> > > -Original Message-
> > > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, September 18, 2002 9:59 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Question
> > > 
> > > 
> > > 
> > > You'll need to provide a lot more information than that, and 
> > > get a lot more
> > > specific, before anyone can help you.
> > > 
> > > Platform, versions, what you've done so far, what you've 
> > changed, etc.
> > > 
> > > John
> > > 
> > > > -Original Message-
> > > > From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, September 17, 2002 6:30 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Question
> > > > 
> > > > 
> > > > I can't seem to connect apache to tomcat inspite of the 
> > > > include file in the httpd.conf file. I can get
> > > > http://xxx.xxx.com:8080/nn/prm or something come up just fine 
> > > > but I cannot seem to get
> > > > http://xxx.xxx.com to come up. I have configured Document 
> > > > Root in the httpd.conf file to point to .../nn/prm 
> > > > Please help. 
> > > > Thanks
> > > > 
> > > > Jai Durgam
> > > > 
> > > > 
> > > > --
> > > > To unsubscribe, e-mail:   
> > > > 
> > > > For additional commands, e-mail: 
> > > > 
> > > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail:
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsu

Re: Tomcat 4.1.10 doesn't follow symlinks?

2002-09-18 Thread Erick Todd

I have the same problem when I try to include following a symbolic
link.  Worked in 4.0.4, not now.

Man it is making me very upset.  If I find something I will let you
know.

-Erick

On Wed, 2002-09-18 at 12:00, Roland Glenn McIntosh wrote:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12784
> I may have filed this bug too early, without checking here first.
> 
> I noticed that if any of my .jar files in my WEBINF/lib directory are symlinks, I 
>can't start my webapp with this new version of tomcat.  Has anyone experienced 
>similar problems?  Is there an equivalent for the Apache "follow symlinks" directive 
>that I have not stumbled across yet?
> Why did this work in 4.0.4?
> 
> -Roland Glenn McIntosh
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[OFF-TOPIC] RE: John: missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread Turner, John


No, you don't have to uninstall Apache 1.3 that came with Redhat.  Just
leave it where it is, make sure it doesn't run at boot by default.  Then put
Apache 2 in some location like /usr/local/apache2.  You won't hurt anything
leaving your existing Apache as is, you just want to make sure it doesn't
conflict with the Apache you are trying to install.

I don't use RPMs, I build from source for non-Java, use binaries for Java.
That's me.  If you want to build from source, that's cool, just make sure
you know what you are doing before you start and that you have the build
tools ready to go (like GNU make, autoconf, m4, etc).

You might want to consider using RedHat tools like up2date (or whatever they
call it) to upgrade your Apache 1.3 RPM to Apache 1.3.26 instead of trying
to put another RPM on top of it.  Like I said, I don't use RPMs, so I'm not
the best person to help with those sorts of issues, and either way, basic
sys-admin questions don't belong on this list.  There's no requirement that
you must use 2.0.40...I'm using 1.3.26 in production and it works with
Tomcat just fine.

John


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 11:48 PM
> To: Tomcat Users List
> Subject: John: missing tomcat-apache.conf & mod_jk.conf-auto
> 
> 
> Hi John.
> Downloaded and am installing Apache 2.0.40 and connectors-4.0.4
> A basic question : do I have to uninstall current Apache 1.3.16 first
> ???
> If so , RH7.1 throws up a lot of dependencies errors and 
> refuse to do so
> without an explicit --force.
> Go ahead to uninstall anyway ???
> After that, do I have to install Apache-2.0.40 with rpm ???
> Sorry for the basic questions and thanks for the info !
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Question

2002-09-18 Thread Jai Durgam

hi John, mod_jserv never worked, I guess. That is the issue. I Do have all the things 
set up per the documents. 
Jai


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 10:57 AM
To: 'Tomcat Users List'
Subject: RE: Question



Well, that's the sort of specific information we need to help you.

You're using mod_jserv?  Has it worked before, is it working now?  What
changed that caused it to stop working?  Mod_jk is recommended over
mod_jserv, especially for Tomcat 4.

So, I'm not clear what the issue is now.  You had mod_jserv working and then
it stopped?  Or you want to know how to make mod_jserv work?

John


> -Original Message-
> From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 1:47 PM
> To: Tomcat Users List
> Subject: RE: Question
> 
> 
> hi John, thanks for being patient with me. have been using 
> mod_jserv? Is that not recommended? Can you point me to a 
> version here? 
> Jai
> 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 10:15 AM
> To: 'Tomcat Users List'
> Subject: RE: Question
> 
> 
> 
> Well, you need to do all sorts of stuff to use Apache with 
> Tomcat.  This is
> a pretty big subject, it comes up many times every day.  You'll need a
> connector like mod_jk, and you will need to make changes to 
> server.xml,
> httpd.conf, and create a new file called workers.properties 
> (if you choose
> mod_jk...there are other alternatives).
> 
> Your best bet is to search the list archives, or look for 
> some HOWTOs.  I
> have some for Redhat here:
> http://www.johnturner.com/howto
> 
> John
> 
> 
> > -Original Message-
> > From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 18, 2002 1:07 PM
> > To: Tomcat Users List
> > Subject: RE: Question
> > 
> > 
> > Sorry, my mistake. am running tomcat 3.3.1 and apache 1.3.26 
> > on linux. 
> > apache doc root set to //nn/prm
> > 
> > haven't changed anything else. What more information can I provide?
> > Thanks
> > Jai
> > 
> > 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 18, 2002 9:59 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Question
> > 
> > 
> > 
> > You'll need to provide a lot more information than that, and 
> > get a lot more
> > specific, before anyone can help you.
> > 
> > Platform, versions, what you've done so far, what you've 
> changed, etc.
> > 
> > John
> > 
> > > -Original Message-
> > > From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 6:30 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Question
> > > 
> > > 
> > > I can't seem to connect apache to tomcat inspite of the 
> > > include file in the httpd.conf file. I can get
> > > http://xxx.xxx.com:8080/nn/prm or something come up just fine 
> > > but I cannot seem to get
> > > http://xxx.xxx.com to come up. I have configured Document 
> > > Root in the httpd.conf file to point to .../nn/prm 
> > > Please help. 
> > > Thanks
> > > 
> > > Jai Durgam
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > > 
> > > For additional commands, e-mail: 
> > > 
> > > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 4.1.10 doesn't follow symlinks?

2002-09-18 Thread Roland Glenn McIntosh

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12784
I may have filed this bug too early, without checking here first.

I noticed that if any of my .jar files in my WEBINF/lib directory are symlinks, I 
can't start my webapp with this new version of tomcat.  Has anyone experienced similar 
problems?  Is there an equivalent for the Apache "follow symlinks" directive that I 
have not stumbled across yet?
Why did this work in 4.0.4?

-Roland Glenn McIntosh



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Question

2002-09-18 Thread Turner, John


Well, that's the sort of specific information we need to help you.

You're using mod_jserv?  Has it worked before, is it working now?  What
changed that caused it to stop working?  Mod_jk is recommended over
mod_jserv, especially for Tomcat 4.

So, I'm not clear what the issue is now.  You had mod_jserv working and then
it stopped?  Or you want to know how to make mod_jserv work?

John


> -Original Message-
> From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 1:47 PM
> To: Tomcat Users List
> Subject: RE: Question
> 
> 
> hi John, thanks for being patient with me. have been using 
> mod_jserv? Is that not recommended? Can you point me to a 
> version here? 
> Jai
> 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 10:15 AM
> To: 'Tomcat Users List'
> Subject: RE: Question
> 
> 
> 
> Well, you need to do all sorts of stuff to use Apache with 
> Tomcat.  This is
> a pretty big subject, it comes up many times every day.  You'll need a
> connector like mod_jk, and you will need to make changes to 
> server.xml,
> httpd.conf, and create a new file called workers.properties 
> (if you choose
> mod_jk...there are other alternatives).
> 
> Your best bet is to search the list archives, or look for 
> some HOWTOs.  I
> have some for Redhat here:
> http://www.johnturner.com/howto
> 
> John
> 
> 
> > -Original Message-
> > From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 18, 2002 1:07 PM
> > To: Tomcat Users List
> > Subject: RE: Question
> > 
> > 
> > Sorry, my mistake. am running tomcat 3.3.1 and apache 1.3.26 
> > on linux. 
> > apache doc root set to //nn/prm
> > 
> > haven't changed anything else. What more information can I provide?
> > Thanks
> > Jai
> > 
> > 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 18, 2002 9:59 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Question
> > 
> > 
> > 
> > You'll need to provide a lot more information than that, and 
> > get a lot more
> > specific, before anyone can help you.
> > 
> > Platform, versions, what you've done so far, what you've 
> changed, etc.
> > 
> > John
> > 
> > > -Original Message-
> > > From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 6:30 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Question
> > > 
> > > 
> > > I can't seem to connect apache to tomcat inspite of the 
> > > include file in the httpd.conf file. I can get
> > > http://xxx.xxx.com:8080/nn/prm or something come up just fine 
> > > but I cannot seem to get
> > > http://xxx.xxx.com to come up. I have configured Document 
> > > Root in the httpd.conf file to point to .../nn/prm 
> > > Please help. 
> > > Thanks
> > > 
> > > Jai Durgam
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > > 
> > > For additional commands, e-mail: 
> > > 
> > > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat won't auto-start on RedHat 7.3

2002-09-18 Thread John Murtari

Just a side note - if you actually want to see the output of your
startup script, stick a comment line in with the word action on it 

ie - 
# action 

Redhat's rc script looks for action in the file to determine the way
it gets invoked.  If the script does not contact action, all you will
see is the [OK]


If you want to call this on shutdown as well, you will need to 
have your script :  touch /var/lock/subsys/tomcat
(ie - if you script is /etc/init.d/tomcat)

the rc script looks in /var/lock/subsys to determine what has been
started and what needs to be stopped going to init 0 or init 6.



Kenny G. Dubuisson, Jr. writes:
 > That did it.  Thanks all,
 > Kenny
 > 
 > - Original Message -
 > From: "Ben Ricker" <[EMAIL PROTECTED]>
 > To: "Tomcat Users List" <[EMAIL PROTECTED]>
 > Sent: Tuesday, September 17, 2002 2:17 PM
 > Subject: Re: Tomcat won't auto-start on RedHat 7.3
 > 
 > 
 > > On Tue, 2002-09-17 at 14:06, Kenny G. Dubuisson, Jr. wrote:
 > > > Very good question...I bet they aren't.  Do you know where I would set
 > those
 > > > for boot (or should I just put them in the script I wrote)?  Thanks,
 > > > Kenny
 > >
 > > Put them in the script.
 > >
 > > Ben Ricker
 > > Wellinx.com
 > >
 > > > - Original Message -
 > > > From: "Turner, John" <[EMAIL PROTECTED]>
 > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
 > > > Sent: Tuesday, September 17, 2002 2:04 PM
 > > > Subject: RE: Tomcat won't auto-start on RedHat 7.3
 > > >
 > > >
 > > > >
 > > > > When run during boot, are JAVA_HOME and CATALINA_HOME set?
 > > > >
 > > > > John
 > > > >
 > > > > > -Original Message-
 > > > > > From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
 > > > > > Sent: Tuesday, September 17, 2002 3:01 PM
 > > > > > To: Tomcat Users List
 > > > > > Subject: Tomcat won't auto-start on RedHat 7.3
 > > > > >
 > > > > >
 > > > > > I have successfully installed Apache 2.0.40, Tomcat 4.0.4,
 > > > > > and mod_jk and
 > > > > > all works fine.  The problem I have is that I wrote a simple
 > > > > > startup script
 > > > > > for Tomcat to be executed upon init level 5 entrance.  If I
 > > > > > run the script
 > > > > > from a shell prompt, it works fine.  If it runs when Linux is
 > booting,
 > > > > > though it says "OK" when starting, Tomcat doesn't actually
 > > > > > get started.
 > > > > >
 > > > > > The script is:
 > > > > >
 > > > > > #!/bin/sh
 > > > > > case "$1" in
 > > > > >start)
 > > > > >   echo -n "Starting Tomcat: "
 > > > > >   /usr/local/jakarta-tomcat-4.0.4/bin/startup.sh
 > > > > >   echo
 > > > > >   ;;
 > > > > >stop)
 > > > > >   echo -n "Stopping Tomcat: "
 > > > > >   /usr/local/jakarta-tomcat-4.0.4/bin/shutdown.sh
 > > > > >   echo
 > > > > >   ;;
 > > > > >restart)
 > > > > >   $0 stop
 > > > > >   $0 start
 > > > > >   ;;
 > > > > >*)
 > > > > >   echo "Usage: $0 {start|stop|restart}"
 > > > > >   exit 1
 > > > > > esac
 > > > > > exit 0
 > > > > >
 > > > > > Any Ideas?
 > > > > >
 > > > > >
 > > > > > --
 > > > > > To unsubscribe, e-mail:
 > > > > 
 > > > > For additional commands, e-mail:
 > > > > 
 > > > >
 > > > > --
 > > > > To unsubscribe, e-mail:
 > > > 
 > > > > For additional commands, e-mail:
 > > > 
 > > >
 > > >
 > > > --
 > > > To unsubscribe, e-mail:
 > 
 > > > For additional commands, e-mail:
 > 
 > > >
 > >
 > >
 > >
 > > --
 > > To unsubscribe, e-mail:
 > 
 > > For additional commands, e-mail:
 > 
 > 
 > 
 > --
 > To unsubscribe, e-mail:   
 > For additional commands, e-mail: 

-- 
  John
___
John Murtari  Software Workshop Inc.
[EMAIL PROTECTED] 315.695.1301(x-211)"TheBook.Com" (TM)
http://www.thebook.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Question

2002-09-18 Thread Jai Durgam

hi John, thanks for being patient with me. have been using mod_jserv? Is that not 
recommended? Can you point me to a version here? 
Jai


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 10:15 AM
To: 'Tomcat Users List'
Subject: RE: Question



Well, you need to do all sorts of stuff to use Apache with Tomcat.  This is
a pretty big subject, it comes up many times every day.  You'll need a
connector like mod_jk, and you will need to make changes to server.xml,
httpd.conf, and create a new file called workers.properties (if you choose
mod_jk...there are other alternatives).

Your best bet is to search the list archives, or look for some HOWTOs.  I
have some for Redhat here:
http://www.johnturner.com/howto

John


> -Original Message-
> From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 1:07 PM
> To: Tomcat Users List
> Subject: RE: Question
> 
> 
> Sorry, my mistake. am running tomcat 3.3.1 and apache 1.3.26 
> on linux. 
> apache doc root set to //nn/prm
> 
> haven't changed anything else. What more information can I provide?
> Thanks
> Jai
> 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 9:59 AM
> To: 'Tomcat Users List'
> Subject: RE: Question
> 
> 
> 
> You'll need to provide a lot more information than that, and 
> get a lot more
> specific, before anyone can help you.
> 
> Platform, versions, what you've done so far, what you've changed, etc.
> 
> John
> 
> > -Original Message-
> > From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 6:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: Question
> > 
> > 
> > I can't seem to connect apache to tomcat inspite of the 
> > include file in the httpd.conf file. I can get
> > http://xxx.xxx.com:8080/nn/prm or something come up just fine 
> > but I cannot seem to get
> > http://xxx.xxx.com to come up. I have configured Document 
> > Root in the httpd.conf file to point to .../nn/prm 
> > Please help. 
> > Thanks
> > 
> > Jai Durgam
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail: 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: A very strange behaviour

2002-09-18 Thread Jacob Kjome

Hello Behrang,

Well, that's not "strange behavior", it is exactly what one should
expect.  Keep in mind that your context is at:
http://localhost:8080/headertest

As the browser see it, it is one directory in from the root of the
web.  The server understands this as a context rather than just
another directory.  If you want to tell the server than you want to
reference a file from this same context, you need to provide the name
of the context in your linked path.

so instead of:
home

you need:
home

Now, you might as "well, what if I change the same of the context?"
"Now I am stuck with a hardcoded context path in my jsp."  There are a
couple solutions.

1. dynamically write in the context name at runtime so no matter what
context name you deploy your app under, it will always refer to the
correct context.

2. refer to your pages in a relative fashion.  When you reference "/",
you reference the root of the web.  However, if you just did "./",
that says "whatever directory I am in, start from there and find my
document."

3. deploy your app to the root of the web.  Look at Tomcat's ROOT
application and how it is deployed.

All solutions have their issues.  #1 hobbles you with having to place
all that dynamic writing of context's.  #2 makes you always have to
know what directory your page is in and how it is relative to all the
other pages.  And, if you move the page to another directory,
especially deeper or more shallow in the tree, you will have to modify
the links to point to the new relative locations of all the files.  #3
can be deceiving because it looks like the problem is solved, but if
you count on this solving your problem, you have to make sure that
everyone who installs your app does so as the root application and you
can't always count on that.

Another way to solve this issue is to use MVC where you have a servlet
mapping and some event handling system that knows where the pages are.
However, you still have to provide the reference to the  current
context in the link that points to your controller servlet.  So,
you'll never solve this issue fully, but you have a number of options
to go with to help deal with it.

Hope that helps.

Jake


Wednesday, September 18, 2002, 8:48:46 AM, you wrote:

BS> Hi

BS> I'm designing a new web application and I have stored my files in the 
D:\Tests\Web\HeaderTest directory and I have defined the following Context in the 
server.xml:

BS>path="/headertest" 
BS>   docBase="D:\Tests\Web\HeaderTest" 
BS>   debug="0" 
BS>   privileged="true"
BS>  />

BS> I suppose this tells the Tomcat that the root directory for my webapp is 
D:\Tests\Web\HeaderTest or http://localhost:8080/headertest.

BS> But if I define a link in a page in my webapp such as:

BS> Link  

BS> it refers to a wrong document: http://localhost:8080/home.jsp which is unavailable.

BS> Does anybody know what's wrong with this?

BS> Also another problem is that when I include a file using the include action or 
even the include directive the links defined in the included document changes so they 
don't refer to their original
BS> destinations anymore. For example, I want a header.html to be included in all the 
pages throughout my web site but if I include the header.html in subdirectories of my 
web app, the links get
BS> broken.

BS> I have tried lots of guesses and I have read some parts of JSP 1.2 Spec that are 
about includes and ... but I have not found the answer.

BS> All helps are appreciated.
BS> Thanks in advance.



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




John: missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread achana

Hi John.
Downloaded and am installing Apache 2.0.40 and connectors-4.0.4
A basic question : do I have to uninstall current Apache 1.3.16 first
???
If so , RH7.1 throws up a lot of dependencies errors and refuse to do so
without an explicit --force.
Go ahead to uninstall anyway ???
After that, do I have to install Apache-2.0.40 with rpm ???
Sorry for the basic questions and thanks for the info !

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: A very strange behaviour

2002-09-18 Thread Behrang Saeedzadeh

Lots of thanks for your response, Miguel

I think that you mean that I have to change the /home.jsp to ../home.jsp,
isn't it?

Thanks again,
Behrang S.


- Original Message -
From: "Miguel Angel Mulero Martinez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 6:27 PM
Subject: RE: A very strange behaviour


> This is normal. The problem is the browser, that translates "/home.jsp" to
> server/home.jsp and makes this petition to tomcat.
> If you want change that, use relative paths.
>
>
>
> -Mensaje original-
> De: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles, 18 de septiembre de 2002 15:49
> Para: [EMAIL PROTECTED]
> Asunto: A very strange behaviour
>
> Hi
>
> I'm designing a new web application and I have stored my files in the
> D:\Tests\Web\HeaderTest directory and I have defined the following
> Context in the server.xml:
>
>path="/headertest"
>   docBase="D:\Tests\Web\HeaderTest"
>   debug="0"
>   privileged="true"
>  />
>
> I suppose this tells the Tomcat that the root directory for my webapp is
> D:\Tests\Web\HeaderTest or http://localhost:8080/headertest.
>
> But if I define a link in a page in my webapp such as:
>
> Link 
>
> it refers to a wrong document: http://localhost:8080/home.jsp which is
> unavailable.
>
> Does anybody know what's wrong with this?
>
> Also another problem is that when I include a file using the include
> action or even the include directive the links defined in the included
> document changes so they don't refer to their original destinations
> anymore. For example, I want a header.html to be included in all the
> pages throughout my web site but if I include the header.html in
> subdirectories of my web app, the links get broken.
>
> I have tried lots of guesses and I have read some parts of JSP 1.2 Spec
> that are about includes and ... but I have not found the answer.
>
> All helps are appreciated.
> Thanks in advance.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: UnsupportedOperationException when connecting from datasource

2002-09-18 Thread Alfonso Martinez

Thanks, thanks, thanks a lot Jake. It is working now!!!

As you said, "user" should be "username",
also ds.getConnection("", "") should be ds.getConnection()

My system was running OK on Tomcat 4.0.1/mysql. Problems arrised when I
migrated to Tomcat 4.1.10/postgresql.

I really thank you. You saved me from long hours

Jose



On Mon, 16 Sep 2002, Jacob Kjome wrote:

> 
> "user" should be "username".
> 
> Also, why are you calling ds.getConnection("", "")?  Shouldn't it just be 
> ds.getConnection();
> 
> Jake
> 
> At 05:49 PM 9/16/2002 -0500, you wrote:
> 
> >Server: Tomcat 4.1.10
> >DBMS:   PostgreSQL 7.2.1-5
> >JDBC-Driver: Driver for JDBC 2.0
> >Java: JDK 1.4.0_02
> >
> >Hi, I can't get a connection from the datasource when running my
> >servlet. I get an UnsupportedOperationException:
> >
> >java.lang.UnsupportedOperationException
> > at 
> > org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:125)
> > at 
> > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:329)
> > at cevex.servlet.QueryServlet.doGet(QueryServlet.java:121)
> >(this is my servlet)
> > ...
> >
> >the code breaks at
> >
> > conn = ds.getConnection("", "");
> >
> >I am using the default DataSource that comes with tomcat. Does anyone have
> >an idea for what's going on???
> >
> >Following are my  server.xml and web.xml files.
> >
> >thank you
> >
> >Jose
> >
> >
> >Server.xml: just the CONTEXT part, everything else is unchanged
> >since tomcat installation
> >-
> >
> >
> >  
> >  >path="/cevex" docBase="/usr/local/www/cevex" reloadable="true">
> >>name="jdbc/cevexDB" auth="Container" type="javax.sql.DataSource"/>
> > 
> >  factory
> >
> >org.apache.commons.dbcp.BasicDataSourceFactory
> >  
> >
> >  maxActive 100
> >
> >
> >   maxIdle 30 
> >
> >  maxWait 1
> >
> >
> >  user postgres
> >
> >  password  
> >
> >  driverClassName
> >  org.postgresql.Driver 
> >
> > 
> >url
> >jdbc:postgresql://localhost/cevex
> > 
> > 
> > 
> >
> >
> >web.xml
> >--
> >
> >
> > >Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> >
> >
> >  
> > QueryServlet
> > cevex.servlet.QueryServlet
> >  
> >  
> > InscribeServlet
> > cevex.servlet.InscribeServlet
> >  
> >  
> > LoginServlet
> > cevex.servlet.LoginServlet
> >  
> >  
> > LogoutServlet
> > cevex.servlet.LogoutServlet
> >  
> >  
> > UserControllerServlet
> > cevex.servlet.UserControllerServlet
> >  
> >  
> > CreaSeccionMiembrosServlet
> >
> >cevex.servlet.CreaSeccionMiembrosServlet
> >  
> >  
> > CambiarMisDatosInscritosServlet
> >
> >cevex.servlet.CambiarMisDatosInscritosServlet
> >  
> >  
> > CambiarMisDatosPromotoresServlet
> >
> >cevex.servlet.CambiarMisDatosPromotoresServlet
> >  
> >  
> > CambiarContraseniaServlet
> >
> >cevex.servlet.CambiarContraseniaServlet
> >  
> >  
> > ObtenerListaCursosServlet
> >
> >cevex.servlet.ObtenerListaCursosServlet
> >  
> >  
> > AgregaCursoServlet
> > cevex.servlet.AgregaCursoServlet
> >  
> > 
> > AgregaCursosAlCarritoDeComprasServlet
> >
> >cevex.servlet.AgregaCursosAlCarritoDeComprasServlet
> >  
> > 
> > QuitaCursosDelCarritoDeComprasServlet
> >
> >cevex.servlet.QuitaCursosDelCarritoDeComprasServlet
> >  
> > 
> > RealizaCompraServlet
> > cevex.servlet.RealizaCompraServlet
> >  
> >  
> > CorroboraPagoServlet
> > cevex.servlet.CorroboraPagoServlet
> >  
> >  
> > CorroboraComisionServlet
> >
> >cevex.servlet.CorroboraComisionServlet
> >  
> >  
> > VerificaDatosInscripcionServlet
> >
> >cevex.servlet.VerificaDatosInscripcionServlet
> >  
> >
> >
> > 
> >   1
> > 
> >
> > 
> >  DataSource for connections  
> > jdbc/cevexDB
> >  javax.sql.DataSource 
> >  Container 
> > 
> >
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   
> >For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: monitoring question

2002-09-18 Thread Turner, John


I would just use wget and put it in a script that executes every minute.
Grep through the output for "500 Internal Server" and if found, do your
restart.  Poor man's monitoring, but it should work.

John


> -Original Message-
> From: Steven Garrett [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 1:28 PM
> To: 'Tomcat Users List'
> Subject: monitoring question
> 
> 
> Hi,
> 
> We're using tomcat 4.0.3 on Solaris 8 with apache 1.3.26 and 
> mod_jk as the
> connectors.  We have this application that causes the CPU to 
> overload, which
> in turn causes tomcat to become unavailable.  The apache 
> server continues to
> return error 500, internal server error.  We're working on fixing the
> application, but in the meantime
> 
> The current application is in production and continually 
> crashes.  But the
> tomcat and httpd processes are still alive and kicking.  Is 
> there a way to
> easily monitor tomcat so that when this happens we can 
> restart the web and
> app servers appropriately?
> 
> I know this is a vague question so please feel free to ask 
> for more details
> or any questions you like.
> 
> Thanks in advance,
> 
> Steve
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




monitoring question

2002-09-18 Thread Steven Garrett

Hi,

We're using tomcat 4.0.3 on Solaris 8 with apache 1.3.26 and mod_jk as the
connectors.  We have this application that causes the CPU to overload, which
in turn causes tomcat to become unavailable.  The apache server continues to
return error 500, internal server error.  We're working on fixing the
application, but in the meantime

The current application is in production and continually crashes.  But the
tomcat and httpd processes are still alive and kicking.  Is there a way to
easily monitor tomcat so that when this happens we can restart the web and
app servers appropriately?

I know this is a vague question so please feel free to ask for more details
or any questions you like.

Thanks in advance,

Steve

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How reload single servlet?

2002-09-18 Thread Bill Leath

Hello group!

I have an error in a servlet on an actively used application.  I made
the necessary changes, compiled the servlet, but can't figure out how to
get Tomcat to recognize the changes without reloading the entire
application.

Thanks in advance.

Bill


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Question

2002-09-18 Thread Turner, John


Well, you need to do all sorts of stuff to use Apache with Tomcat.  This is
a pretty big subject, it comes up many times every day.  You'll need a
connector like mod_jk, and you will need to make changes to server.xml,
httpd.conf, and create a new file called workers.properties (if you choose
mod_jk...there are other alternatives).

Your best bet is to search the list archives, or look for some HOWTOs.  I
have some for Redhat here:
http://www.johnturner.com/howto

John


> -Original Message-
> From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 1:07 PM
> To: Tomcat Users List
> Subject: RE: Question
> 
> 
> Sorry, my mistake. am running tomcat 3.3.1 and apache 1.3.26 
> on linux. 
> apache doc root set to //nn/prm
> 
> haven't changed anything else. What more information can I provide?
> Thanks
> Jai
> 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 9:59 AM
> To: 'Tomcat Users List'
> Subject: RE: Question
> 
> 
> 
> You'll need to provide a lot more information than that, and 
> get a lot more
> specific, before anyone can help you.
> 
> Platform, versions, what you've done so far, what you've changed, etc.
> 
> John
> 
> > -Original Message-
> > From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 6:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: Question
> > 
> > 
> > I can't seem to connect apache to tomcat inspite of the 
> > include file in the httpd.conf file. I can get
> > http://xxx.xxx.com:8080/nn/prm or something come up just fine 
> > but I cannot seem to get
> > http://xxx.xxx.com to come up. I have configured Document 
> > Root in the httpd.conf file to point to .../nn/prm 
> > Please help. 
> > Thanks
> > 
> > Jai Durgam
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail: 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Connecting IPlanet and Tomcat

2002-09-18 Thread Jerry Birchler

download the gnu c++ compiler from
ftp://ftp.sunfreeware.com/pub/freeware/sparc/8/gcc-3.2-sol8-sparc-local.gz

and the tomcat connectors source distribution from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/

Take the zip file, as the gzip file will most likely fail with checksum
errors on Solaris.

gnu Zip is on the www.sunfreeware.com site and it comes with the software
companion CD for solaris 8.

Please let me know if you get this working. I have been trying this on Linux
with no success. I have yet to try it on my SPARC box.



-Original Message-
From: Wilson, William N [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 12:02 PM
To: Tomcat Users List
Subject: Connecting IPlanet and Tomcat


I've tried connecting IPlanet to Tomcat and I cannot find a binary copy of
the redirector for Solaris 8.  I do not have a compiler on the Sun box. Does
anyone have any ideas where I might find this file?

Thanks,

Bill

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Include symbolic links, sorry to ask again, but I AM FREAKING OUT!!!

2002-09-18 Thread Erick Todd

OK sorry for asking this again.  I have read this in the bug reports
that it will not be fixed.

Is there a work around??

I have 8-10 sites, that are all unique webapps, but one thing they do
include a standard header and footer across all the different webapps. 
This header and footer does do jsp code, so I need an include and cannot
just read them to the page.

So I have a folder called csinc that has the header and footer in it. 
In each different domain doc-root, I have a symbolic link that points to
the real one, so that the program can include off of it.

I have tried doing apache aliasing of the directory, making the
directory another context path and setting crossContext="true".

Nothing seems to work.  Of course this all works in 4.0.4.  Just 4.1.10
has a problem.

PLEASE HELP!!!  I am really frustrated.  Why would this be taken out,
without notice between the versions, and no work around be presented!! 
ARGHH!!

Anyway if you can help that would be great.  I want to use the newest
version, especially with the jasper 2 compiler.  But I won't if I can't
get this to work.  What a shame.

-Erick




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




mod_jk log file errors

2002-09-18 Thread Ago Meister

Hello there,

My mod_jk log file contains many error messages?
We are using Apache 1.3.26 and Tomcat 4.0.4 with AJP13 and RH 6.2.
Does anybody any ideas or has experience with similar problems?


errors are:

[Mon Sep 16 15:38:18 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Mon Sep 16 15:38:20 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Mon Sep 16 15:43:27 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Mon Sep 16 15:44:15 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:15 2002]  [jk_ajp_common.c (1013)]: Error reading reply

and

[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 1
[Mon Sep 16 15:44:22 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 111
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1013)]: Error reading reply

kind regards,
Ago Meister


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Question

2002-09-18 Thread Jai Durgam

Sorry, my mistake. am running tomcat 3.3.1 and apache 1.3.26 on linux. 
apache doc root set to //nn/prm

haven't changed anything else. What more information can I provide?
Thanks
Jai


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 9:59 AM
To: 'Tomcat Users List'
Subject: RE: Question



You'll need to provide a lot more information than that, and get a lot more
specific, before anyone can help you.

Platform, versions, what you've done so far, what you've changed, etc.

John

> -Original Message-
> From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 6:30 PM
> To: [EMAIL PROTECTED]
> Subject: Question
> 
> 
> I can't seem to connect apache to tomcat inspite of the 
> include file in the httpd.conf file. I can get
> http://xxx.xxx.com:8080/nn/prm or something come up just fine 
> but I cannot seem to get
> http://xxx.xxx.com to come up. I have configured Document 
> Root in the httpd.conf file to point to .../nn/prm 
> Please help. 
> Thanks
> 
> Jai Durgam
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Un-tarring jakarta-tomcat-4.0.4.tar.gz

2002-09-18 Thread Wilson, William N

The Tomcat site says there is a problem with the SUN tar command.  You can
unzip this on the windows side and then FTP the whole thing over if you
don't want to install the GNU tar binaries.  That is what I have had to do
on Solaris machines where I am not the administrator.

-Original Message-
From: amit_mahajan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 3:28 AM
To: [EMAIL PROTECTED]
Subject: Un-tarring jakarta-tomcat-4.0.4.tar.gz


> Hi,
> 
> I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache
1.3.26. 
> 
> I have downloaded from the Tomcat site the file
jakarta-tomcat-4.0.4.tar.gz which I am trying to un-tar on the Solaris
> machine but I keep getting a checksum error each time I try. And though a
lot of folders are created, most of them 
> are emtpy without the files in them. I am running the following commands :
> 
> $gunzip  jakarta-tomcat-4.0.4.tar.gz
> $tar -xvf  jakarta-tomcat-4.0.4.tar
> 
> However, if I unzip on a Win 2K machine, I am able to get a complete
expanded directory. Also the size of the 
> downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB (4,241,667
bytes) - or 4,134 KB.
> 
> Has anyone faced a similar problem or can someone please point out what I
may be doing wrong.
> 
Please reply to [EMAIL PROTECTED] since I am not a member of
this mailing list.

> Thanks,
> Amit

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat 4.1.11

2002-09-18 Thread Fenlason, Josh

Thanks for the reply.  I guess that was what I was asking.
I logged into cvs with this:
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
password: anoncvs
I tried to download 4.1.11 with this:
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarata-tomcat-4.1
That didn't work.  What is the module name for tomcat 4.1?  Is there anything else I 
have to down load to get and build the "latest and greatest" of tomcat 4.1?  Thanks in 
advance.
,
Josh.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Un-tarring jakarta-tomcat-4.0.4.tar.gz

2002-09-18 Thread Peter Davison

It may be a problem with the default version of tar installed on Solaris.  I ran
into this problem (at around 4:00am the night/day before a project was due!). 
The version of tar that comes with Solaris has a nasty issue in that it limits
the length of the names of files to a very small number of characters (Can't
remember what that value is, but it's easy to overrun it).  If you try to use it
to untar a gnu-tarred archive that has names longer that the limit you wind up
with these mysterious errors.

Try installing gnu-tar and re-installing the tomcat archive.

You can find gnu-tar at:
http://www.gnu.org/software/tar/tar.html

Regards,
Pete.

On Tue, 17 Sep 2002 19:12:31 +0530
"amit_mahajan" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache
> 1.3.26. 
> 
> I have downloaded from the Tomcat site the file jakarta-tomcat-4.0.4.tar.gz
> which I am trying to un-tar on the Solaris machine but I keep getting a
> checksum error each time I try. And though a lot of folders are created, most
> of them are emtpy without the files in them. I am running the following
> commands :
> 
> $gunzip  jakarta-tomcat-4.0.4.tar.gz
> $tar -xvf  jakarta-tomcat-4.0.4.tar
> 
> However, if I unzip on a Win 2K machine, I am able to get a complete expanded
> directory. Also the size of the downloaded jakarta-tomcat-4.0.4.tar.gz file I
> have is 4.04 MB (4,241,667 bytes) - or 4,134 KB.
> 
> Has anyone faced a similar problem or can someone please point out what I may
> be doing wrong.
> 
> Thanks,
> Amit
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
Peter Davison
[EMAIL PROTECTED]

What did you bring that book I didn't want to be read to out of about
Down Under up for?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Connecting IPlanet and Tomcat

2002-09-18 Thread Wilson, William N

I've tried connecting IPlanet to Tomcat and I cannot find a binary copy of
the redirector for Solaris 8.  I do not have a compiler on the Sun box. Does
anyone have any ideas where I might find this file?

Thanks,

Bill

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Un-tarring jakarta-tomcat-4.0.4.tar.gz

2002-09-18 Thread Craig R. McClanahan

Use GNU tar.

Craig

On Tue, 17 Sep 2002, amit_mahajan wrote:

> Date: Tue, 17 Sep 2002 19:12:31 +0530
> From: amit_mahajan <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Un-tarring jakarta-tomcat-4.0.4.tar.gz
>
> Hi,
>
> I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache 1.3.26.
>
> I have downloaded from the Tomcat site the file jakarta-tomcat-4.0.4.tar.gz which I 
>am trying to un-tar on the Solaris
> machine but I keep getting a checksum error each time I try. And though a lot of 
>folders are created, most of them
> are emtpy without the files in them. I am running the following commands :
>
> $gunzip  jakarta-tomcat-4.0.4.tar.gz
> $tar -xvf  jakarta-tomcat-4.0.4.tar
>
> However, if I unzip on a Win 2K machine, I am able to get a complete expanded 
>directory. Also the size of the
> downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB (4,241,667 bytes) - or 
>4,134 KB.
>
> Has anyone faced a similar problem or can someone please point out what I may be 
>doing wrong.
>
> Thanks,
> Amit
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Un-tarring jakarta-tomcat-4.0.4.tar.gz

2002-09-18 Thread Turner, John


You are using Sun Solaris tar and not GNU tar.

Download GNU tar from http://www.sunfreeware.com and make sure it is first
in your PATH, ahead of the Solaris tar.

John


> -Original Message-
> From: amit_mahajan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: Un-tarring jakarta-tomcat-4.0.4.tar.gz
> Importance: High
> 
> 
> Hi,
> 
> I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine 
> which has Apache 1.3.26. 
> 
> I have downloaded from the Tomcat site the file 
> jakarta-tomcat-4.0.4.tar.gz which I am trying to un-tar on the Solaris
> machine but I keep getting a checksum error each time I try. 
> And though a lot of folders are created, most of them 
> are emtpy without the files in them. I am running the 
> following commands :
> 
> $gunzip  jakarta-tomcat-4.0.4.tar.gz
> $tar -xvf  jakarta-tomcat-4.0.4.tar
> 
> However, if I unzip on a Win 2K machine, I am able to get a 
> complete expanded directory. Also the size of the 
> downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB 
> (4,241,667 bytes) - or 4,134 KB.
> 
> Has anyone faced a similar problem or can someone please 
> point out what I may be doing wrong.
> 
> Thanks,
> Amit
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Question

2002-09-18 Thread Turner, John


You'll need to provide a lot more information than that, and get a lot more
specific, before anyone can help you.

Platform, versions, what you've done so far, what you've changed, etc.

John

> -Original Message-
> From: Jai Durgam [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 6:30 PM
> To: [EMAIL PROTECTED]
> Subject: Question
> 
> 
> I can't seem to connect apache to tomcat inspite of the 
> include file in the httpd.conf file. I can get
> http://xxx.xxx.com:8080/nn/prm or something come up just fine 
> but I cannot seem to get
> http://xxx.xxx.com to come up. I have configured Document 
> Root in the httpd.conf file to point to .../nn/prm 
> Please help. 
> Thanks
> 
> Jai Durgam
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




ClassNotFoundException JMX related?

2002-09-18 Thread John Aronson

I'm trying to create an MBean from within a Servlet with Tomcat 4.1.10 and I keep 
getting a ClassNotFoundException. The class in question is in the classpath and it's 
visible from the Servlet trying make the createMBean call. I've tried putting the the 
jar which has the MBean .class file in these places:
  a.. webapps/webapp_name/web-inf/lib
  b.. shared/lib
  c.. common/lib
None of them worked. Creating this same MBean worked fine in Tomcat 4.0.x when I 
included the jmxri.jar in the webapp classpath.

Does anyone know how to modify the classpath used by the JMX component of Tomcat 4.1.x?

Here's the log entry showing the exception:
2002-09-17 17:33:23 agent: AgentServlet init()2002-09-17 17:33:24 agent: initalizing 
local server instance: mx4j.server.MBeanServerImpl@1a611722002-09-17 17:33:24 agent: 
OBJECT NAME: Adaptor:name=html,port=80832002-09-17 17:33:24 agent: OBJECT NAME: 
MBeanInfo:name=SimpleStandard2002-09-17 17:33:24 agent: MBean class: class 
org.jfa.example.SimpleStandard2002-09-17 17:33:24 agent:  !!! Could not create the 
HTML adaptor !!!2002-09-17 17:33:24 javax.management.ReflectionException: nested 
exception is java.lang.ClassNotFoundException: 
org.jfa.example.SimpleStandardjava.lang.ClassNotFoundException: 
org.jfa.example.SimpleStandard at 
mx4j.server.DefaultClassLoaderRepository.loadClassWithout(DefaultClassLoaderRepository.java:43)
 at 
mx4j.server.DefaultClassLoaderRepository.loadClass(DefaultClassLoaderRepository.java:26)
 at mx4j.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:464) at 
mx4j.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:456) at 
org.jfa.example.AgentServlet.doInit(Unknown Source) at 
org.jfa.example.AgentServlet.init(Unknown Source) at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924) at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3342) at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534) at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at 
org.apache.catalina.core.StandardService.start(StandardService.java:497) at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2191) at 
org.apache.catalina.startup.Catalina.start(Catalina.java:510) at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at 
org.apache.catalina.startup.Catalina.process(Catalina.java:180) at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:324) at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)




Un-tarring jakarta-tomcat-4.0.4.tar.gz

2002-09-18 Thread amit_mahajan

> Hi,
> 
> I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache 1.3.26. 
> 
> I have downloaded from the Tomcat site the file jakarta-tomcat-4.0.4.tar.gz which I 
>am trying to un-tar on the Solaris
> machine but I keep getting a checksum error each time I try. And though a lot of 
>folders are created, most of them 
> are emtpy without the files in them. I am running the following commands :
> 
> $gunzip  jakarta-tomcat-4.0.4.tar.gz
> $tar -xvf  jakarta-tomcat-4.0.4.tar
> 
> However, if I unzip on a Win 2K machine, I am able to get a complete expanded 
>directory. Also the size of the 
> downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB (4,241,667 bytes) - or 
>4,134 KB.
> 
> Has anyone faced a similar problem or can someone please point out what I may be 
>doing wrong.
> 
Please reply to [EMAIL PROTECTED] since I am not a member of this 
mailing list.

> Thanks,
> Amit

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DBCP on Tomcat 4.1: DBCP borrowObject failed: null

2002-09-18 Thread Matt Raible

I am trying to get DBCP working in my app on Tomcat 4.1.10.  I have had
success with Tyrex 0.9.7 on TC 4.0.4, but no luck with DBCP.  I am able
to establish a connection and it works for a few roundtrips to the
database, and then I get "DBCP borrowObject failed: null".  I tried
adding "removeAbandoned" as a parameter, and setting it to true, but I
get the same error.  Any ideas?

My server.xml relevant information is below.

Thanks,

Matt



  factory
 
org.apache.commons.dbcp.BasicDataSourceFactory




  maxActive
  100




  maxIdle
  30




  maxWait
  1




 username
 username


 password
 password




   driverClassName
   org.gjt.mm.mysql.Driver




  url
 
jdbc:mysql://localhost:3306/onpoint?autoReconnect=true





  



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




I get a HttpServlet not found error wth 4.1.10 under Win2000

2002-09-18 Thread Kenny A. Chaffin

This is probably some stupid config thing, but I installed 4.1.10 (I've got
4.0.4 running fine on various machines) and when I try to run the servlet
examples I get a:

root cause

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

exception error.

I've got TOMCAT_HOME and CATALINA_HOME both set to my base directory
(c:\tomcat41)

my jdk is 1.4

I tried adding jsdk.jar into the classpath, but that causes other errors on
startup before I can even access the examples.

What stupid thing am I doing wrong???

KAC

Kenny A. Chaffin
KAC Website Design - http://www.kacweb.com
Custom/Contract Programming, Graphics, Design
Poetry Page: http://www.kacweb.com/poems/



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Forward vrs redirect to a welcome-file

2002-09-18 Thread Aviv Eliezer

Hi!

when i specify a , and hit the root of a webapp, i'm automatically 
redirected to the
welcome file- ie, i see in the browser address bar "http://www.domain.com/index.jsp"; 
does anyone know how to make it so that tomcat will forward to the welcome-file, so in 
the browser
address bar it'll show "http://www.domain.com/"; ??
the last thing I want to do is to override the default servlet. please help!

thanks so much!

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Question

2002-09-18 Thread Jai Durgam

I can't seem to connect apache to tomcat inspite of the include file in the httpd.conf 
file. I can get
http://xxx.xxx.com:8080/nn/prm or something come up just fine but I cannot seem to get
http://xxx.xxx.com to come up. I have configured Document Root in the httpd.conf file 
to point to .../nn/prm 
Please help. 
Thanks

Jai Durgam


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Un-tarring jakarta-tomcat-4.0.4.tar.gz

2002-09-18 Thread amit_mahajan

Hi,

I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache 1.3.26. 

I have downloaded from the Tomcat site the file jakarta-tomcat-4.0.4.tar.gz which I am 
trying to un-tar on the Solaris
machine but I keep getting a checksum error each time I try. And though a lot of 
folders are created, most of them 
are emtpy without the files in them. I am running the following commands :

$gunzip  jakarta-tomcat-4.0.4.tar.gz
$tar -xvf  jakarta-tomcat-4.0.4.tar

However, if I unzip on a Win 2K machine, I am able to get a complete expanded 
directory. Also the size of the 
downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB (4,241,667 bytes) - or 
4,134 KB.

Has anyone faced a similar problem or can someone please point out what I may be doing 
wrong.

Thanks,
Amit

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.11

2002-09-18 Thread Craig R. McClanahan



On Wed, 18 Sep 2002, Fenlason, Josh wrote:

> Date: Wed, 18 Sep 2002 12:31:43 -0400
> From: "Fenlason, Josh" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.1.11
>
> Does anyone know how/where I can find the latest source for Tomcat
> 4.1.11?  Thanks in advance. , Josh.
>

It hasn't been tagged yet.  Just use the "latest and greatest" code from
the relevant Tomcat CVS repositories to get a preview of what will be
included.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 4.1.11

2002-09-18 Thread Fenlason, Josh

Does anyone know how/where I can find the latest source for Tomcat 4.1.11?  Thanks in 
advance.
,
Josh.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




mod_asis for Tomcat?

2002-09-18 Thread Curt Pederson

Hello,

I want to send files from Tomcat the same way mod_asis allows in Apache.  The file I 
want to send would contain the headers at the top, an empty line, then the contents.  
Is there a way to do this?

Thanks,
Curt

_
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com

_
Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by 
Everyone.net  http://www.everyone.net/?btn=tag

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




ISAPI Redirector SSL Question

2002-09-18 Thread Christopher Watson

Can anyone offer some advice

I am using - successfully - ISAPI redirector to serve JSP/servlet resources
through IIS

I would like some contexts to _require_ SSL (https) to be used, and leave
others free to use http.

I can see how to require _all_ contexts to use SSL by setting 'require
secure channel'
for the jakarta virtual directory under IIS. (And it works!)

But is there anyway I can achieve the same thing at a _context_ level
using workers.properties or uriworkermap.properties or the like?

Or will I have to test isSecure() at every page in the context that I want
the constraint applied to?

An idea I had was to have more than one 'jakarta' virtual directory, one
requiring SSL, the other not,
but then I'm guessing the ISAPI filter uses the same Registry entry,
so I couldn't specify a different extension_uri to get to it ??
Is this the right thinking?? Is there a way round this?

Any other general advice - except "don't use IIS" (I have no choice for this
project!) - would be welcome.

Christopher


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread achana

Hi again.
Forgot to add :
I have j2sdk1.4.0-01 installed as well.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread Turner, John


Not really...Apache doesn't care where the modules are, as long as it can
find them.  The convention is to put them in apache/libexec for Apache 1 and
apache/modules for Apache 2.

That mod_jk.so file should be OK.

I would still upgrade your Apache, though.  .19 is pretty old.

John


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 10:03 PM
> To: Tomcat Users List
> Subject: Re: missing tomcat-apache.conf & mod_jk.conf-auto
> 
> 
> 
> > Apache 1.3.x uses the APACHE_HOME/libexec directory for DSO modules.
> > There's no way to know if you have the correct version 
> unless you tell us
> > where you got it.
> Hi John, I got mod_jk-01.so from here :
> http://jakarta.apache.or/builds/jakarta-tomcat-4.0/archives/v4
> .0.3/bin/linux/i386/mod_jk-01.so
> Also : there is no equivalent to APACHE_HOME/libexec on the standard
> out-of-the-box installation for RH7.1 - I guess I have to bite the
> bullet and install a new Apache ???
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: missing tomcat-apache.conf & mod_jk.conf-auto

2002-09-18 Thread achana


> Apache 1.3.x uses the APACHE_HOME/libexec directory for DSO modules.
> There's no way to know if you have the correct version unless you tell us
> where you got it.
Hi John, I got mod_jk-01.so from here :
http://jakarta.apache.or/builds/jakarta-tomcat-4.0/archives/v4.0.3/bin/linux/i386/mod_jk-01.so
Also : there is no equivalent to APACHE_HOME/libexec on the standard
out-of-the-box installation for RH7.1 - I guess I have to bite the
bullet and install a new Apache ???

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat on AS/400 (iSeries)

2002-09-18 Thread Henri Gomez

http://eservercomputing.com/iseries/archives/index.asp?a=1&id=67

It cover the current Tomcat (3.2.4), available on iSeries but
the wizard should be seen.

Regards


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problems in deploying my WAR in tomcat 4.1.10

2002-09-18 Thread Takumi Fujiwara


I am getting the following error when I deploy my WAR
file in tomcat 4.1.10.
type Status report

message /pir3Servlet/logging

description The requested resource
(/pir3Servlet/logging) is not available.

I setup the servlet name/url pattern correctly in my
web.xml file and seup the correct context in my
server.xml file. Could someone please tell me how to
fix this?

thanks a lot.

My web.xml file:

  
ContextListener
  


MainServletName
MainServlet 

   
 
   
LoggingServletName
LoggingServlet 


   
MainServletName

/main

 
   

   
LoggingServletName

/logging


   
 


And I add this to my server.xml








__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: RunTimeException Read of HTTP Request POST parameters failed...

2002-09-18 Thread Dennis Muhlestein

To add information, I am using tomcat 4.1.10.  We use mod_jk ajp13 with
apache.  I searched through the archives a bit and found references to
possible bugs and possible solutions but no-one seemed to post a
solution.  Any suggestions?

-Dennis


On Wed, 2002-09-18 at 09:51, Dennis Muhlestein wrote:
> Anyone have any idea why this happens.  It only happens occasionally. 
> It always happens when I call request.getParameter ( ... );  It happens
> on a form POST but not always the same one.  
> 
> Any input appreciated.
> -Dennis
> 
> 
> java.lang.RuntimeException: Read of HTTP Request POST parameters failed:
> read < content length
> at
> 
>org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.java:68 
>   at 
>org.apache.catalina.connector.HttpRequestBase.getParameter(HttpRequestBase.java:718)
> at
> org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:171)
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >