RE: log4j problem

2002-09-17 Thread Miguel Angel Mulero Martinez

Some application uses the Log4J system, but it has non ben initialized. Are
you using it? If yes, post here your code of initialization.

-Mensaje original-
De: Sébastien Col [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 17 de septiembre de 2002 1:08
Para: [EMAIL PROTECTED]
Asunto: log4j problem

Hi,
I have the following warning when I start Tomcat 4.1.10.

log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.

Any idea?
Thanks
Sebastien


--
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: Cant get 4.1.10 to run on Win2K

2002-09-17 Thread Miguel Angel Mulero Martinez

Hi Robert,

Yes! This seems the message error that I receive.

But, then, the bug continues in 4.1.10.

Anybody knows something about that?

Thanks!

-Mensaje original-
De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 17 de septiembre de 2002 4:24
Para: Tomcat Users List
Asunto: RE: Cant get 4.1.10 to run on Win2K

There is an Ant bug in 4.1.10 for JSPs.  Perhaps this is also related to
your problem.

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg65216.html

It works great for me.  I only install to C: drive though due to the Ant
bug.

rls





Miguel Angel Mulero Martinez [EMAIL PROTECTED]
09/16/2002 04:32 AM
Please respond to Tomcat Users List


To: Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: Cant get 4.1.10 to run on Win2K

Hi  Chris,

Ok! The drive installation can help. Here, I use drive D:, and fails, at
home I use another drive, but I have mounted it like a folder of C: , so
it's like if it was on C:.

So, you must be in the correct way: the drive of installation could give
problems.

Can anybody with tomcat 4.1.10 installed like a service of windows, tell
us
with drive uses and if it works well?

Thanks!!

-Mensaje original-
De: Christopher Watson [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 16 de septiembre de 2002 13:21
Para: Tomcat Users List
Asunto: RE: Cant get 4.1.10 to run on Win2K

Hi Miguel,

See interleaved below

 -Original Message-
 From: Miguel Angel Mulero Martinez
 [mailto:[EMAIL PROTECTED]]
 Sent: 16 September 2002 11:25
 To: Tomcat Users List
 Subject: RE: Cant get 4.1.10 to run on Win2K


 Hi Chris!

 Sorry, adding the user.dir option didn't work for me :-(

 Maybe it can be that I have spaces too in the path (also for
 catalina.home).

I have verified that user.dir works for me when using a directory name
with
spaces in it,
specifically when I installed it to
d:\jakarta tomcat\Tomcat 4.1

 When I change the path installation of tomcat, I will try another time.
Is
 strange, at home I have got it exactly in the same place and with the
same
 parameters (but under Windows XP) and it works great.

I had a similar situation.
I'm pretty sure it works 'out of the box'
if you install it onto the system drive (i.e. the one with \WINNT\system32
on it)
but not if you put it onto any other drive ??

Is this the same for you?

BTW I am using jdk1.3.1 and the non-LE version, but I think that's
probably
irrelevant

Christopher


 Miguel

 -Mensaje original-
 De: Christopher Watson [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes, 16 de septiembre de 2002 11:56
 Para: Tomcat Users List; Miguel Angel Mulero Martinez
 Asunto: RE: Cant get 4.1.10 to run on Win2K

 Miguel, List

 I seem to have fixed this by adding the following string value to the
 registry key for the tomcat service
 which on my system is one of the entries in
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
 4.1\Parameters

 NameValue
 JVM Option Number n -Duser.dir=v:\jakarta-tomcat

 where n is one higher than the greatest JVM Option Number already there
 and I also increased the value of JVM Option Count by one

 v:\jakarta-tomcat is my tomcat home directory
 which I note was already set up as the string value which reads

 JVM Option Number 1 -Dcatalina.home=v:\jakarta-tomcat

 As to WHY the catalina.home wasn't doing the trick, I have no idea

 Also, I haven't tested further than getting JSP to work, so I
 don't know if
 this fixes/breaks anything else.

 HTH

 Christopher Watson


--
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: For all those with JSP errors see if this applies

2002-09-17 Thread Miguel Angel Mulero Martinez

Thanks for all! Yes, this is the problem. I'm not an expert, but maybe
someone can tell what file must I replace in my tomcat installation and from
what source.

Miguel

-Mensaje original-
De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 17 de septiembre de 2002 5:08
Para: Tomcat Users List
Asunto: For all those with JSP errors see if this applies

There is a known bug with TC 4.1.10 when installing as a service to a
drive other than C:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387

It's fixed in CVS but you will have to wait for TC 4.1.11 if you don't
compile it yourself.

--
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: For all those with JSP errors see if this applies

2002-09-17 Thread Miguel Angel Mulero Martinez

I tried to download the attached files, but something fails (I download a
file called showattachment).

Maybe I need the CVS client installed?

-Mensaje original-
De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 17 de septiembre de 2002 8:56
Para: Tomcat Users List
Asunto: RE: For all those with JSP errors see if this applies

If you read the entire PR, toward the bottom you will see that it is
fixed.  I think Remy's fix was a new jasper-compiler.jar which he
attached.

You can try the jar file that Remy attached to the PR at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387
it might help.

But I would back up your current jar before trying it.  YMMV.  You are in
uncharted territories here so caveot emptor.

rls






Miguel Angel Mulero Martinez [EMAIL PROTECTED]
09/16/2002 11:40 PM
Please respond to Tomcat Users List


To: Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: For all those with JSP errors see if this
applies

Thanks for all! Yes, this is the problem. I'm not an expert, but maybe
someone can tell what file must I replace in my tomcat installation and
from
what source.

Miguel

-Mensaje original-
De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 17 de septiembre de 2002 5:08
Para: Tomcat Users List
Asunto: For all those with JSP errors see if this applies

There is a known bug with TC 4.1.10 when installing as a service to a
drive other than C:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387

It's fixed in CVS but you will have to wait for TC 4.1.11 if you don't
compile it yourself.

--
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]




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

2002-09-17 Thread Oliver . Lauer


Hi,

even if try the workaround

res.setHeader(Set-Cookie,KIB=a03056; Domain=.sk-koeln.de; Path=/);
res.setHeader(Set-Cookie,FStatus=a03056; Domain=.sk-koeln.de; Path=/);

only the last one (cookie) will be set ?

Does anybody know any workaround for that situation ?

Thanx
Oliver

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 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]




Antwort: Is there any way to...

2002-09-17 Thread Oliver . Lauer


You can see so in the tomcat logs. If something has failed you app will be
undeployed and this will be logged in your logs.

--

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

Mauro Daniel Ardolino [EMAIL PROTECTED] schrieb am 16.09.2002
20:22:36:

 ...know if an application was uploaded ok on Tomcat?

 I mean:
 I can see a folder corresponding to the .war file inside webapps folder,
 but I cannot execute the application.

 The application is Cocoon, and the .war file is the cocoon.war
 On the browser I type:
 http://localhost:8080/cocoon  (that's from the documentation of cocoon).

 (I'm not asking about Cocoon ;)

 Thanks.

 Mauro




 --
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar


 --
 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]




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

2002-09-17 Thread Oliver . Lauer


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;

Oliver

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 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]




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

2002-09-17 Thread Oliver . Lauer


Hi,

it seems to be a bug - see bug 10891 - bugzilla (07.17.2002)

Oliver
--

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 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]




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

2002-09-17 Thread Ralph Einfeldt

To add a header you have to use res.addHeader(). 

From the the Servlet Spec 2.3:

...setHeader ... a previous header is replaced by 
the new header. Where a set of header values exist 
for the name, the values are cleared and replaced 
with the new value...

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 16. September 2002 17:52
 An: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Betreff: Antwort: Re: Apache2 + Tomcat4.1.10 + coyote + jk2 + 
 cookies + winNT
 
 res.setHeader(Set-Cookie,KIB=a03056; Domain=.sk-koeln.de; Path=/);
 res.setHeader(Set-Cookie,FStatus=a03056; Domain=.sk-koeln.de; Path=/);
 

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




Re: Solved! Tomcat on port 80 without root, on Linux

2002-09-17 Thread Chuck Amadi

Nikola Milutinovic wrote:

 Mr. Tomcat wrote:

 Can I run Tomcat on port 80 not as root? seems to come up with some
 regularity on this list.  Web servers have to be able to safely process
 untrusted, dangerous data from any host on the Internet.  Obviously,
 they should run at the lowest possible privilege level, so that if the
 server is compromised, the attacker will be limited in what he can do.


 Every server should run at the lowest possible level, preferably in 
 CHROOT. The dissadvantage is the overhead and duplication of files. 
 Some of the most popular can be run this way, BIND, OpenSSH, (Sendmail 
 ?), Cyrus IMAP (just user part),...

 Java minimizes this problem.  Triggering a buffer overflow with some
 kind of input to Tomcat would be extremely difficult.  However, a web
 app might have a bug that allows an attacker to trick it into writing to
 a file which it shouldn't write to, or something like that.  The fewer
 things that the JVM itself can do, the better.  Hence, running the
 server as a special user with limited access is smart.  Running it as
 root is not smart, if it can possibly be avoided.


 True. Although, perhaps it is better to run a robust front-end in 
 heavy loaded environments, like Apache.

 There has been a long-standing misfeature in Unix that only root can
 bind to ports less than 1024 (privileged ports).


 This a flaming material - watch out! Every UNIX admin (like me) will 
 scream at the mention of this being a misfeature. If ports  1024 are 
 considered reserved for some services, then I really wouldn't want an 
 unpriviledged process to bind to any of them. That would mean that 
 even if I have a CHROOT-ed unpriviledged process, say DNS, that got 
 compromized, it could turn my server into a platform for any kind of 
 service, not just the one that got compromized.

 Usually, this means
 that Tomcat standalone must run as root, or the Linux NAT tools must be
 used to map port 80 to some higher port.  Running as root is obviously
 undesirable.  Using NAT may be a good idea, but it would be nice to have
 another option: Why not tweak the kernel to remove the security
 feature?


 Because we got used to UNIX semantics. Only root can bind to 
 priviledged ports and we either like it or got used to it.

 If you want to build a custom kernel that lets all users bind to low
 ports, edit this file in the kernel: include/net/sock.h, and change
 PROT_SOCK from 1024 to 0.  Recompile, install, and now any user can bind
 process to any port.

 Before you do this, make sure you think through all the implications of
 it.  If you have untrusted users on the machine with this modified
 kernel, they will now be able to run any kind of network services they
 want to.  This is obviously bad, so don't use this kind of kernel on any
 machine with untrusted users.  It could have other implications, too, so
 use this modification at your own risk.


 No user is trusted, as far as I'm concerned. Except fo root.

 Anyway, thanks for posting this to the knowledge base. Anybody doing 
 this better be sure (s)he knows what (s)he's doing.

 Nix.


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

Interesting topic as I have always stuck to the logic to run everything 
above 1024 Now I have got a clearer reason why.
Nice One!!

-- 
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: For all those with JSP errors see if this applies

2002-09-17 Thread Christopher Watson

Miguel

So do I, but it did download it as a winzip file,
so I renamed it to jasper-compiler.jar and looked at its contents with
winzip and it looks like its a good jar file.

- haven't actually tried it through ...

... because my user.dir fix works fine for me.

It might be worth another go if the above fails.
I can give you more detailed instructions,
or if you export and send me your reg key,
I can edit it and send it back

Christopher

 -Original Message-
 From: Miguel Angel Mulero Martinez
 [mailto:[EMAIL PROTECTED]]
 Sent: 17 September 2002 08:01
 To: Tomcat Users List
 Subject: RE: For all those with JSP errors see if this applies


 I tried to download the attached files, but something fails (I download a
 file called showattachment).

 Maybe I need the CVS client installed?

 -Mensaje original-
 De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 17 de septiembre de 2002 8:56
 Para: Tomcat Users List
 Asunto: RE: For all those with JSP errors see if this applies

 If you read the entire PR, toward the bottom you will see that it is
 fixed.  I think Remy's fix was a new jasper-compiler.jar which he
 attached.

 You can try the jar file that Remy attached to the PR at
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387
 it might help.

 But I would back up your current jar before trying it.  YMMV.  You are in
 uncharted territories here so caveot emptor.

 rls






 Miguel Angel Mulero Martinez [EMAIL PROTECTED]
 09/16/2002 11:40 PM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:RE: For all those with JSP errors see if this
 applies

 Thanks for all! Yes, this is the problem. I'm not an expert, but maybe
 someone can tell what file must I replace in my tomcat installation and
 from
 what source.

 Miguel

 -Mensaje original-
 De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 17 de septiembre de 2002 5:08
 Para: Tomcat Users List
 Asunto: For all those with JSP errors see if this applies

 There is a known bug with TC 4.1.10 when installing as a service to a
 drive other than C:

 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387

 It's fixed in CVS but you will have to wait for TC 4.1.11 if you don't
 compile it yourself.

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




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

2002-09-17 Thread Oliver . Lauer


Yes, meanwhile I know, too - little mistake...but even if I use addHeader()
only the last cookie will be used - seems to be da damned bug :-)


--

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

Ralph Einfeldt [EMAIL PROTECTED] schrieb am 17.09.2002
10:03:20:

 To add a header you have to use res.addHeader().

 From the the Servlet Spec 2.3:

 ...setHeader ... a previous header is replaced by
 the new header. Where a set of header values exist
 for the name, the values are cleared and replaced
 with the new value...

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 16. September 2002 17:52
  An: Tomcat Users List
  Cc: [EMAIL PROTECTED]
  Betreff: Antwort: Re: Apache2 + Tomcat4.1.10 + coyote + jk2 +
  cookies + winNT
 
  res.setHeader(Set-Cookie,KIB=a03056; Domain=.sk-koeln.de; Path=/);
  res.setHeader(Set-Cookie,FStatus=a03056; Domain=.sk-koeln.de;
Path=/);
 

 --
 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]




Forward vrs redirect to a welcome-file

2002-09-17 Thread Aviv Eliezer

Hi,

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

thanks so much!


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




Tomcat classloader and JNI questions

2002-09-17 Thread Eric Hollander

I am working on getting Jmagick to work with Tomcat-4.1 and JDK 1.4.  I
have heard that it is possible but no one can quite describe how so I've
been doing some experimentation with it.

It does work if I use this command to start Tomcat:


# LD_LIBRARY_PATH=/usr/local/lib java -Djava.endorsed.dirs= -classpath
/usr/java/j2sdk1.4.0_01/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar
-Dcatalina.base=/var/tomcat4 -Dcatalina.home=/var/tomcat4
-Djava.io.tmpdir=/var/tomcat4/temp org.apache.catalina.startup.Bootstrap
start

where of course the .so file is in /usr/local/lib.  So, I have two
questions related to this:

First, why should LD_LIBRARY_PATH be necessary?  I am doing this under
Linux, and I put /usr/local/lib in /etc/ld.conf, and reran ldconfig, so
I shouldn't need to set the LD_LIBRARY_PATH.  But if it is necessary, is
there some way to modify the startup scripts to take care of this, so I
can use them instead of having to start java directly from the command
line?

Second, it does not make sense to me that I have to include the
jmagick.jar in the classpath in the command line.  Tomcat's classloader
has many options and places to put things, but I tried putting the jar
in CATALINA_HOME/lib, CATALINA_HOME/common/lib, and WEB-INF/lib, and it
does not work in any of those cases.  The only way to get jmagick to
work is to add it to the command line classpath.  Is there any other
way, and if not, is there a way to modify the standard startup scripts
so that they include it, so I don't have to run java directly?

Thanks!  After I get this all figured out I'm going to write it up and
post it.  The good news is that Jmagick does definitely work with Tomcat
and JDK 1.4; the bad news is that it's not documented how to do this, so
I'll change that.


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




RE: Tomcat classloader and JNI questions

2002-09-17 Thread Miguel Angel Mulero Martinez

Have you tried CATALINA_HOME/server/lib?

-Mensaje original-
De: Eric Hollander [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 17 de septiembre de 2002 10:23
Para: [EMAIL PROTECTED]
Asunto: Tomcat classloader and JNI questions

I am working on getting Jmagick to work with Tomcat-4.1 and JDK 1.4.  I
have heard that it is possible but no one can quite describe how so I've
been doing some experimentation with it.

It does work if I use this command to start Tomcat:


# LD_LIBRARY_PATH=/usr/local/lib java -Djava.endorsed.dirs= -classpath
/usr/java/j2sdk1.4.0_01/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar
-Dcatalina.base=/var/tomcat4 -Dcatalina.home=/var/tomcat4
-Djava.io.tmpdir=/var/tomcat4/temp org.apache.catalina.startup.Bootstrap
start

where of course the .so file is in /usr/local/lib.  So, I have two
questions related to this:

First, why should LD_LIBRARY_PATH be necessary?  I am doing this under
Linux, and I put /usr/local/lib in /etc/ld.conf, and reran ldconfig, so
I shouldn't need to set the LD_LIBRARY_PATH.  But if it is necessary, is
there some way to modify the startup scripts to take care of this, so I
can use them instead of having to start java directly from the command
line?

Second, it does not make sense to me that I have to include the
jmagick.jar in the classpath in the command line.  Tomcat's classloader
has many options and places to put things, but I tried putting the jar
in CATALINA_HOME/lib, CATALINA_HOME/common/lib, and WEB-INF/lib, and it
does not work in any of those cases.  The only way to get jmagick to
work is to add it to the command line classpath.  Is there any other
way, and if not, is there a way to modify the standard startup scripts
so that they include it, so I don't have to run java directly?

Thanks!  After I get this all figured out I'm going to write it up and
post it.  The good news is that Jmagick does definitely work with Tomcat
and JDK 1.4; the bad news is that it's not documented how to do this, so
I'll change that.


--
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: For all those with JSP errors see if this applies

2002-09-17 Thread Miguel Angel Mulero Martinez

Hi Chris!

I renamed the file, unzip it, put into the jasper-compiler.jar and !!it
works!!

After some days now I have tomcat 4.1.10 working!

Thanks to all,
Miguel

-Mensaje original-
De: Christopher Watson [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 17 de septiembre de 2002 10:07
Para: Tomcat Users List
Asunto: RE: For all those with JSP errors see if this applies

Miguel

So do I, but it did download it as a winzip file,
so I renamed it to jasper-compiler.jar and looked at its contents with
winzip and it looks like its a good jar file.

- haven't actually tried it through ...

... because my user.dir fix works fine for me.

It might be worth another go if the above fails.
I can give you more detailed instructions,
or if you export and send me your reg key,
I can edit it and send it back

Christopher

 -Original Message-
 From: Miguel Angel Mulero Martinez
 [mailto:[EMAIL PROTECTED]]
 Sent: 17 September 2002 08:01
 To: Tomcat Users List
 Subject: RE: For all those with JSP errors see if this applies


 I tried to download the attached files, but something fails (I download a
 file called showattachment).

 Maybe I need the CVS client installed?

 -Mensaje original-
 De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 17 de septiembre de 2002 8:56
 Para: Tomcat Users List
 Asunto: RE: For all those with JSP errors see if this applies

 If you read the entire PR, toward the bottom you will see that it is
 fixed.  I think Remy's fix was a new jasper-compiler.jar which he
 attached.

 You can try the jar file that Remy attached to the PR at
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387
 it might help.

 But I would back up your current jar before trying it.  YMMV.  You are in
 uncharted territories here so caveot emptor.

 rls






 Miguel Angel Mulero Martinez [EMAIL PROTECTED]
 09/16/2002 11:40 PM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:RE: For all those with JSP errors see if this
 applies

 Thanks for all! Yes, this is the problem. I'm not an expert, but maybe
 someone can tell what file must I replace in my tomcat installation and
 from
 what source.

 Miguel

 -Mensaje original-
 De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 17 de septiembre de 2002 5:08
 Para: Tomcat Users List
 Asunto: For all those with JSP errors see if this applies

 There is a known bug with TC 4.1.10 when installing as a service to a
 drive other than C:

 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387

 It's fixed in CVS but you will have to wait for TC 4.1.11 if you don't
 compile it yourself.

 --
 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 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: For all those with JSP errors see if this applies

2002-09-17 Thread Robert L Sowders

That's it.  Just rename it to jasper-compiler.jar
For some reason all the files attachments that are retrieved from there 
get the name showattachment.zip




Miguel Angel Mulero Martinez [EMAIL PROTECTED]
09/17/2002 12:01 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: For all those with JSP errors see if this applies

I tried to download the attached files, but something fails (I download a
file called showattachment).

Maybe I need the CVS client installed?

-Mensaje original-
De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 17 de septiembre de 2002 8:56
Para: Tomcat Users List
Asunto: RE: For all those with JSP errors see if this applies

If you read the entire PR, toward the bottom you will see that it is
fixed.  I think Remy's fix was a new jasper-compiler.jar which he
attached.

You can try the jar file that Remy attached to the PR at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387
it might help.

But I would back up your current jar before trying it.  YMMV.  You are in
uncharted territories here so caveot emptor.

rls






Miguel Angel Mulero Martinez [EMAIL PROTECTED]
09/16/2002 11:40 PM
Please respond to Tomcat Users List


To: Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: For all those with JSP errors see if this
applies

Thanks for all! Yes, this is the problem. I'm not an expert, but maybe
someone can tell what file must I replace in my tomcat installation and
from
what source.

Miguel

-Mensaje original-
De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 17 de septiembre de 2002 5:08
Para: Tomcat Users List
Asunto: For all those with JSP errors see if this applies

There is a known bug with TC 4.1.10 when installing as a service to a
drive other than C:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387

It's fixed in CVS but you will have to wait for TC 4.1.11 if you don't
compile it yourself.

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




Re: Antwort: Is there any way to...

2002-09-17 Thread Robert L Sowders

you can see what the manager app has to say about it.

http://localhost:8080/manager/html/list

rls





[EMAIL PROTECTED]
09/16/2002 12:47 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Antwort: Is there any way to...


You can see so in the tomcat logs. If something has failed you app will be
undeployed and this will be logged in your logs.

--

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

Mauro Daniel Ardolino [EMAIL PROTECTED] schrieb am 16.09.2002
20:22:36:

 ...know if an application was uploaded ok on Tomcat?

 I mean:
 I can see a folder corresponding to the .war file inside webapps folder,
 but I cannot execute the application.

 The application is Cocoon, and the .war file is the cocoon.war
 On the browser I type:
 http://localhost:8080/cocoon  (that's from the documentation of cocoon).

 (I'm not asking about Cocoon ;)

 Thanks.

 Mauro




 --
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar


 --
 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]





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




RE: Apache/Tomcat Production Configuration

2002-09-17 Thread Ignacio J. Ortega

 De: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
 Enviado el: 17 de septiembre de 2002 2:11


Glenn,

 I haven't looked much into using jk2 for production yet 
 because it doesn't have the
 features I need and is still a relatively new codebase.
 

Which features do you need on jk2?

I think it's the right moment to ask for them, and include some new
ones.. too :))

Saludos ,
Ignacio J. Ortega

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




RE: For all those with JSP errors see if this applies

2002-09-17 Thread Christopher Watson

Works for me too - thanks very much for this

 -Original Message-
 From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Sent: 17 September 2002 10:22
 To: Tomcat Users List
 Subject: RE: For all those with JSP errors see if this applies


 That's it.  Just rename it to jasper-compiler.jar
 For some reason all the files attachments that are retrieved from there
 get the name showattachment.zip




 Miguel Angel Mulero Martinez [EMAIL PROTECTED]
 09/17/2002 12:01 AM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:RE: For all those with JSP errors see if
 this applies

 I tried to download the attached files, but something fails (I download a
 file called showattachment).

 Maybe I need the CVS client installed?

 -Mensaje original-
 De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 17 de septiembre de 2002 8:56
 Para: Tomcat Users List
 Asunto: RE: For all those with JSP errors see if this applies

 If you read the entire PR, toward the bottom you will see that it is
 fixed.  I think Remy's fix was a new jasper-compiler.jar which he
 attached.

 You can try the jar file that Remy attached to the PR at
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387
 it might help.

 But I would back up your current jar before trying it.  YMMV.  You are in
 uncharted territories here so caveot emptor.

 rls






 Miguel Angel Mulero Martinez [EMAIL PROTECTED]
 09/16/2002 11:40 PM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:RE: For all those with JSP errors see if this
 applies

 Thanks for all! Yes, this is the problem. I'm not an expert, but maybe
 someone can tell what file must I replace in my tomcat installation and
 from
 what source.

 Miguel

 -Mensaje original-
 De: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 17 de septiembre de 2002 5:08
 Para: Tomcat Users List
 Asunto: For all those with JSP errors see if this applies

 There is a known bug with TC 4.1.10 when installing as a service to a
 drive other than C:

 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12387

 It's fixed in CVS but you will have to wait for TC 4.1.11 if you don't
 compile it yourself.

 --
 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 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: Install JSSE?

2002-09-17 Thread Giorgio Ponza

I tried both the configurations (i mean JDK 1.3.1_03 + JSSE and JDK 1.4.0
alone) and both work.
If u follow exactly the ssl_howto, i dont think u can have problems.
Remember you need to change the port 8443 to 443 if u want your server be
visible in the net with the SSL enabled.
If u need help, ask.

Giorgio

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 16, 2002 7:21 PM
Subject: Install JSSE?


 The ssl_howto.html page on the tomcat website states that in order
 for tomcat to process https requests, I have to download and install the
 Java Secure sockets extension, however the JSSE page on
 www.java.sun.com/products/jsse
 states that jsse is packaged with the jdk 1.4, which is what I am running.
 I would think that would mean that I don't need to install the JSSE after
 all, but when I try to access my tomcat pages over a https connection,
 tomcat throws an exception stating that there was an error loading the
 SSL implementation.  Does that mean I need to install JSSE after all, and
 if so, is there anything special I need to do to get it to work with
 Tomcat on a Red-hat Server?


 --Monte Glenn Gardner



 --
 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 classloader and JNI questions

2002-09-17 Thread Mr. Tomcat

On Mon, 2002-09-16 at 22:39, Miguel Angel Mulero Martinez wrote:
 Have you tried CATALINA_HOME/server/lib?

Yes, I tried that.  It didn't work.  The ONLY way to get the JVM to load
the shared libs is if the jmagick.jar is in the classpath itself.  Would
this be considered a Tomcat bug, or is this just the way it is with JDK
1.4?  If this is the only way to do this, there should probably be an
extra config files for adding more jars to the JVM's own classpath. 
Should I file this as a bug?



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




Problems with redirect on IIS

2002-09-17 Thread Ingo Klose

Hello,

I installed Tomcat 4.0  on a Windows .Net Standard Server Version 2002 SP 1.
Tomcat itself runs fine, but I have problems with the redirect. When I use:

http://localhost:8080/examples/jsp/index.html - Successfull loading of the
JSP indext page
http://localhost/examples/jsp/index.html - Error page from IIS with a page
cannot be found error. The IIS log also shows an 404 error, but it indicates
that the isapi-redirect.dll is called.

Any idea where my problem could be? It seems like the redirect is configured
right, and Tomcat is running ok.

Since I tried all the steps on the How-To-page and it still doesn't work I
don't know what else to try.

Thank you very much for any help and support.

With Best regards,
Ingo Klose



RE: More info re: tomcat, 1.4 and jni for Jmagick

2002-09-17 Thread Rajesh Mishra


I was facing a similar linking error problem but with Tomcat 3.3a and
jdk1.3.1_03 on windows. Actually I was trying to make my own dll and then
calling that dll through jni calls from my servlet. I made a sample java
application to call that dll method and it was working fine. But when I was
trying to put packages in the same sample java program the same linking
error was coming .I then rebuilt the dll with package declaration and this
time it worked. I kept the dll in system's path. But I've not tested it
completely but you can give it a try. 

Thanks
Rajesh



-Original Message-
From: Mr. Tomcat [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 16, 2002 7:17 PM
To: Tomcat Users List
Subject: More info re: tomcat, 1.4 and jni for Jmagick


I did some more experimentation on this.  It seems that the way Tomcat's
classloader works is somehow preventing JNI from working.  The
LD_LIBRARY_PATH env variable is completely ignored.  No amount of
System.load() or System.loadLibrary() does anything.  The
java.library.path System property looks like this:

/usr/java/j2sdk1.4.0_01/jre/lib/i386/client
/usr/java/j2sdk1.4.0_01/jre/lib/i386
/usr/java/j2sdk1.4.0_01/jre/../lib/i386

but here is the weird part: even if I put the Jmagick and Imagemagick
shared libs in those directories in the JAVA_HOME, I still get a linking
error when I try to use them.

This is all with Tomcat 4.0.4 and JDK 1.4, with Linux.

So, the question is, can we still use JNIs with JDK 1.4, and if so,
how?  If there is no more JNI with JDK 1.4, is this something which is
being worked on, or do we have to move strictly to pure Java, or do we
need to go back to JDK 1.3?

Thanks!


--
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]




AW: Problem with Apache and mod_jk on Debian

2002-09-17 Thread Ralph Einfeldt

What error messages are in the log files ?

 -Ursprüngliche Nachricht-
 Von: Jean-Baptiste Onofré [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 17. September 2002 13:11
 An: [EMAIL PROTECTED]
 Betreff: Problem with Apache and mod_jk on Debian
 
 
 When i try to acces to a Tomcat manage URL (for exemple 
 /klo/), i have :
   Internal Server Error.
 

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




Problem with Apache and mod_jk on Debian

2002-09-17 Thread Jean-Baptiste Onofré

Re,

some precisions.
I have Apache 1.3.26 and not 1.3.16 (it's a typing mistake).

In logs i have :
in error.log from apache :
[Tue Sep 17 13:01:26 2002] [notice] Apache/1.3.26 (Unix) Debian
GNU/Linux mod_jk
/1.1.0 PHP/4.1.2 configured -- resuming normal operations
[Tue Sep 17 13:01:26 2002] [notice] suEXEC mechanism enabled
(wrapper: /usr/lib/
apache/suexec)
[Tue Sep 17 13:01:26 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Tue Sep 17 13:14:16 2002] [notice] caught SIGTERM, shutting down

no special things in tomcat log

-- 
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]




RE: Tomcat 4.0.2/IIS5.0 crashes!

2002-09-17 Thread Turner, John


Please Read The Friendly Manual for the driver. There are fairly
comprehensive docs available at the same URL I posted earlier, with exact
examples of how to call the driver.

John


 -Original Message-
 From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 16, 2002 7:30 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.0.2/IIS5.0 crashes!
 
 
 Hello:
 
 Thanks for the input on the Driver issue. I installed
 the updated driver from microsoft. One more question
 though! My database command still uses the jdbcodbc
 bridge. What would I have to change to make use of the
 driver provided by microsoft?
 
 Thanks
 VP
 
 --- Turner, John [EMAIL PROTECTED] wrote:
  
  There have already been replies to your first post
  on this topic.
  
  John
  
  
   -Original Message-
   From: Prashanth Pushpagiri
  [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 16, 2002 10:27 AM
   To: Tomcat Users List
   Subject: Tomcat 4.0.2/IIS5.0 crashes!
   
   
   Hello everyone:
   
   I am using tomcat 4.0.2 on windows 2000 (IIS 5.0)
  and
   SQL server 2000 as database. I try to connect to
  the
   database(which happens to be on the network) to
   perform search operations. Tomcat crashed while
  trying
   to access the site and perform search operations.
  On
   both occasions I was testing the site from a
  dial-up!
   I dont know how much of an influence the dial-up
  has.
   Here is the error file generated by tomcat. Any
   insights into this? I have tried thinking about
  what I
   may have done wrong when coding...cant seem to
  think
   of any. The site works perfectly well(I have
  tested it
   with as many as 50 simultaneous requests!).Thanks
  in
   advance for any advice...
   
   
   An unexpected exception has been detected in
  native
   code outside the VM.
   Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
   occurred at PC=0x77F821E1
   Function=RtlEnterCriticalSection+0xB
   Library=C:\WINNT\System32\ntdll.dll
   
   Current Java thread:
 at sun.jdbc.odbc.JdbcOdbc.fetch(Native Method)
 at
  
  sun.jdbc.odbc.JdbcOdbc.SQLFetch(JdbcOdbc.java:2585)
 at
  
 
 sun.jdbc.odbc.JdbcOdbcResultSet.next(JdbcOdbcResultSet.java:1295)
 at
  
 
 dlnet.Search.SearchDisplay.getLOIDDetails(SearchDisplay.java:87)
 at
  
 
 org.apache.jsp.SearchResults$jsp._jspService(SearchResults$jsp
   .java:286)
 at
  
 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
  
 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
   (JspServlet.java:202)
 at
  
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
   .java:382)
 at
  
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
  
 
 org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
   ionDispatcher.java:683)
 at
  
 
 org.apache.catalina.core.ApplicationDispatcher.doForward(Appli
   cationDispatcher.java:431)
 at
  
 
 org.apache.catalina.core.ApplicationDispatcher.forward(Applica
   tionDispatcher.java:355)
 at
  
 
 org.apache.jasper.runtime.PageContextImpl.forward(PageContextI
   mpl.java:414)
 at
  
 
 org.apache.jsp.SearchResults$jsp._jspService(SearchResults$jsp
   .java:119)
 at
  
 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
  
 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
   (JspServlet.java:202)
 at
  
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
   .java:382)
 at
  
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
  
 
 org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
   ionDispatcher.java:683)
 at
  
 
 org.apache.catalina.core.ApplicationDispatcher.doForward(Appli
   cationDispatcher.java:431)
 at
  
 
 org.apache.catalina.core.ApplicationDispatcher.forward(Applica
   tionDispatcher.java:355)
 at
  
 
 org.apache.jasper.runtime.PageContextImpl.forward(PageContextI
   mpl.java:414)
 at
  
 
 org.apache.jsp.Search$jsp._jspService(Search$jsp.java:186)
 at
  
 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
  
 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
   (JspServlet.java:202)
 at
  
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
   .java:382)
 at
  
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
   er(ApplicationFilterChain.java:247)

RE: Apache+Tomcat+JBoss Error (No Context configured)

2002-09-17 Thread Turner, John


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

 -Original Message-
 From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 16, 2002 7:17 PM
 To: [EMAIL PROTECTED]
 Subject: Apache+Tomcat+JBoss Error (No Context configured)
 
 
 Hi Experts,
 
 Greetings!
 
 Can you provide me with the Simple HellowWorld JSP/Servlet?
 I want to TEST is my servers are working fine. I am using Apache
 1.3.26, Tomcat 4.0.4, JBoss 3.0.3
 
 Also, can you list the Directory structure of placing Class 
 files, JSP 
 files, Servlet files, WAR/EAR/JAR files?
 
 In httpd.conf I have following for Apache to know about Tomcat:
 
 LoadModule jk_module  libexec/mod_jk.so
 JkWorkersFile /usr/local/apache1326/conf/workers.properties
 JKMount /examples/servlet/* ajp13
 JKMount /examples/*.jsp ajp13
 JKMount /uno/* ajp13
 
 
 In workers.properties I have following:
 
 workers.tomcat_home=/jboss/catalina
 workers.java_home=/usr/java130
 ps=/
 worker.list=ajp12, ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=168.179.100.241
 worker.ajp13.type=ajp13
 
 
 I have a simple JSP file uno.jsp as follows:
 
 %@ page import=java.text.*,java.util.*%
 
 Greetings from Manoj
 
 
 I created the WAR/EAR file (uno.ear; uno.war) and put those in
 /jboss/server/default/deploy directory.
 
 I then start my JBoss (Tomcat)first and then Apache and then 
 point my URL to
 http://IPADDRESS:8080/uno/uno.jsp on which I get following Error:
 
 Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured 
 to process
 this request
 
 
 Do I have to follow the same procedure for Servlets?
 
 Do you know what this Error is about and how to tackle that.
 
 THANKS!
 
 Manoj G. Kithany
 
 
 
 
 _
 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: Tomcat classloader and JNI questions

2002-09-17 Thread Cox, Charlie

put it in /common/lib and restart tomcat so that it sees it.

Tomcat completely ignores the classpath, so I'm not sure how that made a
difference here. 

Charlie

 -Original Message-
 From: Mr. Tomcat [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 5:47 AM
 To: Tomcat Users List
 Subject: RE: Tomcat classloader and JNI questions
 
 
 On Mon, 2002-09-16 at 22:39, Miguel Angel Mulero Martinez wrote:
  Have you tried CATALINA_HOME/server/lib?
 
 Yes, I tried that.  It didn't work.  The ONLY way to get the 
 JVM to load
 the shared libs is if the jmagick.jar is in the classpath 
 itself.  Would
 this be considered a Tomcat bug, or is this just the way it 
 is with JDK
 1.4?  If this is the only way to do this, there should probably be an
 extra config files for adding more jars to the JVM's own classpath. 
 Should I file this as a bug?
 
 
 
 --
 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]




Macromedia UltraDev doesn't' work with Tomcat4.0.4

2002-09-17 Thread Heligon Sandra


I am trying to use Macromedia UltraDev with Tomcat4.0.4, but only
the server
model JSP 1.0 is available in the site definition's dialog box.
Where can I find an extension in order to work with Tomcat4.0.4
(JSP1.1) ?

Thanks a lot in advance

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




RE: Any body built mod_jk.so for apache2.0 on Solaris

2002-09-17 Thread Turner, John


I have binaries for Solaris 8 available for download here, courtesy of
others on this list:

http://www.johnturner.com/howto

After that, the mod_jk configuration docs on the Tomcat site, or perhaps
even one of my HOWTOs might help you out.  The basic steps for mod_jk are
pretty easy, though that's not an indicator of how easy it is to get it to
work.  Some people have been having quite a bit of difficulty on the
configuration side.

John

 -Original Message-
 From: Narayana Reddy [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 16, 2002 7:16 PM
 To: [EMAIL PROTECTED]
 Subject: Any body built mod_jk.so for apache2.0 on Solaris
 
 
 Hi all
 
 I have tried all possible combinations on the mod_jk 
 documentation page on 
 the apache.org. Here the combinations
 
 1. Tried downloading binary version, but i guess there is no 
 binary for 
 Solaris ( There are binaries for linux, win2k, netware ).
 2. Downloaded tomcat 3.2.3 and 3.2.4 and tried to compile using 
 Makefile.linux under src/native/apache2.0. This option is giving 
 compilation errors on mod_jk.c. I am compiling gcc, would 
 comiling with 
 standard cc on Solaris would solve this Problem ? the apxs 
 command gives 
 same errors, as it also uses gcc internally to compile. 
 Besides the source 
 referes util_date.h and http_conf_globals.h both of them i 
 could not find 
 under apache2.0 installation, but were under apache1.3. Also 
 the build.sh 
 just builds tomcat , does not do any thing with mod_jk.so or 
 any thing like 
 that.
 
 
 So wondering if any body has built this stuff, please provide 
 me with details.
 
 Narayan 
 
 
 --
 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: Macromedia UltraDev doesn't' work with Tomcat4.0.4

2002-09-17 Thread Nigel . Byrnes


if you are looking for extensions to UD, you might want to ask the folks on
the Macromedia newsgroups/mailing lists. They are quite helpful.

Nigel

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


   
 
  Heligon Sandra   
 
  sandra.heligon@nTo:   
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
  extream.fr  cc: 
 
   Subject:  Macromedia UltraDev doesn't' 
work with Tomcat4.0.4 
  17/09/02 13:48   
 
  Please respond to
 
  Tomcat Users
 
  List
 
   
 
   
 





 I am trying to use Macromedia UltraDev with Tomcat4.0.4, but
only
the server
 model JSP 1.0 is available in the site definition's dialog
box.
 Where can I find an extension in order to work with
Tomcat4.0.4
(JSP1.1) ?

 Thanks a lot in advance

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





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: log4j problem

2002-09-17 Thread Sébastien Col

This is part of the mystery, I'm not using it... I installed the Tomcat
4.0.4 and I don't have this problem.

- Original Message -
From: Miguel Angel Mulero Martinez [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 17, 2002 2:25 AM
Subject: RE: log4j problem


 Some application uses the Log4J system, but it has non ben initialized.
Are
 you using it? If yes, post here your code of initialization.

 -Mensaje original-
 De: Sébastien Col [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 17 de septiembre de 2002 1:08
 Para: [EMAIL PROTECTED]
 Asunto: log4j problem

 Hi,
 I have the following warning when I start Tomcat 4.1.10.

 log4j:WARN No appenders could be found for logger
 (org.apache.commons.digester.Digester).
 log4j:WARN Please initialize the log4j system properly.

 Any idea?
 Thanks
 Sebastien


 --
 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]




Directory layout - virtual hosts in tomcat

2002-09-17 Thread mdevin

Hi all,

I am looking for some advice regarding the usual directory layout for
Virtual Hosts and tomcat.

Currently I have a working setup of apache and tomcat using mod_jk.  I
have set things up the way that tomcat seems to prefer (or what others
seem to have done based on the documentation I could find).

Essentially, I have apache and tomcat both using the same document root
so that apache will serve any static html pages and tomcat will do the
jsp and servlet stuff.  However, I am concerned that from a security
point of view, this may not be the best option.  In particular, this
means that my cgi-bin directory comes below my document root and I have
to explicitely deny access to the WEB-INF directory.

Anyway, I am a little confused as to the best way to go in terms of
security and at the same time most easily separable into Virtual Hosts
so that different people can work on their own projects without
interfering with others.

Any suggestions welcome.  In particular, I am interested in how others
have set up virtual hosts for tomcat.

Regards.
Mark.

Currently each of my Virtual Hosts has the following directory layout:

/www/hostname/  - all static html files
- also appBase to tomcat host
 /cgi-bin/  - perl cgi scripts etc.

I have configured Virtual hosts like follows in apache:
... cut ...
VirtualHost *
ServerName www.myhost.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /www/myhost
JKMount /servlet/* ajp13
JKMount /*.jsp ajp13
Directory /www/myhost/
AllowOverride None
Options Indexes
Order Deny,Allow
Allow from all
/Directory
ScriptAlias /cgi-bin/ /www/myhost/cgi-bin/
Directory /www/myhost/cgi-bin/
Allow from all
Options ExecCGI
/Directory
Location /WEB-INF/
deny from all
/Location
Location /META-INF/
deny from all
/Location
/VirtualHost

And I have the following in my server.xml file:
 ... cut ...
  Service name=Tomcat-Apache

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true acceptCount=10 debug=0/

Engine name=Tomcat-Apache defaultHost=localhost debug=0

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

  Realm className=org.apache.catalina.realm.MemoryRealm /

  ......
  ... snip localhost section ...
  ......

  !-- www.myhost.com VirtualHost --
  Host name=www.multistep.info debug=0 unpackWARs=false

Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=myhost_access_log. suffix=
  pattern=common /

Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=myhost_log. suffix=
  timestamp=true/

Context path= docBase=/www/myhost
  crossContext=false debug=0 reloadable=true /

  /Host
/Engine
  /Service
/Server



msg66027/pgp0.pgp
Description: PGP signature


Package structure missing in servlet.jar

2002-09-17 Thread Gary Labowitz

Have just downloaded Apache 4.0.4 and find servlet.jar in common\lib does
not have package structure. Is this correct?
Gary


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




Virtual Hosting and Contexts

2002-09-17 Thread Brian Topping

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 WebDAV
Require user topping
/Limit
/Location
JkMount /* tomcat1
/VirtualHost



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




Virtual Hosting + tomcat 4.1.10/mod_jk2/apache 2.0

2002-09-17 Thread Matt Sales

Hello,
I've searched through the list archives, and I've seen a lot of questions
but few answers to this issue..
I'm trying to implement virtual hosts on a linux server (RH7.2) using apache
2.0 with tomcat 4.1.10 and mod_jk2 (utilizing AF_UNIX sockets), without
getting into url rewriting.  I've seen some posts reference Apache
directives like JkUriSet, but haven't been able to find documentation for
these directives (in reference to jk2 other than the apache jk2 docs).

Ideally, it would be nice if a request to domainX.com would use context A
and domainY.com would use context B...  Has anybody implemented this?  The
only alternative I can think of is to use mod_rewrite on the Apache side.

Thanks in advance.


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




AJP13 connector question.

2002-09-17 Thread Dennis Muhlestein


What does this mean?  We get it fairly often during prime time on our
website.  We are using tomcat 4.1.10.  I haven't seen the end result on
the browser side when this happens.

2002-09-16 22:53:01 Ajp13Processor[8009][35] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

Thanks for any input.
-Dennis


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




RE: AJP13 connector question.

2002-09-17 Thread Cato, Christopher

It probably means that the user either closed his browser or hit refresh. If
it's during primetime, a reasonable suspicion could be that the page loads
really slow and the user gets frustrated.

/Christopher

 -Original Message-
 From: Dennis Muhlestein [mailto:[EMAIL PROTECTED]]
 Sent: den 17 september 2002 10:55
 To: [EMAIL PROTECTED]
 Subject: AJP13 connector question.
 
 
 
 What does this mean?  We get it fairly often during prime time on our
 website.  We are using tomcat 4.1.10.  I haven't seen the end 
 result on
 the browser side when this happens.
 
 2002-09-16 22:53:01 Ajp13Processor[8009][35] process: invoke
 java.net.SocketException: Socket closed
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at
 java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
 at
 java.net.SocketOutputStream.write(SocketOutputStream.java:126)
 at org.apache.ajp.Ajp13.send(Ajp13.java:525)
 at 
 org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
 at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
 at
 org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Respo
 nse.java:196)
 at
 org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
 at
 org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:536)
 
 Thanks for any input.
 -Dennis
 
 
 --
 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]




Java Development Environment for Emacs - anybody tried it ???

2002-09-17 Thread Mark Hansen

Has anybody worked with this tool for debugging Tomcat applications? -
http://jdee.sunsite.dk/

If so, could you let me know what you think of it.

Thanks,

Mark


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




jk connector

2002-09-17 Thread Thébault, Médérick

This URL

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1
.2.0/

does not have any files?

Do you know where I can find it?

Thanx

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




RE: jk connector

2002-09-17 Thread Turner, John


You have to build from source:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/src/

Or select from the binaries that I have collected from myself and others on
the list:

http://www.johnturner.com/howto

John


 -Original Message-
 From: Thébault, Médérick
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 11:16 AM
 To: Tomcat Users List
 Subject: jk connector
 
 
 This URL
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
 release/v1
 .2.0/
 
 does not have any files?
 
 Do you know where I can find it?
 
 Thanx
 
 --
 To unsubscribe, e-mail:   
 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]




Any timestamp for log file

2002-09-17 Thread lau bella


Hi,

I run the Tomcat 3.2.2 in w2k as a service. Not all log file in Tomcat have timestamp, 
it's not easy to trace error message. Any setting is needed in order to add timestamp 
in log file ?

Thanks



-
Do You Yahoo!?
Get your free yahoo.com.hk address at Yahoo! Mail.



Re: JSP Include error

2002-09-17 Thread Erick Todd

This isn't a SSI include.  It is a jsp include native to the jsp
specification?  I did enable SSI just for kicks, but it doesn't change
anything.

Anyone??  I am really frustrated.  What do I need to do to get rid of
the Illegal State Exception on a jsp:include?

I include on the first line, later, nested includes, none of them work.

HELP!!

On Mon, 2002-09-16 at 21:40, Robert L Sowders wrote:
 Did you follow directions?
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html
 
 rls
 
 
 
 
 Erick Todd [EMAIL PROTECTED]
 09/16/2002 01:30 PM
 Please respond to Tomcat Users List
 
  
 To: Tomcat Users List [EMAIL PROTECTED]
 cc: 
 Subject:JSP Include error
 
 Anyone had any problems with doing a jsp:include ??
 
 It justs throws an unknown error, not even to the screen.
 
 Anything I do with an jsp:include doesn't work.
 
 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]




Re: JSP Include error

2002-09-17 Thread Tim Funk

Like in a previous reply to this post - we need more information (like a 
code snippet) in order to provide a better answer.

You allude to Illegal State Exception. This can happen if you try any 
of the following:
- Attempt to set headers (like cookies) inside of a jsp:include
- Attempt a JSP forward inside of a jsp:include
- Probably another reason I can't think of right now


Erick Todd wrote:
 This isn't a SSI include.  It is a jsp include native to the jsp
 specification?  I did enable SSI just for kicks, but it doesn't change
 anything.
 
 Anyone??  I am really frustrated.  What do I need to do to get rid of
 the Illegal State Exception on a jsp:include?
 
 I include on the first line, later, nested includes, none of them work.
 
 HELP!!
 
 On Mon, 2002-09-16 at 21:40, Robert L Sowders wrote:
 
Did you follow directions?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html

rls




Erick Todd [EMAIL PROTECTED]
09/16/2002 01:30 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:JSP Include error

Anyone had any problems with doing a jsp:include ??

It justs throws an unknown error, not even to the screen.

Anything I do with an jsp:include doesn't work.

Ideas??






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




Re: JSP Include error

2002-09-17 Thread RSEQUEIRA


The IllegalStateException is being raised due to either of the following
reasons:
1) The included program (jsp or servlet) is attempting to set a response
header after the body of the response is sent or is being sent. Check that
you aren't setting any headers in the included jsp/servlet
2) If the included program is a servlet, it is using
response.getOutputStream() instead of response.getWriter()

RS



   

  Erick Todd   

  erick@coloradospTo:   Tomcat Users List 

  rings.com[EMAIL PROTECTED]   

   cc: 

  09/17/02 10:28 AMSubject:  Re: JSP Include error 

  Please respond to

  Tomcat Users

  List

   

   





This isn't a SSI include.  It is a jsp include native to the jsp
specification?  I did enable SSI just for kicks, but it doesn't change
anything.

Anyone??  I am really frustrated.  What do I need to do to get rid of
the Illegal State Exception on a jsp:include?

I include on the first line, later, nested includes, none of them work.

HELP!!

On Mon, 2002-09-16 at 21:40, Robert L Sowders wrote:
 Did you follow directions?
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html

 rls




 Erick Todd [EMAIL PROTECTED]
 09/16/2002 01:30 PM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:JSP Include error

 Anyone had any problems with doing a jsp:include ??

 It justs throws an unknown error, not even to the screen.

 Anything I do with an jsp:include doesn't work.

 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]







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




installing SSL

2002-09-17 Thread Monte . Gardner

I'm trying to get my Tomcat version 3.2  to work with SSL.  So far
I've done the following

1. downloaded the JSSE, unpacked the jars
2. placed the 3 JSSE jars in the $JAVA_HOME/lib/ext directoryy
3. placed the 3 JSSE jars in the $TOMCAT_HOME/lib directory
4. defined a JSSE_HOME variable to point to $TOMCAT_HOME/lib
5. included the JSSE_HOME directory in my PATH variable
6. created a certificate using keytool -genkey -alias tomcat - keyalg RSA
7. uncommented the following line of code in my TOMCAT_HOME/conf/server.xml
   Http10Connector  port=8443 secure=true / 

when I execute the startup.sh command, I get the following error:
EmbededTomcat: exception initializing ContextManager
org.apache.tomcat.core.TomcatException: Error loading SSLImplementation
at
org.apache.tomcat.modules.server.PoolTcpConnector.checkSocketFactory(PoolTcpConnector.java:202)
rest of stack trace snipped


Is there something more I need to put in my connector tag? Did I miss
a step?  What should I do?


--Monte Glenn Gardner



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




Instructions for building mod_jk (or mod_jk2) from source for Linux

2002-09-17 Thread Kenny G. Dubuisson, Jr.

Hello.  I'm looking for documentation on how to build (or possibly a binary
download of) the mod_jk.so module.  Thanks,
Kenny


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




RE: Instructions for building mod_jk (or mod_jk2) from source for Linux

2002-09-17 Thread Turner, John


http://www.johnturner.com/howto


 -Original Message-
 From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 11:44 AM
 To: [EMAIL PROTECTED]
 Subject: Instructions for building mod_jk (or mod_jk2) from source for
 Linux
 
 
 Hello.  I'm looking for documentation on how to build (or 
 possibly a binary
 download of) the mod_jk.so module.  Thanks,
 Kenny
 
 
 --
 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: Instructions for building mod_jk (or mod_jk2) from source for Linux

2002-09-17 Thread Kenny G. Dubuisson, Jr.

You are THE MAN.  Thanks, John

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, September 17, 2002 10:44 AM
Subject: RE: Instructions for building mod_jk (or mod_jk2) from source for
Linux



 http://www.johnturner.com/howto


  -Original Message-
  From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 17, 2002 11:44 AM
  To: [EMAIL PROTECTED]
  Subject: Instructions for building mod_jk (or mod_jk2) from source for
  Linux
 
 
  Hello.  I'm looking for documentation on how to build (or
  possibly a binary
  download of) the mod_jk.so module.  Thanks,
  Kenny
 
 
  --
  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: Apache2 and Tomcat4 on different boxes

2002-09-17 Thread Raj Mettai



thanks Daniel for you response, I have tried the options you suggested, 
tested telnet from apche to tomcat on port 8009, that worked fine and also 
configured apache/tomcat on each box(and they are working fine), then I have 
changed the host in workers.properties on apache box to point to tomcat box, but 
that didn't work for me. Can you please send me the config files(httpd.conf, 
workers.properties, mod_jk.conf and server.xml) from both machines, may be 
Iam missing some simpe thingAlso I am attaching my config 
files(httpd.conf,workers.properties from apache and server.xml from tomcat 
box.

apache server 10.103.2.30(neptune.broward.edu)
tomcat server 10.103.2.4(morpheus.broward.edu)
(both are running on solaris 8)

thanks again

-Raj [EMAIL PROTECTED] 09/15/02 07:53AM 
I had all kinds of problems getting apache to speak to a remote 
tomcat,and most of them were on the apache side.The only problem I had 
on the app (tomcat) server was having thefirewalls (yes there are 2 
firewalls between the web and app server, adedicated firewall box and the 
iptables/chains running on the actual appserver) blocking port 8009.You 
should also make sure that port 8009 is not blocked on the tomcatbox. An 
easy way to test this is have tomcat running and from your webserver just 
telnet into port 8009 of your tomcat box. You shouldconnect, otherwise you 
need to sort out firewall rules first.The problems I had on the apache 
side were basically not having mod_jkwork properly.I found out that the 
best way of approaching the apache/tomcat ondifferent boxes task is to 
install and test apache/tomcat on each boxindividually. When they both work, 
then just change your apache-sideworkers.properties to point at the right 
host (by IP address worked forme).Also, try just JkMount'ing 
/examples outside the Virtual Server block.It's best to troubleshoot a pure 
mod_jk connectivity issue, excludingstuff like vhost context 
mismatches.I now have apache 2.0.40 speak with a remote tomcat 4.1.10 
via mod_jk2,which I must say was easier to accomplish, simply because the 
4.1.10connectors source compiles a lot better.RegardsDaniel 
Farinha-Original Message-From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: 13 
September 2002 20:56To: [EMAIL PROTECTED]Subject: RE: 
Apache2 and Tomcat4 on different boxesHi, I had hostname on 
server.xml and IP in workers.properties, I havechanged both to IP. But 
still, apache does not talk to tomcat. They workfine when they are on the 
same box, also, do I need to stutdown port8080 on tomcat, because tomcat is 
accessible thru his port.Here are my latest config 
files..workers.properties--worker.ajp13.port=8009worker.ajp13.host=neptune.broward.eduworker.ajp13.type=ajp13--httpd.conf-IfModule 
!mod_jk.c LoadModule jk_module 
/usr/local/apache/modules/mod_jk.so/IfModuleJkWorkersFile 
"/usr/local/apache/conf/workers.properties"JkLogFile 
"/usr/local/apache/logs/mod_jk.log"JkLogLevel 
debugVirtualHost morpheus.broward.eduServerName 
morpheus.broward.eduJkMount /examples ajp13JkMount /examples/* 
ajp13JkMount /manager ajp13JkMount /manager/* ajp13JkMount 
/FCCSC ajp13JkMount /FCCSC/* ajp13JkMount / ajp13JkMount /* 
ajp13/VirtualHost-server.xml(host 
param)- 
Host name="neptune.broward.edu" debug="0" 
appBase="webapps"unpackWARs="true" 
Listener 
className="org.apache.ajp.tomcat4.config.ApacheConfig"append="true" 
/-Thanks 
a lot-Raj [EMAIL PROTECTED] 09/13/02 03:18PM 
You have to have the hostnames the same, all the way 
through. Don't mixIP addresses and hostnames.Does worker.ajp13.host 
equal the Host element's name parameter inserver.xml on the Tomcat 
box?Also, does this app work with Tomcat on the same box? 
John -Original Message- From: Raj Mettai 
[mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 13, 2002 3:12 PM To: 
[EMAIL PROTECTED] Subject: Apache2 and Tomcat4 on different 
boxes   Hi all,  Here is my apache and 
tomcat configuration.  apache installed on 
morpheus.broward.edu(10.103.2.4) and tomcat on  
neptune.broward.edu(10.103.2.30), I have copied the mod_jk.conf code  
from tomcat machine to apache httd.conf and also copied  
workers.properties to apache box and also modified the host parm to  
tomcat server.(both are running on solaris 8 using connector mod_jk). 
 when I try to access the page from apache box, I am getting 404 
error...  Here is worker.properties files 
---  
worker.ajp13.port=8009  

Re: Java Development Environment for Emacs - anybody tried it ???

2002-09-17 Thread Nigel . Byrnes


Your mail is kinda off-topic for this list.

Nonetheless, I code in emacs with JDE. I do not stretch it to it's limits,
but i think it is fine. It has hooks for your debugger jdb/jpda and etags.
My only gripe is to do with the indentation style forced on the developer.
When I coded C, I used the whitesmith indentation style, e.g.

void foo (String bar)
{
  if (bar != null)
  {
// ...
  }
  else
  {
// ..
  }
}

which i prefer over the JDE/java indentation style

void foo (String bar)
{
  if (bar != null) {
// ...
  }
  else {
  // ...
  }
}


Nigel

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


   
 
  Mark Hansen
 
  [EMAIL PROTECTED]To:   Tomcat Users List 
[EMAIL PROTECTED]   
  om  cc: 
 
   Subject:  Java Development Environment 
for Emacs - anybody tried it ???  
  17/09/02 16:06   
 
  Please respond to
 
  Tomcat Users
 
  List
 
   
 
   
 




Has anybody worked with this tool for debugging Tomcat applications? -
http://jdee.sunsite.dk/

If so, could you let me know what you think of it.

Thanks,

Mark


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





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]




JaspException: Variable may not have been initialized

2002-09-17 Thread Xiaoyu Zhang


Hi all,

I am running tomcat 4.0.3-LE-JDK1.4 on solaris 8. While my tomcat compiles a
nested tag, it always complains about :

Variable _jspx_eval_itrack_href_7 may not have been initialized

Note: _jspx_eval_itrack_href_7 is a new HRefTag().

Is it a tomcat 4.0.3 bug?

Thanks,
Xiaoyu


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




this is a bug, right?

2002-09-17 Thread Craig Longman


when i've done an import (either using the c:insert or tiles:insert) i
find that many of the request.getXXX methods relating to the URL produce
bogus results.  here is what i get (from an included file):

getRequestURI():
HEAD
 TITLEre
getPathInfo(): null
getPathTranslated(): null
getRequestURL(): http://server.tomcat.begeek.com
HEAD
 TITLEre
getServletPath(): /debug2.jsp

i cannot find any docs that suggest that once redirected via a
RequestDispatcher that these request methods are no longer reliable.

i have asked this question before but received no answer.  since then, i
have narrowed it down to occurring only in an inserted file.  please
confirm for me this is a problem and i can submit it as a bug.

btw, this is tomcat 4.1.10 that i'm using.

-- 

CraigL-Thx();
Be Developer ID: 5852




signature.asc
Description: This is a digitally signed message part


Re: Project X: XmlDocument and XmlDocumentBuilder mapping?

2002-09-17 Thread micael

Many thanks, Salim!

At 10:29 AM 9/17/2002 +0530, you wrote:
use Document and DocumentBuilder and DocumentBuilderFactory classes.
You can get help on this at jakarta site on crimson xml parser
--
Salim
- Original Message -
From: micael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 17, 2002 6:14 AM
Subject: Project X: XmlDocument and XmlDocumentBuilder mapping?


  What classes do I use instead of the project X classes XmlDocument and
  XmlDocumentBuilder if I want to use the xerces parser that comes with
  Tomcat 4.1?
 
 
 
  --
  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: Instructions for building mod_jk (or mod_jk2) from source for Linux

2002-09-17 Thread Turner, John


No problem, glad to help.

John


 -Original Message-
 From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 11:47 AM
 To: Tomcat Users List
 Subject: Re: Instructions for building mod_jk (or mod_jk2) from source
 for Linux
 
 
 You are THE MAN.  Thanks, John
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, September 17, 2002 10:44 AM
 Subject: RE: Instructions for building mod_jk (or mod_jk2) 
 from source for
 Linux
 
 
 
  http://www.johnturner.com/howto
 
 
   -Original Message-
   From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, September 17, 2002 11:44 AM
   To: [EMAIL PROTECTED]
   Subject: Instructions for building mod_jk (or mod_jk2) 
 from source for
   Linux
  
  
   Hello.  I'm looking for documentation on how to build (or
   possibly a binary
   download of) the mod_jk.so module.  Thanks,
   Kenny
  
  
   --
   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: basic question

2002-09-17 Thread Andreas Probst

Hi all!

If you have a HttpServletRequest req,

you can get 

String contextPath = req.getContextPath();

This would give you /myapp.

My question is: How can I get to know the context path in 
init(), where I don't have a HttpServletRequest?

 have you tried using getServletContext() or
 getServletContextName()
 
I have the impression this works only if you have a context 
specified in server.xml.

Andreas

 Regards
 Prashanth
 
 
 --- Ashish Kulkarni [EMAIL PROTECTED] wrote:
  Hi,
  Sorry for asking a very basic question, but i need
  to
  know the answer
  Suppose i have a URL like below
  http://localhost:8080/myapp/index.jsp
  
  how can i find in servlet or jsp what is the
  application name
  like in the above case it is myapp, 
  suppose there is other URL 
  http://localhost:8080/myapp1/index.jsp
  how can i get value of myapp1 (it can be any
  thing)in
  my jsp or servlet
  Ashish
  
  __
  Do you Yahoo!?
  Yahoo! News - Today's headlines
  http://news.yahoo.com
  
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! News - Today's headlines
 http://news.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: JSP Include error HELP!

2002-09-17 Thread Erick Todd

Ok here is more info.  These pages all work on tomcat 3 right now.  I
have stripped down the page to the bare problem and still get the error.

I downgraded to Tomcat 4.0.4 because 4.1.10 has a problem doing regular
static include across a symbolic link.  But for this problem of dynamic
including, I have to use jsp:include because the String largeAd actually
comes from a parent page.  But even in this simple situation, nothing
works.   What am I doing wrong, configuration, JVM??

I use the jdk1.4.1.  If I change the jsp:include to a %@ include . ..
Everything works fine, but I have to be able to pass the string into the
include, so I have to use jsp:include.
Again, this works in all the older tomcats.  I just now upgrade from 3.2
to 4.0.4.

Lastly, I am on redhat linux 7.0 and 7.3

Here is the jsp page.  Down to only 2 lines.
%String  largeAd=/includes/468x60ad.inc;%
jsp:include page=%=largeAd% flush=true/

The contents of /includes.468x60ad.inc are just 5 lines of
html/javascript.

That's it.  I use mod_jk, (jk1) do a JkMount for the virtual host for
*.jsp.  The server xml for this domain is:
Host name=cscom2.coloradosprings.com
Context path= docBase=/www/sites/cscom/cscom debug=0
reloadable=true 
/Context
   /Host

And finally the stack trace from the log is:

2002-09-17 10:20:59 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
java.lang.IllegalStateException
at
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:63)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 

Re: JSP Include error HELP!

2002-09-17 Thread Tim Funk

I can reproduce this - strange. Can you try either of the following:


%String  largeAd=/includes/468x60ad.txt;%
jsp:include page=%=largeAd% flush=true/

OR

 InputStream ps = 
application.getResourceAsStream(/includes/468x60ad.inc);
 if (ps!=null) {
 byte[] buffer = new byte[1024];
 int read = ps.read(buffer);
 while (read0) {
 out.print(new String(buffer, 0, read));
 read = ps.read(buffer);
 }
 ps.close();
 }



Erick Todd wrote:
 Ok here is more info.  These pages all work on tomcat 3 right now.  I
 have stripped down the page to the bare problem and still get the error.
 
 I downgraded to Tomcat 4.0.4 because 4.1.10 has a problem doing regular
 static include across a symbolic link.  But for this problem of dynamic
 including, I have to use jsp:include because the String largeAd actually
 comes from a parent page.  But even in this simple situation, nothing
 works.   What am I doing wrong, configuration, JVM??
 
 I use the jdk1.4.1.  If I change the jsp:include to a %@ include . ..
 Everything works fine, but I have to be able to pass the string into the
 include, so I have to use jsp:include.
 Again, this works in all the older tomcats.  I just now upgrade from 3.2
 to 4.0.4.
 
 Lastly, I am on redhat linux 7.0 and 7.3
 
 Here is the jsp page.  Down to only 2 lines.
 %String  largeAd=/includes/468x60ad.inc;%
 jsp:include page=%=largeAd% flush=true/
 
 The contents of /includes.468x60ad.inc are just 5 lines of
 html/javascript.
 
 That's it.  I use mod_jk, (jk1) do a JkMount for the virtual host for
 *.jsp.  The server xml for this domain is:
   Host name=cscom2.coloradosprings.com
 Context path= docBase=/www/sites/cscom/cscom debug=0
 reloadable=true 
 /Context
/Host
 
 And finally the stack trace from the log is:
 
 2002-09-17 10:20:59 StandardWrapperValve[jsp]: Servlet.service() for
 servlet jsp threw exception
 java.lang.IllegalStateException
 at
 
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
 at
 org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)
 at
 org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
 at
 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
 at
 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)
 at org.apache.jsp.index$jsp._jspService(index$jsp.java:63)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at
 

Re: Apache+Tomcat+JBoss Error (No Context configured)

2002-09-17 Thread Philippe de M. Sevestre

Are you running the JBoss+Tomcat bundle or running
them in two distinct VMs ?

The drop-in deployment feature of wars in JBoss is
only available when running the whole thing in a single VM.


- Original Message -
From: Manoj Kithany [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: segunda-feira, 16 de setembro de 2002 20:16
Subject: Apache+Tomcat+JBoss Error (No Context configured)


 Hi Experts,

 Greetings!

 Can you provide me with the Simple HellowWorld JSP/Servlet?
 I want to TEST is my servers are working fine. I am using Apache
 1.3.26, Tomcat 4.0.4, JBoss 3.0.3

 Also, can you list the Directory structure of placing Class files, JSP
 files, Servlet files, WAR/EAR/JAR files?

 In httpd.conf I have following for Apache to know about Tomcat:
 
 LoadModule jk_module  libexec/mod_jk.so
 JkWorkersFile /usr/local/apache1326/conf/workers.properties
 JKMount /examples/servlet/* ajp13
 JKMount /examples/*.jsp ajp13
 JKMount /uno/* ajp13
 

 In workers.properties I have following:
 
 workers.tomcat_home=/jboss/catalina
 workers.java_home=/usr/java130
 ps=/
 worker.list=ajp12, ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=168.179.100.241
 worker.ajp13.type=ajp13
 

 I have a simple JSP file uno.jsp as follows:
 
 %@ page import=java.text.*,java.util.*%

 Greetings from Manoj

 
 I created the WAR/EAR file (uno.ear; uno.war) and put those in
 /jboss/server/default/deploy directory.

 I then start my JBoss (Tomcat)first and then Apache and then point my URL
to
 http://IPADDRESS:8080/uno/uno.jsp on which I get following Error:
 
 Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process
 this request
 

 Do I have to follow the same procedure for Servlets?

 Do you know what this Error is about and how to tackle that.

 THANKS!

 Manoj G. Kithany




 _
 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: Apache+Tomcat+JBoss Error (No Context configured)

2002-09-17 Thread Manoj Kithany

Hi Mr. Phil,

I am using Jboss+Tomcat Bundle.

Thanks!

Manoj G. Kithany



From: Philippe de M. Sevestre [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 14:22:09 -0300

Are you running the JBoss+Tomcat bundle or running
them in two distinct VMs ?

The drop-in deployment feature of wars in JBoss is
only available when running the whole thing in a single VM.


- Original Message -
From: Manoj Kithany [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: segunda-feira, 16 de setembro de 2002 20:16
Subject: Apache+Tomcat+JBoss Error (No Context configured)


  Hi Experts,
 
  Greetings!
 
  Can you provide me with the Simple HellowWorld JSP/Servlet?
  I want to TEST is my servers are working fine. I am using Apache
  1.3.26, Tomcat 4.0.4, JBoss 3.0.3
 
  Also, can you list the Directory structure of placing Class files, JSP
  files, Servlet files, WAR/EAR/JAR files?
 
  In httpd.conf I have following for Apache to know about Tomcat:
  
  LoadModule jk_module  libexec/mod_jk.so
  JkWorkersFile /usr/local/apache1326/conf/workers.properties
  JKMount /examples/servlet/* ajp13
  JKMount /examples/*.jsp ajp13
  JKMount /uno/* ajp13
  
 
  In workers.properties I have following:
  
  workers.tomcat_home=/jboss/catalina
  workers.java_home=/usr/java130
  ps=/
  worker.list=ajp12, ajp13, ajp14
  worker.ajp13.port=8009
  worker.ajp13.host=168.179.100.241
  worker.ajp13.type=ajp13
  
 
  I have a simple JSP file uno.jsp as follows:
  
  %@ page import=java.text.*,java.util.*%
 
  Greetings from Manoj
 
  
  I created the WAR/EAR file (uno.ear; uno.war) and put those in
  /jboss/server/default/deploy directory.
 
  I then start my JBoss (Tomcat)first and then Apache and then point my 
URL
to
  http://IPADDRESS:8080/uno/uno.jsp on which I get following Error:
  
  Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process
  this request
  
 
  Do I have to follow the same procedure for Servlets?
 
  Do you know what this Error is about and how to tackle that.
 
  THANKS!
 
  Manoj G. Kithany


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


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




Re: JSP Include error HELP!

2002-09-17 Thread Erick Todd

The second one works, however it does write a warning to the logs that
the JSPNote javac.main has been depracated.  Do you know why that is? 
So I would say that something is wrong with jsp:include.  However I
really don't want to rewrite every jsp:include across all of my jsp
pages!!

Any idea why the straight include won't work?  Hey I really appreciate
all the help here!!

Or should I consider getting the source, rewriting jsp:include and
re-compile?!?

Erick

On Tue, 2002-09-17 at 10:51, Tim Funk wrote:
 I can reproduce this - strange. Can you try either of the following:
 
 
 %String  largeAd=/includes/468x60ad.txt;%
 jsp:include page=%=largeAd% flush=true/
 
 OR
 
  InputStream ps = 
 application.getResourceAsStream(/includes/468x60ad.inc);
  if (ps!=null) {
  byte[] buffer = new byte[1024];
  int read = ps.read(buffer);
  while (read0) {
  out.print(new String(buffer, 0, read));
  read = ps.read(buffer);
  }
  ps.close();
  }
 
 
 
 Erick Todd wrote:
  Ok here is more info.  These pages all work on tomcat 3 right now.  I
  have stripped down the page to the bare problem and still get the error.
  
  I downgraded to Tomcat 4.0.4 because 4.1.10 has a problem doing regular
  static include across a symbolic link.  But for this problem of dynamic
  including, I have to use jsp:include because the String largeAd actually
  comes from a parent page.  But even in this simple situation, nothing
  works.   What am I doing wrong, configuration, JVM??
  
  I use the jdk1.4.1.  If I change the jsp:include to a %@ include . ..
  Everything works fine, but I have to be able to pass the string into the
  include, so I have to use jsp:include.
  Again, this works in all the older tomcats.  I just now upgrade from 3.2
  to 4.0.4.
  
  Lastly, I am on redhat linux 7.0 and 7.3
  
  Here is the jsp page.  Down to only 2 lines.
  %String  largeAd=/includes/468x60ad.inc;%
  jsp:include page=%=largeAd% flush=true/
  
  The contents of /includes.468x60ad.inc are just 5 lines of
  html/javascript.
  
  That's it.  I use mod_jk, (jk1) do a JkMount for the virtual host for
  *.jsp.  The server xml for this domain is:
  Host name=cscom2.coloradosprings.com
  Context path= docBase=/www/sites/cscom/cscom debug=0
  reloadable=true 
  /Context
 /Host
  
  And finally the stack trace from the log is:
  
  2002-09-17 10:20:59 StandardWrapperValve[jsp]: Servlet.service() for
  servlet jsp threw exception
  java.lang.IllegalStateException
  at
  
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
  at
  org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)
  at
  org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
  at
  
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
  at
  
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
  at
  org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)
  at org.apache.jsp.index$jsp._jspService(index$jsp.java:63)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
  at
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
  at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  at
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
  at
  

RE: Any body built mod_jk.so for apache2.0 on Solaris

2002-09-17 Thread Narayana Reddy

Hi John

Thanks for the response. I have looked at your website ( not extensively 
though ), but the combination i need is not on your site. I need the 
following combination

apache2.0 + tomcat 3.2.3 + mod_jk.so

I have a mod_jk.so for apache1.3 which does not work with apache2.0 . So i 
figured, i have to compile a new mod_jk.so for apache2.0. Am i correct in 
assuming this ?

In Other Words is mod_jk.so solely depends on tomcat version or it depends 
on both tomcat and Apache.

To Give you little more back ground, We used to have

apache1.3 + tomcat3.2.3 + mod_jk.so

Now our infrastructure group is asking every body to migrate to apache2.0, 
but we need to keep the tomcat3.2.3, because we have an application that is 
certified to run only on this version. I am not sure if it would run 
tomcat4.x. So basically i am looking for tomcat3.x tomcat mod_jk, because 
the documentation on Apache.org says mod_jk of 3.3.x is downward compatible.

Hopefully i am clear enough, if not ask me for more details.

Thanks
Narayan

At 09:07 AM 9/17/2002 -0400, you wrote:

I have binaries for Solaris 8 available for download here, courtesy of
others on this list:

http://www.johnturner.com/howto

After that, the mod_jk configuration docs on the Tomcat site, or perhaps
even one of my HOWTOs might help you out.  The basic steps for mod_jk are
pretty easy, though that's not an indicator of how easy it is to get it to
work.  Some people have been having quite a bit of difficulty on the
configuration side.

John

  -Original Message-
  From: Narayana Reddy [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 16, 2002 7:16 PM
  To: [EMAIL PROTECTED]
  Subject: Any body built mod_jk.so for apache2.0 on Solaris
 
 
  Hi all
 
  I have tried all possible combinations on the mod_jk
  documentation page on
  the apache.org. Here the combinations
 
  1. Tried downloading binary version, but i guess there is no
  binary for
  Solaris ( There are binaries for linux, win2k, netware ).
  2. Downloaded tomcat 3.2.3 and 3.2.4 and tried to compile using
  Makefile.linux under src/native/apache2.0. This option is giving
  compilation errors on mod_jk.c. I am compiling gcc, would
  comiling with
  standard cc on Solaris would solve this Problem ? the apxs
  command gives
  same errors, as it also uses gcc internally to compile.
  Besides the source
  referes util_date.h and http_conf_globals.h both of them i
  could not find
  under apache2.0 installation, but were under apache1.3. Also
  the build.sh
  just builds tomcat , does not do any thing with mod_jk.so or
  any thing like
  that.
 
 
  So wondering if any body has built this stuff, please provide
  me with details.
 
  Narayan
 
 
  --
  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: JSP Include error HELP!

2002-09-17 Thread Erick Todd

Furthermore, I can't just read in the file, because in the real life
situation, it will have jsp code that needs to be executed in it.

-E
On Tue, 2002-09-17 at 11:01, Erick Todd wrote:
 The second one works, however it does write a warning to the logs that
 the JSPNote javac.main has been depracated.  Do you know why that is? 
 So I would say that something is wrong with jsp:include.  However I
 really don't want to rewrite every jsp:include across all of my jsp
 pages!!
 
 Any idea why the straight include won't work?  Hey I really appreciate
 all the help here!!
 
 Or should I consider getting the source, rewriting jsp:include and
 re-compile?!?
 
 Erick
 
 On Tue, 2002-09-17 at 10:51, Tim Funk wrote:
  I can reproduce this - strange. Can you try either of the following:
  
  
  %String  largeAd=/includes/468x60ad.txt;%
  jsp:include page=%=largeAd% flush=true/
  
  OR
  
   InputStream ps = 
  application.getResourceAsStream(/includes/468x60ad.inc);
   if (ps!=null) {
   byte[] buffer = new byte[1024];
   int read = ps.read(buffer);
   while (read0) {
   out.print(new String(buffer, 0, read));
   read = ps.read(buffer);
   }
   ps.close();
   }
  
  
  
  Erick Todd wrote:
   Ok here is more info.  These pages all work on tomcat 3 right now.  I
   have stripped down the page to the bare problem and still get the error.
   
   I downgraded to Tomcat 4.0.4 because 4.1.10 has a problem doing regular
   static include across a symbolic link.  But for this problem of dynamic
   including, I have to use jsp:include because the String largeAd actually
   comes from a parent page.  But even in this simple situation, nothing
   works.   What am I doing wrong, configuration, JVM??
   
   I use the jdk1.4.1.  If I change the jsp:include to a %@ include . ..
   Everything works fine, but I have to be able to pass the string into the
   include, so I have to use jsp:include.
   Again, this works in all the older tomcats.  I just now upgrade from 3.2
   to 4.0.4.
   
   Lastly, I am on redhat linux 7.0 and 7.3
   
   Here is the jsp page.  Down to only 2 lines.
   %String  largeAd=/includes/468x60ad.inc;%
   jsp:include page=%=largeAd% flush=true/
   
   The contents of /includes.468x60ad.inc are just 5 lines of
   html/javascript.
   
   That's it.  I use mod_jk, (jk1) do a JkMount for the virtual host for
   *.jsp.  The server xml for this domain is:
 Host name=cscom2.coloradosprings.com
   Context path= docBase=/www/sites/cscom/cscom debug=0
   reloadable=true 
   /Context
  /Host
   
   And finally the stack trace from the log is:
   
   2002-09-17 10:20:59 StandardWrapperValve[jsp]: Servlet.service() for
   servlet jsp threw exception
   java.lang.IllegalStateException
   at
   
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
   at
   
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)
   at
   org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
   
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
   at
   
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
   at
   
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
   at
   org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)
   at org.apache.jsp.index$jsp._jspService(index$jsp.java:63)
   at
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
   
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
   at
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
   at
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
   
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at
   
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at
   
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   at
   org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at
   

Re: JSP Include error HELP!

2002-09-17 Thread Tim Funk

I'm not sure about the compile warning.

I think it has to do with mime types needing to be decalred in web.xml.

For example: I have the following pages:
foo.jsp with the contents

hello jsp:include flush='false'  page=foo1.timisastoopidhead/

And the file foo1.timisastoopidhead exists. And voila - I get the wacky 
exception.

BUT if add the following to web.xml:
   mime-mapping
 extensiontimisastoopidhead/extension
 mime-typetext/plain/mime-type
   /mime-mapping

And restart tomcat (not reload, restart) - all is ok.


So the moral of the story seems - register you file extension/mime type 
in web.xml if you want to include it as a file.




Erick Todd wrote:
 The second one works, however it does write a warning to the logs that
 the JSPNote javac.main has been depracated.  Do you know why that is? 
 So I would say that something is wrong with jsp:include.  However I
 really don't want to rewrite every jsp:include across all of my jsp
 pages!!
 
 Any idea why the straight include won't work?  Hey I really appreciate
 all the help here!!
 
 Or should I consider getting the source, rewriting jsp:include and
 re-compile?!?
 
 Erick
 
 On Tue, 2002-09-17 at 10:51, Tim Funk wrote:
 
I can reproduce this - strange. Can you try either of the following:


%String  largeAd=/includes/468x60ad.txt;%
jsp:include page=%=largeAd% flush=true/

OR

 InputStream ps = 
application.getResourceAsStream(/includes/468x60ad.inc);
 if (ps!=null) {
 byte[] buffer = new byte[1024];
 int read = ps.read(buffer);
 while (read0) {
 out.print(new String(buffer, 0, read));
 read = ps.read(buffer);
 }
 ps.close();
 }



Erick Todd wrote:

Ok here is more info.  These pages all work on tomcat 3 right now.  I
have stripped down the page to the bare problem and still get the error.

I downgraded to Tomcat 4.0.4 because 4.1.10 has a problem doing regular
static include across a symbolic link.  But for this problem of dynamic
including, I have to use jsp:include because the String largeAd actually
comes from a parent page.  But even in this simple situation, nothing
works.   What am I doing wrong, configuration, JVM??

I use the jdk1.4.1.  If I change the jsp:include to a %@ include . ..
Everything works fine, but I have to be able to pass the string into the
include, so I have to use jsp:include.
Again, this works in all the older tomcats.  I just now upgrade from 3.2
to 4.0.4.

Lastly, I am on redhat linux 7.0 and 7.3

Here is the jsp page.  Down to only 2 lines.
%String  largeAd=/includes/468x60ad.inc;%
jsp:include page=%=largeAd% flush=true/

The contents of /includes.468x60ad.inc are just 5 lines of
html/javascript.

That's it.  I use mod_jk, (jk1) do a JkMount for the virtual host for
*.jsp.  The server xml for this domain is:
 Host name=cscom2.coloradosprings.com
Context path= docBase=/www/sites/cscom/cscom debug=0
reloadable=true 
/Context
   /Host

And finally the stack trace from the log is:

2002-09-17 10:20:59 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
java.lang.IllegalStateException
at
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:63)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

POST bug during Tomcat failover

2002-09-17 Thread Terence Haddock

I posted a bug about failures with POSTs when tomcat fails over, and I
believe I understand where the problem occurs, but not really what is
causing the problem. However, I have figured out a work-around, but the
work-around has some drawbacks. The bug is #12694. The basic idea is
with two Tomcat processes, if you shut down one of the Tomcats, most
POST requests redirected to the other Tomcat fail because no POST data
is sent to the Tomcat server.

I think the problem is in the recovery of the POST data. Basically, when
the request is sent from Apache to Tomcat, the AJP connector sends first
the header data, then it sends the POST content all at once (all data
less than 8k). The POST data is read from the client browser at this
time. In a failover situation, for some reason I have not figured out
yet, when the connection is re-tried the POST data is empty (see the
tcpdump trace in the bug). I hacked the code to not read any POST data
from the browser until Tomcat asks for the data, like this:

diff -c -r1.29 jk_ajp_common.c
*** common/jk_ajp_common.c  4 Sep 2002 11:31:32 -   1.29
--- common/jk_ajp_common.c  17 Sep 2002 17:04:20 -
***
*** 898,903 
--- 898,904 
   * doing a read (not yet) 
   */
  if (s-is_chunked || ae-left_bytes_to_send  0) {
+ #if 0
  int len = ae-left_bytes_to_send;
  if (len  AJP13_MAX_SEND_BODY_SZ) 
  len = AJP13_MAX_SEND_BODY_SZ;
***
*** 906,911 
--- 907,914 
  op-recoverable = JK_FALSE;
  return JK_FALSE;
  }
+ #endif
+ int len = 0;
  s-content_read = len;
  if (!ajp_connection_tcp_send_message(ae, op-post, l)) {
  jk_log(l, JK_LOG_ERROR, Error sending request
body\n);

-

In other words, always sending a zero length POST content at first,
Tomcat will ask for the data when it needs it. Of course, this is very
inefficient, but I'd rather be inefficient then broken.

There should be a better way to fix this problem, but I do not know the
code enough to fix it myself. Can anyone give any insights into this
issue?

Sincerely,
Terence Haddock


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




Virtual hosts using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2

2002-09-17 Thread Short, Dave

Can anyone please provide a working configuration for Apache 2.0.40 virtual
hosts with Tomcat 4.1.10 (running in-process) and mod_jk2?

Defining a virtual host in Apache, redirecting to Tomcat (via
workers.properties), defining a virtual host and context in the server.xml
file isn't working somehow.  The examples example works just fine when
defined without a virtual host in Apache.  When defined as a virtual host,
Tomcat seems unable to find Java classes and import files.  No errors are
written anywhere (that I can find) and the jsp executes ok, but any Java
classes are not called.  If I run the date example form a non virtual host
Apache, everything works.  When running the same example with an Apache
virtual host set up, the date jsp is executed but the date class it calls is
not invoked.  The date example boiler plate text is displayed without
values.

Any help would be greatly appreciated.

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




SSL errors caused by JavaScript window.open() call

2002-09-17 Thread Rachel Parker

Hello,

I am using Tomcat version 3.3.1 RC1.  When running in secure mode (SSL), a
call to JavaScript’s   window.open() function generates the error below.
The error occurs about 30% of the time, and is not related to the window
being launched (an html file with only tags causes the error as well as a
jsp with frames) nor to any other window.open() parameter.

The error appears hundreds of times in a log file when the product is in
use.  Obviously, this will get to be a problem for our customers.  My guess
is that the http connection is broken and Tomcat erroneously
reports this error as WARNING (or is it FATAL?) instead of reporting
this problem at a DEBUG or AUDIT level. I can’t completely turn off the
error logging for obvious reasons.

Has anyone else encountered this, or better yet, solved it?!

Thanks,
Rachel Parker
Network Intelligence Corporation


PoolTcpEndpoint: Handshake failed
java.net.SocketException: Socket closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
at java.io.OutputStream.write(OutputStream.java:61)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake([DashoPro-V1.2-120
198])
at
org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFactory.jav
a:270)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:479)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:484)
ThreadPool: Caught exception executing
org.apache.tomcat.util.net.TcpWorkerThread@5c97e4, terminating thread
java.lang.NullPointerException
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:498)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:484)


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




Re: JSP Include error HELP!

2002-09-17 Thread Erick Todd

Great!!  That was it.  There should probably be some documentation about
that!?!?

I could not thank you enough!!

Erick

On Tue, 2002-09-17 at 11:11, Tim Funk wrote:
 I'm not sure about the compile warning.
 
 I think it has to do with mime types needing to be decalred in web.xml.
 
 For example: I have the following pages:
 foo.jsp with the contents
 
 hello jsp:include flush='false'  page=foo1.timisastoopidhead/
 
 And the file foo1.timisastoopidhead exists. And voila - I get the wacky 
 exception.
 
 BUT if add the following to web.xml:
mime-mapping
  extensiontimisastoopidhead/extension
  mime-typetext/plain/mime-type
/mime-mapping
 
 And restart tomcat (not reload, restart) - all is ok.
 
 
 So the moral of the story seems - register you file extension/mime type 
 in web.xml if you want to include it as a file.
 
 
 
 
 Erick Todd wrote:
  The second one works, however it does write a warning to the logs that
  the JSPNote javac.main has been depracated.  Do you know why that is? 
  So I would say that something is wrong with jsp:include.  However I
  really don't want to rewrite every jsp:include across all of my jsp
  pages!!
  
  Any idea why the straight include won't work?  Hey I really appreciate
  all the help here!!
  
  Or should I consider getting the source, rewriting jsp:include and
  re-compile?!?
  
  Erick
  
  On Tue, 2002-09-17 at 10:51, Tim Funk wrote:
  
 I can reproduce this - strange. Can you try either of the following:
 
 
 %String  largeAd=/includes/468x60ad.txt;%
 jsp:include page=%=largeAd% flush=true/
 
 OR
 
  InputStream ps = 
 application.getResourceAsStream(/includes/468x60ad.inc);
  if (ps!=null) {
  byte[] buffer = new byte[1024];
  int read = ps.read(buffer);
  while (read0) {
  out.print(new String(buffer, 0, read));
  read = ps.read(buffer);
  }
  ps.close();
  }
 
 
 
 Erick Todd wrote:
 
 Ok here is more info.  These pages all work on tomcat 3 right now.  I
 have stripped down the page to the bare problem and still get the error.
 
 I downgraded to Tomcat 4.0.4 because 4.1.10 has a problem doing regular
 static include across a symbolic link.  But for this problem of dynamic
 including, I have to use jsp:include because the String largeAd actually
 comes from a parent page.  But even in this simple situation, nothing
 works.   What am I doing wrong, configuration, JVM??
 
 I use the jdk1.4.1.  If I change the jsp:include to a %@ include . ..
 Everything works fine, but I have to be able to pass the string into the
 include, so I have to use jsp:include.
 Again, this works in all the older tomcats.  I just now upgrade from 3.2
 to 4.0.4.
 
 Lastly, I am on redhat linux 7.0 and 7.3
 
 Here is the jsp page.  Down to only 2 lines.
 %String  largeAd=/includes/468x60ad.inc;%
 jsp:include page=%=largeAd% flush=true/
 
 The contents of /includes.468x60ad.inc are just 5 lines of
 html/javascript.
 
 That's it.  I use mod_jk, (jk1) do a JkMount for the virtual host for
 *.jsp.  The server xml for this domain is:
Host name=cscom2.coloradosprings.com
 Context path= docBase=/www/sites/cscom/cscom debug=0
 reloadable=true 
 /Context
/Host
 
 And finally the stack trace from the log is:
 
 2002-09-17 10:20:59 StandardWrapperValve[jsp]: Servlet.service() for
 servlet jsp threw exception
 java.lang.IllegalStateException
 at
 
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
 at
 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)
 at
 org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
 at
 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
 at
 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)
 at org.apache.jsp.index$jsp._jspService(index$jsp.java:63)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
 at

Standard Include symbolic links

2002-09-17 Thread Erick Todd

OK Now that I have resolved all of my jsp:include problems.  I would
like to use 4.1.10, however 4.1.10 will not let me include using a
symbolic link on my linux box.  4.0.4 will.  Anyone know of anything I
need to do??  I link a global inc folder across multiple sites to get
the consistent header and footer.  It will work if I copy the folder but
not if it is link symbolically.

Ideas??  Maybe this is just a bug in 4.1.10?

Erick

On Tue, 2002-09-17 at 11:40, Erick Todd wrote:
 Great!!  That was it.  There should probably be some documentation about
 that!?!?
 
 I could not thank you enough!!
 
 Erick
 
 On Tue, 2002-09-17 at 11:11, Tim Funk wrote:
  I'm not sure about the compile warning.
  
  I think it has to do with mime types needing to be decalred in web.xml.
  
  For example: I have the following pages:
  foo.jsp with the contents
  
  hello jsp:include flush='false'  page=foo1.timisastoopidhead/
  
  And the file foo1.timisastoopidhead exists. And voila - I get the wacky 
  exception.
  
  BUT if add the following to web.xml:
 mime-mapping
   extensiontimisastoopidhead/extension
   mime-typetext/plain/mime-type
 /mime-mapping
  
  And restart tomcat (not reload, restart) - all is ok.
  
  
  So the moral of the story seems - register you file extension/mime type 
  in web.xml if you want to include it as a file.
  
  
  
  
  Erick Todd wrote:
   The second one works, however it does write a warning to the logs that
   the JSPNote javac.main has been depracated.  Do you know why that is? 
   So I would say that something is wrong with jsp:include.  However I
   really don't want to rewrite every jsp:include across all of my jsp
   pages!!
   
   Any idea why the straight include won't work?  Hey I really appreciate
   all the help here!!
   
   Or should I consider getting the source, rewriting jsp:include and
   re-compile?!?
   
   Erick
   
   On Tue, 2002-09-17 at 10:51, Tim Funk wrote:
   
  I can reproduce this - strange. Can you try either of the following:
  
  
  %String  largeAd=/includes/468x60ad.txt;%
  jsp:include page=%=largeAd% flush=true/
  
  OR
  
   InputStream ps = 
  application.getResourceAsStream(/includes/468x60ad.inc);
   if (ps!=null) {
   byte[] buffer = new byte[1024];
   int read = ps.read(buffer);
   while (read0) {
   out.print(new String(buffer, 0, read));
   read = ps.read(buffer);
   }
   ps.close();
   }
  
  
  
  Erick Todd wrote:
  
  Ok here is more info.  These pages all work on tomcat 3 right now.  I
  have stripped down the page to the bare problem and still get the error.
  
  I downgraded to Tomcat 4.0.4 because 4.1.10 has a problem doing regular
  static include across a symbolic link.  But for this problem of dynamic
  including, I have to use jsp:include because the String largeAd actually
  comes from a parent page.  But even in this simple situation, nothing
  works.   What am I doing wrong, configuration, JVM??
  
  I use the jdk1.4.1.  If I change the jsp:include to a %@ include . ..
  Everything works fine, but I have to be able to pass the string into the
  include, so I have to use jsp:include.
  Again, this works in all the older tomcats.  I just now upgrade from 3.2
  to 4.0.4.
  
  Lastly, I am on redhat linux 7.0 and 7.3
  
  Here is the jsp page.  Down to only 2 lines.
  %String  largeAd=/includes/468x60ad.inc;%
  jsp:include page=%=largeAd% flush=true/
  
  The contents of /includes.468x60ad.inc are just 5 lines of
  html/javascript.
  
  That's it.  I use mod_jk, (jk1) do a JkMount for the virtual host for
  *.jsp.  The server xml for this domain is:
   Host name=cscom2.coloradosprings.com
  Context path= docBase=/www/sites/cscom/cscom debug=0
  reloadable=true 
  /Context
 /Host
  
  And finally the stack trace from the log is:
  
  2002-09-17 10:20:59 StandardWrapperValve[jsp]: Servlet.service() for
  servlet jsp threw exception
  java.lang.IllegalStateException
  at
  
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
  at
  
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)
  at
  org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
  at
  

Re: Standard Include symbolic links

2002-09-17 Thread Tim Funk

If you are not spanning filesystems - can you do a hard link?

Erick Todd wrote:
 OK Now that I have resolved all of my jsp:include problems.  I would
 like to use 4.1.10, however 4.1.10 will not let me include using a
 symbolic link on my linux box.  4.0.4 will.  Anyone know of anything I
 need to do??  I link a global inc folder across multiple sites to get
 the consistent header and footer.  It will work if I copy the folder but
 not if it is link symbolically.
 
 Ideas??  Maybe this is just a bug in 4.1.10?
 
 Erick
 
 On Tue, 2002-09-17 at 11:40, Erick Todd wrote:
 
Great!!  That was it.  There should probably be some documentation about
that!?!?

I could not thank you enough!!

Erick

On Tue, 2002-09-17 at 11:11, Tim Funk wrote:

I'm not sure about the compile warning.

I think it has to do with mime types needing to be decalred in web.xml.

For example: I have the following pages:
foo.jsp with the contents

hello jsp:include flush='false'  page=foo1.timisastoopidhead/

And the file foo1.timisastoopidhead exists. And voila - I get the wacky 
exception.

BUT if add the following to web.xml:
   mime-mapping
 extensiontimisastoopidhead/extension
 mime-typetext/plain/mime-type
   /mime-mapping

And restart tomcat (not reload, restart) - all is ok.


So the moral of the story seems - register you file extension/mime type 
in web.xml if you want to include it as a file.




Erick Todd wrote:

The second one works, however it does write a warning to the logs that
the JSPNote javac.main has been depracated.  Do you know why that is? 
So I would say that something is wrong with jsp:include.  However I
really don't want to rewrite every jsp:include across all of my jsp
pages!!

Any idea why the straight include won't work?  Hey I really appreciate
all the help here!!

Or should I consider getting the source, rewriting jsp:include and
re-compile?!?

Erick

On Tue, 2002-09-17 at 10:51, Tim Funk wrote:


I can reproduce this - strange. Can you try either of the following:


%String  largeAd=/includes/468x60ad.txt;%
jsp:include page=%=largeAd% flush=true/

OR

InputStream ps = 
application.getResourceAsStream(/includes/468x60ad.inc);
if (ps!=null) {
byte[] buffer = new byte[1024];
int read = ps.read(buffer);
while (read0) {
out.print(new String(buffer, 0, read));
read = ps.read(buffer);
}
ps.close();
}



Erick Todd wrote:


Ok here is more info.  These pages all work on tomcat 3 right now.  I
have stripped down the page to the bare problem and still get the error.

I downgraded to Tomcat 4.0.4 because 4.1.10 has a problem doing regular
static include across a symbolic link.  But for this problem of dynamic
including, I have to use jsp:include because the String largeAd actually
comes from a parent page.  But even in this simple situation, nothing
works.   What am I doing wrong, configuration, JVM??

I use the jdk1.4.1.  If I change the jsp:include to a %@ include . ..
Everything works fine, but I have to be able to pass the string into the
include, so I have to use jsp:include.
Again, this works in all the older tomcats.  I just now upgrade from 3.2
to 4.0.4.

Lastly, I am on redhat linux 7.0 and 7.3

Here is the jsp page.  Down to only 2 lines.
%String  largeAd=/includes/468x60ad.inc;%
jsp:include page=%=largeAd% flush=true/

The contents of /includes.468x60ad.inc are just 5 lines of
html/javascript.

That's it.  I use mod_jk, (jk1) do a JkMount for the virtual host for
*.jsp.  The server xml for this domain is:
  Host name=cscom2.coloradosprings.com
   Context path= docBase=/www/sites/cscom/cscom debug=0
reloadable=true 
   /Context
  /Host

And finally the stack trace from the log is:

2002-09-17 10:20:59 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
java.lang.IllegalStateException
   at
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
   at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)
   at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
   at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
   at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
 

Tomcat 4.1.10 + mod_jk2 startup errorr

2002-09-17 Thread Matt Sales

Hello

I get the following in catalina.out every time I start up Tomcat-4.1.10 +
mod_jk2...
I'm using RedHat 7.2 and Apache.  However, after it spits out these errors,
it seems to run fine.  Has anyone seen similar entries in catalina.out?  I
can include my jk2.properties and workers2.properties if that would help,
but they're essentially the same as the configjk and configweb examples.

Thanks in advance,
Matt

Log entry:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.10
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[Tue Sep 17 13:41:21 2002] (error ) [jk_config_file.c (261)]
config.update(): Can't find config file
${serverRoot}/conf/workers2.properties
[Tue Sep 17 13:41:21 2002] ( info ) [jk_config.c (246)]
config.setAttribute() Error setting config: file
${serverRoot}/conf/workers2.properties
[Tue Sep 17 13:41:21 2002] (error ) [jk_logger_file.c (171)]  Initializing
log file stderr
[Tue Sep 17 13:41:21 2002] (error ) [jk_shm.c (333)]  shm.init(): No file
[Tue Sep 17 13:41:21 2002] ( info ) [jk_workerEnv.c (403)]  workerEnv.init()
ok ${serverRoot}/conf/workers2.properties
[INFO] ChannelUn - -JK: listening on unix socket:
/usr/local/tomcat/work/jk2.socket
[INFO] JkMain - -Jk running ID=0 time=1/190
config=/usr/local/tomcat/conf/jk2.properties
[Tue Sep 17 13:41:21 2002] ( info ) [jk_jni_aprImpl.c (470)]  jkInvoke()
invoke 4456ab0c




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




dates.JspCalendar

2002-09-17 Thread Seth Brahler

I don't know if I have configured Tomcat incorrectly, but when I copy the 
code from examples/jsp/dates/date.jsp (where it works) and place the it 
anywhere else, I get the error: Unable to load class /dates.JspCalendar

What am I missing?




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




Problem in tomcat installation in Solaris 8.0

2002-09-17 Thread Anup Ray


Hi,
I am a newbie in Tomcat. I downloaded tomcat binary version, unzipped it and
trying to start it but getting the following error. Could anybody help me
out.
Thanks---Anup Ray
[EMAIL PROTECTED]
_
# ./startup.sh
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
__
Some more info. about my system are given below:
# uname
SunOS
# pwd
/temp/jakarta-tomcat-4.1.10/bin
# ls
bootstrap.jar   digest.sh   setclasspath.sh tomcat.exe
catalina.batjasper.bat  shutdown.battool-wrapper.bat
catalina.sh jasper.sh   shutdown.sh tool-wrapper.sh
commons-daemon.jar  jspc.batstartup.bat
cpappend.batjspc.sh startup.sh
digest.bat  setclasspath.battomcat-jni.jar
# env
CATALINA_HOME=/temp/jakarta-tomcat-4.1.10
HOME=/
HZ=
JAVA_HOME=/usr/j2se
LOGNAME=root
PATH=/usr/sbin:/usr/bin
SHELL=/sbin/sh
TERM=vt100
TZ=US/Eastern
#


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




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

2002-09-17 Thread Milt Epstein

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]




Re: Help!!Servlet messages to console/xconsole

2002-09-17 Thread Shannon Lal

Anand,
I often run into problems like this, and is often something I have over 
looked.
I would attempt to run the Snoop Servlet(http://localhost:8080/SnoopServlet) 
first ( the one that comes with Tomcat ) if that executes fine then you know 
Tomcat is configured fine.
The next thing I would recommend would be to modify the Snoop Servlet by 
adding the line

System.out.print(hello world);

recompile and see if this is printed to the screen when the Snoop Servlet is 
run.  If this works then there is something wrong with your code( often this 
means there is another copy of the servlet somewhere else in the classpath).

One last question, how are you starting Tomcat?  If is run as a 
service(NT)/process(Unix) you will not see the output.

Let me know if you have any furthur questions?






From: Anand Parikh [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Help!!Servlet messages to console/xconsole
Date: Mon, 16 Sep 2002 16:10:43 -0700 (PDT)

Folks,

I am running tomcat 4.0.4, JDK 1.3, Debian linux 2.2.6.
The following example is from the book Java for the Web with Servlets, 
JSP,
EJB by Budi Kurniawan.
It should send messages to the console/xconsole but I get errors.
There are no error messages in the log file, the access log file shows
a HTTP code of 200 ??
I know the xconsole is working, I can send messages to the xconsole as a 
user
and as root.
I am stuck... any help is highly appreciated.

Thanks,
Anand


Netscape Error:

The document contained no data.
Try again later or contact the server's administrator.

PrimitiveServlet.java
---
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.io.IOException;
import java.util.*;


public class PrimitiveServlet implements Servlet {

   public void init(ServletConfig config) throws ServletException {
 System.out.println(init);
   }

   public void service(ServletRequest request, ServletResponse response)
 throws ServletException, IOException {
 System.out.println(service);
   }

   public void destroy() {
 System.out.println(destroy);
   }

   public String getServletInfo() {
 return null;
   }
   public ServletConfig getServletConfig() {
 return null;
   }

}


access log file:
--
127.0.0.1 - - [16/Sep/2002:17:24:14 -0500] GET
/myApp/servlet/PrimitiveServlet/ HTTP/1.0 200 -
127.0.0.1 - - [16/Sep/2002:17:24:21 -0500] GET /myApp/servlet/Primitive/
HTTP/1.0 200 -



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

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




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Re: Problem in tomcat installation in Solaris 8.0

2002-09-17 Thread Kent Perrier

On Tue, Sep 17, 2002 at 02:06:18PM -0400, Anup Ray wrote:
 
 Hi,
 I am a newbie in Tomcat. I downloaded tomcat binary version, unzipped it and
 trying to start it but getting the following error. Could anybody help me
 out.
 Thanks---Anup Ray
 [EMAIL PROTECTED]
 _
 # ./startup.sh
 The JAVA_HOME environment variable is not defined correctly
 This environment variable is needed to run this program
 

Well, it appears that either startup.sh or catalina.sh thinks that JAVA_HOME
is not pointing to the correct place.  Put an echo $JAVA_HOME in either (or
both) startup.sh or catalina.sh to see what they are seeing as your JAVA_HOME

Kent

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




tomcat system properties

2002-09-17 Thread Ralph Goers

Where are the system properties used by tomcat documented somewhere?  Are there any 
others besides catalina.home and catalina.base?

Thanks,
Ralph



RE: Any body built mod_jk.so for apache2.0 on Solaris

2002-09-17 Thread Turner, John


Sorry, didn't realize you were looking for Apache2.  Yes, the mod_jk.so is
contingent on the Apache version, but not the Tomcat version.  Thus, a
mod_jk.so for Apache2 will work with either Tomcat 3 or Tomcat 4.

The steps in my HOWTO show how to build mod_jk.  Solaris is fairly common, I
would think the steps would be:

- download source
- unpack source
- make sure you have gcc (and libtool and autoconf and m4 from GNU)
- cd to jk directory
- run buildconf.sh, this should leave you with a ./configure
- run ./configure --with-apxs=/path/to/apache2/bin/apxs
--with-java=${JAVA_HOME}
- run make, this should leave you with a mod_jk.so in the apache-2.0
directory of the connector source
- optionally, run make install (I don't, I copy the file manually)
- copy the file to /path/to/apache2/modules (apache2 uses modules, not
libexec)

The GNU tools should all be available in Sun package style from
http://www.sunfreeware.com   Unfortunately, I have no access to Solaris
machines until next week, and even then it will be restricted, so I can't
try the build process for myself.

John

 -Original Message-
 From: Narayana Reddy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 1:04 PM
 To: Tomcat Users List
 Subject: RE: Any body built mod_jk.so for apache2.0 on Solaris
 
 
 Hi John
 
 Thanks for the response. I have looked at your website ( not 
 extensively 
 though ), but the combination i need is not on your site. I need the 
 following combination
 
 apache2.0 + tomcat 3.2.3 + mod_jk.so
 
 I have a mod_jk.so for apache1.3 which does not work with 
 apache2.0 . So i 
 figured, i have to compile a new mod_jk.so for apache2.0. Am 
 i correct in 
 assuming this ?
 
 In Other Words is mod_jk.so solely depends on tomcat version 
 or it depends 
 on both tomcat and Apache.
 
 To Give you little more back ground, We used to have
 
 apache1.3 + tomcat3.2.3 + mod_jk.so
 
 Now our infrastructure group is asking every body to migrate 
 to apache2.0, 
 but we need to keep the tomcat3.2.3, because we have an 
 application that is 
 certified to run only on this version. I am not sure if it would run 
 tomcat4.x. So basically i am looking for tomcat3.x tomcat 
 mod_jk, because 
 the documentation on Apache.org says mod_jk of 3.3.x is 
 downward compatible.
 
 Hopefully i am clear enough, if not ask me for more details.
 
 Thanks
 Narayan
 

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




RE: Java Development Environment for Emacs - anybody tried it ???

2002-09-17 Thread Dennis Doubleday

Now, now, this is Emacs. You don't have to accept anything you don't
like :-)

Try:

M-x customize-variable jde-gen-kr 



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




RE: tomcat system properties

2002-09-17 Thread Turner, John


CATALINA_HOME/bin/catalina.bat or catalina.sh has the full list.

John


 -Original Message-
 From: Ralph Goers [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 2:23 PM
 To: Tomcat Users List
 Subject: tomcat system properties
 
 
 Where are the system properties used by tomcat documented 
 somewhere?  Are there any others besides catalina.home and 
 catalina.base?
 
 Thanks,
 Ralph
 

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




Question regarding mod_jk configuration

2002-09-17 Thread Kent Perrier

I have built mod_jk according to John Turner's howto for Tomcat 4, apache
2 and redhat.  The only difference is that I am using the Turbine Dev
Kit, not a vanilla tomcat install.  Anyway, I get the plugin installed
and /server-info/ shows mod_jk loaded.  John states in the howto that tomcat
creates the mod_jk.conf file, but mine does not when it starts.  Does
anyone have any idea where I would look to find out why?  I have downloaded 
the mod_jk.conf that John has on his site so that I have one and I have 
edited it to match my configuration.  I can access the /examples and 
/newapp/servlet/newapp (the default turbine app) fine from localhost:8080, 
but I cannot access them from apache on port 80.  (A clarification: when I 
access /examples, I get the apache directory listing, but it looks a lot 
different from what I see when I access localhost:8080/examples.  Looking in
the examples directory I see:
[polaris:/home/apache/tdk/examples]# find  . -print
.
./actions
./actions/TestGlobalCache.java
./scheduledjobs
./scheduledjobs/DefaultScheduledJob.java
./WebMacro.properties

so I guess that the Turbine folks nuter the Tomcat example.  If not, please
correct me.)

So, in summary, my questions are (1) why isn't mod_jk.conf being generated
automagically as John's HowTo states and (2) why am I getting 404 errors
when I attempt to access the Turbine default app via apache at 
/newapp/servlet/newapp/

Below are my httpd.conf, server.xml and (finally) mod_jk.conf

Thanks!

Kent

 Start httpd.conf 

#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See URL:http://httpd.apache.org/docs-2.0/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with / (or drive:/ for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with /, the value of ServerRoot is prepended -- so logs/foo.log
# with ServerRoot set to /home/apache will be interpreted by the
# server as /home/apache/logs/foo.log.
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot /home/apache

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
IfModule !mpm_winnt.c
IfModule !mpm_netware.c
#LockFile logs/accept.lock
/IfModule
/IfModule

#
# ScoreBoardFile: File used to store internal server process information.
# If unspecified (the default), the scoreboard will be stored in an
# anonymous shared memory segment, and will be unavailable to third-party
# applications.
# If specified, ensure that no two invocations of Apache share the same
# scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
#
IfModule !mpm_netware.c
IfModule !perchild.c
#ScoreBoardFile logs/apache_runtime_status
/IfModule
/IfModule


#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
IfModule !mpm_netware.c
PidFile logs/httpd.pid
/IfModule

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to Off to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum 

RE: Question regarding mod_jk configuration

2002-09-17 Thread Turner, John


The last time I saw my name that many times at once in print, I was getting
yelled at. :)

Your Listener elements look fine, and they are in the right place.  

Can you take a couple of minutes and try it with a vanilla Tomcat install?
The binary install takes about 5 minutes to setup on Redhat...it would tell
you right away if it was a tomcat vs. Turbine/Tomcat thing, or something
deeper.

John


 -Original Message-
 From: Kent Perrier [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 2:28 PM
 To: [EMAIL PROTECTED]
 Subject: Question regarding mod_jk configuration
 
 
 I have built mod_jk according to John Turner's howto for 
 Tomcat 4, apache
 2 and redhat.  The only difference is that I am using the Turbine Dev
 Kit, not a vanilla tomcat install.  Anyway, I get the plugin installed
 and /server-info/ shows mod_jk loaded.  John states in the 
 howto that tomcat
 creates the mod_jk.conf file, but mine does not when it starts.  Does
 anyone have any idea where I would look to find out why?  I 
 have downloaded 
 the mod_jk.conf that John has on his site so that I have one 
 and I have 
 edited it to match my configuration.  I can access the /examples and 
 /newapp/servlet/newapp (the default turbine app) fine from 
 localhost:8080, 
 but I cannot access them from apache on port 80.  (A 
 clarification: when I 
 access /examples, I get the apache directory listing, but it 
 looks a lot 
 different from what I see when I access 
 localhost:8080/examples.  Looking in
 the examples directory I see:
 [polaris:/home/apache/tdk/examples]# find  . -print
 .
 ./actions
 ./actions/TestGlobalCache.java
 ./scheduledjobs
 ./scheduledjobs/DefaultScheduledJob.java
 ./WebMacro.properties
 
 so I guess that the Turbine folks nuter the Tomcat example.  
 If not, please
 correct me.)
 
 So, in summary, my questions are (1) why isn't mod_jk.conf 
 being generated
 automagically as John's HowTo states and (2) why am I getting 
 404 errors
 when I attempt to access the Turbine default app via apache at 
 /newapp/servlet/newapp/
 
 Below are my httpd.conf, server.xml and (finally) mod_jk.conf
 
 Thanks!
 
 Kent
 

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




Mod_jk on Debian

2002-09-17 Thread Jean-Baptiste Onofré

Hello,

is anyone use mod_jk and tomcat binaries on debian using the apache
packaged.

Contact me please
-- 
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]




RE: JaspException: Variable may not have been initialized

2002-09-17 Thread Rossen Raykov

Change the startup script to use the 64-bit data model (use java's -d64
option).
You may need to install it if you do not have it already.

Regards,
Rossen Raykov

 -Original Message-
 From: Xiaoyu Zhang [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 12:04 PM
 To: [EMAIL PROTECTED]
 Subject: JaspException: Variable may not have been initialized
 
 
 
 Hi all,
 
 I am running tomcat 4.0.3-LE-JDK1.4 on solaris 8. While my 
 tomcat compiles a
 nested tag, it always complains about :
 
 Variable _jspx_eval_itrack_href_7 may not have been initialized
 
 Note: _jspx_eval_itrack_href_7 is a new HRefTag().
 
 Is it a tomcat 4.0.3 bug?
 
 Thanks,
 Xiaoyu
 
 
 --
 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]




Tomcat won't auto-start on RedHat 7.3

2002-09-17 Thread Kenny G. Dubuisson, Jr.

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]




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

2002-09-17 Thread Turner, John


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]




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

2002-09-17 Thread Kenny G. Dubuisson, Jr.

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]




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

2002-09-17 Thread Ben Ricker

On Tue, 2002-09-17 at 14:06, Kenny G. Dubuisson, Jr. wrote:
 Very good question...I bet they aren't.  Do you know where I would set those
 for boot (or should I just put them in the script I wrote)?  Thanks,
 Kenny

Put them in the script.

Ben Ricker
Wellinx.com
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, September 17, 2002 2:04 PM
 Subject: RE: Tomcat won't auto-start on RedHat 7.3
 
 
 
  When run during boot, are JAVA_HOME and CATALINA_HOME set?
 
  John
 
   -Original Message-
   From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, September 17, 2002 3:01 PM
   To: Tomcat Users List
   Subject: Tomcat won't auto-start on RedHat 7.3
  
  
   I have successfully installed Apache 2.0.40, Tomcat 4.0.4,
   and mod_jk and
   all works fine.  The problem I have is that I wrote a simple
   startup script
   for Tomcat to be executed upon init level 5 entrance.  If I
   run the script
   from a shell prompt, it works fine.  If it runs when Linux is booting,
   though it says OK when starting, Tomcat doesn't actually
   get started.
  
   The script is:
  
   #!/bin/sh
   case $1 in
  start)
 echo -n Starting Tomcat: 
 /usr/local/jakarta-tomcat-4.0.4/bin/startup.sh
 echo
 ;;
  stop)
 echo -n Stopping Tomcat: 
 /usr/local/jakarta-tomcat-4.0.4/bin/shutdown.sh
 echo
 ;;
  restart)
 $0 stop
 $0 start
 ;;
  *)
 echo Usage: $0 {start|stop|restart}
 exit 1
   esac
   exit 0
  
   Any Ideas?
  
  
   --
   To unsubscribe, e-mail:
  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: Tomcat won't auto-start on RedHat 7.3

2002-09-17 Thread Kenny G. Dubuisson, Jr.

That did it.  Thanks all,
Kenny

- Original Message -
From: Ben Ricker [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 17, 2002 2:17 PM
Subject: Re: Tomcat won't auto-start on RedHat 7.3


 On Tue, 2002-09-17 at 14:06, Kenny G. Dubuisson, Jr. wrote:
  Very good question...I bet they aren't.  Do you know where I would set
those
  for boot (or should I just put them in the script I wrote)?  Thanks,
  Kenny

 Put them in the script.

 Ben Ricker
 Wellinx.com

  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Tuesday, September 17, 2002 2:04 PM
  Subject: RE: Tomcat won't auto-start on RedHat 7.3
 
 
  
   When run during boot, are JAVA_HOME and CATALINA_HOME set?
  
   John
  
-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 3:01 PM
To: Tomcat Users List
Subject: Tomcat won't auto-start on RedHat 7.3
   
   
I have successfully installed Apache 2.0.40, Tomcat 4.0.4,
and mod_jk and
all works fine.  The problem I have is that I wrote a simple
startup script
for Tomcat to be executed upon init level 5 entrance.  If I
run the script
from a shell prompt, it works fine.  If it runs when Linux is
booting,
though it says OK when starting, Tomcat doesn't actually
get started.
   
The script is:
   
#!/bin/sh
case $1 in
   start)
  echo -n Starting Tomcat: 
  /usr/local/jakarta-tomcat-4.0.4/bin/startup.sh
  echo
  ;;
   stop)
  echo -n Stopping Tomcat: 
  /usr/local/jakarta-tomcat-4.0.4/bin/shutdown.sh
  echo
  ;;
   restart)
  $0 stop
  $0 start
  ;;
   *)
  echo Usage: $0 {start|stop|restart}
  exit 1
esac
exit 0
   
Any Ideas?
   
   
--
To unsubscribe, e-mail:
   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 PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problem Importing Class

2002-09-17 Thread Seth Brahler

I have set my CLASSPATH to point to: 
C:\Inetpub\wwwroot\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes\dates\JspCalendar.class;

But when I place: %@page import=JspCalendar% on a JSP page where I need 
to display dates, I get thrown an error (Class JspCalendar not found in import)

Thank you.
SETH


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




new to this...

2002-09-17 Thread Marcella MacDougall


Hey all,

I am using Forte for Java along with Tomcat.  My problem is that when I
try to execute a servlet, I keep getting the same error message:

Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet HelloServlet2 is currently
unavailable



type Status report

message Servlet HelloServlet2 is currently unavailable

description The requested service (Servlet HelloServlet2 is currently
unavailable) is not currently available.

Can anybody give me some words of wisdom?  I am pretty darn frustrated:(

Marcy


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




ps!

2002-09-17 Thread Marcella MacDougall


And I forgot to mention that I keep getting a warning that the HTTP server
could not start.  I'm still using port 8080...

thanks,
Marcy


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




RE: new to this...

2002-09-17 Thread Turner, John


How did you set up the servlet in Forte?  Did you use the Forte wizard to do
it, or did you do it manually?

John


 -Original Message-
 From: Marcella MacDougall [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 3:34 PM
 To: Tomcat Users List
 Subject: new to this...
 
 
 
 Hey all,
 
 I am using Forte for Java along with Tomcat.  My problem is 
 that when I
 try to execute a servlet, I keep getting the same error message:
 
 Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet HelloServlet2 
 is currently
 unavailable
 
 --
 --
 
 type Status report
 
 message Servlet HelloServlet2 is currently unavailable
 
 description The requested service (Servlet HelloServlet2 is currently
 unavailable) is not currently available.
 
 Can anybody give me some words of wisdom?  I am pretty darn 
 frustrated:(
 
 Marcy
 
 
 --
 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 this...

2002-09-17 Thread Marcella MacDougall


I used the wizard and then just cut and pasted an example:)

Marcy

On Tue, 17 Sep 2002, Turner, John wrote:

 
 How did you set up the servlet in Forte?  Did you use the Forte wizard to do
 it, or did you do it manually?
 
 John
 
 
  -Original Message-
  From: Marcella MacDougall [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 17, 2002 3:34 PM
  To: Tomcat Users List
  Subject: new to this...
  
  
  
  Hey all,
  
  I am using Forte for Java along with Tomcat.  My problem is 
  that when I
  try to execute a servlet, I keep getting the same error message:
  
  Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet HelloServlet2 
  is currently
  unavailable
  
  --
  --
  
  type Status report
  
  message Servlet HelloServlet2 is currently unavailable
  
  description The requested service (Servlet HelloServlet2 is currently
  unavailable) is not currently available.
  
  Can anybody give me some words of wisdom?  I am pretty darn 
  frustrated:(
  
  Marcy
  
  
  --
  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: new to this...

2002-09-17 Thread Marcella MacDougall


Maybe I'm saving the files in the wrong directory, becuase it's going to
the url:  http://localhost:8081/servlet/HelloServlet2

but I'm saving my files to C:\ide-user\...

Marcy



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




Re: Question regarding mod_jk configuration

2002-09-17 Thread Kent Perrier

On Tue, Sep 17, 2002 at 02:41:36PM -0400, Turner, John wrote:
 
 The last time I saw my name that many times at once in print, I was getting
 yelled at. :)
 
 Your Listener elements look fine, and they are in the right place.  
 
 Can you take a couple of minutes and try it with a vanilla Tomcat install?
 The binary install takes about 5 minutes to setup on Redhat...it would tell
 you right away if it was a tomcat vs. Turbine/Tomcat thing, or something
 deeper.

Well, I downloaded Tomcat4.0.4 (since this is what I think TDK 2.1 uses),
copied my httpd.conf for my turbine instance for use with tomcat (changing
the paths to point to tomcat, not turbine of course) and everything works
fine through apache.  Even the mod_jk.conf file is created.

I guess I will go over to the turbine list and bug them now unless
someone here has an idea on what is going on.

Kent

 
 John
 
 
  -Original Message-
  From: Kent Perrier [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 17, 2002 2:28 PM
  To: [EMAIL PROTECTED]
  Subject: Question regarding mod_jk configuration
  
  
  I have built mod_jk according to John Turner's howto for 
  Tomcat 4, apache
  2 and redhat.  The only difference is that I am using the Turbine Dev
  Kit, not a vanilla tomcat install.  Anyway, I get the plugin installed
  and /server-info/ shows mod_jk loaded.  John states in the 
  howto that tomcat
  creates the mod_jk.conf file, but mine does not when it starts.  Does
  anyone have any idea where I would look to find out why?  I 
  have downloaded 
  the mod_jk.conf that John has on his site so that I have one 
  and I have 
  edited it to match my configuration.  I can access the /examples and 
  /newapp/servlet/newapp (the default turbine app) fine from 
  localhost:8080, 
  but I cannot access them from apache on port 80.  (A 
  clarification: when I 
  access /examples, I get the apache directory listing, but it 
  looks a lot 
  different from what I see when I access 
  localhost:8080/examples.  Looking in
  the examples directory I see:
  [polaris:/home/apache/tdk/examples]# find  . -print
  .
  ./actions
  ./actions/TestGlobalCache.java
  ./scheduledjobs
  ./scheduledjobs/DefaultScheduledJob.java
  ./WebMacro.properties
  
  so I guess that the Turbine folks nuter the Tomcat example.  
  If not, please
  correct me.)
  
  So, in summary, my questions are (1) why isn't mod_jk.conf 
  being generated
  automagically as John's HowTo states and (2) why am I getting 
  404 errors
  when I attempt to access the Turbine default app via apache at 
  /newapp/servlet/newapp/
  
  Below are my httpd.conf, server.xml and (finally) mod_jk.conf
  
  Thanks!
  
  Kent
  
 
 --
 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]




calling PHP from Tomcat

2002-09-17 Thread Michael Hirsch

I'm sure I'm doing something wrong, but I can't figure out what.  I'm
trying to call PHP from Tomcat (and them later call back to java from
PHP).  I've followed what directions I can find, but to no avail.

I have a file test.php which I can put in either webapps/ROOT or
webapps/examples.  test .php contains just 

  ?php phpinfo(); ?

(I've also tried it with basic HTML headers)

According to the docs that came with PHP, Tomcat is supposed to load
libphp4 and evaluate the function, but I just get the error below. 
libphp4.so is globally accessible and I've run ldconfig.  phpsrvlt.jar
is in the classpath.

I've added these lines to web.xml in 

  servlet
servlet-name
  php
/servlet-name
servlet-class
  net.php.servlet
/servlet-class
  /servlet
  servlet
servlet-name
  php-formatter
/servlet-name
servlet-class
  net.php.formatter
/servlet-class
  /servlet
  servlet-mapping
servlet-name
  php
/servlet-name
url-pattern
  *.php
/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-name
  php-formatter
/servlet-name
url-pattern
  *.phps
/url-pattern
  /servlet-mapping

Without these lines the file test.php is just echoed back without any
attempt at evaluation.

I've done a websearch, and the error message seems common, but no one
has reported it in my context.  I'm guessing from the responses to other
questions that I need some kind of context to define my classloader, but
I don't know what.

Clearly, I'm missing something, but what?  I feel like I'm just one step
away.

Thanks in advance,

Michael

Here's the error message:


Internal Servlet Error:
 
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:548)
at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:548)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at
org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(DependClassLoader.java:174)
at
org.apache.tomcat.util.depend.DependClassLoader12$1.run(DependClassLoader12.java:92)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.tomcat.util.depend.DependClassLoader12.loadClass(DependClassLoader12.java:90)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at
org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:343)
at
org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:439)
at
org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:228)
at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:472)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:479)



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




Re: Standard Include symbolic links

2002-09-17 Thread Erick Todd

How do I hard link a directory??  The contents of the directory can be
changed.

Currently I soft link the directory but the files are not linked.

Can I hard link a directory in linux??  If I can its news to me.  Seems
like it must be glitch.  Works in 4.04.  Or maybe there is some setting
I don't know about for 4.1.10.

Ideas??
-E

On Tue, 2002-09-17 at 12:00, Tim Funk wrote:
 If you are not spanning filesystems - can you do a hard link?
 
 Erick Todd wrote:
  OK Now that I have resolved all of my jsp:include problems.  I would
  like to use 4.1.10, however 4.1.10 will not let me include using a
  symbolic link on my linux box.  4.0.4 will.  Anyone know of anything I
  need to do??  I link a global inc folder across multiple sites to get
  the consistent header and footer.  It will work if I copy the folder but
  not if it is link symbolically.
  
  Ideas??  Maybe this is just a bug in 4.1.10?
  
  Erick
  
  On Tue, 2002-09-17 at 11:40, Erick Todd wrote:
  
 Great!!  That was it.  There should probably be some documentation about
 that!?!?
 
 I could not thank you enough!!
 
 Erick
 
 On Tue, 2002-09-17 at 11:11, Tim Funk wrote:
 
 I'm not sure about the compile warning.
 
 I think it has to do with mime types needing to be decalred in web.xml.
 
 For example: I have the following pages:
 foo.jsp with the contents
 
 hello jsp:include flush='false'  page=foo1.timisastoopidhead/
 
 And the file foo1.timisastoopidhead exists. And voila - I get the wacky 
 exception.
 
 BUT if add the following to web.xml:
mime-mapping
  extensiontimisastoopidhead/extension
  mime-typetext/plain/mime-type
/mime-mapping
 
 And restart tomcat (not reload, restart) - all is ok.
 
 
 So the moral of the story seems - register you file extension/mime type 
 in web.xml if you want to include it as a file.
 
 
 
 
 Erick Todd wrote:
 
 The second one works, however it does write a warning to the logs that
 the JSPNote javac.main has been depracated.  Do you know why that is? 
 So I would say that something is wrong with jsp:include.  However I
 really don't want to rewrite every jsp:include across all of my jsp
 pages!!
 
 Any idea why the straight include won't work?  Hey I really appreciate
 all the help here!!
 
 Or should I consider getting the source, rewriting jsp:include and
 re-compile?!?
 
 Erick
 
 On Tue, 2002-09-17 at 10:51, Tim Funk wrote:
 
 
 I can reproduce this - strange. Can you try either of the following:
 
 
 %String  largeAd=/includes/468x60ad.txt;%
 jsp:include page=%=largeAd% flush=true/
 
 OR
 
 InputStream ps = 
 application.getResourceAsStream(/includes/468x60ad.inc);
 if (ps!=null) {
 byte[] buffer = new byte[1024];
 int read = ps.read(buffer);
 while (read0) {
 out.print(new String(buffer, 0, read));
 read = ps.read(buffer);
 }
 ps.close();
 }
 
 
 
 Erick Todd wrote:
 
 
 Ok here is more info.  These pages all work on tomcat 3 right now.  I
 have stripped down the page to the bare problem and still get the error.
 
 I downgraded to Tomcat 4.0.4 because 4.1.10 has a problem doing regular
 static include across a symbolic link.  But for this problem of dynamic
 including, I have to use jsp:include because the String largeAd actually
 comes from a parent page.  But even in this simple situation, nothing
 works.   What am I doing wrong, configuration, JVM??
 
 I use the jdk1.4.1.  If I change the jsp:include to a %@ include . ..
 Everything works fine, but I have to be able to pass the string into the
 include, so I have to use jsp:include.
 Again, this works in all the older tomcats.  I just now upgrade from 3.2
 to 4.0.4.
 
 Lastly, I am on redhat linux 7.0 and 7.3
 
 Here is the jsp page.  Down to only 2 lines.
 %String  largeAd=/includes/468x60ad.inc;%
 jsp:include page=%=largeAd% flush=true/
 
 The contents of /includes.468x60ad.inc are just 5 lines of
 html/javascript.
 
 That's it.  I use mod_jk, (jk1) do a JkMount for the virtual host for
 *.jsp.  The server xml for this domain is:
 Host name=cscom2.coloradosprings.com
Context path= docBase=/www/sites/cscom/cscom debug=0
 reloadable=true 
/Context
   /Host
 
 And finally the stack trace from the log is:
 
 2002-09-17 10:20:59 StandardWrapperValve[jsp]: Servlet.service() for
 servlet jsp threw exception
 java.lang.IllegalStateException
at
 
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
at
 

Re: Virtual hosts using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2

2002-09-17 Thread Dom

Hi

I'm having the same trouble using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2
with virtual hosts

It works without problem without v.h., but the only doc I've found about
mod_jk2 doesn't talk about v.h.(
http://www.apache.org/~jfclere/jk2_docs/configweb.html)

Maybe mod_jk2 isn't ready for v.h ?

(I don't have any trouble with the same configuration but mod_jk instead of
mod_jk2)

Dom

- Original Message -
From: Short, Dave [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, September 17, 2002 7:30 PM
Subject: Virtual hosts using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2


 Can anyone please provide a working configuration for Apache 2.0.40
virtual
 hosts with Tomcat 4.1.10 (running in-process) and mod_jk2?

 Defining a virtual host in Apache, redirecting to Tomcat (via
 workers.properties), defining a virtual host and context in the server.xml
 file isn't working somehow.  The examples example works just fine when
 defined without a virtual host in Apache.  When defined as a virtual host,
 Tomcat seems unable to find Java classes and import files.  No errors are
 written anywhere (that I can find) and the jsp executes ok, but any Java
 classes are not called.  If I run the date example form a non virtual host
 Apache, everything works.  When running the same example with an Apache
 virtual host set up, the date jsp is executed but the date class it calls
is
 not invoked.  The date example boiler plate text is displayed without
 values.

 Any help would be greatly appreciated.

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