Re[2]: oci8 driver problem on Linux

2002-04-24 Thread Andrew . Bate



Tim Cronin [EMAIL PROTECTED] wrote:-

   All I saw on the oracle site was 8i oci driver for solaris
   where are the linux drivers?

I think we downloaded the NT driver as NT is our main platform for
development.  I've got a RedHat7.2 server sat on my desk as well though and
the same classes12.zip works fine on that.

http://technet.oracle.com/software/tech/java/sqlj_jdbc/content.html

Andrew





**
This message has been sent via the Internet. Internet communications 
are not secure against interception or modification. Severn Trent 
Systems therefore can not guarantee that this message has not been
modified in transit, and this message should not be viewed as 
contractually binding.

This message and any files transmitted with it are confidential and 
intended solely for the use of the addressee. If you have received 
this message in error please notify the sender and destroy your
copies of the message and any attached files. 
***
Severn Trent Systems Ltd : a part of Severn Trent plc. 
Registered in England and Wales Registration No. 2394552


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




RE: Problem adding new servlets under Tomcat 4.0.3

2002-04-24 Thread Jacob Kjome

Are you able to run the examples context that comes with Tomcat?

Are any servlets in any context actually able to run?  That should 
work.  Are there any errors coming up in the logs or console from your context?

Jake

At 10:29 PM 4/23/2002 -0700, you wrote:
Jacob,

Thanks for the help, but still doen't seem to work.  Changed the web.xml
file to read
 servlet
 servlet-nameSimpleHello/servlet-name
 servlet-classmyexamples.SimpleHello/servlet-class
 /servlet
 servlet-mapping
 servlet-nameSimpleHello/servlet-name
 url-pattern/SimpleHello/url-pattern
 /servlet-mapping

like you said and then tried all of the following:

http://localhost:8080/testapp/SimpleHello
http://localhost:8080/testapp/servlet/SimpleHello
http://localhost:8080/testapp/servlet/myexamples.SimpleHello

still no go.  Get the HTTP Status 404 error, resource is not available.

(I have to use the :8080 since I have been unable to get the Apache - Tomcat
link to work for Apache 2.0.35 and Tomcat 4.0.3 under Windows XP)

Ken


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



tomcat error on https

2002-04-24 Thread M.Hanizan

HI, good day Gurus :)

I am new in the list. I have a problem running tomcat (.jsp file) with apache 
+ mod_ssl.

I had configure the httpd.conf inside virtual _default:443 segment by 
adding a few lines (as i followed most of tomcat + apache + mod_ssl 
documentation).

The problem is, the .jsp file not run when I call it inside https:// is not 
working. For example https://mylocalhost/examples/servlet/HelloWorldExample
However when I use without ssl, eg: 
http://mylocalhost/examples/servlet/HelloWorldExample it work.

Is it because of my httpd.conf wrong (the order of the module). 

Do you guys have a good documentation on how to configure tomcat + apache + 
mod_ssl?

Thanks and regard :)
M.Hanizan

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




Install Tomcat 4.0 + JDK 1.4.

2002-04-24 Thread Kroeksak Kongman

Dear All,
 
  1. I'm install Tomcat 4.0 + JDK 1.4. I can run some jsp file
but XML have some error..
 
(.tld and jsp file, it can run in old version ...Tomcat 3.2.3  JDK 1.3.2)
 
  2. I can use javac to complie .java ot .class when I call HelloWorld.calss 
from IE 6.0, 
it open window File Download ...for save this file to disk...it not work..
 
Please would you hep me for solve this problem..
 
Best Regards,
Kroeksak Kongman
 
(This can run in old version ...Tomcat 3.2.3  JDK 1.3.2)
Result:
 
 
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/jsp/taglib.tld: 
(line 2, col 7): The XML declaration may only appear at the very beginning of the 
document.
at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:218)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)



RE: Install Tomcat 4.0 + JDK 1.4.

2002-04-24 Thread Brett Porter

1. the old XML parser was probably more lenient. The syntax in the XML
sounds wrong, something before the ?xml ? tag I guess

2. did you expect anything else? You are trying to serve the class file as
content, you should place it under WEB-INF/classes and then setup web.xml.
You should read some of the Tomcat documentation on how to construct a web
application.

Regards,
Brett

-Original Message-
From: Kroeksak Kongman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 April 2002 5:32 PM
To: [EMAIL PROTECTED]
Subject: Install Tomcat 4.0 + JDK 1.4.


Dear All,
 
  1. I'm install Tomcat 4.0 + JDK 1.4. I can run some jsp file
but XML have some error..
 
(.tld and jsp file, it can run in old version ...Tomcat 3.2.3  JDK 1.3.2)
 
  2. I can use javac to complie .java ot .class when I call
HelloWorld.calss from IE 6.0, 
it open window File Download ...for save this file to disk...it not work..
 
Please would you hep me for solve this problem..
 
Best Regards,
Kroeksak Kongman
 
(This can run in old version ...Tomcat 3.2.3  JDK 1.3.2)
Result:
 
 
org.apache.jasper.JasperException: XML parsing error on file
/WEB-INF/jsp/taglib.tld: (line 2, col 7): The XML declaration may only
appear at the very beginning of the document.
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:218)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:283)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)



xerces, Parser xml / tomcat4

2002-04-24 Thread staginfo-ar

Hi,
I want to use xerces2 in order to parse xml. How can i do that?
I 've download and unzip files from xml-apache.org but I don't know how I
can use it.
Help!!
Thanks a lot.
Jc


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




LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread yilmaz

Hi everyone,
i know everyone is already sick of reading problems about apache and tomcat. I read 
almost all related mails and articles (how-to's) on the internet , which didn't help.
i am working with tomcat 4.0-b7 on win 2000.
And using apcahe 2.
according to the instructions on the articles downloaded mod_webapp.so and put it 
under modules/ directory.
The tomact and apache both work fine without problem.
When i add 
LoadModule webapp_module modules/mod_webapp.so
in my httpd.conf file, i can't get apache started. It says the requested operation 
has failed.
Is there any syntax error, or something else?
(note: i added the above line just under the default loadmodule lines defined in the 
httpd.conf file)
Any help please : (
Thanks :)



Enabling browser caching of (BASIC) authenticated pages (includingpage expiry and 304 responses to conditional gets)

2002-04-24 Thread Ben Walding

I would like the ability to be able to enable browser caching of pages 
that are authenticated (for instance with BASIC authentication).  At 
present, AuthenticatorBase prevents this from occurring.


Why do I want this?

1. I like being able to use container based security (realms and 
security-constraints) as it makes development simpler.

2. The content of my site does not need to be truly secure, just 
passworded. This is a conscious decision I have made.


Why I can't do this (without hacking the source)?

org.apache.catalina.authenticator.AuthenticatorBase prevents this by 
adding headers (Pragma: No-cache, Cache-Control: no-cache, Expires: 1 
(1970ish)) to the HttpResponse, disabling my ability to set expiry times 
and return 304 statuses (and stops the browser from caching 
effectively).  This adds significantly to the overhead for my site 
(which is an electronic photoalbum where the photos are served via 
servlets) - most users are on modems and the imposition of 15 x 5k 
thumbnails is excessive and unnecessary.

I've removed these lines from my TomCat, but this does not represent a 
viable long-term solution.  I didn't  even realise that caching was 
disabled until I went searching through to determine why expiry wasn't 
working.  I'm sure there are others out there in this situation.


Rectification?

I'm not sure.  I think this behaviour should be optional (and probably 
on the SecurityConstraint), but I couldn't see anywhere appropriate 
within security-constraint dtd to put this kind of option. I believe it 
should also be configurable at a per servlet level, although the added 
security that this gives is minimal.

In the meantime, I'll just have to fix AuthenticatorBase.

If this is a feature request somewhere, let me know, otherwise I'll file 
a feature request into the bug database.


(BTW, the photoalbum works really well (quickly) now as it understands 
conditional gets and can send 304s and appropriate expiry times). Thanks 
jakarta (especially TomCat!).

Any comments (including the comment - you are an idiot - do this...)

Cheers

Ben


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




how to include the parser's JAR files in the /WEB-INF/web.xml ?

2002-04-24 Thread Kroeksak Kongman

To make an XML parser available to your web applications, you have several options:

*   To utilize an XML parser in a single web application, simply include the 
parser's JAR files in the /WEB-INF/web.xml directory of that web application. This 
will work, no matter what parser might be used by Tomcat 4 internally, or by other web 
applications running in the same instance of Tomcat 4. 

Please would you tell me, 

how to include the parser's JAR files in the /WEB-INF/web.xml ?

Best Regards,

Koong

 




Re: how to include the parser's JAR files in the /WEB-INF/web.xml ?

2002-04-24 Thread Hamish Marson

Peter Romianowski wrote:

 should be like:
 put the parser's JAR into WEB-INF/lib to make them visible to your webapp


This currently fails for me on tomcat 4.02, under AIX 4.3.3 and Java 1.2.2. (ALthough 
it fails for all versions of Java I've
tried). I'm having to specify the actual jar files in the classpath pof java when 
catalina.sh starts it. The jars and seen 
deployed, but the classe sin them are not visible... Is there something mroe you need 
to do other than dropping jars in the
lib? Are there any limitations (e.g. java.security.interfaces)

H



 Peter

  -Original Message-
  From: Kroeksak Kongman [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 24, 2002 10:57 AM
  To: [EMAIL PROTECTED]
  Subject: how to include the parser's JAR files in the /WEB-INF/web.xml ?
 
 
  To make an XML parser available to your web applications, you have several options:
 
  * To utilize an XML parser in a single web application, simply include the 
parser's JAR files in the /WEB-INF/web.xml
  directory of that web application. This will work, no matter what parser might be 
used by Tomcat 4 internally, or by
  other web applications running in the same instance of Tomcat 4.
 
  Please would you tell me,
 
  how to include the parser's JAR files in the /WEB-INF/web.xml ?
 
  Best Regards,
 
  Koong
 
 
 
 

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

--

I don't suffer from Insanity... | Linux User #16396
I enjoy every minute of it...   |
|
http://www.travellingkiwi.com/  |




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




Re: xerces, Parser xml / tomcat4

2002-04-24 Thread Øyvind Vestavik


I reckon you can do it the standard way??

 Include xerces 2 in your
classpath for compiling purposes, copy the jar into  your webapps lib
directory  (create directory lib directly under web-inf dir if not already
there) or common\lib if you want xerces2 to be available for all webapps
under this instance of tomcat.
The jar has to be in one of these directories to prevent run-time errors
when using xerces. (Tomcat classloader has to find them)
Restart Tomcat if nessesary.

There might be a problem building a war when xerces2.jar is in common\lib
as it probably isn't including by the jar tool when you build it.
So when you deploy the war to another webserver, if that webserver doesn't
have xerces2, you could get a run-time Exception.
Including it in mywebapp\web-inf\lib, increases the size of the jar but
you are always sure xerces is found by the servers classloader.

Hope this helps. If its to basic, than my appologies..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Wed, 24 Apr 2002 [EMAIL PROTECTED] wrote:

 Hi,
 I want to use xerces2 in order to parse xml. How can i do that?
 I 've download and unzip files from xml-apache.org but I don't know how I
 can use it.
 Help!!
 Thanks a lot.
 Jc


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



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




RAM requirements of catalina ?

2002-04-24 Thread Abhi

I am using Tomcat 4 on a RH 7.2 linux server with 2Gb RAM using Sun JVM 1.4.

And apparently the sun's JVM ses it fit to create processes of 63 MB size
each, filling up about 1GB when I run catalina.

1. Is there any way to restrict the amount of RAM used ?

2. What is the recommended/minimum amount of RAM required for tomcat anyways
? How come it is not documented anywhere ? (been searching
http://jakarta.apache.org/ and I don't see it any place visible).

3. What the heck is going on here ? :)

Regards,
Abhi


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-24 Thread Simon Stewart

wa_pool is defined in libwebapp.so (wa_main.c fwiw) If you haven't
deleted or cleaned the source tree, you might want to make sure that
this file was compiled (there should be a wa_main.o file in the
webapp/lib directory) You should also have a libwebapp.so file
that's larger than 0 bytes.

If either of those files are missing, it looks like the step 2 or the
start of step 3 (which is basically doing the normal compile and then
preparing libwebapps.o) failed. I know that you've probably done it,
but is APACHE_HOME defined correctly? 

Regards,

Simon

On Tue, Apr 23, 2002 at 11:05:52PM -0400, digital synapse wrote:
 I've tried to follow the tutorial by simon at 
 http://www.pubbitch.org/jboss.html, and it seems very detailed however i've 
 run into a snag. when i add the  LoadModule webapp_module 
 modules/mod_webapp.so line into httpd.conf from apache2.035 (no i didn't 
 get any errors while compiling the .so) when i try to do apachectl 
 configtest i get the following error:
 
 Cannot load /usr/local/apache2/modules/mod_webapp.so into server: 
 /usr/local/apache2/modules/mod_webapp.so: undefined symbol: wa_pool
 Any ideas anyone?

-- 
Boy, when it's this hot, I don't want to do anything at all!
 Fortunately that was our plan from the start
Calvin and Hobbes

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart

On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
 Any reason for using AJP14 over AJP13?
 And what about mod_webapp?

I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2
don't get along well at all[1]. The impression that I've gleaned from
reading past postings to this list is that mod_webapp is meant to
supercede mod_jk and is the preferred way of connecting Apache and
Tomcat.

The major difference between the two modules, other than this, is that
mod_jk allows static content to be served directly from Apache rather
than going through Tomcat, and mod_jk has provision for doing
loadbalancing across multiple servers. Of these, the former is
(apparently) going to be fixed at some point in the near future.

The ability to serve content direct from apache may also mean that
mod_jk will appear faster, though I've not done any tests on this.

Cheers,

Simon

[1] One or other of the two programs would go into an infinite loop,
allocating memory until one process or the other died whenever a
request came in.

-- 
Last week I forgot how to ride a bicycle.  -- Steven Wright

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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart

On Wed, Apr 24, 2002 at 04:34:42PM +0800, yilmaz wrote:
 Hi everyone,
 i know everyone is already sick of reading problems about apache and tomcat. I read 
almost all related mails and articles (how-to's) on the internet , which didn't help.
 i am working with tomcat 4.0-b7 on win 2000.
 And using apcahe 2.
 according to the instructions on the articles downloaded mod_webapp.so and put it 
under modules/ directory.
 The tomact and apache both work fine without problem.
 When i add 
 LoadModule webapp_module modules/mod_webapp.so
 in my httpd.conf file, i can't get apache started. It says the requested operation 
has failed.
 Is there any syntax error, or something else?
 (note: i added the above line just under the default loadmodule lines defined in the 
httpd.conf file)
 Any help please : (

When you saw the error, had you done an apachectl configtest to make
sure that your httpd.conf was okay? Is there anything in apache's
error logs?

Cheers,

Simon

-- 
`The situation is completely under control. All of them were killed.'
 --- Alim Razim, for the Northern Alliance, demonstrating fine
 command of traditional Afghan prisoner control techniques.

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Michael Delamere

Yes,

Compiling mod_jk for apache2 was no problem but for some reason there was no
communication between apache and tomcat.  A tcpdump on port 8009 showed that
no comminication was taking place.

I solved  this by installing the mod_webapp.  In terms of speed:  I had the
feeling that the mod_jk connector was faster, however I don´t have any
benchmark results to prove this.

bye Michael Delamere


- Original Message -
From: Simon Stewart [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 11:51 AM
Subject: Re: Which Apache-To-Tomcat Connector


 On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
  Any reason for using AJP14 over AJP13?
  And what about mod_webapp?

 I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2
 don't get along well at all[1]. The impression that I've gleaned from
 reading past postings to this list is that mod_webapp is meant to
 supercede mod_jk and is the preferred way of connecting Apache and
 Tomcat.

 The major difference between the two modules, other than this, is that
 mod_jk allows static content to be served directly from Apache rather
 than going through Tomcat, and mod_jk has provision for doing
 loadbalancing across multiple servers. Of these, the former is
 (apparently) going to be fixed at some point in the near future.

 The ability to serve content direct from apache may also mean that
 mod_jk will appear faster, though I've not done any tests on this.

 Cheers,

 Simon

 [1] One or other of the two programs would go into an infinite loop,
 allocating memory until one process or the other died whenever a
 request came in.

 --
 Last week I forgot how to ride a bicycle.  -- Steven Wright

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



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




Startup problem

2002-04-24 Thread Oscar Buse

Hi,

I Installed tomcat 4.0.3 on Solaris 8. At startup I see the following
in catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 1 column 44
org.xml.sax.SAXParseException: The markup in the document preceding the root element 
must be well-formed.

Somebody had familiar problems?
And can somebody tell me in which *file* this PARSE error occurs?

Kind Regards,
-- Oscar

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




Tomcat 4 Apache Server 2

2002-04-24 Thread Frederick Aubert

Hi Folk,

My query is about configuring Tomcat 4 as a module that serves JSP and
Servlet for an Apache 2 Server on a Windows XP machine. I have been
unsuccessfully browsing the web for support, and installation steps, and
that's why I am writing to this mailing list hoping one of you will answer
me soon privately at my email [EMAIL PROTECTED]

I will try to keep it short. I have read/heard that two mods could
alternatively do that job: mod_jk or mod_webapp. I have been trying to
install either of these two mods, but none would succeed when, after adding
the loading instructions in the httpd, I finally restarted my Apache 2
Server. Are there any known uncompatibilities? Are there any other mods that
have been succesfully been integrated under my settings (Apache 2, Tomcat 4,
and Windows XP)? I don't need anything fancy, I just need JSP and Servlet to
work...

Thanks in advance, 

Sincerely yours, Frederick Aubert


-- 

!!! PLEASE UPDATE your address book, my NEW EMAIL is [EMAIL PROTECTED]  !!!

Member of the Warlords II World Tournament Organizers Team

---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 


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




Re: getRemoteUser(), getAuthType() returning empty string instead of NULL?

2002-04-24 Thread Jason MacLane

Did someone find a solution ? We are stuck on the same problem.

In fact, the problem is not really that the getRemoteUser() returns an empty string 
instead of a null string : Normally, when a user is already authenticated but is 
trying to access to a ressource for which he is not in a valid role, the server should 
open the login box a second time ; so even if getRemoteUser() returns  and that 
Tomcat considers it's the user name, it should open the login box and not send a 403 
error code.

In fact, when I test the same web application on Tomcat 3.3, it works (I mean I can 
identify myself on the login box) but with Tomcat 4 it directly rejects me...


Every piece of info would help...
Regards.


  Scenario: 
  (1) Browser - http://TomcatHTTPServer:8080 (no authentication) 
  
  getRemoteUser() and getAuthType() return NULL, as expected 
  
  (2) Browser - https://TomcatHTTPServer:8443 (no authentication) 
  
  getRemoteUser() and getAuthType() return NULL, as expected 
  
  (3) Browser - https://IISServer:443(BASIC Auth) - ISAPI - AJP13 
  
  getRemoteUser() returns authenticated user name, 
  getAuthType() returns Basic, as expected 
  
  (4) Browser - http://IISServer:80(NO Auth) - ISAPI - AJP13 
  
  getRemoteUser() and getAuthType() return  (Empty String) 
  This is NOT as expected, and causes Tomcat to reject the request 
  because it thinks the request is already authenticated but 
  doesn't match the requested page's realm. 
  
  Is this: 
  
  a) Working as specified? 
  b) A bug in the ISAPI filter? 
  c) A bug in Tomcat? 
  d) Something else? 
  
  Thanks in advance. 
  
  -- 
  James Garrison Athens Group, Inc. 
  mailto: [EMAIL PROTECTED] 5608 Parkcrest Dr 
  http://www.athensgroup.com Austin, TX 78731 
  PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150 
  
  
 Ignacio J. Ortega wrote:
 De: James Garrison [mailto:[EMAIL PROTECTED]]
 Enviado el: martes 23 de abril de 2002 18:48
  
  
  Needed more information, which Tomcat version?, post the connector or
  interceptor line for ajp13 prsent in your server.xml file..
  
 
 The Tomcat version is 4.0.2.  Here's the Connector definition:
 
 
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0
 tomcatAuthentication=false/
 
 
 The results are the same with tomcatAuthentication=true and also
 when the tomcatAuthentication parameter is omitted.
 
 -- 
 James GarrisonAthens Group, Inc.
 mailto:[EMAIL PROTECTED]5608 Parkcrest Dr
 http://www.athensgroup.comAustin, TX 78731
 PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150

-- 

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


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




Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-24 Thread digital synapse

Yeah both those files are in the source tree in the /lib subdir. They are 
both greater than 0bytes. $APACHE_HOME is set in /etc/profile to 
/usr/local/apache2. I can't even start apache due to this wa_pool error


-digitalsy


From: Simon Stewart [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need
Date: Wed, 24 Apr 2002 10:38:49 +0100

wa_pool is defined in libwebapp.so (wa_main.c fwiw) If you haven't
deleted or cleaned the source tree, you might want to make sure that
this file was compiled (there should be a wa_main.o file in the
webapp/lib directory) You should also have a libwebapp.so file
that's larger than 0 bytes.

If either of those files are missing, it looks like the step 2 or the
start of step 3 (which is basically doing the normal compile and then
preparing libwebapps.o) failed. I know that you've probably done it,
but is APACHE_HOME defined correctly?

Regards,

Simon

On Tue, Apr 23, 2002 at 11:05:52PM -0400, digital synapse wrote:
  I've tried to follow the tutorial by simon at
  http://www.pubbitch.org/jboss.html, and it seems very detailed however 
i've
  run into a snag. when i add the  LoadModule webapp_module
  modules/mod_webapp.so line into httpd.conf from apache2.035 (no i didn't
  get any errors while compiling the .so) when i try to do apachectl
  configtest i get the following error:
 
  Cannot load /usr/local/apache2/modules/mod_webapp.so into server:
  /usr/local/apache2/modules/mod_webapp.so: undefined symbol: wa_pool
  Any ideas anyone?

--
Boy, when it's this hot, I don't want to do anything at all!
  Fortunately that was our plan from the start
 Calvin and Hobbes

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





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-24 Thread Simon Stewart

Curious. I take it that you're on a Linux box? Using gcc? And using
the versions of the software that are linked to from the howto? If you
are, then I'd be interested in seeing the output from steps 1-3
(creating mod_webapp.so and libwebapp.so) Can you mail them to me
privately? I don't think that the list wants to see screenfulls of
output :)

On Wed, Apr 24, 2002 at 06:52:28AM -0400, digital synapse wrote:
 Yeah both those files are in the source tree in the /lib subdir. They are 
 both greater than 0bytes. $APACHE_HOME is set in /etc/profile to 
 /usr/local/apache2. I can't even start apache due to this wa_pool error
 
 
 -digitalsy
 
 
 From: Simon Stewart [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need
 Date: Wed, 24 Apr 2002 10:38:49 +0100
 
 wa_pool is defined in libwebapp.so (wa_main.c fwiw) If you haven't
 deleted or cleaned the source tree, you might want to make sure that
 this file was compiled (there should be a wa_main.o file in the
 webapp/lib directory) You should also have a libwebapp.so file
 that's larger than 0 bytes.
 
 If either of those files are missing, it looks like the step 2 or the
 start of step 3 (which is basically doing the normal compile and then
 preparing libwebapps.o) failed. I know that you've probably done it,
 but is APACHE_HOME defined correctly?
 
 Regards,
 
 Simon
 
 On Tue, Apr 23, 2002 at 11:05:52PM -0400, digital synapse wrote:
  I've tried to follow the tutorial by simon at
  http://www.pubbitch.org/jboss.html, and it seems very detailed however 
 i've
  run into a snag. when i add the  LoadModule webapp_module
  modules/mod_webapp.so line into httpd.conf from apache2.035 (no i didn't
  get any errors while compiling the .so) when i try to do apachectl
  configtest i get the following error:
 
  Cannot load /usr/local/apache2/modules/mod_webapp.so into server:
  /usr/local/apache2/modules/mod_webapp.so: undefined symbol: wa_pool
  Any ideas anyone?

Cheers,

Simon

-- 
The other day I was playing poker with Tarot cards. I got a full house
and four people died. --- Steven Wright

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Anthony W. Marino

 On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
  Any reason for using AJP14 over AJP13?
  And what about mod_webapp?

 I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2
 don't get along well at all[1]. The impression that I've gleaned from
 reading past postings to this list is that mod_webapp is meant to
 supercede mod_jk and is the preferred way of connecting Apache and
 Tomcat.


If mod_webapp is the next generation then why jk2?
Is warp in the coyote connectors the mod_webapp that should be used???


 The major difference between the two modules, other than this, is that
 mod_jk allows static content to be served directly from Apache rather
 than going through Tomcat, and mod_jk has provision for doing
 loadbalancing across multiple servers. Of these, the former is
 (apparently) going to be fixed at some point in the near future.

 The ability to serve content direct from apache may also mean that
 mod_jk will appear faster, though I've not done any tests on this.

 Cheers,

 Simon


Thanks,
Anthony

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Anthony W. Marino


 Yes,

 Compiling mod_jk for apache2 was no problem but for some reason there was
 no communication between apache and tomcat.  A tcpdump on port 8009 showed
 that no comminication was taking place.


Why jk and not jk2???

 I solved  this by installing the mod_webapp.  In terms of speed:  I had the
 feeling that the mod_jk connector was faster, however I don´t have any
 benchmark results to prove this.

 bye Michael Delamere


What about the connectors contained within the coyote drop?

Thank you,
Anthony


 - Original Message -
 From: Simon Stewart [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, April 24, 2002 11:51 AM
 Subject: Re: Which Apache-To-Tomcat Connector

  On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
   Any reason for using AJP14 over AJP13?
   And what about mod_webapp?
 
  I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2
  don't get along well at all[1]. The impression that I've gleaned from
  reading past postings to this list is that mod_webapp is meant to
  supercede mod_jk and is the preferred way of connecting Apache and
  Tomcat.
 
  The major difference between the two modules, other than this, is that
  mod_jk allows static content to be served directly from Apache rather
  than going through Tomcat, and mod_jk has provision for doing
  loadbalancing across multiple servers. Of these, the former is
  (apparently) going to be fixed at some point in the near future.
 
  The ability to serve content direct from apache may also mean that
  mod_jk will appear faster, though I've not done any tests on this.
 
  Cheers,
 
  Simon
 
  [1] One or other of the two programs would go into an infinite loop,
  allocating memory until one process or the other died whenever a
  request came in.
 
  --
  Last week I forgot how to ride a bicycle.  -- Steven Wright
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Anthony W. Marino
Pres./CTO, AWM Objects
email:  [EMAIL PROTECTED]
phone:  (732) 610-2441


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




javax.servlet.ServletException: Cannot create bean of class MoniTestBean

2002-04-24 Thread chuck amadi

I have a problem with the following i have created and compiled my 
JavaBeans in my Web-Inf /classes folder and everythings fine . 
Nevertheless in the stack trace i get a error 500 cannot create Bean. I 
have posted this on numerous occasions to no avail.

Can anyone lends some time and have a look as basically this is 
preventing me completing this Questionairre Web Forms  Project 
(Validation Problem).

Thus i have the useBean tag as follows:

*jsp:useBean id=formHandler scope=request class=MoniTestBean/
jsp:setProperty name=formHandler property=*/

And also the request.getParameter test but due the the non creation of 
the bean in the stack trace thus the jvm from the server is causing me 
this dilema.

Any suggestions my set-up: RHlinux v7.2 JTomcat v3.3a as Tomcat v4 
didn't function properly and Netbeans IDE 3.2.2 Text Editor Emacs.

%=request.getParameter(surName)%
%=request.getParameter(foreName)%
%=request.getParameter(monDisable)%

Thus the return value was null as the bean cannot create/intialate itself.

* Internal Servlet Error:*

javax.servlet.ServletException:  Cannot create bean of class MoniTestBean

I have posted this problem a few times and unfortunately no suggestions 
, i have gone through the usual procedures .

Cheers Chuck Amadi
Systems Programmer




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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart

On Wed, Apr 24, 2002 at 08:04:17AM -0400, Anthony W. Marino wrote:
  On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
   Any reason for using AJP14 over AJP13?
   And what about mod_webapp?
 
  I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2
  don't get along well at all[1]. The impression that I've gleaned from
  reading past postings to this list is that mod_webapp is meant to
  supercede mod_jk and is the preferred way of connecting Apache and
  Tomcat.
 
 
 If mod_webapp is the next generation then why jk2?

That question can be read in two ways: Why did I start off using
jk2? and why is there a jk2 project, then?

To answer the first question: because at the time, I hadn't done much
reading around the subject, and mod_jk was what the other admins that
I spoke to were using, albeit with apache 1.3.x

The answer to the second interpretation is probably the same :) Also,
jk offers some features that webapp doesn't, which may be an incentive
for people to want to try and make it work with apache 2.

 Is warp in the coyote connectors the mod_webapp that should be used???

Good question. The connector that makes use of it is mod_webapp, and
this is part of the jakarta-tomcat-connectors project, if that helps?
Getting a listing of the classes that are contained in the
tomcat-*.jar files doesn't indicate anything called *warp*, but
that could just be because it's the protocol name

Cheers,

Simon

-- 
Hanlon's Razor:
Never attribute to malice that which is adequately explained
by stupidity.

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




TomCat 4.0.3 jsp action scripting elements not working

2002-04-24 Thread hatem zanaty


Hi...

I have problem with TC 4.0.3  jsp action scripting elements like jsp:plugin, 
jsp:expression they are not working like it is suppose to be 

any ideas

thanx



-
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more


Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Michael Delamere

Although I don´t have the answer, it´s a VERY interesting question.  As you
said, it appeared that mod_webapp would eventually replace mod_jk which has
been said to become deprectated at some stage (correct me if I got the
information wrong).

So why is there a new version of mod_jk?

Unfortunately after visiting the jakarta site I´m none the wiser :-).

bye Michael Delamere



- Original Message -
From: Simon Stewart [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 2:23 PM
Subject: Re: Which Apache-To-Tomcat Connector


 On Wed, Apr 24, 2002 at 08:04:17AM -0400, Anthony W. Marino wrote:
   On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
Any reason for using AJP14 over AJP13?
And what about mod_webapp?
  
   I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2
   don't get along well at all[1]. The impression that I've gleaned from
   reading past postings to this list is that mod_webapp is meant to
   supercede mod_jk and is the preferred way of connecting Apache and
   Tomcat.
  
 
  If mod_webapp is the next generation then why jk2?

 That question can be read in two ways: Why did I start off using
 jk2? and why is there a jk2 project, then?

 To answer the first question: because at the time, I hadn't done much
 reading around the subject, and mod_jk was what the other admins that
 I spoke to were using, albeit with apache 1.3.x

 The answer to the second interpretation is probably the same :) Also,
 jk offers some features that webapp doesn't, which may be an incentive
 for people to want to try and make it work with apache 2.

  Is warp in the coyote connectors the mod_webapp that should be used???

 Good question. The connector that makes use of it is mod_webapp, and
 this is part of the jakarta-tomcat-connectors project, if that helps?
 Getting a listing of the classes that are contained in the
 tomcat-*.jar files doesn't indicate anything called *warp*, but
 that could just be because it's the protocol name

 Cheers,

 Simon

 --
 Hanlon's Razor:
 Never attribute to malice that which is adequately explained
 by stupidity.

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



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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Anthony W. Marino

On Wednesday 24 April 2002 08:23 am, Simon Stewart wrote:
 On Wed, Apr 24, 2002 at 08:04:17AM -0400, Anthony W. Marino wrote:
   On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
Any reason for using AJP14 over AJP13?
And what about mod_webapp?
  
   I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2
   don't get along well at all[1]. The impression that I've gleaned from
   reading past postings to this list is that mod_webapp is meant to
   supercede mod_jk and is the preferred way of connecting Apache and
   Tomcat.
 
  If mod_webapp is the next generation then why jk2?

 That question can be read in two ways: Why did I start off using
 jk2? and why is there a jk2 project, then?

 To answer the first question: because at the time, I hadn't done much
 reading around the subject, and mod_jk was what the other admins that
 I spoke to were using, albeit with apache 1.3.x

 The answer to the second interpretation is probably the same :) Also,
 jk offers some features that webapp doesn't, which may be an incentive
 for people to want to try and make it work with apache 2.

  Is warp in the coyote connectors the mod_webapp that should be used???

 Good question. The connector that makes use of it is mod_webapp, and
 this is part of the jakarta-tomcat-connectors project, if that helps?
 Getting a listing of the classes that are contained in the
 tomcat-*.jar files doesn't indicate anything called *warp*, but
 that could just be because it's the protocol name

I'm confused because there is also a jakarta-tomcat-connectors drop as 
well.  Are you saying that I need both to facilitate both ends of the 
connector process? 

Anthony

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




Re: TomCat 4.0.3 jsp action scripting elements not working

2002-04-24 Thread Anthony W. Marino

You shouldn't hit reply on existing thread and change the subject.  Just 
create a new thread with your new subject.

Thanks,
Anthony

 Hi...

 I have problem with TC 4.0.3  jsp action scripting elements like
 jsp:plugin, jsp:expression they are not working like it is suppose to
 be

 any ideas

 thanx



 -
 Do You Yahoo!?
 Yahoo! Games - play chess, backgammon, pool and more



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




RE: javax.servlet.ServletException: Cannot create bean of class MoniTestBean

2002-04-24 Thread Scott Purcell

I have ran into that issue many times, and my workaround has always been to put your 
bean in a class.
eg. com/MoniTestBean
and make sure you add the package statement
package com; at the top of your java file,
recompile, then change your useBean to look like this. Where you put the class was 
perfect. So All should be good.
*jsp:useBean id=formHandler scope=request class=com.MoniTestBean/

I bet that works. I talked to my teacher about it before and he believes that all 
beans have to be in a named package.
I always worked for me.

good luck
Scott Purcell
Vertis Corporation



-Original Message-
From: chuck amadi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 7:16 AM
To: Tomcat Users List; taglibs-user-help
Subject: javax.servlet.ServletException: Cannot create bean of class
MoniTestBean 


I have a problem with the following i have created and compiled my 
JavaBeans in my Web-Inf /classes folder and everythings fine . 
Nevertheless in the stack trace i get a error 500 cannot create Bean. I 
have posted this on numerous occasions to no avail.

Can anyone lends some time and have a look as basically this is 
preventing me completing this Questionairre Web Forms  Project 
(Validation Problem).

Thus i have the useBean tag as follows:

*jsp:useBean id=formHandler scope=request class=MoniTestBean/
jsp:setProperty name=formHandler property=*/

And also the request.getParameter test but due the the non creation of 
the bean in the stack trace thus the jvm from the server is causing me 
this dilema.

Any suggestions my set-up: RHlinux v7.2 JTomcat v3.3a as Tomcat v4 
didn't function properly and Netbeans IDE 3.2.2 Text Editor Emacs.

%=request.getParameter(surName)%
%=request.getParameter(foreName)%
%=request.getParameter(monDisable)%

Thus the return value was null as the bean cannot create/intialate itself.

* Internal Servlet Error:*

javax.servlet.ServletException:  Cannot create bean of class MoniTestBean

I have posted this problem a few times and unfortunately no suggestions 
, i have gone through the usual procedures .

Cheers Chuck Amadi
Systems Programmer




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


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




Re: how to include the parser's JAR files in the /WEB-INF/web.xml ?

2002-04-24 Thread Jacob Kjome

It is against the sun classloader specification to have the xml parser and 
DOM classes inside the WEB-INF/lib.  It must be in a parent classloader to 
the webapp.  As of the 4.0.2 release, this is enforced.  This means your 
choice are to put the xml parser in either $TOMCAT_HOME/lib or 
$TOMCAT_HOME/common/lib. or if you are using JDK1.4, put it in 
$JAVA_HOME/jre/lib/endorsed.

Read about this issue here:

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


Jake

At 10:24 AM 4/24/2002 +0100, you wrote:
Peter Romianowski wrote:

  should be like:
  put the parser's JAR into WEB-INF/lib to make them visible to your webapp
 

This currently fails for me on tomcat 4.02, under AIX 4.3.3 and Java 
1.2.2. (ALthough it fails for all versions of Java I've
tried). I'm having to specify the actual jar files in the classpath pof 
java when catalina.sh starts it. The jars and seen 
deployed, but the classe sin them are not visible... Is there something 
mroe you need to do other than dropping jars in the
lib? Are there any limitations (e.g. java.security.interfaces)

H


 
  Peter
 
   -Original Message-
   From: Kroeksak Kongman [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, April 24, 2002 10:57 AM
   To: [EMAIL PROTECTED]
   Subject: how to include the parser's JAR files in the /WEB-INF/web.xml ?
  
  
   To make an XML parser available to your web applications, you have 
 several options:
  
   * To utilize an XML parser in a single web application, simply 
 include the parser's JAR files in the /WEB-INF/web.xml
   directory of that web application. This will work, no matter what 
 parser might be used by Tomcat 4 internally, or by
   other web applications running in the same instance of Tomcat 4.
  
   Please would you tell me,
  
   how to include the parser's JAR files in the /WEB-INF/web.xml ?
  
   Best Regards,
  
   Koong
  
  
  
  
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

--

I don't suffer from Insanity... | Linux User #16396
 I enjoy every minute of it...   |
 |
http://www.travellingkiwi.com/  |




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



Re: Startup problem

2002-04-24 Thread Oscar Buse

Hoi,

On Wed, 24 Apr 2002, Tomcat Users List wrote:

 Hi,
 
 I Installed tomcat 4.0.3 on Solaris 8. At startup I see the following
 in catalina.out:
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.3
 PARSE error at line 1 column 44
 org.xml.sax.SAXParseException: The markup in the document preceding the root
 element must be well-formed.
 
 Somebody had familiar problems?
 And can somebody tell me in which *file* this PARSE error occurs?
Sorry, my fault. I had a wrong web.xml :(

Regards,
-- Oscar

VI VI VI The editor of the beast.

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart

On Wed, Apr 24, 2002 at 08:31:44AM -0400, Anthony W. Marino wrote:
 On Wednesday 24 April 2002 08:23 am, Simon Stewart wrote:
  On Wed, Apr 24, 2002 at 08:04:17AM -0400, Anthony W. Marino wrote:
On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
 
   Is warp in the coyote connectors the mod_webapp that should be used???
 
  Good question. The connector that makes use of it is mod_webapp, and
  this is part of the jakarta-tomcat-connectors project, if that helps?
  Getting a listing of the classes that are contained in the
  tomcat-*.jar files doesn't indicate anything called *warp*, but
  that could just be because it's the protocol name
 
 I'm confused because there is also a jakarta-tomcat-connectors drop as
 well.  Are you saying that I need both to facilitate both ends of the
 connector process?

If you take a look at the source download of the connectors, each of
them appear to come in two parts: a native section, which plugs into
apache (for example) and a java part which plugs into tomcat, so from
that I am assuming that you _do_ need to facilitate both ends of the
connector process.

I could be spouting utter rubbish, though :) Will one of the real pros
step forward, please...?

Cheers,

Simon

-- 
You stupid? All of Europe (maybe except those crazy Brits) prints on A4 paper.
Crazy we may be, but not foolscap.
-- James Kilfiger, ctt

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




Re: answer: HTTP authentication headers behavior expectations

2002-04-24 Thread rsequeira


Thanks for the reply. So can I safely assume that there's no way to tell
the browser to send the Authorization request header without sending a 401
Authorization header first. Darn! I guess I'll have to maintain a session
between the browser - Controller jsp/servlet - Secure resources. The
session is maintained between the browser and the Controller jsp/servlet.
And I guess I'll have the Controller jsp/servlet format the Authorization
header with other request headers when making any requests on behalf of a
browser.


Thanks.
RS





Phillip Morelock [EMAIL PROTECTED] on 04/23/2002 05:27:24
PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:answer: HTTP authentication headers behavior expectations

this is HTTP

AFAIK the only way a browser can send BASIC authentication credentials is:
1) you send them a 401 and the browser prompts the user
2) you format all your links as http://user:[EMAIL PROTECTED]/ but i am not
even sure if all browsers will correctly use this, at least in the
fashion
you're intending.

Many browsers will automatically retransmit credentials to a realm that has
been previously encountered in the (browsing) session, but this is not
guranteed behavior and is certainly not required by any kind of
specification around HTTP-BASIC authentication, AFAIK.

phillip



On 4/23/02 3:17 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:


 Is there a way using a servlet/jsp to tell the browser to send the
 Authorization request header without sending a prior 401 Authorization
 required reponse header.
 Well it goes like this:
 We have a Basic Authentication setup on some of our resources. We would
 like the user to bypass the authorization dialog box. The user could post
 the userid/pwd to a jsp/servlet which then redirects to the requested
 resource (protected) with the credentials. This way the user can access
 protected resources without encountering the authorization dialog box.
But
 after the user had made the first request and tries to access another
 resource, the authorization dialog box pops up because the browser hasn't
 authorized. It's the jsp/servlet that has. So is there some way to tell
the
 browser to send a Authorization header without sending a 401 reponse code
 back?

 Thanks in advance.
 RS





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



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










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




FW: Session.IsNew problems

2002-04-24 Thread Wiegard, Hanno

Even with higher timeout values we have this problem. It looks like that we 
get this problem as soon there's higher concurrency on the system (  30 
concurrent user).

-Original Message-
From: Wiegard, Hanno [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:18 AM
To: 'Tomcat Users List'
Subject: RE: Session.IsNew problems


This should not happen, but I'll test this again with higher timeout values.
The only thing that could happen is that a request takes longer than the
timeout, e.g. we have a timeout of 10 sec., but the request processing takes
about 20 sec. But I guess the timeout is calculated relative to the end of
one request.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:09 AM
To: Tomcat Users List
Subject: AW: Session.IsNew problems


This should only happen if the session times out
between two requests. Are you shure, that this did 
not happen ?

 -Ursprüngliche Nachricht-
 Von: Wiegard, Hanno [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 23. April 2002 09:48
 An: '[EMAIL PROTECTED]'
 Betreff: Session.IsNew problems
 
 But it looks like that the request.getSession(true).isNew() 
 call sometimes return true even if the session is continued
 (we see that the client sends his session cookie, but isNew()
 returns true). 

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

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

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Anthony W. Marino

When you go the the coyote drop there are instructions on using it, however, 
where's the Apache specific part of the instructions and module???  

Anthony

 On Wed, Apr 24, 2002 at 08:04:17AM -0400, Anthony W. Marino wrote:
   On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
Any reason for using AJP14 over AJP13?
And what about mod_webapp?
  
   I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2
   don't get along well at all[1]. The impression that I've gleaned from
   reading past postings to this list is that mod_webapp is meant to
   supercede mod_jk and is the preferred way of connecting Apache and
   Tomcat.
 
  If mod_webapp is the next generation then why jk2?

 That question can be read in two ways: Why did I start off using
 jk2? and why is there a jk2 project, then?

 To answer the first question: because at the time, I hadn't done much
 reading around the subject, and mod_jk was what the other admins that
 I spoke to were using, albeit with apache 1.3.x

 The answer to the second interpretation is probably the same :) Also,
 jk offers some features that webapp doesn't, which may be an incentive
 for people to want to try and make it work with apache 2.

  Is warp in the coyote connectors the mod_webapp that should be used???

 Good question. The connector that makes use of it is mod_webapp, and
 this is part of the jakarta-tomcat-connectors project, if that helps?
 Getting a listing of the classes that are contained in the
 tomcat-*.jar files doesn't indicate anything called *warp*, but
 that could just be because it's the protocol name

 Cheers,

 Simon

-- 
Anthony W. Marino
Pres./CTO, AWM Objects
email:  [EMAIL PROTECTED]
phone:  (732) 610-2441


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




RE: Install Tomcat 4.0 + JDK 1.4.

2002-04-24 Thread Douglas, Rory

I had similar errors when moving from Tomcat 3 to 4. It may have to do with
the declaration of the DTD at the top of your .tld. I found that I had to
change it to 1.2, and change all tags in the taglib descriptor to their new
form

ie tagclass becomes tag-class

maybe that helps

-Original Message-
From: Kroeksak Kongman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 3:32 AM
To: [EMAIL PROTECTED]
Subject: Install Tomcat 4.0 + JDK 1.4.


Dear All,
 
  1. I'm install Tomcat 4.0 + JDK 1.4. I can run some jsp file
but XML have some error..
 
(.tld and jsp file, it can run in old version ...Tomcat 3.2.3  JDK 1.3.2)
 
  2. I can use javac to complie .java ot .class when I call
HelloWorld.calss from IE 6.0, 
it open window File Download ...for save this file to disk...it not work..
 
Please would you hep me for solve this problem..
 
Best Regards,
Kroeksak Kongman
 
(This can run in old version ...Tomcat 3.2.3  JDK 1.3.2)
Result:
 
 
org.apache.jasper.JasperException: XML parsing error on file
/WEB-INF/jsp/taglib.tld: (line 2, col 7): The XML declaration may only
appear at the very beginning of the document.
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:218)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:283)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)



RE: JDBCRealm Extension

2002-04-24 Thread Tim Cronin

I've (and others have been dealing with the same issue
and have been directed to look at extending the Authentication classes.

see the link below for details.
http://mikal.org/interests/java/tomcat/archive/view?mesg=56125

-Original Message-
From: Sarah Barwig [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 7:23 PM
To: [EMAIL PROTECTED]
Subject: JDBCRealm Extension


Hi,

I searched your archives briefly, which leads me to believe that I would 
be asking this question in the right place, but I haven't searched them 
extensively, so I might be re-asking a FAQ. If I am, then please forgive me.

I'm attempting to use the Tomcat servlet engine's Realm authentication 
to protect a website. In addition to doing that, I would like Realm to 
pick up an additional piece of data from the database, and associate it 
with the session in tomcat's memory (somewhere?). I have found the 
appropriate file to extend (org.apache.catalina.realm.JDBCRealm), made 
the appropriate change to the sql statement, but now I'm stumped as to 
how to associate this piece of information with the SessionID that 
Tomcat sets in the cookie.

Can anyone help me gain a bit more insight into this part of the black box?

Thanks in advance,
Sarah


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

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart

AFAIK, you have to compile that from source.

On Wed, Apr 24, 2002 at 09:03:12AM -0400, Anthony W. Marino wrote:
 When you go the the coyote drop there are instructions on using it, however,
 where's the Apache specific part of the instructions and module??? 
 
 Anthony

Cheers,

Simon

-- 
The trouble with computers is that they do what you tell them, not what
you want.
-- D. Cohen

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




RE: Re[2]: oci8 driver problem on Linux

2002-04-24 Thread Tim Cronin

For thin (type 4) Driver yes but for Type 2 (OCI)
you need the binary lib. 

You need type 2 for ARRAYS

thanks for the info though.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 1:35 AM
To: 'Tomcat Users List'
Subject: Re[2]: oci8 driver problem on Linux




Tim Cronin [EMAIL PROTECTED] wrote:-

   All I saw on the oracle site was 8i oci driver for solaris
   where are the linux drivers?

I think we downloaded the NT driver as NT is our main platform for
development.  I've got a RedHat7.2 server sat on my desk as well though and
the same classes12.zip works fine on that.

http://technet.oracle.com/software/tech/java/sqlj_jdbc/content.html

Andrew






**
This message has been sent via the Internet. Internet communications 
are not secure against interception or modification. Severn Trent 
Systems therefore can not guarantee that this message has not been
modified in transit, and this message should not be viewed as 
contractually binding.

This message and any files transmitted with it are confidential and 
intended solely for the use of the addressee. If you have received 
this message in error please notify the sender and destroy your
copies of the message and any attached files. 

***
Severn Trent Systems Ltd : a part of Severn Trent plc. 
Registered in England and Wales Registration No. 2394552


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

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Anthony W. Marino

I've had problems compiling a mod_jk.so module. Including a failed effort of 
ant native.

I'll keep plugging away until I figure it out.

Anthony

 AFAIK, you have to compile that from source.

 On Wed, Apr 24, 2002 at 09:03:12AM -0400, Anthony W. Marino wrote:
  When you go the the coyote drop there are instructions on using it,
  however, where's the Apache specific part of the instructions and
  module???
 
  Anthony

 Cheers,

 Simon

-- 
Anthony W. Marino
Pres./CTO, AWM Objects
email:  [EMAIL PROTECTED]
phone:  (732) 610-2441


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




FileReader within a Servlet

2002-04-24 Thread Günter Kukies

Hello,

how can I get the path base for a file within a web application? I want to use a 
FileReader within a Servlet. 

Günter

 



Re: FileReader within a Servlet

2002-04-24 Thread Mike McGuinness

System.getProperties(user.dir)

On Wed, 2002-04-24 at 09:38, Günter Kukies wrote:

Hello,

how can I get the path base for a file within a web application? I want to use a 
FileReader within a Servlet. 

Günter

 




RE: FileReader within a Servlet

2002-04-24 Thread Donie Kelly

ServletContext sc;
String RootPath=null;

sc = getServletContext();
  RootPath = sc.getRealPath(/);

This will get you the path of the $TOMCAT/webapps/yourappdir

Donie




-Original Message-
From: Günter Kukies [mailto:[EMAIL PROTECTED]]
Sent: April 24, 2002 14:38
To: Tomcat Users List
Subject: FileReader within a Servlet


Hello,

how can I get the path base for a file within a web application? I want to
use a FileReader within a Servlet. 

Günter

 

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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread yilmaz

Hi Simon,
unfortunately i don't know how to do apachectl configtest.
from command window i tried that , but didn't work.
From apache monitor, when i try to start the server, it throws
the requested operation has failed error, nothing else.
My httpd.config is okey,  except when i add
LoadModule webapp_module modules/mod_webapp.so
into the httpd.config file (as it is instructed) , and restart the apache,
it can't start. Obviously the problem is with the above line of code.
Any suggestions ?
Thanks :)
- Original Message -
From: Simon Stewart [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 5:54 PM
Subject: Re: LoadModule webapp_module modules/mod_webapp.so


 On Wed, Apr 24, 2002 at 04:34:42PM +0800, yilmaz wrote:
  Hi everyone,
  i know everyone is already sick of reading problems about apache and
tomcat. I read almost all related mails and articles (how-to's) on the
internet , which didn't help.
  i am working with tomcat 4.0-b7 on win 2000.
  And using apcahe 2.
  according to the instructions on the articles downloaded mod_webapp.so
and put it under modules/ directory.
  The tomact and apache both work fine without problem.
  When i add
  LoadModule webapp_module modules/mod_webapp.so
  in my httpd.conf file, i can't get apache started. It says the
requested operation has failed.
  Is there any syntax error, or something else?
  (note: i added the above line just under the default loadmodule lines
defined in the httpd.conf file)
  Any help please : (

 When you saw the error, had you done an apachectl configtest to make
 sure that your httpd.conf was okay? Is there anything in apache's
 error logs?

 Cheers,

 Simon

 --
 `The situation is completely under control. All of them were killed.'
  --- Alim Razim, for the Northern Alliance, demonstrating fine
  command of traditional Afghan prisoner control techniques.

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





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




Re: FileReader within a Servlet

2002-04-24 Thread Günter Kukies

Thank's that's it.

Günter


- Original Message -
From: Donie Kelly [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 3:43 PM
Subject: RE: FileReader within a Servlet


ServletContext sc;
String RootPath=null;

sc = getServletContext();
 RootPath = sc.getRealPath(/);

This will get you the path of the $TOMCAT/webapps/yourappdir

Donie




-Original Message-
From: Günter Kukies [mailto:[EMAIL PROTECTED]]
Sent: April 24, 2002 14:38
To: Tomcat Users List
Subject: FileReader within a Servlet


Hello,

how can I get the path base for a file within a web application? I want to
use a FileReader within a Servlet.

Günter



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




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




Re: OT: RE: Security (Struts/Turbine)

2002-04-24 Thread peter . brawley

Anthony Eden wrote:

 snip

  Sure, speaking about power, JSPs would be much powerful than Velocity
  templates, IMHO.

 But at what price?  The power of JSPs can be so easily abused even by the best 
developers.

 snip

Do you have a reference on that, or some thoughts you could briefly share? Thanks.

P.



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




j_security_check problem with 2nd login

2002-04-24 Thread Mario Rodler

I'm working on a small Projekt which needs a form based login page. Using a
j_security_check form works fine.

I also have the problem, that a user must not come back to the login page
for a second login. If she does - j_security_check will fail with a 404 error
page. (I know why).

Does anybody know a working solution?

On my way to find a correct solution, I've read the Sun Servlet Spec '
SRV.12.5.3 Form Based Authentication', and now I think the tomcat way  is probably
not correct.

Instead of redirecting the browser to a Login-Form, tomcat should
include/forward the LoginForm. 

If now some user comes back to the login screen and makes an additional
login, j_security_check can get the destination address from the referring page.

Any other ideas ???

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


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




JSPApplication Property File

2002-04-24 Thread Costel Cirnaru

Hi all,

If someone could help me:

I have an application connected to an Oracle db through BC4J.
When i try to register the application:

   
oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session 
, JSPLeonardo_Leonardo_LeonardoModule);



i got the following error:


java.lang.RuntimeException: java.lang.RuntimeException: JSP Registry could not locate 
runtime property file:JSPLeonardo_Leonardo_LeonardoModule.properties at 
oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile



Thanx



RE: getRemoteUser(), getAuthType() returning empty string instead of NULL?

2002-04-24 Thread Ignacio J. Ortega

 De: James Garrison [mailto:[EMAIL PROTECTED]]
 Enviado el: martes 23 de abril de 2002 19:53

 
 The Tomcat version is 4.0.2.  Here's the Connector definition:

Try the latest 4.0.3 , this should have this problem solved.. 


Saludos ,
Ignacio J. Ortega


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




RE: Which Apache-To-Tomcat Connector

2002-04-24 Thread Brandon Cruz

Not too sure about ajp14, but from my experience, it seems best to use a
version that most people are using, or have used in the past.  My
recommendation would be to use mod_jk and ajp13 if it is a production
environment and you want the least chance for error.  Also, compile mod_jk
on your own, it seems to make things work much better.  There is a very good
step by step instruction for how to compile in the documentation (at least
in the 3.2.x documentation), but you have to dig for it a bit.  I have seen
many problems posted to this list with people trying to connect via
mod_webapp, so I have stayed away from that.

If you are using this for a development environment though, I would use more
recent versions of everything.

Brandon

-Original Message-
From: Anthony W. Marino [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 6:03 PM
To: [EMAIL PROTECTED]
Subject: Which Apache-To-Tomcat Connector


Any reason for using AJP14 over AJP13?
And what about mod_webapp?

Thanks in advance,
Anthony




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



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




Application init

2002-04-24 Thread Pekník Jan

Hello, 

I have following problem : 

I have web-application consisting of several JSP, servlets, xml and xsl
files. I'm using LOG4J for logging and JDBC driver for acessing database.
In order to my application work properly, I need to call start-up code
(which set-up LOG4J and build connection pool) before any JSP page or
servlet is opened.
I don't know how to do this if I don't want to test this in the top of every
page / servlet.

Is there any easy solution how achieve this?  

-Jan 

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.351 / Virová báze: 197 - datum vydání: 19.4. 2002
 

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




AW: Application init

2002-04-24 Thread juraj Lenharcik

Hi,

create a servlet with an init method like:

 public void init() { 
file = getInitParameter(log4j-init-file);
logfileDestination = getInitParameter(log4j-destination-file);

DO LOG4J stuff
.
  }

and register it in your web.xml:
servlet
servlet-namelog4j-init/servlet-name

servlet-classcom.di.config.startup.Log4jInit/servlet-class
init-param
param-namelog4j-init-file/param-name
param-valueWEB-INF/classes/log4j.lcf/param-value
/init-param
init-param
param-namelog4j-destination-file/param-name

param-valued:/server/jakarta-tomcat-4.0.2-LE-jdk14/logs/jaas.log/param-va
lue
/init-param
load-on-startup0/load-on-startup
that should do the work.

naskledanou...
juraj


-Ursprüngliche Nachricht-
Von: Pekník Jan [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 24. April 2002 16:13
An: 'Tomcat Users List'
Betreff: Application init


Hello, 

I have following problem : 

I have web-application consisting of several JSP, servlets, xml and xsl
files. I'm using LOG4J for logging and JDBC driver for acessing database.
In order to my application work properly, I need to call start-up code
(which set-up LOG4J and build connection pool) before any JSP page or
servlet is opened.
I don't know how to do this if I don't want to test this in the top of every
page / servlet.

Is there any easy solution how achieve this?  

-Jan 

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.351 / Virová báze: 197 - datum vydání: 19.4. 2002
 

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

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




Re: /index.html works, / doesn't

2002-04-24 Thread Thomas Pennington

I have a similar situation where unless I type the
index.jsp page I get a server not found error. 
However I noticed that when I use just the directory
that the request gets redirected to
http://myurl:apache_port/index.jsp.  I was running my
web server on port 83 and since I and behind a
firewall all port 80 traffic gets routed to port 83
but there is no port 83 visible outside the firewall
so an error occurs.  I read some stuff in the Tomcat
users manual about using a proxyPort=80 in the
Connector of your server.xml but I could not get it
working.  The work around I'm using now is I'm running
apache on port 80 and everything works fine.  I don't
know the proper fix but I hope this info may get you
somewhere.

Tom

--- Bernd Prager [EMAIL PROTECTED] wrote:
 Sorry, if I that got answered already, but I found
 just a bunch
 of questions in the mailing list related to this and
 never an answer:
 
 I can't make welcome-file with tomcat-4.0.3,
 apache_1.3.24 
 and mod_webapp working. 
 
 The url http://myhost/index.html works just fine,
 the url
 http://myhost/ doesn't.
 
 (I do have index.html in my welcome-file list.)
 
 Thanks for any help.
 -- Bernd
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart

apachectl configtest ultimately runs httpd -t, so you could try
httpd.exe -t on win32. You might also try reversing the direction of
the file seperator in Windows:

LoadModule webapp_module modules\mod_webapp.so

I'm never tried Apache on Win32, but this should help.

On Wed, Apr 24, 2002 at 09:51:57PM +0800, yilmaz wrote:
 Hi Simon,
 unfortunately i don't know how to do apachectl configtest.
 from command window i tried that , but didn't work.
 From apache monitor, when i try to start the server, it throws
 the requested operation has failed error, nothing else.
 My httpd.config is okey,  except when i add
 LoadModule webapp_module modules/mod_webapp.so
 into the httpd.config file (as it is instructed) , and restart the apache,
 it can't start. Obviously the problem is with the above line of code.
 Any suggestions ?
 Thanks :)
 - Original Message -
 From: Simon Stewart [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, April 24, 2002 5:54 PM
 Subject: Re: LoadModule webapp_module modules/mod_webapp.so
 
 
  On Wed, Apr 24, 2002 at 04:34:42PM +0800, yilmaz wrote:
   Hi everyone,
   i know everyone is already sick of reading problems about apache and
 tomcat. I read almost all related mails and articles (how-to's) on the
 internet , which didn't help.
   i am working with tomcat 4.0-b7 on win 2000.
   And using apcahe 2.
   according to the instructions on the articles downloaded mod_webapp.so
 and put it under modules/ directory.
   The tomact and apache both work fine without problem.
   When i add
   LoadModule webapp_module modules/mod_webapp.so
   in my httpd.conf file, i can't get apache started. It says the
 requested operation has failed.
   Is there any syntax error, or something else?
   (note: i added the above line just under the default loadmodule lines
 defined in the httpd.conf file)
   Any help please : (
 
  When you saw the error, had you done an apachectl configtest to make
  sure that your httpd.conf was okay? Is there anything in apache's
  error logs?
 
  Cheers,
 
  Simon
 
  --
  `The situation is completely under control. All of them were killed.'
   --- Alim Razim, for the Northern Alliance, demonstrating fine
   command of traditional Afghan prisoner control techniques.
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
Cheers,

Simon

-- 
Ambivalent? Well, yes and no

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




RE: FileReader within a Servlet

2002-04-24 Thread Douglas, Rory

use the getRealPath(pathname relative to web-app) method of the
ServletContext and use that in your File constructor

-Original Message-
From: Günter Kukies [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 9:38 AM
To: Tomcat Users List
Subject: FileReader within a Servlet


Hello,

how can I get the path base for a file within a web application? I want to
use a FileReader within a Servlet. 

Günter

 



System.setProperty(key,value )

2002-04-24 Thread Vijay Shinde

Where do i find information about diffrent keys (name of system
properties )

i am using following once but where do i find all the listings.

System.setProperty (http.proxyHost, myserver);
 System.setProperty (http.proxyPort, 8080);


Vijay



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




RE: j_security_check problem with 2nd login

2002-04-24 Thread Pknk Jan

Hi, 

 If now some user comes back to the login screen and makes an additional
 login, j_security_check can get the destination address from the referring
page.

AFAIK, TOMCAT doesn't take destination page from referrer. TC takes it from
session, where is
stored first page that needed authentication which user tried to open not
being authenticated. :)
You can check it - look what attributes are stored in session after trying
to open protected page, but before 
submitting login form.

-Jan

-Original Message-
From: Mario Rodler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 9:34 AM
To: [EMAIL PROTECTED]
Subject: j_security_check problem with 2nd login


I'm working on a small Projekt which needs a form based login page. Using a
j_security_check form works fine.

I also have the problem, that a user must not come back to the login page
for a second login. If she does - j_security_check will fail with a 404
error
page. (I know why).

Does anybody know a working solution?

On my way to find a correct solution, I've read the Sun Servlet Spec '
SRV.12.5.3 Form Based Authentication', and now I think the tomcat way  is
probably
not correct.

Instead of redirecting the browser to a Login-Form, tomcat should
include/forward the LoginForm. 

If now some user comes back to the login screen and makes an additional
login, j_security_check can get the destination address from the referring
page.

Any other ideas ???

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


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

---
Pochoz zprva neobsahuje viry.
Zkontrolovno antivirovm systmem AVG (http://www.grisoft.cz).
Verze: 6.0.351 / Virov bze: 197 - datum vydn: 19.4. 2002
 

---
Odchoz zprva neobsahuje viry.
Zkontrolovno antivirovm systmem AVG (http://www.grisoft.cz).
Verze: 6.0.351 / Virov bze: 197 - datum vydn: 19.4. 2002
 

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Anthony W. Marino

I guess, taking it a step further, why  jk2 (AJP14) if mod_webapp is the new 
generation?


Thanks,
Anthony

 Not too sure about ajp14, but from my experience, it seems best to use a
 version that most people are using, or have used in the past.  My
 recommendation would be to use mod_jk and ajp13 if it is a production
 environment and you want the least chance for error.  Also, compile mod_jk
 on your own, it seems to make things work much better.  There is a very
 good step by step instruction for how to compile in the documentation (at
 least in the 3.2.x documentation), but you have to dig for it a bit.  I
 have seen many problems posted to this list with people trying to connect
 via mod_webapp, so I have stayed away from that.

 If you are using this for a development environment though, I would use
 more recent versions of everything.

 Brandon

 -Original Message-
 From: Anthony W. Marino [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 23, 2002 6:03 PM
 To: [EMAIL PROTECTED]
 Subject: Which Apache-To-Tomcat Connector


 Any reason for using AJP14 over AJP13?
 And what about mod_webapp?

 Thanks in advance,
 Anthony

-- 
Anthony W. Marino
Pres./CTO, AWM Objects
email:  [EMAIL PROTECTED]
phone:  (732) 610-2441


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




RE: How select a printer to print

2002-04-24 Thread Jack Li

I might not describe my problem well. My users need to select a printer on
the web server. I need to write a jsp page to list all the printers on the
server and let them to choose one. How can I do it?

Jack

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 4:30 PM
To: Tomcat Users List
Subject: Re: How select a printer to print



First if the users use the browser to view webpages spewed out by Tomcat,
then they will only see the printers installed on their machines. If you
have a java app, you could probably use JNDI to expose the printers (I
think...I've never done that though). But as I said, web users will only
see printers local to them.

RS




Jack Li [EMAIL PROTECTED] on 04/23/2002 01:30:34 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc:

Subject:How select a printer to print

Hello,
My users need to select a printer from a list of printers installed on web
server. How to get the list of printers and select a printer to print the
report? I have JDK1.3 and Tomcat 4

Thanks,

Jack Li









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

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




Problems with authentication and encryption

2002-04-24 Thread Erik Östlund (QIC)

 I'm running Tomcat 4.0.3 standalone and I've tried to enable encryption and 
authentication (BASIC) on a jsp-page. I've currently only tested this with IE 6.

 Without encryption everything works fine. I simply type in the access-restricted URL, 
a BASIC-authentication requester appears, if I don't enter the correct username and 
password the page is not shown. Perfect.

 Then I add the following three lines to my web.xml (inside the security-constraint 
element):

user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint

 Again I type in the access-restricted URL. However, this time a requester appears 
stating that from now on a secure link will be used. So far so good I guess, so I 
press the OK-button and to my surprise I am shown a This page cannot be 
displayed-message. I wasn't even given a chance to type in my username and password. 
It happens using both BASIC and FORM based authentication.

 What am I doing wrong?

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




RE: How select a printer to print

2002-04-24 Thread Wagoner, Mark

This is more a general Java question than a Tomcat question.

Perhaps you should do a search for enumerating printers through JNI.


-Original Message-
From: Jack Li [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 10:47 AM
To: 'Tomcat Users List'
Subject: RE: How select a printer to print


I might not describe my problem well. My users need to select a printer on
the web server. I need to write a jsp page to list all the printers on the
server and let them to choose one. How can I do it?

Jack

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 4:30 PM
To: Tomcat Users List
Subject: Re: How select a printer to print



First if the users use the browser to view webpages spewed out by Tomcat,
then they will only see the printers installed on their machines. If you
have a java app, you could probably use JNDI to expose the printers (I
think...I've never done that though). But as I said, web users will only
see printers local to them.

RS




Jack Li [EMAIL PROTECTED] on 04/23/2002 01:30:34 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc:

Subject:How select a printer to print

Hello,
My users need to select a printer from a list of printers installed on web
server. How to get the list of printers and select a printer to print the
report? I have JDK1.3 and Tomcat 4

Thanks,

Jack Li









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

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

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




RE: Tomcat 3.3a as a W2k Service

2002-04-24 Thread Short, Dave

I mean any logs - none are written.  What is the latest and greatest version
of jk_nt_service.exe?  Can you tell me what the wrapper.jvm.options setting
would be for JDK1.2.2?

-Original Message-
From: Lecaros, Noel [mailto:[EMAIL PROTECTED]]
Sent: April 23, 2002 10:55 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 3.3a as a W2k Service


When you say the logs are not written, do you mean the file jvm.stderr in
the logs subdirectory for Tomcat?  On version 3.3.1, there is an issue with
jk_nt_service in that it does not properly interpret the wrapper.properties
file supplied in the distribution.  Specifically, the wrapper.jvm.options
property cannot be blank.  You might want to remove this property from
wrapper.cmd_line located at the bottom of this file, or add an option, some
samples of which are given in the same file.  I have mine set to:

wrapper.jvm.options=-Xrs

since I use JDK1.3.1

Cheers,
Noel

-Original Message-
From: Short, Dave [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:49 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 3.3a as a W2k Service


I tried that and it still didn't work.  On the version of jk_nt_service.exe
that I'm using the -a stands for Set startup as automatic.

I'm in the correct directory and address/ports are not in use.  I can start
Tomcat from the command line ok...

-Original Message-
From: John Roth [mailto:[EMAIL PROTECTED]]
Sent: April 23, 2002 10:40 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 3.3a as a W2k Service


Try: jk_nt_service -i Tomcat -a wrapper.properties (the -a being an
addition)

Also:
1) be sure you are in the directory where wrapper.properties exists
2) verify your address/ports are not in use elsewhere

Thanks,
john


-Original Message-
From: Short, Dave [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:35 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.3a as a W2k Service


I'm not having much success trying to run Tomcat 3.3a as a W2K service.
jk_nt_service -s Tomcat just gives me the following dialog:

Asked (and given) winsock 1.1
Starting Tomcat.
Tomcat failed to start.

The logs are not written and there is no trace of any type of error message.
The service was installed as follows:

jk_nt_service -i Tomcat wrapper.properties

Any help would be greatly appreciated.



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


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

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

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

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Lance Smith

Using: Apache 2.0.35 and Tomcat 4.0.3 on Red Hat 7.2.

Say it isn't so: There is no way to serve static pages from Apache using 
mod_webapp? Can anyone confirm/deny this?

Lance

  The major difference between the two modules, other than this, is that
  mod_jk allows static content to be served directly from Apache rather
  than going through Tomcat, and mod_jk has provision for doing
  loadbalancing across multiple servers. Of these, the former is
  (apparently) going to be fixed at some point in the near future.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Wayne Pascoe

Hi all,

I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20

I have unpacked the tomcat connectors source, and then cd'd to
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native

From there, cd to apache-1.3, edit the build-unix.sh file to change
JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find fails,
and change linux on that line to freebsd. This allows me to build and
install a mod_jk module into my apache libexec dir by running sh
build-unix.sh

Following the same process in apache-2.0, and things start out fine. I then
get the following :
.
.
.
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1eaa): undefined reference to `pthread_mutex_init'
jk_ajp_common.lo: In function `ajp_destroy':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1fb7): undefined reference to `pthread_mutex_lock'
jk_ajp_common.lo: In function `ajp_done':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x2097): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x20d6): undefined reference to `pthread_mutex_destroy'
jk_ajp_common.lo: In function `ajp_get_endpoint':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21aa): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21fe): undefined reference to `pthread_mutex_destroy'
apxs:Error: Command failed with rc=65536
.
Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
cp: mod_jk.so: No such file or directory
Done. Install by running ./install-unix.sh

There are quite a few screens of this error.

Does anyone have any advice for fixing this? I'd really like to use apache 2
on this server.

Thanks in advance,

-- 
Wayne Pascoe [EMAIL PROTECTED]

The price of freedom is eternal vigilance
   - Thomas Jefferson


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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart

It isn't so. You can still serve static pages, but they'll come
through Tomcat and then apache, rather than being served straight from
apache. End result: you'll see a speed hit. This is what's being
fixed, as I understand it.

On Wed, Apr 24, 2002 at 03:00:59PM +, Lance Smith wrote:
 Using: Apache 2.0.35 and Tomcat 4.0.3 on Red Hat 7.2.
 
 Say it isn't so: There is no way to serve static pages from Apache using 
 mod_webapp? Can anyone confirm/deny this?
 
 Lance
 
  The major difference between the two modules, other than this, is that
  mod_jk allows static content to be served directly from Apache rather
  than going through Tomcat, and mod_jk has provision for doing
  loadbalancing across multiple servers. Of these, the former is
  (apparently) going to be fixed at some point in the near future.

Cheers,

Simon

-- 
I'm sorry, you must be confusing
 me with someone who gives a damn.

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




RE: Which Apache-To-Tomcat Connector

2002-04-24 Thread Short, Dave

In which version is this projected to be fixed?

-Original Message-
From: Simon Stewart [mailto:[EMAIL PROTECTED]]
Sent: April 24, 2002 8:11 AM
To: Tomcat Users List
Subject: Re: Which Apache-To-Tomcat Connector


It isn't so. You can still serve static pages, but they'll come
through Tomcat and then apache, rather than being served straight from
apache. End result: you'll see a speed hit. This is what's being
fixed, as I understand it.

On Wed, Apr 24, 2002 at 03:00:59PM +, Lance Smith wrote:
 Using: Apache 2.0.35 and Tomcat 4.0.3 on Red Hat 7.2.
 
 Say it isn't so: There is no way to serve static pages from Apache using 
 mod_webapp? Can anyone confirm/deny this?
 
 Lance
 
  The major difference between the two modules, other than this, is that
  mod_jk allows static content to be served directly from Apache rather
  than going through Tomcat, and mod_jk has provision for doing
  loadbalancing across multiple servers. Of these, the former is
  (apparently) going to be fixed at some point in the near future.

Cheers,

Simon

-- 
I'm sorry, you must be confusing
 me with someone who gives a damn.

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

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




Re: Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Pascal Forget

Hi Wayne,

Welcome to the club.  I have been spending countless hours trying to 
resolve the
same problem you describe.  I'm trying to buid mod_jk on Linux.  I'll 
let you know
if I find the answer, and I hope you'll do the same if you solve the 
problem before me.

Best Regards,

Pascal


Wayne Pascoe wrote:

Hi all,

I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20

I have unpacked the tomcat connectors source, and then cd'd to
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native

From there, cd to apache-1.3, edit the build-unix.sh file to change
JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find fails,
and change linux on that line to freebsd. This allows me to build and
install a mod_jk module into my apache libexec dir by running sh
build-unix.sh

Following the same process in apache-2.0, and things start out fine. I then
get the following :
.
.
.
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1eaa): undefined reference to `pthread_mutex_init'
jk_ajp_common.lo: In function `ajp_destroy':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1fb7): undefined reference to `pthread_mutex_lock'
jk_ajp_common.lo: In function `ajp_done':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x2097): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x20d6): undefined reference to `pthread_mutex_destroy'
jk_ajp_common.lo: In function `ajp_get_endpoint':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21aa): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21fe): undefined reference to `pthread_mutex_destroy'
apxs:Error: Command failed with rc=65536
.
Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
cp: mod_jk.so: No such file or directory
Done. Install by running ./install-unix.sh

There are quite a few screens of this error.

Does anyone have any advice for fixing this? I'd really like to use apache 2
on this server.

Thanks in advance,





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




RE: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Wu Lu

If you installed Apache on WinXP, there is a menu option of Test
Configuration. You can click it to test the configuration. The actuall
command is:

C:\Program Files\Apache Group\Apache2\bin\Apache.exe -t -f C:\Program
Files\Apache Group\Apache2\conf\httpd.conf -d C:\Program Files\Apache
Group\Apache2\.

-Original Message-
From: yilmaz [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 11:11 AM
To: Tomcat Users List
Subject: Re: LoadModule webapp_module modules/mod_webapp.so

Hi Simon,
I tried apache -t istead (i saw it from someone else's posting) and got:
apache: could not open document config file D:/Program
Files/E~1/Apache2/conf/httpd.conf
error.
As you said i changed modules/mod_webapps.so to
modules\mod_webapps.so, but still the same frustrating message :(
what do you think the problem can be?
thanks :)
- Original Message -
From: Simon Stewart [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 10:28 PM
Subject: Re: LoadModule webapp_module modules/mod_webapp.so


 apachectl configtest ultimately runs httpd -t, so you could try
 httpd.exe -t on win32. You might also try reversing the direction of
 the file seperator in Windows:

 LoadModule webapp_module modules\mod_webapp.so

 I'm never tried Apache on Win32, but this should help.

 On Wed, Apr 24, 2002 at 09:51:57PM +0800, yilmaz wrote:
  Hi Simon,
  unfortunately i don't know how to do apachectl configtest.
  from command window i tried that , but didn't work.
  From apache monitor, when i try to start the server, it throws
  the requested operation has failed error, nothing else.
  My httpd.config is okey,  except when i add
  LoadModule webapp_module modules/mod_webapp.so
  into the httpd.config file (as it is instructed) , and restart the
apache,
  it can't start. Obviously the problem is with the above line of code.
  Any suggestions ?
  Thanks :)
  - Original Message -
  From: Simon Stewart [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, April 24, 2002 5:54 PM
  Subject: Re: LoadModule webapp_module modules/mod_webapp.so
 
 
   On Wed, Apr 24, 2002 at 04:34:42PM +0800, yilmaz wrote:
Hi everyone,
i know everyone is already sick of reading problems about apache and
  tomcat. I read almost all related mails and articles (how-to's) on the
  internet , which didn't help.
i am working with tomcat 4.0-b7 on win 2000.
And using apcahe 2.
according to the instructions on the articles downloaded
mod_webapp.so
  and put it under modules/ directory.
The tomact and apache both work fine without problem.
When i add
LoadModule webapp_module modules/mod_webapp.so
in my httpd.conf file, i can't get apache started. It says the
  requested operation has failed.
Is there any syntax error, or something else?
(note: i added the above line just under the default loadmodule
lines
  defined in the httpd.conf file)
Any help please : (
  
   When you saw the error, had you done an apachectl configtest to make
   sure that your httpd.conf was okay? Is there anything in apache's
   error logs?
  
   Cheers,
  
   Simon
  
   --
   `The situation is completely under control. All of them were killed.'
--- Alim Razim, for the Northern Alliance, demonstrating fine
command of traditional Afghan prisoner control techniques.
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 Cheers,

 Simon

 --
 Ambivalent? Well, yes and no

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





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

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




Re: Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Michael Delamere

Hi,

I managed to get mod_jk compiled on:

SuSe Linux 7.1 with Apache2.0.35:

The only problem was that when calling a servlet I got jakarta-servlet not
found.  Otherwise, Apache accepted it without an error message.

bye Michael Delamere



- Original Message -
From: Pascal Forget [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 5:23 PM
Subject: Re: Compiling mod_jk for Apache 2.0.35


 Hi Wayne,

 Welcome to the club.  I have been spending countless hours trying to
 resolve the
 same problem you describe.  I'm trying to buid mod_jk on Linux.  I'll
 let you know
 if I find the answer, and I hope you'll do the same if you solve the
 problem before me.

 Best Regards,

 Pascal


 Wayne Pascoe wrote:

 Hi all,
 
 I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
 building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20
 
 I have unpacked the tomcat connectors source, and then cd'd to
 /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native
 
 From there, cd to apache-1.3, edit the build-unix.sh file to change
 JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find
fails,
 and change linux on that line to freebsd. This allows me to build and
 install a mod_jk module into my apache libexec dir by running sh
 build-unix.sh
 
 Following the same process in apache-2.0, and things start out fine. I
then
 get the following :
 .
 .
 .

/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
 k_ajp_common.c(.text+0x1eaa): undefined reference to `pthread_mutex_init'
 jk_ajp_common.lo: In function `ajp_destroy':

/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
 k_ajp_common.c(.text+0x1fb7): undefined reference to `pthread_mutex_lock'
 jk_ajp_common.lo: In function `ajp_done':

/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
 k_ajp_common.c(.text+0x2097): undefined reference to
`pthread_mutex_unlock'

/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
 k_ajp_common.c(.text+0x20d6): undefined reference to
`pthread_mutex_destroy'
 jk_ajp_common.lo: In function `ajp_get_endpoint':

/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
 k_ajp_common.c(.text+0x21aa): undefined reference to
`pthread_mutex_unlock'

/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
 k_ajp_common.c(.text+0x21fe): undefined reference to
`pthread_mutex_destroy'
 apxs:Error: Command failed with rc=65536
 .
 Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
 cp: mod_jk.so: No such file or directory
 Done. Install by running ./install-unix.sh
 
 There are quite a few screens of this error.
 
 Does anyone have any advice for fixing this? I'd really like to use
apache 2
 on this server.
 
 Thanks in advance,
 




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



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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart

I have no idea! It's just one of the things that you see mentioned if
you browse throught the tomcat-dev mailing list (which I'm not on, I
hasten to add :)

On Wed, Apr 24, 2002 at 11:14:03AM -0400, Short, Dave wrote:
 In which version is this projected to be fixed?
 
 -Original Message-
 From: Simon Stewart [mailto:[EMAIL PROTECTED]]
 Sent: April 24, 2002 8:11 AM
 To: Tomcat Users List
 Subject: Re: Which Apache-To-Tomcat Connector
 
 
 It isn't so. You can still serve static pages, but they'll come
 through Tomcat and then apache, rather than being served straight from
 apache. End result: you'll see a speed hit. This is what's being
 fixed, as I understand it.
 
 On Wed, Apr 24, 2002 at 03:00:59PM +, Lance Smith wrote:
  Using: Apache 2.0.35 and Tomcat 4.0.3 on Red Hat 7.2.
  
  Say it isn't so: There is no way to serve static pages from Apache using 
  mod_webapp? Can anyone confirm/deny this?
  
  Lance
  
   The major difference between the two modules, other than this, is that
   mod_jk allows static content to be served directly from Apache rather
   than going through Tomcat, and mod_jk has provision for doing
   loadbalancing across multiple servers. Of these, the former is
   (apparently) going to be fixed at some point in the near future.

Cheers,

Simon

-- 
Jesus ate my mouse or some similar banality.
-- Megahal (trained on asr), 1998-11-06

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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart

The only other thing that springs to mind is to use a path without
spaces in, and perhaps to double up your back slashes. Try one, then
the other, then both. This is something of a last resort, though.

On Wed, Apr 24, 2002 at 11:10:50PM +0800, yilmaz wrote:
 Hi Simon,
 I tried apache -t istead (i saw it from someone else's posting) and got:
 apache: could not open document config file D:/Program
 Files/E~1/Apache2/conf/httpd.conf
 error.
 As you said i changed modules/mod_webapps.so to
 modules\mod_webapps.so, but still the same frustrating message :(
 what do you think the problem can be?
 thanks :)
 - Original Message -
 From: Simon Stewart [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, April 24, 2002 10:28 PM
 Subject: Re: LoadModule webapp_module modules/mod_webapp.so
 
 
  apachectl configtest ultimately runs httpd -t, so you could try
  httpd.exe -t on win32. You might also try reversing the direction of
  the file seperator in Windows:
 
  LoadModule webapp_module modules\mod_webapp.so
 
  I'm never tried Apache on Win32, but this should help.
 
  On Wed, Apr 24, 2002 at 09:51:57PM +0800, yilmaz wrote:
   Hi Simon,
   unfortunately i don't know how to do apachectl configtest.
   from command window i tried that , but didn't work.
   From apache monitor, when i try to start the server, it throws
   the requested operation has failed error, nothing else.
   My httpd.config is okey,  except when i add
   LoadModule webapp_module modules/mod_webapp.so
   into the httpd.config file (as it is instructed) , and restart the
 apache,
   it can't start. Obviously the problem is with the above line of code.
   Any suggestions ?
   Thanks :)

Cheers,

Simon

-- 
What happens if a big asteroid hits the Earth?  Judging from realistic
simulations involving a sledge hammer and a common laboratory frog, we
can assume it will be pretty bad. - Dave Barry

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




RE: OT: RE: Security (Struts/Turbine)

2002-04-24 Thread Anthony Eden

Personal experience (and personal mistakes).  When the boss is breathing down your 
neck about some feature which they
desperately need and that feature is easy to implement with a little bit of code in a 
JSP page...well the temptation is
very strong and the means to exploit it exist so the easiest route is taken.  There is 
instant gratification because the
JSP is automatically compiled and the feature can be used immediately.

Now, this becomes really problematic as the projects begin to age.  It is easy to have 
duplicated code, bugs which are
in one part of the code but another, alternate implementations of what are the same 
features, etc.  All of this can be
avoided by properly designing and implementing features using beans and taglibs and 
such, but the facilities for just
hacking the JSP are still there and will always be tempting.

With Velocity, there are no facilities for placing Java code directly in the page.  
Velocity is designed as a simple
language which supports a small number of view-related functions (retrieving values 
from a context, simple foreach
looping, etc).  IMO, this simplicity is precisely why it is so powerful.

FWIW, I think that the best thing to do at this point for web development is to use a 
framework which is flexible and
which provides integration with at least one templating language which is NOT JSP.

Sincerely,
Anthony Eden

PS. For those who are interested in comparing the different open source Java web 
frameworks which are available, please
visit the Wafer project at http://wafer.sf.net/ .


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 24, 2002 9:10 AM
 To: Tomcat Users List
 Subject: Re: OT: RE: Security (Struts/Turbine)


 Anthony Eden wrote:

  snip
 
   Sure, speaking about power, JSPs would be much powerful than Velocity
   templates, IMHO.
 
  But at what price?  The power of JSPs can be so easily abused even by the best 
developers.

  snip

 Do you have a reference on that, or some thoughts you could briefly share? Thanks.

 P.



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



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




servlets help:

2002-04-24 Thread jo outen

I am using mod_jk in tomcat 3.3a I am trying to
JkMount servlets from a specified directory. 

The servlets work when I JkMount the root war in
webapps.
JkMount /rootofwar/* ajp13.


What I am having trouble with is that the servlet code
is several levels deep in WEB-INF and when I JkMount
the expected URL path I keep getting 404s from apache.


Can anyone help me debug this.

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread James Williamson


 
 
  It isn't so. You can still serve static pages, but they'll come
  through Tomcat and then apache, rather than being served straight from
  apache. End result: you'll see a speed hit. This is what's being
  fixed, as I understand it.
 
  On Wed, Apr 24, 2002 at 03:00:59PM +, Lance Smith wrote:
   Using: Apache 2.0.35 and Tomcat 4.0.3 on Red Hat 7.2.
  
   Say it isn't so: There is no way to serve static pages from Apache
using
   mod_webapp? Can anyone confirm/deny this?
  
   Lance

We wrote a quick and dirty patch which I should get round to sending
to the Tomcat dev list which allows you to tell mod_webapp to ignore
certain types of content. It basically introduces WebappIgnore directive
to ignore certain patterns:

i.e. WebappIgnore *.html

Find it attached.

Regards,

James Williamson
www.nameonthe.net
UK Tomcat Hosting



mod_webapp.patch
Description: Binary data

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


Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-24 Thread digital synapse

I did send you an email at your personal email with my output, just 
wondering if you received it ok?

-digitalsy


From: Simon Stewart [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need
Date: Wed, 24 Apr 2002 12:18:23 +0100

Curious. I take it that you're on a Linux box? Using gcc? And using
the versions of the software that are linked to from the howto? If you
are, then I'd be interested in seeing the output from steps 1-3
(creating mod_webapp.so and libwebapp.so) Can you mail them to me
privately? I don't think that the list wants to see screenfulls of
output :)

On Wed, Apr 24, 2002 at 06:52:28AM -0400, digital synapse wrote:
  Yeah both those files are in the source tree in the /lib subdir. They 
are
  both greater than 0bytes. $APACHE_HOME is set in /etc/profile to
  /usr/local/apache2. I can't even start apache due to this wa_pool 
error
 
 
  -digitalsy
 
 
  From: Simon Stewart [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need
  Date: Wed, 24 Apr 2002 10:38:49 +0100
  
  wa_pool is defined in libwebapp.so (wa_main.c fwiw) If you haven't
  deleted or cleaned the source tree, you might want to make sure that
  this file was compiled (there should be a wa_main.o file in the
  webapp/lib directory) You should also have a libwebapp.so file
  that's larger than 0 bytes.
  
  If either of those files are missing, it looks like the step 2 or the
  start of step 3 (which is basically doing the normal compile and then
  preparing libwebapps.o) failed. I know that you've probably done it,
  but is APACHE_HOME defined correctly?
  
  Regards,
  
  Simon
  
  On Tue, Apr 23, 2002 at 11:05:52PM -0400, digital synapse wrote:
   I've tried to follow the tutorial by simon at
   http://www.pubbitch.org/jboss.html, and it seems very detailed 
however
  i've
   run into a snag. when i add the  LoadModule webapp_module
   modules/mod_webapp.so line into httpd.conf from apache2.035 (no i 
didn't
   get any errors while compiling the .so) when i try to do apachectl
   configtest i get the following error:
  
   Cannot load /usr/local/apache2/modules/mod_webapp.so into server:
   /usr/local/apache2/modules/mod_webapp.so: undefined symbol: wa_pool
   Any ideas anyone?

Cheers,

Simon

--
The other day I was playing poker with Tarot cards. I got a full house
and four people died. --- Steven Wright

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





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-24 Thread digital synapse

I did send you an email at your personal email with my output, just 
wondering if you received it ok?

-digitalsy


From: Simon Stewart [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need
Date: Wed, 24 Apr 2002 12:18:23 +0100

Curious. I take it that you're on a Linux box? Using gcc? And using
the versions of the software that are linked to from the howto? If you
are, then I'd be interested in seeing the output from steps 1-3
(creating mod_webapp.so and libwebapp.so) Can you mail them to me
privately? I don't think that the list wants to see screenfulls of
output :)

On Wed, Apr 24, 2002 at 06:52:28AM -0400, digital synapse wrote:
  Yeah both those files are in the source tree in the /lib subdir. They 
are
  both greater than 0bytes. $APACHE_HOME is set in /etc/profile to
  /usr/local/apache2. I can't even start apache due to this wa_pool 
error
 
 
  -digitalsy
 
 
  From: Simon Stewart [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need
  Date: Wed, 24 Apr 2002 10:38:49 +0100
  
  wa_pool is defined in libwebapp.so (wa_main.c fwiw) If you haven't
  deleted or cleaned the source tree, you might want to make sure that
  this file was compiled (there should be a wa_main.o file in the
  webapp/lib directory) You should also have a libwebapp.so file
  that's larger than 0 bytes.
  
  If either of those files are missing, it looks like the step 2 or the
  start of step 3 (which is basically doing the normal compile and then
  preparing libwebapps.o) failed. I know that you've probably done it,
  but is APACHE_HOME defined correctly?
  
  Regards,
  
  Simon
  
  On Tue, Apr 23, 2002 at 11:05:52PM -0400, digital synapse wrote:
   I've tried to follow the tutorial by simon at
   http://www.pubbitch.org/jboss.html, and it seems very detailed 
however
  i've
   run into a snag. when i add the  LoadModule webapp_module
   modules/mod_webapp.so line into httpd.conf from apache2.035 (no i 
didn't
   get any errors while compiling the .so) when i try to do apachectl
   configtest i get the following error:
  
   Cannot load /usr/local/apache2/modules/mod_webapp.so into server:
   /usr/local/apache2/modules/mod_webapp.so: undefined symbol: wa_pool
   Any ideas anyone?

Cheers,

Simon

--
The other day I was playing poker with Tarot cards. I got a full house
and four people died. --- Steven Wright

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





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Dan K.

Hi,

I thought mod_webapp was suppose to be the successor to mod_jk in tomcat
4.x, and mod_jk only existed for backwards compatibility for tomcat 3.x.
Don't know about mod_jk2 though...

Regards,
Dan

On Wed, 24 Apr 2002, Michael Delamere wrote:

 Although I don´t have the answer, it´s a VERY interesting question.  As you
 said, it appeared that mod_webapp would eventually replace mod_jk which has
 been said to become deprectated at some stage (correct me if I got the
 information wrong).

 So why is there a new version of mod_jk?

 Unfortunately after visiting the jakarta site I´m none the wiser :-).

 bye Michael Delamere



 - Original Message -
 From: Simon Stewart [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, April 24, 2002 2:23 PM
 Subject: Re: Which Apache-To-Tomcat Connector


  On Wed, Apr 24, 2002 at 08:04:17AM -0400, Anthony W. Marino wrote:
On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote:
 Any reason for using AJP14 over AJP13?
 And what about mod_webapp?
   
I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2
don't get along well at all[1]. The impression that I've gleaned from
reading past postings to this list is that mod_webapp is meant to
supercede mod_jk and is the preferred way of connecting Apache and
Tomcat.
   
  
   If mod_webapp is the next generation then why jk2?
 
  That question can be read in two ways: Why did I start off using
  jk2? and why is there a jk2 project, then?
 
  To answer the first question: because at the time, I hadn't done much
  reading around the subject, and mod_jk was what the other admins that
  I spoke to were using, albeit with apache 1.3.x
 
  The answer to the second interpretation is probably the same :) Also,
  jk offers some features that webapp doesn't, which may be an incentive
  for people to want to try and make it work with apache 2.
 
   Is warp in the coyote connectors the mod_webapp that should be used???
 
  Good question. The connector that makes use of it is mod_webapp, and
  this is part of the jakarta-tomcat-connectors project, if that helps?
  Getting a listing of the classes that are contained in the
  tomcat-*.jar files doesn't indicate anything called *warp*, but
  that could just be because it's the protocol name
 
  Cheers,
 
  Simon
 
  --
  Hanlon's Razor:
  Never attribute to malice that which is adequately explained
  by stupidity.
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


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



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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Ken Anderson

It isn't so. There is no problem serving static content through apache 
using mod webapp to server only servlets, jsp. The setup is different 
than when using mod_jk, that's all.
Ken


Lance Smith wrote:
 Using: Apache 2.0.35 and Tomcat 4.0.3 on Red Hat 7.2.
 
 Say it isn't so: There is no way to serve static pages from Apache using 
 mod_webapp? Can anyone confirm/deny this?
 
 Lance
 
  The major difference between the two modules, other than this, is that
  mod_jk allows static content to be served directly from Apache rather
  than going through Tomcat, and mod_jk has provision for doing
  loadbalancing across multiple servers. Of these, the former is
  (apparently) going to be fixed at some point in the near future.
 
 
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
 
 
 -- 
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 



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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Michael Delamere

Thanks for the patch.  I will certainly give it a go.
Just a question.  I noticed that the first line says something about
apache1.3.  has this also been tested on apache2.0.x?

bye Michael Delamere



- Original Message -
From: James Williamson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 5:37 PM
Subject: Re: Which Apache-To-Tomcat Connector



  
  
   It isn't so. You can still serve static pages, but they'll come
   through Tomcat and then apache, rather than being served straight from
   apache. End result: you'll see a speed hit. This is what's being
   fixed, as I understand it.
  
   On Wed, Apr 24, 2002 at 03:00:59PM +, Lance Smith wrote:
Using: Apache 2.0.35 and Tomcat 4.0.3 on Red Hat 7.2.
   
Say it isn't so: There is no way to serve static pages from Apache
 using
mod_webapp? Can anyone confirm/deny this?
   
Lance

 We wrote a quick and dirty patch which I should get round to sending
 to the Tomcat dev list which allows you to tell mod_webapp to ignore
 certain types of content. It basically introduces WebappIgnore directive
 to ignore certain patterns:

 i.e. WebappIgnore *.html

 Find it attached.

 Regards,

 James Williamson
 www.nameonthe.net
 UK Tomcat Hosting







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


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




Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Pascal Forget

Anthony W. Marino wrote:

Any reason for using AJP14 over AJP13?
And what about mod_webapp?


For starters, you could read http://www.ubeans.com/tomcat

One question you might want to ask yourself is wether you REALLY
need Apache forwarding requests to Tomcat.  Doing so is MUCH slower
than having the clients (web browsers) talking to Tomcat directly using the
HTTP connector.  With a little planning before you develop your 
applications,
you can have Tomcat serve dynamic content on one IP address while Apache
serves static content on another IP address.

I am not saying that you should not use the connectors; there are many valid
reasons to use either mod_jk or mod_webapp to connect Apache to Tomcat.
I am just saying that you should evaluate your needs first.

Best Regards,

Pascal



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




Tomcat4 performance.

2002-04-24 Thread Clearwater, Pete

Hi All.

I'm currently doing some performance testing in order to convince my superiors that we 
should move away from the expensive Weblogic app server to a free JBoss/(Tomcat or 
Jetty) implementation.  However, I've run into a bit of a snag as both Tomcat and
Jetty appear to be about 50% slower than Weblogic under equivalent loads.  Our Web app 
caches most of it's data so DB access is not a concern ( see 
http://regi2.adm.ubc.ca:7107/courses/ubcjsp/pubs/courseschedule/main.jsp to see it in 
action) but it does
output a considerable amount of dynamic data.  In my tests I have apache configured 
to ProxyPass all requests for dynamic data and to serve all images and static files.

Does anybody have any tomcat performance tips/tricks I can try?  I've already turned 
all the logging as far down as I can

When I run it through Optimizeit, 15% of the CPU time is spent in 
org.apache.catalina.connector.ResponseWriter.write().  Because we use a lot of 
includes (each page is comprised of 3-4 included JSP files)  7% of the time is also 
spent in
org.apache.jasper.servlet.JspServlet.loadJSP().

One thing I'm wondering about - The included JSP files are included through 
RequestDispatcher.include() (I cannot use the JSP:Include tag) and in order for the 
data to appear in the correct order, I had to add the tag  %@ page buffer=0
autoFlush=true % to all of my JSP files.  I assume this doesn't help the 
performance of the system... is there anyway around this?  This is not required in 
Weblogic.

I realize performance questions are very difficult to answer, but any info at all 
would be greatly appreciated.

thanks.

Pete Clearwater

___
Pete Clearwater
Systems Analyst   Enrolment Services
Student Systems   Brock Hall
tel: 604.822.8662 2016-1874 East Mall
[EMAIL PROTECTED]Vancouver BC, Canada, V6T 1Z1





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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Dan K.


Also, make sure you have a ServerName directive in your httpd.conf if
you don't have it.

Regards,
Dan

On Wed, 24 Apr 2002, Simon Stewart wrote:

 The only other thing that springs to mind is to use a path without
 spaces in, and perhaps to double up your back slashes. Try one, then
 the other, then both. This is something of a last resort, though.

 On Wed, Apr 24, 2002 at 11:10:50PM +0800, yilmaz wrote:
  Hi Simon,
  I tried apache -t istead (i saw it from someone else's posting) and got:
  apache: could not open document config file D:/Program
  Files/E~1/Apache2/conf/httpd.conf
  error.
  As you said i changed modules/mod_webapps.so to
  modules\mod_webapps.so, but still the same frustrating message :(
  what do you think the problem can be?
  thanks :)
  - Original Message -
  From: Simon Stewart [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, April 24, 2002 10:28 PM
  Subject: Re: LoadModule webapp_module modules/mod_webapp.so
 
 
   apachectl configtest ultimately runs httpd -t, so you could try
   httpd.exe -t on win32. You might also try reversing the direction of
   the file seperator in Windows:
  
   LoadModule webapp_module modules\mod_webapp.so
  
   I'm never tried Apache on Win32, but this should help.
  
   On Wed, Apr 24, 2002 at 09:51:57PM +0800, yilmaz wrote:
Hi Simon,
unfortunately i don't know how to do apachectl configtest.
from command window i tried that , but didn't work.
From apache monitor, when i try to start the server, it throws
the requested operation has failed error, nothing else.
My httpd.config is okey,  except when i add
LoadModule webapp_module modules/mod_webapp.so
into the httpd.config file (as it is instructed) , and restart the
  apache,
it can't start. Obviously the problem is with the above line of code.
Any suggestions ?
Thanks :)

 Cheers,

 Simon

 --
 What happens if a big asteroid hits the Earth?  Judging from realistic
 simulations involving a sledge hammer and a common laboratory frog, we
 can assume it will be pretty bad. - Dave Barry

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



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




Re: Tomcat4 performance.

2002-04-24 Thread Austin Gonyou

We use this setup, and have gotten it to work quite well, but if you're
using XSLT, then the transformer you're using could be a large part of
the process cost. Also, we had to re-write a lot of code to actually
clean things up because we were doing things in improper ways.
Eventually we squeezed every bit of speed we could have and the
difference between say, SSI parsed data and JBoss/Tomcat using
transforms from a datasource, then handing that to mod_jk/apache is
actually within 1 or 2 second differences. In certain test cases, even
possibly less.

FYI.

On Wed, 2002-04-24 at 10:51, Clearwater, Pete wrote:
 Hi All.
 
 I'm currently doing some performance testing in order to convince my
 superiors that we should move away from the expensive Weblogic app
 server to a free JBoss/(Tomcat or Jetty) implementation.  However, I've
 run into a bit of a snag as both Tomcat and
 Jetty appear to be about 50% slower than Weblogic under equivalent
 loads.  Our Web app caches most of it's data so DB access is not a
 concern ( see
 http://regi2.adm.ubc.ca:7107/courses/ubcjsp/pubs/courseschedule/main.jsp
 to see it in action) but it does
 output a considerable amount of dynamic data.  In my tests I have
 apache configured to ProxyPass all requests for dynamic data and to
 serve all images and static files.
 
 Does anybody have any tomcat performance tips/tricks I can try?  I've
 already turned all the logging as far down as I can
 
 When I run it through Optimizeit, 15% of the CPU time is spent in
 org.apache.catalina.connector.ResponseWriter.write().  Because we use a
 lot of includes (each page is comprised of 3-4 included JSP files)  7%
 of the time is also spent in
 org.apache.jasper.servlet.JspServlet.loadJSP().
 
 One thing I'm wondering about - The included JSP files are included
 through RequestDispatcher.include() (I cannot use the JSP:Include tag)
 and in order for the data to appear in the correct order, I had to add
 the tag  %@ page buffer=0
 autoFlush=true % to all of my JSP files.  I assume this doesn't help
 the performance of the system... is there anyway around this?  This is
 not required in Weblogic.
 
 I realize performance questions are very difficult to answer, but any
 info at all would be greatly appreciated.
 
 thanks.
 
 Pete Clearwater
 
 ___
 Pete Clearwater
 Systems Analyst   Enrolment Services
 Student Systems   Brock Hall
 tel: 604.822.8662 2016-1874 East Mall
 [EMAIL PROTECTED]Vancouver BC, Canada, V6T 1Z1
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
-- 
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-698-7250
email: [EMAIL PROTECTED]

It is the part of a good shepherd to shear his flock, not to skin it.
Latin Proverb



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


Class jsppages.MoniBean not found.

2002-04-24 Thread chuck amadi


*Hi there any reason for this as i i haven't got jsppages in
my classes path or as a package in my MoniBea*


*jsp:useBean id=formHandler scope=request
class=MoniBean/**
**jsp:setProperty name=formHandler property=*/*
*Error: 500*


*Location: /volapp/jsppages/registerProcess.jsp*


*Internal Servlet Error:*

org.apache.jasper.JasperException: Unable to compile 
/home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProcess_1.java:72: Class 
jsppages.MoniBean not found.
MoniBean formHandler = null;
^
/home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProcess_1.java:75: Class 
jsppages.MoniBean not found.
formHandler= (MoniBean)
  ^
/home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProcess_1.java:80: Class 
jsppages.MoniBean not found.
  formHandler = (MoniBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), MoniBean);
 ^
3 errors

at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
Source)
at java.lang.Thread.run(Thread.java:498)

Please help as i have had to to do a reinstall of tomcat 3.3a as i couldn't sort the 
behaviour issue as i kept
getting cannot creat Bean.So thid is better than the previous errors.

Cheers Chuck Amadi
Systems Programmer




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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart

Above any WebApp* directives. In apache 2, also include the port
number. I've got:

ServerName localhost:80

in my httpd.conf

On Wed, Apr 24, 2002 at 11:52:45AM -0400, Dan K. wrote:
 
 Also, make sure you have a ServerName directive in your httpd.conf if
 you don't have it.
 
 Regards,
 Dan

Cheers,

Simon

-- 
Even had to open up the case and gaze upon the hallowed peace that
graced the helpdesk that day. -- Megahal (trained on asr), 1998-11-06

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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread yilmaz

i downloaded the windows 2000 versions of both apache2 and mod_webapps.
Apache 2 has a directory  called  modules which has only .so files, and
mod_webapps.zip file has a mod_webapp.so file , as well as a libapr.dll
file. And the readme instructs to put the mod_webapps.so in the modules
directory under windows.
So i don't think that i am wrong with this  so files.
Moreover, mod_jk and mod_webapps are totally different things , and i have
reasons to want to use mod_webppas.
Anyway thanks for taking time to try to help me.
cheers :)
- Original Message -
From: Pascal Forget [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 11:26 PM
Subject: Re: LoadModule webapp_module modules/mod_webapp.so


 Aren;t you supposed to have a mod_jk.dll for Windows? I believe mod_jk.so
is
 only for Unix systems.

 You should definitely read this:

 http://www.acg-gmbh.de/mod_jk/

 Best Regards,

 Pascal


 yilmaz wrote:

 Hi everyone,
 i know everyone is already sick of reading problems about apache and
tomcat. I read almost all related mails and articles (how-to's) on the
internet , which didn't help.
 i am working with tomcat 4.0-b7 on win 2000.
 And using apcahe 2.
 according to the instructions on the articles downloaded mod_webapp.so
and put it under modules/ directory.
 The tomact and apache both work fine without problem.
 When i add
 LoadModule webapp_module modules/mod_webapp.so
 in my httpd.conf file, i can't get apache started. It says the requested
operation has failed.
 Is there any syntax error, or something else?
 (note: i added the above line just under the default loadmodule lines
defined in the httpd.conf file)
 Any help please : (
 Thanks :)
 




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





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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread yilmaz

I am working on windows 2000 ...
i tried apache -t and it only says can't open httpd.conf file

- Original Message -
From: Wu Lu [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 11:24 PM
Subject: RE: LoadModule webapp_module modules/mod_webapp.so


 If you installed Apache on WinXP, there is a menu option of Test
 Configuration. You can click it to test the configuration. The actuall
 command is:

 C:\Program Files\Apache Group\Apache2\bin\Apache.exe -t -f C:\Program
 Files\Apache Group\Apache2\conf\httpd.conf -d C:\Program Files\Apache
 Group\Apache2\.

 -Original Message-
 From: yilmaz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 24, 2002 11:11 AM
 To: Tomcat Users List
 Subject: Re: LoadModule webapp_module modules/mod_webapp.so

 Hi Simon,
 I tried apache -t istead (i saw it from someone else's posting) and got:
 apache: could not open document config file D:/Program
 Files/E~1/Apache2/conf/httpd.conf
 error.
 As you said i changed modules/mod_webapps.so to
 modules\mod_webapps.so, but still the same frustrating message :(
 what do you think the problem can be?
 thanks :)
 - Original Message -
 From: Simon Stewart [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, April 24, 2002 10:28 PM
 Subject: Re: LoadModule webapp_module modules/mod_webapp.so


  apachectl configtest ultimately runs httpd -t, so you could try
  httpd.exe -t on win32. You might also try reversing the direction of
  the file seperator in Windows:
 
  LoadModule webapp_module modules\mod_webapp.so
 
  I'm never tried Apache on Win32, but this should help.
 
  On Wed, Apr 24, 2002 at 09:51:57PM +0800, yilmaz wrote:
   Hi Simon,
   unfortunately i don't know how to do apachectl configtest.
   from command window i tried that , but didn't work.
   From apache monitor, when i try to start the server, it throws
   the requested operation has failed error, nothing else.
   My httpd.config is okey,  except when i add
   LoadModule webapp_module modules/mod_webapp.so
   into the httpd.config file (as it is instructed) , and restart the
 apache,
   it can't start. Obviously the problem is with the above line of code.
   Any suggestions ?
   Thanks :)
   - Original Message -
   From: Simon Stewart [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Wednesday, April 24, 2002 5:54 PM
   Subject: Re: LoadModule webapp_module modules/mod_webapp.so
  
  
On Wed, Apr 24, 2002 at 04:34:42PM +0800, yilmaz wrote:
 Hi everyone,
 i know everyone is already sick of reading problems about apache
and
   tomcat. I read almost all related mails and articles (how-to's) on the
   internet , which didn't help.
 i am working with tomcat 4.0-b7 on win 2000.
 And using apcahe 2.
 according to the instructions on the articles downloaded
 mod_webapp.so
   and put it under modules/ directory.
 The tomact and apache both work fine without problem.
 When i add
 LoadModule webapp_module modules/mod_webapp.so
 in my httpd.conf file, i can't get apache started. It says the
   requested operation has failed.
 Is there any syntax error, or something else?
 (note: i added the above line just under the default loadmodule
 lines
   defined in the httpd.conf file)
 Any help please : (
   
When you saw the error, had you done an apachectl configtest to
make
sure that your httpd.conf was okay? Is there anything in apache's
error logs?
   
Cheers,
   
Simon
   
--
`The situation is completely under control. All of them were
killed.'
 --- Alim Razim, for the Northern Alliance, demonstrating fine
 command of traditional Afghan prisoner control techniques.
   
--
To unsubscribe:
mailto:[EMAIL PROTECTED]
For additional commands:
mailto:[EMAIL PROTECTED]
Troubles with the list:
mailto:[EMAIL PROTECTED]
   
   
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  Cheers,
 
  Simon
 
  --
  Ambivalent? Well, yes and no
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



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

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





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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread yilmaz

i do have it.
Another thing without LoadModule webapp_module modules/mod_webapp.so
everything works fine, i mean if i comment it out, it works. But how do i
have to integrate apache2 with tomcat4 

- Original Message -
From: Dan K. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 11:52 PM
Subject: Re: LoadModule webapp_module modules/mod_webapp.so



 Also, make sure you have a ServerName directive in your httpd.conf if
 you don't have it.

 Regards,
 Dan

 On Wed, 24 Apr 2002, Simon Stewart wrote:

  The only other thing that springs to mind is to use a path without
  spaces in, and perhaps to double up your back slashes. Try one, then
  the other, then both. This is something of a last resort, though.
 
  On Wed, Apr 24, 2002 at 11:10:50PM +0800, yilmaz wrote:
   Hi Simon,
   I tried apache -t istead (i saw it from someone else's posting) and
got:
   apache: could not open document config file D:/Program
   Files/E~1/Apache2/conf/httpd.conf
   error.
   As you said i changed modules/mod_webapps.so to
   modules\mod_webapps.so, but still the same frustrating message :(
   what do you think the problem can be?
   thanks :)
   - Original Message -
   From: Simon Stewart [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Wednesday, April 24, 2002 10:28 PM
   Subject: Re: LoadModule webapp_module modules/mod_webapp.so
  
  
apachectl configtest ultimately runs httpd -t, so you could try
httpd.exe -t on win32. You might also try reversing the direction
of
the file seperator in Windows:
   
LoadModule webapp_module modules\mod_webapp.so
   
I'm never tried Apache on Win32, but this should help.
   
On Wed, Apr 24, 2002 at 09:51:57PM +0800, yilmaz wrote:
 Hi Simon,
 unfortunately i don't know how to do apachectl configtest.
 from command window i tried that , but didn't work.
 From apache monitor, when i try to start the server, it throws
 the requested operation has failed error, nothing else.
 My httpd.config is okey,  except when i add
 LoadModule webapp_module modules/mod_webapp.so
 into the httpd.config file (as it is instructed) , and restart the
   apache,
 it can't start. Obviously the problem is with the above line of
code.
 Any suggestions ?
 Thanks :)
 
  Cheers,
 
  Simon
 
  --
  What happens if a big asteroid hits the Earth?  Judging from realistic
  simulations involving a sledge hammer and a common laboratory frog, we
  can assume it will be pretty bad. - Dave Barry
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


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





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




Newbie Q: IIS and Tomcat (on a different server)

2002-04-24 Thread Elizabeth Barham

Hi,

I'm new to this list, new to Tomcat and new to Java. Please forgive me
if this question has been answered before or if it doesn't make much
sense.

When configuring Apache for UNIX to work with Tomcat, one may use
various modules. When setting up mod_webapp, one of the configuration
parameters was the host on which tomcat run - localhost. This most
likely is a normal thing, to run Tomcat and Apache on the same server.

I did a Google search and I did find a document describing how to set
up Tomcat to work with IIS *but* I did not see any mention of the
server on which Tomcat is running and I imagine that, again, it is
inferred that Tomcat is running on the same host as IIS.

My question is:

Is it possible (now) to run IIS on one server and have it forward
servlet, jsp, etc requests to Tomcat *running on a different server*?

A company I do work with runs a IIS webserver. I'm not overly fond of
ASP or Microsoft and would much rather my own servlets run on a UNIX
machine. Is this possible?

Thank you, Elizabeth

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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread yilmaz

okey, Here is my httpd.conf file,
can someone please help me find out , where the problem is?
Thanks :)
(though a little bit dangerous, it seems that  there is no other way to be
able to solve the problem)

- Original Message -
From: Simon Stewart [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 12:07 AM
Subject: Re: LoadModule webapp_module modules/mod_webapp.so


 Above any WebApp* directives. In apache 2, also include the port
 number. I've got:

 ServerName localhost:80

 in my httpd.conf

 On Wed, Apr 24, 2002 at 11:52:45AM -0400, Dan K. wrote:
 
  Also, make sure you have a ServerName directive in your httpd.conf if
  you don't have it.
 
  Regards,
  Dan

 Cheers,

 Simon

 --
 Even had to open up the case and gaze upon the hallowed peace that
 graced the helpdesk that day. -- Megahal (trained on asr), 1998-11-06

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




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

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

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

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

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

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

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

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

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves

Servlet killing tracking

2002-04-24 Thread JACQUELINE Nicolas - REN ( [EMAIL PROTECTED] )

Hi everybody,

I'm using Tomcat 3.2.3 on a linux system to run a servlet-based service.
This application must support a high number of connected people (about
1000).

The service works fine, but sometimes Tomcat kills my servlet (calls
Servlet.destroy) for no reason. How could I track why Tomcat killed my
servlet ?!

Thanks,

Nicolas JACQUELINE



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




Tomcat Locking Up, How to Debug?

2002-04-24 Thread Leonard Megliola


I'm currently using Tomcat 3.3.1 and have used a number of previous 
releases where I have experienced the following problem.  Tomcat locks 
up.  When it does this you cannot shut it down normally (must use 'killall 
java'), and it will not respond to requests.  My intuition tells me it is a 
deadlock condition in my code, but I'm not sure that would lock up all of 
Tomcat if it is multi-threaded.

In any case, I have no clue how to start debugging this.  I mean, I have a 
couple of ideas, but they don't seem very good.  Any suggestions?

Thanks.

Leonard


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




RE: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread John Burgess

One thing I've noticed is that you have two WebAppConnection lines, both
defining the same name of connection -- either remove one or give its
connection a name other than warpConnection.  (See at end, and just before
the virtualhost section (40 lnes up maybe?) )

Also you don't do AddModule

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-Original Message-
From: yilmaz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 5:25 PM
To: Tomcat Users List
Subject: Re: LoadModule webapp_module modules/mod_webapp.so


okey, Here is my httpd.conf file,
can someone please help me find out , where the problem is?
Thanks :)
(though a little bit dangerous, it seems that  there is no other way to be
able to solve the problem)

- Original Message -
From: Simon Stewart [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 12:07 AM
Subject: Re: LoadModule webapp_module modules/mod_webapp.so


 Above any WebApp* directives. In apache 2, also include the port
 number. I've got:

 ServerName localhost:80

 in my httpd.conf

 On Wed, Apr 24, 2002 at 11:52:45AM -0400, Dan K. wrote:
 
  Also, make sure you have a ServerName directive in your httpd.conf if
  you don't have it.
 
  Regards,
  Dan

 Cheers,

 Simon

 --
 Even had to open up the case and gaze upon the hallowed peace that
 graced the helpdesk that day. -- Megahal (trained on asr), 1998-11-06

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



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02
 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02
 

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




JSP compile fails to find class

2002-04-24 Thread Steve D George

Hi, I've tried hunting through the archive but no success as yet so can
anyone help with this please.

I have a webapp that was working just fine on 3.2. I've just installed
tomcat 4 and I'm trying to get the same webapp to work.
I have created a new web.xml based around the example one that comes with
T4. Then I've copied over the whole of the directory structure for the
webapp that I'm migrating. I think this is all I need to do.

The first JSP page in my web app makes use of a couple of classes. One of
these is referenced as follows:

jsp:useBean id=trackerState scope=session class=TrackerStateBean/

the other is referenced like this:

%
  new HistoryController().retrieveUsers(trackerState);
%

Both the TrackerStateBean and HistoryController classes are in the
WEB-INF\classes directory for the web app but when the JSP is compiling I
get an error saying that class org.apache.jspTrackerStateBean cannot be
found. The same is true of the HistoryController class. It appears to be
looking for both classes in the org.apache.jsp package but these classes
aren't in any package at all?

The error trace is below. Any help much appreciated,

Cheers,

Steve.

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 1 in the jsp file: /trackerentry.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\localhost\locationtracker\trackerentry$jsp.java:57: Class
org.apache.jsp.TrackerStateBean not found.
TrackerStateBean trackerState = null;
^


An error occurred at line: 1 in the jsp file: /trackerentry.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\localhost\locationtracker\trackerentry$jsp.java:60: Class
org.apache.jsp.TrackerStateBean not found.
trackerState= (TrackerStateBean)
   ^


An error occurred at line: 1 in the jsp file: /trackerentry.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\localhost\locationtracker\trackerentry$jsp.java:65: Class
org.apache.jsp.TrackerStateBean not found.
trackerState = (TrackerStateBean)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
TrackerStateBean);
^


An error occurred between lines: 34 and 37 in the jsp file:
/trackerentry.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\localhost\locationtracker\trackerentry$jsp.java:101: Class
org.apache.jsp.HistoryController not found.
  new HistoryController().retrieveUsers(trackerState);
  ^
4 errors

 at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
 at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)




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




Re: Servlet killing tracking

2002-04-24 Thread JACQUELINE Nicolas - REN ( [EMAIL PROTECTED] )

I'm not using SingleThreadModel, and as I'm using Tomcat in a professional
context, I cant upgrade to a newer version. That's why I need to track what
makes Tomcat destroy my servlet.

Any idea ?



 it has been my experience that tomcat 3.2.x is pretty poor at managing
 the servlet lifecycle generally.  For instance, it does not respect
 SingleThreadModel at all, and i've had other funkiness like you're
 describing.

 I recommend you try a newer version of tomcat (as tomcat 4 is MUCH
 higher throughput than 3).



 At Wednesday, 24 April 2002, you wrote:

 Hi everybody,
 
 I'm using Tomcat 3.2.3 on a linux system to run a servlet-based
 service.
 This application must support a high number of connected people (about
 1000).
 
 The service works fine, but sometimes Tomcat kills my servlet (calls
 Servlet.destroy) for no reason. How could I track why Tomcat killed my
 servlet ?!
 
 Thanks,
 
 Nicolas JACQUELINE
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 






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




Re: problem with mysql and tomcat

2002-04-24 Thread Boon K. Chee

Dear Manny,

  I'm not an expert in mysql, but I did manage to run my apache2, tomcat
4 and mysql without any problem. I think the problem you have might not be
the mm.mysql driver problem. It seems to me that either your sql
statement(when you open the connection to mysql) is not quite right because
the mysql server has denied your access to the database. Make sure you put
your sql statement correctly when you open a connection. Below is the sample
code I use to connect to mysql:

  String connectionURL = jdbc:mysql://servername/database_name;
  Connection connection = null;
  Statement statement = null;
  ResultSet resultSet = null;
  try
  {
   Class.forName(org.gjt.mm.mysql.Driver).newInstance();
   connection = DriverManager.getConnection(connectionURL, username, 
password);
   statement = connection.createStatement();
   resultSet = statement.executeQuery(SELECT Name, Username FROM tblUsers 
+
ORDER BY Name);
   while (resultSet.next()){
out.println(trtd + resultSet.getString(Name) + /tdtd
   + resultSet.getString(Username) + /td/tr);
   }
   if (resultSet != null){
resultSet.close();
   }
  } catch (ClassNotFoundException e){
   System.err.println(Couldn't find the mm  + database driver:  + e
getMessage());
  } catch (InstantiationException e) {
   System.err.println(e.getMessage());
  } catch (IllegalAccessException e) {
   System.err.println(e.getMessage());
  } catch (SQLException e) {
   System.err.println(SQL Problem :  + e.getMessage());
   System.err.println(SQL State   :  + e.getSQLState());
   System.err.println(Vendor Error:  + e.getErrorCode());
  }

Just substitute those servername, database_name, username and password
with your own. Hope this help. bye.

Cheer,
Brandon
---Original Message---

From: Tomcat Users List
Date: Tuesday, April 23, 2002 01:38:04 AM
To: [EMAIL PROTECTED]
Subject: problem with mysql and tomcat

hi i've downloaded the mysql and loaded the driver(mm.nysql) driver for it
If i try to use it in a regular program without involving the server(tomcat3
2.1) it works fine . i can get the resultset etc which is fine. But when i
created another applicatoin which involved the use of Tomcat it gives me
error saying 

Started: 21:13:29.210 PM
Error: java.sql.SQLException: Invalid authorization specification: Access
denied for user: 'username@localhost' (Using password: YES) 

i've looked at hundreds of webpages but nothing so far has revealed a
suitable reaason and solution for it. one webpage said to put the jar file
in WEB-INF/lib dir but in my version of tomcat3.2.1 theres no subdirectory
as that . if anyone knows the solution to it please let me know.my email
address is 
[EMAIL PROTECTED]
thanks
manny 


Re: JSP compile fails to find class

2002-04-24 Thread Phillip Morelock

why don't you just put your classes in packages?  did you think about that?

this should give you your biggest clue:
org.apache.jsp.TrackerStateBean not found

it's assuming a default package of org.apache.jsp for unqualified class
names.  

phillip 


On 4/24/02 9:38 AM, Steve D George [EMAIL PROTECTED] wrote:

 Hi, I've tried hunting through the archive but no success as yet so can
 anyone help with this please.
 
 I have a webapp that was working just fine on 3.2. I've just installed
 tomcat 4 and I'm trying to get the same webapp to work.
 I have created a new web.xml based around the example one that comes with
 T4. Then I've copied over the whole of the directory structure for the
 webapp that I'm migrating. I think this is all I need to do.
 
 The first JSP page in my web app makes use of a couple of classes. One of
 these is referenced as follows:
 
 jsp:useBean id=trackerState scope=session class=TrackerStateBean/
 
 the other is referenced like this:
 
 %
 new HistoryController().retrieveUsers(trackerState);
 %
 
 Both the TrackerStateBean and HistoryController classes are in the
 WEB-INF\classes directory for the web app but when the JSP is compiling I
 get an error saying that class org.apache.jspTrackerStateBean cannot be
 found. The same is true of the HistoryController class. It appears to be
 looking for both classes in the org.apache.jsp package but these classes
 aren't in any package at all?
 
 The error trace is below. Any help much appreciated,
 
 Cheers,
 
 Steve.
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: 1 in the jsp file: /trackerentry.jsp
 
 Generated servlet error:
 C:\Program Files\Apache Tomcat
 4.0\work\localhost\locationtracker\trackerentry$jsp.java:57: Class
 org.apache.jsp.TrackerStateBean not found.
   TrackerStateBean trackerState = null;
   ^
 
 
 An error occurred at line: 1 in the jsp file: /trackerentry.jsp
 
 Generated servlet error:
 C:\Program Files\Apache Tomcat
 4.0\work\localhost\locationtracker\trackerentry$jsp.java:60: Class
 org.apache.jsp.TrackerStateBean not found.
   trackerState= (TrackerStateBean)
  ^
 
 
 An error occurred at line: 1 in the jsp file: /trackerentry.jsp
 
 Generated servlet error:
 C:\Program Files\Apache Tomcat
 4.0\work\localhost\locationtracker\trackerentry$jsp.java:65: Class
 org.apache.jsp.TrackerStateBean not found.
   trackerState = (TrackerStateBean)
 java.beans.Beans.instantiate(this.getClass().getClassLoader(),
 TrackerStateBean);
   ^
 
 
 An error occurred between lines: 34 and 37 in the jsp file:
 /trackerentry.jsp
 
 Generated servlet error:
 C:\Program Files\Apache Tomcat
 4.0\work\localhost\locationtracker\trackerentry$jsp.java:101: Class
 org.apache.jsp.HistoryController not found.
 new HistoryController().retrieveUsers(trackerState);
 ^
 4 errors
 
at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart

You attempt to define the warpConnection twice, once to localhost,
once to a remote machine. This is mistake, and you can get round it by
simply renaming one of the warpConnections (warpConnection2 if
you're feeling unadventurous :)

Does that help? Have you also tried the LoadModule line and not used
any of the WebApp* directives at all? When I began playing with this,
that caught me out a few times. Once the file passes httpd.exe -t
with a Syntax OK, uncomment the WebApp* directives one at a time to
try and catch problems ASAP.

Cheers,

Simon

-- 
Whatever you do, congratulate yourself far too much and berate others.

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




Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart

John, this is apache 2: you don't need the AddModule. That got left
behind from Apache 1.3.x

On Wed, Apr 24, 2002 at 05:44:14PM +0100, John Burgess wrote:
 One thing I've noticed is that you have two WebAppConnection lines, both
 defining the same name of connection -- either remove one or give its
 connection a name other than warpConnection.  (See at end, and just before
 the virtualhost section (40 lnes up maybe?) )
 
 Also you don't do AddModule

Cheers,

Simon

-- 
UNIX is the answer, but only if you phrase the question very carefully.
-- Jonathan H N Chin

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




  1   2   >