Re: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Mark Eggers
Pascal,

I've been trying the same thing with Redhat 9, and
getting a similar problem.  I even put
/home/apache/lib in /etc/ld.so.conf and ran
/sbin/ldconfig -v.  I verified that that shared
libraries are indeed loaded.

I also tried modifying /home/tomcat/bin/catalina.sh to
include a -Djava.library.path=[various things], but
that failed to work as well.

I'll think about it some more tomorrow.

One thing to note:  In the source code, there has been
a recent change from apr_MD5FINAL to apr_md5_final. 
I'm wondering if the propagation has made it all the
way through.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: Getting JK2 to work with Apache 2.0.46

2003-06-07 Thread Chong Yu Meng
Rick Salsa wrote:

Hi all,

I'm trying to get mod_jk2.so working with Apache 2.0.46 on Mandrake
Linux. 

Hmm... Mandrake ? Not sure if my write-up will help, but you can refer to :
http://www.cymulacrum.net/tomcat/tomcat_mod_jk2.html
Be careful ! I have not tested out the configurations inside with 
anything other than Red Hat 8, and remember to back up ALL your current 
configurations before changing anything : i.e. httpd2.conf, 
jk2.properties, workers2.properties, mod_jk2.conf. YMMV!

Regards,
pascal chong




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


Re: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Chong Yu Meng
Michael Cardon wrote:

Thanks Chong,

I did have the apache2-devel package installed, but I started a fresh
install of Linux 8.0 and all the rpm's following your instructions again
anyway.
I'm ready to pull my hair out I get the same error about the undefined
symbol: apr_md5_final
 

Something occurred to me last night -- I forgot to remind you about a 
certain symbolic link you need to make. You see, RH8 names the APR file 
differently. Not sure if you did this :

*# ln -s /usr/lib/libapr-0.so.0.9.3 /usr/lib/libapr.so.0

*Regards,
pascal chong


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


Re: Sun JVM vs. JRockit

2003-06-07 Thread Bill Barker
Yeah, well, I've got a lot of pages like:
   
  SomeName
   /some/path/somefile.jsp

And TC 4&5 don't look at the conf/web.xml settings in this case.

"Reynir Hübner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,

You know, there is a flag in tomcat/conf/web.xml on the jasper config :


enablePooling
false
   

So you shouldn't need to disable tagpooling in tomcat source before
compiling it.

I've always had a problem with tagpooling and using the osCache
(www.opensymphony.com) library. For some reason it does not work correctly
with tomcat, so I have to disable tagpooling too.

-reynir


> -Original Message-
> From: Bill Barker [mailto:[EMAIL PROTECTED]
> Sent: 7. júní 2003 04:24
> To: [EMAIL PROTECTED]
> Subject: Re: Sun JVM vs. JRockit
>
>
>
> "joe user" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > --- Bill Barker <[EMAIL PROTECTED]> wrote:
> > > From what I've seen, for small number of requests
> > > like this, the overhead of
> > > managing the tagpool swamps what it saves in GC.
> > > You might want to try
> > > disabling tag-pooling (and clear the work dir), and
> > > re-run the test on 4.1.
> >
> > Object pooling is just bad design and it should be
> > removed from the spec.  We don't pool StringBuffers or HashSets or
> > whatever because that results in crappy performance.
> Object pooling
> > used to be a good idea way back in the Java 1.1 days but
> now, with the
> > exception of very expensive objects like database
> > connections, object pooling makes performance worse.
> > The GC is very very effecient and it does a better job
> > than an object pool can do.  Also, pooling Tag objects
> > can result in various kinds of bugs that are
> > essentially memory management type of bugs.  One of
> > the main reasons we are using Java instead of C++ is
> > _because_ of the GC.  We should use it, not fight it.
> > I hope that Tag pooling is removed entirely from the
> > spec soon.
> >
>
> I agree.  That's why one of the first things I do when
> setting up a new production Tomcat is to go into Jasper and
> disable tag-pooling before compiling it  ;-).
>
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> > http://calendar.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]



Re: RE: one web.xml for many web apps

2003-06-07 Thread Bill Barker
What I use on my systems is to define xml-Entities for the components that I
want common to my webapps.

"BOULAY Arnaud" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Ok, thanks !
but what about commons tips (like timeout) : one web.xml for many web apps
implies the same session timeout for all of them: its a technical limit.
Regards,
Arnaud


 Messages d´origine 
De: "Shapira, Yoav" <[EMAIL PROTECTED]>
Date: Vendredi 6 Juin  2003 14:13
Objet: RE: one web.xml for many web apps

>
> Howdy,
> There is one deployment descriptor per web application.  This
> deploymentdescriptor is web.xml.
>
> Struts lets you define many "sub applications" or "application flows"
> (which translate into struts controller servlets) in every web
> application.
>
> The question is whether these application flows are big enough /
> complexenough / loosely coupled enough (this last one is often the
> key) to be
> webapps by themselves.
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
> >-Original Message-
> >From: BOULAY Arnaud [EMAIL PROTECTED]
> >Sent: Friday, June 06, 2003 8:05 AM
> >To: [EMAIL PROTECTED]
> >Subject: one web.xml for many web apps
> >
> >Hello !
> >It is said in Struts doc that only one controler servlet
> garantees that
> all
> >will work fine but I must specify many web app in one descriptor (so
> many
> >"Action Servlet" in 1 web.xml )  so what is the real risk ? and the
> >limitations ?
> >I think that it's not a good idea but I must proove it to my
> customer.>Thanks in advance.
> >Arnaud
> >
> >
> >
> >--
> ---
> >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]
>
>




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



Re: what's an MBean and why won't my AJP13 listenere work?

2003-06-07 Thread Bill Barker
To answer your original question:
1) An MBean is a JMX manageable object.
(http://java.sun.com/products/JavaManagement/)
2) As Tim has pointed out, the Ajp13Connector is deprecated in TC 4.1.x.  As
a result, it doesn't have an MBean defined for it, since the admin webapp
won't allow you to configure it.

Solutions:
1) Follow Tim's advice and use the CoyoteConnector (my recommendation also).
2) Remove (or comment out) the ServerLifecycleListener in server.xml (this
means that you can't use the admin webapp at all).

"Tim Funk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Try using the coyote listeners.
>
> -Tim
>
> Dave Naden wrote:
> > I'm trying to config Tomcat 4.1.24 with IIS, and one step is to
uncomment the line from server.xml:
> >
> > 
> >
> >  >port="8009" minProcessors="5" maxProcessors="75"
> >acceptCount="10" debug="0"/>
> >
> > but when I do this, Tomcat won't start, and I get the following in the
error log:
> >
> > Jun 7, 2003 1:40:03 PM org.apache.coyote.http11.Http11Protocol init
> > INFO: Initializing Coyote HTTP/1.1 on port 8080
> > ServerLifecycleListener: createMBeans: MBeanException
> > java.lang.Exception: ManagedBean is not found with Ajp13Connector
> > at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:227
> > )
> > at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
> > rLifecycleListener.java:402)
> > at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
> > rLifecycleListener.java:854)
> > at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
> > rLifecycleListener.java:828)
> > at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
> > rLifecycleListener.java:372)
> > at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
> >
> > Can anybody help?
> >
> > -Dave Naden
> >
> >
> > -
> > 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]



Repost: Jk2 - BAD packet signature

2003-06-07 Thread Gareth Nolan
This is a repost as I am starting to pull my hair out. I've still not
resolved this problem. As mentioned below whenever I try localhost:8009 I am
getting a bad packet signature. One thing I didn't mention before, though,
was that I have embedded tomcat into JBoss 3.2.1 (not sure this makes a
difference though).

Desperately seeking help.

Gareth

- Original Message -
From: "Gareth Nolan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 3:30 PM
Subject: Jk2 - BAD packet signature


Hi,

Can anyone help me the above error. I'm running apache 2.0.45 / tomcat
4.1.24 on a redhat 8 box and I'm trying to get the jk2 connector to work
using channel socket (connector-4.1.24). No matter which port I use
(configured in workers2.properties - 8009, 8019) I get a bad packet
signature. The message that is dumped to the log would indeed through this
error according to MsgAjp.java i.e. not x1234 or x4142 but I'm not sure what
I'm doing wrong.

Any help would be greatly appreciated.

Gareth



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



Getting JK2 to work with Apache 2.0.46

2003-06-07 Thread Rick Salsa
Hi all,
 
I'm trying to get mod_jk2.so working with Apache 2.0.46 on Mandrake
Linux. I'm using mod_jk.so-ap2.0.46-rh72 and jk_jnicb.so-rh72 that I
grabbed from
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1
.2.4/bin/linux/. Both of these are installed in apache's modules
directory. I've got the following in httpd.conf:
 
LoadModule jk2_module  modules/mod_jk2.so
 
When I run apachectl configtest, I get:
 
Syntax error on line 47 of /usr/local/apache/conf/httpd.conf:
Can't locate API module structure `jk2_module' in file
/usr/local/apache/modules/mod_jk2.so:
/usr/local/apache/lib/libapr-0.so.0: undefined symbol: jk2_module
 
If I change jk2_module to jk_module, it doesn't give an error, but when
I try to use a JkUriSet, I'll get an error there. Anyone have any ideas?
 
Thanks!
/rick


RE: Connectors mod_webapp vs mod_jk2

2003-06-07 Thread Ronnie Tartar
Is there any way of setting the appbase on the connectors for jk2?  I would
like to try and get away from mod_webapp, since development has ceased on
it, but I want to use virtual ssl hosts without having to add the webapp @
the end of the url?  I attempted mod_rewrite, but had some issues there and
some conflicting stories on weather it worked or not? 

I'm not really a programmer, I'm an operations guy who has to host a lot of
these and need an effective way of doing so.  I know that I can use multiple
tomcat instances but would rather not.  Any suggestion would be helpful.

Thanks in advance. 

-Original Message-
From: Ronnie Tartar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 12:50 PM
To: [EMAIL PROTECTED]
Subject: Connectors mod_webapp vs mod_jk2


I successfully implented the mod_webapp connector, thanks especially for the
document on:

http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_01.jsp

But I could not successfully install the mod_jk2 connector with multiple ssl
vhosts (IP Based). I did get it working with the default install so the
compile and code is right, I think I may just be missing something in the
config, either apache or tomcat.

Is there a way to use the mod_jk2 connector with the following
configuration, especially the appbase parameter?  Also, is there a way to
map the connectors onto the vhosts in apache?



Thank you

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



RE: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Michael Cardon
Thanks Chong,

I did have the apache2-devel package installed, but I started a fresh
install of Linux 8.0 and all the rpm's following your instructions again
anyway.

I'm ready to pull my hair out I get the same error about the undefined
symbol: apr_md5_final

I am using sun's j2sdk instead of IBM's, other than that, I think everything
is the same setup as your system.

I've done symbolic links, set environment variables, and everything else I
can think of, but I get the same error.

This seems so simple, I can't believe it's causing me this much grief
hehehe

Anyway, I'm looking for some more guidance if you can Thanks.





-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 7:19 AM
To: Tomcat Users List
Subject: Re: Help Please: Starting Tomcat using channelUnix with mod_jk2


Michael Cardon wrote:

>Where I am missing this?: undefined symbol: apr_md5_final
>My platform: RH Linux 8.0
>
>
You're missing the Apache Portable Runtime (APR). This is found in the
apache2-devel rpm package, which I see you do not seem to have. Download
it from Falsehope as well.

>j2sdk-1_4_2-beta-linux-i586.rpm
>apache2-2.0.45-1.7.2.i386.rpm
>tomcat-4.1.24.tar.gz
>tomcat-connectors-4.1.24-src.tar.gz or mod_jk2-ap20-2.0.1-1jpp.i386.rpm, I
>got the same results both ways.
>
>
>Any help or ideas would be greatly appreciated. Thanks
>
>
>
Regards,
pascal chong




-
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: All threads are busy, waiting

2003-06-07 Thread Billy Ng
Is it the maxProcessor option?

Billy Ng

- Original Message -
From: "Reynir Hübner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Billy Ng"
<[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 2:57 AM
Subject: RE: All threads are busy, waiting


Hi,

I think I would have heard about it before if it was, I used 4.1.12 for
production for many months on a loaded server, with out ever seeing that
problem.

My guess is that you do Thread.sleep() or something in that way in your
application, or every request takes a very long time to execute.

You can increase the amount of threads in tomcat by editing server.xml
(where you specify the connector you use).


Hope it helps
-reynir


> -Original Message-
> From: Billy Ng [mailto:[EMAIL PROTECTED]
> Sent: 7. júní 2003 00:05
> To: Tomcat Users List
> Subject: All threads are busy, waiting
>
>
> Hi folks,
>
> I am using tomcat 4.1.12.  I get "All threads are busy,
> waiting." so often.  Is it a bug in the tomcat?
>
> Billy Ng
>

-
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: Assessing Tomcat's State

2003-06-07 Thread Francisco J. Bido
That's a good idea.  Thanks!

Take care,
-FB
On Saturday, June 7, 2003, at 03:23  PM, Tim Funk wrote:

The easy kluge is to hack the startup scripts  (or write wrappers) 
around the startup scripts to maintain this status in some file, for 
arguements sake: cowbell.txt

In startup.sh --> echo "starting" > cowbell.txt
In startup.sh, a timer does wgets on a static asset. Once the asset is 
returned correctly: echo "started" > cowbell.txt

In shutdown.sh --> echo "stopping" > cowbell.txt
In shutdown.sh --> A timer looking for the java process id. Once the 
process ID is gone, echo "stopped" > cowbell.txt

-Tim

Francisco J. Bido wrote:
Thanks Tim,
Those suggestions work pretty well for checking the "running" and the 
"stopped" states.  The ones giving me a headache are really "starting 
up" and "shutting down".The only thing I can think of at this 
point is to monitor the size of catalina.out and trigger an event 
went it doesn't change.
This is nasty since many things can cause the file to appear idle 
i.e., a busy CPU.  Any thoughts on these assessing these remaining 
states?
-FB
On Saturday, June 7, 2003, at 02:41  PM, Tim Funk wrote:
Depending on your needs if you just need UP or down, you can use 
wget or a similar agent.

You can also set CATALINA_PID in unix before calling the startup 
scripts and the file referenced by CATALINA_PID will contain the 
process ID.

Or you can write a LifeCycle Listener to trap startup and shutdown 
events.

-Tim

Francisco J. Bido wrote:

Is there any way to assess Tomcat's state via an environment 
variable?  For example, I would like to poll an environment 
variable to see if Tomcat is:
1. starting up
2. running
3. shutting down
4. stopped
There're a bunch of other states out there but the above fulfill my 
immediate needs.
Parsing through the catalina.out log file is the only way I know 
how to do this but this is approach is way too clumsy and ugly.
Thanks!
-FB



-
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: allowLinking and Warp Connector

2003-06-07 Thread Tim Funk
I recommend dumping the warp conector and using JK.

-Tim

[EMAIL PROTECTED] wrote:
Hello everybody,

We are using Tomcat 4.1.24 and our Webapps are accessed via a symbolic link.

Thus I had to configure my Contexts with a the allowLinking option:



This worked well if I connected via Http to Tomcat.

But when I tried to connect via a warp connection, the web.xml was not
found. (the typical "allowLinking=false"-error)
I tried to define the warp connector within a separate service and defined
the contexts in there.
And I tried to define the connector within the standard service that already
worked... No Way.
Was anybody able to enable allowLinking together with the Warp connector?

Greethings, Thomas
 


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


Re: Assessing Tomcat's State

2003-06-07 Thread Tim Funk
The easy kluge is to hack the startup scripts  (or write wrappers) around the 
startup scripts to maintain this status in some file, for arguements sake: 
cowbell.txt

In startup.sh --> echo "starting" > cowbell.txt
In startup.sh, a timer does wgets on a static asset. Once the asset is 
returned correctly: echo "started" > cowbell.txt

In shutdown.sh --> echo "stopping" > cowbell.txt
In shutdown.sh --> A timer looking for the java process id. Once the process 
ID is gone, echo "stopped" > cowbell.txt

-Tim

Francisco J. Bido wrote:
Thanks Tim,

Those suggestions work pretty well for checking the "running" and the 
"stopped" states.  The ones giving me a headache are really "starting 
up" and "shutting down".The only thing I can think of at this point 
is to monitor the size of catalina.out and trigger an event went it 
doesn't change.
This is nasty since many things can cause the file to appear idle i.e., 
a busy CPU.  Any thoughts on these assessing these remaining states?

-FB

On Saturday, June 7, 2003, at 02:41  PM, Tim Funk wrote:

Depending on your needs if you just need UP or down, you can use wget 
or a similar agent.

You can also set CATALINA_PID in unix before calling the startup 
scripts and the file referenced by CATALINA_PID will contain the 
process ID.

Or you can write a LifeCycle Listener to trap startup and shutdown 
events.

-Tim

Francisco J. Bido wrote:

Is there any way to assess Tomcat's state via an environment 
variable?  For example, I would like to poll an environment variable 
to see if Tomcat is:
1. starting up
2. running
3. shutting down
4. stopped
There're a bunch of other states out there but the above fulfill my 
immediate needs.
Parsing through the catalina.out log file is the only way I know how 
to do this but this is approach is way too clumsy and ugly.
Thanks!
-FB



-
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: Assessing Tomcat's State

2003-06-07 Thread Francisco J. Bido
Thanks Tim,

Those suggestions work pretty well for checking the "running" and the 
"stopped" states.  The ones giving me a headache are really "starting 
up" and "shutting down".The only thing I can think of at this point 
is to monitor the size of catalina.out and trigger an event went it 
doesn't change.
This is nasty since many things can cause the file to appear idle i.e., 
a busy CPU.  Any thoughts on these assessing these remaining states?

-FB

On Saturday, June 7, 2003, at 02:41  PM, Tim Funk wrote:

Depending on your needs if you just need UP or down, you can use wget 
or a similar agent.

You can also set CATALINA_PID in unix before calling the startup 
scripts and the file referenced by CATALINA_PID will contain the 
process ID.

Or you can write a LifeCycle Listener to trap startup and shutdown 
events.

-Tim

Francisco J. Bido wrote:
Is there any way to assess Tomcat's state via an environment 
variable?  For example, I would like to poll an environment variable 
to see if Tomcat is:
1. starting up
2. running
3. shutting down
4. stopped
There're a bunch of other states out there but the above fulfill my 
immediate needs.
Parsing through the catalina.out log file is the only way I know how 
to do this but this is approach is way too clumsy and ugly.
Thanks!
-FB



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


Switching to virtual hosts gives permission error

2003-06-07 Thread Dave Weitzel
I am setting up RH Linux with Apache 1.3.27 and tomcat 3.3.1a

I am able to set up in initial sites and access directly with Tomcat (port
8080) and also individually with Apache and Tomcat (ajp13)

 

However as soon as I enable NameVirtualHost * in the httpd.conf and put
  around the JkMount directives with associated
DocumentRoot and ServerName entries I get Apache reporting:

 

Forbidden

You do not have access to / (or whatever URL I type in.)

 

Has anyone seen this before? 

 

 

 

Dave Weitzel | Consulting Manager Teamware

Avectra - A Teamware Partner

[EMAIL PROTECTED]  

phone: +1 703 394 0980 ext 1241 fax: +1 703 394 0985

cell phone: + 1 240 401 9505.

 



Re: Assessing Tomcat's State

2003-06-07 Thread Tim Funk
Depending on your needs if you just need UP or down, you can use wget or a 
similar agent.

You can also set CATALINA_PID in unix before calling the startup scripts and 
the file referenced by CATALINA_PID will contain the process ID.

Or you can write a LifeCycle Listener to trap startup and shutdown events.

-Tim

Francisco J. Bido wrote:
Is there any way to assess Tomcat's state via an environment variable?  
For example, I would like to poll an environment variable to see if 
Tomcat is:

1. starting up
2. running
3. shutting down
4. stopped
There're a bunch of other states out there but the above fulfill my 
immediate needs.

Parsing through the catalina.out log file is the only way I know how to 
do this but this is approach is way too clumsy and ugly.

Thanks!
-FB
 


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


Assessing Tomcat's State

2003-06-07 Thread Francisco J. Bido
Is there any way to assess Tomcat's state via an environment variable?  
For example, I would like to poll an environment variable to see if 
Tomcat is:

1. starting up
2. running
3. shutting down
4. stopped
There're a bunch of other states out there but the above fulfill my 
immediate needs.

Parsing through the catalina.out log file is the only way I know how to 
do this but this is approach is way too clumsy and ugly.

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


Re: what's an MBean and why won't my AJP13 listenere work?

2003-06-07 Thread Tim Funk
Try using the coyote listeners.

-Tim

Dave Naden wrote:
I'm trying to config Tomcat 4.1.24 with IIS, and one step is to uncomment the line from server.xml:




but when I do this, Tomcat won't start, and I get the following in the error log:

Jun 7, 2003 1:40:03 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:227
)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:402)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:854)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:828)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:372)
at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
Can anybody help?  

-Dave Naden

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


what's an MBean and why won't my AJP13 listenere work?

2003-06-07 Thread Dave Naden
I'm trying to config Tomcat 4.1.24 with IIS, and one step is to uncomment the line 
from server.xml:





but when I do this, Tomcat won't start, and I get the following in the error log:

Jun 7, 2003 1:40:03 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:227
)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:402)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:854)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:828)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:372)
at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser

Can anybody help?  

-Dave Naden


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



RE: location of jsp class files

2003-06-07 Thread Thomas . Rimmele
$CATALINA_HOME/work/...

greethings Thomas
-Original Message-
From: Rob [mailto:[EMAIL PROTECTED]
Sent: Samstag, 7. Juni 2003 18:15
To: [EMAIL PROTECTED]
Subject: location of jsp class files


Where does tomcat place the class files of jsp files it compiles?

Thanks


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



location of jsp class files

2003-06-07 Thread Rob
Where does tomcat place the class files of jsp files it compiles?

Thanks

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


Having a problem with IIS and Tomcat 4.1.24 config

2003-06-07 Thread Jeffrey Cummings
I am trying to setup tomcat 4.1.24 with IIS. I get the following message


HTTP Status 404 - /tomcat/isapi_redirect.dll

  _

type Status report
message /tomcat/isapi_redirect.dll
description The requested resource (/tomcat/isapi_redirect.dll) is not
available.
  _


Apache Tomcat/4.1.24


My registry settings

extension_uri - /tomcat/isapi_redirector.dll
worker_file - C:\Jakarta-4.1.24\conf\workers.properties
worker_mount_file - C:\Jakarta-4.1.24\conf\uriworkermap.properties
log_file - C:\Jakarta-4.1.24\logs\mod_jk_iis.log
log_level - debug


I have a virtual directory tomcat -> C:\Jakarta-4.1.24\conf
(isapi_redirector.dll is in the conf directory)
I’ve set up the filter in the default web site for tomcat ( it has a green
arrow)
I’m running XP (this is where I test then move to Win2K)
By the way, http://localhost:8080/examples/jsp/index.html works fine


Here is the isapi log when I make the request for
http://localhost/examples/jsp/index.html

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp13
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp13
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (766)]: HttpFilterProc
started
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (829)]: In HttpFilterProc
Virtual Host redirection of /localhost/tomcat/isapi_redirect.dll
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/localhost/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (835)]: In HttpFilterProc
test Default redirection of /tomcat/isapi_redirect.dll
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (899)]: HttpFilterProc
[/tomcat/isapi_redirect.dll] is not a servlet url
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (908)]: HttpFilterProc check
if [/tomcat/isapi_redirect.dll] is points to the web-inf directory
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (948)]: HttpExtensionProc
started
[Sat Jun 07 09:18:40 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Sat Jun 07 09:18:40 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (983)]: HttpExtensionProc got
a worker for name ajp13
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1448)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 497
seconds
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1116)]: Into
jk_endpoint_t::service
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (642)]: sending to ajp13 #314
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13 #81
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (483)]: ajp_unmarshal_response:
status = 404
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (488)]: ajp_unmarshal_response:
Number of headers is = 2
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[1] [Content-Language] = [en-US]
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (432)]: Into
jk_ws_service_t::start_response
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13
#747
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (566)]: Into
jk_ws_service_t::write
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13 #2
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (995)]: HttpExtensionProc
service() returned OK
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1382)]: Into
jk_endpoint_t::done, recycling connection

What have I missed?



Jeff




RE: having problem with getInitParameter()

2003-06-07 Thread Thomas . Rimmele
Hy,
I think your forgot the -tag

Greethings, Thomas



xxx


yyy


key
value




-Original Message-
From: bilal sulehri [mailto:[EMAIL PROTECTED]
Sent: Samstag, 7. Juni 2003 17:41
To: [EMAIL PROTECTED]
Subject: having problem with getInitParameter()


Hi, I m having problem with the the get InitParameter method of 
ServletConfig class,
I m adding tags as following in both tomcat_home/conf/web.xml and 
/tomcat_home/webapps/ROOT/web-inf/web.xml but it's not working


  ...
  ...
  pname
  pvalue


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



allowLinking and Warp Connector

2003-06-07 Thread Thomas . Rimmele
Hello everybody,

We are using Tomcat 4.1.24 and our Webapps are accessed via a symbolic link.


Thus I had to configure my Contexts with a the allowLinking option:




This worked well if I connected via Http to Tomcat.

But when I tried to connect via a warp connection, the web.xml was not
found. (the typical "allowLinking=false"-error)

I tried to define the warp connector within a separate service and defined
the contexts in there.

And I tried to define the connector within the standard service that already
worked... No Way.

Was anybody able to enable allowLinking together with the Warp connector?


Greethings, Thomas



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



Re: Problem executing Servlets with Tomcat 4.1.24

2003-06-07 Thread David Erickson
Ya that fixed it, thank you so much! This problem has been driving me CRAZY
you have no idea =P
-David

- Original Message - 
From: "Reynir Hübner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 4:12 AM
Subject: RE: Problem executing Servlets with Tomcat 4.1.24


I am guessing that you do not have a mapping on the invoker servlet in
web.xml

Open the /tomcat_home/conf/web.xml  and
Unremark the block that mapps the invoker to /servlet/*

Hope it helps
-reynir



> -Original Message-
> From: David Erickson [mailto:[EMAIL PROTECTED]
> Sent: 7. júní 2003 05:42
> To: [EMAIL PROTECTED]
> Subject: Problem executing Servlets with Tomcat 4.1.24
>
>
> Hi I'm new to the whole java scene but I'm trying to get some
> example and test servlets running and having all kinds of
> problems.  I have a working tiny servlet thats compiled as
> ExampleServlet.class.  However the only place I can get
> tomcat to execute it is when i put it in the (tomcat home
> dir)\webapps\examples\WEB-INF\classes dir with the rest of
> the examples. When I create my own directory under (tomcat
> home dir)\webapps\begjsp\WEB-INF\classes and put it there it
> will not execute it i get the error 404 type Status report
>
> message /begjsp/servlet/ExampleServlet
>
> description The requested resource
> (/begjsp/servlet/ExampleServlet) is not available
>
> Which is highly annoying.  When I run the manager and list
> the running webapps it lists the begjsp as being deployed and
> running.  Makes no sense! This is basically a default
> install..  and I read there is a web.xml file that generally
> goes into the WEB-INF\ folder but I am missing one, it should
> run even without one correct?  Here's my class code just
> incase I screwed it up somehow.. but it works in the examples
> folder..:
>
>
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class ExampleServlet extends HttpServlet
> {
>
>  public void doGet(HttpServletRequest request,
> HttpServletResponse response)
>   throws ServletException, IOException
>  {
>   PrintWriter out;
>   String title = "Servlet Example";
>   response.setContentType("text/html");
>   out = response.getWriter();
>   out.println("");
>   out.println(title);
>   out.println("");
>   out.println("This is an example servlet.");
>   out.println("");
>   out.close();
>  }
>  public void doPost(HttpServletRequest request, HttpServletResponse
> response)
>   throws ServletException, IOException
>  {
>   doGet(request, response);
>  }
> }
>
>
> Any and ALL help appreciated =)
>
> -Halcyon
>
>
>

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



having problem with getInitParameter()

2003-06-07 Thread bilal sulehri
Hi, I m having problem with the the get InitParameter method of 
ServletConfig class,
I m adding tags as following in both tomcat_home/conf/web.xml and 
/tomcat_home/webapps/ROOT/web-inf/web.xml but it's not working


 ...
 ...
 pname
 pvalue

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Re: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Chong Yu Meng
Michael Cardon wrote:

Where I am missing this?: undefined symbol: apr_md5_final
My platform: RH Linux 8.0
 

You're missing the Apache Portable Runtime (APR). This is found in the 
apache2-devel rpm package, which I see you do not seem to have. Download 
it from Falsehope as well.

j2sdk-1_4_2-beta-linux-i586.rpm
apache2-2.0.45-1.7.2.i386.rpm
tomcat-4.1.24.tar.gz
tomcat-connectors-4.1.24-src.tar.gz or mod_jk2-ap20-2.0.1-1jpp.i386.rpm, I
got the same results both ways.
Any help or ideas would be greatly appreciated. Thanks

 

Regards,
pascal chong


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


isapi_redict

2003-06-07 Thread Mauricio Hernandez
Hi to all , I just started with java and got a problem about it, I'm running Tomcat 
4.1.24 under Win2k Adv Server. and  I need the following DLL isapi_redirect.dll , to 
make it work with another software, but I can find only this dll for v3.3 Tomcat,  As 
I was surfing the web I can create my own isapi_redirect but I need to have installed 
Visual C++ Ver.6.0, and don't want to install the whole package just to create it, my 
question is, If is there any light software to create it or can I use the dll for v 
3.3... whould be a problem with version 4.1.24 or is there any place where I can find 
this file for v 4.1.24 ..?

Thanks for all your help 

Maui



Having a problem with IIS and Tomcat 4.1.24 config

2003-06-07 Thread Jeffrey Cummings
I am trying to setup tomcat 4.1.24 with IIS. I get the following message


HTTP Status 404 - /tomcat/isapi_redirect.dll

  _

type Status report
message /tomcat/isapi_redirect.dll
description The requested resource (/tomcat/isapi_redirect.dll) is not
available.
  _


Apache Tomcat/4.1.24

My registry settings
Name
Data
extension_uri
/tomcat/isapi_redirector.dll
worker_file
C:\Jakarta-4.1.24\conf\workers.properties
worker_mount_file
C:\Jakarta-4.1.24\conf\uriworkermap.properties
log_file
C:\Jakarta-4.1.24\logs\mod_jk_iis.log
log_level
debug

I have a virtual directory tomcat -> C:\Jakarta-4.1.24\conf
(isapi_redirector.dll is in the conf directory)
I’ve set up the filter in the default web site for tomcat ( it has a green
arrow)
I’m running XP (this is where I test then move to Win2K)
By the way, http://localhost:8080/examples/jsp/index.html works fine

Here is the isapi log when I make the request for
http://localhost/examples/jsp/index.html
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp13
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp13
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (766)]: HttpFilterProc
started
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (829)]: In HttpFilterProc
Virtual Host redirection of /localhost/tomcat/isapi_redirect.dll
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/localhost/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (835)]: In HttpFilterProc
test Default redirection of /tomcat/isapi_redirect.dll
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (899)]: HttpFilterProc
[/tomcat/isapi_redirect.dll] is not a servlet url
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (908)]: HttpFilterProc check
if [/tomcat/isapi_redirect.dll] is points to the web-inf directory
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (948)]: HttpExtensionProc
started
[Sat Jun 07 09:18:40 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Sat Jun 07 09:18:40 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (983)]: HttpExtensionProc got
a worker for name ajp13
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1448)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 497
seconds
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1116)]: Into
jk_endpoint_t::service
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (642)]: sending to ajp13 #314
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13 #81
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (483)]: ajp_unmarshal_response:
status = 404
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (488)]: ajp_unmarshal_response:
Number of headers is = 2
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[1] [Content-Language] = [en-US]
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (432)]: Into
jk_ws_service_t::start_response
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13
#747
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (566)]: Into
jk_ws_service_t::write
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13 #2
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (995)]: HttpExtensionProc
service() returned OK
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1382)]: Into
jk_endpoint_t::done, recycling connection

What have I missed?


Jeff




Re: tomcat 5 won't compile my jsp

2003-06-07 Thread Tim Funk
Tomcat5 precompiles all of it's jsps during the build of tomcat5.

So if you change any jsp shipped with tomcat you will either need to
A) Rename your change to a new file
  -- or --
B) Remove the web.xml entries which map the jsps to a particualr class
-Tim

Julien Martin wrote:
Hello,

I am having a problem with tomcat5/jwsdp-1.2.
Tomcat doesn't take into account changes made to jsp. If I delete the
generated java file and the class file compiled from it, Tomcat won't
translate(jsp->java) it and compile (java->class) it.
The specific file I am having a problem with is
jsp%jwsdp_home%\webapps\jsp-examples\jsp2\el\implicit-objects.jsp
Please help.

Julien.

 


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


RE: Problem executing Servlets with Tomcat 4.1.24

2003-06-07 Thread Reynir Hübner
I am guessing that you do not have a mapping on the invoker servlet in web.xml

Open the /tomcat_home/conf/web.xml  and
Unremark the block that mapps the invoker to /servlet/*

Hope it helps
-reynir



> -Original Message-
> From: David Erickson [mailto:[EMAIL PROTECTED] 
> Sent: 7. júní 2003 05:42
> To: [EMAIL PROTECTED]
> Subject: Problem executing Servlets with Tomcat 4.1.24
> 
> 
> Hi I'm new to the whole java scene but I'm trying to get some 
> example and test servlets running and having all kinds of 
> problems.  I have a working tiny servlet thats compiled as 
> ExampleServlet.class.  However the only place I can get 
> tomcat to execute it is when i put it in the (tomcat home 
> dir)\webapps\examples\WEB-INF\classes dir with the rest of 
> the examples. When I create my own directory under (tomcat 
> home dir)\webapps\begjsp\WEB-INF\classes and put it there it 
> will not execute it i get the error 404 type Status report
> 
> message /begjsp/servlet/ExampleServlet
> 
> description The requested resource 
> (/begjsp/servlet/ExampleServlet) is not available
> 
> Which is highly annoying.  When I run the manager and list 
> the running webapps it lists the begjsp as being deployed and 
> running.  Makes no sense! This is basically a default 
> install..  and I read there is a web.xml file that generally 
> goes into the WEB-INF\ folder but I am missing one, it should 
> run even without one correct?  Here's my class code just 
> incase I screwed it up somehow.. but it works in the examples 
> folder..:
> 
> 
> 
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> 
> public class ExampleServlet extends HttpServlet
> {
> 
>  public void doGet(HttpServletRequest request, 
> HttpServletResponse response)
>   throws ServletException, IOException
>  {
>   PrintWriter out;
>   String title = "Servlet Example";
>   response.setContentType("text/html");
>   out = response.getWriter();
>   out.println("");
>   out.println(title);
>   out.println("");
>   out.println("This is an example servlet.");
>   out.println("");
>   out.close();
>  }
>  public void doPost(HttpServletRequest request, HttpServletResponse
> response)
>   throws ServletException, IOException
>  {
>   doGet(request, response);
>  }
> }
> 
> 
> Any and ALL help appreciated =)
> 
> -Halcyon
> 
> 
> 

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



RE: Sun JVM vs. JRockit

2003-06-07 Thread Reynir Hübner
Hi, 

You know, there is a flag in tomcat/conf/web.xml on the jasper config :

 
enablePooling
false
   

So you shouldn't need to disable tagpooling in tomcat source before compiling it. 

I've always had a problem with tagpooling and using the osCache (www.opensymphony.com) 
library. For some reason it does not work correctly with tomcat, so I have to disable 
tagpooling too. 

-reynir


> -Original Message-
> From: Bill Barker [mailto:[EMAIL PROTECTED] 
> Sent: 7. júní 2003 04:24
> To: [EMAIL PROTECTED]
> Subject: Re: Sun JVM vs. JRockit
> 
> 
> 
> "joe user" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> >
> > --- Bill Barker <[EMAIL PROTECTED]> wrote:
> > > From what I've seen, for small number of requests
> > > like this, the overhead of
> > > managing the tagpool swamps what it saves in GC.
> > > You might want to try
> > > disabling tag-pooling (and clear the work dir), and
> > > re-run the test on 4.1.
> >
> > Object pooling is just bad design and it should be
> > removed from the spec.  We don't pool StringBuffers or HashSets or 
> > whatever because that results in crappy performance.  
> Object pooling 
> > used to be a good idea way back in the Java 1.1 days but 
> now, with the
> > exception of very expensive objects like database
> > connections, object pooling makes performance worse.
> > The GC is very very effecient and it does a better job
> > than an object pool can do.  Also, pooling Tag objects
> > can result in various kinds of bugs that are
> > essentially memory management type of bugs.  One of
> > the main reasons we are using Java instead of C++ is
> > _because_ of the GC.  We should use it, not fight it.
> > I hope that Tag pooling is removed entirely from the
> > spec soon.
> >
> 
> I agree.  That's why one of the first things I do when 
> setting up a new production Tomcat is to go into Jasper and 
> disable tag-pooling before compiling it  ;-).
> 
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Calendar - Free online calendar with sync to Outlook(TM). 
> > http://calendar.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]



RE: All threads are busy, waiting

2003-06-07 Thread Reynir Hübner
Hi, 

I think I would have heard about it before if it was, I used 4.1.12 for production for 
many months on a loaded server, with out ever seeing that problem.

My guess is that you do Thread.sleep() or something in that way in your application, 
or every request takes a very long time to execute. 

You can increase the amount of threads in tomcat by editing server.xml (where you 
specify the connector you use).


Hope it helps
-reynir


> -Original Message-
> From: Billy Ng [mailto:[EMAIL PROTECTED] 
> Sent: 7. júní 2003 00:05
> To: Tomcat Users List
> Subject: All threads are busy, waiting
> 
> 
> Hi folks,
> 
> I am using tomcat 4.1.12.  I get "All threads are busy, 
> waiting." so often.  Is it a bug in the tomcat?
> 
> Billy Ng
> 

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



JK2 Documentation

2003-06-07 Thread NormW
Good evening All.
I have a few questions re the configuration and operation of mod_jk2 that I hope some 
better informed user may be able to answer.

1. The documentation describes setting parameters in the httpd.conf file using JkSet, 
and I have had success with worker parameters, but trying to set something like the 
config file keeps eluding me. The 'object' name usually comes from the section head 
[config], and since there is no local component name one expects the setting would be:
   JkSet  config.file conf/
However when I start apache2 the following error is generated depending on the form 
used:

[Fri Jun 06 20:08:31 2003] [notice] mod_jk2: Unrecognized option config:file 
conf/workers2.properties
[Fri Jun 06 20:17:55 2003] [notice] mod_jk2: Unrecognized option config.file 
conf/workers2.properties
[Fri Jun 06 20:43:03 2003] [notice] mod_jk2: Unrecognized option config:.file 
conf/workers2.properties
[Fri Jun 06 20:45:28 2003] [notice] mod_jk2: Unrecognized option config:file 
${serverRoot}/conf/workers2.properties

Can someone enlighten me please?

2. The documentation indicates all objects have three standard properties, namely 
'disabled', 'debug' and 'version', yet when 'version=0' is included in 
workers2.properties under, for example, ajp13, mod_jk2 reports it as an unrecognised 
option. Which is correct, the module or the documents?

3. The basic premise of load balancing is understandable but not the method by which 
mod_jk achieves it.  If two workers have the same lb_factor of 1, does that imply 
every second (unique, assuming sticky sessions) request goes to each Tomcat?  ... and 
if the lb_factor is raised to 5 each? 5 to one then 5 the other?
If one Tomcat has an lb_factor of 20 and the other 2, does one do ten times the 'work' 
and if so how is this 'measured'? ...over a period of time, by counters, by preference?

I've read mod_jk2 is still a work in progress but hope the questions might provide at 
least a few ideas for inclusions.
Thanks in advance for any reply,
Norm


Re: JDBC and MS Access DB connectivity.

2003-06-07 Thread Michael Rimov
At 09:26 PM 6/5/2003 +0100, you wrote:
I'm trying to use DataSource objects (eventually connection pooling) with MS
Access Database.
My question is, do we have to have an ODBC-JDBC Bridge driver in place in
$CATALINA_HOME/common/lib/ location for using javax.sql.DataSource objects
to create connections to the database.
If so, where do I get this jar file for the driver?
JDBC-ODBC bridge comes AFAICT as part of the JDK.  HOWEVER, don't 
[emphasis] use it for production use.  And I even doubt if the default 
bridge implements javax.sql.DataSource  [Can't verify, but since it 
doesn't even do Metadata for tables, I'm dubious about it ]
If you MUST use production JDBC to ODBC  then perhaps try something like 
Easysoft's drivers. {Commercial}

http://www.easysoft.com/products/2003/main.phtml

[I haven't tried it myself... but they advertise a 'production quality' 
bridge, and I've at least used their InterBase ODBC driver with success]

HTH,
-Mike


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


RE: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Michael Cardon
Thank you Bill, I'll give that a try

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker
Sent: Friday, June 06, 2003 9:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Help Please: Starting Tomcat using channelUnix with mod_jk2


You need to have libapr on your LD_LIBRARY_PATH when you start Tomcat.

"Michael Cardon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Where I am missing this?: undefined symbol: apr_md5_final
>
>
> When I start my instance of tomcat it writes the following to
catalina.out:
>
> Jun 6, 2003 9:49:55 AM org.apache.commons.modeler.Registry loadRegistry
> INFO: Loading registry information
> Jun 6, 2003 9:49:55 AM org.apache.commons.modeler.Registry getRegistry
> INFO: Creating new Registry instance
> Jun 6, 2003 9:49:56 AM org.apache.commons.modeler.Registry getServer
> INFO: Creating MBeanServer
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.24
> Jun 6, 2003 9:50:00 AM org.apache.jk.server.JkMain start
> INFO: APR not loaded, disabling jni components: java.io.IOException:
> /usr/lib/apache2/jkjni.so: /usr/lib/apache2/jkjni.so: undefined symbol:
> apr_md5_final
> Jun 6, 2003 9:50:00 AM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 disabling channelSocket
> Jun 6, 2003 9:50:00 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=1/50
> config=/home/jakarta1/tomcat/conf/jk2.properties
>
>
> My jk2.properties file looks like this:
>
> handler.list=apr,channelUnix,request
> channelUnix.file=${tomcatHome}/work/jk2.socket
> apr.NativeSo=/usr/lib/apache2/jkjni.so
>
>
> My platform: RH Linux 8.0
>
> j2sdk-1_4_2-beta-linux-i586.rpm
> apache2-2.0.45-1.7.2.i386.rpm
> tomcat-4.1.24.tar.gz
> tomcat-connectors-4.1.24-src.tar.gz or mod_jk2-ap20-2.0.1-1jpp.i386.rpm, I
> got the same results both ways.
>
>
> Any help or ideas would be greatly appreciated. Thanks




-
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 5 won't compile my jsp

2003-06-07 Thread Julien Martin
Hello,

I am having a problem with tomcat5/jwsdp-1.2.
Tomcat doesn't take into account changes made to jsp. If I delete the
generated java file and the class file compiled from it, Tomcat won't
translate(jsp->java) it and compile (java->class) it.

The specific file I am having a problem with is
jsp%jwsdp_home%\webapps\jsp-examples\jsp2\el\implicit-objects.jsp

Please help.

Julien.


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