Re: tomcat 4.0.4 and oracle

2002-09-19 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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


  





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




Re: sym link problems with tomcat 4.1

2002-09-19 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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




New to Tomcat 4.1.10

2002-09-19 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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




java - more than 80MB RAM

2002-09-19 Thread info . stephan

Hello,

how can I convice java to take more than 80 MB of RAM? I do have a 1GB RAM
machine but I have no chance. 
Using these parameters -Xms384m -Xmx384m in the startup batches (WinNT) does
not change anything.

Thank you for your help

Stephan from Germany

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




AW: java - more than 80MB RAM

2002-09-19 Thread Ralph Einfeldt

That should be enough, if the parameter get passed to the vm.

Which tomcat version do you use ?
How do you set the parameters ? (Which variable do you use to set them ?)
Which JDK do you use (vendor and version) ?
How did you verify this ? (the best way is through Runtime.getTotalMemory())

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 19. September 2002 09:39
 An: [EMAIL PROTECTED]
 Betreff: java - more than 80MB RAM
 
 how can I convice java to take more than 80 MB of RAM? I do 
 have a 1GB RAM machine but I have no chance. 
 Using these parameters -Xms384m -Xmx384m in the startup 
 batches (WinNT) does not change anything.
 

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




RE: java - more than 80MB RAM

2002-09-19 Thread Jeroen Breedveld

 | -Original Message-
 | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 | Sent: donderdag 19 september 2002 9:39
 | To: [EMAIL PROTECTED]
 | Subject: java - more than 80MB RAM
 | 
 | 
 | Hello,
 | 
 | how can I convice java to take more than 80 MB of RAM? I do 
 | have a 1GB RAM
 | machine but I have no chance. 
 | Using these parameters -Xms384m -Xmx384m in the startup 

hi,

try this: -Xms384M -Xmx384M (note: capital M)

I believe that's it.

greetings,

jeroen


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




RE: Apache2 and Tomcat4 on different boxes

2002-09-19 Thread Vincent . Gaboriau

Sorry I look at your config files, but I see nothing bad (as you I think
;-) )

In your mod_jk logs, we can see that the ajp13 worker is not found first
then it's running and found by Apache. And then, it's closed during request
processing.
That's a strange beaviours.

You run this configuration :
Apache/2.0.39 (Unix)
mod_ssl/2.0.39
OpenSSL/0.9.6g
mod_jk/1.2.0

What have you compile by your self?
If I were you, I will recompile Apache 2.0.39 (You can change to 2.0.40)
without mod_ssl, mod_jk 1.2.0 and Tomcat 4.0.4 on your machine, because
it'is so strange...
Try to restart your test in a clean environement. Save your config files,
they seem to me not bad.
Try to do a working configuration without mod_ssl.

That's poor help... Sorry. But at this step, I don't see anything.

-Message d'origine-
De : Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoy? : mercredi 18 septembre 2002 22:12
? : [EMAIL PROTECTED]
Objet : RE: Apache2 and Tomcat4 on different boxes


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 

RE: RE: java - more than 80MB RAM

2002-09-19 Thread info . stephan

hi,

try this: -Xms384M -Xmx384M (note: capital M)

I believe that's it.

greetings,

jeroen

Thank you very much! Sometimes its so easy. But with the jbuilder it also
works with the small m.

Stephan

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




Re: TOMCAT + COCOON

2002-09-19 Thread Chuck Amadi

Mauro Daniel Ardolino wrote:

Hello!
It may be out of topic but I think some of you are working with cocoon.

I am trying to install cocoon under tomcat under windows98.
I followed the simple instructions of cocoon: just put the war file on
webapps and restart Tomcat, then navigate: http://localhost:8080/cocoon
I get this error:
 4.0.4 - HTTP Status 404 - /cocoon
The requested resource (/cocoon) is not available 

What I am doing wrong?

Thanks in advance.

Mauro

Hi mate best try the Cocoon user mailing list this apparently is a great 
source of advice from a thriving community of users I'll be joining 
shortly I'm afraid I'm new to Cocoon 2 I've installed on my Linux Box to 
service Xindice native XML Database within Tomcat v4 So I'm unable to 
shed any light other than the obvious that it can't locate Cocoon

See u in the Mailing Group

-- 
Regards 
Chuck Amadi
ICT Dept Systems Programmer
Rhaglenydd Systemau Adran ICT





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




Problem compiling mod_webapps.

2002-09-19 Thread MORAILLON Antoine

Hi list,

I try to compile mod_webapp for my apache-tomcat server (apache 1.3
/ tomcat 4.0.4).
I use apr-0.9.1 (I have no choice)
when I run ./configure, it says that APRVARS is missing. I read the
APR readme file and it says that APRVARS is not use anymore and apps should
use apr-config.
I tried to ln -s apr-config APRVARS but everything falls in a
heap...

Does anybody ever compiled mod_webapps ? does someone have a good
URL on how to build mod_webapp ?
Shall I try to run apache-tomcat with jk ?

Thanks for you advises.

Sincerly

Antoine



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

2002-09-19 Thread Oliver . Lauer


I don't speek C and I don't know how to build mod_jk2.dll - sorry.
--

Oliver Lauer
Stadtsparkasse Köln
512 / BK / Anwendungsentwicklung
Telefon: (0221) 226 - 5562
Fax: (0221) 226 - 5100
mailto:[EMAIL PROTECTED]
http://www.sk-koeln.de

Milt Epstein [EMAIL PROTECTED] schrieb am 19.09.2002 04:35:04:

 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:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


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:
  mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
   
   
  
   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:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  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 

how do I find out whether I am called by servername or by ip

2002-09-19 Thread Jan Kester

Hello

I am using Tomcat 3.3. I am communicating with an external server and pass
this server a return-redirect-URL so that the end of the process, the
external server returns a page to the user that automatically redirects to
my server. From here on the user should continue with the session as he had
it before. Session is maintained in cookie and to make use of the same
cookie it is important that the URL has exactly the same form
protocol://host.domain:port/context as before. So for instance a second call
to port 80 explicitly and a first to port 80 implied already generates
different cookies, thus loosing sessions. A same problem happens with first
calling my server by IP, and then call my server by servername. The cookies
are different so I loose my session. So at the moment of generating my
return-redirect-URL I need to know exactly where I am. How do I know whether
my URL has been called by servername or by ip?
I tried HttpUtils.getURLRequest but that always returns servername. I tried
to look at the session cookie getDomain(), but that returns null. I see no
way to find out whether I was called by IP or by servername ...
Anyone knows how to do the trick?

Regards, Jan

Jan Kester
Marlborough Stirling España, S.L. Director de Informática
Gran Vía 62, 10º izq
28013 Madrid
tel: +34-91-5487910
fax: +34-91-5400199
email: [EMAIL PROTECTED]


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




Re: New to Tomcat 4.1.10

2002-09-19 Thread Robert L Sowders

There are some problems with TC 4.1.10 right now.  If you intend to 
install precompiled binaries you might want to wait for 4.1.11.  If yo 
intend to build then get your sources from CVS as some of the fixes are 
already there.

It really depends on your OS but here's a list that should get you 
started.

First try the search at http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ or 
Google.

Here is mine for windows using all the latest of each. 
ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.10_JSDK1.4.zip

Here's another for windows using the production quality versions. 
http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html

Here's another for windows using older production quality versions. 
http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml

Here's another for windows and Linux using older versions, and mod_webapp. 
 http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/index.html

Here's one for an unspecified unix using production quality versions. 
http://www.pubbitch.org/jboss/mod_jk2.html

Here is one using older versions on Linux. 
http://www.ubeans.com/tomcat/index.html

Here's a nice one for RH Linux using solid production versions. 
http://www.johnturner.com/howto/apache-tomcat-howto.html

rls





Jean-Baptiste Onofré [EMAIL PROTECTED]
Sent by: Jean-Baptiste Onofré (Nanthrax) [EMAIL PROTECTED]
09/19/2002 12:31 AM
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:New to Tomcat 4.1.10

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





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




RE: Job Openings

2002-09-19 Thread Andy Eastham

Looks like a company that would employ Java professionals to me.  Clearly
synergy.com. is not a recruitment consultant.

I'm sure there are plenty of people on this list at the moment that
appreciate the fact that someone is recruiting people with core, serverside
Java, JSP, XML and XSL.

I agree it's not spot on topic, but it seems pretty genuine to me.  Give the
guy a break.

Andy

 -Original Message-
 From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
 Sent: 18 September 2002 16:04
 To: Tomcat Users List
 Subject: Re: Job Openings


 Do you REALLY have jobs or are you just collecting resumes?
 - Original Message -
 From: Pooleery, Manoj [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, September 18, 2002 10:21 AM
 Subject: Job Openings


  Hi,
 
  My company is looking for experienced Java professionals with
 3-4 years of
  experience.  Experience in core, serverside Java, JSP, XML and XSL is a
  must.
 
  If you are interested, please send your resume to [EMAIL PROTECTED]
 
  Thanks
  Manoj.
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 18, 2002 11:03 AM
  To: Tomcat Users List
  Subject: RE: Redirect not working
 
 
 
  I'm quite sure: in one case I explicitly do a
 sendRedirect(newurl) from
  within a servlet.
  Furthermore, the response code is 302, which is a temporary redirection.
 
 
 
 
 
 
  Jonathan Soons [EMAIL PROTECTED] on 18/09/2002 15.45.03
 
  Please respond to Tomcat Users List [EMAIL PROTECTED]
 
  To:Tomcat Users List [EMAIL PROTECTED]
  cc:
 
  Subject:RE: Redirect not working
 
 
  Are you sure that is a Redirect? Redirect requires  /path  -  URL.
  Yours looks like an Alias.
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 18, 2002 7:12 AM
  To: [EMAIL PROTECTED]
  Subject: Redirect not working
 
 
  Hi all.
  My configuration is: Apache 2.0.35 and Tomcat 4.0.3 (or 4.0.4, same
  behaviour), with mod_webapp and warp connector. Solaris 8, jdk 1.4.0.
  If I deploy examples webapp and access it through Tomcat's standalone
  listener (port 8080) everything works ok.
  When I access it through Apache, it works well until I find some kind of
  redirection (ie /examples/ - /examples/index.html), then I get a page
 with
  the message:
  Apache Tomcat/4.0.3 -HTTP Status 302 - Moved Temporarily
  but redirection is NOT followed by the browser (I've tried various
 versions
  of IE, Netscape, Mozilla...).
  If I try to connect using telnet, the response with port 8080 is:
  HTTP/1.1 302 Moved Temporarily
  while through Apache is:
  HTTP/1.1 Moved Temporarily
  Nevertheless, in access.log of Apache the status code for my request is
  correctly set to 302.
  Same behaviour if I do a sendRedirect from within a servlet or jsp,
  redirecting to another servlet (no static content at all).
 
  Can anybody help me?
 
  TIA, Carlo
 
 
 
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 Carlo Montanari
 Sysadm
 Unix office
 T-Systems Italia
 debis IT Services Italia S.p.A.
 Via degli Ontani, 25
 36100 - Vicenza
 Phone: +39 0444 558355
 Fax: +39 0444 558352
 Mobile: +39 348 4530249
 e-mail: [EMAIL PROTECTED]
 Internet: http://www.t-systems.it
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


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





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




Re: how do I find out whether I am called by servername or by ip

2002-09-19 Thread Ben Walding

request.getHeader(host) should tell you what the user's browser called 
you.


Jan Kester wrote:

Hello

I am using Tomcat 3.3. I am communicating with an external server and pass
this server a return-redirect-URL so that the end of the process, the
external server returns a page to the user that automatically redirects to
my server. From here on the user should continue with the session as he had
it before. Session is maintained in cookie and to make use of the same
cookie it is important that the URL has exactly the same form
protocol://host.domain:port/context as before. So for instance a second call
to port 80 explicitly and a first to port 80 implied already generates
different cookies, thus loosing sessions. A same problem happens with first
calling my server by IP, and then call my server by servername. The cookies
are different so I loose my session. So at the moment of generating my
return-redirect-URL I need to know exactly where I am. How do I know whether
my URL has been called by servername or by ip?
I tried HttpUtils.getURLRequest but that always returns servername. I tried
to look at the session cookie getDomain(), but that returns null. I see no
way to find out whether I was called by IP or by servername ...
Anyone knows how to do the trick?

Regards, Jan

Jan Kester
Marlborough Stirling España, S.L. Director de Informática
Gran Vía 62, 10º izq
28013 Madrid
tel: +34-91-5487910
fax: +34-91-5400199
email: [EMAIL PROTECTED]


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


  





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




Re: New to Tomcat 4.1.10

2002-09-19 Thread Jean-Baptiste Onofré

Thanks for your answer, wait for new binaries :)
-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Bug in Alias tag in server.xml

2002-09-19 Thread Donie Kelly









Hi all



I want to use an alias in the host section
of server.xml but if I use the alias Aliaso2/Alias it returns
400 Bad request when I try to access it using that hostanme. If I change it to Aliasotwo/Alias
it works fine. 



Is it a bug that Tomcat is complaining about
the numeric bit? Its a valid hostname? Right?



Thanks

Donie









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


RE: Problem compiling mod_webapps.

2002-09-19 Thread Felix Schumacher

I have looked into my APRVARS-file. It is a listing of variables.
You can fill in your values with apr-config:

CC=gcc
CPP=gcc -E
SHELL=/bin/sh
EXTRA_CPPFLAGS=-DLINUX=2 -D_REENTRANT
EXTRA_CFLAGS=-g -O2
EXTRA_LDFLAGS=
EXTRA_LIBS=-lm -lcrypt -lnsl  -ldl
EXTRA_INCLUDES=
LIBTOOL_LIBS=
SHLIBPATH_VAR=LD_LIBRARY_PATH
APR_SOURCE_DIR=/root/jakarta-tomcat-connectors-4.0.4-src/webapp/apr
APR_SO_EXT=lo
APR_LIB_TARGET=-rpath \$(libdir) \$\$objects


-- Original Nachricht --

Hi list,

   I try to compile mod_webapp for my apache-tomcat server (apache 1.3
/ tomcat 4.0.4).
   I use apr-0.9.1 (I have no choice)
   when I run ./configure, it says that APRVARS is missing. I read the
APR readme file and it says that APRVARS is not use anymore and apps should
use apr-config.
   I tried to ln -s apr-config APRVARS but everything falls in a
heap...

   Does anybody ever compiled mod_webapps ? does someone have a good
URL on how to build mod_webapp ?
   Shall I try to run apache-tomcat with jk ?

Thanks for you advises.

Sincerly

Antoine









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



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




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

2002-09-19 Thread Bill Barker

If you enable the Ajp12Interceptor in server.xml, then mod_jserv should work
normally (after setting the port attribute if necessary).

You'll have to set the ApjServManual flag, since no release version of
Tomcat currently supports starting the JVM from Apache (but it is under
development in the Jk2 connector).

Sorry that I can't be more specific, but I haven't used mod_jserv for a long
time.

Turner, John [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 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:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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

Re: wishlist: config improvement

2002-09-19 Thread Bill Barker


Jeff da Goofrider [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 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.


Patches are always welcome. :-)

 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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat4.0.3 - What is written in these log files ?

2002-09-19 Thread Santosh Kulkarni

In Tomcat4.0.3, there are these log files created.
1) catalina_log
2) localhost_access_log
3) localhost_log
4) apache_log
It wud be great if someone can return me a description
of a line or two for each of these log files. I
searched in Apache site, but cudn't get more
information on this.
TIA
Santosh

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Tomcat 4.0.4 Verisign SSL

2002-09-19 Thread ISMAIL OZGUR BAYKAL (Ebi Bsk.- Analist Prg.)

Hello,
I'm trying to install and configure SSL support on Tomcat 4 (exactly 4.0.4).
I'm running JDK 1.4; which the JSSE package classes have been integrated
into. 

I'd like to know:
- How to create a Verisign certificate request with Tomcat?
- How to integrate an SSL module (preferably an OpenSSL or ModSSL compatible
one, which is supported by Verisign) to Tomcat? 

Thanks and regards,
Ismail

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




RE: Problem compiling mod_webapps.

2002-09-19 Thread MORAILLON Antoine

I tried to create an ARPVERS file with this arguments. It now configure
correctly but then it crashes at the make time.

I tried to use the APR distributed in the httpd2 tar file and I could
compiled. I'll try to install it on my server tonight.

I'll let you know if it worked.

Antoine

-Message d'origine-
De : Felix Schumacher [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 19 septembre 2002 12:17
À : Tomcat Users List
Objet : RE: Problem compiling mod_webapps.


I have looked into my APRVARS-file. It is a listing of variables.
You can fill in your values with apr-config:

CC=gcc
CPP=gcc -E
SHELL=/bin/sh
EXTRA_CPPFLAGS=-DLINUX=2 -D_REENTRANT
EXTRA_CFLAGS=-g -O2
EXTRA_LDFLAGS=
EXTRA_LIBS=-lm -lcrypt -lnsl  -ldl
EXTRA_INCLUDES=
LIBTOOL_LIBS=
SHLIBPATH_VAR=LD_LIBRARY_PATH
APR_SOURCE_DIR=/root/jakarta-tomcat-connectors-4.0.4-src/webapp/apr
APR_SO_EXT=lo
APR_LIB_TARGET=-rpath \$(libdir) \$\$objects


-- Original Nachricht --

Hi list,

   I try to compile mod_webapp for my apache-tomcat server (apache 1.3
/ tomcat 4.0.4).
   I use apr-0.9.1 (I have no choice)
   when I run ./configure, it says that APRVARS is missing. I read the
APR readme file and it says that APRVARS is not use anymore and apps should
use apr-config.
   I tried to ln -s apr-config APRVARS but everything falls in a
heap...

   Does anybody ever compiled mod_webapps ? does someone have a good
URL on how to build mod_webapp ?
   Shall I try to run apache-tomcat with jk ?

Thanks for you advises.

Sincerly

Antoine









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



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



RE: Virtual Hosting and Contexts

2002-09-19 Thread Anthony Milbourne

Hi

I have been trying to get Tomcat Contexts mapped to the root of an Apache
VirtualHost.  I did what you did too (under instruction from this list), and
used:
Context path= ... /
Which successfully mapped the context to the root of the VirtualHost if I
connected direct to Tomcat.  It didn't seem to work for connections via
Apache though.  I then discovered that the auto-generated config file for
mod_jk didn't have any mappings for my root context.  If I changed the path
to a non empty string then mappings were generated.  This seems to be a bug
but I may have just done something wrong.

The way I got round it was to use a non-empty path in order to get Tomcat to
generate some mappings.  Then I cut and pasted those mappings into
httpd.conf and edited them to what I wanted.  It is a cludge but it is
working as far as I can see.

I hope that helps,

Anthony.

 -Original Message-
 From: Brian Topping [SMTP:[EMAIL PROTECTED]]
 Sent: 17 September 2002 15:03
 To:   Tomcat Users List (E-mail)
 Subject:  Virtual Hosting and Contexts
 
 Good day,
 
 I'm rather new to setting up vhosting on Tomcat, but am quite familiar
 with
 it on Apache.  I am having some problems understanding the correct
 configuration to set up a root context on each apache virtual host, and
 was
 hoping someone here might be able to offer some pointers.
 
 Basically, I would like to have a different Tomcat context mapped to the
 root
 of each Apache VirtualHost/.  I am able to map a context with a
 different
 name to each site, in other words, one url http://a.foo.com/a-context/ and
 another http://b.foo.com/b-context, but not simply http://a.foo.com where
 the
 root goes to a-context and http://b.foo.com where the root goes to
 b-context.
 Httpd and Tomcat are on separate machines, for development httpd is on
 SuSE
 and Tomcat is on W2K, for deployment both with be on SuSE.
 
 I've taken a look at the autoconfiguration stuff, but it's leaving me lost
 in
 the weeds, and I don't mind maintaining the stuff manually anyway, so if
 you
 could, please help me focus on that.  I'm using httpd 1.3.36 with Tomcat
 4.0.4 and the mod_jk 4.0.4 connectors under DSO with EAPI.  
 
 Of course what I have below isn't working.  Can someone help me understand
 what I am missing?  My problem is in the context mapping stuff, otherwise
 all
 the connectors are confirmed to be working.
 
 Thanks a million for your consideration!!
 
 Brian
 
 #=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
 
 Server
   Service name=JBoss-Tomcat
   Engine name=MainEngine defaultHost=a.digidemic.com
   Logger
 className=org.jboss.web.catalina.Log4jLogger verbosityLevel=trace
 category=org.jboss.web.localhost.Engine/
   Host name=a.digidemic.com
   Valve
 className=org.apache.catalina.valves.AccessLogValve
 prefix=localhost_access suffix=.log pattern=common
 directory=../server/default/log/
   Context path=
 docBase=C:/dev/jboss-3.0.1_tomcat-4.0.4/server/default/deploy/root.war
 debug=0/
   /Host
   Host name=b.digidemic.com
   Valve
 className=org.apache.catalina.valves.AccessLogValve
 prefix=localhost_access suffix=.log pattern=common
 directory=../server/default/log/
   Context path=
 docBase=C:/dev/jboss-3.0.1_tomcat-4.0.4/server/default/deploy/jmx-console
 .wa
 r debug=0/
   /Host
   /Engine
   !-- A HTTP Connector on port 8080 --
   Connector
 className=org.apache.catalina.connector.http.HttpConnector port=80
 minProcessors=3 maxProcessors=10 enableLookups=true acceptCount=10
 debug=5 connectionTimeout=6/
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=11009 minProcessors=5 maxProcessors=75 acceptCount=10/
   /Service
 /Server
 
 #=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
 
 VirtualHost a.digidemic.com
 DocumentRoot /usr/local/httpd/htdocs/a.digidemic.com
 ServerName a.digidemic.com
 Alias /dav /usr/local/httpd/htdocs/a.digidemic.com
 Location /dav
 DAV On
 Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK
 UNLOCK
 AuthUserFile /usr/local/httpd/htdocs/users
 AuthType Basic
 AuthName WebDAV
 Require user topping
 /Limit
 /Location
 JkMount /* tomcat1
 /VirtualHost
 
 VirtualHost b.digidemic.com
 DocumentRoot /usr/local/httpd/htdocs/b.digidemic.com
 ServerName b.digidemic.com
 Alias /dav /usr/local/httpd/htdocs/b.digidemic.com
 Location /dav
 DAV On
 Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK
 UNLOCK
 AuthUserFile /usr/local/httpd/htdocs/users
 AuthType Basic
 AuthName 

ISAPI Redirector SSL Help Please

2002-09-19 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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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

2002-09-19 Thread Turner, John


Mod_jk is an Apache module.  It goes on the machine that has Apache, in a
place that Apache has permission to access.

You don't need ant to install mod_jk.  Ant is just one of two options for
building mod_jk.  You can also use the traditional ./configure method to
build mod_jk.

You also don't need Apache 2.0.40.  Apache 1.3.26 is fine, and is the same
codebase as your existing version.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 5:34 AM
 To: Tomcat Users List
 Subject: Re: [OFF-TOPIC] RE: John: missing tomcat-apache.conf 
 mod_jk.conf-auto
 
 
 snip
  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:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




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

2002-09-19 Thread Turner, John


Well said.

John


 -Original Message-
 From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 12:52 AM
 To: Tomcat Users List
 Subject: Re: DESPAIR : missing tomcat-apache.conf  mod_jk.conf-auto
 
 
 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:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





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

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




RE: Bug in Alias tag in server.xml

2002-09-19 Thread Turner, John


Yes, it's a valid hostname.

John

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 6:09 AM
To: 'Tomcat Users List'
Subject: Bug in Alias tag in server.xml


 
Hi all
 
I want to use an alias in the host section of server.xml but if I use the
alias Aliaso2/Alias it returns 400 Bad request when I try to access it
using that hostanme. If I change it to Aliasotwo/Alias it works fine. 
 
Is it a bug that Tomcat is complaining about the numeric bit? It's a valid
hostname? Right?
 
Thanks
Donie
 

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




Regarding Resources across contexts

2002-09-19 Thread shanmugampl

Dear All,

I am using Tomcat 4.1.10. I am in the process of developing jsp 
pages using custom tags. For this i have copied the required jars into 
my application context and put the tld files in the META-INF directory. 
Everything works fine. Similar to this application I have other 
applications that use the same custom tags. The problem here is i have 
to duplicate the tld files and the jar files in all my applications. I 
have moved the jar files to the Tomcat_home/common/lib/ directory to 
avoid duplication. Is there a way by which i can have my tld files at a 
common place and access it across my context/application?. Can i have my 
tld files in one of the context and give the corresponding mapping in 
the web.xml file present in the Tomcat_Home/conf/web.xml and use this 
mapping across all contexts?. If yes can any one suggest the way to 
achieve it.

Thanks
Shanmugam.PL




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




RE: wishlist: config improvement

2002-09-19 Thread Turner, John


To each, his own.  I don't have any environment variables hardcoded in
config files...I'm not sure why you would need to do this.

IMHO, the default server.xml file has so many comments in it, it's difficult
to clearly see what is enabled and what isn't...I can't imagine a server.xml
with MORE comments in it...I would think that would be terribly cumbersome.
The first thing I do now in server.xml is rip all the comments out after
saving a copy of the original.

And, as someone else said, patches are always welcome. :)

John

 -Original Message-
 From: Jeff da Goofrider [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 5:43 PM
 To: [EMAIL PROTECTED]
 Subject: wishlist: config improvement
 
 
 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:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Apache+Tomcat Error (No Context configured)

2002-09-19 Thread Turner, John


OK, this is the last time I am going to reply.  

First, let me respectfully suggest (again) that you read the documentation
available.

Second, do you have an appBase parameter in your Host element?  You cannot
use a docBase of kithany, which is a relative path, without a
corresponding appBase parameter in your Host element.  This is CLEARLY
stated in the Tomcat 4.0.x documentation.

John

 -Original Message-
 From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 4:47 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Apache+Tomcat Error (No Context configured)
 
 
 Hi Experts,
 
 With reference to John's last email, I created the CONTEXT in 
 SERVER.XML 
 file and added a following CONTEXT:
 Context path=/kithany docBase=kithany debug=0 /
 
 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:
 --
 ---
 ?xml version=1.0 encoding=ISO-8859-1?
 application
 display-nameKITHANY/display-name
 module
 web
 web-urikithany.war/web-uri
 context-root/kithany/context-root
 /web
 /module
 /application
 --
 ---
 
 And, my WEB.XML file is as:
 --
 ---
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 session-config
 session-timeout
 30
 /session-timeout
 /session-config
 welcome-file-list
 welcome-file
 index.jsp
 /welcome-file
 welcome-file
 index.html
 /welcome-file
 welcome-file
 index.htm
 /welcome-file
 /welcome-file-list
 /web-app
 --
 ---
 
 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:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: libtoolize automake autoconf

2002-09-19 Thread Turner, John


http://www.gnu.org

As an aside, is there any reason you haven't just tried one of the 7.2
binaries I have on my site? 

http://www.johnturner.com/howto

John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 3:09 AM
 To: [EMAIL PROTECTED]
 Subject: libtoolize  automake  autoconf
 
 
 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:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Enquiry

2002-09-19 Thread Turner, John


Yes.  Just change the name parameter of the Host element.  Whether the
hostname you change it to actually resolves and works is another issue
altogether, and something for your network admins and/or DNS administrator.

John


 -Original Message-
 From: Lee Jesse [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 12:32 AM
 To: [EMAIL PROTECTED]
 Subject: Enquiry
 
 
 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?
 
 Thank you.
 
 
 Regards,
 Jesse Lee
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: TOMCAT + COCOON

2002-09-19 Thread Chuck Amadi

Mauro Daniel Ardolino wrote:

Hello!
It may be out of topic but I think some of you are working with cocoon.

I am trying to install cocoon under tomcat under windows98.
I followed the simple instructions of cocoon: just put the war file on
webapps and restart Tomcat, then navigate: http://localhost:8080/cocoon
I get this error:
 4.0.4 - HTTP Status 404 - /cocoon
The requested resource (/cocoon) is not available 

What I am doing wrong?

Thanks in advance.

Mauro

Hi again Plz try your ipAddress instead of localhost(127.0.0.1) . Wortha 
try make sure you have mapped all localhost to ipAddress (Ensure you 
create a comments about the changes you.ve made first !!!   !-- == 
Changed localhost to 172.**.**.** on 19/09/02  === -- 

-- 
Regards 
Chuck Amadi
ICT Dept Systems Programmer
Rhaglenydd Systemau Adran ICT





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




RE: Tomcat 4.0.4 Verisign SSL

2002-09-19 Thread Turner, John


Use the keytool command.  Check the -certreq option.  

John

 -Original Message-
 From: ISMAIL OZGUR BAYKAL (Ebi Bsk.- Analist Prg.)
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 6:51 AM
 To: Tomcat Users List
 Subject: Tomcat 4.0.4  Verisign SSL
 
 
 Hello,
 I'm trying to install and configure SSL support on Tomcat 4 
 (exactly 4.0.4).
 I'm running JDK 1.4; which the JSSE package classes have been 
 integrated
 into. 
 
 I'd like to know:
 - How to create a Verisign certificate request with Tomcat?
 - How to integrate an SSL module (preferably an OpenSSL or 
 ModSSL compatible
 one, which is supported by Verisign) to Tomcat? 
 
 Thanks and regards,
 Ismail
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Static content

2002-09-19 Thread Turner, John


I would add that you need 

forwardAll=false

in your Listener configuration in server.xml.  The default is true, and if
true, ALL requests get passed to Tomcat.

John


 -Original Message-
 From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 7:02 PM
 To: Tomcat Users List
 Subject: Re: Static content
 
 
 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 tomcat_home/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:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





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

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




RE: Problems connecting Tomcat with Apache using ajp13

2002-09-19 Thread Turner, John


I would remove the load-balancing lines from workers.properties.  Here is a
plain-vanilla, working workers.properties file:

# Setup for apache system
#
workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
workers.java_home=/usr/java/j2sdk1.4.0_01
ps=/
worker.list=ajp12, ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

John

 -Original Message-
 From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 8:22 PM
 To: Tomcat Users List
 Subject: Problems connecting Tomcat with Apache using ajp13
 
 
 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):
 

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




RE: wishlist: config improvement

2002-09-19 Thread Shapira, Yoav

Hi,
I couldn't agree with more with Mr. Turner.  I share his sentiments
exactly ;)  

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 8:03 AM
To: 'Tomcat Users List'
Subject: RE: wishlist: config improvement


To each, his own.  I don't have any environment variables hardcoded in
config files...I'm not sure why you would need to do this.

IMHO, the default server.xml file has so many comments in it, it's
difficult
to clearly see what is enabled and what isn't...I can't imagine a
server.xml
with MORE comments in it...I would think that would be terribly
cumbersome.
The first thing I do now in server.xml is rip all the comments out
after
saving a copy of the original.

And, as someone else said, patches are always welcome. :)

John

 -Original Message-
 From: Jeff da Goofrider [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 5:43 PM
 To: [EMAIL PROTECTED]
 Subject: wishlist: config improvement


 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:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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



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



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


How to block listings on a SPECIFIC directory

2002-09-19 Thread adi

Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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




url patterns

2002-09-19 Thread adi

Hello,

Does anybody know the valid url patterns for servlet mappings?

is there a pattern for all subdirectories of a certain directory?

something like: 
 servlet-mapping
servlet-namedefault1/servlet-name
url-pattern/admin/**//url-pattern
  /servlet-mapping

Thanks,
Adi
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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




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

2002-09-19 Thread Allan Kamau

You may need to set this variables in either
/etc/profile or /etc/rc.local I prefer using the
/etc/profile file you may set the $CATALINA_HOME like
so
code
set $CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.4
export $CATALINA_HOME
/code


--- Kenny G. Dubuisson, Jr. [EMAIL PROTECTED]
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
 
 - 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:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Re: How to block listings on a SPECIFIC directory

2002-09-19 Thread Tim Funk

Nope  - but you can write a filter to detect that condition and deny 
access as desired.

adi wrote:
 Hello,
 
 I am trying to enable listing on one directory ( and its children)
 only.
 the listings parameter set to false or true will affect everything.
 is it possible in any way to define listings to individual directories in
 my webapp?
 
 Adi
 
  


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




RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread adi

what do you mean by writing a filter?
In java?
Entry in web.xml ?

can you please reference me to some reading on 'filters' ?

Thanks,
Adi


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 1:53 PM
To: Tomcat Users List
Subject: Re: How to block listings on a SPECIFIC directory


Nope  - but you can write a filter to detect that condition and deny
access as desired.

adi wrote:
 Hello,

 I am trying to enable listing on one directory ( and its children)
 only.
 the listings parameter set to false or true will affect everything.
 is it possible in any way to define listings to individual directories
in
 my webapp?

 Adi




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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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




Re: How to block listings on a SPECIFIC directory

2002-09-19 Thread Tim Funk

More info:
http://www.google.com/search?hl=enlr=ie=UTF-8oe=UTF-8q=servlet+filter

The definitive reference:
Java Servlet Specification 2.3 (at java.sun.com)
Chapter 6: Filters


adi wrote:
 what do you mean by writing a filter?
 In java?
 Entry in web.xml ?
 
 can you please reference me to some reading on 'filters' ?
 
 Thanks,
 Adi
 
 
 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 1:53 PM
 To: Tomcat Users List
 Subject: Re: How to block listings on a SPECIFIC directory
 
 
 Nope  - but you can write a filter to detect that condition and deny
 access as desired.
 
 adi wrote:
 
Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories
 
 in
 
my webapp?

Adi


 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


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




web.xml

2002-09-19 Thread Lindomar

Hi everyone!
I have a problem with mapping to my servlets.
I have this structure in tomcat 4.1
myapp
|_WEB-INF
|_classes
|_subdir1
|_subdir2
|_ myServlet.class

I want to mapping this servlet this way: http://localhost:8080/myapp/oneid

I placed this code in web.xml on my app.
***
...
 servlet
  servlet-namemyservlet/servlet-name 
  servlet-classsubdir1.subdir2.myServlet/servlet-class 
  /servlet
 servlet-mapping
  servlet-namemyservlet/servlet-name 
  url-pattern/oneid/url-pattern 
  /servlet-mapping
  /web-app
..
***

What's wrong or missing?

Thanks in advanced.




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




RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread Sexton, George

Hmmm... Why don't you put a file like index.html in the directory?
Assuming you have a welcome files list in your web.xml file, this will be
displayed. You can then put up a message, and re-direct to where you want
them to be.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 6:49 AM
To: [EMAIL PROTECTED]
Subject: How to block listings on a SPECIFIC directory


Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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




RE: Tomcat4.0.3 - What is written in these log files ?

2002-09-19 Thread Sexton, George

I'm sure the nature of what is logged there would be self evident if you
examined the files in question.

George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.mhsoftware.com

-Original Message-
From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 4:46 AM
To: [EMAIL PROTECTED]
Subject: Tomcat4.0.3 - What is written in these log files ?


In Tomcat4.0.3, there are these log files created.
1) catalina_log
2) localhost_access_log
3) localhost_log
4) apache_log
It wud be great if someone can return me a description
of a line or two for each of these log files. I
searched in Apache site, but cudn't get more
information on this.
TIA
Santosh

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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


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




Re: Static content

2002-09-19 Thread Rafael Angarita

John,  where can I find this attribute in server.xml (a default 
server.xml) in tomcat 3.2.4?... I see nothing there... what's the  xml 
tab  that belongs this?

Thanks


Turner, John wrote:

I would add that you need 

forwardAll=false

in your Listener configuration in server.xml.  The default is true, and if
true, ALL requests get passed to Tomcat.

John


  

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 7:02 PM
To: Tomcat Users List
Subject: Re: Static content


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 tomcat_home/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:   


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





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

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



  


-- 

Rafael Angarita
Administrador de Sistemas
Telcel Bellsouth
(+58212)(2009765)





RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread adi

new directories are being created dynamically and they should be browsable.
all the rest shouldnt be
thats why I can not put index.htm file in every directory
Any suggestions?

Adi

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:21 PM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


Hmmm... Why don't you put a file like index.html in the directory?
Assuming you have a welcome files list in your web.xml file, this will be
displayed. You can then put up a message, and re-direct to where you want
them to be.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 6:49 AM
To: [EMAIL PROTECTED]
Subject: How to block listings on a SPECIFIC directory


Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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




beginner question...

2002-09-19 Thread Padhu Vinirs


Tomcat 4.0.4.

I am trying to use the Manager application to deploy and start a 
web-app. Have created the directory under CATALINA_HOME/webapps ( 
c:\tomcat40\webapps\ExamBuilder ). Even have a default web.xml under 
web-inf. Have put a one-liner index.html under my app directory.

I call manager app as follows:

http://localhost:8080/manager/install?path=/myappwar=file:/tomcat40/webapps/ExamBuilder

Install is successful. I can do a list and it shows up.

Now I try:

http://localhost:8080/manager/start?path=/exambuilder

I get the following error:

FAIL - Application at context path /exambuilder could not be started


I checked the logs:

2002-09-19 09:16:43 Manager: start: Starting web application at 
'/exambuilder'
2002-09-19 09:16:43 StandardHost[localhost]: standardHost.start /exambuilder
2002-09-19 09:16:43 StandardContext[/exambuilder]: Error initializing 
resources: Document base 
C:\tomcat40\webapps\tomcat40\webapps\ExamBuilder does not exist or is 
not a readable directory
2002-09-19 09:16:43 StandardContext[/exambuilder]: Context startup 
failed due to previous errors
2002-09-19 09:16:43 StandardContext[/exambuilder]: Exception during 
cleanup after start failed
LifecycleException:  Container StandardContext[/exambuilder] has not 
been started
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
..


Why is the server looking at 
C:\tomcat40\webapps\tomcat40\webapps\ExamBuilder and not 
C:\tomcat40\webapps\ExamBuilder ?


Even during installation, I see an exception:

2002-09-19 09:16:26 Manager: install: Installing web application at 
'/exambuilder' from 'file:/tomcat40/webapps/ExamBuilder'
2002-09-19 09:16:26 StandardHost[localhost]: Installing web application 
at context path /exambuilder from URL file:/tomcat40/webapps/ExamBuilder
2002-09-19 09:16:26 StandardContext[/exambuilder]: Error initializing 
resources: Document base 
C:\tomcat40\webapps\tomcat40\webapps\ExamBuilder does not exist or is 
not a readable directory
2002-09-19 09:16:26 StandardContext[/exambuilder]: Context startup 
failed due to previous errors
2002-09-19 09:16:26 StandardContext[/exambuilder]: Exception during 
cleanup after start failed
LifecycleException:  Container StandardContext[/exambuilder] has not 
been started
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3495)


But if I try,

http://localhost:8080/manager/install?path=/myappwar=file:/ExamBuilder

the install itself fails.



Any ideas appreciated.


Thanks

-- padhu





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




Re: How to block listings on a SPECIFIC directory

2002-09-19 Thread Padhu Vinirs


Shouldnt the code that creates the directories dynamically also make the 
decision of whether the directory is browse-able  or not ? Depending on 
that, then it can copy a default file into each of these directories.

-- padhu



adi wrote:

new directories are being created dynamically and they should be browsable.
all the rest shouldnt be
thats why I can not put index.htm file in every directory
Any suggestions?

Adi

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:21 PM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


Hmmm... Why don't you put a file like index.html in the directory?
Assuming you have a welcome files list in your web.xml file, this will be
displayed. You can then put up a message, and re-direct to where you want
them to be.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 6:49 AM
To: [EMAIL PROTECTED]
Subject: How to block listings on a SPECIFIC directory


Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


  




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




RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread Sexton, George

Do you put static content in these directories?

-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 7:26 AM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


new directories are being created dynamically and they should be browsable.
all the rest shouldnt be
thats why I can not put index.htm file in every directory
Any suggestions?

Adi

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:21 PM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


Hmmm... Why don't you put a file like index.html in the directory?
Assuming you have a welcome files list in your web.xml file, this will be
displayed. You can then put up a message, and re-direct to where you want
them to be.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 6:49 AM
To: [EMAIL PROTECTED]
Subject: How to block listings on a SPECIFIC directory


Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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




RE: web.xml

2002-09-19 Thread Vincent . Gaboriau

Nothing's wrong, nothing's missing.
Your problem isn't here.
Does the Tomcat's examples run?
Which error do you get?

-Message d'origine-
De : Lindomar [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 19 septembre 2002 15:14
À : Tomcat Users List
Objet : web.xml


Hi everyone!
I have a problem with mapping to my servlets.
I have this structure in tomcat 4.1
myapp
|_WEB-INF
|_classes
|_subdir1
|_subdir2
|_ myServlet.class

I want to mapping this servlet this way: http://localhost:8080/myapp/oneid

I placed this code in web.xml on my app.
***
...
 servlet
  servlet-namemyservlet/servlet-name
  servlet-classsubdir1.subdir2.myServlet/servlet-class
  /servlet
 servlet-mapping
  servlet-namemyservlet/servlet-name
  url-pattern/oneid/url-pattern
  /servlet-mapping
  /web-app
..
***

What's wrong or missing?

Thanks in advanced.




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



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




RE: Static content

2002-09-19 Thread Turner, John


It's in the Listener element that calls the ApacheConfig class to
auto-generate mod_jk.conf.  It's only an issue if you are using Tomcat to
auto-generate the mod_jk configuration for Apache.  If you are doing
Apache's mod_jk configuration by hand, it's irrelevant.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

Check the section that says Using ApacheConfig for more info.

John


 -Original Message-
 From: Rafael Angarita [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 9:25 AM
 To: Tomcat Users List
 Subject: Re: Static content
 
 
 John,  where can I find this attribute in server.xml (a default 
 server.xml) in tomcat 3.2.4?... I see nothing there... what's 
 the  xml 
 tab  that belongs this?
 
 Thanks
 
 
 Turner, John wrote:
 
 I would add that you need 
 
 forwardAll=false
 
 in your Listener configuration in server.xml.  The default 
 is true, and if
 true, ALL requests get passed to Tomcat.
 
 John
 
 
   
 
 -Original Message-
 From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 7:02 PM
 To: Tomcat Users List
 Subject: Re: Static content
 
 
 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 tomcat_home/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:   
 
 
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



  


-- 

Rafael Angarita
Administrador de Sistemas
Telcel Bellsouth
(+58212)(2009765)



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




manual procedure to deploy...

2002-09-19 Thread Padhu Vinirs


What is the manual procedure to deploy web apps in Tomcat ? Also, does 
the server do a  auto reload for manual changes ?

Thanks

-- padhu


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




Re: manual procedure to deploy...

2002-09-19 Thread Padhu Vinirs


Forget this question. The copying manually into webapps works fine. But 
deployment through the manager app is still  a problem.

Thanks

-- padhu



Padhu Vinirs wrote:


 What is the manual procedure to deploy web apps in Tomcat ? Also, does 
 the server do a  auto reload for manual changes ?

 Thanks

 -- padhu


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





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




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

2002-09-19 Thread achana


 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
.
You made my day !
THX

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




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

2002-09-19 Thread Matthew Hannigan


I compared the instructions between the 'ant' way and the 'configure'
way,  and seduced by the shortness of the instructions, I've
decided to go the configure route.

If you're not on Linux, with many developers utilities installed,
you've got a bit of downloading to do.

I'm doing this on Solaris8.

I'm in the middle of it now but so far I have worked out that:

To run buildconf.sh, you need libtool and autoconf and automake.
You can get them from gnu.org.  To get these going you need gnu m4
as well, obtainable from the same place.

I'll let you know how I go!

Regards,
Matt


Turner, John wrote:
 Mod_jk is an Apache module.  It goes on the machine that has Apache, in a
 place that Apache has permission to access.
 
 You don't need ant to install mod_jk.  Ant is just one of two options for
 building mod_jk.  You can also use the traditional ./configure method to
 build mod_jk.
 
 You also don't need Apache 2.0.40.  Apache 1.3.26 is fine, and is the same
 codebase as your existing version.
 
 John
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 5:34 AM
To: Tomcat Users List
Subject: Re: [OFF-TOPIC] RE: John: missing tomcat-apache.conf 
mod_jk.conf-auto


snip

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:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]

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



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




Building Tomcat from source

2002-09-19 Thread Fenlason, Josh

I'm trying to build Tomcat 4.1.11 from the source in cvs.  I tried following 
BUILDING.txt, but I managed to mess it up.  What all do I need to checkout from cvs?  
I'm not very familiar with cvs.  Is there anything special I need to with cvs?  Any 
help would be greatly appreciated.  Thanks in advance.
,
Josh.

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




Re: Problems connecting Tomcat with Apache using ajp13

2002-09-19 Thread David Cassidy

John,

Where's the definition for ajp12 ?  :o)

David


Turner, John wrote:

I would remove the load-balancing lines from workers.properties.  Here is a
plain-vanilla, working workers.properties file:

# Setup for apache system
#
workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
workers.java_home=/usr/java/j2sdk1.4.0_01
ps=/
worker.list=ajp12, ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

John

  

-Original Message-
From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 8:22 PM
To: Tomcat Users List
Subject: Problems connecting Tomcat with Apache using ajp13


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):




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

  





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




RE: JBoss - Not Embedded (and/or) - Embedded Tomcat 4.0: configure Context/Host/Etc.

2002-09-19 Thread Per Kreipke

Peter,

Do you think you could turn off the flags that your email program is sending
on _every_ email you send.

Thanks, Per


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




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

2002-09-19 Thread Turner, John


Another source for all of those tools, possibly easier to install as I
believe they are in Sun package format, is http://www.sunfreeware.com .

That's a good list, too...basically, to use the ./configure method, you
need:

GNU C Compiler (gcc)
GNU make
GNU automake
GNU autoconf
GNU m4
GNU libtool

That should do it, all of which are available at sunfreeware.com.

John


 -Original Message-
 From: Matthew Hannigan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 9:47 AM
 To: Tomcat Users List
 Subject: Re: [OFF-TOPIC] RE: John: missing tomcat-apache.conf 
 mod_jk.con f-auto
 
 
 
 I compared the instructions between the 'ant' way and the 'configure'
 way,  and seduced by the shortness of the instructions, I've
 decided to go the configure route.
 
 If you're not on Linux, with many developers utilities installed,
 you've got a bit of downloading to do.
 
 I'm doing this on Solaris8.
 
 I'm in the middle of it now but so far I have worked out that:
 
 To run buildconf.sh, you need libtool and autoconf and automake.
 You can get them from gnu.org.  To get these going you need gnu m4
 as well, obtainable from the same place.
 
 I'll let you know how I go!
 
 Regards,
 Matt
 
 
 Turner, John wrote:
  Mod_jk is an Apache module.  It goes on the machine that 
 has Apache, in a
  place that Apache has permission to access.
  
  You don't need ant to install mod_jk.  Ant is just one of 
 two options for
  building mod_jk.  You can also use the traditional 
 ./configure method to
  build mod_jk.
  
  You also don't need Apache 2.0.40.  Apache 1.3.26 is fine, 
 and is the same
  codebase as your existing version.
  
  John
  
  
  
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 5:34 AM
 To: Tomcat Users List
 Subject: Re: [OFF-TOPIC] RE: John: missing tomcat-apache.conf 
 mod_jk.conf-auto
 
 
 snip
 
 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:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
  
  --
  To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 .
 



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

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




RE: Problems connecting Tomcat with Apache using ajp13

2002-09-19 Thread Turner, John


Good point.  I don't have one.  Guess I was a little ruthless with the
delete line command in vi. :)

John


 -Original Message-
 From: David Cassidy [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 9:57 AM
 To: Tomcat Users List
 Subject: Re: Problems connecting Tomcat with Apache using ajp13
 
 
 John,
 
 Where's the definition for ajp12 ?  :o)
 
 David
 
 
 Turner, John wrote:
 
 I would remove the load-balancing lines from 
 workers.properties.  Here is a
 plain-vanilla, working workers.properties file:
 
 # Setup for apache system
 #
 workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
 workers.java_home=/usr/java/j2sdk1.4.0_01
 ps=/
 worker.list=ajp12, ajp13
 
 # Definition for Ajp13 worker
 #
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 
 John
 
   
 
 -Original Message-
 From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 8:22 PM
 To: Tomcat Users List
 Subject: Problems connecting Tomcat with Apache using ajp13
 
 
 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):
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

  





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

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




RE: Regarding Resources across contexts

2002-09-19 Thread Miguel Angel Mulero Martinez

The common files to all applications must be at CATALINA_HOME/lib


-Mensaje original-
De: shanmugampl [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 19 de septiembre de 2002 14:14
Para: [EMAIL PROTECTED]
Asunto: Regarding Resources across contexts

Dear All,

I am using Tomcat 4.1.10. I am in the process of developing jsp
pages using custom tags. For this i have copied the required jars into
my application context and put the tld files in the META-INF directory.
Everything works fine. Similar to this application I have other
applications that use the same custom tags. The problem here is i have
to duplicate the tld files and the jar files in all my applications. I
have moved the jar files to the Tomcat_home/common/lib/ directory to
avoid duplication. Is there a way by which i can have my tld files at a
common place and access it across my context/application?. Can i have my
tld files in one of the context and give the corresponding mapping in
the web.xml file present in the Tomcat_Home/conf/web.xml and use this
mapping across all contexts?. If yes can any one suggest the way to
achieve it.

Thanks
Shanmugam.PL




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


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




RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread adi

these directories contain text files that should be avalable for users while
browsing the directory

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:31 PM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


Do you put static content in these directories?

-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 7:26 AM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


new directories are being created dynamically and they should be browsable.
all the rest shouldnt be
thats why I can not put index.htm file in every directory
Any suggestions?

Adi

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:21 PM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


Hmmm... Why don't you put a file like index.html in the directory?
Assuming you have a welcome files list in your web.xml file, this will be
displayed. You can then put up a message, and re-direct to where you want
them to be.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 6:49 AM
To: [EMAIL PROTECTED]
Subject: How to block listings on a SPECIFIC directory


Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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




JDBCRealm question

2002-09-19 Thread Koes, Derrick

 

According to the directions in the documentation, you should put the jar
that contains the JDBC driver in common/lib if you need it for
authentication as well as for your webapp.

 

If I do this, I cannot use startup.bat because I get:

Exception during startup processing

java.lang.reflect.InvocationTargetException

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

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

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

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)

 

However, if I add it to server/lib and in my webapp's lib I get an exception
stating that it was already loaded by another classloader when my webapp
tries to use it.

 

I'm using the famous Oracle classes12.jar for Oracle 9i release 1.

 

Has anyone had similar problems?  How do you make tomcat see the ocijdbc9
library in the shared mode?

 

Thanks,

Derrick

This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.



RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread Turner, John


Wait, I think something got lost.

If the browsable directories are all new and prgrammatically generated, and
the non-browsable directories are static, then either of the two methods
already posted would work.

- Tim Funk's suggestion to write a filter to intercept requests for
non-browsable directories
- George Sexton's suggestion to just stick an index.html file in the
non-browsable directories (with a refresh of 0 to a homepage)

A third option would be to use Apache in front of Tomcat and restrict access
that way, then you wouldn't even have to deal with the requests.  More
cimplicated, though.  From your comments, it seems like the number of
non-browsable directories is much smaller than the potential number of
browsable directories, so it would seem to me that either of the two
solutions posted would work nicely.

John


 -Original Message-
 From: adi [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:07 AM
 To: Tomcat Users List
 Subject: RE: How to block listings on a SPECIFIC directory
 
 
 these directories contain text files that should be avalable 
 for users while
 browsing the directory
 
 -Original Message-
 From: Sexton, George [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 2:31 PM
 To: Tomcat Users List
 Subject: RE: How to block listings on a SPECIFIC directory
 
 
 Do you put static content in these directories?
 
 -Original Message-
 From: adi [mailto:[EMAIL PROTECTED]]
 Sent: 19 September, 2002 7:26 AM
 To: Tomcat Users List
 Subject: RE: How to block listings on a SPECIFIC directory
 
 
 new directories are being created dynamically and they should 
 be browsable.
 all the rest shouldnt be
 thats why I can not put index.htm file in every directory
 Any suggestions?
 
 Adi
 
 -Original Message-
 From: Sexton, George [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 2:21 PM
 To: Tomcat Users List
 Subject: RE: How to block listings on a SPECIFIC directory
 
 
 Hmmm... Why don't you put a file like index.html in the directory?
 Assuming you have a welcome files list in your web.xml file, 
 this will be
 displayed. You can then put up a message, and re-direct to 
 where you want
 them to be.
 
 George Sexton
 MH Software, Inc.
 Home of Connect Daily Web Calendar Software
 http://www.mhsoftware.com/connectdaily.htm
 Voice: 303 438 9585
 
 
 -Original Message-
 From: adi [mailto:[EMAIL PROTECTED]]
 Sent: 19 September, 2002 6:49 AM
 To: [EMAIL PROTECTED]
 Subject: How to block listings on a SPECIFIC directory
 
 
 Hello,
 
 I am trying to enable listing on one directory ( and its children)
 only.
 the listings parameter set to false or true will affect everything.
 is it possible in any way to define listings to individual 
 directories in
 my webapp?
 
 Adi
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: web.xml

2002-09-19 Thread Lindomar

Hi Vincet. Thanks for your reply.

My tomcat's example run.
The error is :
HTTP Status 404 - /myapp/oneid/
The requested resource (/myapp/oneid) is not available

Note: I got directory myapp of tomcat 3.2.3, and i placed on 4.1.

Thanks again!

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 19, 2002 10:37 AM
Subject: RE: web.xml


Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br

Nothing's wrong, nothing's missing.
Your problem isn't here.
Does the Tomcat's examples run?
Which error do you get?

-Message d'origine-
De : Lindomar [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 19 septembre 2002 15:14
À : Tomcat Users List
Objet : web.xml


Hi everyone!
I have a problem with mapping to my servlets.
I have this structure in tomcat 4.1
myapp
|_WEB-INF
|_classes
|_subdir1
|_subdir2
|_ myServlet.class

I want to mapping this servlet this way: http://localhost:8080/myapp/oneid

I placed this code in web.xml on my app.
***
...
 servlet
  servlet-namemyservlet/servlet-name
  servlet-classsubdir1.subdir2.myServlet/servlet-class
  /servlet
 servlet-mapping
  servlet-namemyservlet/servlet-name
  url-pattern/oneid/url-pattern
  /servlet-mapping
  /web-app
..
***

What's wrong or missing?

Thanks in advanced.




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



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




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




RE: JDBCRealm question

2002-09-19 Thread Wagoner, Mark

The UnsatisfiedLinkError is usually an indication that LD_LIBRARY_PATH is
not set properly (if on *nix) and/or ORACLE_HOME is not set correctly.  If
you are on Windows, also add %ORACLE_HOME%\bin to your path.

-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 10:13 AM
To: '[EMAIL PROTECTED]'
Subject: JDBCRealm question


 

According to the directions in the documentation, you should put the jar
that contains the JDBC driver in common/lib if you need it for
authentication as well as for your webapp.

 

If I do this, I cannot use startup.bat because I get:

Exception during startup processing

java.lang.reflect.InvocationTargetException

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

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

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

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)

 

However, if I add it to server/lib and in my webapp's lib I get an exception
stating that it was already loaded by another classloader when my webapp
tries to use it.

 

I'm using the famous Oracle classes12.jar for Oracle 9i release 1.

 

Has anyone had similar problems?  How do you make tomcat see the ocijdbc9
library in the shared mode?

 

Thanks,

Derrick

This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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




web.xml

2002-09-19 Thread Paul Jacobs

I am new to tomcat and hava a question about the web.xml file. Is it possible 
to put the location of a jar file in web.xml instead of placing the jar file 
in WEB-INF/lib?

regards Paul Jacobs

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




Re: Problems connecting Tomcat with Apache using ajp13

2002-09-19 Thread David Cassidy

it was one of the problems that another user had.
had it in the list and it wasn't there 8-)

ah good old 'dd' no command more useful ...

:)

David


Turner, John wrote:

Good point.  I don't have one.  Guess I was a little ruthless with the
delete line command in vi. :)

John


  

-Original Message-
From: David Cassidy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 9:57 AM
To: Tomcat Users List
Subject: Re: Problems connecting Tomcat with Apache using ajp13


John,

Where's the definition for ajp12 ?  :o)

David


Turner, John wrote:



I would remove the load-balancing lines from 
  

workers.properties.  Here is a


plain-vanilla, working workers.properties file:

# Setup for apache system
#
workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
workers.java_home=/usr/java/j2sdk1.4.0_01
ps=/
worker.list=ajp12, ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

John

 

  

-Original Message-
From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 8:22 PM
To: Tomcat Users List
Subject: Problems connecting Tomcat with Apache using ajp13


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):

   



--
To unsubscribe, e-mail:   
  

mailto:[EMAIL PROTECTED]
  

For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  

 







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

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

  





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




RE: web.xml

2002-09-19 Thread Vincent . Gaboriau

What the tomcat's log say?


-Message d'origine-
De : Lindomar [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 19 septembre 2002 16:18
À : Tomcat Users List
Objet : Re: web.xml


Hi Vincet. Thanks for your reply.

My tomcat's example run.
The error is :
HTTP Status 404 - /myapp/oneid/
The requested resource (/myapp/oneid) is not available

Note: I got directory myapp of tomcat 3.2.3, and i placed on 4.1.

Thanks again!

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 19, 2002 10:37 AM
Subject: RE: web.xml


Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br

Nothing's wrong, nothing's missing.
Your problem isn't here.
Does the Tomcat's examples run?
Which error do you get?

-Message d'origine-
De : Lindomar [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 19 septembre 2002 15:14
À : Tomcat Users List
Objet : web.xml


Hi everyone!
I have a problem with mapping to my servlets.
I have this structure in tomcat 4.1
myapp
|_WEB-INF
|_classes
|_subdir1
|_subdir2
|_ myServlet.class

I want to mapping this servlet this way: http://localhost:8080/myapp/oneid

I placed this code in web.xml on my app.
***
...
 servlet
  servlet-namemyservlet/servlet-name
  servlet-classsubdir1.subdir2.myServlet/servlet-class
  /servlet
 servlet-mapping
  servlet-namemyservlet/servlet-name
  url-pattern/oneid/url-pattern
  /servlet-mapping
  /web-app
..
***

What's wrong or missing?

Thanks in advanced.




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



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




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



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




RE: web.xml

2002-09-19 Thread Miguel Angel Mulero Martinez

That's all ok for me. Take a look to the tomcat log files to see if there's
another error.

-Mensaje original-
De: Lindomar [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 19 de septiembre de 2002 15:14
Para: Tomcat Users List
Asunto: web.xml

Hi everyone!
I have a problem with mapping to my servlets.
I have this structure in tomcat 4.1
myapp
|_WEB-INF
|_classes
|_subdir1
|_subdir2
|_ myServlet.class

I want to mapping this servlet this way: http://localhost:8080/myapp/oneid

I placed this code in web.xml on my app.
***
...
 servlet
  servlet-namemyservlet/servlet-name
  servlet-classsubdir1.subdir2.myServlet/servlet-class
  /servlet
 servlet-mapping
  servlet-namemyservlet/servlet-name
  url-pattern/oneid/url-pattern
  /servlet-mapping
  /web-app
..
***

What's wrong or missing?

Thanks in advanced.




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


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




problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

Hi,
   I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and 
tried to make apache connect to tomcat with mod_jk module,

   For this I did the following things
   1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure 
--with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It 
was suceesfully done and got mod_jk.so

   2)  I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 
'A'(Apache machine) to Machine 'B' (Tomcat machine),

and modified server.xml as per the documenatation
here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to 
Machine A(Apache Machine)   and included it in httpd.conf

Here I did not understand Following things
1) in mod_jk.conf  (on Machine 'A' Apache)
  Alias /manager /opt/catalina/webapps/manager --  here what I need to put,  
because the path mentioned  is there on machine 'B'

 2)in workesr.properties (on machine 'A' Apache)
   worker.ajp13.host= machine 'B' I am sure This is ok
   workers.tomcat_home=/opt/catalina
   workers.java_home=/opt/java/j2sdk1.4.0_01,   here what I need to set up for 
these (because catalina_home and java_home are there in Machine 'B')

here I didn't get any error in mod_jk.log (on machine 'A')

Any help greatly appreciated
ThksRgds
Venkat
 

  


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




Tomcat 3.2.4 performance tuning tips

2002-09-19 Thread Curt Pederson

We have written an app that has to handle lots (100s or even 1000s) of requests
VERY quickly and we are using Tomcat 3.2.4 (planning on moving to 4.x in
the near future.)  I found the information about setting the thread pool
sizes on the connectors and have been playing with that.  What would be some
good values to set for the pool size to handle a large quantity of hits in
very short bursts?  Are there any other things we can tweek?

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problem getting latest Tomcat source

2002-09-19 Thread Fenlason, Josh

I'm trying to build Tomcat 4.1.11 from source.  I'm not getting the correct version of 
the jakarta-modules necassary to build.  I think I'm getting stuff from beyond 4.1.11. 
 I was hoping someone would be kind enough to help me with the correct command to 
check out tomcat 4.1.11 and the other modules necassary for building it.  I'm new to 
building Tomcat and cvs, so please be gentle.  Here's what I've done so far:
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-tomcat-4.0 
jakarta-tomcat-connectors jakarta-tomcat-jasper
Thanks in advance.
,
Josh.

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




RE: Problems connecting Tomcat with Apache using ajp13

2002-09-19 Thread Milt Epstein

On Thu, 19 Sep 2002, Turner, John wrote:


 I would remove the load-balancing lines from workers.properties.  Here is a
 plain-vanilla, working workers.properties file:

 # Setup for apache system
 #
 workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
 workers.java_home=/usr/java/j2sdk1.4.0_01
 ps=/

If you want to make it even more basic, you can get rid of the first
two lines above (and maybe even the third, I don't recall exactly).
Way back when I was first trying to figure out workers.properties, I
discovered that those are just macros/variables internal to the file.
They help make it easier to specify other settings (e.g. so you don't
have to repeat things so much, and it's easier to change if something
moves).  And since you're not using them in the rest of this
workers.properties, you don't need them.  I think in the default one
they're used in setting up the jni worker.


 worker.list=ajp12, ajp13

 # Definition for Ajp13 worker
 #
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13

 John

  -Original Message-
  From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 18, 2002 8:22 PM
  To: Tomcat Users List
  Subject: Problems connecting Tomcat with Apache using ajp13
 
 
  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):
 

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



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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Apache 2.0.40 Tomcat 4.0.3

2002-09-19 Thread Craig Deering

Here is a problem I've been trying to solve for about a week now...

I was running Apache 2.0.35 with Tomcat 4.0.3.  I decided my problem was
with Apache so I upgraded to 2.0.40 and am still having the same issues.

It appears that if you go to my website and put in the URL:

http://www.somewhere.com/somedir

and apache has been instructed to require SSL on this directory, an
error message will be returned saying you do not have permission to view
the page.  You would need https:// to make it work.

Great...  Now, if you type:

http://www.somewhere.com/somedir/

Notice the trailing slash, Apache sends the request to my Tomcat Warp
Connector and completely disregards the require SSL statements.  In
fact, any file or path that it typed in following the Warp Connected
path and SSL required path, Apache forgets all about any SSLRequireSSL
statements.

It is also important to note that if I comment out all of the WebApp
lines in my httpd.conf file, Apache works as it is supposed to, just no
jsp stuff.

Has anyone else encountered this?  Any suggestions?  Here are the lines
in my httpd.conf file:

Directory /home/sites/home/web/cs
Options FollowSymLinks
SSLRequireSSL
/Directory

LoadModule webapp_module modules/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy cs warpConnection /cs/



NOTE: I also created a Directory / statement to see what happened
and Apache required SSL for all paths EXCEPT anything that was passed to
Tomcat!!


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




RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread Milt Epstein

On Thu, 19 Sep 2002, adi wrote:

 new directories are being created dynamically and they should be
 browsable.  all the rest shouldnt be
 thats why I can not put index.htm file in every directory
 Any suggestions?

Not sure this matters -- the idea is that you put the index.html (or
whatever welcome-file you specify) in the directories where you
*don't* want to allow directory listings.  Of course, you could also
dynamically create index/welcome files as appropriately.


 -Original Message-
 From: Sexton, George [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 2:21 PM
 To: Tomcat Users List
 Subject: RE: How to block listings on a SPECIFIC directory


 Hmmm... Why don't you put a file like index.html in the directory?
 Assuming you have a welcome files list in your web.xml file, this will be
 displayed. You can then put up a message, and re-direct to where you want
 them to be.

 George Sexton
 MH Software, Inc.
 Home of Connect Daily Web Calendar Software
 http://www.mhsoftware.com/connectdaily.htm
 Voice: 303 438 9585


 -Original Message-
 From: adi [mailto:[EMAIL PROTECTED]]
 Sent: 19 September, 2002 6:49 AM
 To: [EMAIL PROTECTED]
 Subject: How to block listings on a SPECIFIC directory


 Hello,

 I am trying to enable listing on one directory ( and its children)
 only.
 the listings parameter set to false or true will affect everything.
 is it possible in any way to define listings to individual directories in
 my webapp?

 Adi


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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


 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problems connecting Tomcat with Apache using ajp13

2002-09-19 Thread Turner, John


Thanks for the clarification.  I was wondering about that myself, as the
workers.properties files I've seen for load-balancing configurations don't
have those lines, either.

John


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:58 AM
 To: Tomcat Users List
 Subject: RE: Problems connecting Tomcat with Apache using ajp13
 
 
 On Thu, 19 Sep 2002, Turner, John wrote:
 
 
  I would remove the load-balancing lines from 
 workers.properties.  Here is a
  plain-vanilla, working workers.properties file:
 
  # Setup for apache system
  #
  workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
  workers.java_home=/usr/java/j2sdk1.4.0_01
  ps=/
 
 If you want to make it even more basic, you can get rid of the first
 two lines above (and maybe even the third, I don't recall exactly).
 Way back when I was first trying to figure out workers.properties, I
 discovered that those are just macros/variables internal to the file.
 They help make it easier to specify other settings (e.g. so you don't
 have to repeat things so much, and it's easier to change if something
 moves).  And since you're not using them in the rest of this
 workers.properties, you don't need them.  I think in the default one
 they're used in setting up the jni worker.
 
 
  worker.list=ajp12, ajp13
 
  # Definition for Ajp13 worker
  #
  worker.ajp13.port=8009
  worker.ajp13.host=localhost
  worker.ajp13.type=ajp13
 
  John
 

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




Re: Problems connecting Tomcat with Apache using ajp13

2002-09-19 Thread Milt Epstein

On Thu, 19 Sep 2002, David Cassidy wrote:

 John,

 Where's the definition for ajp12 ?  :o)

Oh yeah, you can make it even shorter! :-).

Try this:

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

(Who needs comments?! :-)


 Turner, John wrote:

 I would remove the load-balancing lines from workers.properties.  Here is a
 plain-vanilla, working workers.properties file:
 
 # Setup for apache system
 #
 workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
 workers.java_home=/usr/java/j2sdk1.4.0_01
 ps=/
 worker.list=ajp12, ajp13
 
 # Definition for Ajp13 worker
 #
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 
 John
 
 
 
 -Original Message-
 From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 8:22 PM
 To: Tomcat Users List
 Subject: Problems connecting Tomcat with Apache using ajp13
 
 
 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):
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 




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


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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: web.xml

2002-09-19 Thread Lindomar

I can't see file localhost_myapp_log, i only found localhost_examples_log,
localhost_admin_log and localhost_log.
I search something in localhost_log, but i don't find anything.

Let me take a few of your time.

Well, i created a new app (teste) :
teste
   |_index.html
   |_WEB-INF
|_classes
|_HelloWorldExample.class
|_web.xml

The class HelloWorldExample it's work in
localhost:8080/examples/servlet/HelloWorldExample, then i copied it.
The file web.xml is:
***
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-namemyteste/servlet-name
servlet-classHelloWorldExample/servlet-class
/servlet
servlet-mapping
servlet-name
myteste
/servlet-name
url-pattern
/hi
/url-pattern
/servlet-mapping
/web-app
***
When i put http://localhost:8080/teste -It's ok, i see my index.html
But when i put http://localhost:8080/teste/hi - don't works!?
I see this on page:
##
HTTP Status 404 - /teste/hi
type Status report
message /teste/hi
description The requested resource (/teste/hi) is not available
##
And i can't found anything in log files about this exception.

What do i? I don't have an idea...i only install tomcat 4.1, i don't
configurate anything more.

Thank's for your attention.





- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 19, 2002 11:36 AM
Subject: RE: web.xml


Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br

What the tomcat's log say?





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




Re: Problem getting latest Tomcat source

2002-09-19 Thread Jean-Francois Arcand

You need to do

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout XXX

where XXX =
jakarta-tomcat-4.0
OR
jakarta-tomcat-connectors
OR
jakarta-tomcat-jasper

Not on the same line. If it doesn't work, one reason is you may be inside a firewall.  

-- Jeanfrancois



Fenlason, Josh wrote:

I'm trying to build Tomcat 4.1.11 from source.  I'm not getting the correct version 
of the jakarta-modules necassary to build.  I think I'm getting stuff from beyond 
4.1.11.  I was hoping someone would be kind enough to help me with the correct 
command to check out tomcat 4.1.11 and the other modules necassary for building it.  
I'm new to building Tomcat and cvs, so please be gentle.  Here's what I've done so 
far:
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-tomcat-4.0 
jakarta-tomcat-connectors jakarta-tomcat-jasper
Thanks in advance.
,
Josh.

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

  



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




Re: web.xml

2002-09-19 Thread Brett . REASOR


You need a logger directive in your context

Logger className=org.apache.catalina.logger.FileLogger prefix
=myapp_log. suffix=.txt timestamp=true/

Brett Reasor
Systems Administrator
212-399-4200 x 2297
[EMAIL PROTECTED]


   
   
Lindomar 
   
lindomar.silva@b   To: Tomcat Users List 
[EMAIL PROTECTED]  
ol.com.br  cc:
   
Subject: Re: web.xml   
   
09/19/2002 11:40   
   
AM 
   
Please respond to  
   
Tomcat Users  
   
List  
   
   
   
   
   




I can't see file localhost_myapp_log, i only found localhost_examples_log,
localhost_admin_log and localhost_log.
I search something in localhost_log, but i don't find anything.

Let me take a few of your time.

Well, i created a new app (teste) :
teste
   |_index.html
   |_WEB-INF
|_classes
|_HelloWorldExample.class
|_web.xml

The class HelloWorldExample it's work in
localhost:8080/examples/servlet/HelloWorldExample, then i copied it.
The file web.xml is:
***
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-namemyteste/servlet-name
servlet-classHelloWorldExample/servlet-class
/servlet
servlet-mapping
servlet-name
myteste
/servlet-name
url-pattern
/hi
/url-pattern
/servlet-mapping
/web-app
***
When i put http://localhost:8080/teste -It's ok, i see my index.html
But when i put http://localhost:8080/teste/hi - don't works!?
I see this on page:
##
HTTP Status 404 - /teste/hi
type Status report
message /teste/hi
description The requested resource (/teste/hi) is not available
##
And i can't found anything in log files about this exception.

What do i? I don't have an idea...i only install tomcat 4.1, i don't
configurate anything more.

Thank's for your attention.





- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 19, 2002 11:36 AM
Subject: RE: web.xml


Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br

What the tomcat's log say?





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






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




RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread Milt Epstein

On Thu, 19 Sep 2002, Turner, John wrote:

 Wait, I think something got lost.

 If the browsable directories are all new and prgrammatically
 generated, and the non-browsable directories are static, then either
 of the two methods already posted would work.

 - Tim Funk's suggestion to write a filter to intercept requests for
 non-browsable directories
 - George Sexton's suggestion to just stick an index.html file in the
 non-browsable directories (with a refresh of 0 to a homepage)

 A third option would be to use Apache in front of Tomcat and
 restrict access that way, then you wouldn't even have to deal with
 the requests.  More cimplicated, though.  From your comments, it
 seems like the number of non-browsable directories is much smaller
 than the potential number of browsable directories, so it would seem
 to me that either of the two solutions posted would work nicely.

Besides all this, I think something else got lost.  I believe you
*can* configure listings on a per-webapp/context basis.  You just take
the entire definition of the default servlet out of the server-wide
web.xml (in the conf sub-directory), copy it to the particular
webapp's/context's web.xml, and change the listings parameter as
desired.

The comments near the top of the server-wide web.xml are:

  !-- This document defines default values for *all* web applications --
  !-- loaded into this instance of Tomcat.  As each application is--
  !-- deployed, this file is processed, followed by the   --
  !-- /WEB-INF/web.xml deployment descriptor from your own  --
  !-- applications.   --

I think this means you can have things in the particular
webapp's/context's web.xml override things in the server-wide one.

Should be quick and easy to test at least.


  -Original Message-
  From: adi [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 19, 2002 10:07 AM
  To: Tomcat Users List
  Subject: RE: How to block listings on a SPECIFIC directory
 
 
  these directories contain text files that should be avalable
  for users while
  browsing the directory
 
  -Original Message-
  From: Sexton, George [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 19, 2002 2:31 PM
  To: Tomcat Users List
  Subject: RE: How to block listings on a SPECIFIC directory
 
 
  Do you put static content in these directories?
 
  -Original Message-
  From: adi [mailto:[EMAIL PROTECTED]]
  Sent: 19 September, 2002 7:26 AM
  To: Tomcat Users List
  Subject: RE: How to block listings on a SPECIFIC directory
 
 
  new directories are being created dynamically and they should
  be browsable.
  all the rest shouldnt be
  thats why I can not put index.htm file in every directory
  Any suggestions?
 
  Adi
 
  -Original Message-
  From: Sexton, George [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 19, 2002 2:21 PM
  To: Tomcat Users List
  Subject: RE: How to block listings on a SPECIFIC directory
 
 
  Hmmm... Why don't you put a file like index.html in the directory?
  Assuming you have a welcome files list in your web.xml file,
  this will be
  displayed. You can then put up a message, and re-direct to
  where you want
  them to be.
 
  George Sexton
  MH Software, Inc.
  Home of Connect Daily Web Calendar Software
  http://www.mhsoftware.com/connectdaily.htm
  Voice: 303 438 9585
 
 
  -Original Message-
  From: adi [mailto:[EMAIL PROTECTED]]
  Sent: 19 September, 2002 6:49 AM
  To: [EMAIL PROTECTED]
  Subject: How to block listings on a SPECIFIC directory
 
 
  Hello,
 
  I am trying to enable listing on one directory ( and its children)
  only.
  the listings parameter set to false or true will affect everything.
  is it possible in any way to define listings to individual
  directories in
  my webapp?
 
  Adi

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




/WEB-INF/web.xml not found when deploying WAR within Tomcat4 on Debian ...

2002-09-19 Thread Ian Stevens

I have a WAR file which is built by JBuilder6.  This WAR file deploys
fine under Tomcat4 on Windows2000 when I copy it to the webapps
directory and restart Tomcat.  However, when I do the same on a Debian
Linux system running Tomcat4, I get the following in the log files:

2002-09-19 10:15:12 StandardHost[localhost]: Installing web
application at context path /Phantom from URL
jar:file:/var/lib/tomcat4/webapps/Phantom.war!/
2002-09-19 10:15:12 WebappLoader[/Phantom]: Deploying class
repositories to work directory /usr/share/tomcat4/work/localhost/Phantom
2002-09-19 10:15:12 StandardManager[/Phantom]: Seeding random
number generator class java.security.SecureRandom
2002-09-19 10:15:12 StandardManager[/Phantom]: Seeding of random
number generator has been completed
2002-09-19 10:15:12 ContextConfig[/Phantom]: Missing application
web.xml, using defaults only
2002-09-19 10:15:12 StandardWrapper[/Phantom:default]: Loading
container servlet default
2002-09-19 10:15:12 default: init
2002-09-19 10:15:12 StandardWrapper[/Phantom:invoker]: Loading
container servlet invoker
2002-09-19 10:15:12 invoker: init
2002-09-19 10:15:12 jsp: init
2002-09-19 10:15:12 Internal Error: File /WEB-INF/web.xml not
found

A similar error occurs when I try to deploy the webapp using the
manager.  Although the install command claims success and the webapp is
listed as running, accessing the servlet results in a 404.  I am able to
access files stored in the root of the WAR file, however, but none of
the subdirectories.  The WAR file is not expanded in the webapps
directory.

The WAR file has read/execute priviledges set to 'all' and is located in
a publicly-accessible directory when I try to deploy with the manager.
Performing an `unzip -l Phantom.war | grep web.xml` provides the
following:

698  09-19-02 10:39   WEB-INF/web.xml

So the web.xml is there.

The contents of the file read like so:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC
  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'
web-app
display-namePhantom/display-name
listener
listener-class
com.phantom.session.PhantomHttpSessionListener
/listener-class
/listener
servlet
servlet-namePhantom/servlet-name

servlet-classcom.phantom.servlet.PhantomServlet/servlet-class
/servlet
servlet-mapping
servlet-namePhantom/servlet-name
url-pattern/servlet/url-pattern
/servlet-mapping
/web-app

If anyone has any suggestions, I would be happy to receive them.

thanks,
ian.


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




RE: Problem getting latest Tomcat source

2002-09-19 Thread Fenlason, Josh

I can get the source for each module, but I believe that I'm getting source that is 
too recent, at least for the jasper module.  How do I specify which version or branch 
of the module?  Thanks for your help.  I truly appreciate it.
,
Josh.

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




Re: Problem getting latest Tomcat source

2002-09-19 Thread Jean-Francois Arcand

www.cvshome.org

You will find all the required information.

-- Jeanfrancois

Fenlason, Josh wrote:

I can get the source for each module, but I believe that I'm getting source that is 
too recent, at least for the jasper module.  How do I specify which version or branch 
of the module?  Thanks for your help.  I truly appreciate it.
,
Josh.

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

  



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




RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Turner, John


The lines like tomcat_home etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 
 installed
 on diffrent machines with mod_jk
 
 
 Hi,
I installed Apache 2.0.40 and Tomcat 4.0.4 on different 
 Linux(RedHat) servers and tried to make apache connect to 
 tomcat with mod_jk module,
 
For this I did the following things
1) I installed Apache 2.0.40 on Machine 'A' and built 
 mod_jk.so module (./configure 
 --with-apxs=/usr/local/apache2/bin/apxs 
 --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully 
 done and got mod_jk.so
 
2)  I installed Tomcat 4.0.4 on machine 'B' and copied 
 mod_jk.so from machine 'A'(Apache machine) to Machine 'B' 
 (Tomcat machine),
 
 and modified server.xml as per the documenatation
 here Upon start up of tomact I got mod_jk.conf, I copied 
 it from machine B to Machine A(Apache Machine)   and included 
 it in httpd.conf
 
 Here I did not understand Following things
 1) in mod_jk.conf  (on Machine 'A' Apache)
   Alias /manager /opt/catalina/webapps/manager --  
 here what I need to put,  because the path mentioned  is 
 there on machine 'B'
 
  2)in workesr.properties (on machine 'A' Apache)
worker.ajp13.host= machine 'B' I am sure This is ok
workers.tomcat_home=/opt/catalina
workers.java_home=/opt/java/j2sdk1.4.0_01,   here what 
 I need to set up for these (because catalina_home and 
 java_home are there in Machine 'B')
 
 here I didn't get any error in mod_jk.log (on machine 'A')
 
 Any help greatly appreciated
 ThksRgds
 Venkat
  
 
   
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

In tomcat box I added  following  lines as per documentation 
  Server port=8005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/usr/local/apache2/modules/mod_jk.so /

Host name=machine 'B' debug=1 appBase=webapps unpackWARs=true
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true 
forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so /
That's why I had to copy it from apache box to TOmcat box,
   Here When I tried apache tomcat on same box, they worked well, but when I tired on 
different boxes
   I understood that Apache is not at all connecting to TOmcat box,
 but in  mod_jk.log Every thing seems to be fine

Thanks in advance
Venkat






-Original Message-
From:   Turner, John [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 11:26 AM
To: 'Tomcat Users List'
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk

The lines like tomcat_home etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 
 installed
 on diffrent machines with mod_jk
 
 
 Hi,
I installed Apache 2.0.40 and Tomcat 4.0.4 on different 
 Linux(RedHat) servers and tried to make apache connect to 
 tomcat with mod_jk module,
 
For this I did the following things
1) I installed Apache 2.0.40 on Machine 'A' and built 
 mod_jk.so module (./configure 
 --with-apxs=/usr/local/apache2/bin/apxs 
 --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully 
 done and got mod_jk.so
 
2)  I installed Tomcat 4.0.4 on machine 'B' and copied 
 mod_jk.so from machine 'A'(Apache machine) to Machine 'B' 
 (Tomcat machine),
 
 and modified server.xml as per the documenatation
 here Upon start up of tomact I got mod_jk.conf, I copied 
 it from machine B to Machine A(Apache Machine)   and included 
 it in httpd.conf
 
 Here I did not understand Following things
 1) in mod_jk.conf  (on Machine 'A' Apache)
   Alias /manager /opt/catalina/webapps/manager --  
 here what I need to put,  because the path mentioned  is 
 there on machine 'B'
 
  2)in workesr.properties (on machine 'A' Apache)
worker.ajp13.host= machine 'B' I am sure This is ok
workers.tomcat_home=/opt/catalina
workers.java_home=/opt/java/j2sdk1.4.0_01,   here what 
 I need to set up for these (because catalina_home and 
 java_home are there in Machine 'B')
 
 here I didn't get any error in mod_jk.log (on machine 'A')
 
 Any help greatly appreciated
 ThksRgds
 Venkat
  
 
   
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Logs

2002-09-19 Thread Maxime Colas des Francs

Hi

I use Tomcat 4.1.10, Apache 2 and mod_jk2

Can we stop these logs in catalina.out ?

[...]
[Thu Sep 19 11:12:06 2002] ( info ) [jk_jni_aprImpl.c (470)]  jkInvoke() invoke 
4cffedec
[Thu Sep 19 11:12:06 2002] ( info ) [jk_jni_aprImpl.c (470)]  jkInvoke() invoke 
4cffedec
[Thu Sep 19 11:12:15 2002] ( info ) [jk_jni_aprImpl.c (470)]  jkInvoke() invoke 
4cffedec
[Thu Sep 19 11:12:15 2002] ( info ) [jk_jni_aprImpl.c (470)]  jkInvoke() invoke 
4cffedec
[Thu Sep 19 11:12:15 2002] ( info ) [jk_jni_aprImpl.c (470)]  jkInvoke() invoke 
4cffedec
[...]

I want to use to use this file to log my debug information (with System.out) ?
is it a correct thing or can we manage a log file in a web application ? 
(for example with a Valve in server.xml) ?

thks





RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

Hi John,
 I followed your documenataion only, That is really awesome, so many of tomcat 
guys suggested your documentation
   Tnank you very much for great help,
Can you help me connecting apache and tomcat installed on differnet boxes
Thks in advance
Venkat

-Original Message-
From:   Venkat Reddy Valluri
Sent:   Thu 9/19/2002 11:39 AM
To: Tomcat Users List
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk
In tomcat box I added  following  lines as per documentation 
  Server port=8005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/usr/local/apache2/modules/mod_jk.so /

Host name=machine 'B' debug=1 appBase=webapps unpackWARs=true
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true 
forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so /
That's why I had to copy it from apache box to TOmcat box,
   Here When I tried apache tomcat on same box, they worked well, but when I tired on 
different boxes
   I understood that Apache is not at all connecting to TOmcat box,
 but in  mod_jk.log Every thing seems to be fine

Thanks in advance
Venkat






-Original Message-
From:   Turner, John [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 11:26 AM
To: 'Tomcat Users List'
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk

The lines like tomcat_home etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 
 installed
 on diffrent machines with mod_jk
 
 
 Hi,
I installed Apache 2.0.40 and Tomcat 4.0.4 on different 
 Linux(RedHat) servers and tried to make apache connect to 
 tomcat with mod_jk module,
 
For this I did the following things
1) I installed Apache 2.0.40 on Machine 'A' and built 
 mod_jk.so module (./configure 
 --with-apxs=/usr/local/apache2/bin/apxs 
 --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully 
 done and got mod_jk.so
 
2)  I installed Tomcat 4.0.4 on machine 'B' and copied 
 mod_jk.so from machine 'A'(Apache machine) to Machine 'B' 
 (Tomcat machine),
 
 and modified server.xml as per the documenatation
 here Upon start up of tomact I got mod_jk.conf, I copied 
 it from machine B to Machine A(Apache Machine)   and included 
 it in httpd.conf
 
 Here I did not understand Following things
 1) in mod_jk.conf  (on Machine 'A' Apache)
   Alias /manager /opt/catalina/webapps/manager --  
 here what I need to put,  because the path mentioned  is 
 there on machine 'B'
 
  2)in workesr.properties (on machine 'A' Apache)
worker.ajp13.host= machine 'B' I am sure This is ok
workers.tomcat_home=/opt/catalina
workers.java_home=/opt/java/j2sdk1.4.0_01,   here what 
 I need to set up for these (because catalina_home and 
 java_home are there in Machine 'B')
 
 here I didn't get any error in mod_jk.log (on machine 'A')
 
 Any help greatly appreciated
 ThksRgds
 Venkat
  
 
   
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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






winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Michael Schulz


If you want to put Apache and Tomcat on separate boxes, and still run the
Tomcat examples, you will have to copy the static (.html) files from the
tomcat box to the apache box so that apache can serve them.

-Mike Schulz


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



The lines like tomcat_home etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed
 on diffrent machines with mod_jk


 Hi,
I installed Apache 2.0.40 and Tomcat 4.0.4 on different
 Linux(RedHat) servers and tried to make apache connect to
 tomcat with mod_jk module,

For this I did the following things
1) I installed Apache 2.0.40 on Machine 'A' and built
 mod_jk.so module (./configure
 --with-apxs=/usr/local/apache2/bin/apxs
 --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully
 done and got mod_jk.so

2)  I installed Tomcat 4.0.4 on machine 'B' and copied
 mod_jk.so from machine 'A'(Apache machine) to Machine 'B'
 (Tomcat machine),

 and modified server.xml as per the documenatation
 here Upon start up of tomact I got mod_jk.conf, I copied
 it from machine B to Machine A(Apache Machine)   and included
 it in httpd.conf

 Here I did not understand Following things
 1) in mod_jk.conf  (on Machine 'A' Apache)
   Alias /manager /opt/catalina/webapps/manager --
 here what I need to put,  because the path mentioned  is
 there on machine 'B'

  2)in workesr.properties (on machine 'A' Apache)
worker.ajp13.host= machine 'B' I am sure This is ok
workers.tomcat_home=/opt/catalina
workers.java_home=/opt/java/j2sdk1.4.0_01,   here what
 I need to set up for these (because catalina_home and
 java_home are there in Machine 'B')

 here I didn't get any error in mod_jk.log (on machine 'A')

 Any help greatly appreciated
 ThksRgds
 Venkat





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

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


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




RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Turner, John


I wish I could help more, but I haven't had the need to do separate-machine
Apache + Tomcat, so all I know is what's in the documentation and what's
been posted to the list.  I haven't tried it at all.

As far as I know, you set things up according to this URL:
http://www.ubeans.com/tomcat and then you just change the host parameter in
workers.properties to be the fully-qualified domain name of the Tomcat host
(or perhaps the IP address would be better, but then I'm not sure that
Tomcat would get the host header right).

Maybe this weekend I will give setting these up on different boxes a shot,
if I have time.  It would be an interesting experiment.

John

 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 11:44 AM
 To: Tomcat Users List
 Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed on diffrent machines with mod_jk
 
 
 Hi John,
  I followed your documenataion only, That is really 
 awesome, so many of tomcat guys suggested your documentation
Tnank you very much for great help,
 Can you help me connecting apache and tomcat installed on 
 differnet boxes
 Thks in advance
 Venkat
 

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




RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

Even though I didn't copy, Atleast Apche should have connected to tomcat and I should 
have executed jsp pages existed on tomcat box, here apache is serving some static 
files which are existing on apache boxe, but when I tried to execute 
http://www.xxx.com/examples/(in mod_jk.conf  jkmount  /examples/* ajp13) it is 
supposed to connect to tomcat box and execute jsp's, but it is not recognising them, 
because it is not even connected to tomcat 


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 11:46 AM
To: Tomcat Users List
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk

If you want to put Apache and Tomcat on separate boxes, and still run the
Tomcat examples, you will have to copy the static (.html) files from the
tomcat box to the apache box so that apache can serve them.

-Mike Schulz


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



The lines like tomcat_home etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed
 on diffrent machines with mod_jk


 Hi,
I installed Apache 2.0.40 and Tomcat 4.0.4 on different
 Linux(RedHat) servers and tried to make apache connect to
 tomcat with mod_jk module,

For this I did the following things
1) I installed Apache 2.0.40 on Machine 'A' and built
 mod_jk.so module (./configure
 --with-apxs=/usr/local/apache2/bin/apxs
 --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully
 done and got mod_jk.so

2)  I installed Tomcat 4.0.4 on machine 'B' and copied
 mod_jk.so from machine 'A'(Apache machine) to Machine 'B'
 (Tomcat machine),

 and modified server.xml as per the documenatation
 here Upon start up of tomact I got mod_jk.conf, I copied
 it from machine B to Machine A(Apache Machine)   and included
 it in httpd.conf

 Here I did not understand Following things
 1) in mod_jk.conf  (on Machine 'A' Apache)
   Alias /manager /opt/catalina/webapps/manager --
 here what I need to put,  because the path mentioned  is
 there on machine 'B'

  2)in workesr.properties (on machine 'A' Apache)
worker.ajp13.host= machine 'B' I am sure This is ok
workers.tomcat_home=/opt/catalina
workers.java_home=/opt/java/j2sdk1.4.0_01,   here what
 I need to set up for these (because catalina_home and
 java_home are there in Machine 'B')

 here I didn't get any error in mod_jk.log (on machine 'A')

 Any help greatly appreciated
 ThksRgds
 Venkat





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

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


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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri


Thank you very much john,
  I wish you could havce been succesful
Thks
Venkat
 
-Original Message-
From:   Turner, John [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 11:54 AM
To: 'Tomcat Users List'
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk

I wish I could help more, but I haven't had the need to do separate-machine
Apache + Tomcat, so all I know is what's in the documentation and what's
been posted to the list.  I haven't tried it at all.

As far as I know, you set things up according to this URL:
http://www.ubeans.com/tomcat and then you just change the host parameter in
workers.properties to be the fully-qualified domain name of the Tomcat host
(or perhaps the IP address would be better, but then I'm not sure that
Tomcat would get the host header right).

Maybe this weekend I will give setting these up on different boxes a shot,
if I have time.  It would be an interesting experiment.

John

 -Original Message-
 From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 11:44 AM
 To: Tomcat Users List
 Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
 installed on diffrent machines with mod_jk
 
 
 Hi John,
  I followed your documenataion only, That is really 
 awesome, so many of tomcat guys suggested your documentation
Tnank you very much for great help,
 Can you help me connecting apache and tomcat installed on 
 differnet boxes
 Thks in advance
 Venkat
 

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





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread achana

Venkat Reddy Valluri wrote:
 
 Hi John,
  I followed your documenataion only, That is really awesome, so many of tomcat 
guys suggested your documentation

Yes I agree... of course u can always make a donation if the project is
successful.
Wonder what John does

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




Re: sym link problems with tomcat 4.1

2002-09-19 Thread Erick Todd

Aren't we feeling a little self righteous today!!

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

I don't have any release note that came with my tomcat 4.1.10.  In the
linux tar.gz file I downloaded there is 1 release note, and it does not
mention symbolic links ANYWHERE!!

If you would like to enlighten us all as to where you documented this
change, so I could read it first hand, that would be fine.

I would like to know why this change was made without allowing an option
to turn it off.  There are some good reasons to allow such a situation.

-E

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

On Thu, 2002-09-19 at 00:48, Remy Maucherat wrote:
 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:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




That's me signing off

2002-09-19 Thread Nigel . Byrnes

thanks for your help earlier this week guys,

Nigel

--
Nigel Byrnes
E-Commerce, Direct Line
0845 878 2922

Direct Line Group Services Limited, registered in England no.3001989, registered 
office 3 Edridge Road, Croydon, Surrey, CR9 1AG. The following are also members of the 
Direct Line group of companies: Direct Line Insurance plc, a member of the General 
Insurance Standards Council and Direct Line Life Insurance Company Limited and Direct 
Unit Trusts Limited, both regulated by the Financial Services Authority. Loans, 
Mortgages, Credit Cards and Savings provided by Direct Line Financial Services 
Limited, registered in England number 2372702, registered office 3 Edridge Road, 
Croydon, Surrey, CR9 1AG. All are members of the Royal Bank of Scotland Group.



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




RE: sym link problems with tomcat 4.1

2002-09-19 Thread Turner, John


All due respect to Remy, but there's no mention of the symbolic link issue
in my package, either.  I have the following two files in my 4.1.10 package
(binary):

Aug 30 08:48 RELEASE-NOTES-4.1.txt
Aug 30 08:48 RELEASE-PLAN-4.1.txt

Neither makes any mention of the issue.

John

 -Original Message-
 From: Erick Todd [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 12:11 PM
 To: Tomcat Users List
 Subject: Re: sym link problems with tomcat 4.1
 
 
 Aren't we feeling a little self righteous today!!
 
  I wonder why I even bother writing the release notes :-(
  
  Remy
 
 I don't have any release note that came with my tomcat 4.1.10.  In the
 linux tar.gz file I downloaded there is 1 release note, and 
 it does not
 mention symbolic links ANYWHERE!!
 
 If you would like to enlighten us all as to where you documented this
 change, so I could read it first hand, that would be fine.
 
 I would like to know why this change was made without 
 allowing an option
 to turn it off.  There are some good reasons to allow such a 
 situation.
 
 -E
 
  I wonder why I even bother writing the release notes :-(
  
  Remy
 
 On Thu, 2002-09-19 at 00:48, Remy Maucherat wrote:
  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:   
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 



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

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




  1   2   3   >