Re: Configuring mod_jk2

2002-12-13 Thread Bill Barker

Noel J. Bergman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  ApacheConfig is for use with mod_jk 1.x.  It doesn't work with jk2.
With
  jk2, you only need the 'LoadModule' statement in httpd.conf.  The rest
of
  the configuration is handled by the 'jk2.properties' file.

 My understanding, although I suppose I should look at the CVS for the
 current information, is that the jk2.properties file could be eliminated
in
 favor of JkSet commands in httpd.conf.  Out of date info?

jk2.properties and JkSet can be used interchangeably (although, without
looking at the source, I believe that the jk2.properties overrides the JkSet
when they both set the same options).  AFAIK, the Jk2 developers have no
intention of deprecating either configuration method.


 --- Noel





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




Tomcat for Enterprise Applications

2002-12-13 Thread G. Balandres
Hi all,

i have currently an dicussion going on about creating 
a 3/Multi Tier Enterprise Application which will
have one Webbased Client and one Standalone Client.
The main aim is the Webbased Client.

The problem is there are some workers which want to
use .NET and some who want to use J2EE.
I dont want to start something like a flame war here.
I just want to find out if we could use the Tomcat 
server and/or other Open Source Projects to 
develop our Application because i dont want 
to go the .NET way.
The application would be a middle to big size
CRM system.

So what we will need is an Application Server which
can handle EJB's. Even too it should be scalable in a way
that you can split parts of your application about
several servers which are working together in a network
environment.
As far as i have found out until now Tomcat can't do 
that things. Some people told me that Tomcat only implements
some J2EE standards.
I havent found a site on apache.org (Jakarta Side) that
explains what Tomcat can do and what it cant.
Anybody has one?

Can Tomcat work together with other Applications
that integrate the functions that Tomcat doesnt have
but are needed for J2EE Applications?

So as far as i can see now. Tomcat is good for some 
mainly Webbased applications which are using Servlets 
but i cant see in which productive environments it is
used. Could anybody tell me in what kind of projects 
you did use it?

And now there is another question which doesnt really
belong to this Mailinglist. But if i am here ... =)
So if Tomcat cant be used to create Enterprise Applications
which are mostly using EJB's and should be scalable on the server
side what other ways are there. I've heard about other
Open Source J2EE Application Servers and then there are the 
commercial Servers like Websphere and so on.
I've surley read books about J2EE but none of them didnt 
give much information about the diffrent application servers
for J2EE. So i know some stuff about programming J2EE applications
but not much about how to implement them on the server side.
Any suggestions on that?


Thank you for reading my stuff and if you have any idea about
my questions any answer would be highly appreciated.

Thanks and Greetings,
G. Balandres

--

Even god is a Programmer:
while heartIsBumping()  {
  /* Many
 Cases and If-Else Routines
 which ends with 
 exit   
  */

  doLive()  
}








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




Re: Tomcat for Enterprise Applications

2002-12-13 Thread Peng Tuck Kwok
Tomcat only does jsp/servlets, so if you are after EJB's then you need 
something like Jboss, which also bundles tomcat for jsp/servlets or 
jetty. Apparently Jboss is pretty good and a lot of people are happy 
with it so you might want to look into it. You need to pay for the docs 
though.

G. Balandres wrote:
Hi all,

i have currently an dicussion going on about creating 
a 3/Multi Tier Enterprise Application which will
have one Webbased Client and one Standalone Client.
The main aim is the Webbased Client.

The problem is there are some workers which want to
use .NET and some who want to use J2EE.
I dont want to start something like a flame war here.
I just want to find out if we could use the Tomcat 
server and/or other Open Source Projects to 
develop our Application because i dont want 
to go the .NET way.
The application would be a middle to big size
CRM system.

So what we will need is an Application Server which
can handle EJB's. Even too it should be scalable in a way
that you can split parts of your application about
several servers which are working together in a network
environment.
As far as i have found out until now Tomcat can't do 
that things. Some people told me that Tomcat only implements
some J2EE standards.
I havent found a site on apache.org (Jakarta Side) that
explains what Tomcat can do and what it cant.
Anybody has one?

Can Tomcat work together with other Applications
that integrate the functions that Tomcat doesnt have
but are needed for J2EE Applications?

So as far as i can see now. Tomcat is good for some 
mainly Webbased applications which are using Servlets 
but i cant see in which productive environments it is
used. Could anybody tell me in what kind of projects 
you did use it?

And now there is another question which doesnt really
belong to this Mailinglist. But if i am here ... =)
So if Tomcat cant be used to create Enterprise Applications
which are mostly using EJB's and should be scalable on the server
side what other ways are there. I've heard about other
Open Source J2EE Application Servers and then there are the 
commercial Servers like Websphere and so on.
I've surley read books about J2EE but none of them didnt 
give much information about the diffrent application servers
for J2EE. So i know some stuff about programming J2EE applications
but not much about how to implement them on the server side.
Any suggestions on that?


Thank you for reading my stuff and if you have any idea about
my questions any answer would be highly appreciated.

Thanks and Greetings,
G. Balandres

--

Even god is a Programmer:
while heartIsBumping()  {
  /* Many
 Cases and If-Else Routines
 which ends with 
 exit		
  */
  	
  doLive()  
}








--
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: Configuring Security URLs (realm)

2002-12-13 Thread Bill Barker
Probably easier is to just check the condition in your Servlet and/or
Filter:
  String st = (String)request.getParameter(STATE);
  if( st == null) {
 response.sendError( 401, No State);
 return;
  }
  int state=-1;
  try {
 state = Integer.parseInt(st);
  } catch(NumberFormatExecption nfe) {
 response.sendError(401, Not Authenticated);
 return;
 }
 if( !validState(state) ) { // your code to validate the STATE param.
   response.sendError(403, Hackers not welcome);
   return;
 }
 // Your code here.

Jeanfrancois Arcand [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 No. You cannot (it's against the Servlet spec). If you realy needs it,
 you can download Tomcat code and customizes
 o.a.c.authenticator.AuthenticatorBase.invoke in Tomcat 4, and
 o.a.c.realm.RealmBase.hasResourcePermission in Tomcat 5.

 -- Jeanfrancois

 [EMAIL PROTECTED] wrote:

 Hi,
 I want to know if there is a way to manage authorization to
  URL + Parameters.
 I am using servlets and states to identify the action in my
  programs, so this is very important.
 
 For now I am using this XML:
 
 security-constraint
   web-resource-collection
 web-resource-nameSample Airlines/web-resource-name
 url-pattern/servlet/examples.reservaVoos.Servlet/url-pattern
   /web-resource-collection
   auth-constraint
 role-namemanager/role-name
   /auth-constraint
 /security-constraint
 
 I need something like:
   ...
 
url-pattern/servlet/examples.reservaVoos.Servlet?STATE=0/url-pattern
   ...
 
 Is there a way to do that???
 Thanks.
 
 Don't E-Mail, ZipMail! http://www.zipmail.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]




deactivate and delete unneeded Programm Parts

2002-12-13 Thread Tim Büthe
Hi,
I'm using the Tomcat 4.1.12 embedded in a Java-Program. I want to delete 
all the unneeded stuff and don't do know how to do.
At first I really don't need the Web-Administration of Tomcat.
Is there anybody who knows how to deactivate / delete the Web-Administration?

Thanks a lot

Tim


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



RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

2002-12-13 Thread Marco Bucciarelli
Hi, I have also this problem/doubt: how to limit the number of threads
opened by Tomcat?
I tried to change a lot of settings in server.xml but nothing influenced
that number.
I have always 46 new java processes opened by Tomcat.

I did this test (Linux RedHat 7.0, Tomcat 4.1.12, Apache 1.3.12, Sun JDK
1.4.1_01):
- reboot the machine, with tomcat service disabled at startup
- the free command gives me 221.196Kb of memory free (Total 256Mk)
- start tomcat
- I found 46 new java processes
- the top command says that every process uses 56Mb of RAM
- the free command now gives me 44.436Kb free

All this without accessing to Apache or Tomcat, only before and after the
start of Tomcat!

Of course I do not have a memory usage of 46*56Mb, but I do not have only
56Mb of RAM used by Tomcat (after the start I have only 44Mb of memory free,
before the start I had 220Mb free).

What is happening?

Bye,
Marco.


From: Galbayar
Subject:  Re: Tomcat using VERY LARGE Memory (URGENT!)
Date:  Tue, 12 Mar 2002 10:26:21 +0800

it is top result and every java process using 59M RAM
i'm use mod_jk integrated Tomcat with Apache and Tomcat
top result is :


110 processes: 109 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  2.3% user,  1.9% system,  0.0% nice, 95.6% idle
Mem:  1028860K av,  938924K used,   89936K free, 116K shrd,
139628K
buff
Swap: 1020116K av,   0K used, 1020116K free
680228K
cached

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME
COMMAND
17862 root  15   0  1092 1092   836 R 1.7  0.1   0:00 top
17293 root  13   0 28176  59M  9576 S 1.5  2.7   0:01 java
17272 root  10   0 28176  59M  9576 S 0.1  2.7   0:02 java

and see MEM usage total RAM is 1028860K  938924K used,   89936K free


- Original Message -
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 12, 2002 10:14
Subject: RE: Tomcat using VERY LARGE Memory (URGENT!)


 what you are seeing is that ps or top lists one process for
each
thread
 in Tomcat.
 your tomcat is running 59M all together

 Filip

 ~
 Namaste - I bow to the divine in you
 ~
 Filip Hanik
 Software Architect
 [EMAIL PROTECTED]
 www.filip.net

 -Original Message-
 From: Galbayar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 6:04 PM
 To: Tomcat Users List
 Subject: Tomcat using VERY LARGE Memory (URGENT!)
 
 
 Hello all
 Here is part of top output. Is it usual that java
 processes eat all of memory? ? At now there are 50 java
processes started
 that running tomcat and each of them uses 59M memory. There
is running
 apache
 server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK
1.4 is
installed.
 how to solve this problem?
 
 106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
 CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
 Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd,
129004K buff
 wap: 1020116K av, 0K used, 1020116K free 762320K cached
 
 3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
 3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
 3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 
 


 --
 To unsubscribe:   mailto:tomcat-user-
[EMAIL PROTECTED]
 For additional commands: mailto:tomcat-user-
[EMAIL PROTECTED]
 Troubles with the list: mailto:tomcat-user-
[EMAIL PROTECTED]





--
To unsubscribe:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands: mailto:tomcat-user-
[EMAIL PROTECTED]
Troubles with the list: mailto:tomcat-user-
[EMAIL PROTECTED]



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




Re: Error 403 using an Alias with Apache + Tomcat4

2002-12-13 Thread Bill Barker
Apache needs read+execute access on all directories up to and including the
Tomcat directory for the user the Apache runs under (which I believe is
'apache' for the default RedHat install, but I don't really use RedHat
myself).

Marco Bucciarelli [EMAIL PROTECTED] wrote in message
003d01c2a1ce$28baa250$[EMAIL PROTECTED]">news:003d01c2a1ce$28baa250$[EMAIL PROTECTED]...
I have a problem with Apache 1.3.12 and Tomcat 4.1.12 on a Linux RedHat 7.0.
I tried both mod_jk and mod_webapp to let Tomcat and Apache talk together,
now I am using mod_jk but I experienced this problem with both connectors.
The problem is this:
if I give an Alias directive to Apache, for a directory that is a Tomcat
application, I get always an Error 403 - Forbidden from Apache. If I do not
give the alias directive, every file is served by Tomcat and everything
works, but Tomcat does not serve files that reside on a directory that is a
symlink (not on my installation, perhaps thare is some directive to give to
Tomcat).
I tried the JkAutoAlias, I tried to make an alias for the directory that is
a symlink, but nothing worked.

Here are my httpd.conf and mod_jk.conf files:

* START httpd.conf **


 IfDefine HAVE_JK
 LoadModule jk_module modules/mod_jk.so
 AddModule  mod_jk.c
 Include /var/tomcat4/conf/mod_jk.conf
 /IfDefine

* END httpd.conf **

* START mod_jk.conf **

###
# The following line instructs Apache to load the jk module
#
#LoadModule jk_module modules/mod_jk.dll

###
JkWorkersFile /var/tomcat4/conf/workers.properties
JkLogFile /var/tomcat4/logs/mod_jk.log

###
# Log level to be used by mod_jk
#
#JkLogLevel Information
JkLogLevel error

###
# context mounts for Tomcat
#
#JkAutoAlias /var/tomcat4/webapps
#JkMount /*.jsp ajp13
#JkMount /* ajp13

JkMount /mytest/* ajp13
JkMount /mytest/*.jsp ajp13
Alias /bignami /var/tomcat4/webapps/mytest
Directory /var/tomcat4/webapps/mytest
AllowOverride None
Options Indexes FollowSymLinks
/Directory
Location /mytest
allow from all
/Location
Location /mytest/Connections/
deny from all
/Location

* END mod_jk.conf **

Thanks,
Marco.







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




network round trips

2002-12-13 Thread Puneet Agarwal
We recently developed an application using struts on tomcat.

The performance benchmarks are perfactly fine but we have a problem at network round 
trip end.

This is because even if the included JavaScripts/css/gif/jpeg  files, are all cached, 
still it checks for the last modified time with the web server and makes a round trip, 
wich increases the network latency.

When I searched for a solution to this problem, I came to know that HTTP specification 
provides a way for this, and that is:
to specify the expiers tag in HTTP Header.

But this has to be done against particular MIME types because the HTTP header applies 
to the payload only not to the cached JavaScript/CSS files.

Can someone please tell us how to configuer this.

I have observed over the internet that almost all good sites somehow have been able to 
manage to set this expires tag for all cached files.

Regards
Puneet Agarwal

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

Meet Singles
http://corp.mail.com/lavalife


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




who can help me with puretls.jar ???

2002-12-13 Thread Jean-Luc BEAUDET
 Hi all,

I finally got my new 4.1.12 rel compiled and running.

Unfortunately, i had to comment out all the lines concerning 
puretls.jar; i don't know where i can get it downloaded.

Any help welcome, thanks in advance.

Jean-Luc :O)




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



error handling in servlets vs. JSPs

2002-12-13 Thread Jan Hustak
Hello,

I have a peculiar problem with Tomcat 4.0.4.

My web.xml contains a bunch of error-page elements pointing at error handlers for 
various exceptions. When one of these exceptions is invoked in a JSP, everything goes 
fine but when it happens in a servlet, the standard Tomcat error page is displayed 
instead.

After carefully examining the 2.3 Servlet Specification I don't think Tomcat's 
supposed to do that. Am I mis-reading the specification or is Tomcat not conforming? 
Or is there some configuration parameter I haven't found?

Any advice appreciated.

jh

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




RE: who can help me with puretls.jar ???

2002-12-13 Thread David Rayroud
You can find puretls.jar on this adress :
http://jpackage.sourceforge.net/rpm2html/free/RPMS/puretls-0.9-0.b2.1jpp.noa
rch.html

David Rayroud

-Message d'origine-
De : Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi, 13. décembre 2002 11:16
À : tomcat-user
Objet : who can help me with puretls.jar ???

  Hi all,

I finally got my new 4.1.12 rel compiled and running.

Unfortunately, i had to comment out all the lines concerning
puretls.jar; i don't know where i can get it downloaded.

Any help welcome, thanks in advance.

Jean-Luc :O)




--
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 for Enterprise Applications

2002-12-13 Thread Mike W-M
I'm currently working (independently!) with Oracle's BC4J application /
persistence framework (against a transactional MySQL database).
The framework is supposed to be client independent, and JDeveloper (with
which the framework comes) provides tools for generating / designing both
thick and thin-web-based clients against the same backend logic
implementation.  (My quotes, not theirs!  I can't vouch for their clients
since I'm hand-coding my own JSPs - primarily because the wizard-created
JSPs didn't suit (and looked rubbish!) at the time (and I had enough to
learn)   - and basically using BC4J for managed persistence (in place of
EJBs).)

If you're at the stage where you're just learning that J2EE doesn't
necessarily mean EJBs (and that Tomcat doesn't support them!) then you've
got a pretty steep learning curve ahead of you.  I'd urge you to try to take
a generative or framework approach to building your application and NOT to
start trying to hand-code an enterprise app from scratch. [I suspect the
same is true of dotNet as well?]

I don't have a wide breadth of experience in Java - hopefully others will
have more to add - but I'd recommend you take a look at JDeveloper / BC4J
(It's low-cost, too!).

Mike.


- Original Message -
From: Peng Tuck Kwok [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 13, 2002 9:44 AM
Subject: Re: Tomcat for Enterprise Applications


Tomcat only does jsp/servlets, so if you are after EJB's then you need
something like Jboss, which also bundles tomcat for jsp/servlets or
jetty. Apparently Jboss is pretty good and a lot of people are happy
with it so you might want to look into it. You need to pay for the docs
though.

G. Balandres wrote:
 Hi all,

 i have currently an dicussion going on about creating
 a 3/Multi Tier Enterprise Application which will
 have one Webbased Client and one Standalone Client.
 The main aim is the Webbased Client.
snip.


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




RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

2002-12-13 Thread Luc Santeramo
Hi,

there is a way to limit memory use by tomcat
just specify it in your CATALINA_OPTS env var
here is mine
CATALINA_OPTS=-server -Xmx220m -Xms220m -Dfile.encoding=UTF-8

these are jvm parameter I think
Xmx is the max mem to use and Xms is the min

hope this helps

Luc

At 11:03 13/12/2002  +0100, Marco Bucciarelli wrote:

Hi, I have also this problem/doubt: how to limit the number of threads
opened by Tomcat?
I tried to change a lot of settings in server.xml but nothing influenced
that number.
I have always 46 new java processes opened by Tomcat.

I did this test (Linux RedHat 7.0, Tomcat 4.1.12, Apache 1.3.12, Sun JDK
1.4.1_01):
- reboot the machine, with tomcat service disabled at startup
- the free command gives me 221.196Kb of memory free (Total 256Mk)
- start tomcat
- I found 46 new java processes
- the top command says that every process uses 56Mb of RAM
- the free command now gives me 44.436Kb free

All this without accessing to Apache or Tomcat, only before and after the
start of Tomcat!

Of course I do not have a memory usage of 46*56Mb, but I do not have only
56Mb of RAM used by Tomcat (after the start I have only 44Mb of memory free,
before the start I had 220Mb free).

What is happening?

Bye,
Marco.


From: Galbayar
Subject:  Re: Tomcat using VERY LARGE Memory (URGENT!)
Date:  Tue, 12 Mar 2002 10:26:21 +0800

it is top result and every java process using 59M RAM
i'm use mod_jk integrated Tomcat with Apache and Tomcat
top result is :


110 processes: 109 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  2.3% user,  1.9% system,  0.0% nice, 95.6% idle
Mem:  1028860K av,  938924K used,   89936K free, 116K shrd,
139628K
buff
Swap: 1020116K av,   0K used, 1020116K free
680228K
cached

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME
COMMAND
17862 root  15   0  1092 1092   836 R 1.7  0.1   0:00 top
17293 root  13   0 28176  59M  9576 S 1.5  2.7   0:01 java
17272 root  10   0 28176  59M  9576 S 0.1  2.7   0:02 java

and see MEM usage total RAM is 1028860K  938924K used,   89936K free


- Original Message -
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 12, 2002 10:14
Subject: RE: Tomcat using VERY LARGE Memory (URGENT!)


 what you are seeing is that ps or top lists one process for
each
thread
 in Tomcat.
 your tomcat is running 59M all together

 Filip

 ~
 Namaste - I bow to the divine in you
 ~
 Filip Hanik
 Software Architect
 [EMAIL PROTECTED]
 www.filip.net

 -Original Message-
 From: Galbayar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 6:04 PM
 To: Tomcat Users List
 Subject: Tomcat using VERY LARGE Memory (URGENT!)
 
 
 Hello all
 Here is part of top output. Is it usual that java
 processes eat all of memory? ? At now there are 50 java
processes started
 that running tomcat and each of them uses 59M memory. There
is running
 apache
 server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK
1.4 is
installed.
 how to solve this problem?
 
 106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
 CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
 Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd,
129004K buff
 wap: 1020116K av, 0K used, 1020116K free 762320K cached
 
 3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
 3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
 3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 
 


 --
 To unsubscribe:   mailto:tomcat-user-
[EMAIL PROTECTED]
 For additional commands: mailto:tomcat-user-
[EMAIL PROTECTED]
 Troubles with the list: mailto:tomcat-user-
[EMAIL PROTECTED]





--
To unsubscribe:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands: mailto:tomcat-user-
[EMAIL PROTECTED]
Troubles with the list: mailto:tomcat-user-
[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]




doubts and errors on Apache 1.3 and Tomcat 3.2.1

2002-12-13 Thread Günther Mittermayer

Hi All,

i´ve been learning a lot about tomcat and apache on the last few weeks, but 
as every self-learner, i still have some conceptual doubts and 
misunderstandings... Any help or clearances are very much appreciated :).

Well, here's my problem:

A LITTLE BACKGROUND:

I´m trying to get tomcat 3.2.1 to work with apache 1.3.  Apache serves well 
the Port 80 pages but wont redirect the 8080 requests to Tomcat.  The 
problem, as one would expect has something to do with JkMount.

I've configured two virtual hosts in Apache with the two ports which I want 
to be served by tomcat (8080 and 8081).

THE PROBLEM:

if I place the Jkmount directives in the Virtualhosts section (at the end of 
httpd.conf), Apache gives me the following error:

Syntax error on line 1036 of c:/programme/apache 
group/apache/conf/httpd.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module not 
included in the server configuration

The virtual host lines in Apache are the following.

VirtualHost 141.19.93.41:8080
	DocumentRoot /htdocs
	ServerName http://ds41.dsp.fh-mannheim.de
	JkMount /*.* worker_ajp13_1
/VirtualHost

VirtualHost 141.19.93.41:8081
	DocumentRoot /htdocs
	ServerName http://ds41.dsp.fh-mannheim.de
	JkMount /*.* worker_ajp13_2
/VirtualHost

The only way I was able to have the error gone is by placing the virtual 
hosts entries right after the LoadModule jk_module definition, i.e. before I 
include any other module. (Although in both cases I keep getting this silly 
log line : Cannot remove module mod_jk.c: not found in module list).  Here 
are my loadmodule definitions for mod_jk (I haven't included the 
mod_jk.conf)

LoadModule jk_module modules/mod_jk.dll
#AddModule mod_jk.c

JkWorkersFile conf/workers.properties
JkLogFile  logs/mod_jk.log
JkLogLevel info

THE QUESTIONS:

Reading very carefully the last e-mails, I noticed I haven't got a couple of 
directives sugested to others:

my server.xml file has no Listener entry, nor has it anything related to 
Coyote... Should it have, remembering I'm not working with tomcat4?

thanks in advance for any hints..

gunther

PS: Here goes my server.xml file:

?xml version=1.0 encoding=ISO-8859-1?

Server
   !-- Debug low-level events in XmlMapper startup --
   xmlmapper:debug level=0 /

   !--

   Logging:

Logging in Tomcat is quite flexible; we can either have a log
file per module (example: ContextManager) or we can have one
for Servlets and one for Jasper, or we can just have one
tomcat.log for both Servlet and Jasper.  Right now there are
three standard log streams, tc_log, servlet_log, and
JASPER_LOG.

	 Path:

	 The file to which to output this log, relative to
	 TOMCAT_HOME.  If you omit a path value, then stderr or
	 stdout will be used.

	 Verbosity:

	 Threshold for which types of messages are displayed in the
	 log.  Levels are inclusive; that is, WARNING level displays
	 any log message marked as warning, error, or fatal.  Default
	 level is WARNING.

	 verbosityLevel values can be:
	FATAL
	ERROR
	WARNING
   INFORMATION
   DEBUG

	 Timestamps:

	 By default, logs print a timestamp in the form -MM-dd
	 hh:mm:ss in front of each message.  To disable timestamps
	 completely, set 'timestamp=no'. To use the raw
	 msec-since-epoch, which is more efficient, set
	 'timestampFormat=msec'.  If you want a custom format, you
	 can use 'timestampFormat=hh:mm:ss' following the syntax of
	 java.text.SimpleDateFormat (see Javadoc API).  For a
	 production environment, we recommend turning timestamps off,
	 or setting the format to msec.

	 Custom Output:

	 Custom means normal looking.  Non-custom means
	 surrounded with funny xml tags.  In preparation for
	 possibly disposing of custom altogether, now the default is
	 'custom=yes' (i.e. no tags)

	 Per-component Debugging:

	 Some components accept a debug attribute.  This further
	 enhances log output.  If you set the debug level for a
	 component, it may output extra debugging information.
   --

   !-- if you don't want messages on screen, add the attribute
   path=logs/tomcat.log
	 to the Logger element below
   --
   Logger name=tc_log
   verbosityLevel = INFORMATION
   /

   Logger name=servlet_log
   
path=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat-3.2.1\logs\servlet.log
   /

   Logger name=JASPER_LOG
	
path=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat-3.2.1\logs\jasper.log
   verbosityLevel = INFORMATION /

   !-- You can add a home attribute to represent the base for
all relative paths. If none is set, the TOMCAT_HOME property
will be used, and if not set . will be used.
webapps/, work/ and logs/ will be relative to this ( unless
set explicitely to absolute paths ).

You can also specify a randomClass attribute, which determines
a subclass of java.util.Random will be used for generating session 
IDs.
By default 

Re: virtual hosting on tomcat

2002-12-13 Thread Stephen Riek

I think you can't do virtual hosting on Tomcat standalone.
You need Apache in front of it. 
See the following which may help,
http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html?page=1
 
 Sherif D Mohamad [EMAIL PROTECTED] wrote:I am trying to add a virtual host on 
tomcat, I added this lines to
server.xml file:

appBase=/home/username/webapps/ROOT unpackWARs=true
mysite.mydom.net
directory=logs prefix=menanet.net. suffix=.log
timestamp=true/




and copied all $CATALINE_HOME/webapps to /home/username/webapps , I can get
the default index.jsp of tomcat, but when I click on manager application it
says status 404, not available , so how can I install an application on the
new site ? or how can I run the manager on the new site, is there other
things that I need to copy other than $CATALINE_HOME/webapps ?



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




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



mod_jk2 and JkWorkersFile ???

2002-12-13 Thread Patrick GIRY
I'm using Apache 2.0.43, tomcat 4.1.12 and mod_jk2 to
communicate between them.
I am looking for how to indicate to the mod_jk2 an
other directory than  APACHE_HOME/conf for finding
workers2.properties.

I used JkWorkersFile d:/workers2.properties in the
httpd.conf but the startup of apache failed.

=
A+
Patrick GIRY
e-mail : [EMAIL PROTECTED]

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




RE: Apache+mod_dav+connector dilemma

2002-12-13 Thread Jonas Bosson
Hi Noel!

Yes, we use the root for dav and filtering, since unique and clear
identities/url-identifiers are very important to us.

In your conf-snipplet it seems that you bind the tomcat connector by
mime-type and then redefine the the mime-type in the 'dav' location to
avoid being captured by the connector. I cant get this to work in my
configuration. What connector / tomcat / server are you using?

Curious, 
Jonas


tor 2002-12-12 klockan 22.35 skrev Noel J. Bergman:
 Jonas,
 
 Are you trying to do DAV from the root?  I have a special Location element
 for DAV:
 
 Alias /dav /.../htdocs
 Location /dav/ 
   DAV On
   AddType text/plain .jsp
   AllowOverride None
   Options None
 /Location
 
 an alternative, which I have no chosen to use, would be to define a DNS
 entry and virtual host, e.g., dav.domain.tld.
 
   --- Noel
 
 -Original Message-
 From: Jonas Bosson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 12, 2002 10:56
 To: [EMAIL PROTECTED]
 Subject: Apache+mod_dav+connector dilemma
 
 
 Dear tomcat wizards.
 
 I can't get mod_dav to work since the jk connector routes all http
 method calls for *.xml pages to tomcat. Any solution I can think of
 requires a modification of the connectors in tomcat.
 
 Before I proceed, I need help to decide what the best solution is:
 
 Alt 1: Allow the connectors to act within location instead of for the
 whole host/virtualhost so that a apache virtual folder can be shielded
 from the connector. This allows for operations to be exclusive for
 apache within this location.
 
 Alt 2: Method filtering by argument to jkmount. This would allow mod_dav
 to function and tomcat to serve dynamic responses only to GET, HEAD and
 POST.
 
 Alt 3: A response from tomcat (and the servlet) to the connector that it
 should find the next suitable match in apache. This way we could decide
 if tomcat or apache should handle the request dynamically.
 
 
 ... the simple solution that I am missing.
 else I am ready to start modifying the connectors.
 
 Rest regards,
 --
 Jonas Bosson
 HomePage: http://www.illuminet.se/
 
 
 --
 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]
-- 
Jonas Bosson

IllumiNet AB - From information to knowledge

HomePage: http://www.illuminet.se/

Visiting address: Narvavägen 32, 6tr Stockholm
Postal Address: Upplandsg. 85 1tr 11344 Stockholm

Office phone: +46(0)8 666 96 61 
Mobile phone: +46(0)70 4217840


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




symlink to WEB-INF

2002-12-13 Thread Alberto Puerta

Hi, i need a solution please:

I'm running Apache-Tomcat under Linux working with several virtual hosts. I
would like to setup all of them to use the same WEB-INF.
I tried to use symbolic links in each website pointing to the same WEB-INF
directory but it seems that Tomcat ignores them.

is it possible to share WEB-INF among differents web-sites? how could I do
it?

Thanks in advance.



Tomcat/IIS losing request parameters

2002-12-13 Thread Ian Pilborough
Hi,

I have problem with IIS and Tomcat losing request parameters.

I have a set-up with IIS 5.0 and Tomcat 4.0.6 on Windows 2002 Advanced
Server and JDK 1.3.1_01 and for sometime this has worked fine, but I have
just noticed that request parameters are lost when there are spaces in the
filenames of a JSP being served.

With this code to loop through request.getParameters() on two pages I get
two different outputs from the same request parameters.

%

int i =0;
for (Enumeration e = request.getParameterNames() ; e.hasMoreElements() ;)
{%
 %=++i% = %=e.nextElement()%BR
%}
 
%

For

http://localhost/mydir/testwithoutspaces.jsp?one=1two=2

I get:

1 = one
2 = two

For 

http://localhost/mydir/test with spaces.jsp?one=1two=2

I get nothing returned.

If I hit the pages via port 8080 I get the correct response (i.e. from
testwithoutspaces.jsp above) from both pages. I can't see what is happening
here and wondered if this is a known feature when using filenames that
contain spaces between words.

I've looked for similar problems with lost request parameters and all I have
found is that IE sending URLs in UTF-8 can cause a problem with certain
versions of Tomcat. None of the problems I reviewed mentioned IIS and Tomcat
in conjunction though. If tomcat handles the URLs fine as standalone on port
8080 the only difference is with requests being passed through to Tomcat
from IIS via the AJP connector.

I've got two further problems, in that I didn't configure the original
system and that the system is in a co-location centre that I don't have much
access to. I'm currently setting up a test environment with IIS, but that's
not working at present, the original test environment didn't use IIS and so
I'm fighting to get a test set-up ready to work on this. (The joys of
picking up other's pieces eh?)

Finally, it is not possible to create the filenames without spaces in them
due to the software that produces each JSP (it's a long story, but not
relevant to this discussion). If anyone has any ideas, please send me a
message, otherwise I shall continue to trawl the net.

Cheers,

Ian

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




Re: Configuring Security URLs (realm)

2002-12-13 Thread afterz

OK! ;)
Thanks everybody, I will look for alternatives. But I will
 probably add a feature of resource(URI) with the user and
 passwd. Then use filter to complement the authorization.

On Fri, 13 Dec 2002 01:55:56 -0800
Bill Barker [EMAIL PROTECTED] wrote:
Probably easier is to just check the condition in your
 Servlet and/or
Filter:
  String st = (String)request.getParameter(STATE);
  if( st == null) {
 response.sendError( 401, No State);
 return;
  }
  int state=-1;
  try {
 state = Integer.parseInt(st);
  } catch(NumberFormatExecption nfe) {
 response.sendError(401, Not Authenticated);
 return;
 }
 if( !validState(state) ) { // your code to validate the
 STATE param.
   response.sendError(403, Hackers not welcome);
   return;
 }
 // Your code here.

Jeanfrancois Arcand [EMAIL PROTECTED] wrote in
 message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 No. You cannot (it's against the Servlet spec). If you
 realy needs it,
 you can download Tomcat code and customizes
 o.a.c.authenticator.AuthenticatorBase.invoke in Tomcat
 4, and
 o.a.c.realm.RealmBase.hasResourcePermission in Tomcat 5.

 -- Jeanfrancois

 [EMAIL PROTECTED] wrote:

 Hi,
 I want to know if there is a way to manage
 authorization to
  URL + Parameters.
 I am using servlets and states to identify the action
 in my
  programs, so this is very important.
 
 For now I am using this XML:
 
 security-constraint
   web-resource-collection
 web-resource-nameSample
 Airlines/web-resource-name
 

url-pattern/servlet/examples.reservaVoos.Servlet/url-pattern
   /web-resource-collection
   auth-constraint
 role-namemanager/role-name
   /auth-constraint
 /security-constraint
 
 I need something like:
   ...
 
url-pattern/servlet/examples.reservaVoos.Servlet?STATE=0/url-pattern
   ...
 
 Is there a way to do that???
 Thanks.
 
 Don't E-Mail, ZipMail! http://www.zipmail.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]



Don't E-Mail, ZipMail! http://www.zipmail.com/

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




configuring apache for virtualhosts with tomcat and jserv

2002-12-13 Thread Frank Mattheus
Hello,

I have two applications that I'd really like to get running on the same web
server with ip virtual hosts.
Now, app1 is currently running with jserv, while app2 is runing with tomcat.

Is it possible to run both tomcat and jserv in the same apache(v1.3)?

If so, what directives do I need to look at putting into the VirtualHost
tags?

Thanks,
Frank Mattheus

P.S. - I have googled for this already and not found anything about running
both in the same apache server.


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




Re: Error 403 using an Alias with Apache + Tomcat4

2002-12-13 Thread Marco Bucciarelli
Yes, that was the problem (it was a really stupid problem).

I still have the problem with the symlinks:
in the webapps/mytest directory I have a subdirectory that is a symlink:
cd /var/tomcat4/webapps/mytest
ln -s /tmp/mydir mydir
the directory /tmp/mydir has the right permissions and also the symlink

If I ask the page http://myserver/mytest/mydir, I get an ERROR 404 response.
The problem is that this response comes from Apache Tomcat 4.1 and not form
Apache 1.3.12!!
I also tried to make an alias to the symlinked directory and then to the
real directory, and then I removed the symlink (leaving the alias), but
nothing worked:

JkMount /mytest/* ajp13
JkMount /mytest/*.jsp ajp13
Alias /mytest /var/tomcat4/webapps/mytest
Alias /mytest/mydir /var/tomcat4/webapps/mytest/mydir
Directory /var/tomcat4/webapps/mytest
AllowOverride None
Options Indexes FollowSymLinks
/Directory
Location /mytest
allow from all
/Location
Location /mytest/Connections/
deny from all
/Location

The same if I ask a directory that is under mytest: I get the directory
listing from Apache Tomcat/4.1 and not from the Apache webserver.
To make a test, if I stop Tomcat and leave an alias for Apache to
/mytest/mydir, I get an ERROR 500 - Internal Server Error (of course,
because Apache does not find the connection with Tomcat).

I thought that, making the alias, all the static resources were served by
apache webserver, not from Tomcat (I do not have an Http connector for
Tomcat configured).
It seems that Tomcat serves all the resources under his contexts, also if
you make an alias in Apache WebServer!
With Tomcat3 all that worked fine!

Bah, I will spend another lot of time testing and trying and reading
documentation.

By,
Marco.


- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 13, 2002 11:07 AM
Subject: Re: Error 403 using an Alias with Apache + Tomcat4


 Apache needs read+execute access on all directories up to and including
the
 Tomcat directory for the user the Apache runs under (which I believe is
 'apache' for the default RedHat install, but I don't really use RedHat
 myself).

 Marco Bucciarelli [EMAIL PROTECTED] wrote in message
 003d01c2a1ce$28baa250$[EMAIL PROTECTED]">news:003d01c2a1ce$28baa250$[EMAIL PROTECTED]...
 I have a problem with Apache 1.3.12 and Tomcat 4.1.12 on a Linux RedHat
7.0.
 I tried both mod_jk and mod_webapp to let Tomcat and Apache talk together,
 now I am using mod_jk but I experienced this problem with both connectors.
 The problem is this:
 if I give an Alias directive to Apache, for a directory that is a Tomcat
 application, I get always an Error 403 - Forbidden from Apache. If I do
not
 give the alias directive, every file is served by Tomcat and everything
 works, but Tomcat does not serve files that reside on a directory that is
a
 symlink (not on my installation, perhaps thare is some directive to give
to
 Tomcat).
 I tried the JkAutoAlias, I tried to make an alias for the directory that
is
 a symlink, but nothing worked.

 Here are my httpd.conf and mod_jk.conf files:

 * START httpd.conf **
 ...
 ...
  IfDefine HAVE_JK
  LoadModule jk_module modules/mod_jk.so
  AddModule  mod_jk.c
  Include /var/tomcat4/conf/mod_jk.conf
  /IfDefine

 * END httpd.conf **

 * START mod_jk.conf **

 ###
 # The following line instructs Apache to load the jk module
 #
 #LoadModule jk_module modules/mod_jk.dll

 ###
 JkWorkersFile /var/tomcat4/conf/workers.properties
 JkLogFile /var/tomcat4/logs/mod_jk.log

 ###
 # Log level to be used by mod_jk
 #
 #JkLogLevel Information
 JkLogLevel error

 ###
 # context mounts for Tomcat
 #
 #JkAutoAlias /var/tomcat4/webapps
 #JkMount /*.jsp ajp13
 #JkMount /* ajp13

 JkMount /mytest/* ajp13
 JkMount /mytest/*.jsp ajp13
 Alias /bignami /var/tomcat4/webapps/mytest
 Directory /var/tomcat4/webapps/mytest
 AllowOverride None
 Options Indexes FollowSymLinks
 /Directory
 Location /mytest
 allow from all
 /Location
 Location /mytest/Connections/
 deny from all
 /Location

 * END mod_jk.conf **

 Thanks,
 Marco.







 --
 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: help: logging j_username

2002-12-13 Thread Rob Cartier
ok .. I am interested any ideas how to implement it

thanks in advance

--Rob

 -Original Message-
 From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 12, 2002 7:09 PM
 To: Tomcat Users List
 Subject: RE: help: logging j_username
 
 
  Is there a way besides using session cookies to log
  invalid logon attempts from a form based logon jsp
 
 Have you considered a session bean?
 
   --- Noel
 


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




RE: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-13 Thread Cox, Charlie
see below

 -Original Message-
 From: RXZ JLo [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 12:58 AM
 To: Tomcat Users List
 Subject: Re: RequestDispatcher scenarios ( was RE: static url routing)
 
 
 
 --- Craig R. McClanahan [EMAIL PROTECTED] wrote:
  
  
  On Mon, 9 Dec 2002, RXZ JLo wrote:
  
   Date: Mon, 9 Dec 2002 03:21:25 -0800 (PST)
   From: RXZ JLo [EMAIL PROTECTED]
   Reply-To: Tomcat Users List
  [EMAIL PROTECTED]
   To: Tomcat Users List
  [EMAIL PROTECTED]
   Subject: RequestDispatcher scenarios ( was RE:
  static url routing)
  
  
   --- Craig R. McClanahan [EMAIL PROTECTED]
  wrote:
To do a redirect filter, then, you'd examine the
request URI to determine
what kind of remapping is needed, and then do a
RequestDispatcher.forward() call to the remapped
resource name.  After the
forward returns (which means that the actual
response has been created),
simply return instead of calling
  chain.doFilter() to
pass the request on.
   
  
   I am looking for various scenarios where
   RequestDispatcher is used. When I searched the
  list, I
   noticed that it can be used in a Servlet too. What
   then is the difference between using it in a
  Filter
   and using it in servlet? Can I just use it in the
   Servlet to serve my purpose(of serving static
   content)?
  
  
  If you're serving your own static content with your
  own servlet, then you
  could do this.  Using a Filter lets you use Tomcat's
  standard static file
  serving servlet with no modifications.
 
 
 It seems I am confused about how RequestDispatcher
 works. From what I understand I think using a
 RequestDispatcher from within a Servlet or a Filter,
 is same - the request is viewed as a fresh request
 appropriately handled by Tomcat. This means, when I
 use RequestDispatcher(static_url).forward()+return in
 a servlet, it is the tomcat that is serving the static
 url, and in the same way as directly requested static
 urls.
 
RequestDisatcher is for dispatching (parts of)the current request to other
resources in the same context without involving the browser. This means that
it is not a new request(filters/valves/etc do not get invoked), but it is
processed by the servlet/filter just like a request directly to the
servlet/filter

 If you're serving your own static content with your
 own servlet, then you could do this. -- I want
 RequestDispatcher to handle serving the static content
 in my own servlet.
 

The DefaultServlet handles static content. This is not part of your servlet,
it is its own built-in servlet. If you need to modify behavior(custom
auth,etc) then you can set up a filter that is mapped to the static content.

for example:

the following mapping will cause 'MyFilter' to be run for any file requested
from the /images directory. If you do not set up a custom servlet to handle
/images/*, then the DefaultServlet will serve the request file from your
'images' directory provided your filter does not intercept the request(i.e.
redirect to a login page).

filter-mapping
filter-nameMyfilter/filter-name
url-pattern/images/*/url-pattern
/filter-mapping

I use this on a downloadable executable that I have - my filter ensures that
you have logged in(custom auth) and that you have agreed to terms before
allowing the DefaultServlet to give you the file.

Charlie

 Please clarify.
 Thanks,
 rf.
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.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]




error when start tomcat if in the web.xml is the error-page directive

2002-12-13 Thread Dionisio Ruiz de Zarate
if in my web.xml i have this:
error-page
error-code404/error-code
location/error.jsp/location
/error-page

the tomcat starts well but appears the next error. Can you help me to resolv
it? thanks.

ERROR:
13-dic-2002 13:19:14 org.apache.commons.digester.Digester error
GRAVE: Parse Error at line 723 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
3)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36
2)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29
6)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:1953)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8
78)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
cumentFragmentScannerImpl.java:1144)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:987)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:116
9)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
13-dic-2002 13:19:15 org.apache.jk.common.ChannelSocket init



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




RE: deactivate and delete unneeded Programm Parts

2002-12-13 Thread Aleksandr Shneyderman
 Is there anybody who knows how to deactivate / delete the 
 Web-Administration?

just remove/move the admin.xml, and I guess manager.xml 
from the webapps directory and it should go away.


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




Re: error when start tomcat if in the web.xml is the error-page directive

2002-12-13 Thread Uri Shohet
Make sure that error-page element appears after welcome-file-list and 
before taglib.

The order of the elements in any XML file is very important.

HTH,

Uri

On Friday 13 December 2002 14:22, Dionisio Ruiz de Zarate wrote:
 if in my web.xml i have this:
 error-page
 error-code404/error-code
 location/error.jsp/location
 /error-page

 the tomcat starts well but appears the next error. Can you help me to
 resolv it? thanks.

 ERROR:
 13-dic-2002 13:19:14 org.apache.commons.digester.Digester error
 GRAVE: Parse Error at line 723 column 11: The content of element type
 web-app must match
 (icon?,display-name?,description?,distributable?,context-param*,filter*,fi
l
 ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappi
n
 g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,s
e
 curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loc
a l-ref*).
 org.xml.sax.SAXParseException: The content of element type web-app must
 match
 (icon?,display-name?,description?,distributable?,context-param*,filter*,fi
l
 ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappi
n
 g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,s
e
 curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loc
a l-ref*).
 at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHan
d lerWrapper.java:232)
 at
 org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:1
7 3)
 at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:3
6 2)
 at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:2
9 6)
 at
 org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator
. java:1953)
 at
 org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:
8 78)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLD
o cumentFragmentScannerImpl.java:1144)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDoc
u mentFragmentScannerImpl.java:987)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispat
c her.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocum
e ntFragmentScannerImpl.java:333)
 at
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
 at
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:11
6 9)
 at org.apache.commons.digester.Digester.parse(Digester.java:1495)
 at
 org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.j
a va:282)
 at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
 at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java
: 243)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo
r t.java:166)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9 )
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 13-dic-2002 13:19:15 org.apache.jk.common.ChannelSocket init



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

-- 
Uri Shohet mailto:[EMAIL PROTECTED]
AMS Advanced Maintenance Systems Ltd.
Science Based Industry Campus
POB 23838, Jerusalem 91237,  Israel

Tel.: +972-2-541-7449   Cell: +972-54-259-850
Fax.: +972-2-581-4448   US Toll-Free:  1-866-389-2001

Registered Linux User #166615 (http://counter.li.org)


--
To unsubscribe, e-mail:   

Apache connector-localhost only

2002-12-13 Thread Daryl Lee
I cannot get my Apache-Tomcat mod_jk connector to work for anything other
than localhost.  Apache 2.0.43, Tomcat 4.1.12, Linux (Redhat 8.0).  Trying
to run http://localhost/examples/HelloWorldExample works, but if
localhost is replaced with either an IP address or a valid hostname, the
error_log reports file does not exist: /usr/local/apache2/htdocs/examples.

I've inspected mod_jk.config, and it looks sane.  I have ServerAlias
directives for the VirtualHost in it.  I have also turned UseCanonicalName
on in Apache (in a desperate attempt to try anything that sounded remotely
like it might have an effect).
-- 
Daryl Lee
Marietta, GA

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




Default servlet

2002-12-13 Thread RAFA
Hi.

Only with Tomcat, how can I go to a servlet by default?

With http://12.:8080 only  Load a servlet by default.


Thanks.
Rafa.


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




Problem Obteining the certicate Chain with Apache+mod_jk+tomcat

2002-12-13 Thread Joao Cerdeira
 HI,

I Have:

Apache 1.3.27-10
mod_ssl 2.8.7-4
modutils 2.4.14-3
mod_jk 1.3-1.0-1.4.0.2
tomcat 4.0.3

*   This is my JK mounk config:
*
   JkEnvVar SSL_CLIENT_CERT SSL_CLIENT_CERT
   JkMount /dgt/* ajp13

JkEnvVar SSL_CLIENT_CERT_CHAIN_0 SSL_CLIENT_CERT_CHAIN_0

   Location /servlets
SSLRequire true
SSLOptions +StdEnvVars +ExportCertData
SSLVerifyClient require
SSLVerifyDepth 10
  /Location

*
And this what i'm trying ti do:*

X509Certificate[] certs =
   (X509Certificate[]) 
request.getAttribute(javax.servlet.request.X509Certificate);

*And the problem
*
i'm trying to do a https client side connection.

the certs array just have 1 certificate
but my certificate chain installed in the browser have 3 certificates.


To debug the problem i make a cgi to print vars, but in the result are:



SSL_CLIENT_A_SIG=sha1WithRSAEncryption
SSL_CLIENT_CERT=-BEGIN CERTIFICATE-\nMIIF5jCCB 
SSL_CLIENT_CERT_CHAIN_0=-BEGIN CERTIFICATE-\nMIID7TCCA1ag ..

OK i discovered another problem my apache only give me 2 of the 3 
certificates.
Apache don't give me the root certificate of my chain.


*My question:*

What i must do, to obtein all the certificates 

thanks for reading my question
answer if you know  please


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



RE: Security violation in Tomcat 4.0.6

2002-12-13 Thread Gayathri Shaikh
Adding these permissions took care of the problem. Thanks a lot.

-- Gayathri

-Original Message-
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 12:45 AM
To: Tomcat Users List
Subject: Re: Security violation in Tomcat 4.0.6


In catalina.properties, can you add:

// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files and directories in its document root.
grant {
 [.]
  // Required for sevlets and JSP's
  permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.util; 
  permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.util.*;
  permission java.lang.RuntimePermission 
defineClassInPackage.org.apache.catalina.util;
  permission java.lang.RuntimePermission 
defineClassInPackage.org.apache.catalina.util.*;


That should fix theproblem. This has been fixed in 4.1.X. If it works, 
then file a bug against 4.0.6 (we will add the property next time we 
released 4.0.x)

-- Jeanfrancois

Gayathri Shaikh wrote:

Hi

I am using Tomcat 4.0.6 LE JDK 1.4 with JDK 1.4.1_01. 

I am getting the following Security violation when I try to access my web
application.

java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.org.apache.catalina.util)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.jav
a
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at
java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1501)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoade
r
.java:1056)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoade
r
.java:992)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at
org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBa
s
e.java:615)
at
org.apache.catalina.connector.HttpRequestBase.getParameter(HttpRequestBase.
j
ava:691)
at
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java
:
160)
at com.clickndone.billerdirect.BDRouter.doPost(BDRouter.java:141)
at com.clickndone.billerdirect.BDRouter.doGet(BDRouter.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
n
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilte
r
Chain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChai
n
.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
h
ain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
a
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
0
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
0
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
a
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
66)
 

RE: error when start tomcat if in the web.xml is the error-page directive

2002-12-13 Thread Pedro Nevado
Dionisio,
I do not find anything wrong with that entry in your web.xml file. The error
is probably caused by another element.I have used error pages in my web-xml
files with the same entry as yours without problems.

Pedro

-Mensaje original-
De: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 13 de diciembre de 2002 13:22
Para: [EMAIL PROTECTED]
Asunto: error when start tomcat if in the web.xml is the error-page
directive


if in my web.xml i have this:
error-page
error-code404/error-code
location/error.jsp/location
/error-page

the tomcat starts well but appears the next error. Can you help me to resolv
it? thanks.

ERROR:
13-dic-2002 13:19:14 org.apache.commons.digester.Digester error
GRAVE: Parse Error at line 723 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
3)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36
2)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29
6)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:1953)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8
78)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
cumentFragmentScannerImpl.java:1144)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:987)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:116
9)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
13-dic-2002 13:19:15 org.apache.jk.common.ChannelSocket init



--
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: error when start tomcat if in the web.xml is the error-page directive

2002-12-13 Thread Pedro Nevado
Verify the order of your elements in the web.xml file.

-Mensaje original-
De: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 13 de diciembre de 2002 13:22
Para: [EMAIL PROTECTED]
Asunto: error when start tomcat if in the web.xml is the error-page
directive


if in my web.xml i have this:
error-page
error-code404/error-code
location/error.jsp/location
/error-page

the tomcat starts well but appears the next error. Can you help me to resolv
it? thanks.

ERROR:
13-dic-2002 13:19:14 org.apache.commons.digester.Digester error
GRAVE: Parse Error at line 723 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
3)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36
2)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29
6)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:1953)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8
78)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
cumentFragmentScannerImpl.java:1144)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:987)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:116
9)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
13-dic-2002 13:19:15 org.apache.jk.common.ChannelSocket init



--
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: deactivate and delete unneeded Programm Parts

2002-12-13 Thread Tim Büthe
 Is there anybody who knows how to deactivate / delete the
 Web-Administration?

just remove/move the admin.xml, and I guess manager.xml
from the webapps directory and it should go away.

okay, if I remove the admin.xml and the Manager.xml tomcat works fine. But 
now the server-directory is
needless, but when i remove it tomcat gives folowing Errormessage:

Document base r:\tomcat\webapps\..\server\webapps\admin does not exist or 
is not a readable directory

am I able to fix it? or is it directly in the Programmcode and the dir is a 
must have?


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



Re: [classloading] How to use URLClassLoader within a servlet

2002-12-13 Thread Ola Berg

 Okay, I moved the JAR to $CATALINA_HOME/webapps/ROOT and changed the code to:

Great, and thanks. In about two hours I will stop the daunting task of creating a web 
application in VBScript/ASP (yuck) and picking up the registry-system again. I will 
immediately try out your way.

I suspect the magic is using the context class loader. I will try it out and let you 
know.

Yours grateful
/O


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




how to avoid 304 for .js files

2002-12-13 Thread Puneet Agarwal
We recently developed an application using struts on tomcat.

We have a problem at network round trip end.

This is because even if the included JavaScripts/css/gif/jpeg  files,
are all cached, still it checks for the last modified time with the
web server and makes a round trip.

When I searched for a solution to this problem, I came to know that
HTTP specification provides a way for this, and that is:
to specify the expiers tag in HTTP Header.

But this has to be done against particular MIME types because the
HTTP header applies to the payload only not to the cached
JavaScript/CSS files.

Can someone please tell us how to configuer this in TOMCAT

I have observed over the internet that almost all good sites somehow
have been able to manage to set this expires tag for all cached
files.

Regards
Puneet Agarwal


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

Meet Singles
http://corp.mail.com/lavalife


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




RE: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-13 Thread RXZ JLo

--- Cox, Charlie [EMAIL PROTECTED] wrote:
 RequestDisatcher is for dispatching (parts of)the
 current request to other
 resources in the same context without involving the
 browser. This means that
 it is not a new request(filters/valves/etc do not
 get invoked), but it is
 processed by the servlet/filter just like a request
 directly to the
 servlet/filter
 


Lets say in my servlet I modify the HttpServletRequest
changing the url to a statically accessible file, and
pass it on to RequestDispatcher.forward. Now, does the
DefaultServlet handle the static file?



 The DefaultServlet handles static content. This is
 not part of your servlet,
 it is its own built-in servlet. If you need to
 modify behavior(custom
 auth,etc) then you can set up a filter that is
 mapped to the static content.
 
 for example:
 
 the following mapping will cause 'MyFilter' to be
 run for any file requested
 from the /images directory. If you do not set up a
 custom servlet to handle
 /images/*, then the DefaultServlet will serve the
 request file from your
 'images' directory provided your filter does not
 intercept the request(i.e.
 redirect to a login page).


You have not told why we cannot do this in a Servlet
using the RequestDispatcher.forward.


Btw, If you feel I am dragging this topic on too much
please say so - I would know I have not put down my
question properly.

Thank you,
-rf

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: deactivate and delete unneeded Programm Parts

2002-12-13 Thread Aleksandr Shneyderman
 Document base r:\tomcat\webapps\..\server\webapps\admin does not 
 exist or 
 is not a readable directory
You probably still have context/host/engine configured 
for the admin app. 

Make sure that none of the configured containers refer 
to the directory(ies) that do not exist. The attribute 
to watch out for is 'appBase' (either remove it or point
to some existing directory)

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




RE: Errors in iis_redirect.log file

2002-12-13 Thread Jordi Masip
Any comment?

 Hi,
 
 I find next two errors inside iis_redirect.log file after working with a
 java application (JDBC, JSPs,...) using  IIS5 and Tomcat 4.0.1 in a w2k
 server:
 
 [Tue Dec 03 10:54:10 2002]  [jk_isapi_plugin.c (404)]:
 jk_ws_service_t::start_response, ServerSupportFunction failed
 [Tue Dec 03 10:54:10 2002]  [jk_ajp13_worker.c (370)]: Error
 ajp13_process_callback - start_response failed
 
 [Tue Dec 03 11:10:44 2002]  [jk_isapi_plugin.c (498)]:
 jk_ws_service_t::write, WriteClient failed
 [Tue Dec 03 11:10:44 2002]  [jk_ajp13_worker.c (381)]: Error
 ajp13_process_callback - write failed
 
 Could someone explain me something about them?
 
 Thanks - Jordi
 
---
Este mensaje y los documentos, que en su caso, lleve anexos, pueden
contener informacion confidencial y atañe exclusivamente a las personas
a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de
su autor y no representa necesariamente la opinion de AZERTIA.
Si usted no es el destinatario de este mensaje, considerese advertido de
que lo ha recibido por error y que cualquier uso, difusion o copia estan
prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos
que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda
a destruirlo inmediatamente.  

This email is confidential and intended solely for the use of the individual
to whom it is addressed. Any views or opinions presented are solely those
of the author and do not necessarily represent those of AZERTIA.
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing,
or copying of this email is strictly prohibited.
If you have received this email in error please notify it to AZERTIA
by telephone on number +34 93 207 55 11.
---

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




RE: Apache connector-localhost only

2002-12-13 Thread Denise Mangano
Daryl,

Just out of curiosity, does your web server get mapped through a firewall?
I had to open port 8080 on my firewall in order to pull up the Tomcat index
page using my domain name

Hope that helps...

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Daryl Lee [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 7:44 AM
To: Tomcat User List
Subject: Apache connector-localhost only


I cannot get my Apache-Tomcat mod_jk connector to work for anything other
than localhost.  Apache 2.0.43, Tomcat 4.1.12, Linux (Redhat 8.0).  Trying
to run http://localhost/examples/HelloWorldExample works, but if localhost
is replaced with either an IP address or a valid hostname, the error_log
reports file does not exist: /usr/local/apache2/htdocs/examples.

I've inspected mod_jk.config, and it looks sane.  I have ServerAlias
directives for the VirtualHost in it.  I have also turned UseCanonicalName
on in Apache (in a desperate attempt to try anything that sounded remotely
like it might have an effect).
-- 
Daryl Lee
Marietta, GA

--
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: [OT] Apache-Tomcat mod_jk

2002-12-13 Thread Denise Mangano
Do you know where I could get Tomcat 4.1.17 release?

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 12, 2002 5:56 PM
To: Tomcat Users List
Subject: RE: [OT] Apache-Tomcat mod_jk


I would recommend using a different version of Tomcat than 4.1.12.  4.1.12
seems to have a few bugs that have been fixed by the 4.1.17 release.  If you
are using a connector (coyote), versions prior to 4.1.17 had a bug with the
coyote connector.

Hope you can save you some of the time I just spent figuring these things
out over the past week or so.



-Original Message-
From: Mike W-M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 4:22 PM
To: Tomcat Users List
Subject: Re: [OT] Apache-Tomcat mod_jk


Denise,

In application scenarios like this (and particularly because you seem to
have multiple systems on the go) the thing that you need to consider is
itransactions/i. You need to consider what happens if there's a failure
at any stage in the process, the aim being to ensure that there's no way you
can:
i) charge the customer when it looks like you haven't
ii) charge them but fail to keep a record of it
iii) not charge them but make it look like you have...
iv) etc.
Across multiple systems this can be difficult!  (Particularly if there are
flat-files involved - it's a lot easier to do if you're only using
(transactional) databases.)
Of course it's not actually necessary to work-around all the potential
problems if the business are prepared to take the risk

Apologies if you knew all that already!

Mike.




- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 12, 2002 9:41 PM
Subject: RE: Apache-Tomcat mod_jk


Well I took the novice route and started all over again.  I got Tomcat
4.1.12  itself back up and running, but without mod_jk installed.  I haven't
had a chance to get back to trying again today, but I will tomorrow.  If I
run into the same problems, I will post my entire server.xml file, and
hopefully all you nice people will find something that my untrained eyes
cant.

Maybe a little background on my project will help determine exactly what it
is that I need.  I have a site running on Apache 1.3.27 (mostly HTML, some
XML) on RedHat 7.3.  This site, through a connector, is pulling information
from a UNIX system.  That part works fine.  I get to the last screen, where
the connection to UNIX is broken, but not before I am passed a transaction
number.  I then direct the user to an HTML form, where I collect all their
credit card information.  This is the point I am at now.  What I need to do
from here is collect the info and transmit it to the payment processor
through an API call, which I will either use servlet or JSP.  Then I will
display an updated page that varies depending on what the response is from
the payment processor.  All this over a secure connection of course (which
from what I understand will be another battle).  I then have to send the
info I receive back to the UNIX system to be updated.  (If anyone has any
experience in a similar situation or any input regarding this project it is
definitely welcome).

Hope the background paints a clearer picture...  Will post tomorrow when I
try to set up mod_jk again.

Thanks!


Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.



--
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: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-13 Thread Cox, Charlie


 -Original Message-
 From: RXZ JLo [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 8:31 AM
 To: Tomcat Users List
 Subject: RE: RequestDispatcher scenarios ( was RE: static url routing)
 
 
 
 --- Cox, Charlie [EMAIL PROTECTED] wrote:
  RequestDisatcher is for dispatching (parts of)the
  current request to other
  resources in the same context without involving the
  browser. This means that
  it is not a new request(filters/valves/etc do not
  get invoked), but it is
  processed by the servlet/filter just like a request
  directly to the
  servlet/filter
  
 
 
 Lets say in my servlet I modify the HttpServletRequest
 changing the url to a statically accessible file, and
 pass it on to RequestDispatcher.forward. Now, does the
 DefaultServlet handle the static file?
 

yes. servlet mappings are processed again, but not filter mappings

 
 
  The DefaultServlet handles static content. This is
  not part of your servlet,
  it is its own built-in servlet. If you need to
  modify behavior(custom
  auth,etc) then you can set up a filter that is
  mapped to the static content.
  
  for example:
  
  the following mapping will cause 'MyFilter' to be
  run for any file requested
  from the /images directory. If you do not set up a
  custom servlet to handle
  /images/*, then the DefaultServlet will serve the
  request file from your
  'images' directory provided your filter does not
  intercept the request(i.e.
  redirect to a login page).
 
 
 You have not told why we cannot do this in a Servlet
 using the RequestDispatcher.forward.
 

you could use a servlet for this, but that's what filters are for. They
allow you to perform logic to see if your servlet should even run. Calling
forward() from either has the same effect.

This is how I see your question: you have a request that comes in,
/mydir/somefile, that is mapped to your servlet. Within your servlet you are
using some logic to determine if the servlet should continue to serve its
content or use RequestDispatcher.forward() to serve a static file(say a
custom login page). Is this correct?

This is what I use the filter for. I originally used a servlet until I
wanted to protect more than one servlet(including some content served by
defaultservlet) with my custom auth. So I changed my code to a filter so
that the servlet(my servlet or defaultservlet) does not get called unless it
should serve something.

If you feel that a servlet is better for your app, go right ahead and
implement it in a servlet.

Charlie

 
 Btw, If you feel I am dragging this topic on too much
 please say so - I would know I have not put down my
 question properly.
 
 Thank you,
 -rf
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.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: Sevlet at startup, not starting

2002-12-13 Thread Alexander Wallace
Thanks for all the help.

On Thursday 12 December 2002 19:15, Jacob Kjome wrote:
 That's what init() is there for.  Just note that the container is allowed
 to unload and reload servlets at any time it wants to so your init() and
 destroy() methods aren't guaranteed to run just once.  If you have
 application initialization that you want to happen once and only once
 during the entire run of the application, look into putting that code in
 the contextInitialized() method of a servlet context listener.

 Jake

 At 05:40 PM 12/12/2002 -0600, you wrote:
 Well, that must be it then!
 
 I should just move all my code that i want inited to the init then righ?
  Is that safe to do?
 
 Thanks!
 
 On Thursday 12 December 2002 16:19, Jacob Kjome wrote:
   Hello Alexander,
  
   Note that loading on startup only calls the init() method.  It does not
   call doGet() or anything like that.  Just making sure you understood
   that.
  
   Jake
  
   Thursday, December 12, 2002, 4:09:41 PM, you wrote:
  
   AW Hi there... I have 1 servlet to start at startup, but it doesnt. If
   i call the AW servlet from a browser, it starts fine.
  
   AW My web.xml has:
  
   AW   servlet
   AW servlet-nameStartup/servlet-name
   AW descriptionServlet that starts different startup classes and
   AW stuff./description
   AW servlet-classcom.difh.servlets.Startup/servlet-class
   AW load-on-startup1/load-on-startup
   AW   /servlet
  
   AW and
  
   AW   servlet-mapping
   AW servlet-nameStartup/servlet-name
   AW url-pattern/srv/com.difh.servlets.Startup/url-pattern
   AW   /servlet-mapping
  
   AW Any clues as to why this doesn't get run when tomcat starts?
  
   AW Thanks!
  
  
   AW --
   AW To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED] AW 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]




jsp:include does not include actions?

2002-12-13 Thread Maik Lehradt
Hi!

I try a dynamic include in a jsp:

%@ page contentType=text/html;charset=UTF-8 language=java %
This is a Test

include:jsp:include page=/portal/image-vp.do flush=true /:end
include

Test end


I run my example and this is the HTML looks like:

This is a Test

include:


According Tomcat's logfile the action is executed, but never included in
the output. Can anybody please tell what I am doing wrong? I'm using
Struts 1.1 Beta and Tomcat 4.1.12. BTW: A co-worker tested this with
Struts 1.1 and Orion Servlet Container - it worked?! 


Regards,
Maik


Maik Lehradt, Senior Software Engineer
Solution Center Travel  Transportation
[EMAIL PROTECTED]
Tel +49(0)40/398855-322
 
SinnerSchrader | | | interactivate your business
http://www.sinnerschrader.com/de/company/contact/


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




Re: Apache connector-localhost only

2002-12-13 Thread Daryl Lee
I have ports 80 and 8080 both open.  In particular, when I hit the host
from inside the firewall, but from another host, the connector fails.
Thus, http://localhost/... works, but http://tigger/... fails.


On Fri, Dec 13, 2002 at 09:15:39AM -0500, Denise Mangano wrote:
 Daryl,
 
 Just out of curiosity, does your web server get mapped through a firewall?
 I had to open port 8080 on my firewall in order to pull up the Tomcat index
 page using my domain name
 
 Hope that helps...
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.
 
 
 -Original Message-
 From: Daryl Lee [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, December 13, 2002 7:44 AM
 To: Tomcat User List
 Subject: Apache connector-localhost only
 
 
 I cannot get my Apache-Tomcat mod_jk connector to work for anything other
 than localhost.  Apache 2.0.43, Tomcat 4.1.12, Linux (Redhat 8.0).  Trying
 to run http://localhost/examples/HelloWorldExample works, but if localhost
 is replaced with either an IP address or a valid hostname, the error_log
 reports file does not exist: /usr/local/apache2/htdocs/examples.
 
 I've inspected mod_jk.config, and it looks sane.  I have ServerAlias
 directives for the VirtualHost in it.  I have also turned UseCanonicalName
 on in Apache (in a desperate attempt to try anything that sounded remotely
 like it might have an effect).
 -- 
 Daryl Lee
 Marietta, GA
 
 --
 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]
 
 

-- 
Daryl Lee
Marietta, GA

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




RE: Tomcat for Enterprise Applications

2002-12-13 Thread Shapira, Yoav
Hi,
How do you know you need EJBs when you haven't even decided whether to
use J2EE or .Net?  That's a more detailed design choice, isn't it?

Tomcat by itself doesn't support EJBs.  It's not a full J2EE server.
JBoss is, and it's a good one.  JBoss uses Tomcat for servlets and JSPs.
There are also other servlet and J2EE containers -- part of the fun of
having a choice in the java world.

If you search the list archive, you will find several threads along the
lines of whether tomcat is suitable for production apps, how long people
keep their servers up, stability versus NT boxes, etc.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: G. Balandres [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 4:29 AM
To: Tomcat Users List
Subject: Tomcat for Enterprise Applications

Hi all,

i have currently an dicussion going on about creating
a 3/Multi Tier Enterprise Application which will
have one Webbased Client and one Standalone Client.
The main aim is the Webbased Client.

The problem is there are some workers which want to
use .NET and some who want to use J2EE.
I dont want to start something like a flame war here.
I just want to find out if we could use the Tomcat
server and/or other Open Source Projects to
develop our Application because i dont want
to go the .NET way.
The application would be a middle to big size
CRM system.

So what we will need is an Application Server which
can handle EJB's. Even too it should be scalable in a way
that you can split parts of your application about
several servers which are working together in a network
environment.
As far as i have found out until now Tomcat can't do
that things. Some people told me that Tomcat only implements
some J2EE standards.
I havent found a site on apache.org (Jakarta Side) that
explains what Tomcat can do and what it cant.
Anybody has one?

Can Tomcat work together with other Applications
that integrate the functions that Tomcat doesnt have
but are needed for J2EE Applications?

So as far as i can see now. Tomcat is good for some
mainly Webbased applications which are using Servlets
but i cant see in which productive environments it is
used. Could anybody tell me in what kind of projects
you did use it?

And now there is another question which doesnt really
belong to this Mailinglist. But if i am here ... =)
So if Tomcat cant be used to create Enterprise Applications
which are mostly using EJB's and should be scalable on the server
side what other ways are there. I've heard about other
Open Source J2EE Application Servers and then there are the
commercial Servers like Websphere and so on.
I've surley read books about J2EE but none of them didnt
give much information about the diffrent application servers
for J2EE. So i know some stuff about programming J2EE applications
but not much about how to implement them on the server side.
Any suggestions on that?


Thank you for reading my stuff and if you have any idea about
my questions any answer would be highly appreciated.

Thanks and Greetings,
G. Balandres

--

Even god is a Programmer:
while heartIsBumping()  {
  /* Many
 Cases and If-Else Routines
 which ends with
 exit
  */

  doLive()
}








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


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




jsp:getProperty problem

2002-12-13 Thread Andrew Guts
Hello all

Please help me with this:

file src/fe/MyBean1.java:
package fe;
public class MyBean1 {
  private String msg = MyBean1: Initial message;
  public String getMsg() { return msg ; }
  public void setMsg(String m) { msg = m; }
}

file test.jsp:
%@ page language=java %
html
jsp:useBean id=dBean class=fe.MyBean1 /
jsp:getProperty name=dBean property=Msg /
/html

Result:
org.apache.jasper.JasperException: Cannot find any information on property 'Msg' in a bean of type 'fe.MyBean1'

This variant works:

%@ page language=java %
html
jsp:useBean id=dBean class=fe.MyBean1 /
%=dBean.getMsg()%
/html

j2sdk1.4.0-beta3, Tomcat 4.1.12, w2k

Thanks ahead

Andrew


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




Re: jsp:getProperty problem

2002-12-13 Thread Boris Folgmann
Andrew Guts wrote:

 file src/fe/MyBean1.java:
 package fe;
 public class MyBean1 {
private String msg = MyBean1: Initial message;
public String getMsg() { return msg ; }
public void setMsg(String m) { msg = m; }
 }
 
 file test.jsp:
 %@ page language=java %
 html
 jsp:useBean id=dBean class=fe.MyBean1 /
 jsp:getProperty name=dBean property=Msg /
 /html

I think it should work. If you changed your bean while tomcat was already
running, you have to restart tomcat. That's why you should set your webapp
to reloadable on your development machine. If you've done this, a tomcat
restart is no longer necessary.

cu,
boris
-- 
Dipl.-Inf. Boris Folgmann   mailto:[EMAIL PROTECTED]
Folgmann IT-Consulting  http://www.folgmann.de


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




RE: getProperty problem

2002-12-13 Thread Greg Trasuk
Andrew:

The beans spec says that property 'something' will be addressed through a
getter method 'getSomething()' (note capitalization of 's').  So your getter
method 'getMsg()' is referring to a property 'msg', not 'Msg'.  Yes, when
you capitalize 'Msg' you'll get 'Msg', but when Jasper does the
introspection on your bean, it interprets the methods to get 'msg', hence
Cannot find any information on property 'Msg'...

Change to jsp:getProperty name='dbean' property='msg'/ and you should be
fine.

Best of luck,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

-Original Message-
From: Andrew Guts [mailto:[EMAIL PROTECTED]]
Sent: December 13, 2002 10:21
To: [EMAIL PROTECTED]
Subject: jsp:getProperty problem


Hello all

Please help me with this:

file src/fe/MyBean1.java:
package fe;
public class MyBean1 {
   private String msg = MyBean1: Initial message;
   public String getMsg() { return msg ; }
   public void setMsg(String m) { msg = m; }
}

file test.jsp:
%@ page language=java %
html
jsp:useBean id=dBean class=fe.MyBean1 /
jsp:getProperty name=dBean property=Msg /
/html

Result:
org.apache.jasper.JasperException: Cannot find any information
on property 'Msg' in a bean of type 'fe.MyBean1'

This variant works:

%@ page language=java %
html
jsp:useBean id=dBean class=fe.MyBean1 /
%=dBean.getMsg()%
/html

j2sdk1.4.0-beta3, Tomcat 4.1.12, w2k

Thanks ahead

Andrew


--
To unsubscribe, e-mail:
mailto:tomcat-user-[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:getProperty problem

2002-12-13 Thread Andrew Guts
Boris Folgmann wrote:

But  It does not work :-(


I think it should work. If you changed your bean while tomcat was already
running, you have to restart tomcat. That's why you should set your webapp
to reloadable on your development machine. If you've done this, a tomcat
restart is no longer necessary.

cu,
	boris
 




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




jvm_bind exception - port 8080 - Address in use

2002-12-13 Thread rsequeira
This is slightly off-topic (related to JBoss, but involves Tomcat)

Environment: Win NT, JBoss 3.0.4 with Tomcat 4.1.12, JDK1.3.1

I unzipped jboss-3.0.4_tomcat-4.1.12 and tried to run(.bat) JBoss. But
I get an exception saying embedded Tomcat couldn't bind to 8080 (address
already in use). So I checked using netstat and there was no service
listening on port 8080.
Also to be doubly sure that there wasn't anything listening on port 8080, I
started Tomcat by going to jboss-3.0.4_tomcat-4.1.12\tomcat-4.1.x\bin
and typing catalina run. This time tomcat started up fine on port 8080.

Am I missing something fundamental here?

Log snippet:
---
08:41:46,750 INFO  [EmbeddedCatalinaService41] Creating
08:41:46,750 INFO  [EmbeddedCatalinaService41] Created
08:41:46,750 INFO  [EmbeddedCatalinaService41] Starting
08:41:47,828 INFO  [STDOUT] Apache Tomcat/4.1.12-LE-jdk14
08:41:47,860 INFO  [Engine] HttpConnector Opening server socket on all host
IP a
ddresses
08:41:47,875 ERROR [Engine] HttpConnector httpConnector, io problem:
java.net.BindException: Address in use: JVM_Bind:8080
at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:980)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1187)
at org.apache.catalina.startup.Embedded.start(Embedded.java:999)
at
org.jboss.web.catalina.EmbeddedCatalinaService41.startService(Embedde
dCatalinaService41.java:254)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
65)
...


08:41:47,875 ERROR [EmbeddedCatalinaService41] Starting failed
LifecycleException:  null.open:  java.net.BindException: Address in use:
JVM_Bin
d:8080
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1209)
at org.apache.catalina.startup.Embedded.start(Embedded.java:999)
at
org.jboss.web.catalina.EmbeddedCatalinaService41.startService(Embedde
dCatalinaService41.java:254)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
65)


A little more informationif I change the port to 80 (by updating
tomcat41-service.xml and other associated configuration files), Tomcat
starts up fine with JBoss.

Also, not being a networking guy, any idea why does output (by jboss when
starting)
say 0.0.0.0 instead of the ip address of my machine.
For example:
---
08:41:41,719 INFO  [OILServerILService] JBossMQ OIL service available at :
0.0.0
.0/0.0.0.0:8090



Thanks in advance,
RS


This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



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




Tomcat dies

2002-12-13 Thread Matthew Ritenburg
I have asked this question before.  I have been all over the net looking for 
information.  The problem remains:  On Solaris 2.8 Tomcat started from the commaned 
line via startup.sh does not background properly and dies when the controlling tty is 
exited.  I have tested this on a Sunfire 280r that IU built and 2 domains of a Sunfire 
6800 build by Sun filed engineers.  I have read the suggestions of putting nohup in 
and .  None of this works. All of the other processes startup and background 
properly.  Who can tell me why Tomcat does not backgroun properly on Solaris 8?

Thanks again!

Matthew Ritenburg



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




Re: getProperty problem

2002-12-13 Thread Andrew Guts
Greg Trasuk wrote:

Changed 'private String msg' to private String Msg' Result is the same. 
I guess it doesn't matter for private fields.

Andrew:

	The beans spec says that property 'something' will be addressed through a
getter method 'getSomething()' (note capitalization of 's').  So your getter
method 'getMsg()' is referring to a property 'msg', not 'Msg'.  Yes, when
you capitalize 'Msg' you'll get 'Msg', but when Jasper does the
introspection on your bean, it interprets the methods to get 'msg', hence
Cannot find any information on property 'Msg'...

	Change to jsp:getProperty name='dbean' property='msg'/ and you should be
fine.

Best of luck,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

 




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




PROBLEM: Tomcat doesn't start if the context directory doesn't exist

2002-12-13 Thread Renato
Hi all,

I realize a that Tomcat 4.1.12 behaves differently than 4.0.64 in the way it deals 
with the context directory. If the 
directory doesn't exist Tomcat 4.1.12 doesn't start ( with 4.0.6 does ). This is the 
message:

java.lang.IllegalArgumentException: Document base /home/client/context does not exist 
or is not a readable 
directory
at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3398)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

This is bad if you are hosting multiple sites, since the user can deletes accidently ( 
or intentionaly... ) his/her 
directory and next time you need to restart Tomcat it will fail.

Thanks
Renato - Brazil.

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




RE: Tomcat for Enterprise Applications

2002-12-13 Thread Puneet Agarwal
I have another question in line with the same subject.

Does tomcat support, JVM online replication, to support the failover of link.

I mean the session memory be replicated to another instance of TOMCAT and in case link 
to first one fails can we switch to the second instance of tomcat without letting the 
user know as to what has happened. I know that WEBLOGIC supports this.

Anyone has any idea about this.
Regards
Puneet
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
Date: Fri, 13 Dec 2002 10:00:25 -0500
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Tomcat for Enterprise Applications

 Hi,
 How do you know you need EJBs when you haven't even decided whether to
 use J2EE or .Net?  That's a more detailed design choice, isn't it?
 
 Tomcat by itself doesn't support EJBs.  It's not a full J2EE server.
 JBoss is, and it's a good one.  JBoss uses Tomcat for servlets and JSPs.
 There are also other servlet and J2EE containers -- part of the fun of
 having a choice in the java world.
 
 If you search the list archive, you will find several threads along the
 lines of whether tomcat is suitable for production apps, how long people
 keep their servers up, stability versus NT boxes, etc.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: G. Balandres [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 4:29 AM
 To: Tomcat Users List
 Subject: Tomcat for Enterprise Applications
 
 Hi all,
 
 i have currently an dicussion going on about creating
 a 3/Multi Tier Enterprise Application which will
 have one Webbased Client and one Standalone Client.
 The main aim is the Webbased Client.
 
 The problem is there are some workers which want to
 use .NET and some who want to use J2EE.
 I dont want to start something like a flame war here.
 I just want to find out if we could use the Tomcat
 server and/or other Open Source Projects to
 develop our Application because i dont want
 to go the .NET way.
 The application would be a middle to big size
 CRM system.
 
 So what we will need is an Application Server which
 can handle EJB's. Even too it should be scalable in a way
 that you can split parts of your application about
 several servers which are working together in a network
 environment.
 As far as i have found out until now Tomcat can't do
 that things. Some people told me that Tomcat only implements
 some J2EE standards.
 I havent found a site on apache.org (Jakarta Side) that
 explains what Tomcat can do and what it cant.
 Anybody has one?
 
 Can Tomcat work together with other Applications
 that integrate the functions that Tomcat doesnt have
 but are needed for J2EE Applications?
 
 So as far as i can see now. Tomcat is good for some
 mainly Webbased applications which are using Servlets
 but i cant see in which productive environments it is
 used. Could anybody tell me in what kind of projects
 you did use it?
 
 And now there is another question which doesnt really
 belong to this Mailinglist. But if i am here ... =)
 So if Tomcat cant be used to create Enterprise Applications
 which are mostly using EJB's and should be scalable on the server
 side what other ways are there. I've heard about other
 Open Source J2EE Application Servers and then there are the
 commercial Servers like Websphere and so on.
 I've surley read books about J2EE but none of them didnt
 give much information about the diffrent application servers
 for J2EE. So i know some stuff about programming J2EE applications
 but not much about how to implement them on the server side.
 Any suggestions on that?
 
 
 Thank you for reading my stuff and if you have any idea about
 my questions any answer would be highly appreciated.
 
 Thanks and Greetings,
 G. Balandres
 
 --
 
 Even god is a Programmer:
 while heartIsBumping()  {
   /* Many
  Cases and If-Else Routines
  which ends with
  exit
   */
 
   doLive()
 }
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 

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

Meet Singles
http://corp.mail.com/lavalife


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




Re: Tomcat dies

2002-12-13 Thread Puneet Agarwal
Have you checked the logs, what does it say...?


- Original Message -
From: Matthew Ritenburg [EMAIL PROTECTED]
Date: Fri, 13 Dec 2002 10:53:12 -0500
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Tomcat dies

 I have asked this question before.  I have been all over the net looking for 
information.  The problem remains:  On Solaris 2.8 Tomcat started from the commaned 
line via startup.sh does not background properly and dies when the controlling tty is 
exited.  I have tested this on a Sunfire 280r that IU built and 2 domains of a 
Sunfire 6800 build by Sun filed engineers.  I have read the suggestions of putting 
nohup in and .  None of this works. All of the other processes startup and 
background properly.  Who can tell me why Tomcat does not backgroun properly on 
Solaris 8?
 
 Thanks again!
 
 Matthew Ritenburg
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 

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

Meet Singles
http://corp.mail.com/lavalife


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




RE: Tomcat dies

2002-12-13 Thread Matthew Ritenburg
The logs say nothing.  Tomcat is dying because it is not backgrounding properly on 
solaris 8.  The process never detaches it self from the controlling tty.  You close 
the console/xterm and Tomcat dies.  My question is: Why doesn't tomcat background 
properly on Solaris 8?

Thanks again!

Matt

-Original Message-
From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 11:05 AM
To: Tomcat Users List
Subject: Re: Tomcat dies


Have you checked the logs, what does it say...?


- Original Message -
From: Matthew Ritenburg [EMAIL PROTECTED]
Date: Fri, 13 Dec 2002 10:53:12 -0500
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Tomcat dies

 I have asked this question before.  I have been all over the net 
 looking for information.  The problem remains:  On Solaris 2.8 Tomcat 
 started from the commaned line via startup.sh does not background 
 properly and dies when the controlling tty is exited.  I have tested 
 this on a Sunfire 280r that IU built and 2 domains of a Sunfire 6800 
 build by Sun filed engineers.  I have read the suggestions of putting 
 nohup in and .  None of this works. All of the other processes 
 startup and background properly.  Who can tell me why Tomcat does not 
 backgroun properly on Solaris 8?
 
 Thanks again!
 
 Matthew Ritenburg
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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

Meet Singles
http://corp.mail.com/lavalife


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

2002-12-13 Thread Hamilton, Andrew
I have been using Tomcat on Solaris 8 for months and it backgrounds for me
just fine.  What do the logs say?

Regards,

Drew

-Original Message-
From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:53 AM
To: Tomcat Users List
Subject: Tomcat dies


I have asked this question before.  I have been all over the net looking for
information.  The problem remains:  On Solaris 2.8 Tomcat started from the
commaned line via startup.sh does not background properly and dies when the
controlling tty is exited.  I have tested this on a Sunfire 280r that IU
built and 2 domains of a Sunfire 6800 build by Sun filed engineers.  I have
read the suggestions of putting nohup in and .  None of this works. All
of the other processes startup and background properly.  Who can tell me why
Tomcat does not backgroun properly on Solaris 8?

Thanks again!

Matthew Ritenburg



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

2002-12-13 Thread Boris Folgmann
Andrew Guts wrote:
 Greg Trasuk wrote:
 
 Changed 'private String msg' to private String Msg' Result is the same. 
  I guess it doesn't matter for private fields.

Greg is right! I simply overlooked that, and you misunterstood him.

1. You CAN'T use properties that start with a Capital letter!

2. Instead always use prop. names like nicePropName
BUT the name of the get/set methods have to be:

getNicePropName() and setNicePropName()

If getNicePropName() returns boolean you HAVE to name it isNicePropName()

3. You can name your private vars as you wish, e.g. REAL_nice_Propyname
But I suggest to stick to nicePropName.

4. Remember: best Java style is to begin only class names with capital
letters, methods should always begin with a lower case letter.

-- 
Dipl.-Inf. Boris Folgmann   mailto:[EMAIL PROTECTED]
Folgmann IT-Consulting  http://www.folgmann.de


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




RE: Tomcat dies

2002-12-13 Thread Hamilton, Andrew
What version are you using?

-Original Message-
From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 11:11 AM
To: Tomcat Users List
Subject: RE: Tomcat dies


The logs say nothing.  Tomcat is dying because it is not backgrounding
properly on solaris 8.  The process never detaches it self from the
controlling tty.  You close the console/xterm and Tomcat dies.  My question
is: Why doesn't tomcat background properly on Solaris 8?

Thanks again!

Matt

-Original Message-
From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 11:05 AM
To: Tomcat Users List
Subject: Re: Tomcat dies


Have you checked the logs, what does it say...?


- Original Message -
From: Matthew Ritenburg [EMAIL PROTECTED]
Date: Fri, 13 Dec 2002 10:53:12 -0500
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Tomcat dies

 I have asked this question before.  I have been all over the net 
 looking for information.  The problem remains:  On Solaris 2.8 Tomcat 
 started from the commaned line via startup.sh does not background 
 properly and dies when the controlling tty is exited.  I have tested 
 this on a Sunfire 280r that IU built and 2 domains of a Sunfire 6800 
 build by Sun filed engineers.  I have read the suggestions of putting 
 nohup in and .  None of this works. All of the other processes 
 startup and background properly.  Who can tell me why Tomcat does not 
 backgroun properly on Solaris 8?
 
 Thanks again!
 
 Matthew Ritenburg
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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

Meet Singles
http://corp.mail.com/lavalife


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

2002-12-13 Thread Meyer, James
I also have been using tomcat on solaris 8 with great success.
Hover I do not use the startup/shutdown scripts have you tried calling the
catalina script directly  (catalina.sh start  or catalina.sh stop)


-Original Message-
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:13 AM
To: Tomcat Users List
Subject: RE: Tomcat dies


I have been using Tomcat on Solaris 8 for months and it backgrounds for me
just fine.  What do the logs say?

Regards,

Drew

-Original Message-
From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:53 AM
To: Tomcat Users List
Subject: Tomcat dies


I have asked this question before.  I have been all over the net looking for
information.  The problem remains:  On Solaris 2.8 Tomcat started from the
commaned line via startup.sh does not background properly and dies when the
controlling tty is exited.  I have tested this on a Sunfire 280r that IU
built and 2 domains of a Sunfire 6800 build by Sun filed engineers.  I have
read the suggestions of putting nohup in and .  None of this works. All
of the other processes startup and background properly.  Who can tell me why
Tomcat does not backgroun properly on Solaris 8?

Thanks again!

Matthew Ritenburg



--
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: Default servlet

2002-12-13 Thread Boris Folgmann
RAFA wrote:
 Hi.
 
 Only with Tomcat, how can I go to a servlet by default?
 
 With http://12.:8080 only  Load a servlet by default.

You have to deploy a webapp to the root context.

-- 
Dipl.-Inf. Boris Folgmann   mailto:[EMAIL PROTECTED]
Folgmann IT-Consulting  http://www.folgmann.de


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




RE: Tomcat dies

2002-12-13 Thread Hamilton, Andrew
I use the startup/shutdowns scripts without trouble.

-Original Message-
From: Meyer, James [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat dies


I also have been using tomcat on solaris 8 with great success.
Hover I do not use the startup/shutdown scripts have you tried calling the
catalina script directly  (catalina.sh start  or catalina.sh stop)


-Original Message-
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:13 AM
To: Tomcat Users List
Subject: RE: Tomcat dies


I have been using Tomcat on Solaris 8 for months and it backgrounds for me
just fine.  What do the logs say?

Regards,

Drew

-Original Message-
From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:53 AM
To: Tomcat Users List
Subject: Tomcat dies


I have asked this question before.  I have been all over the net looking for
information.  The problem remains:  On Solaris 2.8 Tomcat started from the
commaned line via startup.sh does not background properly and dies when the
controlling tty is exited.  I have tested this on a Sunfire 280r that IU
built and 2 domains of a Sunfire 6800 build by Sun filed engineers.  I have
read the suggestions of putting nohup in and .  None of this works. All
of the other processes startup and background properly.  Who can tell me why
Tomcat does not backgroun properly on Solaris 8?

Thanks again!

Matthew Ritenburg



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

2002-12-13 Thread Matthew Ritenburg
I am using Tomcat 4.0.1 with jdk-1.3.1_06.

-Original Message-
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 11:15 AM
To: Tomcat Users List
Subject: RE: Tomcat dies


What version are you using?

-Original Message-
From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 11:11 AM
To: Tomcat Users List
Subject: RE: Tomcat dies


The logs say nothing.  Tomcat is dying because it is not backgrounding properly on 
solaris 8.  The process never detaches it self from the controlling tty.  You close 
the console/xterm and Tomcat dies.  My question
is: Why doesn't tomcat background properly on Solaris 8?

Thanks again!

Matt

-Original Message-
From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 11:05 AM
To: Tomcat Users List
Subject: Re: Tomcat dies


Have you checked the logs, what does it say...?


- Original Message -
From: Matthew Ritenburg [EMAIL PROTECTED]
Date: Fri, 13 Dec 2002 10:53:12 -0500
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Tomcat dies

 I have asked this question before.  I have been all over the net
 looking for information.  The problem remains:  On Solaris 2.8 Tomcat 
 started from the commaned line via startup.sh does not background 
 properly and dies when the controlling tty is exited.  I have tested 
 this on a Sunfire 280r that IU built and 2 domains of a Sunfire 6800 
 build by Sun filed engineers.  I have read the suggestions of putting 
 nohup in and .  None of this works. All of the other processes 
 startup and background properly.  Who can tell me why Tomcat does not 
 backgroun properly on Solaris 8?
 
 Thanks again!
 
 Matthew Ritenburg
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

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

Meet Singles
http://corp.mail.com/lavalife


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

2002-12-13 Thread Shapira, Yoav
Hi,
We have dozens of Solaris 2.8 machines, using various versions of
tomcat, with JDKs from 1.2.2-1.4.1.  None of them exhibit this problem.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:53 AM
To: Tomcat Users List
Subject: Tomcat dies

I have asked this question before.  I have been all over the net
looking
for information.  The problem remains:  On Solaris 2.8 Tomcat started
from
the commaned line via startup.sh does not background properly and dies
when
the controlling tty is exited.  I have tested this on a Sunfire 280r
that
IU built and 2 domains of a Sunfire 6800 build by Sun filed engineers.
I
have read the suggestions of putting nohup in and .  None of this
works.
All of the other processes startup and background properly.  Who can
tell
me why Tomcat does not backgroun properly on Solaris 8?

Thanks again!

Matthew Ritenburg



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


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




Re: getProperty problem

2002-12-13 Thread Andrew Guts
Boris Folgmann wrote:

Thanks you very much! I've appreciated your and Greg's answers. It was a 
real help.

Andrew

Andrew Guts wrote:
 

Greg Trasuk wrote:

Changed 'private String msg' to private String Msg' Result is the same. 
I guess it doesn't matter for private fields.
   


Greg is right! I simply overlooked that, and you misunterstood him.

1. You CAN'T use properties that start with a Capital letter!

2. Instead always use prop. names like nicePropName
BUT the name of the get/set methods have to be:

getNicePropName() and setNicePropName()

If getNicePropName() returns boolean you HAVE to name it isNicePropName()

3. You can name your private vars as you wish, e.g. REAL_nice_Propyname
But I suggest to stick to nicePropName.

4. Remember: best Java style is to begin only class names with capital
letters, methods should always begin with a lower case letter.

 




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




RE: Tomcat dies

2002-12-13 Thread Hamilton, Andrew
I'm using 4.1.10 with jdk-1.3.1_04.  But I really can't imagine that there
would be anything in the TC distribution itself that would cause this.  Is
there anything in your setup that may cause it to want a tty connection?  An
evironment setting, etc?

-Original Message-
From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 11:20 AM
To: Tomcat Users List
Subject: RE: Tomcat dies


I am using Tomcat 4.0.1 with jdk-1.3.1_06.

-Original Message-
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 11:15 AM
To: Tomcat Users List
Subject: RE: Tomcat dies


What version are you using?

-Original Message-
From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 11:11 AM
To: Tomcat Users List
Subject: RE: Tomcat dies


The logs say nothing.  Tomcat is dying because it is not backgrounding
properly on solaris 8.  The process never detaches it self from the
controlling tty.  You close the console/xterm and Tomcat dies.  My question
is: Why doesn't tomcat background properly on Solaris 8?

Thanks again!

Matt

-Original Message-
From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 11:05 AM
To: Tomcat Users List
Subject: Re: Tomcat dies


Have you checked the logs, what does it say...?


- Original Message -
From: Matthew Ritenburg [EMAIL PROTECTED]
Date: Fri, 13 Dec 2002 10:53:12 -0500
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Tomcat dies

 I have asked this question before.  I have been all over the net
 looking for information.  The problem remains:  On Solaris 2.8 Tomcat 
 started from the commaned line via startup.sh does not background 
 properly and dies when the controlling tty is exited.  I have tested 
 this on a Sunfire 280r that IU built and 2 domains of a Sunfire 6800 
 build by Sun filed engineers.  I have read the suggestions of putting 
 nohup in and .  None of this works. All of the other processes 
 startup and background properly.  Who can tell me why Tomcat does not 
 backgroun properly on Solaris 8?
 
 Thanks again!
 
 Matthew Ritenburg
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

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

Meet Singles
http://corp.mail.com/lavalife


--
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: Where did the tomcat javadocs go?

2002-12-13 Thread Boris Folgmann
Joseph Shraibman wrote:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/ is empty.

You can report bugs to the tomcat bugzilla installation on the website.
Don't know the exact URL ...


-- 
Dipl.-Inf. Boris Folgmann   mailto:[EMAIL PROTECTED]
Folgmann IT-Consulting  http://www.folgmann.de


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




InitialContext configuration

2002-12-13 Thread Rod Frey
This question seems to have been asked about a thousand times: I
apologize for bringing it up again.  I was unable to find a solution
that worked from among prior responses.
 
I want to configure Tomcat's InitialContext with Jboss' JNDI info.  Life
is good as long as I do things in code:
 
  Hashtable env = new Hashtable();
  env.put(java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory);
  env.put(java.naming.factory.url.pkgs,
org.jboss.naming:org.jnp.interfaces);
  env.put(java.naming.provider.url, freud:1099);
  Context context = new InitialContext(env);


However, I obviously would like to put this in a jndi.properties file,
or externalize it in some other way.  I've tried putting the
jndi.properties file in the following locations:
 
$JAVA_HOME/lib
$JAVA_HOME/lib/ext
$TOMCAT_HOME/common/classes
$TOMCAT_HOME/common/shared
$TOMCAT_HOME/webapps/myapp/WEB-INF/classes
$TOMCAT_HOME/webapps/myapp/WEB-INF/lib
 
Nothing works: when I check system properties just before creating an
InitialContext, I get the following output:
 
java.naming.factory.initial is
org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs is org.apache.naming
java.naming.provider.url is null

Followed by the inevitable exception:
 
javax.naming.NameNotFoundException: Name PartnerManager is not bound in
this Context

How can I externalize these system properties?  I've also mucked with
the server.xml file quite extensively, without success.
 
I'm using Redhat 8.0, JDK1.4.1, and Tomcat 4.1.12.
 
Thanks!
Rod



Re: Tomcat dies

2002-12-13 Thread Jon Eaves
If that is the cause, what's wrong with using 'nohup' ?

(Or am I missing something here?)

Cheers,
	-- jon

Matthew Ritenburg wrote:

The logs say nothing.  Tomcat is dying because it is not backgrounding
properly on solaris 8.  The process never detaches it self from the
controlling tty.  You close the console/xterm and Tomcat dies.  My
question is: Why doesn't tomcat background properly on Solaris 8?

Thanks again!

Matt


[ snip ]
--
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


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




RE: long delay in ie

2002-12-13 Thread Dan Payne
I'm using IE 6.0.2800.1106 and it SUCKS! It has incredible, unbelievable
problems downloading both images and javascript source files and the
problems are independent from the server it is requesting from (tomcat, IIS,
etc.)

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 12:53 PM
To: 'Tomcat Users List'
Subject: RE: long delay in ie



My company uses IE exclusively, and while we don't use 4.1.x in production
yet, we have been doing a significant amount of testing and have not seen
this problem.

If it works in one browser but not another, it's a browser issue.  Do you
have the latest/greatest (I say that with tongue in cheek) updates to IE?
IE is notorious for breaking critical functionality in between minor
releases.  6.0.01 might work fine, but 6.0.02 might be totally
unusable, etc.

John


 -Original Message-
 From: Ron Day [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 12, 2002 1:41 PM
 To: Tomcat Users List
 Subject: RE: long delay in ie


 I experienced exactly the same problem going from 4.0.3 to 4.1.12.

 I posted it on this list, but have not resolved it as yet...

 I have no images or applets on my pages !

 just html

 ron

 -Original Message-
 From: Iqbal, Shamsudeen M [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 12, 2002 12:32 PM
 To: [EMAIL PROTECTED]
 Subject: long delay in ie


 Hello Tomcat users,

 I have just upgraded from Tomcat 4.0.4 to 4.1.12.  My
 application is a .jsp
 page(s) with about 10 light weight applets sitting in a page.
  When using IE
 to access this, there is a very long delay to load the page
 or the browser
 just hangs.  When using Mozilla browser, everything works fine.

 Also noted when IE shows the file names it is loading currently on the
 status bar, it loads many files quickly but is getting stuck
 on small .gif
 files.  I found two questions on the web related to this
 situation, one
 asking the jar file takes a long time to download when Tomcat
 is upgraded.
 The other asks about why the .gif files would take a long
 time to download.
 But neither questions has been answered.

 Has anybody seen or heard similar problems.  Any help is appreciated.
 Thanks
 -Iqbal


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

2002-12-13 Thread Meyer, James
If you are using ssh the problem you described occurs,
one way around it is to start tomcat with the following command
/usr/local/tomcat/bin/tomcat.sh start/dev/null /dev/null 2/dev/null


-Original Message-
From: Jon Eaves [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:37 AM
To: Tomcat Users List
Subject: Re: Tomcat dies


If that is the cause, what's wrong with using 'nohup' ?

(Or am I missing something here?)

Cheers,
-- jon

Matthew Ritenburg wrote:
 The logs say nothing.  Tomcat is dying because it is not backgrounding
 properly on solaris 8.  The process never detaches it self from the
 controlling tty.  You close the console/xterm and Tomcat dies.  My
 question is: Why doesn't tomcat background properly on Solaris 8?
 
 Thanks again!
 
 Matt

[ snip ]
-- 
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


--
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 4.0.1 on Solaris 8, Sunfire 280r

2002-12-13 Thread David McGough
Hello,
 
I have Tomcat 4.0.1 running on a Solaris 2.8, Sunfire 280r.  I can start
tomcat successfully.  However, when I logout of my telnet session it dies
immediately.  I have tried to place nohup in the catalina.sh and on the
startup.sh command but that does not seem to help the problem.  I can start
it with cron and it will stay running but this is not convenient for our
developers who need to stop and start it multiple times a day.  Any insight
you can provide would be greatly appreciated.  
 
Regards,
 
Dave
 
 



Re: Security violation in Tomcat 4.0.6

2002-12-13 Thread aps olute

  Am curious as to why the double entry of  permission
java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.util; ?

Also I have a stock binary download 4.1.12 and does not have this under
//Required for servlet and JSP's  and should I include it? 
permission java.lang.RuntimePermission 
defineClassInPackage.org.apache.catalina.util.*;

aps


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Tomcat dies

2002-12-13 Thread Jan-Michael Ong
I've had this problem too in the past and our best (but definitely not 
the most elegant) solution is to switch to C-shell before invoking the command.

Log on as root. (your root shell can be anything)
Create a user tomcat: useradd tomcat
Switch to C-shell: /bin/csh
Do something to the effect of

startme.sh
#!/bin/sh

su - tomcat -c ${START_CMD}  /tmp/start.out
if [ $? = 0 ];
then
   echo Tomcat started. You may close this window.
   exit 0
fi

echo There was a problem starting up tomcat
exit 1

Run the shell script

The key here is to use C-shell when you invoke the start-up script. I have 
a plain vanilla install of it running on solaris 8 (catalina 4.1.12) and 
that works fine. I've had problems with 4.0.6 so take that for what its worth.

Hope that helps.

Jan-Michael


At 10:47 AM 12/13/2002 -0600, Meyer, James wrote:
If you are using ssh the problem you described occurs,
one way around it is to start tomcat with the following command
/usr/local/tomcat/bin/tomcat.sh start/dev/null /dev/null 2/dev/null


-Original Message-
From: Jon Eaves [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:37 AM
To: Tomcat Users List
Subject: Re: Tomcat dies


If that is the cause, what's wrong with using 'nohup' ?

(Or am I missing something here?)

Cheers,
-- jon

Matthew Ritenburg wrote:
 The logs say nothing.  Tomcat is dying because it is not backgrounding
 properly on solaris 8.  The process never detaches it self from the
 controlling tty.  You close the console/xterm and Tomcat dies.  My
 question is: Why doesn't tomcat background properly on Solaris 8?

 Thanks again!

 Matt

[ snip ]
--
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


--
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: Errors in iis_redirect.log file

2002-12-13 Thread Jan-Michael Ong
I've seen this one:



 [Tue Dec 03 11:10:44 2002]  [jk_isapi_plugin.c (498)]:
 jk_ws_service_t::write, WriteClient failed
 [Tue Dec 03 11:10:44 2002]  [jk_ajp13_worker.c (381)]: Error
 ajp13_process_callback - write failed


This means that a request to a resource (JSP/servlet) has been made but the 
client who is suppose to receive the response has terminated their 
connection. The best analogy is request a JSP page and then hit Stop on 
your browser and you'll see this error. If you've ever messed with Apache 
or Netscape this is similar to the broken pipe error.

As far as for this error:

 [Tue Dec 03 10:54:10 2002]  [jk_isapi_plugin.c (404)]:
 jk_ws_service_t::start_response, ServerSupportFunction failed
 [Tue Dec 03 10:54:10 2002]  [jk_ajp13_worker.c (370)]: Error

No idea ... but you may want to grep at the Tomcat source for this method 
or class (?) and see what its doing.

Hope that helps

Jan-Michael


At 02:27 PM 12/13/2002 +0100, Jordi Masip wrote:
Any comment?

 Hi,

 I find next two errors inside iis_redirect.log file after working with a
 java application (JDBC, JSPs,...) using  IIS5 and Tomcat 4.0.1 in a w2k
 server:

 [Tue Dec 03 10:54:10 2002]  [jk_isapi_plugin.c (404)]:
 jk_ws_service_t::start_response, ServerSupportFunction failed
 [Tue Dec 03 10:54:10 2002]  [jk_ajp13_worker.c (370)]: Error
 ajp13_process_callback - start_response failed

 [Tue Dec 03 11:10:44 2002]  [jk_isapi_plugin.c (498)]:
 jk_ws_service_t::write, WriteClient failed
 [Tue Dec 03 11:10:44 2002]  [jk_ajp13_worker.c (381)]: Error
 ajp13_process_callback - write failed

 Could someone explain me something about them?

 Thanks - Jordi

---
Este mensaje y los documentos, que en su caso, lleve anexos, pueden
contener informacion confidencial y atañe exclusivamente a las personas
a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de
su autor y no representa necesariamente la opinion de AZERTIA.
Si usted no es el destinatario de este mensaje, considerese advertido de
que lo ha recibido por error y que cualquier uso, difusion o copia estan
prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos
que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda
a destruirlo inmediatamente.

This email is confidential and intended solely for the use of the individual
to whom it is addressed. Any views or opinions presented are solely those
of the author and do not necessarily represent those of AZERTIA.
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing,
or copying of this email is strictly prohibited.
If you have received this email in error please notify it to AZERTIA
by telephone on number +34 93 207 55 11.
---

--
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 4.1 api docs not online?

2002-12-13 Thread Jeff Barrett
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/

is empty.  Am I looking in the wrong place?  This is the link available at the bottom 
of this page:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html

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




Re: Security violation in Tomcat 4.0.6

2002-12-13 Thread Jeanfrancois Arcand
The fix was introduced in Tomcat 4.1.13.

aps olute wrote:


 Am curious as to why the double entry of  permission
java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.util; ?

Actually, that's a very good question. It is not supposed to make a 
difference. I will try to find why both were added.


Also I have a stock binary download 4.1.12 and does not have this under
//Required for servlet and JSP's  and should I include it? 
permission java.lang.RuntimePermission 
defineClassInPackage.org.apache.catalina.util.*;

If one of the class under util.* has an inner class that is created at 
runtime, that permission is required. From the J2SE documentation:

Definition of classes in the specified package, via a class loader's 
|defineClass| method when that class loader calls the SecurityManager 
|checkPackageDefinition| method.

-- Jeanfrancois


aps


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


 



DBCP Pool Max Connection

2002-12-13 Thread Sundar Chakravarthy

What happens if #concurrent users exceeds
max pool size ? I get an exception ? 
Can I try to catch it say print something like
 System is busy, Try again ? 

Thanks


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




Cant find a properties file - and shutdowns Tomcat

2002-12-13 Thread aps olute
1) Please help, the support class of my servlet is not able to find the file
town.xml. I have this file town.xml at taxi/town.xml, a copy at
taxi/WEB-INF/classes/town.xml I tried to pre-pend with / and no / with 
same results. A snippet of the log is below:

 81 2002-12-13 01:25:05 StandardContext[/taxi]: Starting filters
 82 2002-12-13 01:25:05  okay it found the file and it exist
 83 Making Javaville from file town.xml
 84 ERROR in opening file town.xml
 85 XmlTree creation failure:/town.xml (No such file or directory)
 86 java.io.FileNotFoundException: /town.xml (No such file or directory)
 87 at java.io.FileInputStream.open(Native Method) 

Code snippets, on my  servlet init() method I have
 18 static String configFileName = taxisocket.properties;
 19 static String DEFAULT_XML_FILE = town.xml;   
.
 50 String xmlfile = p.getProperty(xmlfile, DEFAULT_XML_FILE);
 51 System.out.println(Making Javaville from file  + xmlfile);
 52
 53 XmlTree xt = null;
 54 try {
 55 xt = new XmlTree(new File(xmlfile));
 56

on XmlTree.java:
 28 public XmlTree(File f) throws FileNotFoundException, IOException {
 29
 30 //open the file
 31 try {
 32 br = new BufferedReader(new FileReader(/+f));
 33 } catch (FileNotFoundException fnfe) {
 34 System.err.println(ERROR in opening file  + f);
 35 throw fnfe;
 36 }

2) Also if I modify the XmlTree to use the following code, TOMCAT just
shutdowns about a second after starting. Why would this code shutdowns Tomcat?
This compiles okay and I assume once the servlet calls this at the init(), it
shuts down Tomcat.

 33 // force to read a  File.
 34   InputStream is = getClass().getResourceAsStream(town.xml);
 38   br = new BufferedReader(new InputStreamReader(is));

aps

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Mod_jk Try #2 - error can't find apache

2002-12-13 Thread Denise Mangano
Ok.  So its time to give this another try.  For try #2 I decided to try to
build mod_jk according to the HOW-TO.  I'm running into a snag.  When I run
configure it is looking for a path to apxs.  My Apache 1.3.27 web server is
up and running, I can view my website.  Tomcat 4.1.12 itself was running
(before I shut it down to do this).  I searched my entire server, and the
only place I found apxs was in usr/sbin.  So this is the path that I used
for ./configure --with-apxs=/usr/sbin/apxs --with-java=${JAVA_HOME}. This is
what happens:

everything prior to this checked out OK.
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
checking for libtool... /usr/bin/libtool
no apxs given
checking for target platform... unix
no apache given
configure: error: Cannot find the WebServer

Any ideas?  Thanks :)

Denise

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




Re: InitialContext configuration

2002-12-13 Thread Jacob Kjome
Hello Rod,

I think this is a JBoss question.  I think that JBoss takes over
configuration of Tomcat when Tomcat is embedded in JBoss.  So, I would
think that the JNDI config would be located within JBoss, not external
to the server or under the normal Tomcat standalone configuration.
That said, I haven't tried this and don't know for sure.  I just
thought I'd fill you in on my hunch.


Jake

Friday, December 13, 2002, 10:39:12 AM, you wrote:

RF This question seems to have been asked about a thousand times: I
RF apologize for bringing it up again.  I was unable to find a solution
RF that worked from among prior responses.
 
RF I want to configure Tomcat's InitialContext with Jboss' JNDI info.  Life
RF is good as long as I do things in code:
 
RF   Hashtable env = new Hashtable();
RF   env.put(java.naming.factory.initial,
RF org.jnp.interfaces.NamingContextFactory);
RF   env.put(java.naming.factory.url.pkgs,
RF org.jboss.naming:org.jnp.interfaces);
RF   env.put(java.naming.provider.url, freud:1099);
RF   Context context = new InitialContext(env);


RF However, I obviously would like to put this in a jndi.properties file,
RF or externalize it in some other way.  I've tried putting the
RF jndi.properties file in the following locations:
 
RF $JAVA_HOME/lib
RF $JAVA_HOME/lib/ext
RF $TOMCAT_HOME/common/classes
RF $TOMCAT_HOME/common/shared
RF $TOMCAT_HOME/webapps/myapp/WEB-INF/classes
RF $TOMCAT_HOME/webapps/myapp/WEB-INF/lib
 
RF Nothing works: when I check system properties just before creating an
RF InitialContext, I get the following output:
 
RF java.naming.factory.initial is
RF org.apache.naming.java.javaURLContextFactory
RF java.naming.factory.url.pkgs is org.apache.naming
RF java.naming.provider.url is null

RF Followed by the inevitable exception:
 
RF javax.naming.NameNotFoundException: Name PartnerManager is not bound in
RF this Context

RF How can I externalize these system properties?  I've also mucked with
RF the server.xml file quite extensively, without success.
 
RF I'm using Redhat 8.0, JDK1.4.1, and Tomcat 4.1.12.
 
RF Thanks!
RF Rod



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: Cant find a properties file - and shutdowns Tomcat

2002-12-13 Thread Jacob Kjome
Hello aps,

First, don't use File IO if it isn't necessary (and it isn't here).
Second, see:
http://marc.theaimsgroup.com/?l=tomcat-userm=103904964313189w=2

Jake

Friday, December 13, 2002, 11:26:08 AM, you wrote:

ao 1) Please help, the support class of my servlet is not able to find the file
ao town.xml. I have this file town.xml at taxi/town.xml, a copy at
ao taxi/WEB-INF/classes/town.xml I tried to pre-pend with / and no / with 
ao same results. A snippet of the log is below:

ao  81 2002-12-13 01:25:05 StandardContext[/taxi]: Starting filters
ao  82 2002-12-13 01:25:05  okay it found the file and it exist
ao  83 Making Javaville from file town.xml
ao  84 ERROR in opening file town.xml
ao  85 XmlTree creation failure:/town.xml (No such file or directory)
ao  86 java.io.FileNotFoundException: /town.xml (No such file or directory)
ao  87 at java.io.FileInputStream.open(Native Method) 

ao Code snippets, on my  servlet init() method I have
ao  18 static String configFileName = taxisocket.properties;
ao  19 static String DEFAULT_XML_FILE = town.xml;   
ao .
ao  50 String xmlfile = p.getProperty(xmlfile, DEFAULT_XML_FILE);
ao  51 System.out.println(Making Javaville from file  + xmlfile);
ao  52
ao  53 XmlTree xt = null;
ao  54 try {
ao  55 xt = new XmlTree(new File(xmlfile));
ao  56

ao on XmlTree.java:
ao  28 public XmlTree(File f) throws FileNotFoundException, IOException {
ao  29
ao  30 //open the file
ao  31 try {
ao  32 br = new BufferedReader(new FileReader(/+f));
ao  33 } catch (FileNotFoundException fnfe) {
ao  34 System.err.println(ERROR in opening file  + f);
ao  35 throw fnfe;
ao  36 }

ao 2) Also if I modify the XmlTree to use the following code, TOMCAT just
ao shutdowns about a second after starting. Why would this code shutdowns Tomcat?
ao This compiles okay and I assume once the servlet calls this at the init(), it
ao shuts down Tomcat.

ao  33 // force to read a  File.
ao  34   InputStream is = getClass().getResourceAsStream(town.xml);
ao  38   br = new BufferedReader(new InputStreamReader(is));

ao aps

ao __
ao Do you Yahoo!?
ao Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
ao http://mailplus.yahoo.com

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: InitialContext configuration

2002-12-13 Thread Rod Frey
Thanks for the reply.

I should have mentioned that I started encountering these problems when
I put the Tomcat server on a different machine.  There was no trouble
when I was running Tomcat embedded.  Right now, there's no trace of
Jboss on the Tomcat server.

Thanks again!
Rod

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 10:38 AM
To: Tomcat Users List
Subject: Re: InitialContext configuration


Hello Rod,

I think this is a JBoss question.  I think that JBoss takes over
configuration of Tomcat when Tomcat is embedded in JBoss.  So, I would
think that the JNDI config would be located within JBoss, not external
to the server or under the normal Tomcat standalone configuration. That
said, I haven't tried this and don't know for sure.  I just thought I'd
fill you in on my hunch.


Jake

Friday, December 13, 2002, 10:39:12 AM, you wrote:

RF This question seems to have been asked about a thousand times: I 
RF apologize for bringing it up again.  I was unable to find a solution

RF that worked from among prior responses.
 
RF I want to configure Tomcat's InitialContext with Jboss' JNDI info.  
RF Life is good as long as I do things in code:
 
RF   Hashtable env = new Hashtable();
RF   env.put(java.naming.factory.initial,
RF org.jnp.interfaces.NamingContextFactory);
RF   env.put(java.naming.factory.url.pkgs,
RF org.jboss.naming:org.jnp.interfaces);
RF   env.put(java.naming.provider.url, freud:1099);
RF   Context context = new InitialContext(env);


RF However, I obviously would like to put this in a jndi.properties 
RF file, or externalize it in some other way.  I've tried putting the 
RF jndi.properties file in the following locations:
 
RF $JAVA_HOME/lib
RF $JAVA_HOME/lib/ext
RF $TOMCAT_HOME/common/classes
RF $TOMCAT_HOME/common/shared 
RF $TOMCAT_HOME/webapps/myapp/WEB-INF/classes
RF $TOMCAT_HOME/webapps/myapp/WEB-INF/lib
 
RF Nothing works: when I check system properties just before creating 
RF an InitialContext, I get the following output:
 
RF java.naming.factory.initial is 
RF org.apache.naming.java.javaURLContextFactory
RF java.naming.factory.url.pkgs is org.apache.naming
RF java.naming.provider.url is null

RF Followed by the inevitable exception:
 
RF javax.naming.NameNotFoundException: Name PartnerManager is not bound

RF in this Context

RF How can I externalize these system properties?  I've also mucked 
RF with the server.xml file quite extensively, without success.
 
RF I'm using Redhat 8.0, JDK1.4.1, and Tomcat 4.1.12.
 
RF Thanks!
RF Rod



-- 
Best regards,
 Jacobmailto:[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 Listing in Tomcat 4.1.12

2002-12-13 Thread Venkateshwar Bommineni
Hello All,
 I would like to use default tomcat directory listing functionality in
one of my application. And it works fine when I set the docBase to the
directory which i would like to see as listing. But that directory
consists of some symbolic links to the files which are outside of that
directory. And those also have same OS permissions.
 But tomcat unable to show those symbolic links. Is there any
attribute/flag needs to be set or thats the defined behaviour for
tomcat. Anybody have workaround for this?
 Also is it possible to configure default directory listing pagesm like
instead of showing GMT based timestamps for files, I would like to
display them in my own timestamp formats?

 thanks in advance..
--Venkat

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




Re: Mod_jk Try #2 - error can't find apache

2002-12-13 Thread Jan-Michael Ong
apxs requires perl to be available check the first line of apxs

head -1 /usr/sbin/apxs

It should say something like

#!/usr/local/bin/perl or something along those lines

check the availability of your perl install

ls -l /usr/local/bin/perl

if it says not found do a find for perl and replace that line with the 
location of the found perl.

cd /
find . -name 'perl' -print 

Hope that helps.

Jan-Michael



At 12:39 PM 12/13/2002 -0500, Denise Mangano wrote:
Ok.  So its time to give this another try.  For try #2 I decided to try to
build mod_jk according to the HOW-TO.  I'm running into a snag.  When I run
configure it is looking for a path to apxs.  My Apache 1.3.27 web server is
up and running, I can view my website.  Tomcat 4.1.12 itself was running
(before I shut it down to do this).  I searched my entire server, and the
only place I found apxs was in usr/sbin.  So this is the path that I used
for ./configure --with-apxs=/usr/sbin/apxs --with-java=${JAVA_HOME}. This is
what happens:

everything prior to this checked out OK.
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
checking for libtool... /usr/bin/libtool
no apxs given
checking for target platform... unix
no apache given
configure: error: Cannot find the WebServer

Any ideas?  Thanks :)

Denise

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

2002-12-13 Thread Puneet Agarwal
tomcat conforms to true daemon properties that is dissociation from all file streams 
many a signals etc. 
On actual dissociation it should get bound to the inetd process of solaris.

Make sure that your unix box is running nuder init status 6(which is normal wokring). 

Mostly there should be some other reason for its getting klled than this. 

we need to explore the exact reason and not be preoccupied with a thought that it is 
because it is not able to dissociate itself with input/output filestreams or terminal 
dissociation.

Is there any other daemon on this solaris bos which runs fine, I mean does not die on 
closing the invking terminal.

Regards
Puneet
- Original Message -
From: Matthew Ritenburg [EMAIL PROTECTED]
Date: Fri, 13 Dec 2002 11:11:16 -0500
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Tomcat dies

 The logs say nothing.  Tomcat is dying because it is not backgrounding properly on 
solaris 8.  The process never detaches it self from the controlling tty.  You close 
the console/xterm and Tomcat dies.  My question is: Why doesn't tomcat background 
properly on Solaris 8?
 
 Thanks again!
 
 Matt
 
 -Original Message-
 From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, December 13, 2002 11:05 AM
 To: Tomcat Users List
 Subject: Re: Tomcat dies
 
 
 Have you checked the logs, what does it say...?
 
 
 - Original Message -
 From: Matthew Ritenburg [EMAIL PROTECTED]
 Date: Fri, 13 Dec 2002 10:53:12 -0500
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Tomcat dies
 
  I have asked this question before.  I have been all over the net 
  looking for information.  The problem remains:  On Solaris 2.8 Tomcat 
  started from the commaned line via startup.sh does not background 
  properly and dies when the controlling tty is exited.  I have tested 
  this on a Sunfire 280r that IU built and 2 domains of a Sunfire 6800 
  build by Sun filed engineers.  I have read the suggestions of putting 
  nohup in and .  None of this works. All of the other processes 
  startup and background properly.  Who can tell me why Tomcat does not 
  backgroun properly on Solaris 8?
  
  Thanks again!
  
  Matthew Ritenburg
  
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 -- 
 __
 Sign-up for your own FREE Personalized E-mail at Mail.com 
http://www.mail.com/?sr=signup
 
 Meet Singles
 http://corp.mail.com/lavalife
 
 
 --
 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]
 

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

Meet Singles
http://corp.mail.com/lavalife


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




Logging to my app.

2002-12-13 Thread Alexander Wallace
How can i send log messages toy my app's log file (already configured in 
server.xml) insetad of catalina.log?

I noticed that some System.out.println() goes to one and others to the 
other...

Thanks!

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




RE: Logging to my app.

2002-12-13 Thread Shapira, Yoav
Howdy,
getServletContext().log(...);  The ServletContext javadoc has more
details.  

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Alexander Wallace [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 1:00 PM
To: [EMAIL PROTECTED]
Subject: Logging to my app.

How can i send log messages toy my app's log file (already configured
in
server.xml) insetad of catalina.log?

I noticed that some System.out.println() goes to one and others to the
other...

Thanks!

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


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




Re: Logging to my app.

2002-12-13 Thread Patrick GIRY
In your server.xml you define a Logger in you web app
context like this :

Context path=/examples docBase=examples debug=0
 reloadable=true
crossContext=true
Logger
className=org.apache.catalina.logger.FileLogger
 prefix=localhost_examples_log.
suffix=.txt
  timestamp=true/

You can set your own prefix muwebapp_log.

A+
 --- Alexander Wallace [EMAIL PROTECTED] a
écrit :  How can i send log messages toy my app's log
file
 (already configured in 
 server.xml) insetad of catalina.log?
 
 I noticed that some System.out.println() goes to one
 and others to the 
 other...
 
 Thanks!
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

=
A+
Patrick GIRY
e-mail : [EMAIL PROTECTED]

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




RE: Mod_jk Try #2 - error can't find apache

2002-12-13 Thread Denise Mangano
First line of apxs is #! /usr/bin/perl  that location is correct for perl.
There is alos a perl5.6.1.  Should I try this one instead?

Thanks.

Denise 


-Original Message-
From: Jan-Michael Ong [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 12:58 PM
To: Tomcat Users List; 'Tomcat Users List'
Subject: Re: Mod_jk Try #2 - error can't find apache


apxs requires perl to be available check the first line of apxs

head -1 /usr/sbin/apxs

It should say something like

#!/usr/local/bin/perl or something along those lines

check the availability of your perl install

ls -l /usr/local/bin/perl

if it says not found do a find for perl and replace that line with the 
location of the found perl.

cd /
find . -name 'perl' -print 

Hope that helps.

Jan-Michael



At 12:39 PM 12/13/2002 -0500, Denise Mangano wrote:
Ok.  So its time to give this another try.  For try #2 I decided to try 
to build mod_jk according to the HOW-TO.  I'm running into a snag.  
When I run configure it is looking for a path to apxs.  My Apache 
1.3.27 web server is up and running, I can view my website.  Tomcat 
4.1.12 itself was running (before I shut it down to do this).  I 
searched my entire server, and the only place I found apxs was in 
usr/sbin.  So this is the path that I used for ./configure 
--with-apxs=/usr/sbin/apxs --with-java=${JAVA_HOME}. This is what 
happens:

everything prior to this checked out OK.
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
checking for libtool... /usr/bin/libtool
no apxs given
checking for target platform... unix
no apache given
configure: error: Cannot find the WebServer

Any ideas?  Thanks :)

Denise

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




Retrieve User - Realm

2002-12-13 Thread afterz
Hello,

I searched many places and read many things, but I didn't
 find any example that retrieve the user from the session
 after it is authenticated with realm.

Can someone help me?

Thanks.

Don't E-Mail, ZipMail! http://www.zipmail.com/

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




Re: Logging to my app.

2002-12-13 Thread Alexander Wallace
Thanks, i do have that working already, but you know how all (almost all) the 
System.out.println() goes into cataline.log, i was wondering if there was an 
easy line to send to the app log, not he catalina.log.


On Friday 13 December 2002 12:05, Patrick GIRY wrote:
 In your server.xml you define a Logger in you web app
 context like this :

 Context path=/examples docBase=examples debug=0
  reloadable=true
 crossContext=true
 Logger
 className=org.apache.catalina.logger.FileLogger
  prefix=localhost_examples_log.
 suffix=.txt
 timestamp=true/

 You can set your own prefix muwebapp_log.

 A+
  --- Alexander Wallace [EMAIL PROTECTED] a
 écrit :  How can i send log messages toy my app's log
 file

  (already configured in
  server.xml) insetad of catalina.log?
 
  I noticed that some System.out.println() goes to one
  and others to the
  other...
 
  Thanks!
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]

 =
 A+
 Patrick GIRY
 e-mail : [EMAIL PROTECTED]

 ___
 Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
 Yahoo! Mail : http://fr.mail.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: Configuring mod_jk2

2002-12-13 Thread Patrick GIRY
You can found any information on the jk2.properties on

the
http://localhost:8080/tomcat-docs/jk2/jk2/configtc.html

when you have installed your tomcat.

--- [EMAIL PROTECTED] a écrit :  Where is the
jk2.properties file documented?
 
 On Thu, 12 Dec 2002, Bill Barker wrote:
 
  ApacheConfig is for use with mod_jk 1.x.  It
 doesn't work with jk2.  With
  jk2, you only need the 'LoadModule' statement in
 httpd.conf.  The rest of
  the configuration is handled by the
 'jk2.properties' file.
  
  Joseph Shraibman [EMAIL PROTECTED] wrote in
 message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   I have in my server.xml:
  
   Listener

className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=/usr/local/apache2/modules/mod_jk2.so /
  
   ... which generated:
  
   ## Auto generated on Thu Dec 12 16:58:06
 EST 2002##
  
   IfModule !mod_jk.c
  LoadModule jk_module
 /usr/local/apache2/modules/mod_jk2.so
   /IfModule
  
   JkWorkersFile
 /local/tomcat/conf/jk/workers.properties
   JkLogFile /local/tomcat/logs/mod_jk.log
  
   JkLogLevel emerg
  
   == end file
  
   The problem is that if I include that file in my
 httpd.conf I get:
   Starting apache2: 
 /usr/local/apache2/bin/apache2
   Syntax error on line 3 of
 /local/tomcat/conf/mod_jk.conf:
   Can't locate API module structure `jk_module' in
 file
   /usr/local/apache2/modules/mod_jk2.so:
  /usr/local/apache2/modules/mod_jk2.so: undefined
   symbol: jk_module
  
   If I change my mod_jk.conf to look like:
  
   IfModule !mod_jk.c
   #  LoadModule jk_module
 /usr/local/apache2/modules/mod_jk2.so
  LoadModule jk2_module
 /usr/local/apache2/modules/mod_jk2.so
   /IfModule
   ..etc.
  
   I get:
   Starting apache2: 
 /usr/local/apache2/bin/apache2
   Syntax error on line 7 of
 /local/tomcat/conf/mod_jk.conf:
   Invalid command 'JkWorkersFile', perhaps
 mis-spelled or defined by a
  module not included
   in the server configuration
  
   This is apache 2.0.43 on linux with tomcat
 4.1.12 and mod_jk2 2.0.2
  
  
  
  
  
  --
  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]
  

=
A+
Patrick GIRY
e-mail : [EMAIL PROTECTED]

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: Logging to my app.

2002-12-13 Thread Alexander Wallace
Thanks, i'll check it out. 

On Friday 13 December 2002 12:05, Shapira, Yoav wrote:
 Howdy,
 getServletContext().log(...);  The ServletContext javadoc has more
 details.

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-

 From: Alexander Wallace [mailto:[EMAIL PROTECTED]]

 Sent: Friday, December 13, 2002 1:00 PM
 To: [EMAIL PROTECTED]
 Subject: Logging to my app.
 
 How can i send log messages toy my app's log file (already configured

 in

 server.xml) insetad of catalina.log?
 
 I noticed that some System.out.println() goes to one and others to the
 other...
 
 Thanks!
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [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: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-13 Thread Jerry Ford
John:

I took your advice from yesterday, replaced mod_webapp.so with mod_jk.so 
and now jsps and servlets don't work.

They worked fine under mod_webapp, including my own HelloWorld app in 
addition to the Tomcat examples. Now they don't work, although I am able 
to get to the HTML pages using, for example, 
http://localhost/examples/servlets.  But the servlets and jsp examples 
themselves all generate an Apache port 80 internal server error.

I followed the instructions on your howto page, (except that the 
configure script fails---I have been able to build apache, tomcat, ant, 
and mod_webapp on my system, but mod_jk fails, so I just grabbed your 
posted binary.)

I added the listener statements to server.xml.

mod_jk.conf shows  Location  entries for each of the webapps, and 
there is a JkMount entry for the servlets (including my HelloWorld entry).

mod_jk.log is empty.

What more do I need to do?

Thanks, Jerry

Turner, John wrote:

Mod_webapp is deprecated, and has some fairly serious limitations.

JK/JK2 is the better choice if you are concerned with future growth.

If you're having problems, perhaps my HOWTOs will help:

http://www.johnturner.com/howto

John

-Original Message-
From: Jerry Ford [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 3:15 PM
To: Tomcat Users List
Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3

Denise:

I have just got my Apache 1.3.27/Tomcat 4.1.12 connection to work.

Answers to your questions are yes, and yes.  You need a connector 
between them, and mod_jk.so is one such connector.

However, I had a devil of a time locating any connector on the 
apache.org website, and I never was able to make mod_jk work (I tried 
using the version that did work with my Tomcat 3.2 installation, but it 
did not work with 4.1 and I was not able to locate mod_jk---any 
version---on the apache website in order to rebuild).

I ended up using mod_webapp.so, which is another connector.

It's located in the jakarta-tomcat-connectors-4.1.12-src.tar.gz, which 
you can download from 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/ 
(the same directory as tomcat itself).

When you unpack it, look for README.txt in the webapp directory. It will 
tell you how to build the connector from CVS.  Follow the directions in 
the readme.  They're clear, straightforward, and the build process was 
smooth and routine, for me at least.  

Jerry


http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/jak
arta-tomcat-connectors-4.1.12-src.tar.gz



Denise Mangano wrote:

 

Hi all,

I am fairly new to using Apache / Tomcat. I currently have my website set
   

up
 

in Apache, running in the /var/html directory. I have installed Tomcat
because I have a form page (HTML) that I want to run a servlet with to
process a credit card payment with an outside payment processor. I have
   

seen
 

some instances that people have stated I have to do some special
configuration in order to use both Apache and Tomcat together. Is this so?
If so, then are there any good resources for this?

Perhaps using JSP for the form will be better because I want a custom page
to display depending on what error message will come back from the payment
engine.  If that is the case then wouldn't I need the connection between
Apache and Tomcat? (the images I will need for the JSP page is stored in
apache web directory as well).  Is this the mod_jk plug in? (I am running
RedHat Linux 7.3)

Thanks in advance!

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


--
To unsubscribe, e-mail:
   

mailto:[EMAIL PROTECTED]
 

For additional commands, e-mail:
   

mailto:[EMAIL PROTECTED]
 



   



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


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



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




byte serving PDFs

2002-12-13 Thread Elizabeth Fisher
Does Tomcat support byte serving of PDFs?

-Elizabeth

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




RE: help: logging j_username

2002-12-13 Thread Noel J. Bergman
Look at the JSP Specification for jsp:useBean (which will require you to
provide a proper JavaBean with setters/getters), or just use
HttpSession.setAttribute in a servlet to keep an Integer in session with a
count (a bit primitive, but ok for an outline).

If you want me to do it for you, I'm available off-list.

--- Noel

-Original Message-
From: Rob Cartier [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 7:14
To: 'Noel J. Bergman'; 'Tomcat Users List'
Subject: RE: help: logging j_username


ok .. I am interested any ideas how to implement it

thanks in advance

--Rob

 -Original Message-
 From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 12, 2002 7:09 PM
 To: Tomcat Users List
 Subject: RE: help: logging j_username


  Is there a way besides using session cookies to log
  invalid logon attempts from a form based logon jsp

 Have you considered a session bean?

   --- Noel



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




RE: Apache+mod_dav+connector dilemma

2002-12-13 Thread Noel J. Bergman
Jonas,

There is a semantic conflict between DAV and dynamic content handlers if you
use the same Location.  DAV would want to fetch the file, the dynamic
content handler would want to pass along the request for service.  See
http://www.webdav.org/mod_dav/install.html#complex, specifically the PHP
example.

The Location solution resolves that conflict, although, I seem to recall
having to ensure that the module order was correct when I first installed
mod_dav.  If you look at the LoadModule/AddModule ordering in your
httpd.conf file, you want to put mod_dav after the connector, which means it
will be checked first.

In your case, you may want to install a separate virtual host, dav..tld,
so that you can keep the root.

--- Noel

-Original Message-
From: Jonas Bosson [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 6:05
To: Tomcat Users List
Cc: Noel J. Bergman
Subject: RE: Apache+mod_dav+connector dilemma


Hi Noel!

Yes, we use the root for dav and filtering, since unique and clear
identities/url-identifiers are very important to us.

In your conf-snipplet it seems that you bind the tomcat connector by
mime-type and then redefine the the mime-type in the 'dav' location to
avoid being captured by the connector. I cant get this to work in my
configuration. What connector / tomcat / server are you using?

Curious,
Jonas


tor 2002-12-12 klockan 22.35 skrev Noel J. Bergman:
 Jonas,

 Are you trying to do DAV from the root?  I have a special Location
element
 for DAV:

 Alias /dav /.../htdocs
 Location /dav/ 
   DAV On
   AddType text/plain .jsp
   AllowOverride None
   Options None
 /Location

 an alternative, which I have no chosen to use, would be to define a DNS
 entry and virtual host, e.g., dav.domain.tld.

   --- Noel

 -Original Message-
 From: Jonas Bosson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 12, 2002 10:56
 To: [EMAIL PROTECTED]
 Subject: Apache+mod_dav+connector dilemma


 Dear tomcat wizards.

 I can't get mod_dav to work since the jk connector routes all http
 method calls for *.xml pages to tomcat. Any solution I can think of
 requires a modification of the connectors in tomcat.

 Before I proceed, I need help to decide what the best solution is:

 Alt 1: Allow the connectors to act within location instead of for the
 whole host/virtualhost so that a apache virtual folder can be shielded
 from the connector. This allows for operations to be exclusive for
 apache within this location.

 Alt 2: Method filtering by argument to jkmount. This would allow mod_dav
 to function and tomcat to serve dynamic responses only to GET, HEAD and
 POST.

 Alt 3: A response from tomcat (and the servlet) to the connector that it
 should find the next suitable match in apache. This way we could decide
 if tomcat or apache should handle the request dynamically.


 ... the simple solution that I am missing.
 else I am ready to start modifying the connectors.

 Rest regards,
 --
 Jonas Bosson
 HomePage: http://www.illuminet.se/


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




RE: byte serving PDFs

2002-12-13 Thread SMcGarrity
Elizabeth,

Tomcat does support this if I understand you correctly.

The following should hopefully achieve this for you (Put these into a JSP):

ByteArrayOutputStream ba = new ByteArrayOutputStream();

Read your PDF into ba ...

response.setContentType(application/pdf);
response.setContentLength(ba.size());
ba.writeTo(response.getOutputStream());
response.getOutputStream().flush();

I hope this makes sense and helps!

Steve

-Original Message-
From: Elizabeth Fisher [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 1:01 PM
To: Tomcat Users List
Subject: byte serving PDFs


Does Tomcat support byte serving of PDFs?

-Elizabeth

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



  1   2   >