Re: Java Process Pool

2003-07-02 Thread James Carpenter
Do you know of an open-source implementation that does provide process
pooling?  (Synchronization alone isn't good enough in my case as I want to
spread the work over multiple processors.)

The whole point of the search is to avoid the time spent writing my own
pooling service.

- Original Message - 
From: "Yoav Shapira" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 5:52 PM
Subject: Re: Java Process Pool


> Howdy,
> Commons-pool is a generic pooling framework.  It's not specific (and in
fact
> not that good, because of sync issues) for threads.  Similarly, it's not
> specific to Processes.  You would just use GenericObjectPool.  If you want
to
> synchronize things (or otherwise control thread-safety), you'd have to
> subclass/wrap GenericObjectPool yourself.
>
> In fact, come to think of it, SynchronizedGenericObjectPool may not be
that bad
> an addition to commons-pool.
>
> Yoav Shapira
>
>
> --- James Carpenter <[EMAIL PROTECTED]> wrote:
> > What pool implementation of the Commons-Pool utility provides process
based
> > pooling as opposed to thread based pooling?  Remember that I need a
process
> > pool to circumvent issues with my JNI extended java code not being
thread
> > safe.  (The underlying C library being wrapped isn't thread safe.)
> >
> > http://jakarta.apache.org/commons/pool/
> >
> > - Original Message - 
> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 02, 2003 1:40 PM
> > Subject: RE: Java Process Pool
> >
> >
> >
> > Howdy,
> > You can use commons-pool for this.
> >
> > The approach itself (pooling processes) is risky and likely to be
> > non-portable.
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> >
> > >-Original Message-
> > >From: James Carpenter [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, July 02, 2003 4:38 PM
> > >To: tomcat users list
> > >Subject: Java Process Pool
> > >
> > >Does anyone know of a convenient way to create a Java process pool.  A
> > >thread pool won't work as I am trying to pool some JNI code wrapping a
> > C
> > >library that isn't thread safe.
> > >
> > >I would rather not have to create my own pooling mechanism.
> > >
> > >Sincerely,
> > >James Carpenter
> > >Email: [EMAIL PROTECTED]
> >
> >
> >
> > This e-mail, including any attachments, is a confidential business
> > communication, and may contain information that is confidential,
proprietary
> > and/or privileged.  This e-mail is intended only for the individual(s)
to
> > whom it is addressed, and may not be saved, copied, printed, disclosed
or
> > used by anyone else.  If you are not the(an) intended recipient, please
> > immediately delete this e-mail from your computer system and notify the
> > sender.  Thank you.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> =
> Yoav Shapira
> [EMAIL PROTECTED]
>
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Compensating for applet security restrictions

2003-07-02 Thread Susan Hoddinott



Hello,
 
I currently have a JSP with an APPLET tag (including EMBED and OBJECT 
references) which runs a JAR file located on my server.  The program runs 
fine but because the APPLET is run by the Java plug-in whenever it needs to read 
or write data it attempts to read or write the data from or on the client 
machine, which is clearly inappropriate.  I do not want to use servlets as 
I would like to distribute the APPLET and program when I have finished and do 
not want to assume servlet support.
 
The jar file first program is a JApplet and this creates a JFrame using a 
normal class file.  All other programs are normal classes (i.e. 
non-applets).  I want to use the graphics environments on the client 
machine as my own web server does not have an installed graphics 
environment.
 
I have been investigating URLConnections, Sockets, Proxy Servers and RMI 
and have been left feeling confused as I am unclear which is the best approach 
and all seem very complicated to overcome what seems to be a simple 
problem.  Furthermore, all examples seem to use a single text file whereas 
I want to default all IO to the server rather than the client.  Does anyone 
know a solution for this problem?
 
Regards,Susan Hoddinotthttp://www.hexworx.com

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

How to generate Build Status Log

2003-07-02 Thread bas perumal
Hi,
 Please let me know how to generate build status log with all the possible information 
about the build process status.
 
with luv,
bas

SMS using the Yahoo! Messenger;Download latest version.

How to generate Build Status Log

2003-07-02 Thread B.A.S.Perumal
Hi All,
Do any one knows how to generate build status log with all the possible 
information about the build process. including the exception message if it occurs.
 
Please let me know asap.
 
with luv,
bas


-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

Re: Need your suggestion

2003-07-02 Thread Bill Barker

"John Turner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> #2 because its free and based on the GPL.  'Nuf said.
>

Urm, it is actually based on the Apache-License (similar to the BSD
License), which is much less restrictive than GPL. If Tomcat were GPL, I'd
never let my firm use it, much less be a Tomcat developer.

> John
>
> On Wed, 2 Jul 2003 19:29:51 +0800, Cui Xiaojing-a13339
> <[EMAIL PROTECTED]> wrote:
>
> > Hello All,
> >
> > We plan to develop two web applications. Now we have two solutions for
> > them and only one solution could be chosen for the two applications,
that
> > means the two application must use same solution.
> >
> > The two solutions are:
> > 1. Oracle JServer+Oracle 9iAS 1.0.2
> > 2. Tomcat + Apache
> >
> > Could you please give some suggestion about which solution is better?
> >
> > Thanks&Regards,
> > Xiaojing
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/




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



Re: Bug ? Init is called twice in SingleThreadModel

2003-07-02 Thread Bill Barker
By default, all current released versions of Tomcat (i.e. 3.3.1-5.0.3)
implement instance-pooling for STM Servlets.  The servlet-spec explicitly
allows the Container (aka Tomcat) to implement STM Servlets this way, so,
no, it is not a bug.  You should expect to get multiple instances of your
Servlet, and hence multiple calls to init.

"Hal Lander" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The init method of my servlet is called twice if my class implements the
> SingleThreadModel.
> Full details are given below. If I remove "implements SingleThreadModel"
> init is called only once - as I would expect.
>
> Is this a bug?
> Any help would be appreciated.
>
> Hal.
>
>
>
> THE SOURCE CODE
> 
> import javax.servlet.http.HttpServlet;
> import javax.servlet.SingleThreadModel;
>
> public class x extends HttpServlet implements SingleThreadModel
> //
> {
> public void init()
> //
> {
> System.out.println("init called");
> return;
> }
> }
>
>
> URL USED TO INVOKE SERVLET
> ==
> http://localhost:8080/examples/servlet/x
>
>
>
> OUTPUT IN "START TOMCAT" WINDOW
> ===
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.4
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.4
> init called
> init called
>
>
> localhost_examples_log.2003-06-27.txt
> =
> 2003-06-27 11:39:09 WebappLoader[/examples]: Deploying class repositories
to
> work directory C:\Program Files\Apache Tomcat
> 4.0\work\Standalone\localhost\examples
> 2003-06-27 11:39:09 WebappLoader[/examples]: Deploy JAR
> /WEB-INF/lib/httpclient.jar to C:\Program Files\Apache Tomcat
> 4.0\webapps\examples\WEB-INF\lib\httpclient.jar
> 2003-06-27 11:39:09 WebappLoader[/examples]: Deploy JAR
> /WEB-INF/lib/logging.jar to C:\Program Files\Apache Tomcat
> 4.0\webapps\examples\WEB-INF\lib\logging.jar
> 2003-06-27 11:39:09 WebappLoader[/examples]: Reloading checks are enabled
> for this Context
> 2003-06-27 11:39:09 StandardManager[/examples]: Seeding random number
> generator class java.security.SecureRandom
> 2003-06-27 11:39:09 StandardManager[/examples]: Seeding of random number
> generator has been completed
> 2003-06-27 11:39:09 ContextConfig[/examples]: Added certificates ->
request
> attribute Valve
> 2003-06-27 11:39:09 ContextConfig[/examples]: Configured an authenticator
> for method FORM
> 2003-06-27 11:39:09 ContextListener: contextInitialized()
> 2003-06-27 11:39:09 SessionListener: contextInitialized()
> 2003-06-27 11:39:09 ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES',
> '[Ljava.lang.String;@1f6226')
> 2003-06-27 11:39:09 StandardWrapper[/examples:default]: Loading container
> servlet default
> 2003-06-27 11:39:09 default: init 2003-06-27 11:39:09
> StandardWrapper[/examples:invoker]: Loading container servlet invoker
> 2003-06-27 11:39:09 invoker: init 2003-06-27 11:39:09 jsp: init 2003-06-27
> 11:39:45 org.apache.catalina.INVOKER.x: init
> 2003-06-27 11:39:45 org.apache.catalina.INVOKER.x: init
> 2003-06-27 11:39:45 InvokerFilter(ApplicationFilterConfig[name=Servlet
> Mapped Filter, filterClass=filters.ExampleFilter]): 20 milliseconds
> 2003-06-27 11:39:45 InvokerFilter(ApplicationFilterConfig[name=Path Mapped
> Filter, filterClass=filters.ExampleFilter]): 20 milliseconds
> 2003-06-27 11:40:04 SessionListener: contextDestroyed() 2003-06-27
11:40:04
> ContextListener: contextDestroyed()
> 2003-06-27 11:40:04 org.apache.catalina.INVOKER.x: destroy 2003-06-27
> 11:40:04 org.apache.catalina.INVOKER.x: destroy
>
> _
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail




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



Log4j / ConsoleLogger

2003-07-02 Thread christian . schuster




Hi list,

I am using Log4j for my web apps. Now I would like to set up Tomcat's
Console Logger to use Log4j. I know I just can put the required classes on
system startup path (e.q. JAVA_HOME/jre/lib for libs or
JAVA_HOME/jre/classes for classes). Then just edit the
JAVA_HOME/jre/lib/logging.properties. This is all okay. But how can I
configure Log4j for a specific Layout pattern. Not setting the patern is
the problem. But where could I set this that already the first messages on
the console are coming with the specified pattern? Could it be done with a
servlet which is loaded at start up time or just what is the best way to
this?

Any hints are appreciated

Regards,

Christian Schuster

Rudolf Schuster AG
Postfach 277
CH - 3000 Bern 11

http://www.rsag.ch
++41 31 348 05 30


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



Re: How to compile mod_jk2.c

2003-07-02 Thread Thomas Gagné
Is "ant" supposed to compile it or is there a "configure" or "make" that 
creates the little beastie?

Well, inside jakarta-tomcat-connectors-4.1.24-src/jk/native2 there's a 
buildconf.sh.  After running it I had a "configure" file, which helped 
me feel at home.

. configure --with-apxs2=/usr/local/apache2/bin/apxs 
--with-tomcat41=/var/tomcat4

created the makefiles, and before I knew it, I had a mod_jk2.so.

Now, I need to find out what to do with it.

Eric J. Pinnell wrote:

Hi,

Mine was in:
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/mod_jk2.so
-e

On Wed, 2 Jul 2003, [ISO-8859-1] Thomas Gagn? wrote:

 

I guess that's what I would have thought, but alas:

find . -name 'mod_jk*'
./jk/native/apache-1.3/mod_jk.c
./jk/native/apache-1.3/mod_jk.dsp
./jk/native/apache-1.3/mod_jk.exp
./jk/native/apache-2.0/mod_jk.dsp
./jk/native/apache-2.0/mod_jk.c
./jk/native2/server/apache2/mod_jk2.dsp
./jk/native2/server/apache2/mod_jk2.c
./jk/native2/server/apache13/mod_jk2.c
./jk/native2/server/apache13/mod_jk2.dsp
./jk/xdocs/images/mod_jk.jpg
no mod_jk2.so

Eric J. Pinnell wrote:

   

Hi,

If you dl'd the source and built it sucessfully you will have the finished
product, mod_jk2.so, in the build directory.  It's a DSO.  So you would
copy that to the apache modules directory and load it in the httpd.conf
file.
-e

On Wed, 2 Jul 2003, [ISO-8859-1] Thomas Gagn? wrote:



 

I downloaded the connector stuff and it anted fine, but I can't locate
the instructions on how to include mod_jk2.c into Apache 2's compile.
Where is that hidden?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   

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


 

--
.tom


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

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

--
.tom


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


Re: How to get the container within an instance event?

2003-07-02 Thread Craig R. McClanahan


On Wed, 2 Jul 2003, Angus Mezick wrote:

> Date: Wed, 2 Jul 2003 15:08:33 -0400
> From: Angus Mezick <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: How to get the container within an instance event?
>
> Does anyone know how to access the container object from an instance
> event?  Are there any specs that say an instance event can have no
> internal access to the server?
>

I presume you're talking about org.apache.catalina.InstanceEvent, right?
If so, the "wrapper" property that is accessible via getWrapper() is the
org.apache.catalina.Container instance for this particular servlet.  If
you want the Context element for the webapp, for example, you'd say
something like:

  Context context = (Context) event.getWrapper().getParent();

or, to get the Host for this virtual host:

  Host host = (Host) event.getWrapper().getParent().getParent();

and so on.

> Sorry for the cross post but I am deep into the internals of tomcat here
> and I don't know which list is appropriate.  The list with "how do I
> change the default port" type q's or the one that debates how features
> should be implemented.
>

The TOMCAT-USER list probably won't have many folks that understand the
internals well enough to answer a question like this :-).

> Angus Mezick
> GuideStar - Philanthropic Research Inc.
> 427 Scotland St.
> Williamsburg, Virginia 23185
> PHONE: (757)299-4631 x35  FAX:(757)229-8912
> [EMAIL PROTECTED] 
> www.guidestar.org 
>

Craig McClanahan

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



Deploying WAR: Possible to automatically compile JSPs?

2003-07-02 Thread Lukas Bradley
When deploying a WAR file, is it possible to have Tomcat automatically
compile all the included JSP files?

Lukas




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



RE: Page does not immediately display on restart

2003-07-02 Thread grenoml
  Ok, I just tried this on a RH9 box and I'm not seeing the same
behavior - it's displaying the page for me there.  So, I'm only
observing this behavior on the RH8 setup.

rgds,
Gerry Reno

--- grenoml <[EMAIL PROTECTED]> wrote:
> Yoav,
>   The url request will queue until the container has started and then
> it will process it.  If you don't want to test it then ok don't. 
> This
> observed behavior is different than 4.1.24 and since I'm looking for
> clues related to the Jetspeed JSP Portlets not displaying with 5.0.3
> I
> thought this could possibly be another related symptom.
> 
> rgds,
> Gerry Reno
> 
> 
> --- Yoav Shapira <[EMAIL PROTECTED]> wrote:
> > Howdy,
> > 
> > >   Please be sure to try and access the page after giving the
> > command to
> > > restart the container but before it has finished restarting.
> > 
> > Are you serious? ;)  That's not a valid test IMHO and I'm not going
> > to try it
> > at all.  While the container is restarting and it's restarting, and
> I
> > don't
> > expect anything to be available.
> > 
> > Yoav Shapira
> > 
> > 
> > =
> > Yoav Shapira
> > [EMAIL PROTECTED]
> > 
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



HELP, HOW TO BUILD MOD_JK FROM SOURCE

2003-07-02 Thread Dumisani Nlebgwa

Hi guys, this is kind of stupid but does anyone know or have any good
documentation of how I can build mod_jk from source?
I am using redhat 9 and i use the apache2.0.40 that came with it
and tomcat 4.1

--Dumi








*---*
*   Dumisani Nlebgwa*
*   631 216 1622*
*   You can't pronounce my name?*
*   - but its so phonetic!  *
*---*


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



Re: How to compile mod_jk2.c

2003-07-02 Thread Eric J. Pinnell
Hi,

Mine was in:
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/mod_jk2.so

-e

On Wed, 2 Jul 2003, [ISO-8859-1] Thomas Gagné wrote:

> I guess that's what I would have thought, but alas:
>
> find . -name 'mod_jk*'
> ./jk/native/apache-1.3/mod_jk.c
> ./jk/native/apache-1.3/mod_jk.dsp
> ./jk/native/apache-1.3/mod_jk.exp
> ./jk/native/apache-2.0/mod_jk.dsp
> ./jk/native/apache-2.0/mod_jk.c
> ./jk/native2/server/apache2/mod_jk2.dsp
> ./jk/native2/server/apache2/mod_jk2.c
> ./jk/native2/server/apache13/mod_jk2.c
> ./jk/native2/server/apache13/mod_jk2.dsp
> ./jk/xdocs/images/mod_jk.jpg
>
> no mod_jk2.so
>
> Eric J. Pinnell wrote:
>
> >Hi,
> >
> >If you dl'd the source and built it sucessfully you will have the finished
> >product, mod_jk2.so, in the build directory.  It's a DSO.  So you would
> >copy that to the apache modules directory and load it in the httpd.conf
> >file.
> >
> >-e
> >
> >On Wed, 2 Jul 2003, [ISO-8859-1] Thomas Gagn? wrote:
> >
> >
> >
> >>I downloaded the connector stuff and it anted fine, but I can't locate
> >>the instructions on how to include mod_jk2.c into Apache 2's compile.
> >> Where is that hidden?
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
> --
> .tom
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: How to compile mod_jk2.c

2003-07-02 Thread Thomas Gagné
I guess that's what I would have thought, but alas:

find . -name 'mod_jk*'
./jk/native/apache-1.3/mod_jk.c
./jk/native/apache-1.3/mod_jk.dsp
./jk/native/apache-1.3/mod_jk.exp
./jk/native/apache-2.0/mod_jk.dsp
./jk/native/apache-2.0/mod_jk.c
./jk/native2/server/apache2/mod_jk2.dsp
./jk/native2/server/apache2/mod_jk2.c
./jk/native2/server/apache13/mod_jk2.c
./jk/native2/server/apache13/mod_jk2.dsp
./jk/xdocs/images/mod_jk.jpg
no mod_jk2.so

Eric J. Pinnell wrote:

Hi,

If you dl'd the source and built it sucessfully you will have the finished
product, mod_jk2.so, in the build directory.  It's a DSO.  So you would
copy that to the apache modules directory and load it in the httpd.conf
file.
-e

On Wed, 2 Jul 2003, [ISO-8859-1] Thomas Gagn? wrote:

 

I downloaded the connector stuff and it anted fine, but I can't locate
the instructions on how to include mod_jk2.c into Apache 2's compile.
Where is that hidden?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

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

--
.tom


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


RE: Page does not immediately display on restart

2003-07-02 Thread grenoml
Yoav,
  The url request will queue until the container has started and then
it will process it.  If you don't want to test it then ok don't.  This
observed behavior is different than 4.1.24 and since I'm looking for
clues related to the Jetspeed JSP Portlets not displaying with 5.0.3 I
thought this could possibly be another related symptom.

rgds,
Gerry Reno


--- Yoav Shapira <[EMAIL PROTECTED]> wrote:
> Howdy,
> 
> >   Please be sure to try and access the page after giving the
> command to
> > restart the container but before it has finished restarting.
> 
> Are you serious? ;)  That's not a valid test IMHO and I'm not going
> to try it
> at all.  While the container is restarting and it's restarting, and I
> don't
> expect anything to be available.
> 
> Yoav Shapira
> 
> 
> =
> Yoav Shapira
> [EMAIL PROTECTED]
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: loadOnStartup: Default Context Resources unavailable?

2003-07-02 Thread Yoav Shapira
Howdy,

> Is there a place to put these definitions so that a new application
> deployed out of ant, for example, would be able to pick them up?

GlobalNamingResources in the server.xml file.

> Am I missing an easy way to create the context with resources using ant?

No, you're not AFAIK.

I still like putting them in the  rather than some global place, on
the princinple that web appliations should be self-contained.  Having a
fallback/default/global configuration just complicates debugging.  However, I
see it would be useful in development/testing.

Yoav Shapira


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Java Process Pool

2003-07-02 Thread Yoav Shapira
Howdy,
Commons-pool is a generic pooling framework.  It's not specific (and in fact
not that good, because of sync issues) for threads.  Similarly, it's not
specific to Processes.  You would just use GenericObjectPool.  If you want to
synchronize things (or otherwise control thread-safety), you'd have to
subclass/wrap GenericObjectPool yourself.

In fact, come to think of it, SynchronizedGenericObjectPool may not be that bad
an addition to commons-pool.

Yoav Shapira


--- James Carpenter <[EMAIL PROTECTED]> wrote:
> What pool implementation of the Commons-Pool utility provides process based
> pooling as opposed to thread based pooling?  Remember that I need a process
> pool to circumvent issues with my JNI extended java code not being thread
> safe.  (The underlying C library being wrapped isn't thread safe.)
> 
> http://jakarta.apache.org/commons/pool/
> 
> - Original Message - 
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 02, 2003 1:40 PM
> Subject: RE: Java Process Pool
> 
> 
> 
> Howdy,
> You can use commons-pool for this.
> 
> The approach itself (pooling processes) is risky and likely to be
> non-portable.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: James Carpenter [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, July 02, 2003 4:38 PM
> >To: tomcat users list
> >Subject: Java Process Pool
> >
> >Does anyone know of a convenient way to create a Java process pool.  A
> >thread pool won't work as I am trying to pool some JNI code wrapping a
> C
> >library that isn't thread safe.
> >
> >I would rather not have to create my own pooling mechanism.
> >
> >Sincerely,
> >James Carpenter
> >Email: [EMAIL PROTECTED]
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential, proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Page does not immediately display on restart

2003-07-02 Thread Yoav Shapira
Howdy,

>   Please be sure to try and access the page after giving the command to
> restart the container but before it has finished restarting.

Are you serious? ;)  That's not a valid test IMHO and I'm not going to try it
at all.  While the container is restarting and it's restarting, and I don't
expect anything to be available.

Yoav Shapira


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Servlets/JSP crash, static content & manager app OK

2003-07-02 Thread Yoav Shapira
Howdy,
See intermixed -- there are a lot of different questions here ;)

> This turned out to be the case, but for a funky reason.  By using the

JDBC drivers are a frequent cause for this.  Another is JMS clients.

> It turns out that the SCSI backplane was the real problem and had to be
> replaced.  Since getting this server back up was the main priority, I didn't


Good piece of debugging there ;)  Those can be a pain.

> Connection.  I have since re-coded our ConnectionPool so that it abandons the
> Connection creation thread after 5 seconds (i.e. Thread.join(5000)).  There

It's interesting to hear this in light of the currently raging discussion among
the DBCP developers on whether DBCP should support abandoning connections after
a certain timeout.  See the DBCP messages from the past couple of days on the
jakarta-commons-dev mailing list for more details.

> >Turn on debug="99" in server.xml (wherever you see debug="0").  Same
> >thing for the servlets defined in $CATALINA_HOME/conf/web.xml.
>  
> Wowthat's a lot of logging on a production machine.  It was very hard to
> find anything useful inside all the clutter, but by selective use of
> debug="99" in certain containers it was at least manageable.

Yup, that's a ton.  In the presence of a hard to reproduce problem, I prefer to
start with overkill and then turn things off as I narrow down / rule out
possible causes.  It's a subjective thing ;)

> 
> No security manager.  I removed all the tomcat webapps besides manager and it
> didn't make a difference.  My real question is why does this runaway thread
> crash almost everything in Tomcat?  It doesn't seem to kill a lot of

It's a JVM effect.  It's not specific to tomcat, would likely happen in any
container.  The way it manifests itself might be particular to tomcat.

> resources.  If a single execution thread (from a servlet or JSP) goes on
> infinitely, why does it screw up the whole servlet container?  Or rather,
> part of the container since static pages and the manager app still worked
> fine even when things were bad.

It didn't sound like the manager app was fine (it was hanging and you had to
hit reload).  And I don't recall but I thought the static pages were simply
cached in your browser.

Consider the case of a single thread somewhere in the JVM doing
while(true);

Nothing else matters, the JVM will be stuck, no matter how well-written the
container is.

> On a related note, how do you know when you reach a load that exceeds the
> capacity of your server?  I'm happy to set up load-balancing if need be, but
> I have no idea how to detect the need other than anecdotal "slowness".

You determine an acceptable response time for a page.  You write a script that
calls the page.  You use a tool to run the script that lets you increase the
number of concurrent requests.  You run the script, measure response time, and
when it drops below the acceptable range, you've reached your max capacity for
the current configuration.  Then you start tuning, e.g. maxProcessors for your
connector.

There are ample free (and non-free) tools to do the above: The Grinder, Load
(from PushToTest), JMeter, wget, etc etc.

Yoav Shapira


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Stack Trace Line Numbers

2003-07-02 Thread Tim Funk
Or you can use JAVA_OPTS='-Xint'

-Tim

Jeremiah Armstrong wrote:
Since I started using Tomcat 4.1.24, I am encountering problems
debugging servlets when an exception is thrown. In previous servlet
containers that I have used, when a stack trace is printed to the log
using (Exception).printStackTrace(), the line number of the offending
piece of code is output to the log. Unfortunately, I now get the
"Unknown Source" message instead.
I am using Sun's JDK 1.4.1_02, and I've tried playing with the "-server"
parameter and "-Djava.compiler=NONE" parameter based on some suggestions
I've read in mail archives, but this doesn't fix my problem. I've also
run this code using the JRockit 8.1 JVM, but it doesn't seem to make a
difference. Anyone have some ideas?
Thanks!

-- Jeremiah

EXAMPLE
--
Today I get this:
java.lang.NullPointerException
at com.posportal.cart.ProcessOrderAction.perform(Unknown Source)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServle
t.java:1787)
I used to get something like this and this is what I want:
java.lang.NullPointerException
at
com.posportal.cart.ProcessOrderAction.perform(ProcessOrderAction.java:68
9)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServle
t.java:1787)
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


RE: Servlets/JSP crash, static content & manager app OK

2003-07-02 Thread Roman Fail
>>The problem: periodically Tomcat stops serving up servlets and JSP from my
>>webapps.  However, the manager webapp and static pages continue to be
>>served normally.  If I click 'stop' for any of my webapps from the manager
>>app, the page load just hangs forever.  If you refresh the manager, it
>>shows the webapp as stopped.

>>You would think that I could just stop Tomcat with the
>>$CATALINA_HOME/bin/shutdown.sh script, but that doesn't seem to do anything
>>at all.  Generally I have to 'kill' the pid to get Tomcat to stop,
>
> Most likely you have non-daemon threads started up by web applications.
 
This turned out to be the case, but for a funky reason.  By using the AccessLogValve, 
we narrowed down the problem to a few JSP pages that were called.  These JSP's get 
data from a different database than all the others - via a PostgreSQL JDBC driver 
(data embedded in business objects, etc...).  The PostgreSQL server's hardware RAID 
array had a drive start to degrade in the mirror set the OS is on (also RH Linux 8), 
but the data set of disks was fine.  The drive didn't totally fail, but it was causing 
havoc in the Linux kernel - apparently something was not good between the hardware 
raid controller's firmware and the kernel.  When a new Connection to the db was 
attempted (and hence read/write activity on the OS set, I suppose to create a new 
pid), Tomcat would crash as described above.  
 
It turns out that the SCSI backplane was the real problem and had to be replaced.  
Since getting this server back up was the main priority, I didn't get to do more Java 
debugging and see exactly what was causing Tomcat to crash.   My best hypothesis is 
that the JDBC driver was the root cause, in that it didn't time out correctly when 
errors occured while creating the Connection.  I have since re-coded our 
ConnectionPool so that it abandons the Connection creation thread after 5 seconds 
(i.e. Thread.join(5000)).  There is undoubtedly still the possibility of a memory leak 
here, but that's the least of my concerns at this second.  I'm also planning on 
reporting this to the PostgreSQL-JDBC list to see if this is a possible bug in the 
driver.
 
>Turn on debug="99" in server.xml (wherever you see debug="0").  Same
>thing for the servlets defined in $CATALINA_HOME/conf/web.xml.
 
Wowthat's a lot of logging on a production machine.  It was very hard to find 
anything useful inside all the clutter, but by selective use of debug="99" in certain 
containers it was at least manageable.

> Are you running with a security manager?  Actually I was going to ask this at
> the beginning: is this happening even when only the tomcat webapps
> (admin, manager, docs, examples) are installed?  Is it one of your
> webapps causing this behavior or one of tomcat's?

No security manager.  I removed all the tomcat webapps besides manager and it didn't 
make a difference.  My real question is why does this runaway thread crash almost 
everything in Tomcat?  It doesn't seem to kill a lot of resources.  If a single 
execution thread (from a servlet or JSP) goes on infinitely, why does it screw up the 
whole servlet container?  Or rather, part of the container since static pages and the 
manager app still worked fine even when things were bad.
 
On a related note, how do you know when you reach a load that exceeds the capacity of 
your server?  I'm happy to set up load-balancing if need be, but I have no idea how to 
detect the need other than anecdotal "slowness".
 
Thanks for your insightful questions and comments.
 
Roman


RE: Page does not immediately display on restart

2003-07-02 Thread grenoml
  Please be sure to try and access the page after giving the command to
restart the container but before it has finished restarting.

Gerry Reno

  
--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Howdy,
> Unable to reproduce on Solaris 8, Windows 2000, or Windows XP using
> tomcat 5.0.3 and JDK 1.4.1 or 1.4.2.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: grenoml [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, July 02, 2003 6:02 PM
> >To: [EMAIL PROTECTED]
> >Subject: Page does not immediately display on restart
> >
> >Setup/configuration:
> >J2SE 1.4.2-beta  
> >RedHat Linux 8.0
> >Tomcat 5.0.3
> >
> >When I restart Tomcat 5.0.3 and then enter a url in the browser
> address
> >bar (e.g. http://localhost:8080) and wait for the page to display,
> it
> >only displays a blank page.  I have to hit reload to actually see
> the
> >page.  I don't need to do that in 4.1.24.  I'm interested if anyone
> >else is able to duplicate this behavior on their setup using Tomcat
> >5.0.3.
> >
> >Gerry Reno
> >
> >__
> >Do you Yahoo!?
> >SBC Yahoo! DSL - Now only $29.95 per month!
> >http://sbc.yahoo.com
> >
>
>-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Stack Trace Line Numbers

2003-07-02 Thread Jeremiah Armstrong
I actually just figured out this problem by setting the
-Djava.compiler=NONE parameter in "JAVA_OPTS" and _NOT_ "CATALINA_OPTS".
Also, make sure when you are setting the environmental variable in both
Windows and Linux that you do not include quote marks around it.

LINUX EXAMPLE:
--
THIS WILL WORK:
JAVA_OPTS=-Djava.compiler=NONE

THIS WILL NOT WORK:
JAVA_OPTS="-Djava.compiler=NONE"



Hope this helps some other developers!

-- Jeremiah



-Original Message-
From: Jeremiah Armstrong 
Sent: Wednesday, July 02, 2003 3:43 PM
To: '[EMAIL PROTECTED]'
Subject: Stack Trace Line Numbers

Since I started using Tomcat 4.1.24, I am encountering problems
debugging servlets when an exception is thrown. In previous servlet
containers that I have used, when a stack trace is printed to the log
using (Exception).printStackTrace(), the line number of the offending
piece of code is output to the log. Unfortunately, I now get the
"Unknown Source" message instead.

I am using Sun's JDK 1.4.1_02, and I've tried playing with the "-server"
parameter and "-Djava.compiler=NONE" parameter based on some suggestions
I've read in mail archives, but this doesn't fix my problem. I've also
run this code using the JRockit 8.1 JVM, but it doesn't seem to make a
difference. Anyone have some ideas?

Thanks!

-- Jeremiah


EXAMPLE
--
Today I get this:
java.lang.NullPointerException
at com.posportal.cart.ProcessOrderAction.perform(Unknown Source)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServle
t.java:1787)

I used to get something like this and this is what I want:
java.lang.NullPointerException
at
com.posportal.cart.ProcessOrderAction.perform(ProcessOrderAction.java:68
9)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServle
t.java:1787)
--

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



Stack Trace Line Numbers

2003-07-02 Thread Jeremiah Armstrong
Since I started using Tomcat 4.1.24, I am encountering problems
debugging servlets when an exception is thrown. In previous servlet
containers that I have used, when a stack trace is printed to the log
using (Exception).printStackTrace(), the line number of the offending
piece of code is output to the log. Unfortunately, I now get the
"Unknown Source" message instead.

I am using Sun's JDK 1.4.1_02, and I've tried playing with the "-server"
parameter and "-Djava.compiler=NONE" parameter based on some suggestions
I've read in mail archives, but this doesn't fix my problem. I've also
run this code using the JRockit 8.1 JVM, but it doesn't seem to make a
difference. Anyone have some ideas?

Thanks!

-- Jeremiah


EXAMPLE
--
Today I get this:
java.lang.NullPointerException
at com.posportal.cart.ProcessOrderAction.perform(Unknown Source)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServle
t.java:1787)

I used to get something like this and this is what I want:
java.lang.NullPointerException
at
com.posportal.cart.ProcessOrderAction.perform(ProcessOrderAction.java:68
9)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServle
t.java:1787)
--

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



RE: loadOnStartup: Default Context Resources unavailable?

2003-07-02 Thread Christian Wiedmann
Hi,

Thanks for the quick response.

That's fair, and I did discover that this works. I was hoping for a more
global place to put the Resources.

The issue is that the apps are currently getting deployed using Warp and/or
ant.  The Default Context is advantageous in this environment since any of
the new Contexts created on the fly inherit the Resources.

Is there a place to put these definitions so that a new application
deployed out of ant, for example, would be able to pick them up?

Am I missing an easy way to create the context with resources using ant?

-Christian

On Wed, 2 Jul 2003, Shapira, Yoav wrote:
> Subject: RE: loadOnStartup: Default Context Resources unavailable?
> 
> 
> Howdy,
> 
> >Is there a better place to put the Resource/ResourceParams than in the
> >Default Context?
> 
> In the  element for your own context.
> 
> Yoav Shapira
> 

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



Re: Java Process Pool

2003-07-02 Thread James Carpenter
What pool implementation of the Commons-Pool utility provides process based
pooling as opposed to thread based pooling?  Remember that I need a process
pool to circumvent issues with my JNI extended java code not being thread
safe.  (The underlying C library being wrapped isn't thread safe.)

http://jakarta.apache.org/commons/pool/

- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 1:40 PM
Subject: RE: Java Process Pool



Howdy,
You can use commons-pool for this.

The approach itself (pooling processes) is risky and likely to be
non-portable.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: James Carpenter [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 4:38 PM
>To: tomcat users list
>Subject: Java Process Pool
>
>Does anyone know of a convenient way to create a Java process pool.  A
>thread pool won't work as I am trying to pool some JNI code wrapping a
C
>library that isn't thread safe.
>
>I would rather not have to create my own pooling mechanism.
>
>Sincerely,
>James Carpenter
>Email: [EMAIL PROTECTED]



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


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


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



RE: Page does not immediately display on restart

2003-07-02 Thread Shapira, Yoav

Howdy,
Unable to reproduce on Solaris 8, Windows 2000, or Windows XP using
tomcat 5.0.3 and JDK 1.4.1 or 1.4.2.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: grenoml [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 6:02 PM
>To: [EMAIL PROTECTED]
>Subject: Page does not immediately display on restart
>
>Setup/configuration:
>J2SE 1.4.2-beta
>RedHat Linux 8.0
>Tomcat 5.0.3
>
>When I restart Tomcat 5.0.3 and then enter a url in the browser address
>bar (e.g. http://localhost:8080) and wait for the page to display, it
>only displays a blank page.  I have to hit reload to actually see the
>page.  I don't need to do that in 4.1.24.  I'm interested if anyone
>else is able to duplicate this behavior on their setup using Tomcat
>5.0.3.
>
>Gerry Reno
>
>__
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Page does not immediately display on restart

2003-07-02 Thread grenoml
Setup/configuration:
J2SE 1.4.2-beta
RedHat Linux 8.0
Tomcat 5.0.3

When I restart Tomcat 5.0.3 and then enter a url in the browser address
bar (e.g. http://localhost:8080) and wait for the page to display, it
only displays a blank page.  I have to hit reload to actually see the
page.  I don't need to do that in 4.1.24.  I'm interested if anyone
else is able to duplicate this behavior on their setup using Tomcat
5.0.3.

Gerry Reno

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: loadOnStartup: Default Context Resources unavailable?

2003-07-02 Thread Shapira, Yoav

Howdy,

>Is there a better place to put the Resource/ResourceParams than in the
>Default Context?

In the  element for your own context.

Yoav Shapira



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


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



loadOnStartup: Default Context Resources unavailable?

2003-07-02 Thread Christian Wiedmann
I'm having a problem with code that is trying to use a Resource (DataSource)
registered with JNDI out of a Struts Plugin at startup time.  I was hoping
someone on the list might have suggestions on how to deal with this.

More specifically, it appears as if the Default Context has not been copied
into the Application Context at the time loadOnStartup servlets run.  I looked
at the startup code and it appears that the copying happens when ContextConfig
gets the start lifecycle event.  However, this event doesn't fire until after
loadOnStartup is called.

Is there a better place to put the Resource/ResourceParams than in the Default
Context?

Is it intentional that that the Default Context isn't available at startup
time?

I know the Struts data source would work here, but the classes that are
accessing the database are used elsewhere as well, so using JNDI would be
preferable here.

-Christian

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



RE: Sessions sans cookies? URL Rewriting?

2003-07-02 Thread Shapira, Yoav

Howdy,

>If it wasn't from Yoav, I would have said the following:

Say it anyways ;)

>I've seen it written that "one should ensure all URL emitted from your
>system should be passed through encodeRedirectURL()"
>
>I'd try it and see.

I second that: at the very least, it's a good test and a good practice.
I should have mentioned that before.

Yoav Shapira



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


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



RE: Java Process Pool

2003-07-02 Thread Oscar Carrillo
I got it. Thanks.

I'm not the original poster, I was just wondering.

Oscar

On Wed, 2 Jul 2003, Shapira, Yoav wrote:

> 
> Howdy,
> 
> >I'm just wondering what's the "risky" part. Is database pooling any
> >different than this idea, in that you are still dependent on something
> >outside of Java mis-behaving and is platform-specific.
> >
> >And would there be anything "non-portable" except for the JNI part,
> which
> >of course is platform-dependent.
> 
> I suppose you could substitute platform-dependent for non-portable in my
> earlier statement.
> 
> OS processes are a lot less uniform than JDBC implementations.
> Connection pooling has much stricter interfaces (namely
> java.sql.Connection, java.sql.Statement, java.sql.ResultSet,
> javax.sql.DataSource, javax.sql.PooledConnection) than java processes
> (java.lang.Process).  As the JavaDoc for the Process class says, there
> are no strict constraints on when the process executes, how, etc.
> 
> So yes, database pooling is different in practice if not in concept.
> The interfaces uses for database pooling are much stricter, designed for
> pooling, tested for pooling.  The java.lang.Process is more of a
> necessary evil.
> 
> I'm not saying your solution won't work, especially if it's constrained
> to and well-tested on a specific OS.  But it's likely to require
> significantly more testing, if it's portable at all, to other systems.
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: tomcat example servlets question

2003-07-02 Thread Shapira, Yoav

Howdy,
It's a JSP example now.

The request info and request headers servlet examples that come with
tomcat cover this functionality pretty much.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Erik Weibust [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 5:04 PM
>To: [EMAIL PROTECTED]
>Subject: tomcat example servlets question
>
>I am looking through an old book I have titled, "JSP,
>Servlets, and MySQL" that references SnoopServlet that
>should be in examples.  Has this been removed?  What
>was the logic?
>
>Erik
>
>__
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Sessions sans cookies? URL Rewriting?

2003-07-02 Thread Mike Curwen
If it wasn't from Yoav, I would have said the following:

> > No, you don't need to worry about it.  The server rewrites the URL 
> > automatically.
> > 

was completely wrong.  ;)

 
I've seen it written that "one should ensure all URL emitted from your
system should be passed through encodeRedirectURL()"

I'd try it and see. 

> -Original Message-
> From: Michael Teter [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 02, 2003 4:12 PM
> To: Tomcat Users List
> Subject: Re: Sessions sans cookies? URL Rewriting?
> 
> 
> Maybe my homegrown access control is flawed.  When I disable 
> cookies in 
> my browser, my apps break.
> 


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



RE: Java Process Pool

2003-07-02 Thread Shapira, Yoav

Howdy,

>I'm just wondering what's the "risky" part. Is database pooling any
>different than this idea, in that you are still dependent on something
>outside of Java mis-behaving and is platform-specific.
>
>And would there be anything "non-portable" except for the JNI part,
which
>of course is platform-dependent.

I suppose you could substitute platform-dependent for non-portable in my
earlier statement.

OS processes are a lot less uniform than JDBC implementations.
Connection pooling has much stricter interfaces (namely
java.sql.Connection, java.sql.Statement, java.sql.ResultSet,
javax.sql.DataSource, javax.sql.PooledConnection) than java processes
(java.lang.Process).  As the JavaDoc for the Process class says, there
are no strict constraints on when the process executes, how, etc.

So yes, database pooling is different in practice if not in concept.
The interfaces uses for database pooling are much stricter, designed for
pooling, tested for pooling.  The java.lang.Process is more of a
necessary evil.

I'm not saying your solution won't work, especially if it's constrained
to and well-tested on a specific OS.  But it's likely to require
significantly more testing, if it's portable at all, to other systems.

Yoav Shapira



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


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



Re: Sessions sans cookies? URL Rewriting?

2003-07-02 Thread Michael Teter
Maybe my homegrown access control is flawed.  When I disable cookies in 
my browser, my apps break.

I have a login form whose action is "ProcessLogin.jsp".  That page 
validates the username and password against a database, and if 
successful it stuffs my valid User object into an App object, and that 
App object already exists as a session var (by virtue of ).

Then all my pages <%@ include file="LoginCheck.jsp" %>, which checks the 
App object to see if it has a valid User object, and if so, it then 
checks to see if that user is a member of a group that has access to the 
current page.  It's a little complicated, but it seems to work well when 
cookies are enabled.

With cookies DISabled, it appears that my session scope App bean is 
being recreated because the session isn't sticking.  In my logs I see 
the session ID to be one thing, and then on the next page I see a 
totally different session ID.  Incidentally, if I should be seeing a 
session ID in the URL, I'm not.

Am I going about it completely wrong?

MT

Shapira, Yoav wrote:
Howdy,


Q1 - I'm looking for pointers to examples or documents.  I see where
the

spec requires that capability, but I don't know the correct way to
exercise it.  Does it just mean that I wrap every  url
and every reponse.sendRedirect() with encodeUrl()?


No, you don't need to worry about it.  The server rewrites the URL
automatically.

Q2 - If you got to http://mycompany.com/index.jsp, you see "Welcome
Guest".  As a very simple example, I want
http://mycompany.com/johnsmith

to become something like
http://mycompany.com/portal.jsp?username=johnsmith.  Then when John
Smith uses his special URL, he'll see "Welcome John Smith".  I can do
everything but the automagic URL mapping.  It would be good enough just
for the URL to be rewritten to the second one above, but the ultimate
would be for the URL to remain in the simple form first listed.


The Apache URL rewriter is excellent for this.  But you can do it in
tomcat-standalone as well, with a filter as I mentioned.  Map the filter
to /*.  Have the filter inspect the request URI and convert /x to
/portal.jsp?username=x unless x is in a set of resources (probably
obtained from ServletContext#listResourcePaths or whatever that method
is called).
Yoav Shapira



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

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




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


tomcat example servlets question

2003-07-02 Thread Erik Weibust
I am looking through an old book I have titled, "JSP,
Servlets, and MySQL" that references SnoopServlet that
should be in examples.  Has this been removed?  What
was the logic?

Erik

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Java Process Pool

2003-07-02 Thread Oscar Carrillo
Hi,

I'm no expert on this.

I'm just wondering what's the "risky" part. Is database pooling any 
different than this idea, in that you are still dependent on something 
outside of Java mis-behaving and is platform-specific.

And would there be anything "non-portable" except for the JNI part, which
of course is platform-dependent.

Cheers,
Oscar

On Wed, 2 Jul 2003, Shapira, Yoav wrote:

> 
> Howdy,
> You can use commons-pool for this.  
> 
> The approach itself (pooling processes) is risky and likely to be
> non-portable.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: James Carpenter [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, July 02, 2003 4:38 PM
> >To: tomcat users list
> >Subject: Java Process Pool
> >
> >Does anyone know of a convenient way to create a Java process pool.  A
> >thread pool won't work as I am trying to pool some JNI code wrapping a
> C
> >library that isn't thread safe.
> >
> >I would rather not have to create my own pooling mechanism.
> >
> >Sincerely,
> >James Carpenter
> >Email: [EMAIL PROTECTED]
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Sessions sans cookies? URL Rewriting?

2003-07-02 Thread Shapira, Yoav

Howdy,

>Q1 - I'm looking for pointers to examples or documents.  I see where
the
>spec requires that capability, but I don't know the correct way to
>exercise it.  Does it just mean that I wrap every  url
>and every reponse.sendRedirect() with encodeUrl()?

No, you don't need to worry about it.  The server rewrites the URL
automatically.

>Q2 - If you got to http://mycompany.com/index.jsp, you see "Welcome
>Guest".  As a very simple example, I want
http://mycompany.com/johnsmith
>to become something like
>http://mycompany.com/portal.jsp?username=johnsmith.  Then when John
>Smith uses his special URL, he'll see "Welcome John Smith".  I can do
>everything but the automagic URL mapping.  It would be good enough just
>for the URL to be rewritten to the second one above, but the ultimate
>would be for the URL to remain in the simple form first listed.

The Apache URL rewriter is excellent for this.  But you can do it in
tomcat-standalone as well, with a filter as I mentioned.  Map the filter
to /*.  Have the filter inspect the request URI and convert /x to
/portal.jsp?username=x unless x is in a set of resources (probably
obtained from ServletContext#listResourcePaths or whatever that method
is called).

Yoav Shapira



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


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



RE: Java Process Pool

2003-07-02 Thread Shapira, Yoav

Howdy,
You can use commons-pool for this.

The approach itself (pooling processes) is risky and likely to be
non-portable.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: James Carpenter [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 4:38 PM
>To: tomcat users list
>Subject: Java Process Pool
>
>Does anyone know of a convenient way to create a Java process pool.  A
>thread pool won't work as I am trying to pool some JNI code wrapping a
C
>library that isn't thread safe.
>
>I would rather not have to create my own pooling mechanism.
>
>Sincerely,
>James Carpenter
>Email: [EMAIL PROTECTED]



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


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



org.apache.catalina.core.StandardServer problem - Help!

2003-07-02 Thread ThePrahs
Hi All,

I am trying to start tomcat in IntelliJ Idea 3.0 and I keep on receiving the 
following ClassNotFoundException exception :

02.07.2003 14:46:22 org.apache.commons.digester.Digester startElement
SCHWERWIEGEND(FATAL ERROR): Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
at org.apache.commons.digester.Digester.startElement(Digester.java:1237)
...
...
..
Catalina.start: java.lang.ClassNotFoundException: 
org.apache.catalina.core.StandardServer
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
at org.apache.commons.digester.Digester.startElement(Digester.java:1240)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source).

I am trying to follow the guidelines under : 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html  but to no 
avail.

Apparently, a JAR which contains the 
"org.apache.catalina.core.StandardServer" is missing or can not be found on start-up, 
but I do not know which 
particular JAR file is being let out here.

Any help will be much appreciated.

Thanks.

Bob.


Java Process Pool

2003-07-02 Thread James Carpenter
Does anyone know of a convenient way to create a Java process pool.  A thread pool 
won't work as I am trying to pool some JNI code wrapping a C library that isn't thread 
safe.

I would rather not have to create my own pooling mechanism.

Sincerely,
James Carpenter
Email: [EMAIL PROTECTED]

RE: calling a servlet...from a .jsp (HTTP Status 404 )

2003-07-02 Thread Mike Curwen
Looks like you forgot to put /servlet 

> HTTP Status 404 - /careerCenter/StudentRegistrationServlet



> -Original Message-
> From: Naveen My [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 02, 2003 3:26 PM
> To: Tomcat Users List
> Subject: calling a servlet...from a .jsp (HTTP Status 404 )


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



calling a servlet...from a .jsp (HTTP Status 404 )

2003-07-02 Thread Naveen My

I am unable to call servlet from my jspI get the folowing mesg

HTTP Status 404 - /careerCenter/StudentRegistrationServlet

But am able to call the servlet if I type

http://localhost:80/careerCenter/servlet/StudentRegistrationServlet

My directory structure

D:\Tomcat 4.1\webapps\careerCenter\*jsp files

D:\Tomcat 4.1\webapps\careerCenter\WEB-INF\*.class files

http://localhost:80/careerCenter/servlet/StudentRegistrationServlet

 

This is my entry in web.xml


 
   StudentRegistrationServlet 
   StudentRegistrationServlet 
  
 
   invoker 
   /servlet/* 
  

 

Any advice...

thanks for the help

naveen


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Sessions sans cookies? URL Rewriting?

2003-07-02 Thread Michael Teter
Ok, I'll give a little more detail.

Q1 - I'm looking for pointers to examples or documents.  I see where the 
spec requires that capability, but I don't know the correct way to 
exercise it.  Does it just mean that I wrap every  url 
and every reponse.sendRedirect() with encodeUrl()?

Q2 - If you got to http://mycompany.com/index.jsp, you see "Welcome 
Guest".  As a very simple example, I want http://mycompany.com/johnsmith 
to become something like 
http://mycompany.com/portal.jsp?username=johnsmith.  Then when John 
Smith uses his special URL, he'll see "Welcome John Smith".  I can do 
everything but the automagic URL mapping.  It would be good enough just 
for the URL to be rewritten to the second one above, but the ultimate 
would be for the URL to remain in the simple form first listed.

I hope this clarifies my questions.

Thanks for the quick response.

MT

Shapira, Yoav wrote:
Howdy,


Q1: Can Tomcat 4.X do session management if the user's browser is
rejecting cookies?  If so, how do I do that?  Do I change my code, or
just server/app configuration?


Yes, via URL rewriting, per the Servlet Specification.


Q2: If I want to allow my user, John Smith, to use
http://mycompany.com/johnsmith to access his custom view of my site,
how

would I do that?


You need to precisely define "access" and "custom view" in the above
question.  The solution depends on your specific app.

Neither my Apache Jakarta-Tomcat book nor the Valve
HowTo get into much detail.  I'm thinking I want that URL to convert to
something like http://mycompany.com/portal?u=johnsmith.  Suggestions,
examples, outright solutions? :)


A filter that does redirection based on request.getUserPrincipal() is
one option.
Yoav Shapira



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

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




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


Problem starting Webapp with Ant

2003-07-02 Thread Quasar
Trying to install a webapp on tomcat 4.1.24 with Ant using the install task, here is 
what my build file looks like:


  
 

This action builds great on my local Win2k box, but when I try to run the same exact 
file setup on a linux box this what I get from Tomcat:

2003-07-02 08:03:36 HTMLManager: start: Starting web application at '/salesweb'
2003-07-02 08:03:36 StandardHost[localhost]: standardHost.start /salesweb
2003-07-02 08:03:36 StandardContext[/salesweb]: Resources start failed:
java.lang.IllegalArgumentException: Document base 
/var/tomcat4/webapps/home/david/salesweb/build does not exist or is not a readable 
directory
at org.apache.naming.resources.FileDirContext.setDocBase(Unknown Source)

Any idea what in the world it would be trying to reference the document base at 
/var/tomcat4/webapps/XXX for?  It should be referencing the document base at 
/home/david/salesweb/build like the manager is sending it...

Any idea what could be causing this?
thanks

RE: Bug ? Init is called twice in SingleThreadModel

2003-07-02 Thread Shapira, Yoav

Howdy,

>The init method of my servlet is called twice if my class implements
the
>SingleThreadModel.
>Full details are given below. If I remove "implements
SingleThreadModel"
>init is called only once - as I would expect.
>
>Is this a bug?
>Any help would be appreciated.

Instead of just printing out "init called" or whatever you did, print
out "init called " + toString() which will have the memory address of
the servlet instance.  This will allow you to see that the instances are
different, i.e. you have two instances of this servlet with init being
called one for each (proper behavior).  If the memory addresses are the
same, that means init called twice for the same servlet, which is bad.

Yoav Shapira



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


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



RE: Sessions sans cookies? URL Rewriting?

2003-07-02 Thread Shapira, Yoav

Howdy,

>Q1: Can Tomcat 4.X do session management if the user's browser is
>rejecting cookies?  If so, how do I do that?  Do I change my code, or
>just server/app configuration?

Yes, via URL rewriting, per the Servlet Specification.

>Q2: If I want to allow my user, John Smith, to use
>http://mycompany.com/johnsmith to access his custom view of my site,
how
>would I do that?

You need to precisely define "access" and "custom view" in the above
question.  The solution depends on your specific app.

>Neither my Apache Jakarta-Tomcat book nor the Valve
>HowTo get into much detail.  I'm thinking I want that URL to convert to
>something like http://mycompany.com/portal?u=johnsmith.  Suggestions,
>examples, outright solutions? :)

A filter that does redirection based on request.getUserPrincipal() is
one option.

Yoav Shapira




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


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



RE: tomcat and log4j

2003-07-02 Thread Shapira, Yoav

Howdy,
These are all log4j questions better suited to that list.  But since the
mutual tomcat/log4j interest is so common, it's alright to keep it here.

Log4j does a classpath resource lookup for /log4j.properties as part of
its default initialization procedure, as documented in the log4j manual.
There's no magic here ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 3:30 PM
>To: Tomcat Users List
>Subject: Re: tomcat and log4j
>
>Did that, don't see any errors. How exactly does log4j know to
>configure itself under tomcat, just by dropping the log4j.properties
>file in the right place???
>
>Shapira, Yoav wrote:
>
>>Howdy,
>>Add -Dlog4j.debug=true to your JAVA_OPTS and check the tomcat logs.
If
>>log4j runs into errors you'll see them there.
>>
>>Yoav Shapira
>>Millennium ChemInformatics
>>
>>
>>
>>
>>>-Original Message-
>>>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
>>>Sent: Wednesday, July 02, 2003 2:34 PM
>>>To: Tomcat Users List
>>>Subject: Re: tomcat and log4j
>>>
>>>OK, so I changed the file to /tmp/xxx.log
>>>and it still does not show up. Any other
>>>suggestions?
>>>
>>>Dean
>>>
>>>Shapira, Yoav wrote:
>>>
>>>
>>>
Howdy,
You're not going to have file write access to xxx.log from inside a


>>war.
>>
>>
Ensure the File parameter for your appender in log4j.properties
points
to a writeable location.

Yoav Shapira
Millennium ChemInformatics






>-Original Message-
>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
>Sent: Monday, June 30, 2003 8:03 PM
>To: Tomcat Users List
>Subject: Re: tomcat and log4j
>
>Thanks for responding. I'm just going by what it says in the log4j
>manual:
>
>"The default log4j initialization is particularly useful in
>
>
>>web-server
>>
>>
>environments. Under Tomcat 3.x and 4.x, you should place the
>|log4j.properties| under the |WEB-INF/classes| directory of your
>web-applications. Log4j will find the properties file and
initialize
>itself. This is easy to do and it works."
>
>I am running jakarta-tomcat-4.1.24 on RH 9 using j2sdk1.4.1_02. I
>
>
>>just
>>
>>
>did a jar tvf on my
>war file, which shows:
>
>[EMAIL PROTECTED] vendor]$ jar tvf build/vendor.war
>   0 Mon Jun 30 03:52:20 EDT 2003 META-INF/
> 110 Mon Jun 30 03:52:20 EDT 2003 META-INF/MANIFEST.MF
>   0 Wed May 14 01:06:28 EDT 2003 images/
>   0 Mon Jun 30 01:48:54 EDT 2003 include/
>   0 Mon Jun 30 13:26:16 EDT 2003 css/
>1210 Wed May 14 01:06:28 EDT 2003 login.jsp
> 485 Fri Jun 27 15:32:30 EDT 2003 welcome.jsp
>3008 Wed May 14 01:06:28 EDT 2003 images/email2.png
>15284 Wed May 14 01:06:28 EDT 2003 images/email.jpg
>1678 Mon Jun 30 02:16:40 EDT 2003 register2.jsp
>6861 Mon Jun 30 01:48:54 EDT 2003 include/contactinfo.jspf
>2287 Wed May 14 01:06:28 EDT 2003 contact.html
> 435 Fri Jun 27 15:38:58 EDT 2003 index.html
> 856 Mon Jun 30 13:25:12 EDT 2003 css/default.css
>1729 Mon Jun 30 01:55:04 EDT 2003 register1.jsp
>1181 Mon Jun 30 01:54:14 EDT 2003 register3.jsp
>   0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/
>   0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/classes/
>3526 Mon Jun 30 02:58:14 EDT 2003 WEB-INF/classes/Login.class
>7268 Mon Jun 30 03:03:26 EDT 2003 WEB-INF/classes/Register.class
> 333 Mon Jun 30 03:00:06 EDT 2003 WEB-INF/classes/log4j.properties
>   0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/lib/
>45386 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/activation.jar
>305434 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/mail.jar
>352668 Wed Jun 25 14:53:02 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar
>97589 Fri May 16 01:45:42 EDT 2003 WEB-INF/lib/universal-common.jar
>12844 Fri Jun 27 03:06:54 EDT 2003 WEB-INF/lib/xxx.jar
>352668 Mon Jun 30 03:52:06 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar
>1800 Wed May 21 09:53:30 EDT 2003 META-INF/context.xml
> 496 Wed May 14 02:08:08 EDT 2003 WEB-INF/web.xml
>
>This is what my log4j.properties file looks like:
>log4j.rootLogger=DEBUG, roll
>
>log4j.appender.roll=org.apache.log4j.RollingFileAppender
>log4j.appender.roll.File=xxx.log
>log4j.appender.roll.MaxFileSize=100KB
>log4j.appender.roll.MaxBackupIndex=1
>log4j.appender.roll.layout=org.apache.log4j.PatternLayout
>log4j.appender.roll.layout.ConversionPattern=%d [%t] %-5p %F:%L -
>
>
>>%m%n
>>
>>
>Everything compiles. I've used log4j in non-web apps. I have log
>
>
>
>
statements




>in my servlet, and I cannot find a log file anywhere. What's up
with
>that???
>
>Yoav Shapira wrote:
>
>
>
>
>
>>Howdy,
>>It does work if you place logj4.properties in WEB-INF/classes and
>>
>>
>>
>>
>log4j.jar in
>
>
>

JspC ClassNotFoundEception on First Run

2003-07-02 Thread Eric Northam
I'm using the JspC task in ant to precompile my jsps and for some reason it
fails with a ClassNotFoundException on the first run but succeeds on the
second. Does anyone know why or how I can resole the issue?


I'm using tomcat 4.1.24 and here's the section in my build.xml that is
failing:


   


 


 

   
  
  

And here's the exception:


jspc:
[jspc2] Jul 2, 2003 12:14:17 PM
org.apache.struts.util.MessageResourcesFactory createFactory
[jspc2] SEVERE: MessageResourcesFactory.createFactory
[jspc2] java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory
[jspc2] at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.jav
a:1076)
[jspc2] at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1037)
[jspc2] at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:926)
[jspc2] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
[jspc2] at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:182)
[jspc2] at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
[jspc2] at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
[jspc2] at
org.apache.struts.util.RequestUtils.(RequestUtils.java:138)
[jspc2] at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
[jspc2] at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
[jspc2] at
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:10
6)
[jspc2] at java.lang.Class.forName0(Native Method)
[jspc2] at java.lang.Class.forName(Class.java:140)
[jspc2] at
org.apache.strutsel.taglib.html.ELRewriteTagBeanInfo.class$(ELRewriteTagBean
Info.java:91)
[jspc2] at
org.apache.strutsel.taglib.html.ELRewriteTagBeanInfo.getPropertyDescriptors(
ELRewriteTagBeanInfo.java:91)
[jspc2] at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:436)
[jspc2] at
java.beans.Introspector.getBeanInfo(Introspector.java:372)
[jspc2] at
java.beans.Introspector.getBeanInfo(Introspector.java:144)
[jspc2] at
org.apache.jasper.compiler.Generator$TagHandlerInfo.(Generator.java:19
46)
[jspc2] at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:10
93)
[jspc2] at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:707)
[jspc2] at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
[jspc2] at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
[jspc2] at
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
[jspc2] at
org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
[jspc2] at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
[jspc2] at
org.apache.jasper.compiler.Generator.generate(Generator.java:1917)
[jspc2] at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:242)
[jspc2] at org.apache.jasper.JspC.processFile(JspC.java:573)
[jspc2] at org.apache.jasper.JspC.execute(JspC.java:801)
[jspc2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[jspc2] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
[jspc2] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
[jspc2] at java.lang.reflect.Method.invoke(Method.java:324)
[jspc2] at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
[jspc2] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
[jspc2] at org.apache.tools.ant.Task.perform(Task.java:319)
[jspc2] at org.apache.tools.ant.Target.execute(Target.java:309)
[jspc2] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[jspc2] at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[jspc2] at
org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[jspc2] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[jspc2] at org.apache.tools.ant.Main.start(Main.java:196)
[jspc2] at org.apache.tools.ant.Main.main(Main.java:235)
[jspc2] Jul 2, 2003 12:14:17 PM
org.apache.struts.util.MessageResourcesFactory createFactory
[jspc2] SEVERE: MessageResourcesFactory.createFactory
[jspc2] java.lang.ExceptionInInitializerError
[jspc2] at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
[jspc2] at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
[jspc2] at
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:10
6)
[jspc2] at java.lang.Class.forName0(Native Method)
[jspc2] at java.lang.Class.

Bug ? Init is called twice in SingleThreadModel

2003-07-02 Thread Hal Lander
The init method of my servlet is called twice if my class implements the 
SingleThreadModel.
Full details are given below. If I remove "implements SingleThreadModel" 
init is called only once - as I would expect.

Is this a bug?
Any help would be appreciated.
Hal.



THE SOURCE CODE

import javax.servlet.http.HttpServlet;
import javax.servlet.SingleThreadModel;
public class x extends HttpServlet implements SingleThreadModel
//
{
public void init()
//
{
System.out.println("init called");
return;
}
}
URL USED TO INVOKE SERVLET
==
http://localhost:8080/examples/servlet/x


OUTPUT IN "START TOMCAT" WINDOW
===
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Starting service Tomcat-Apache
Apache Tomcat/4.0.4
init called
init called
localhost_examples_log.2003-06-27.txt
=
2003-06-27 11:39:09 WebappLoader[/examples]: Deploying class repositories to 
work directory C:\Program Files\Apache Tomcat 
4.0\work\Standalone\localhost\examples
2003-06-27 11:39:09 WebappLoader[/examples]: Deploy JAR 
/WEB-INF/lib/httpclient.jar to C:\Program Files\Apache Tomcat 
4.0\webapps\examples\WEB-INF\lib\httpclient.jar
2003-06-27 11:39:09 WebappLoader[/examples]: Deploy JAR 
/WEB-INF/lib/logging.jar to C:\Program Files\Apache Tomcat 
4.0\webapps\examples\WEB-INF\lib\logging.jar
2003-06-27 11:39:09 WebappLoader[/examples]: Reloading checks are enabled 
for this Context
2003-06-27 11:39:09 StandardManager[/examples]: Seeding random number 
generator class java.security.SecureRandom
2003-06-27 11:39:09 StandardManager[/examples]: Seeding of random number 
generator has been completed
2003-06-27 11:39:09 ContextConfig[/examples]: Added certificates -> request 
attribute Valve
2003-06-27 11:39:09 ContextConfig[/examples]: Configured an authenticator 
for method FORM
2003-06-27 11:39:09 ContextListener: contextInitialized()
2003-06-27 11:39:09 SessionListener: contextInitialized()
2003-06-27 11:39:09 ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1f6226')
2003-06-27 11:39:09 StandardWrapper[/examples:default]: Loading container 
servlet default
2003-06-27 11:39:09 default: init 2003-06-27 11:39:09 
StandardWrapper[/examples:invoker]: Loading container servlet invoker
2003-06-27 11:39:09 invoker: init 2003-06-27 11:39:09 jsp: init 2003-06-27 
11:39:45 org.apache.catalina.INVOKER.x: init
2003-06-27 11:39:45 org.apache.catalina.INVOKER.x: init
2003-06-27 11:39:45 InvokerFilter(ApplicationFilterConfig[name=Servlet 
Mapped Filter, filterClass=filters.ExampleFilter]): 20 milliseconds
2003-06-27 11:39:45 InvokerFilter(ApplicationFilterConfig[name=Path Mapped 
Filter, filterClass=filters.ExampleFilter]): 20 milliseconds
2003-06-27 11:40:04 SessionListener: contextDestroyed() 2003-06-27 11:40:04 
ContextListener: contextDestroyed()
2003-06-27 11:40:04 org.apache.catalina.INVOKER.x: destroy 2003-06-27 
11:40:04 org.apache.catalina.INVOKER.x: destroy

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


Sessions sans cookies? URL Rewriting?

2003-07-02 Thread Michael Teter
Howdy.

I have two questions.  Note that I have made effort to find answers in 
archives but haven't found what I think I need.

Q1: Can Tomcat 4.X do session management if the user's browser is 
rejecting cookies?  If so, how do I do that?  Do I change my code, or 
just server/app configuration?

Q2: If I want to allow my user, John Smith, to use 
http://mycompany.com/johnsmith to access his custom view of my site, how 
would I do that?  Neither my Apache Jakarta-Tomcat book nor the Valve 
HowTo get into much detail.  I'm thinking I want that URL to convert to 
something like http://mycompany.com/portal?u=johnsmith.  Suggestions, 
examples, outright solutions? :)

Thanks much.

Michael Teter

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


Re: tomcat and log4j

2003-07-02 Thread Dean A. Hoover
Did that, don't see any errors. How exactly does log4j know to
configure itself under tomcat, just by dropping the log4j.properties
file in the right place???
Shapira, Yoav wrote:

Howdy,
Add -Dlog4j.debug=true to your JAVA_OPTS and check the tomcat logs.  If
log4j runs into errors you'll see them there.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: tomcat and log4j
OK, so I changed the file to /tmp/xxx.log
and it still does not show up. Any other
suggestions?
Dean

Shapira, Yoav wrote:

   

Howdy,
You're not going to have file write access to xxx.log from inside a
 

war.
 

Ensure the File parameter for your appender in log4j.properties points
to a writeable location.
Yoav Shapira
Millennium ChemInformatics


 

-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 8:03 PM
To: Tomcat Users List
Subject: Re: tomcat and log4j
Thanks for responding. I'm just going by what it says in the log4j
manual:
"The default log4j initialization is particularly useful in
   

web-server
 

environments. Under Tomcat 3.x and 4.x, you should place the
|log4j.properties| under the |WEB-INF/classes| directory of your
web-applications. Log4j will find the properties file and initialize
itself. This is easy to do and it works."
I am running jakarta-tomcat-4.1.24 on RH 9 using j2sdk1.4.1_02. I
   

just
 

did a jar tvf on my
war file, which shows:
[EMAIL PROTECTED] vendor]$ jar tvf build/vendor.war
  0 Mon Jun 30 03:52:20 EDT 2003 META-INF/
110 Mon Jun 30 03:52:20 EDT 2003 META-INF/MANIFEST.MF
  0 Wed May 14 01:06:28 EDT 2003 images/
  0 Mon Jun 30 01:48:54 EDT 2003 include/
  0 Mon Jun 30 13:26:16 EDT 2003 css/
1210 Wed May 14 01:06:28 EDT 2003 login.jsp
485 Fri Jun 27 15:32:30 EDT 2003 welcome.jsp
3008 Wed May 14 01:06:28 EDT 2003 images/email2.png
15284 Wed May 14 01:06:28 EDT 2003 images/email.jpg
1678 Mon Jun 30 02:16:40 EDT 2003 register2.jsp
6861 Mon Jun 30 01:48:54 EDT 2003 include/contactinfo.jspf
2287 Wed May 14 01:06:28 EDT 2003 contact.html
435 Fri Jun 27 15:38:58 EDT 2003 index.html
856 Mon Jun 30 13:25:12 EDT 2003 css/default.css
1729 Mon Jun 30 01:55:04 EDT 2003 register1.jsp
1181 Mon Jun 30 01:54:14 EDT 2003 register3.jsp
  0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/
  0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/classes/
3526 Mon Jun 30 02:58:14 EDT 2003 WEB-INF/classes/Login.class
7268 Mon Jun 30 03:03:26 EDT 2003 WEB-INF/classes/Register.class
333 Mon Jun 30 03:00:06 EDT 2003 WEB-INF/classes/log4j.properties
  0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/lib/
45386 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/activation.jar
305434 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/mail.jar
352668 Wed Jun 25 14:53:02 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar
97589 Fri May 16 01:45:42 EDT 2003 WEB-INF/lib/universal-common.jar
12844 Fri Jun 27 03:06:54 EDT 2003 WEB-INF/lib/xxx.jar
352668 Mon Jun 30 03:52:06 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar
1800 Wed May 21 09:53:30 EDT 2003 META-INF/context.xml
496 Wed May 14 02:08:08 EDT 2003 WEB-INF/web.xml
This is what my log4j.properties file looks like:
log4j.rootLogger=DEBUG, roll
log4j.appender.roll=org.apache.log4j.RollingFileAppender
log4j.appender.roll.File=xxx.log
log4j.appender.roll.MaxFileSize=100KB
log4j.appender.roll.MaxBackupIndex=1
log4j.appender.roll.layout=org.apache.log4j.PatternLayout
log4j.appender.roll.layout.ConversionPattern=%d [%t] %-5p %F:%L -
   

%m%n
 

Everything compiles. I've used log4j in non-web apps. I have log

   

statements

 

in my servlet, and I cannot find a log file anywhere. What's up with
that???
Yoav Shapira wrote:



   

Howdy,
It does work if you place logj4.properties in WEB-INF/classes and
 

log4j.jar in

   

WEB-INF/lib.  If you could please be a bit more explicity when you
 

say
 

 

"This

   

does not seem to be working" perhaps I could help more.

Yoav Shapira

--- "Dean A. Hoover" <[EMAIL PROTECTED]> wrote:



 

I want to use log4j inside a tomcat application. According
to the log4j short manual, all I have to do is drop my
log4j.properties file into WEB-INF/classes and then I can
just use it. This does not seem to be working. Can someone
help?
Thanks.

Dean Hoover

---
   

--
 

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

[EMAIL PROTECTED]
 



   

=
Yoav Shapira
[EMAIL PROTECTED]
__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

 

-
 

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




 

-
To

How to get the container within an instance event?

2003-07-02 Thread Angus Mezick
Does anyone know how to access the container object from an instance
event?  Are there any specs that say an instance event can have no
internal access to the server? 

Sorry for the cross post but I am deep into the internals of tomcat here
and I don't know which list is appropriate.  The list with "how do I
change the default port" type q's or the one that debates how features
should be implemented.

Angus Mezick
GuideStar - Philanthropic Research Inc.
427 Scotland St.
Williamsburg, Virginia 23185
PHONE: (757)299-4631 x35  FAX:(757)229-8912
[EMAIL PROTECTED] 
www.guidestar.org 

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



Re: Tiomcat 4.1.24 HTTP Status 404 - The requested resource (servlet)is not available

2003-07-02 Thread Eric J. Pinnell
Hi,

Around Tomcat 4.1.12 the servlet invoker was disabled by default expect
for the examples.  In previous versions in was enabled.

You need to enable it for your application.

-e

On Wed, 2 Jul 2003, John Bell wrote:

> I have Tomcat 4.02 working using servlets and JSP and have now installed
> Tomcat 4.1.24 as a service.
>
> When I run the web site all is fine until a servlet is called and I get
>  The requested resource (/coffeemy/servlet/ControlServlet) is not available
>
> this happens with all the servlets I use.
>
> Any suggestions please.
>
> John
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Tiomcat 4.1.24 HTTP Status 404 - The requested resource (servlet) is not available

2003-07-02 Thread John Turner
FAQ

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

On Wed, 2 Jul 2003 20:10:06 +0100, John Bell <[EMAIL PROTECTED]> wrote:

I have Tomcat 4.02 working using servlets and JSP and have now installed
Tomcat 4.1.24 as a service.
When I run the web site all is fine until a servlet is called and I get
The requested resource (/coffeemy/servlet/ControlServlet) is not 
available

this happens with all the servlets I use.

Any suggestions please.

John

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



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


Tiomcat 4.1.24 HTTP Status 404 - The requested resource (servlet) is not available

2003-07-02 Thread John Bell
I have Tomcat 4.02 working using servlets and JSP and have now installed
Tomcat 4.1.24 as a service.

When I run the web site all is fine until a servlet is called and I get
 The requested resource (/coffeemy/servlet/ControlServlet) is not available

this happens with all the servlets I use.

Any suggestions please.

John


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



RE: How to synchronize based on session? (Prevent multiple submissions of forms)

2003-07-02 Thread Raiden


On Wed, 2 Jul 2003, Stefan Radzom wrote:
> > -Original Message-
> > From: Raiden [mailto:[EMAIL PROTECTED]
> > Subject: RE: How to synchronize based on session? (Prevent
> > multiple submissions of forms)
> >
> > On Wed, 2 Jul 2003, Stefan Radzom wrote:
> >
> > > > >IMHO, Justin's proposal will not work since the servlet
> > > > container may choose
> > > > >to pool multiple instances of the same servlet class and
> > > > assign an incoming
> > > > >request to an available instance.
> > > >
> > > > Agreed. If the container chooses to pool multiple instances
> > > > of the same
> > > > servlet (I'm assuming this can be the case with Tomcat?),
> > > > then you're right
> > > > -- it won't work.
> > > >
> > >
> > > Sorry, I was a bit too fast here. The spec allows pooling
> > of instances only
> > > if the servlet implements SingleThreadModel. If the class
> > does not implement
> > > STM only one instance per jvm is allowed.
> >
> > Hrm... I always thought this was opposite of what happens.  I
> > thought we
> > should always assume that there will be multiple instances of of our
> > servlet in existance (for purposes of pooling), and as such,
> > our service
> > methods must take that into account.
> >
>
> Just to clarify some things. If your servlet _does not_ implement STM there
> will be only one instance per jvm. However, there will be no bottleneck
> since multiple threads may execute in the service method at a time.
>
> If your servlet instead _does_ implement STM you are guaranteed that only
> one thread will execute in the service method at a time. To compensate for
> this bottleneck pooling of instance is allowed.
>
> Viewed from this perspective the spec absoultely does make sense.
>
> -Stefan
>

Thank you for the clarification!  I understand now.

-Raiden

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



Re: How to compile mod_jk2.c

2003-07-02 Thread Eric J. Pinnell
Hi,

If you dl'd the source and built it sucessfully you will have the finished
product, mod_jk2.so, in the build directory.  It's a DSO.  So you would
copy that to the apache modules directory and load it in the httpd.conf
file.

-e

On Wed, 2 Jul 2003, [ISO-8859-1] Thomas Gagné wrote:

> I downloaded the connector stuff and it anted fine, but I can't locate
> the instructions on how to include mod_jk2.c into Apache 2's compile.
>  Where is that hidden?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



How to compile mod_jk2.c

2003-07-02 Thread Thomas Gagné
I downloaded the connector stuff and it anted fine, but I can't locate 
the instructions on how to include mod_jk2.c into Apache 2's compile. 
Where is that hidden?

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


RE: tomcat and log4j

2003-07-02 Thread Shapira, Yoav

Howdy,
Add -Dlog4j.debug=true to your JAVA_OPTS and check the tomcat logs.  If
log4j runs into errors you'll see them there.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 2:34 PM
>To: Tomcat Users List
>Subject: Re: tomcat and log4j
>
>OK, so I changed the file to /tmp/xxx.log
>and it still does not show up. Any other
>suggestions?
>
>Dean
>
>Shapira, Yoav wrote:
>
>>Howdy,
>>You're not going to have file write access to xxx.log from inside a
war.
>>Ensure the File parameter for your appender in log4j.properties points
>>to a writeable location.
>>
>>Yoav Shapira
>>Millennium ChemInformatics
>>
>>
>>
>>
>>>-Original Message-
>>>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
>>>Sent: Monday, June 30, 2003 8:03 PM
>>>To: Tomcat Users List
>>>Subject: Re: tomcat and log4j
>>>
>>>Thanks for responding. I'm just going by what it says in the log4j
>>>manual:
>>>
>>>"The default log4j initialization is particularly useful in
web-server
>>>environments. Under Tomcat 3.x and 4.x, you should place the
>>>|log4j.properties| under the |WEB-INF/classes| directory of your
>>>web-applications. Log4j will find the properties file and initialize
>>>itself. This is easy to do and it works."
>>>
>>>I am running jakarta-tomcat-4.1.24 on RH 9 using j2sdk1.4.1_02. I
just
>>>did a jar tvf on my
>>>war file, which shows:
>>>
>>>[EMAIL PROTECTED] vendor]$ jar tvf build/vendor.war
>>>0 Mon Jun 30 03:52:20 EDT 2003 META-INF/
>>>  110 Mon Jun 30 03:52:20 EDT 2003 META-INF/MANIFEST.MF
>>>0 Wed May 14 01:06:28 EDT 2003 images/
>>>0 Mon Jun 30 01:48:54 EDT 2003 include/
>>>0 Mon Jun 30 13:26:16 EDT 2003 css/
>>> 1210 Wed May 14 01:06:28 EDT 2003 login.jsp
>>>  485 Fri Jun 27 15:32:30 EDT 2003 welcome.jsp
>>> 3008 Wed May 14 01:06:28 EDT 2003 images/email2.png
>>>15284 Wed May 14 01:06:28 EDT 2003 images/email.jpg
>>> 1678 Mon Jun 30 02:16:40 EDT 2003 register2.jsp
>>> 6861 Mon Jun 30 01:48:54 EDT 2003 include/contactinfo.jspf
>>> 2287 Wed May 14 01:06:28 EDT 2003 contact.html
>>>  435 Fri Jun 27 15:38:58 EDT 2003 index.html
>>>  856 Mon Jun 30 13:25:12 EDT 2003 css/default.css
>>> 1729 Mon Jun 30 01:55:04 EDT 2003 register1.jsp
>>> 1181 Mon Jun 30 01:54:14 EDT 2003 register3.jsp
>>>0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/
>>>0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/classes/
>>> 3526 Mon Jun 30 02:58:14 EDT 2003 WEB-INF/classes/Login.class
>>> 7268 Mon Jun 30 03:03:26 EDT 2003 WEB-INF/classes/Register.class
>>>  333 Mon Jun 30 03:00:06 EDT 2003 WEB-INF/classes/log4j.properties
>>>0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/lib/
>>>45386 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/activation.jar
>>>305434 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/mail.jar
>>>352668 Wed Jun 25 14:53:02 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar
>>>97589 Fri May 16 01:45:42 EDT 2003 WEB-INF/lib/universal-common.jar
>>>12844 Fri Jun 27 03:06:54 EDT 2003 WEB-INF/lib/xxx.jar
>>>352668 Mon Jun 30 03:52:06 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar
>>> 1800 Wed May 21 09:53:30 EDT 2003 META-INF/context.xml
>>>  496 Wed May 14 02:08:08 EDT 2003 WEB-INF/web.xml
>>>
>>>This is what my log4j.properties file looks like:
>>>log4j.rootLogger=DEBUG, roll
>>>
>>>log4j.appender.roll=org.apache.log4j.RollingFileAppender
>>>log4j.appender.roll.File=xxx.log
>>>log4j.appender.roll.MaxFileSize=100KB
>>>log4j.appender.roll.MaxBackupIndex=1
>>>log4j.appender.roll.layout=org.apache.log4j.PatternLayout
>>>log4j.appender.roll.layout.ConversionPattern=%d [%t] %-5p %F:%L -
%m%n
>>>
>>>Everything compiles. I've used log4j in non-web apps. I have log
>>>
>>>
>>statements
>>
>>
>>>in my servlet, and I cannot find a log file anywhere. What's up with
>>>that???
>>>
>>>Yoav Shapira wrote:
>>>
>>>
>>>
Howdy,
It does work if you place logj4.properties in WEB-INF/classes and


>>>log4j.jar in
>>>
>>>
WEB-INF/lib.  If you could please be a bit more explicity when you
say


>>>"This
>>>
>>>
does not seem to be working" perhaps I could help more.

Yoav Shapira

--- "Dean A. Hoover" <[EMAIL PROTECTED]> wrote:




>I want to use log4j inside a tomcat application. According
>to the log4j short manual, all I have to do is drop my
>log4j.properties file into WEB-INF/classes and then I can
>just use it. This does not seem to be working. Can someone
>help?
>
>Thanks.
>
>Dean Hoover
>
>
>---
--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail:
[EMAIL PROTECTED]
>
>
>
>
>
=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-
To unsubscribe, e-mail: [E

Re: tomcat and log4j

2003-07-02 Thread Dean A. Hoover
OK, so I changed the file to /tmp/xxx.log
and it still does not show up. Any other
suggestions?
Dean

Shapira, Yoav wrote:

Howdy,
You're not going to have file write access to xxx.log from inside a war.
Ensure the File parameter for your appender in log4j.properties points
to a writeable location.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 8:03 PM
To: Tomcat Users List
Subject: Re: tomcat and log4j
Thanks for responding. I'm just going by what it says in the log4j
manual:
"The default log4j initialization is particularly useful in web-server
environments. Under Tomcat 3.x and 4.x, you should place the
|log4j.properties| under the |WEB-INF/classes| directory of your
web-applications. Log4j will find the properties file and initialize
itself. This is easy to do and it works."
I am running jakarta-tomcat-4.1.24 on RH 9 using j2sdk1.4.1_02. I just
did a jar tvf on my
war file, which shows:
[EMAIL PROTECTED] vendor]$ jar tvf build/vendor.war
   0 Mon Jun 30 03:52:20 EDT 2003 META-INF/
 110 Mon Jun 30 03:52:20 EDT 2003 META-INF/MANIFEST.MF
   0 Wed May 14 01:06:28 EDT 2003 images/
   0 Mon Jun 30 01:48:54 EDT 2003 include/
   0 Mon Jun 30 13:26:16 EDT 2003 css/
1210 Wed May 14 01:06:28 EDT 2003 login.jsp
 485 Fri Jun 27 15:32:30 EDT 2003 welcome.jsp
3008 Wed May 14 01:06:28 EDT 2003 images/email2.png
15284 Wed May 14 01:06:28 EDT 2003 images/email.jpg
1678 Mon Jun 30 02:16:40 EDT 2003 register2.jsp
6861 Mon Jun 30 01:48:54 EDT 2003 include/contactinfo.jspf
2287 Wed May 14 01:06:28 EDT 2003 contact.html
 435 Fri Jun 27 15:38:58 EDT 2003 index.html
 856 Mon Jun 30 13:25:12 EDT 2003 css/default.css
1729 Mon Jun 30 01:55:04 EDT 2003 register1.jsp
1181 Mon Jun 30 01:54:14 EDT 2003 register3.jsp
   0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/
   0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/classes/
3526 Mon Jun 30 02:58:14 EDT 2003 WEB-INF/classes/Login.class
7268 Mon Jun 30 03:03:26 EDT 2003 WEB-INF/classes/Register.class
 333 Mon Jun 30 03:00:06 EDT 2003 WEB-INF/classes/log4j.properties
   0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/lib/
45386 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/activation.jar
305434 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/mail.jar
352668 Wed Jun 25 14:53:02 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar
97589 Fri May 16 01:45:42 EDT 2003 WEB-INF/lib/universal-common.jar
12844 Fri Jun 27 03:06:54 EDT 2003 WEB-INF/lib/xxx.jar
352668 Mon Jun 30 03:52:06 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar
1800 Wed May 21 09:53:30 EDT 2003 META-INF/context.xml
 496 Wed May 14 02:08:08 EDT 2003 WEB-INF/web.xml
This is what my log4j.properties file looks like:
log4j.rootLogger=DEBUG, roll
log4j.appender.roll=org.apache.log4j.RollingFileAppender
log4j.appender.roll.File=xxx.log
log4j.appender.roll.MaxFileSize=100KB
log4j.appender.roll.MaxBackupIndex=1
log4j.appender.roll.layout=org.apache.log4j.PatternLayout
log4j.appender.roll.layout.ConversionPattern=%d [%t] %-5p %F:%L - %m%n
Everything compiles. I've used log4j in non-web apps. I have log
   

statements
 

in my servlet, and I cannot find a log file anywhere. What's up with
that???
Yoav Shapira wrote:

   

Howdy,
It does work if you place logj4.properties in WEB-INF/classes and
 

log4j.jar in
   

WEB-INF/lib.  If you could please be a bit more explicity when you say
 

"This
   

does not seem to be working" perhaps I could help more.

Yoav Shapira

--- "Dean A. Hoover" <[EMAIL PROTECTED]> wrote:

 

I want to use log4j inside a tomcat application. According
to the log4j short manual, all I have to do is drop my
log4j.properties file into WEB-INF/classes and then I can
just use it. This does not seem to be working. Can someone
help?
Thanks.

Dean Hoover

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


   

=
Yoav Shapira
[EMAIL PROTECTED]
__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

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





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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
F

Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP withmod_jk)

2003-07-02 Thread Eric J. Pinnell
Hi,

ya... you are right.  At least on most systems this works.  Not sure about
Linux and it's "special" apache.  But typically:

./configure --with-apxs2=/path/to/apache/bin/apxs
make

I don't use ant either.

-e

On Wed, 2 Jul 2003, John Turner wrote:

>
> I never use ant, only because it is unfamiliar to me.
>
> I believe that the standard configure, make, make install works, except
> that with RH 8 and RH Apache 2.0.40 you need to explicitly declare the
> location of apxs top configure.  I'm just saying this from memory, I don't
> use either, so I could have it wrong.
>
> John
>
> On Wed, 02 Jul 2003 19:00:53 +0100, Yishay Mor <[EMAIL PROTECTED]> wrote:
>
> > I tried building it. Maybe I got it wrong  - I was using the ant scripts,
> > and got into deep mud.  I saw a posting somewhere that you have to us e
> > the native make scripts, and tweak them a bit to work.
> >
> > John Turner wrote:
> >
> >>
> >> Actually, there was a post on this last week.  Check the archives.  RH's
> >> munged Apache requires some sort of tweak to the OS that will effect the
> >> scoreboard when using JK2.
> >>
> >> I don't use JK, RH 8, nor RH's Apache, so I didn't really pay attention
> >> to what the solution was.  It was definitely within the last two weeks.
> >>
> >> The alternative is to just build JK from source and use that...it would
> >> probably be a lot less hassle.
> >>
> >> John
> >>
> >> On Wed, 2 Jul 2003 13:41:22 -0400 (EDT), Eric J. Pinnell <[EMAIL PROTECTED]>
> >> wrote:
> >>
> >>> I think JkSet config.file needs a full path.  You can't short cut it
> >>> like
> >>> you can with a LoadModule.
> >>>
> >>> JkSet config.file /path/to/apache/conf/workers2.properties.
> >>>
> >>> I think right now it's not seeing your config file.
> >>>
> >>> Dunno...  try it.
> >>>
> >>> -e
> >>>
> >>> On Wed, 2 Jul 2003, Yishay Mor wrote:
> >>>
>  I've read the thread(s), gone through the jakarta docs, read a dozen
>  how-tos, still no go.
> 
>  Platform:
>  
>  * RedHat 8, with its -
>  * custom Apache (2.0.4 w/ modifications?)
>  * Tomcat 4.1
>  * mod_jk2  binaries for RH from
>  http://www.jpackage.org/rpm.php?id=1133
> 
>  Situation:
>  ===
>  Tomcat works, on 8080 (although the  admin app is bogus, but that's on
>  another thread)
>  Apache identifies mod_jk2, but then fails on
>  [error] shm.init(): No file
>  [error] jk2_init() Can't find child 3993 in scoreboard
> 
>  I've actually managed to hook them up using ProxyPass, but that's too
>  crude a hack to satisfy me,
> 
>  Analysis
>  ==
>  If  I could get the shm to work, my life will be given back to me.
> 
>  I've cut & paste relevant sections of our config files on the admin
>  wiki:
>  http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch
> 
>  Here's a summary:
>   httpd.conf: ---
>  LoadModule jk2_module modules/mod_jk2.so
>  JkSet config.file conf/workers2.properties
> 
>   jk2.properties: ---
>  handler.list=channelSocket,request
>  channelSocket.port=8009
>  shm.file=/etc/httpd/logs/jk2.shm
> 
>  --- workers2.properties: -
>  [shm]
>  file=/etc/httpd/logs/shm.file
>  size=1048576
> 
>  # Example socket channel, override port and host.
>  [channel.socket:localhost:8009]
>  port=8009
>  host=localhost
> 
>  # define the worker
>  [ajp13:localhost:8009]
>  channel=channel.socket:localhost:8009
> 
>  # Uri mapping
>  [uri:*.jsp]
>  worker=ajp13:localhost:8009
> 
>  # Map the Tomcat examples webapp to the Web server uri space
>  [uri:/examples/*]
>  info=Map the whole webapp worker=ajp13:localhost:8009
> 
> 
>  --- server.xml: 
> 
>  
>    port="8009" minProcessors="5" maxProcessors="75"
>  enableLookups="true" redirectPort="8443"
>  acceptCount="10" debug="0" connectionTimeout="20"
>  useURIValidationHack="false"
>  protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> 
>  
> 
>    port="8007" minProcessors="5" maxProcessors="75"
>  acceptCount="10" debug="0"/>
> 
> 
>  -- error.log 
> 
>  [error] shm.init(): No file
>  [error] jk2_init() Can't find child 3993 in scoreboard
>  [error] shm.init(): No file
>  [error] mod_jk child init 1 -2
>  [error] jk2_init() Can't find child 3994 in scoreboard
>  :
>  [error] mod_jk child init 1 -2
>  [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal
>  operations
> 
> 
>  - Yishay
> 
>  --
>  **
>  Yishay Mor
>  http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
>  [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 761

Re: RE: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread John Turner
Change port in server.xml from 8080 to 80.

Restart Tomcat.

John

On Wed, 2 Jul 2003 14:14:28 -0400, <[EMAIL PROTECTED]> wrote:

Hello,
I'm a new to Tomcat and trying to set up a web server with
www.mywebname.com. But when I try to access my homepage from other
computers, I have to type exactly http://www.mywebname.com:(port number) 
to
be able to get it, or I'll get error otherwise.
I'd like to learn, the very first thing about Tomcat, how to configure
the server so that people can access the page by  typing  in only
www.mywebname.com ( without the port number ).
Please teach me.
Thank you.



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



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


Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread John Turner
I never use ant, only because it is unfamiliar to me.

I believe that the standard configure, make, make install works, except 
that with RH 8 and RH Apache 2.0.40 you need to explicitly declare the 
location of apxs top configure.  I'm just saying this from memory, I don't 
use either, so I could have it wrong.

John

On Wed, 02 Jul 2003 19:00:53 +0100, Yishay Mor <[EMAIL PROTECTED]> wrote:

I tried building it. Maybe I got it wrong  - I was using the ant scripts, 
and got into deep mud.  I saw a posting somewhere that you have to us e 
the native make scripts, and tweak them a bit to work.

John Turner wrote:

Actually, there was a post on this last week.  Check the archives.  RH's 
munged Apache requires some sort of tweak to the OS that will effect the 
scoreboard when using JK2.

I don't use JK, RH 8, nor RH's Apache, so I didn't really pay attention 
to what the solution was.  It was definitely within the last two weeks.

The alternative is to just build JK from source and use that...it would 
probably be a lot less hassle.

John

On Wed, 2 Jul 2003 13:41:22 -0400 (EDT), Eric J. Pinnell <[EMAIL PROTECTED]> 
wrote:

I think JkSet config.file needs a full path.  You can't short cut it 
like
you can with a LoadModule.

JkSet config.file /path/to/apache/conf/workers2.properties.

I think right now it's not seeing your config file.

Dunno...  try it.

-e

On Wed, 2 Jul 2003, Yishay Mor wrote:

I've read the thread(s), gone through the jakarta docs, read a dozen
how-tos, still no go.
Platform:

* RedHat 8, with its -
* custom Apache (2.0.4 w/ modifications?)
* Tomcat 4.1
* mod_jk2  binaries for RH from 
http://www.jpackage.org/rpm.php?id=1133

Situation:
===
Tomcat works, on 8080 (although the  admin app is bogus, but that's on
another thread)
Apache identifies mod_jk2, but then fails on
[error] shm.init(): No file
[error] jk2_init() Can't find child 3993 in scoreboard
I've actually managed to hook them up using ProxyPass, but that's too
crude a hack to satisfy me,
Analysis
==
If  I could get the shm to work, my life will be given back to me.
I've cut & paste relevant sections of our config files on the admin 
wiki:
http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch

Here's a summary:
 httpd.conf: ---
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file conf/workers2.properties
 jk2.properties: ---
handler.list=channelSocket,request
channelSocket.port=8009
shm.file=/etc/httpd/logs/jk2.shm
--- workers2.properties: -
[shm]
file=/etc/httpd/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=localhost
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:*.jsp]
worker=ajp13:localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp worker=ajp13:localhost:8009
--- server.xml: 






-- error.log 

[error] shm.init(): No file
[error] jk2_init() Can't find child 3993 in scoreboard
[error] shm.init(): No file
[error] mod_jk child init 1 -2
[error] jk2_init() Can't find child 3994 in scoreboard
:
[error] mod_jk child init 1 -2
[notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal
operations
- Yishay

--
**
Yishay Mor
http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
[EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964
AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ: 179772099
If this helped you, please take the time to rate the value of this 
post:
http://svcs.affero.net/rm.php?r=yishaym
**
celebrating 100 years of excellence in education
www.ioe.ac.uk/centenary



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

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







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


RE: Starting a sevlet automatically when Tomcat starts

2003-07-02 Thread Shapira, Yoav

Howdy,

>From the DTD:
>The optional contents of these element must be an integer
>indicating the order in which the servlet should be loaded.
>If the value is a negative integer, or the element is not
>present, the container is free to load the servlet whenever
>it chooses.
>
>So, Tomcat developers.. what does Tomcat do with an empty tag ?

A missing or non-numeric value is converted to a zero.

Yoav Shapira



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


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



Re: undefined symbol: apr_md5_final

2003-07-02 Thread chipheo
Hello,
I'm a new to Tomcat and trying to set up a web server with
www.mywebname.com. But when I try to access my homepage from other
computers, I have to type exactly http://www.mywebname.com:(port number) to
be able to get it, or I'll get error otherwise.
   I'd like to learn, the very first thing about Tomcat, how to configure
the server so that people can access the page by  typing  in only
www.mywebname.com ( without the port number ).
Please teach me.
Thank you.



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



Re: RE: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread chipheo
Hello,
I'm a new to Tomcat and trying to set up a web server with
www.mywebname.com. But when I try to access my homepage from other
computers, I have to type exactly http://www.mywebname.com:(port number) to
be able to get it, or I'll get error otherwise.
   I'd like to learn, the very first thing about Tomcat, how to configure
the server so that people can access the page by  typing  in only
www.mywebname.com ( without the port number ).
Please teach me.
Thank you.



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



Re: AW: Starting a sevlet automatically when Tomcat starts

2003-07-02 Thread chipheo
Hello,
I'm a new to Tomcat and trying to set up a web server with
www.mywebname.com. But when I try to access my homepage from other
computers, I have to type exactly http://www.mywebname.com:(port number) to
be able to get it, or I'll get error otherwise.
   I'd like to learn, the very first thing about Tomcat, how to configure
the server so that people can access the page by  typing  in only
www.mywebname.com ( without the port number ).
Please teach me.
Thank you.



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



Re: RE: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread chipheo
Hello,
I'm a new to Tomcat and trying to set up a web server with
www.mywebname.com. But when I try to access my homepage from other
computers, I have to type exactly http://www.mywebname.com:(port number) to
be able to get it, or I'll get error otherwise.
   I'd like to learn, the very first thing about Tomcat, how to configure
the server so that people can access the page by  typing  in only
www.mywebname.com ( without the port number ).
Please teach me.
Thank you.



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



Re: RE: Insufficient quota

2003-07-02 Thread chipheo
Hello,
I'm a new to Tomcat and trying to set up a web server with
www.mywebname.com. But when I try to access my homepage from other
computers, I have to type exactly http://www.mywebname.com:(port number) to
be able to get it, or I'll get error otherwise.
   I'd like to learn, the very first thing about Tomcat, how to configure
the server so that people can access the page by  typing  in only
www.mywebname.com ( without the port number ).
Please teach me.
Thank you.



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



Re: Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread chipheo
Hello,
I'm a new to Tomcat and trying to set up a web server with
www.mywebname.com. But when I try to access my homepage from other
computers, I have to type exactly http://www.mywebname.com:(port number) to
be able to get it, or I'll get error otherwise.
   I'd like to learn, the very first thing about Tomcat, how to configure
the server so that people can access the page by  typing  in only
www.mywebname.com ( without the port number ).
Please teach me.
Thank you.



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



Re: RE: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread chipheo
Hello,
I'm a new to Tomcat and trying to set up a web server with
www.mywebname.com. But when I try to access my homepage from other
computers, I have to type exactly http://www.mywebname.com:(port number) to
be able to get it, or I'll get error otherwise.
   I'd like to learn, the very first thing about Tomcat, how to configure
the server so that people can access the page by  typing  in only
www.mywebname.com ( without the port number ).
Please teach me.
Thank you.



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



undefined symbol: apr_md5_final

2003-07-02 Thread Atreya Basu
My Tomcat works well but in the Catalina.out file I get the following
error:

INFO: APR not loaded, disabling jni components: java.io.IOException:
/usr/local/apache2/modules/jkjni.so:
/usr/local/apache2/modules/jkjni.so: undefined symbol: apr_md5_final


Anyone know what that might mean?


_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



RE: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP withmod_jk)

2003-07-02 Thread Eric J. Pinnell
Hi,

I get that message in the apache error log upon startup and I'm using
Solaris.  I think it's normal.

-e

On Wed, 2 Jul 2003, Atreya Basu wrote:

> I have Apache 2 and JK2 working but I get that annoying error:
>
> jk_init() Can't find child 3993 in scoreboard
>
> Which file was it that you had to make writeable?
>
> _
> Atreya Basu
> Developer,
> Greenfield Research Inc.
> e-mail: atreya (at) greenfieldresearch (dot) ca
>
> -Original Message-
> From: Yishay Mor [mailto:[EMAIL PROTECTED]
> Sent: July 2, 2003 2:59 PM
> To: Tomcat Users List
> Cc: Gordon Simpson
> Subject: Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with
> mod_jk)
>
> Yeee Ha!!! Hallelujah!  :-)
>
> yup. that was it. now you can see the good 'ol tomcat ring tone at
> http://www.weblabs.eu.com/index.jsp
>
> Next time you're in London, let me buy you a beer.
>
> thanks!
>
> - Yishay
>
> p.s.
>
> So, I guess if anyone else has the same problem, this config should work
>
> for you too...
>
> Eric J. Pinnell wrote:
>
> >I think JkSet config.file needs a full path.  You can't short cut it
> like
> >you can with a LoadModule.
> >
> >JkSet config.file /path/to/apache/conf/workers2.properties.
> >
> >I think right now it's not seeing your config file.
> >
> >Dunno...  try it.
> >
> >-e
> >
> >On Wed, 2 Jul 2003, Yishay Mor wrote:
> >
> >
> >
> >>I've read the thread(s), gone through the jakarta docs, read a dozen
> >>how-tos, still no go.
> >>
> >>Platform:
> >>
> >>* RedHat 8, with its -
> >>* custom Apache (2.0.4 w/ modifications?)
> >>* Tomcat 4.1
> >>* mod_jk2  binaries for RH from
> http://www.jpackage.org/rpm.php?id=1133
> >>
> >>Situation:
> >>===
> >>Tomcat works, on 8080 (although the  admin app is bogus, but that's on
> >>another thread)
> >>Apache identifies mod_jk2, but then fails on
> >>[error] shm.init(): No file
> >>[error] jk2_init() Can't find child 3993 in scoreboard
> >>
> >>I've actually managed to hook them up using ProxyPass, but that's too
> >>crude a hack to satisfy me,
> >>
> >>Analysis
> >>==
> >>If  I could get the shm to work, my life will be given back to me.
> >>
> >>I've cut & paste relevant sections of our config files on the admin
> wiki:
> >>http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch
> >>
> >>Here's a summary:
> >> httpd.conf: ---
> >>LoadModule jk2_module modules/mod_jk2.so
> >>JkSet config.file conf/workers2.properties
> >>
> >> jk2.properties: ---
> >>handler.list=channelSocket,request
> >>channelSocket.port=8009
> >>shm.file=/etc/httpd/logs/jk2.shm
> >>
> >>--- workers2.properties: -
> >>[shm]
> >>file=/etc/httpd/logs/shm.file
> >>size=1048576
> >>
> >># Example socket channel, override port and host.
> >>[channel.socket:localhost:8009]
> >>port=8009
> >>host=localhost
> >>
> >># define the worker
> >>[ajp13:localhost:8009]
> >>channel=channel.socket:localhost:8009
> >>
> >># Uri mapping
> >>[uri:*.jsp]
> >>worker=ajp13:localhost:8009
> >>
> >># Map the Tomcat examples webapp to the Web server uri space
> >>[uri:/examples/*]
> >>info=Map the whole webapp worker=ajp13:localhost:8009
> >>
> >>
> >>--- server.xml: 
> >>
> >>
> >> >>   port="8009" minProcessors="5" maxProcessors="75"
> >>   enableLookups="true" redirectPort="8443"
> >>   acceptCount="10" debug="0" connectionTimeout="20"
> >>   useURIValidationHack="false"
> >>
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> >>
> >>
> >>
> >> >>   port="8007" minProcessors="5" maxProcessors="75"
> >>   acceptCount="10" debug="0"/>
> >>
> >>
> >>-- error.log 
> >>
> >>[error] shm.init(): No file
> >>[error] jk2_init() Can't find child 3993 in scoreboard
> >>[error] shm.init(): No file
> >>[error] mod_jk child init 1 -2
> >>[error] jk2_init() Can't find child 3994 in scoreboard
> >>:
> >>[error] mod_jk child init 1 -2
> >>[notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal
> >>operations
> >>
> >>
> >>- Yishay
> >>
> >>--
> >>**
> >>Yishay Mor
> >>
> http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
> >>   [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964
> >>   AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ:
> 179772099
> >>
> >>   If this helped you, please take the time to rate the value of
> this post:
> >>   http://svcs.affero.net/rm.php?r=yishaym
> >>**
> >>celebrating 100 years of excellence in education
> >>www.ioe.ac.uk/centenary
> >>
> >>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >

AW: Starting a sevlet automatically when Tomcat starts

2003-07-02 Thread Hamidene, Anis Ben
Hi, 
Thanx alot it works now! 

anis  



> -Ursprüngliche Nachricht-
> Von: Mike Curwen [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 2. Juli 2003 19:50
> An: 'Tomcat Users List'
> Betreff: RE: Starting a sevlet automatically when Tomcat starts
> 
> 
> From the DTD:
> The optional contents of these element must be an integer 
> indicating the order in which the servlet should be loaded. 
> If the value is a negative integer, or the element is not 
> present, the container is free to load the servlet whenever
> it chooses.
>  
> So, Tomcat developers.. what does Tomcat do with an empty tag ?
>  
> 
>  Try :
> 0
> 
> 
> 
> > -Original Message-
> > From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 02, 2003 12:41 PM
> > To: Tomcat Users List
> > Subject: AW: Starting a sevlet automatically when Tomcat starts
> > 
> > 
> > Hi,
> > that´s what I need. But it didn´t work.
> > Shall I make any other configuration?
> > Here is a portion of my web.xml:
> > 
> > 
> > 
> > propertiesLoader
> > 
> > 
> > com.dzbw.ladiva.azrinterface.PropertiesLoader
> > 
> > 
> >  
> > 
> > 
> > 
> > propertiesLoader
> > 
> > 
> > /pLoader
> > 
> > 
> > 
> > 
> > Best Regards
> > 
> > anis
> > 
> >   
> > 
> > 
> > 
> > > -Ursprüngliche Nachricht-
> > > Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> > > Gesendet: Mittwoch, 2. Juli 2003 18:13
> > > An: Tomcat Users List
> > > Betreff: RE: Starting a sevlet automatically when Tomcat starts
> > > 
> > > 
> > > 
> > > Howdy,
> > > How about just adding  to the  tag in 
> > > your web.xml?
> > > 
> > > Yoav Shapira
> > > Millennium ChemInformatics
> > > 
> > > 
> > > >-Original Message-
> > > >From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED]
> > > >Sent: Wednesday, July 02, 2003 11:47 AM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Starting a sevlet automatically when Tomcat starts
> > > >Importance: High
> > > >
> > > >Hi,
> > > >
> > > >i need to start a servlet automatically when tomcat starts
> > > (could be a
> > > >windows NT service). How is this possible with Tomcat 4.1.2?
> > > >
> > > >Thanks
> > > >
> > > >Best Regards
> > > >
> > > >anis
> > > >
> > > >
> > > >
> > > 
> > > 
> > > 
> > > This e-mail, including any attachments, is a confidential 
> business 
> > > communication, and may contain information that is confidential, 
> > > proprietary and/or privileged.  This e-mail is intended 
> only for the 
> > > individual(s) to whom it is addressed, and may not be 
> saved, copied, 
> > > printed, disclosed or used by anyone else.  If you are 
> not the(an) 
> > > intended recipient, please immediately delete this e-mail 
> from your 
> > > computer system and notify the sender.  Thank you.
> > > 
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread Atreya Basu
I have Apache 2 and JK2 working but I get that annoying error:

jk_init() Can't find child 3993 in scoreboard

Which file was it that you had to make writeable?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Yishay Mor [mailto:[EMAIL PROTECTED] 
Sent: July 2, 2003 2:59 PM
To: Tomcat Users List
Cc: Gordon Simpson
Subject: Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with
mod_jk)

Yeee Ha!!! Hallelujah!  :-)

yup. that was it. now you can see the good 'ol tomcat ring tone at 
http://www.weblabs.eu.com/index.jsp

Next time you're in London, let me buy you a beer.

thanks!

- Yishay

p.s.

So, I guess if anyone else has the same problem, this config should work

for you too...

Eric J. Pinnell wrote:

>I think JkSet config.file needs a full path.  You can't short cut it
like
>you can with a LoadModule.
>
>JkSet config.file /path/to/apache/conf/workers2.properties.
>
>I think right now it's not seeing your config file.
>
>Dunno...  try it.
>
>-e
>
>On Wed, 2 Jul 2003, Yishay Mor wrote:
>
>  
>
>>I've read the thread(s), gone through the jakarta docs, read a dozen
>>how-tos, still no go.
>>
>>Platform:
>>
>>* RedHat 8, with its -
>>* custom Apache (2.0.4 w/ modifications?)
>>* Tomcat 4.1
>>* mod_jk2  binaries for RH from
http://www.jpackage.org/rpm.php?id=1133
>>
>>Situation:
>>===
>>Tomcat works, on 8080 (although the  admin app is bogus, but that's on
>>another thread)
>>Apache identifies mod_jk2, but then fails on
>>[error] shm.init(): No file
>>[error] jk2_init() Can't find child 3993 in scoreboard
>>
>>I've actually managed to hook them up using ProxyPass, but that's too
>>crude a hack to satisfy me,
>>
>>Analysis
>>==
>>If  I could get the shm to work, my life will be given back to me.
>>
>>I've cut & paste relevant sections of our config files on the admin
wiki:
>>http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch
>>
>>Here's a summary:
>> httpd.conf: ---
>>LoadModule jk2_module modules/mod_jk2.so
>>JkSet config.file conf/workers2.properties
>>
>> jk2.properties: ---
>>handler.list=channelSocket,request
>>channelSocket.port=8009
>>shm.file=/etc/httpd/logs/jk2.shm
>>
>>--- workers2.properties: -
>>[shm]
>>file=/etc/httpd/logs/shm.file
>>size=1048576
>>
>># Example socket channel, override port and host.
>>[channel.socket:localhost:8009]
>>port=8009
>>host=localhost
>>
>># define the worker
>>[ajp13:localhost:8009]
>>channel=channel.socket:localhost:8009
>>
>># Uri mapping
>>[uri:*.jsp]
>>worker=ajp13:localhost:8009
>>
>># Map the Tomcat examples webapp to the Web server uri space
>>[uri:/examples/*]
>>info=Map the whole webapp worker=ajp13:localhost:8009
>>
>>
>>--- server.xml: 
>>
>>
>>>   port="8009" minProcessors="5" maxProcessors="75"
>>   enableLookups="true" redirectPort="8443"
>>   acceptCount="10" debug="0" connectionTimeout="20"
>>   useURIValidationHack="false"
>>
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>>
>>
>>
>>>   port="8007" minProcessors="5" maxProcessors="75"
>>   acceptCount="10" debug="0"/>
>>
>>
>>-- error.log 
>>
>>[error] shm.init(): No file
>>[error] jk2_init() Can't find child 3993 in scoreboard
>>[error] shm.init(): No file
>>[error] mod_jk child init 1 -2
>>[error] jk2_init() Can't find child 3994 in scoreboard
>>:
>>[error] mod_jk child init 1 -2
>>[notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal
>>operations
>>
>>
>>- Yishay
>>
>>--
>>**
>>Yishay Mor
>>
http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
>> [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964
>> AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ:
179772099
>>
>> If this helped you, please take the time to rate the value of
this post:
>> http://svcs.affero.net/rm.php?r=yishaym
>>**
>>celebrating 100 years of excellence in education
>>  www.ioe.ac.uk/centenary
>>
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

-- 
**
Yishay Mor

http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
   [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964 
   AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ:
179772099
  

RE: Insufficient quota

2003-07-02 Thread Cox, Charlie
changing the quota is specific to your operating system and has nothing to
do with tomcat. Consult the person who set up your server.

you can look at the logs directory to see if you can delete any log files,
but chances are that it will happen again.

> -Original Message-
> From: Reis, Tom [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 02, 2003 12:52 PM
> To: 'Tomcat Users List'
> Subject: RE: Insufficient quota
> 
> 
> I am new to Tomcat and I am responsible for the server. We 
> are using Tomcat
> version 4.03. Could you tell me how to change the quota. Thanks.
> 
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 01, 2003 4:26 PM
> To: Tomcat Users List
> Subject: Re: Insufficient quota
> 
> 
> 
> - ask your sys-admin to increase (or remove) the quota
> 
> - figure out what is taking up the disk space (runaway log 
> file perhaps?) 
> and delete it
> 
> John
> 
> On Tue, 1 Jul 2003 16:06:55 -0500, Reis, Tom 
> <[EMAIL PROTECTED]> wrote:
> 
> > What can be done about it? Thanks.
> >
> > -Original Message-
> > From: Tim Funk [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 01, 2003 3:50 PM
> > To: Tomcat Users List
> > Subject: Re: Insufficient quota
> >
> >
> > Looks like your userid is out of disk space (quota) on a 
> *nix system.
> >
> > -Tim
> >
> > Reis, Tom wrote:
> >>I intermittently receive the following error:
> >> javax.servlet.ServletException: Read error 1453, 
> Insufficient quota to
> >> complete the requested service. Are there any parameters 
> to set for this
> >> problem?
> >>
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -- 
> Using M2, Opera's revolutionary e-mail client: 
> http://www.opera.com/m2/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread Yishay Mor
I tried building it. Maybe I got it wrong  - I was using the ant 
scripts, and got into deep mud.  I saw a posting somewhere that you have 
to us e the native make scripts, and tweak them a bit to work.

John Turner wrote:

Actually, there was a post on this last week.  Check the archives.  
RH's munged Apache requires some sort of tweak to the OS that will 
effect the scoreboard when using JK2.

I don't use JK, RH 8, nor RH's Apache, so I didn't really pay 
attention to what the solution was.  It was definitely within the last 
two weeks.

The alternative is to just build JK from source and use that...it 
would probably be a lot less hassle.

John

On Wed, 2 Jul 2003 13:41:22 -0400 (EDT), Eric J. Pinnell 
<[EMAIL PROTECTED]> wrote:

I think JkSet config.file needs a full path.  You can't short cut it 
like
you can with a LoadModule.

JkSet config.file /path/to/apache/conf/workers2.properties.

I think right now it's not seeing your config file.

Dunno...  try it.

-e

On Wed, 2 Jul 2003, Yishay Mor wrote:

I've read the thread(s), gone through the jakarta docs, read a dozen
how-tos, still no go.
Platform:

* RedHat 8, with its -
* custom Apache (2.0.4 w/ modifications?)
* Tomcat 4.1
* mod_jk2  binaries for RH from http://www.jpackage.org/rpm.php?id=1133
Situation:
===
Tomcat works, on 8080 (although the  admin app is bogus, but that's on
another thread)
Apache identifies mod_jk2, but then fails on
[error] shm.init(): No file
[error] jk2_init() Can't find child 3993 in scoreboard
I've actually managed to hook them up using ProxyPass, but that's too
crude a hack to satisfy me,
Analysis
==
If  I could get the shm to work, my life will be given back to me.
I've cut & paste relevant sections of our config files on the admin 
wiki:
http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch

Here's a summary:
 httpd.conf: ---
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file conf/workers2.properties
 jk2.properties: ---
handler.list=channelSocket,request
channelSocket.port=8009
shm.file=/etc/httpd/logs/jk2.shm
--- workers2.properties: -
[shm]
file=/etc/httpd/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=localhost
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:*.jsp]
worker=ajp13:localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp worker=ajp13:localhost:8009
--- server.xml: 






-- error.log 

[error] shm.init(): No file
[error] jk2_init() Can't find child 3993 in scoreboard
[error] shm.init(): No file
[error] mod_jk child init 1 -2
[error] jk2_init() Can't find child 3994 in scoreboard
:
[error] mod_jk child init 1 -2
[notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal
operations
- Yishay

--
**
Yishay Mor
   
http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
   [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964
   AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ: 179772099

   If this helped you, please take the time to rate the value of 
this post:
   http://svcs.affero.net/rm.php?r=yishaym
**
celebrating 100 years of excellence in education
www.ioe.ac.uk/centenary



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

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




--
**
Yishay Mor
	   http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
	   [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964 
	   AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ: 179772099
	   
	   If this helped you, please take the time to rate the value of this post:
	   http://svcs.affero.net/rm.php?r=yishaym
**
celebrating 100 years of excellence in education 
		www.ioe.ac.uk/centenary



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


Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread Yishay Mor
Yeee Ha!!! Hallelujah!  :-)

yup. that was it. now you can see the good 'ol tomcat ring tone at 
http://www.weblabs.eu.com/index.jsp

Next time you're in London, let me buy you a beer.

thanks!

- Yishay

p.s.

So, I guess if anyone else has the same problem, this config should work 
for you too...

Eric J. Pinnell wrote:

I think JkSet config.file needs a full path.  You can't short cut it like
you can with a LoadModule.
JkSet config.file /path/to/apache/conf/workers2.properties.

I think right now it's not seeing your config file.

Dunno...  try it.

-e

On Wed, 2 Jul 2003, Yishay Mor wrote:

 

I've read the thread(s), gone through the jakarta docs, read a dozen
how-tos, still no go.
Platform:

* RedHat 8, with its -
* custom Apache (2.0.4 w/ modifications?)
* Tomcat 4.1
* mod_jk2  binaries for RH from http://www.jpackage.org/rpm.php?id=1133
Situation:
===
Tomcat works, on 8080 (although the  admin app is bogus, but that's on
another thread)
Apache identifies mod_jk2, but then fails on
   [error] shm.init(): No file
   [error] jk2_init() Can't find child 3993 in scoreboard
I've actually managed to hook them up using ProxyPass, but that's too
crude a hack to satisfy me,
Analysis
==
If  I could get the shm to work, my life will be given back to me.
I've cut & paste relevant sections of our config files on the admin wiki:
http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch
Here's a summary:
 httpd.conf: ---
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file conf/workers2.properties
 jk2.properties: ---
handler.list=channelSocket,request
channelSocket.port=8009
shm.file=/etc/httpd/logs/jk2.shm
--- workers2.properties: -
[shm]
file=/etc/httpd/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=localhost
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:*.jsp]
worker=ajp13:localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp worker=ajp13:localhost:8009
--- server.xml: 

   
   
   

   
-- error.log 

[error] shm.init(): No file
[error] jk2_init() Can't find child 3993 in scoreboard
[error] shm.init(): No file
[error] mod_jk child init 1 -2
[error] jk2_init() Can't find child 3994 in scoreboard
:
[error] mod_jk child init 1 -2
[notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal
operations
- Yishay

--
**
Yishay Mor
   http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
   [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964
   AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ: 179772099
   If this helped you, please take the time to rate the value of this post:
   http://svcs.affero.net/rm.php?r=yishaym
**
celebrating 100 years of excellence in education
www.ioe.ac.uk/centenary


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

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

--
**
Yishay Mor
	   http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
	   [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964 
	   AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ: 179772099
	   
	   If this helped you, please take the time to rate the value of this post:
	   http://svcs.affero.net/rm.php?r=yishaym
**
celebrating 100 years of excellence in education 
		www.ioe.ac.uk/centenary



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


RE: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread Rhodes, Phil
From: Yishay Mor [mailto:[EMAIL PROTECTED]
> Situation:
> ===
> Tomcat works, on 8080 (although the  admin app is bogus, but 
> that's on another thread)
> Apache identifies mod_jk2, but then fails on
> [error] shm.init(): No file
> [error] jk2_init() Can't find child 3993 in scoreboard

Completely from memory, I seem to recall getting this error and
the cause was that the log file wasn't writable by Tomcat.  You
might check your file permissions.

-Phil

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



Re: Message Digest severe error when starting Tomcat 4.1

2003-07-02 Thread John Turner
Ditto what Mike said.

John

On Wed, 2 Jul 2003 12:46:43 -0500, Mike Curwen <[EMAIL PROTECTED]> wrote:

Ok, I'll take this one again ;)

SEVERE: Parse Error at line 59 column 11: The content of element type 
"web-app" must match "...

means you have an error in web.xml.  Something is out of order, or a
typo, or...
-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, July 
02, 2003 12:36 PM
To: '[EMAIL PROTECTED]'
Subject: Message Digest severe error when starting Tomcat 4.1

Hi guys,
do you know what this message means? Fortunatelly, my environment is 
working fine. I guess its a digital certificate file, named saa.prop, 
which i had to store on TomCat.

Digester error
SEVERE: Parse Error at line 59 column 11: The content of element type 
"web-app" must match " (icon?,display- 
name?,description?,distributable?,context-param
*,filter*,filt
er-mapping*,list ener*,servlet*,servlet-mapping*,session-config?,mime- 
mapping*,
welcome-file-l
ist?,error-page* ,taglib*,resource-env-ref*,resource-ref*,security- 
constraint*,
login-config?,
security-role*,e
nv-entry*,ejb-ref*,ejb-local-ref*)".

Thanks in advance,
Euclides.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



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


Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread John Turner
Actually, there was a post on this last week.  Check the archives.  RH's 
munged Apache requires some sort of tweak to the OS that will effect the 
scoreboard when using JK2.

I don't use JK, RH 8, nor RH's Apache, so I didn't really pay attention to 
what the solution was.  It was definitely within the last two weeks.

The alternative is to just build JK from source and use that...it would 
probably be a lot less hassle.

John

On Wed, 2 Jul 2003 13:41:22 -0400 (EDT), Eric J. Pinnell <[EMAIL PROTECTED]> 
wrote:

I think JkSet config.file needs a full path.  You can't short cut it like
you can with a LoadModule.
JkSet config.file /path/to/apache/conf/workers2.properties.

I think right now it's not seeing your config file.

Dunno...  try it.

-e

On Wed, 2 Jul 2003, Yishay Mor wrote:

I've read the thread(s), gone through the jakarta docs, read a dozen
how-tos, still no go.
Platform:

* RedHat 8, with its -
* custom Apache (2.0.4 w/ modifications?)
* Tomcat 4.1
* mod_jk2  binaries for RH from http://www.jpackage.org/rpm.php?id=1133
Situation:
===
Tomcat works, on 8080 (although the  admin app is bogus, but that's on
another thread)
Apache identifies mod_jk2, but then fails on
[error] shm.init(): No file
[error] jk2_init() Can't find child 3993 in scoreboard
I've actually managed to hook them up using ProxyPass, but that's too
crude a hack to satisfy me,
Analysis
==
If  I could get the shm to work, my life will be given back to me.
I've cut & paste relevant sections of our config files on the admin 
wiki:
http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch

Here's a summary:
 httpd.conf: ---
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file conf/workers2.properties
 jk2.properties: ---
handler.list=channelSocket,request
channelSocket.port=8009
shm.file=/etc/httpd/logs/jk2.shm
--- workers2.properties: -
[shm]
file=/etc/httpd/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=localhost
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:*.jsp]
worker=ajp13:localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp worker=ajp13:localhost:8009
--- server.xml: 






-- error.log 

[error] shm.init(): No file
[error] jk2_init() Can't find child 3993 in scoreboard
[error] shm.init(): No file
[error] mod_jk child init 1 -2
[error] jk2_init() Can't find child 3994 in scoreboard
:
[error] mod_jk child init 1 -2
[notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal
operations
- Yishay

--
**
Yishay Mor
   http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
   [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964
   AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ: 179772099
	   If this helped you, please take the time to rate the value of this 
post:
	   http://svcs.affero.net/rm.php?r=yishaym
**
celebrating 100 years of excellence in education
		www.ioe.ac.uk/centenary



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

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



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


RE: Starting a sevlet automatically when Tomcat starts

2003-07-02 Thread Mike Curwen
>From the DTD:
The optional contents of these element must be an integer 
indicating the order in which the servlet should be loaded. 
If the value is a negative integer, or the element is not 
present, the container is free to load the servlet whenever
it chooses.
 
So, Tomcat developers.. what does Tomcat do with an empty tag ?
 

 Try :
0



> -Original Message-
> From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 02, 2003 12:41 PM
> To: Tomcat Users List
> Subject: AW: Starting a sevlet automatically when Tomcat starts
> 
> 
> Hi, 
> that´s what I need. But it didn´t work.
> Shall I make any other configuration?
> Here is a portion of my web.xml:
> 
> 
> 
> propertiesLoader
> 
> 
> com.dzbw.ladiva.azrinterface.PropertiesLoader
> 
>   
>  
> 
> 
> 
> propertiesLoader
> 
> 
> /pLoader
> 
> 
>   
> 
> Best Regards
> 
> anis
> 
>   
> 
> 
> 
> > -Ursprüngliche Nachricht-
> > Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 2. Juli 2003 18:13
> > An: Tomcat Users List
> > Betreff: RE: Starting a sevlet automatically when Tomcat starts
> > 
> > 
> > 
> > Howdy,
> > How about just adding  to the 
> > tag in your web.xml?
> > 
> > Yoav Shapira
> > Millennium ChemInformatics
> > 
> > 
> > >-Original Message-
> > >From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, July 02, 2003 11:47 AM
> > >To: [EMAIL PROTECTED]
> > >Subject: Starting a sevlet automatically when Tomcat starts
> > >Importance: High
> > >
> > >Hi,
> > >
> > >i need to start a servlet automatically when tomcat starts
> > (could be a
> > >windows NT service). How is this possible with Tomcat 4.1.2?
> > >
> > >Thanks
> > >
> > >Best Regards
> > >
> > >anis
> > >
> > >
> > >
> > 
> > 
> > 
> > This e-mail, including any attachments, is a confidential
> > business communication, and may contain information that is 
> > confidential, proprietary and/or privileged.  This e-mail is 
> > intended only for the individual(s) to whom it is addressed, 
> > and may not be saved, copied, printed, disclosed or used by 
> > anyone else.  If you are not the(an) intended recipient, 
> > please immediately delete this e-mail from your computer 
> > system and notify the sender.  Thank you.
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Starting a sevlet automatically when Tomcat starts

2003-07-02 Thread Shapira, Yoav

Howdy,
It worked as well as it could.  Put a println in your init() method so you can see 
when it's called.  Check the tomcat logs for any errors.

If tomcat didn't load startup servlets as defined in web.xml, we'd have a ton of 
serious problems long before you had raised the issue ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 1:41 PM
>To: Tomcat Users List
>Subject: AW: Starting a sevlet automatically when Tomcat starts
>
>Hi,
>that´s what I need. But it didn´t work.
>Shall I make any other configuration?
>Here is a portion of my web.xml:
>
>
>
>propertiesLoader
>
>
>com.dzbw.ladiva.azrinterface.PropertiesLoader
>
>   
> 
>
>
>
>propertiesLoader
>
>
>/pLoader
>
>
>
>
>Best Regards
>
>anis
>
>
>
>
>
>> -Ursprüngliche Nachricht-
>> Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>> Gesendet: Mittwoch, 2. Juli 2003 18:13
>> An: Tomcat Users List
>> Betreff: RE: Starting a sevlet automatically when Tomcat starts
>>
>>
>>
>> Howdy,
>> How about just adding  to the 
>> tag in your web.xml?
>>
>> Yoav Shapira
>> Millennium ChemInformatics
>>
>>
>> >-Original Message-
>> >From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED]
>> >Sent: Wednesday, July 02, 2003 11:47 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: Starting a sevlet automatically when Tomcat starts
>> >Importance: High
>> >
>> >Hi,
>> >
>> >i need to start a servlet automatically when tomcat starts
>> (could be a
>> >windows NT service). How is this possible with Tomcat 4.1.2?
>> >
>> >Thanks
>> >
>> >Best Regards
>> >
>> >anis
>> >
>> >
>> >
>>
>>
>>
>> This e-mail, including any attachments, is a confidential
>> business communication, and may contain information that is
>> confidential, proprietary and/or privileged.  This e-mail is
>> intended only for the individual(s) to whom it is addressed,
>> and may not be saved, copied, printed, disclosed or used by
>> anyone else.  If you are not the(an) intended recipient,
>> please immediately delete this e-mail from your computer
>> system and notify the sender.  Thank you.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Message Digest severe error when starting Tomcat 4.1

2003-07-02 Thread Mike Curwen
Ok, I'll take this one again ;)

 SEVERE: Parse Error at line 59 column 11: The content of 
 element type "web-app" must match "...


means you have an error in web.xml.  Something is out of order, or a
typo, or... 

> -Original Message-
> From: Jose Euclides da Silva Junior - DATAPREVRJ 
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 02, 2003 12:36 PM
> To: '[EMAIL PROTECTED]'
> Subject: Message Digest severe error when starting Tomcat 4.1
> 
> 
> Hi guys,
> do you know what this message means? Fortunatelly, my 
> environment is working fine. I guess its a digital 
> certificate file, named saa.prop, which i had to store on TomCat.
> 
> Digester error
> SEVERE: Parse Error at line 59 column 11: The content of 
> element type "web-app" must match " 
> (icon?,display-name?,description?,distributable?,context-param
*,filter*,filt
> er-mapping*,list 
> ener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,
> welcome-file-l
> ist?,error-page* 
> ,taglib*,resource-env-ref*,resource-ref*,security-constraint*,
> login-config?,
> security-role*,e
> nv-entry*,ejb-ref*,ejb-local-ref*)".
> 
> Thanks in advance,
> Euclides.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: mod_jk and Coyote connector

2003-07-02 Thread James Courtney
John,
I was simply making the assumption that the connector code released with 
Tomcat 4.1.24 had been tested and validated to be at a stable point for that release.  
I understand that there are two parts to the code and that the connectors are a 
separate project.  What I want to know is:

1)  Does anyone know why my mod_jk2 configuration posted below fails intermittently.  
I wouldn't be asking any of this if it were working reliably.
2)  Is mod_jk or mod_jk2 preferred for stable "production" use with moderate user 
loads (100-250 concurrent sessions per Tomcat, 2x Tomcat, 5-10 req/sec for the apache 
2.0.45).
3)  Which code release of mod_jk or mod_jk2 should I use if not the one released with 
4.1.24?  I know it's not the newest but the newest isn't always stable and I have to 
pick a stable point to test and release with.

Thanks!

Jamey


FROM AN EARLIER EMAIL:

We recently upgraded our production systems to Tomcat 4.1.24 and Apache 2.0.45 from 
3.2.2 and 1.3.19 respectively and have noticed a VERY pleasing increase in performance 
and over an 80% reduction in system load.  We also decided to deploy with mod_jk2 and 
the whole system behaved itself quite well during QA and some load testing (admittedly 
not overly thorough).  We pushed to production and things ran fine for a couple of 
days but now, every day or two, our Apache partially loses communication with one of 
the two Tomcats it's load balancing accross (not always the same one).  The result is 
that requests block on Apache and the load goes up as users click away trying to get 
their page(s) to load.  Restarting the Tomcat seems to rectify the problem until the 
next time...

Any thoughts on this problem and the overall maturity of mod_jk2 vs. mod_jk would be 
very helpful.  Many thanks to all!


Jamey


James Courtney
InPhonic, Inc.
Hayward, CA


***
** Apache Errors **
***
inunison.com:8081 145 Connection timed out [Wed Jun 25 15:08:10 2003] [error] 
ajp13.connect() failed ajp13:portal4.somedomain.com:8081 [Wed Jun 25 15:08:10 2003] 
[error] ajp13.service() failed to connect endpoint errno=145 Connection timed out [Wed 
Jun 25 15:08:10 2003] [error] ajp13.service() Error forwarding 
ajp13:portal4.somedomain.com:8081 1 1 [Wed Jun 25 15:08:10 2003] [error] lb.service() 
worker failed 12 for ajp13:portal4.somedomain.com:8081 [Wed Jun 25 15:08:13 2003] 
[error] channelSocket.open() connect failed portal4.somedomain.com:8081 145 Connection 
timed out [Wed Jun 25 15:08:13 2003] [error] ajp13.connect() failed 
ajp13:portal4.somedomain.com:8081 [Wed Jun 25 15:08:13 2003] [error] ajp13.service() 
failed to connect endpoint errno=145 Connection timed out [Wed Jun 25 15:08:13 2003] 
[error] ajp13.service() Error forwarding ajp13:portal4.somedomain.com:8081 1 1 [Wed 
Jun 25 15:08:13 2003] [error] lb.service() worker failed 12 for 
ajp13:portal4.somedomain.com:8081 [Wed Jun 25 15:08:22 2003] [error] 
channelSocket.open() connect failed portal4.somedomain.com:8081 145 Connection timed 
out [Wed Jun 25 15:08:22 2003] [error] ajp13.connect() failed 
ajp13:portal4.somedomain.com:8081 [Wed Jun 25 15:08:22 2003] [error] ajp13.service() 
failed to connect endpoint errno=145 Connection timed out [Wed Jun 25 15:08:22 2003] 
[error] ajp13.service() Error forwarding ajp13:portal4.somedomain.com:8081 1 1 [Wed 
Jun 25 15:08:22 2003] [error] lb.service() worker failed 12 for 
ajp13:portal4.somedomain.com:8081


** WORKERS2 CONFIGURATION **

# only at beginning. In production uncomment it out
[logger.apache2]
level=ERROR

[shm]
file=/tmp/workers2shmDONOTDELETE.file
size=1048576

# portal3 socket
[channel.socket:portal3.somedomain.com:8081]
host=portal3.somedomain.com
port=8081
tomcatId=portal3
group=lb:balanced
graceful=1

# portal3 worker
[ajp13:portal3.somedomain.com:8081]
channel=channel.socket:portal3.somedomain.com:8081
lb_factor=12

# portal4 socket
[channel.socket:portal4.somedomain.com:8081]
host=portal4.somedomain.com
port=8081
tomcatId=portal4
group=lb:balanced

# portal4 worker
[ajp13:portal4.somedomain.com:8081]
channel=channel.socket:portal4.somedomain.com:8081
lb_factor=12


# Load balanced worker
[lb:balanced]
worker=ajp13:portal3.somedomain.com:8081
worker=ajp13:portal4.somedomain.com:8081
# sticky is on by default but setting it adds a harmless error to the log
#stickySession=1


# Define a status worker
[status:status]


# URI mapping
[uri:/*]
group=lb:balanced


# Status URI mapping (should not be publicly accessible!!!)
[uri:/jkstatus]
group=status:status

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 9:31 AM
To: Tomcat Users List
Subject: Re: mod_jk and Coyote connector



Development on the connectors, especially the C side, happens separately 
from Tomcat development.  Keep in mind that there are two types of 
"connectors".  There are Tomcat connectors, which are in server.xml (l

Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP withmod_jk)

2003-07-02 Thread Eric J. Pinnell
I think JkSet config.file needs a full path.  You can't short cut it like
you can with a LoadModule.

JkSet config.file /path/to/apache/conf/workers2.properties.

I think right now it's not seeing your config file.

Dunno...  try it.

-e

On Wed, 2 Jul 2003, Yishay Mor wrote:

> I've read the thread(s), gone through the jakarta docs, read a dozen
> how-tos, still no go.
>
> Platform:
> 
> * RedHat 8, with its -
> * custom Apache (2.0.4 w/ modifications?)
> * Tomcat 4.1
> * mod_jk2  binaries for RH from http://www.jpackage.org/rpm.php?id=1133
>
> Situation:
> ===
> Tomcat works, on 8080 (although the  admin app is bogus, but that's on
> another thread)
> Apache identifies mod_jk2, but then fails on
> [error] shm.init(): No file
> [error] jk2_init() Can't find child 3993 in scoreboard
>
> I've actually managed to hook them up using ProxyPass, but that's too
> crude a hack to satisfy me,
>
> Analysis
> ==
> If  I could get the shm to work, my life will be given back to me.
>
> I've cut & paste relevant sections of our config files on the admin wiki:
> http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch
>
> Here's a summary:
>  httpd.conf: ---
> LoadModule jk2_module modules/mod_jk2.so
> JkSet config.file conf/workers2.properties
>
>  jk2.properties: ---
> handler.list=channelSocket,request
> channelSocket.port=8009
> shm.file=/etc/httpd/logs/jk2.shm
>
> --- workers2.properties: -
> [shm]
> file=/etc/httpd/logs/shm.file
> size=1048576
>
> # Example socket channel, override port and host.
> [channel.socket:localhost:8009]
> port=8009
> host=localhost
>
> # define the worker
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
>
> # Uri mapping
> [uri:*.jsp]
> worker=ajp13:localhost:8009
>
> # Map the Tomcat examples webapp to the Web server uri space
> [uri:/examples/*]
> info=Map the whole webapp worker=ajp13:localhost:8009
>
>
> --- server.xml: 
>
> 
> port="8009" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="10" debug="0" connectionTimeout="20"
>useURIValidationHack="false"
>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
> 
>
> port="8007" minProcessors="5" maxProcessors="75"
>acceptCount="10" debug="0"/>
>
>
> -- error.log 
>
> [error] shm.init(): No file
> [error] jk2_init() Can't find child 3993 in scoreboard
> [error] shm.init(): No file
> [error] mod_jk child init 1 -2
> [error] jk2_init() Can't find child 3994 in scoreboard
> :
> [error] mod_jk child init 1 -2
> [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal
> operations
>
>
> - Yishay
>
> --
> **
> Yishay Mor
>  http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
>  [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964
>  AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ: 179772099
>
>  If this helped you, please take the time to rate the value of this post:
>  http://svcs.affero.net/rm.php?r=yishaym
> **
> celebrating 100 years of excellence in education
>   www.ioe.ac.uk/centenary
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



AW: Starting a sevlet automatically when Tomcat starts

2003-07-02 Thread Hamidene, Anis Ben
Hi, 
that´s what I need. But it didn´t work.
Shall I make any other configuration?
Here is a portion of my web.xml:



propertiesLoader


com.dzbw.ladiva.azrinterface.PropertiesLoader


 



propertiesLoader


/pLoader




Best Regards

anis

  



> -Ursprüngliche Nachricht-
> Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 2. Juli 2003 18:13
> An: Tomcat Users List
> Betreff: RE: Starting a sevlet automatically when Tomcat starts
> 
> 
> 
> Howdy,
> How about just adding  to the  
> tag in your web.xml?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, July 02, 2003 11:47 AM
> >To: [EMAIL PROTECTED]
> >Subject: Starting a sevlet automatically when Tomcat starts
> >Importance: High
> >
> >Hi,
> >
> >i need to start a servlet automatically when tomcat starts 
> (could be a 
> >windows NT service). How is this possible with Tomcat 4.1.2?
> >
> >Thanks
> >
> >Best Regards
> >
> >anis
> >
> >
> >
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else.  If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Message Digest severe error when starting Tomcat 4.1

2003-07-02 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
do you know what this message means? Fortunatelly, my environment is working
fine. I guess its a digital certificate file, named saa.prop, which i had to
store on TomCat.

Digester error
SEVERE: Parse Error at line 59 column 11: The content of element type
"web-app" must match "
(icon?,display-name?,description?,distributable?,context-param*,filter*,filt
er-mapping*,list
ener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-l
ist?,error-page*
,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,
security-role*,e
nv-entry*,ejb-ref*,ejb-local-ref*)".

Thanks in advance,
Euclides.

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



The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread Yishay Mor
I've read the thread(s), gone through the jakarta docs, read a dozen 
how-tos, still no go.

Platform:

* RedHat 8, with its -
* custom Apache (2.0.4 w/ modifications?)
* Tomcat 4.1
* mod_jk2  binaries for RH from http://www.jpackage.org/rpm.php?id=1133
Situation:
===
Tomcat works, on 8080 (although the  admin app is bogus, but that's on 
another thread)
Apache identifies mod_jk2, but then fails on
   [error] shm.init(): No file
   [error] jk2_init() Can't find child 3993 in scoreboard

I've actually managed to hook them up using ProxyPass, but that's too 
crude a hack to satisfy me,

Analysis
==
If  I could get the shm to work, my life will be given back to me.
I've cut & paste relevant sections of our config files on the admin wiki:
http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch
Here's a summary:
 httpd.conf: ---
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file conf/workers2.properties
 jk2.properties: ---
handler.list=channelSocket,request
channelSocket.port=8009
shm.file=/etc/httpd/logs/jk2.shm
--- workers2.properties: -
[shm]
file=/etc/httpd/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=localhost
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:*.jsp]
worker=ajp13:localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp worker=ajp13:localhost:8009
--- server.xml: 

   
   
   

   
-- error.log 

[error] shm.init(): No file
[error] jk2_init() Can't find child 3993 in scoreboard
[error] shm.init(): No file
[error] mod_jk child init 1 -2
[error] jk2_init() Can't find child 3994 in scoreboard
:
[error] mod_jk child init 1 -2
[notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal 
operations

- Yishay

--
**
Yishay Mor
	   http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
	   [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964 
	   AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ: 179772099
	   
	   If this helped you, please take the time to rate the value of this post:
	   http://svcs.affero.net/rm.php?r=yishaym
**
celebrating 100 years of excellence in education 
		www.ioe.ac.uk/centenary



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


RE: PLEASE HELP - Apache mod_jk2 loses communication with Tomcat

2003-07-02 Thread Eric J. Pinnell
Hi,

>   Again, although I see the sytax differences in our two
> workers2.properties configurations I don't see the logical differences.
> The mod_jk2 assumes a lot from the naming convention of the workers and
> it is possible to create a configuration using a very minimal amount of
> text in a workers2.properties but I went with the more explicit approach
> which should be logically equivalent.  Can you site any specific
> instances where your configuration is logically different from mine?


I just know what works for me.

>
>   Is using the 2.0.2 build of the connectors preferable to using the
> build distributed with Tomcat 4.1.24 which I used?

use the current source in the URL you have been givin.  It's the latest
and greatest.

>  What kind of a user load does your mod_jk2 configuration handle on a
> daily basis?  How many concurrent sessions do you run per application
> server, etc?
>

alot.  :)

-e

>
> Jamey
>
>
> -Original Message-
> From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 01, 2003 6:09 PM
> To: Tomcat Users List
> Subject: RE: PLEASE HELP - Apache mod_jk2 loses communication with
> Tomcat
>
>
> Hi,
>
> On Tue, 1 Jul 2003, James Courtney wrote:
>
> > Thanks Eric.
> > I'm still puzzled though.  I don't really see any difference in
> > what you're doing vs. what I'm doing.  I explicitly specify host and
> > port for the channel sockets and I explicitly define the workers but
> > that's shouldn't make any difference should it?  Is there anything in
> > particular in my workers2.properties which is actually not correct?
>
> I'd look closer.  There are quite a bit of differences.
>
> >
> > Please recall that my cluster works for a time and then
> > communication falters between the servers.  This doesn't seem like a
> > config problem as a config problem would probably preclude things
> > working correctly in the first place.
>
> I'm not so sure about that.  But I would start with the low hanging fruit
> first.  My JK2 has worked fine for day.  In fact in another thread we
> were talking about how mixing Ajp13 and Coyote causes unexpected errors
> and general "freaky-out-ness" with no explanation what so ever.  I notice
> you declare ajp13 in your workers2.properties file as part of the channel.
>
> >
> > Is the general opinion that mod_jk2 is ready for production use or
> > is it likely still a little rough?  I'm having a lot of trouble getting
> > mod_jk to work though as an alternative.  I'm using the release of
> > mod_jk(2) from the Tomcat 4.1.24 release which can be found at:
>
> I think so.  It's just a refactoring of mod_jk with some twists.  But it
> will never get there if people don't try to use it! :)
>
> >
> > http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/src/
>
> I use:
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz
>
> -e
>
> >
> > Thanks!
> >
> > Jamey
> >
> >
> > -Original Message-
> > From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 01, 2003 2:34 PM
> > To: Tomcat Users List
> > Subject: Re: PLEASE HELP - Apache mod_jk2 loses communication with
> > Tomcat
> >
> >
> > Your workers2.properties looks a little off.  I don't know if this is the
> > root of your problem but it should look more like:
> >
> > [shm]
> > file=${serverRoot}/logs/shm.file
> > size=1048576
> >
> > [lb:lb_01]
> > info=Default load balancer.
> > debug=0
> >
> > # Example socket channel, override port and host.
> > [channel.socket:localhost:8109]
> > info=Ajp13 forwarding over a TCP socket
> > tomcatId=worker1:8109
> > lb_factor=100
> > group=lb_01
> >
> > # define the worker
> > [channel.socket:localhost:8209]
> > info=A second tomcat instance on a different port.
> > tomcatId=worker2:8209
> > lb_factor=100
> > group=lb_01
> >
> > # Uri mapping
> > [uri:/*]
> > group=lb_01
> > debug=0
> >
> > You have to adjust it to your own needs.  You can change 'localhost' to
> > another IP or servername.
> >
> > -e
> >
> > On Tue, 1 Jul 2003, James Courtney wrote:
> >
> > > I'm trying again as no one responded to my first email.  We REALLY need to 
> > > resolve this issue.  Thanks!
> > >
> > >
> > > We recently upgraded our production systems to Tomcat 4.1.24 and Apache 2.0.45 
> > > from 3.2.2 and 1.3.19 respectively and have noticed a VERY pleasing increase in 
> > > performance and over an 80% reduction in system load.  We also decided to deploy 
> > > with mod_jk2 and the whole system behaved itself quite well during QA and some 
> > > load testing (admittedly not overly thorough).  We pushed to production and 
> > > things ran fine for a couple of days but now, every day or two, our Apache 
> > > partially loses communication with one of the two Tomcats it's load balancing 
> > > accross (not always the same one).  The result is that requests block on Apache 
> > > and the load goes up as users click away trying to get the

[ot] Re: Insufficient quota

2003-07-02 Thread Tim Funk
man quota

-Tim

Reis, Tom wrote:
I am new to Tomcat and I am responsible for the server. We are using Tomcat
version 4.03. Could you tell me how to change the quota. Thanks.
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 4:26 PM
To: Tomcat Users List
Subject: Re: Insufficient quota


- ask your sys-admin to increase (or remove) the quota

- figure out what is taking up the disk space (runaway log file perhaps?) 
and delete it

John



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


JspC ClassNotFoundEception on First Run

2003-07-02 Thread Eric Northam
I'm using the JspC task in ant to precompile my jsps and for some reason it
fails with a ClassNotFoundException on the first run but succeeds on the
second. Does anyone know why or how I can resole the issue?


I'm using tomcat 4.1.24 and here's the section in my build.xml that is
failing:


   


 


 

   
  
  

And here's the exception:


jspc:
[jspc2] Jul 2, 2003 12:14:17 PM
org.apache.struts.util.MessageResourcesFactory createFactory
[jspc2] SEVERE: MessageResourcesFactory.createFactory
[jspc2] java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory
[jspc2] at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.jav
a:1076)
[jspc2] at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1037)
[jspc2] at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:926)
[jspc2] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
[jspc2] at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:182)
[jspc2] at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
[jspc2] at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
[jspc2] at
org.apache.struts.util.RequestUtils.(RequestUtils.java:138)
[jspc2] at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
[jspc2] at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
[jspc2] at
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:10
6)
[jspc2] at java.lang.Class.forName0(Native Method)
[jspc2] at java.lang.Class.forName(Class.java:140)
[jspc2] at
org.apache.strutsel.taglib.html.ELRewriteTagBeanInfo.class$(ELRewriteTagBean
Info.java:91)
[jspc2] at
org.apache.strutsel.taglib.html.ELRewriteTagBeanInfo.getPropertyDescriptors(
ELRewriteTagBeanInfo.java:91)
[jspc2] at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:436)
[jspc2] at
java.beans.Introspector.getBeanInfo(Introspector.java:372)
[jspc2] at
java.beans.Introspector.getBeanInfo(Introspector.java:144)
[jspc2] at
org.apache.jasper.compiler.Generator$TagHandlerInfo.(Generator.java:19
46)
[jspc2] at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:10
93)
[jspc2] at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:707)
[jspc2] at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
[jspc2] at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
[jspc2] at
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
[jspc2] at
org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
[jspc2] at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
[jspc2] at
org.apache.jasper.compiler.Generator.generate(Generator.java:1917)
[jspc2] at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:242)
[jspc2] at org.apache.jasper.JspC.processFile(JspC.java:573)
[jspc2] at org.apache.jasper.JspC.execute(JspC.java:801)
[jspc2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[jspc2] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
[jspc2] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
[jspc2] at java.lang.reflect.Method.invoke(Method.java:324)
[jspc2] at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
[jspc2] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
[jspc2] at org.apache.tools.ant.Task.perform(Task.java:319)
[jspc2] at org.apache.tools.ant.Target.execute(Target.java:309)
[jspc2] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[jspc2] at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[jspc2] at
org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[jspc2] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[jspc2] at org.apache.tools.ant.Main.start(Main.java:196)
[jspc2] at org.apache.tools.ant.Main.main(Main.java:235)
[jspc2] Jul 2, 2003 12:14:17 PM
org.apache.struts.util.MessageResourcesFactory createFactory
[jspc2] SEVERE: MessageResourcesFactory.createFactory
[jspc2] java.lang.ExceptionInInitializerError
[jspc2] at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
[jspc2] at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
[jspc2] at
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:10
6)
[jspc2] at java.lang.Class.forName0(Native Method)
[jspc2] at java.lang.Class.

Re: HELP with mod_jk

2003-07-02 Thread John Turner
Perhaps I was thinking of the other "I can't get mod_jk to work with Apache 
2.0.40" thread today.

There is no pat answer until you can be more specific, such as answering 
the questions I've already posted.

John

On Wed, 2 Jul 2003 13:16:39 -0400 (EDT), Dumisani Nlebgwa 
<[EMAIL PROTECTED]> wrote:

Well, if u have the reply in your inbox, can u forward it to me?

You sure?

What does the mod_jk log say?

What URL are you using?

Are the directives you posted contained in a Virtual Host container in
httpd.conf?
Do you ever actually load mod_jk.so at Apache start?

Does "/path/to/apache/bin/apachectl configtest" return "Syntax OK"?

Where did you get your mod_jk?  Did you build it from source?  You have 
to
if you are using RH's RPM version of Apache...their version of Apache is 
a
non-standard version.

John

On Wed, 2 Jul 2003 12:56:53 -0400 (EDT), Dumisani Nlebgwa
<[EMAIL PROTECTED]> wrote:
>
> No it wasn't!
>
>>
>> Deja vu!  This exact message was already posted and resolved earlier
>> today.
>>
>> John
>>
>> On Wed, 2 Jul 2003 12:38:01 -0400 (EDT), Dumisani Nlebgwa
>> <[EMAIL PROTECTED]> wrote:
>>
>> > Hi,
>> > I am having trouble integrating tomcat and apache 2.0.40
>> > I am using mod_jk, and I mounted my examples directory to see if I
>> could
>> > get
>> > it working. I have no problem accessing static files under my 
examples
>> > directory however, the problem is that when I try access a jsp page
>> > through a browser,
>> > I end up seeing the actual jsp code, and when I try invoke a 
servlet,
>> I
>> > get an
>> > error page back stating that the page could not be found.
>> >
>> > Here is a sample of my httpd.conf file
>> > 
>> > JkWorkersFile conf/workers.properties
>> > JkLogFile /var/tomcat4/logs/mod_jk.log
>> > JkLogLevel info
>> > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>> > JkRequestLogFormat "%w %r %s %T"
>> >
>> > JkMount /examples/ ajp13
>> > JkMount /examples/*.jsp ajp13
>> > JkMount /examples/* ajp13
>> > Alias /examples /var/tomcat4/webapps/examples
>> > 
>> > Order allow,deny
>> > allow from all
>> > Options indexes
>> > 
>> > 
>> > deny from all
>> > 
>> > ---
>> >
>> > Here is my workers.properties file
>> > ---
>> > workers.tomcat_home=/var/tomcat4
>> > workers.java_home=/usr/java/j2sdk1.4.1_03/
>> > ps=/
>> > worker.list=ajp13
>> > worker.ajp13.port=8009
>> > worker.ajp13.host=localhost
>> > worker.ajp13.type=ajp13
>> > --
>> >
>> > Any help would be greatly appreciated. Thank you
>> >
>> > --Dumisani
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >  

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



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



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


How to remove abandoned db connections w/o DBCP?

2003-07-02 Thread The Wolf
Hi,
I am using Tomcat 4.1.24 on Red Hat Linux 7.3 with Sun JVM 1.4.1.

Is it possible to remove abandoned db connections without using Database
Connection Pool (DBCP) Configurations
()?
How?

Thanks.

-- 
http://www.fastmail.fm - Access all of your messages and folders
  wherever you are

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



[OFF-TOPIC] RE: Insufficient quota

2003-07-02 Thread Shapira, Yoav

Howdy,
It depends on your OS and filesystem.  Typically edquota is the utility
you want.  Use man edquota to see its documentation.

This has moved off-topic...

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Reis, Tom [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 12:52 PM
>To: 'Tomcat Users List'
>Subject: RE: Insufficient quota
>
>I am new to Tomcat and I am responsible for the server. We are using
Tomcat
>version 4.03. Could you tell me how to change the quota. Thanks.
>
>-Original Message-
>From: John Turner [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 01, 2003 4:26 PM
>To: Tomcat Users List
>Subject: Re: Insufficient quota
>
>
>
>- ask your sys-admin to increase (or remove) the quota
>
>- figure out what is taking up the disk space (runaway log file
perhaps?)
>and delete it
>
>John
>
>On Tue, 1 Jul 2003 16:06:55 -0500, Reis, Tom <[EMAIL PROTECTED]>
wrote:
>
>> What can be done about it? Thanks.
>>
>> -Original Message-
>> From: Tim Funk [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 01, 2003 3:50 PM
>> To: Tomcat Users List
>> Subject: Re: Insufficient quota
>>
>>
>> Looks like your userid is out of disk space (quota) on a *nix system.
>>
>> -Tim
>>
>> Reis, Tom wrote:
>>> I intermittently receive the following error:
>>> javax.servlet.ServletException: Read error 1453, Insufficient quota
to
>>> complete the requested service. Are there any parameters to set for
this
>>> problem?
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
>--
>Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: Digester error/SEVERE Parse starting point

2003-07-02 Thread J. W. Ballantine

Thanks

--  In Response to your message -

>  Date:  Wed, 2 Jul 2003 11:02:00 -0500
>  To:  "'Tomcat Users List'" <[EMAIL PROTECTED]>
>  From:  "Mike Curwen" <[EMAIL PROTECTED]>
>  Subject:  RE: Digester error/SEVERE Parse starting point
>
>  It's in the stacktrace...
>  
>  SEVERE: Parse Error at line 14 column 12: The content of element type 
>  "servlet" must match ...
>  SEVERE: Parse Error at line 23 column 20: The content of element type 
>   "servlet-mapping" must match ...
>  
>  You have two errors in web.xml
>  
>  possibly three...
>   [Fatal Error] :-1:-1: Premature end of file.
>  
>  
>  
>  > -Original Message-
>  > From: J. W. Ballantine [mailto:[EMAIL PROTECTED] 
>  > Sent: Wednesday, July 02, 2003 10:57 AM
>  > To: [EMAIL PROTECTED]
>  > Subject: Digester error/SEVERE Parse starting point
>  > 
>  > Followed by what appears to be more normal startup messages.
>  > 
>  > Since I'm new to tomcat, I'd like so pointers to what file(s) 
>  > is/are causing these errors.  The previous messages pointed 
>  > to a dtd mis-match, but I've check my web.xml and dtd numbers 
>  > are they are 2.3.
>  > 
>  > Pointers as to where to start are very appreciated.
>  > 
>  > Thanks
>  > 
>  > Jim
>  > 
>  > 
>  > 
>  > 
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  > 
>  
>  
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>  



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



Re: HELP with mod_jk

2003-07-02 Thread Dumisani Nlebgwa
Well, if u have the reply in your inbox, can u forward it to me?

>
> You sure?
>
> What does the mod_jk log say?
>
> What URL are you using?
>
> Are the directives you posted contained in a Virtual Host container in
> httpd.conf?
>
> Do you ever actually load mod_jk.so at Apache start?
>
> Does "/path/to/apache/bin/apachectl configtest" return "Syntax OK"?
>
> Where did you get your mod_jk?  Did you build it from source?  You have to
> if you are using RH's RPM version of Apache...their version of Apache is a
> non-standard version.
>
> John
>
> On Wed, 2 Jul 2003 12:56:53 -0400 (EDT), Dumisani Nlebgwa
> <[EMAIL PROTECTED]> wrote:
>
> >
> > No it wasn't!
> >
> >>
> >> Deja vu!  This exact message was already posted and resolved earlier
> >> today.
> >>
> >> John
> >>
> >> On Wed, 2 Jul 2003 12:38:01 -0400 (EDT), Dumisani Nlebgwa
> >> <[EMAIL PROTECTED]> wrote:
> >>
> >> > Hi,
> >> > I am having trouble integrating tomcat and apache 2.0.40
> >> > I am using mod_jk, and I mounted my examples directory to see if I
> >> could
> >> > get
> >> > it working. I have no problem accessing static files under my examples
> >> > directory however, the problem is that when I try access a jsp page
> >> > through a browser,
> >> > I end up seeing the actual jsp code, and when I try invoke a servlet,
> >> I
> >> > get an
> >> > error page back stating that the page could not be found.
> >> >
> >> > Here is a sample of my httpd.conf file
> >> > 
> >> > JkWorkersFile conf/workers.properties
> >> > JkLogFile /var/tomcat4/logs/mod_jk.log
> >> > JkLogLevel info
> >> > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> >> > JkRequestLogFormat "%w %r %s %T"
> >> >
> >> > JkMount /examples/ ajp13
> >> > JkMount /examples/*.jsp ajp13
> >> > JkMount /examples/* ajp13
> >> > Alias /examples /var/tomcat4/webapps/examples
> >> > 
> >> > Order allow,deny
> >> > allow from all
> >> > Options indexes
> >> > 
> >> > 
> >> > deny from all
> >> > 
> >> > ---
> >> >
> >> > Here is my workers.properties file
> >> > ---
> >> > workers.tomcat_home=/var/tomcat4
> >> > workers.java_home=/usr/java/j2sdk1.4.1_03/
> >> > ps=/
> >> > worker.list=ajp13
> >> > worker.ajp13.port=8009
> >> > worker.ajp13.host=localhost
> >> > worker.ajp13.type=ajp13
> >> > --
> >> >
> >> > Any help would be greatly appreciated. Thank you
> >> >
> >> > --Dumisani
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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



Re: HELP with mod_jk

2003-07-02 Thread John Turner
You sure?

What does the mod_jk log say?

What URL are you using?

Are the directives you posted contained in a Virtual Host container in 
httpd.conf?

Do you ever actually load mod_jk.so at Apache start?

Does "/path/to/apache/bin/apachectl configtest" return "Syntax OK"?

Where did you get your mod_jk?  Did you build it from source?  You have to 
if you are using RH's RPM version of Apache...their version of Apache is a 
non-standard version.

John

On Wed, 2 Jul 2003 12:56:53 -0400 (EDT), Dumisani Nlebgwa 
<[EMAIL PROTECTED]> wrote:

No it wasn't!

Deja vu!  This exact message was already posted and resolved earlier 
today.

John

On Wed, 2 Jul 2003 12:38:01 -0400 (EDT), Dumisani Nlebgwa
<[EMAIL PROTECTED]> wrote:
> Hi,
> I am having trouble integrating tomcat and apache 2.0.40
> I am using mod_jk, and I mounted my examples directory to see if I 
could
> get
> it working. I have no problem accessing static files under my examples
> directory however, the problem is that when I try access a jsp page
> through a browser,
> I end up seeing the actual jsp code, and when I try invoke a servlet, 
I
> get an
> error page back stating that the page could not be found.
>
> Here is a sample of my httpd.conf file
> 
> JkWorkersFile conf/workers.properties
> JkLogFile /var/tomcat4/logs/mod_jk.log
> JkLogLevel info
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkRequestLogFormat "%w %r %s %T"
>
> JkMount /examples/ ajp13
> JkMount /examples/*.jsp ajp13
> JkMount /examples/* ajp13
> Alias /examples /var/tomcat4/webapps/examples
> 
> Order allow,deny
> allow from all
> Options indexes
> 
> 
> deny from all
> 
> ---
>
> Here is my workers.properties file
> ---
> workers.tomcat_home=/var/tomcat4
> workers.java_home=/usr/java/j2sdk1.4.1_03/
> ps=/
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> --
>
> Any help would be greatly appreciated. Thank you
>
> --Dumisani
>
>
>
>
>
>
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



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


  1   2   3   >