RE: Tomcat, IIS and error 404

2001-02-21 Thread Alberto Vezzoso




From: Randy Layman [EMAIL PROTECTED]
To: Alberto Vezzoso [EMAIL PROTECTED]
Subject: RE: Tomcat, IIS and error 404
Date: Mon, 19 Feb 2001 11:49:37 -0500


   NULL parameters means that it either can't find your
uriworkermap.properties file or that it doesn't contain any mapping entries
(lines of the form x=y where x is a URL parameter that might contain a * 
and
y is a protocol defined in workers.properties).

   Make sure that there are not any trailing spaces on the ends of your
Registry entry keys and values.  One good way to check this is to look in
conf\isapi_redirect.reg-auto (or some similar file name).  This will list
the registry entries that isapi_redirect.dll sees.  If the
uriworkermap.properties isn't listed there its because of an error in the
registry path.  I believe that this file is generated for all debugging
levels, but it might just be for DEBUG.

   Randy

RANDY AND OTHERS,
MAY BE I FIND THE PROBLEM.

THE conf\isapi_redirect.reg-auto is named in my computer 
conf\iis_redirect.reg-auto.

INSIDE IT THE FOLLOWING:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="C:\\Program Files\\jakarta-tomcat-3.2.1\\logs\\iis_redirect.log"
"log_level"="debug"
"worker_file"="C:\\Program 
Files\\jakarta-tomcat-3.2.1\\conf\\workers.properties"
"worker_mount_file"="C:\\Program 
Files\\jakarta-tomcat-3.2.1\\conf\\uriworkermap.properties"

IT IS ALL THE SAME AS IN THE REGISTRY EXCEPT FOR THE "log_file" (IT IS 
WRITTEN iis_redirect.log INSTEAD OF isapi_redirect.log AT THE END)

IS IT A PROBLEM OR IS IT NORMAL? IS IT A POSSIBLE SOURCE OF MISTAKE? IF YES 
HOW CAN I SOLVE IT?

REGARDS,

ALBERTO





-Original Message-
From: Alberto Vezzoso [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 12:04 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat, IIS and error 404





 From: Randy Layman [EMAIL PROTECTED]
 To: Alberto Vezzoso [EMAIL PROTECTED]
 Subject: RE: Tomcat, IIS and error 404
 Date: Mon, 19 Feb 2001 09:15:09 -0500
 
 
  You're getting a 404 error trying to load a *.html file.  Your
 uriworkermap.properties file indicates that ISAPI_REDIRECT.dll should 
grab
 all the urls that match /examples/*.jsp or /examples/servlet/* -
 /examples/*.html does not match so the filter doesn't handle the URL and
 IIS
 can't find the file on its own.  If you comment out the two lines you 
have
 and uncomment the line thats three above those it will work.  (You need a
 line that explictly says:
 /examples/*=ajp12
 for ISAPI_REDIRECT.dll to load your html.)

UNFORTUNATELLY IT IS NOT THE PROBLEM. I'VE CHANGED AGAIN THE
URIWORKERMAP.PROPERTIES AND THE REDIRECTION DOESEN'T WORK.

THE MESSAGE FROM THE ISAPI.LOG FILE ARE:
[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, 
NULL

parameter
[jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters

ISN'T THERE ANOTHER POSSIBLE SOLUTIONS TO THIS PROBLEM?

REGARDS,

ALBERTO




 
  Randy
 
 -Original Message-
 From: Alberto Vezzoso [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 19, 2001 9:41 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat, IIS and error 404
 
 
 
 
  From: Randy Layman [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: RE: Tomcat, IIS and error 404
  Date: Mon, 19 Feb 2001 08:18:35 -0500
  
  
 Make sure that your uriworkermap.properties file contains a maping
  for /examples/*=ajp12 and check the registry entry for
  uriworkermap.properties to make sure that it points to the correct file
  path.
  
 Randy
 
 
 Thanks for your answer. I've checked the registry entries and it is
 correct.
 
 As for my uriworkermap.properties it is like that
 
 #
 # Simple worker configuration file
 #
 
 # Mount the servlet context to the ajp12 worker
 /servlet/*=ajp12
 
 # Mount the examples context to the ajp12 worker
 #/examples/*=ajp12
 
 # Advanced mount of the examples context
 /examples/*.jsp=ajp12
 /examples/servlet/*=ajp12
 
 
 Probably it is incorrect but I don't know what change should I do. What 
do
 you mean with "Make sure that your uriworkermap.properties file contains 
a
 maping for /examples/*=ajp12"
 
 Thanks a lot,
 
 Alberto
 
 
  
 
 
  
  -Original Message-
  From: Alberto Vezzoso [mailto:[EMAIL PROTECTED]]
  Sent: Monday, February 19, 2001 8:32 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat, IIS and error 404
  
  
  Hi, I'm trying to install Tomcat over IIS
  
  I've read the tutorial and I followed all the instructions.
  
  Tomcat works correctly on port 8080. The url:
  http://localhost:8080/examples/jsp/index.html works correctly while the
  url:
  
  http://localhost/examples/jsp/index.html returns an error 404.
  
  These are the messages that I get from the isapi.log file:
  [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close,
  NULL
  
  parameter
  [jk_uri_worker_map.c (184)]: In 

tomcat-iis-howto

2001-02-21 Thread maurine dzinoreva



Hi,
My name is Maurine Dzinoreva and I work for Zen 
Computing.
I have set up IIS to cooperate with Tomcat. 
The only problem I have is what do I do if I want an application running 
outside the webapp and tomcat directory. In other words how do I get tomcat to 
recognise an application that is not in the tomcat directory using IIS 
.

Please help, 
Thank you

Kind Regards
Maurine Dzinoreva.


Tomcat3.2.1 often recompiles pages?

2001-02-21 Thread Winkel, Matthias; 2854

When I request a jsp page in my web application it often takes a long time
until the page is received by the browser. Normally this behavior is seen,
when a page is requested the first time, because tomcat has to compile the
page. But in my web application this occurs very often: Although a page is
requested for the second, third... time it takes very long until the page is
received. It seems to me that tomcat recompiles the pages very often, not
only at the first request. (This happens not at all pages but at most of
them). Is this possible?
Is this a configuration failure? Is there somewhere a configuration entry
for manipulating this behavior? What do I have to change to get the jsp
pages as fast as by using tomcat3.1?

Regards
Matthias Winkel


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




R: Problem with a new version of JSP pages

2001-02-21 Thread Garry De Toffoli

Sorry for my incomplete information.

I'm using Tomcat 3.21 with Apache 1.3, in Win2k Server Edition; JDK 1.3;
the brower is Internet Explorer 5.5;

I have try to refresh and to delete all files in $TOMCAT_HOME/work, but I
have also the same problem; from my PC I modify a JSP page, I read from the
JASPER.LOG that my Jsp Page has been compiled; on the $TOMCAT_HOME/work
there is another .java and .class is newer; but from my and all browser of
my office, I see the JSP page without modification;

Occasionaly, after a modification end reloading my Jsp Page, from my browser
I run a jsp page, that made a submit on another jsp page; on the SUBMIT
time, on the end of the first  jsp page appear these rows:

HTTP/1.1 200 OK
Date: Tue, 20 Feb 2001 10:03:07 GMT
Server: Apache/1.3.12 (Win32) mod_jk
Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servelet 2.2; Java 1.3.0;
Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
Keep-Alive: timeout=15. max=99
Transfer-Encoding: chunked
Content-Type: text/html;charset=8859_1

and after these the new jsp page, but these appear like a single page;
refreshing the page, all is OK; it seems to be a mismatch of the TomCat or
of the Apache sending  the page.

I have read the bug#80, saying that Jasper JSP compiler is not threadsafe;
is this possible that my problem would manifest when there are 2 compile of
JSP page at the same time? And if yes, what can I do?

May be a configuration problem? After the installation, I have modifiied the
httpd.conf of Apache in this manner:

... init modify of apache.conf...
VirtualHost 213.178.196.10
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot "d:/JSP"
 DirectoryIndex homepage.htm
 ServerName www.test.jsp
 CustomLog d:/JSP/access.log common
/VirtualHost

include c:\tomcat3.21\jakarta-tomcat-3.2.1\conf\tomcat-apache.conf
include c:\tomcat3.21\jakarta-tomcat-3.2.1\conf\mod_jk.conf-auto
... end modify of apache.conf...

in Server.xml of Tomcat I have added these lines only:
Context path="/jsp"
 docBase="d:\jsp"
 crossContext="false"
 debug="9"
 reloadable="true" 
/Context
Context path="/hello"
 docBase="d:\jsp\hellouser"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context
Context path="/Carl"
 docBase="d:\jsp\Carl"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context
Context path="/examples"
 docBase="webapps/examples"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context

I have only modified these files after the installation of apache and
Tomcat; for example I have not JWSDK;



- Original Message -
From: Jan Labanowski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 20, 2001 7:28 PM
Subject: Re: Problem with a new version of JSP pages


 In your browser do
 Shift/Reload (or Shift/Refresh)
 and if this does not work, delete all files in $TOMCAT_HOME/work (but
 not the directory).

 You can also change cache sized in your browser to 0k. Next time tell
 us what OS and what browser and what version, etc., you are using...


 Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
 Columbus, OH 43212-1163  |http://www.osc.edu/


 On Tue, 20 Feb 2001, Garry De Toffoli wrote:

  I have a problem when I modify a JSP page;
 
  well, I modify my JSP page directly on the web Server (apache) and load
this on my browser; I would expect to see the modification, but doesn't see;
instead I see the jsp page without my modification;
 
  I have configured Server.XML with reloadable="true"; on the work
directory of %TOMCAT_HOME I see the new .java with my modification and the
new .class; on JASPER.LOG is written that my JSP page has been compiled;
 
  this problem happen randomly, but when it will manifest, I must restart
Tomcat, because from that time every modification will not be reflected.
 
  Thank you for you help.
 
 






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




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




Re: Passing trough information from webserver to classes by jsp in a safe way....

2001-02-21 Thread Eduard Witteveen

Eduard Witteveen wrote:

 Hello,
 
 I have the following problem:
 I have a webserver(say mozilla) (trustable)
Ofcourse i ment tomcat overhere, sorry for my in correctness..
--mozilla ++tomcat

 I have scripts(jsp) (which are being uploaded, but are not 
 completely trustable)
 I have somekinda library(mmbase server actually), which needs know 
 the context in which the webserver is running.(which we can also trust)
 
 How do i get the information from the webserver into this library, and i 
 still know that i can trust the information(a jsp script creater could 
 generate fake information and provide it to the library).
 
 I hope somebody knows a sollution, or could give me some ideas how to 
 solve this problem.


-- 
Eduard WitteveenSysteemontwikkelaar NOS Internet
Mediacentrum Kamer 203, tel. +31(0)35 6773059

Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal


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




Installing Tomcat to run as an IIS-ISAPI filter on Win2000.

2001-02-21 Thread Tomer Cohen

Hi,

I'm Tomer Cohen, from Exent Technologies Ltd. 

We are currently looking for a Servlets/JSPs engine to run as an ISAPI
filter/redirector on Win2k IIS's web server.
I'd highly appreciate if you could send me the URL where information is
available for installing and running Tomcat on this configuration/platform.
Moreover, any further tips regarding this usage would be very welcome.


Thank you in advance,

Tomer Cohen.

__

Tomer Cohen
RD, Exent Technologies Ltd.
E-Mail: [EMAIL PROTECTED]
Phone no.: 03-9243935 ext.153
Mobile: 058-316566
__


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




Re: How to measure Apache-Tomcat performance?

2001-02-21 Thread Ludovic Maitre


Hello,
Perhaps that you can use the ab tool from Apache (part of the support
tools optionnaly installed with apache 1.3)
After you can use it with command like :
ab -n 2100 -c 300 http://monserveur/mapage.jsp
(-n : number of connection, -c : number of concurrent connection)
After you have test a jsp page, perhaps you can try to test an html
page of the same size.
I hope it could help you, please send back info if you find other
tools/protocol for benchmarking Apache/Tomcat.
It is also a file test-tomcat.xml on the tomcat distribution (in /src/etc/)
that perhaps you could modify for your tests.

Regards,
--
[EMAIL PROTECTED]

INRIA - 2004 route des lucioles - BP 93 Tel: (33/0) 4 92 38 50 41
06902 SOPHIA-ANTIPOLIS cedex (France) Fax: (33/0) 4 92 38 76 02



RE: Installing Tomcat to run as an IIS-ISAPI filter on Win2000.

2001-02-21 Thread Etienne Baert

Hi Tomer,

you can download tomcat from :
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/tomcat-3.2.1.zip

In order to integrate tomcat with IIS, you will need the following
isapi filter :
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/win32/i386/isapi_
redirect.zip
and to install it, you simply have to follow carefully the steps
described in the tomcat-iis howto :
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm
l
Please note that this document refers to WinNT4, Win98, IIS4 and PWS4.
To install on the Win2000-IIS5 combination, follow the steps for
WinNT4-IIS4 and it will work fine.

A list of additional documentations can be found at :
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html


Etienne

-Original Message-
From: Tomer Cohen [mailto:[EMAIL PROTECTED]]
Sent: mercredi 21 fvrier 2001 11:00
To: '[EMAIL PROTECTED]'
Subject: Installing Tomcat to run as an IIS-ISAPI filter on Win2000.


Hi,

I'm Tomer Cohen, from Exent Technologies Ltd.

We are currently looking for a Servlets/JSPs engine to run as an ISAPI
filter/redirector on Win2k IIS's web server.
I'd highly appreciate if you could send me the URL where information is
available for installing and running Tomcat on this configuration/platform.
Moreover, any further tips regarding this usage would be very welcome.


Thank you in advance,

Tomer Cohen.

__

Tomer Cohen
RD, Exent Technologies Ltd.
E-Mail: [EMAIL PROTECTED]
Phone no.: 03-9243935 ext.153
Mobile: 058-316566
__


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


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




Re: Beginner's question

2001-02-21 Thread paul marshal

Diansheng Guo wrote:
 
 Hi, all:
 
 I just begin to use Tomcat3.2 to run my servlet.I got the error on the
 server output. Basically I was frequently compiling my servlet code with
 JBuilder and check the result with an IE explorer loading the servlet. But
 seems my change won't take effect immediatly...Does the server (or the IE
 explorer) keep the class in memory after its first run?
 
 It worked fine with Netscape...is there any difference between the two
 browsers regarding servlets?
 


? 
A browser does not load a servlet. A browser just gets the HTML output
that was generated
on the server by servlet the servlet class. To do that the servlet class
must be loaded by tomcat or any servlet container. 
Are you perhaps talking about an applet, that you try to serve through
tomcat ?

paul

Paul


 2001-02-20 02:15:17 - Ctx(  ): 404 R(  + /jserv/status + null) null
 2001-02-20 02:15:21 - Ctx(  ): 404 R(  + /jserv/status + null) null
 2001-02-20 02:15:24 - Ctx(  ): 404 R(  + /jserv/status + null) null
 2001-02-20 02:15:30 - Ctx(  ): 404 R(  + /jserv/status + null) null
 2001-02-20 02:16:00 - Ctx(  ): 404 R(  + /jserv/status + null) null
 2001-02-20 02:20:22 - Ctx(  ): 404 R(  + /jserv/status + null) null
 2001-02-20 02:20:33 - Ctx(  ): 404 R(  + /jserv/status + null) null
 
 Thanks a lot.
 
 ~~~
 Department of Geography
 302 Walker Building
 Tel:(814) 865-9656 (O)
 (814) 867-4957 (H)
 http://www.geog.psu.edu/~dguo
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-- 
Paul Marshall
[EMAIL PROTECTED]
089/26019-609

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




Re: Forwarding to a JSP gives a callback

2001-02-21 Thread paul marshal

[EMAIL PROTECTED] wrote:
 
 Hi
 
 I'm trying to forward from my controller servlet to a jsp or html page.
 This is not very successful at all, and I think this is because the servlet
 for some reason get's called a second time after the forward for some
 reason.
 
 An example:
 The servlet is invoked by a form-post. It extracts the data of interest and
 calls another page (jsp or html) by usingdispatcher.forward(blah blah).
 
 This should work, but what I notice is that the doGet() within the servlet
 gets invoked after the forward (which was done from the doPost), and
 the page that was forwarded to never writes it's content to the browser.
 It's just blank.
 
 What am I doing wrong?
 
 Regards
 /Ola
 
 PS
  Sorry about the mailformat, notes doesn't seem to care about
  my attempts to get to understand that this should be plain text :(
   DS
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


Perhaps you want to check your servlet-mapping: Is the servlet itself
mapped to a url-pattern that 
matches the dispatcher destination url ? In that case you would get the
behaviour described. 


Paul

-- 
Paul Marshall
[EMAIL PROTECTED]
089/26019-609

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




RE: mod_jk.so installation tar.gz...

2001-02-21 Thread GOMEZ Henri

Did you notice that there is existing RPM for tomcat modules,
mod_jk and mod_jserv ?

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m1/rpms/

I'd really like you to rebuild the SRPMS, tag the release with mdk and
provide the SRPMS / RPMS back to Mandrake users...

La prise de conscience de votre propre ignorance est un grand pas vers la
connaissance.
-- Benjamin Disraeli
 

-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 11:34 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: mod_jk.so installation tar.gz...


Hi,

This kind of trouble! 8o) :-

[root@willow RPM]# rpm -ba SPECS/mod_jk-apache1.3-1mdk.spec
File /usr/src/RPM/SOURCES is smaller than 4 bytes
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.14373
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf mod_jk.so-tomcat3.2.1
+ tar -xf /usr/src/RPM/SOURCES
tar: /usr/src/RPM/SOURCES: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
Bad exit status from /var/tmp/rpm-tmp.14373 (%prep)
[root@willow RPM]#

I'd be greatful for some help, the RPM-Howto doesn;t help much.

Oh, and your e-mail address is appearing as [EMAIL PROTECTED]!
(apart from the reply-to, obviously)

Regards + thanks,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Peter B. West
Sent: Monday, February 19, 2001 10:42 PM
To: [EMAIL PROTECTED]
Subject: Re: mod_jk.so installation tar.gz...


Adam Fowler wrote:

 I'm trying to make an RPM but am having trouble building it. 
Any hints?

What kind of trouble?

Peter
--
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"

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



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


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




RE: Problem with mod_jk

2001-02-21 Thread GOMEZ Henri

If you using mod_jk on Linux i386 there is allready built
binaries for std-api / ext-api (EAPI)

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m1/bin/linux/i3
86/

Built on Redhat Linux 6.2 :-)



La prise de conscience de votre propre ignorance est un grand pas vers la
connaissance.
-- Benjamin Disraeli
 

-Original Message-
From: John Towell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 6:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem with mod_jk


Stephan

Same thing happened to me.  It's been discussed here quite a 
bit lately.
Best thing to do is get the source from the tomcat site, 
follow directions
for building in the mod_jk howto ... 

-Original Message-
From: Stephan Lang
To: [EMAIL PROTECTED]
Sent: 2/20/01 11:09 AM
Subject: Problem with mod_jk


Hi,

As a newbie concerning tomcat, I am facing some configuration-problems:

I am trying to make tomcat work with apache on my linux-box.
I wanted to use tomcat 3.2.1 and apache 1.3.14 with mod_jk.  So the
problem is that
the apache doesn't want to recognize the module (that I downloaded as a
binary from
the jakarta-site)  as an apache DSO.
I followed the instructions from the mod_jk-how-to and  included the
.conf-auto file,
that is generated by tomcat after startup, into apache's httpd.conf.
But when apache reaches the instruction, it exits with :

API module structure `jk_module' in file
/opt/apache_1.3.14/libexec/mod_jk.so is garbled - perhaps this 
is not an
Apache module DSO?

What is wrong ? Are there any restrictions on versions that are not
fitting together ?

Stephan





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

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


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




INFO on mod_jk and RPMs ....

2001-02-21 Thread GOMEZ Henri

Hi,

More than 10% of the message on the [EMAIL PROTECTED]
(and some on [EMAIL PROTECTED]), are all about mod_jk
build and many are related to Linux Box :

1) Could we change reference to projects in 
   http://jakarta.apache.org/site/binindex.html.

   Some points to xxx/bin :

http://jakarta.apache.org/builds/jakarta-ant/release/v1.2/bin/
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/

   Some points to xxx :
http://jakarta.apache.org/builds/jakarta-ecs/release/v1.4.1/
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b1/

   I'll be 
   or move rpms directory in bin to help users find it ?

2) I will provide binary for TC 3.2.1 as I do for TC 3.3-m1 :

 
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m1/bin/linux/i3
86/

with both STD API and EAPI. I'll will also add a INFO about when
using 
stdapi or eapi

3) There is a FACOMATIC but it's not really used by users. Could we build 
   a FAQ.html where we will put info about mod_jk and build. We could also
   use the 


Just to remember there is RPM for both TC 3.2.1, 3.3-m1, 4.0b1 :

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m1/rpms/
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b1/rpms/

Direct linux binary :

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38
6/  (mod_jk/jserv)
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m1/bin/linux/i3
86/ (mod_jk/jserv)
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b1/linux/i3
86/ (mod_webapp)

THANKS

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




RE: Running servlet from /

2001-02-21 Thread Donie Kelly

Thanks Tom
How exactly do I do that. My servlet is located in
/webapps/ROOT/WEB-INF/classes? At the moment I can access it using
/servlet/serbletName.

Forgive me, because I'm new to Tomcat but can you show me exactly how to do
this...

Thanks in advance
Donie

 -Original Message-
From:   Tom Woteki [mailto:[EMAIL PROTECTED]] 
Sent:   21 February 2001 01:14
To: tomcat user help; Donie Kelly
Subject:Re: Running servlet from /

Map the servlet to an appropriate URL in the web.xml file or make the home
page into a jsp file.

 From: Donie Kelly [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Tue, 20 Feb 2001 15:10:17 -0500
 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
 Subject: Running servlet from /
 
 Hi 
 
 Hi all
 
 I want a servlet to run when I use the URL http://wilson/ http://wilson/
 
 i.e., no servlet specified. How can this be easily achieved?
 
 Donie
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


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

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




New user question - problem with '~' character in paths?

2001-02-21 Thread Tom Gowers
Title: New user question - problem with '~' character in paths?







Hello all,


I am in the midst of muddling through an installation/configuration of tomcat for the purposes of integrating with our Xpedio Content Server software for a prospect. I have come across what I think is a problem, and would appreciate any feedback.

It seems that the JSP interpreter doesn't like any .jsp files residing in a location where the path contains the '~' character. As an example, I am placing .jsp files (just doing simple includes at this stage) into a directory with the following path

/xpedio/groups/public/documents/haysworks/~000301/jsptest.htm


where /xpedio is mapped as a virtual directory in IIS


When I try to access this .jsp file, I get the following error from tomcat:


Internal Servlet Error:


org.apache.jasper.JasperException: Unable to compile class for JSPerror: Can't write: C:\jakarta-tomcat\work\localhost_8080%2Fxpedio\groups\p_00025blic\d_00025cuments\haysworks\_0007e_00030_00030_00030_00033_00030_00031\_0002fgroups_0002fpublic_0002fdocuments_0002fhaysworks_0002f_0007e_00030_00030_00030_00033_00030_00031_0002fjsptest_0002ejspjsptest_jsp_0.class

1 error


However, if I simply move my .jsp file into the parent directory so that the path is


/xpedio/groups/public/documents/haysworks/jsptest.jsp


The .jsp file is interpreted fine with no problems.


Is this a know issue/limitation?


TIA


Tom Gowers

--

Senior Systems Engineer, IntraNet Solutions Inc

Phone: +44 1753 701072 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 





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



Re: Working with Netscape on Solaris

2001-02-21 Thread sayguney


Did you add a mime type for JSP?

 I did compile the Solaris version  then configured Netscape according to
 the doco I foundhowever now when using it, java pages are just shown
as
 a bunch of strange charactersthey work fine when using Tomcat
 directlyany ideas anyone?


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




Re: Installing Tomcat to run as an IIS-ISAPI filter on Win2000.

2001-02-21 Thread Oleg L. Sverdlov

Hello,

All the documentation you need to install  ISAPI redirector for Tomcat is contained in 

tomcat-iis-howto. I used that manual when installing T.


- Original Message - 
From: "Tomer Cohen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 12:00 PM
Subject: Installing Tomcat to run as an IIS-ISAPI filter on Win2000.


 Hi,
 
 I'm Tomer Cohen, from Exent Technologies Ltd. 
 
 We are currently looking for a Servlets/JSPs engine to run as an ISAPI
 filter/redirector on Win2k IIS's web server.
 I'd highly appreciate if you could send me the URL where information is
 available for installing and running Tomcat on this configuration/platform.
 Moreover, any further tips regarding this usage would be very welcome.
 
 
 Thank you in advance,
 
 Tomer Cohen.
 
 __
 
 Tomer Cohen
 RD, Exent Technologies Ltd.
 E-Mail: [EMAIL PROTECTED]
 Phone no.: 03-9243935 ext.153
 Mobile: 058-316566
 __
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 


Oleg L. Sverdlov
Web Development Dept.

Netmount Networks 
Raanana, Israel. 

http://www.netmount.com
Phone: +972-9-745-5220
Fax: +972-9-745-2521




[Fwd: Soap 2.1 + Tomcat 3.2.1 + IIS]

2001-02-21 Thread Stuart Thomson

Let me try this one again. 

Does any one have an idea who is eating the space ?
Should soap work in the absence of the space ?
I'm willing to fix the parsing code if the space isn't mandatory.


I have a soap service which works fine when accessing tomcat directly.
However, when accessing via isapi_redirect.dll I receive the following
exception

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Unsu
pported response content type "ext/xml; charset=utf-8", must be:
"text/xml".]
at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:173)
at org.apache.soap.rpc.Call.invoke(Call.java:210)
at com.swtsoft.bny.Client.processMessage(Client.java:34)
at com.swtsoft.bny.Client.main(Client.java, Compiled Code)

The response as captured from the tunnel gui is 
  HTTP/1.1 200 OK

  Server: Microsoft-IIS/5.0

  Date: Mon, 19 Feb 2001 09:11:02 GMT

  Content-Type:text/xml; charset=utf-8

  Content-Length:857

  Set-Cookie2:JSESSIONID=lzuu2fzf41;Version=1;Discard;Path="/soap"

  Set-Cookie:JSESSIONID=lzuu2fzf41;Path=/soap

  Servlet-Engine:Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows 2000 5.0 x86;   java.vendor=Sun Microsystems Inc.)



  ?xml version='1.0' encoding='UTF-8'?

  SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"  
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"  
xmlns:xsd="http://www.w3.org/1999/XMLSchema"

  SOAP-ENV:Body


The response from tomcat which works is as follows
  HTTP/1.0 200 OK

  Content-Type: text/xml; charset=utf-8

  Content-Length: 857

  Set-Cookie2: JSESSIONID=ghf8l90dk1;Version=1;Discard;Path="/soap"

  Set-Cookie: JSESSIONID=ghf8l90dk1;Path=/soap

  Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)



  ?xml version='1.0' encoding='UTF-8'?

  SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"

  SOAP-ENV:Body


It looks like the absence of a space after Content-Type: is the problem.
Does anyone have a workaround for this ? Has anyone been able to use
soap with IIS ?

TIA
Stuart




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


ClassNotFoundError

2001-02-21 Thread Saikat Ghosh

I have a Tomcat installation running version 3.1 on jdk1.1.8 on AIX. I
recently switched to java1.3 but the change seems to have adversely affected
my Tomcat installation. Now, I get the following error :

Error: 500
Location:/Department/Archive_Log_Viewer/Archive_Locator__Date_/body_archive_
locator__date_.jsp
Internal Servlet Error:


javax.servlet.ServletException:
Department/Archive_0005fLog_0005fViewer/Archive_0005fLocator_0005f_0005fDate
_0005f/_0002fDepartment_0002fArchive_0005fLog_0005fViewer_0002fArchive_0005f
Locator_0005f_0005fDate_0005f_0002fbody_0005far
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:368)
 at org.apache.tomcat.core.Handler.service(Handler.java:261)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:356)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:72
0)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:666)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:194)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:498)

Root cause:
java.lang.NoClassDefFoundError:
Department/Archive_0005fLog_0005fViewer/Archive_0005fLocator_0005f_0005fDate
_0005f/_0002fDepartment_0002fArchive_0005fLog_0005fViewer_0002fArchive_0005f
Locator_0005f_0005fDate_0005f_0002fbody_0005far
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:496)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:436)
 at
org.apache.jasper.servlet.JasperLoader12.defClass(JasperLoader12.java:110)
 at org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:220)
 at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:257)
 at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:464)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:411)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:296)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:369)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:368)
 at org.apache.tomcat.core.Handler.service(Handler.java:261)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:356)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:72
0)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:666)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:194)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:498)



When I went through the $tomcat_home/work/localhost_8080 directory I could
not locate the Java source file that should've been generated for this
class, although source files for previously visited pages were obviously
being generated.
Can someone please help out? I can also be contacted at [EMAIL PROTECTED]
Cheers Saikat


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




Apache and Tomcat Problem

2001-02-21 Thread Jochen Landvoigt

hi!

I have a apache webserver and a tomcat server for the jsps. I configured
the apache that al jsp request will go to him. But when I click on the
link to the jsp netscape tells me "Document Contained no data". The
apache error_log tells me "child pid 1332 exit signal Segmentation fault
(11)".

What should I do?

Thanks
Jochen
-- 
Jochen Landvoigt
E-Mail: mailto:[EMAIL PROTECTED]
http://www.landvoigt.com
ICQ #101774197

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




RE: Tomcat, IIS and error 404

2001-02-21 Thread Randy Layman


I believe that the source of your problem is the double back
slashes.  In the registry you don't need to specify them.

Randy

-Original Message-
From: Alberto Vezzoso [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat, IIS and error 404





From: Randy Layman [EMAIL PROTECTED]
To: Alberto Vezzoso [EMAIL PROTECTED]
Subject: RE: Tomcat, IIS and error 404
Date: Mon, 19 Feb 2001 11:49:37 -0500


   NULL parameters means that it either can't find your
uriworkermap.properties file or that it doesn't contain any mapping
entries
(lines of the form x=y where x is a URL parameter that might contain a
* 
and
y is a protocol defined in workers.properties).

   Make sure that there are not any trailing spaces on the ends of
your
Registry entry keys and values.  One good way to check this is to look
in
conf\isapi_redirect.reg-auto (or some similar file name).  This will
list
the registry entries that isapi_redirect.dll sees.  If the
uriworkermap.properties isn't listed there its because of an error in
the
registry path.  I believe that this file is generated for all debugging
levels, but it might just be for DEBUG.

   Randy

RANDY AND OTHERS,
MAY BE I FIND THE PROBLEM.

THE conf\isapi_redirect.reg-auto is named in my computer 
conf\iis_redirect.reg-auto.

INSIDE IT THE FOLLOWING:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="C:\\Program
Files\\jakarta-tomcat-3.2.1\\logs\\iis_redirect.log"
"log_level"="debug"
"worker_file"="C:\\Program 
Files\\jakarta-tomcat-3.2.1\\conf\\workers.properties"
"worker_mount_file"="C:\\Program 
Files\\jakarta-tomcat-3.2.1\\conf\\uriworkermap.properties"

IT IS ALL THE SAME AS IN THE REGISTRY EXCEPT FOR THE "log_file" (IT IS 
WRITTEN iis_redirect.log INSTEAD OF isapi_redirect.log AT THE END)

IS IT A PROBLEM OR IS IT NORMAL? IS IT A POSSIBLE SOURCE OF MISTAKE? IF
YES 
HOW CAN I SOLVE IT?

REGARDS,

ALBERTO





-Original Message-
From: Alberto Vezzoso [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 12:04 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat, IIS and error 404





 From: Randy Layman [EMAIL PROTECTED]
 To: Alberto Vezzoso [EMAIL PROTECTED]
 Subject: RE: Tomcat, IIS and error 404
 Date: Mon, 19 Feb 2001 09:15:09 -0500
 
 
  You're getting a 404 error trying to load a *.html file.  Your
 uriworkermap.properties file indicates that ISAPI_REDIRECT.dll should

grab
 all the urls that match /examples/*.jsp or /examples/servlet/* -
 /examples/*.html does not match so the filter doesn't handle the URL
and
 IIS
 can't find the file on its own.  If you comment out the two lines you

have
 and uncomment the line thats three above those it will work.  (You
need a
 line that explictly says:
 /examples/*=ajp12
 for ISAPI_REDIRECT.dll to load your html.)

UNFORTUNATELLY IT IS NOT THE PROBLEM. I'VE CHANGED AGAIN THE
URIWORKERMAP.PROPERTIES AND THE REDIRECTION DOESEN'T WORK.

THE MESSAGE FROM THE ISAPI.LOG FILE ARE:
[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close,

NULL

parameter
[jk_uri_worker_map.c (184)]: In
jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters

ISN'T THERE ANOTHER POSSIBLE SOLUTIONS TO THIS PROBLEM?

REGARDS,

ALBERTO




 
  Randy
 
 -Original Message-
 From: Alberto Vezzoso [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 19, 2001 9:41 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat, IIS and error 404
 
 
 
 
  From: Randy Layman [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: RE: Tomcat, IIS and error 404
  Date: Mon, 19 Feb 2001 08:18:35 -0500
  
  
 Make sure that your uriworkermap.properties file contains a
maping
  for /examples/*=ajp12 and check the registry entry for
  uriworkermap.properties to make sure that it points to the correct
file
  path.
  
 Randy
 
 
 Thanks for your answer. I've checked the registry entries and it is
 correct.
 
 As for my uriworkermap.properties it is like that
 
 #
 # Simple worker configuration file
 #
 
 # Mount the servlet context to the ajp12 worker
 /servlet/*=ajp12
 
 # Mount the examples context to the ajp12 worker
 #/examples/*=ajp12
 
 # Advanced mount of the examples context
 /examples/*.jsp=ajp12
 /examples/servlet/*=ajp12
 
 
 Probably it is incorrect but I don't know what change should I do.
What 
do
 you mean with "Make sure that your uriworkermap.properties file
contains 
a
 maping for /examples/*=ajp12"
 
 Thanks a lot,
 
 Alberto
 
 
  
 
 
  
  -Original Message-
  From: Alberto Vezzoso [mailto:[EMAIL PROTECTED]]
  Sent: Monday, February 19, 2001 8:32 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat, IIS and error 404
  
  
  Hi, I'm trying to install Tomcat over IIS
  
  I've read the tutorial and I followed all the instructions.
  
  Tomcat works correctly on port 8080. The url:
  

Re: New user question - problem with '~' character in paths?

2001-02-21 Thread lee fellows

Hi,

  I may be all wet here, but this does not appear to be a 
Tomcat error, per sae.  The error states it cannot write
the named class.  Not that it cannot find the source.  Try
creating the file and directory structure shown in the error
message and see if your operating system allows it.  I suspect 
you will get an error from the operating system relating to
length of path.

 Tom Gowers wrote:
 
 Hello all,
 
 I am in the midst of muddling through an installation/configuration of
 tomcat for the purposes of integrating with our Xpedio Content Server
 software for a prospect. I have come across what I think is a problem,
 and would appreciate any feedback.
 
 It seems that the JSP interpreter doesn't like any .jsp files residing
 in a location where the path contains the '~' character. As an
 example, I am placing .jsp files (just doing simple includes at this
 stage) into a directory with the following path
 
 /xpedio/groups/public/documents/haysworks/~000301/jsptest.htm
 
 where /xpedio is mapped as a virtual directory in IIS
 
 When I try to access this .jsp file, I get the following error from
 tomcat:
 
 Internal Servlet Error:
 
 org.apache.jasper.JasperException: Unable to compile class for
 JSPerror: Can't write:
 
C:\jakarta-tomcat\work\localhost_8080%2Fxpedio\groups\p_00025blic\d_00025cuments\haysworks\_0007e_00030_00030_00030_00033_00030_00031\_0002fgroups_0002fpublic_0002fdocuments_0002fhaysworks_0002f_0007e_00030_00030_00030_00033_00030_00031_0002fjsptest_0002ejspjsptest_jsp_0.class
 
 1 error
 
 However, if I simply move my .jsp file into the parent directory so
 that the path is
 
 /xpedio/groups/public/documents/haysworks/jsptest.jsp
 
 The .jsp file is interpreted fine with no problems.
 
 Is this a know issue/limitation?
 
 TIA
 
 Tom Gowers
 --
 
 Senior Systems Engineer, IntraNet Solutions Inc
 Phone: +44 1753 701072
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, email: [EMAIL PROTECTED]

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




formbased authentication: logout ?

2001-02-21 Thread paul marshal

How do I create a possibility for my users to logout. 
Is there something in the HttpSession that I need to delete ?
Or how does it all work ?

Paul

-- 
Paul Marshall
[EMAIL PROTECTED]
089/26019-609

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




directory protection

2001-02-21 Thread Carlos

In a virtual domain (i have configured in tomcat) i want to protect with the
login "name" and with the password "passwd" a directory.
If a person want to see the directory, or a page of that directory he must
to put the login and the passwd.
How can i confiure it?
the directory's name is "protect"
Can anybody says me how can i configure the web.xml or other file for that?
thanks
Carlos


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




Re: formbased authentication: logout ?

2001-02-21 Thread Bill_Fellows/MO/americancentury



I'm sure others are more knowledgeable, but from what I've been able to observe
(snoop servlet is wonderful), a session must have been created before
authentication.  I'm basing all of my stuff off of my b*stardization of
SimpleRealm, BTW.  Session name is JSESSIONID.  A principal user is defined and
the username and password are stored in the session variable (j_username 
j_password.) upon successful authentication.  A tomcat.auth.originalLocation is
defined if they attempted to access a specific secure part before being
authenticated.  If so, after they authenticate it takes them to that particular
page.

To logout, I have my users hit a servlet (could be a jsp) that goes through all
the cookies and expires them.  Since tomcat can only expire the cookies it
created, you don't have to worry about killing someone else's cookie.  Looking
at my code now, I can't remember if expiring the session takes care of removing
the cookies or not.  At any rate, I think I had trouble getting the
session.invalidate() to work in a jsp (since they create sessions automagically)
so maybe that's why I went to the jsp.  Maybe the invalidate is required to drop
the principal user...  At any rate, I'm going to re-evaluate my code but this
does work.  Enjoy.

/bill

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
  if ( request.isRequestedSessionIdValid() )
  {
  HttpSession session = request.getSession(false);
  session.invalidate();
  }
  {
 Cookie BagofGingerSnaps[]  = request.getCookies();
 for (int i = 0; i  BagofGingerSnaps.length ; i++)
 {
BagofGingerSnaps[i].setMaxAge(0);  //expire all cookies in 0 seconds
response.addCookie(BagofGingerSnaps[i]);  //replace old cookies with
the new
 }
  }
  response.sendRedirect(stLogoutDestination);

}//closes doGet




paul marshal [EMAIL PROTECTED] on 02/21/2001 09:10:08 AM



Please respond to [EMAIL PROTECTED]

To:   tomcat-list [EMAIL PROTECTED]
cc:(bcc: Bill Fellows/MO/americancentury)
Subject:  formbased authentication: logout ?



How do I create a possibility for my users to logout.
Is there something in the HttpSession that I need to delete ?
Or how does it all work ?

Paul

--
Paul Marshall
[EMAIL PROTECTED]
089/26019-609

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









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




Need Help: Questions for Java Server Book

2001-02-21 Thread Art Taylor

I'm working on a Java Web site book that features Tomcat as the Java server of
choice (yeah!). I have a few questions that aren't clear from the
documentation.

 The 'Logger' element contains a 'name' attribute. How is this 'name' used?

 Are there certain logs that must be present for Tomcat, i.e., the tc_log
(Tomcat)?

  What are the proper settings for the 'debug' attribute that is used with
several of the elements?  To which log does this output get written?

  I assume the 'VerbosityLevel' settings are hierarchical, effectively
inheriting the output of the previous levels, i.e., a 'Fatal' VerbosityLevel
includes the output of the Error, Warning and Information levels? Is that
correct? And if so, is DEBUG included in that hierarchy, or is that a separate
level?

  Assert: one ContextManager per Tomcat Instance? Is that correct?

  Assert: elements and attributes are case sensitive. Failure to use proper
case results in silent errors (the attribute or element is not used)? Is that
correct?

  

 Thanks,

   -- Art Taylor




__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




Re: R: Problem with a new version of JSP pages

2001-02-21 Thread Jan Labanowski

That means that you have a proxy server installed somewhere.
You need to change the properties in your browser and tell it to
load the pages directly, without using proxy server. I do not use IE
daily, so I do not know the order of clicks. It is probably:

  View -- Internet Options -- Connection -- Bypass Proxy server

On netscape it would be:

  Edit -- Preferences -- Advanced -- Proxies -- Direct connection to the
internet

If this is not it, I am not sure what is happening...


On Wed, 21 Feb 2001, Garry De Toffoli wrote:

 Sorry for my incomplete information.
 
 I'm using Tomcat 3.21 with Apache 1.3, in Win2k Server Edition; JDK 1.3;
 the brower is Internet Explorer 5.5;
 
 I have try to refresh and to delete all files in $TOMCAT_HOME/work, but I
 have also the same problem; from my PC I modify a JSP page, I read from the
 JASPER.LOG that my Jsp Page has been compiled; on the $TOMCAT_HOME/work
 there is another .java and .class is newer; but from my and all browser of
 my office, I see the JSP page without modification;
 
 Occasionaly, after a modification end reloading my Jsp Page, from my browser
 I run a jsp page, that made a submit on another jsp page; on the SUBMIT
 time, on the end of the first  jsp page appear these rows:
 
 HTTP/1.1 200 OK
 Date: Tue, 20 Feb 2001 10:03:07 GMT
 Server: Apache/1.3.12 (Win32) mod_jk
 Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servelet 2.2; Java 1.3.0;
 Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
 Keep-Alive: timeout=15. max=99
 Transfer-Encoding: chunked
 Content-Type: text/html;charset=8859_1
 
 and after these the new jsp page, but these appear like a single page;
 refreshing the page, all is OK; it seems to be a mismatch of the TomCat or
 of the Apache sending  the page.
 
 I have read the bug#80, saying that Jasper JSP compiler is not threadsafe;
 is this possible that my problem would manifest when there are 2 compile of
 JSP page at the same time? And if yes, what can I do?
 
 May be a configuration problem? After the installation, I have modifiied the
 httpd.conf of Apache in this manner:
 
 ... init modify of apache.conf...
 VirtualHost 213.178.196.10
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot "d:/JSP"
  DirectoryIndex homepage.htm
  ServerName www.test.jsp
  CustomLog d:/JSP/access.log common
 /VirtualHost
 
 include c:\tomcat3.21\jakarta-tomcat-3.2.1\conf\tomcat-apache.conf
 include c:\tomcat3.21\jakarta-tomcat-3.2.1\conf\mod_jk.conf-auto
 ... end modify of apache.conf...
 
 in Server.xml of Tomcat I have added these lines only:
 Context path="/jsp"
  docBase="d:\jsp"
  crossContext="false"
  debug="9"
  reloadable="true" 
 /Context
 Context path="/hello"
  docBase="d:\jsp\hellouser"
  crossContext="false"
  debug="0"
  reloadable="true" 
 /Context
 Context path="/Carl"
  docBase="d:\jsp\Carl"
  crossContext="false"
  debug="0"
  reloadable="true" 
 /Context
 Context path="/examples"
  docBase="webapps/examples"
  crossContext="false"
  debug="0"
  reloadable="true" 
 /Context
 
 I have only modified these files after the installation of apache and
 Tomcat; for example I have not JWSDK;
 
 
 
 - Original Message -
 From: Jan Labanowski [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, February 20, 2001 7:28 PM
 Subject: Re: Problem with a new version of JSP pages
 
 
  In your browser do
  Shift/Reload (or Shift/Refresh)
  and if this does not work, delete all files in $TOMCAT_HOME/work (but
  not the directory).
 
  You can also change cache sized in your browser to 0k. Next time tell
  us what OS and what browser and what version, etc., you are using...
 
 
  Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
  Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
  1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
  Columbus, OH 43212-1163  |http://www.osc.edu/
 
 
  On Tue, 20 Feb 2001, Garry De Toffoli wrote:
 
   I have a problem when I modify a JSP page;
  
   well, I modify my JSP page directly on the web Server (apache) and load
 this on my browser; I would expect to see the modification, but doesn't see;
 instead I see the jsp page without my modification;
  
   I have configured Server.XML with reloadable="true"; on the work
 directory of %TOMCAT_HOME I see the new .java with my modification and the
 new .class; on JASPER.LOG is written that my JSP page has been compiled;
  
   this problem happen randomly, but when it will manifest, I must restart
 Tomcat, because from that time every modification will not be reflected.
  
   Thank you for you help.
  
  
 
 
 
 
 
 
  

Re: RequestDispatcher.forward() problem

2001-02-21 Thread paul marshal

Andrew Kerr wrote:
 
 Hello,
 
 I've been having a bit of trouble with the RequestDispatcher.forward()
 method.  If I try to forward to a URL with a query string on it, and
 then have some code that processes the forwarded request, the
 getQueryString() method does not return the query string.  However, the
 parameters _are_ available via getParameter().
 
 Section 8.1.1 of the Servlet 2.2 spec does not explicitly state what the
 getQueryString() method should return in the event of a forward, but it
 seems to me that if the new request parameters are added to the
 request's internal list of parameters, that it only makes sense to also
 add the parameters to the query string.
 
 Section 8.4 of the spec states that "the path elements of the request
 object reflect those of the original request."  Although a query string
 is not strictly considered a "path element" according to the spec, it
 does seem in the spirit of section 8.4 that the additional parameters
 should be on the query string.
 
 Does anyone have any thoughts on this?
 
 Thanks,
 Andrew

Hi !

I can't answer your exact question. 
But for many purposes - other than reusing an existing servlet class
that you forward to - 

request.setAttribute("name" , valueObject) ; 
RequestDispatcher dest = context.getRequestDispatcher("..."); 
dest.forward(request,response); 

will do. 

-- 
Paul Marshall
[EMAIL PROTECTED]
089/26019-609

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




AW: formbased authentication: logout ?

2001-02-21 Thread Winkel, Matthias; 2854

For logging out a user his current session should finished. Just call
"invalidate()" on his current session. That unbinds all objects that are
stored in the session, finishs the current session und removes it from the
web application.

Example:

HttpSession mySession = request.getSession(); // get the current Session
// Do something
(...)
mySession().invalidate(); // finish the current session

Matthias

 -Ursprngliche Nachricht-
 Von:  paul marshal [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Mittwoch, 21. Februar 2001 16:10
 An:   tomcat-list
 Betreff:  formbased authentication: logout ?
 
 How do I create a possibility for my users to logout. 
 Is there something in the HttpSession that I need to delete ?
 Or how does it all work ?
 
 Paul
 
 -- 
 Paul Marshall
 [EMAIL PROTECTED]
 089/26019-609
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




RequestDispatcher.forward() problem

2001-02-21 Thread Andrew Kerr

Hello,

I've been having a bit of trouble with the RequestDispatcher.forward()
method.  If I try to forward to a URL with a query string on it, and
then have some code that processes the forwarded request, the
getQueryString() method does not return the query string.  However, the
parameters _are_ available via getParameter().

Section 8.1.1 of the Servlet 2.2 spec does not explicitly state what the
getQueryString() method should return in the event of a forward, but it
seems to me that if the new request parameters are added to the
request's internal list of parameters, that it only makes sense to also
add the parameters to the query string.

Section 8.4 of the spec states that "the path elements of the request
object reflect those of the original request."  Although a query string
is not strictly considered a "path element" according to the spec, it
does seem in the spirit of section 8.4 that the additional parameters
should be on the query string.

Does anyone have any thoughts on this?

Thanks,
Andrew



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




Parse Error in the tag library descriptor

2001-02-21 Thread sguillouet

Hello,

I got a problem and I really don't find where it come
from.
I think all my jar and tld files are at the right
place.
I just want to test if a taglibrary work by executing
the examples file and I got this exception :

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to open
taglibrary http://jakarta.apache.org/taglibs/xsl-1.0
: Parse Error in the tag library descriptor:
com.sun.xml.parser/V-037 web-app
 at
org.apache.jasper.compiler.JspParseEventListener.hand
leDirective(JspParseEventListener.java:672)
 at
org.apache.jasper.compiler.DelegatingListener.handleD
irective(DelegatingListener.java:116)
 at
org.apache.jasper.compiler.Parser$Directive.accept(Pa
rser.java:215)
 at
org.apache.jasper.compiler.Parser.parse(Parser.java:1
073)
 at
org.apache.jasper.compiler.Parser.parse(Parser.java:1
038)
 at
org.apache.jasper.compiler.Parser.parse(Parser.java:1
034)
 at
org.apache.jasper.compiler.Compiler.compile(Compiler.
java:182)
 at
org.apache.jasper.runtime.JspServlet.loadJSP(JspServl
et.java:413)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrappe
r.loadIfNecessary(JspServlet.java:149)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrappe
r.service(JspServlet.java:161)
 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(J
spServlet.java:261)
 at
org.apache.jasper.runtime.JspServlet.service(JspServl
et.java:369)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:853)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(S
ervletWrapper.java:503)
 at
org.apache.tomcat.core.ContextManager.service(Context
Manager.java:559)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHa
ndler.processConnection(Ajp12ConnectionHandler.java:1
56)
 at
org.apache.tomcat.service.TcpWorkerThread.run(PoolTcp
Endpoint.java:366)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:411)
 at java.lang.Thread.run(Thread.java:475)

I read someone got the same error a few months ago
but I know he didn't resolved it. Has someone an idea
now ? 
Every little track will be appreciated ...

Thanxs

Sophie

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




RE: R: Problem with a new version of JSP pages

2001-02-21 Thread Byung Jin Chun

oops, sorry, its probably ie caching the page.
you might want to try setting the appropriate
meta headers to turn caching off in the page,
such as the no-cache directive.

Jin

 -Original Message-
 From: Garry De Toffoli [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 21, 2001 10:26 AM
 To: [EMAIL PROTECTED]
 Subject: R: R: Problem with a new version of JSP pages
 
 
 Also me;
 
 infact restarting the TomCat and Apache, from my IE, I cannot 
 see the new
 JSP pages, but not every time; it is difficult  to simulate 
 the problem, but
 after 15-20 minutes of modify on 2 o more JSP pages, the new 
 JSP will not be
 visible; from that moment, I (and all my factory) see the old 
 JSP page,
 while I restart Tomcat and Apache;
 
 in my factory we develop in ASP, and we have no problem at all when we
 modify an ASP Page;
 
 I would like to  work with JSP page on the same mode, that is 
 modifying my
 JSP page through LAN directly on on Web Server, and viewing the newer
 version;
 
 but now, with  this problem, I don't know if the modification will be
 executing, and when.
 
 Thank you very much for your help.
 
 Best regards
 Garry De Toffoli
 
 - Original Message -
 From: Jan Labanowski [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, February 21, 2001 3:37 PM
 Subject: Re: R: Problem with a new version of JSP pages
 
 
  That means that you have a proxy server installed somewhere.
  You need to change the properties in your browser and tell it to
  load the pages directly, without using proxy server. I do not use IE
  daily, so I do not know the order of clicks. It is probably:
 
View -- Internet Options -- Connection -- Bypass Proxy server
 
  On netscape it would be:
 
Edit -- Preferences -- Advanced -- Proxies -- Direct 
 connection to
 the
  internet
 
  If this is not it, I am not sure what is happening...
 
 
  On Wed, 21 Feb 2001, Garry De Toffoli wrote:
 
   Sorry for my incomplete information.
  
   I'm using Tomcat 3.21 with Apache 1.3, in Win2k Server 
 Edition; JDK 1.3;
   the brower is Internet Explorer 5.5;
  
   I have try to refresh and to delete all files in 
 $TOMCAT_HOME/work, but
 I
   have also the same problem; from my PC I modify a JSP 
 page, I read from
 the
   JASPER.LOG that my Jsp Page has been compiled; on the 
 $TOMCAT_HOME/work
   there is another .java and .class is newer; but from my 
 and all browser
 of
   my office, I see the JSP page without modification;
  
   Occasionaly, after a modification end reloading my Jsp 
 Page, from my
 browser
   I run a jsp page, that made a submit on another jsp page; 
 on the SUBMIT
   time, on the end of the first  jsp page appear these rows:
  
   HTTP/1.1 200 OK
   Date: Tue, 20 Feb 2001 10:03:07 GMT
   Server: Apache/1.3.12 (Win32) mod_jk
   Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; 
 Servelet 2.2; Java
 1.3.0;
   Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
   Keep-Alive: timeout=15. max=99
   Transfer-Encoding: chunked
   Content-Type: text/html;charset=8859_1
  
   and after these the new jsp page, but these appear like a 
 single page;
   refreshing the page, all is OK; it seems to be a mismatch 
 of the TomCat
 or
   of the Apache sending  the page.
  
   I have read the bug#80, saying that Jasper JSP compiler is not
 threadsafe;
   is this possible that my problem would manifest when 
 there are 2 compile
 of
   JSP page at the same time? And if yes, what can I do?
  
   May be a configuration problem? After the installation, I 
 have modifiied
 the
   httpd.conf of Apache in this manner:
  
   ... init modify of apache.conf...
   VirtualHost 213.178.196.10
ServerAdmin [EMAIL PROTECTED]
DocumentRoot "d:/JSP"
DirectoryIndex homepage.htm
ServerName www.test.jsp
CustomLog d:/JSP/access.log common
   /VirtualHost
  
   include 
 c:\tomcat3.21\jakarta-tomcat-3.2.1\conf\tomcat-apache.conf
   include c:\tomcat3.21\jakarta-tomcat-3.2.1\conf\mod_jk.conf-auto
   ... end modify of apache.conf...
  
   in Server.xml of Tomcat I have added these lines only:
   Context path="/jsp"
docBase="d:\jsp"
crossContext="false"
debug="9"
reloadable="true" 
   /Context
   Context path="/hello"
docBase="d:\jsp\hellouser"
crossContext="false"
debug="0"
reloadable="true" 
   /Context
   Context path="/Carl"
docBase="d:\jsp\Carl"
crossContext="false"
debug="0"
reloadable="true" 
   /Context
   Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true" 
   /Context
  
   I have only modified these files after 

RE: R: Problem with a new version of JSP pages

2001-02-21 Thread Morahg, Yoav

Are the pages which aren't reloading by chance included on another .jsp page
with the %@include directive? 

If so, this is your problem. 

The @include directive is a static include which is simply inserted into
the calling .jsp page at compile time (as opposed to a dynamic include in
which the page is recompiled [if necessary] every time the calling .jsp is
run). 

If you use the @include the calling .jsp has no way of knowing when the
included page needs to be recompiled because it simply pulls the page in
when it initially compiles and does not check every time it is called if any
of the @includes have been changed. Because of this, the calling page
doesn't think it needs to recompile and hence you see your old page.
Solutions? When you change a page that is @includeed in a calling page,
make a change (even if it's just deleting a character and retyping it) to
the calling page and save it. That way, the calling page will get recompiled
and a new copy of the @included page will get grabbed at that time. The
other option is to use the dynamic include (jsp:include), which will force
the page to be recompiled (if necessary) everytime the calling .jsp is
called. However, this is not always a good thing to do. Unfortunately, I
can't elaborate on when you'd use a @include and when you'd use a
jsp:include ... perhaps someone else can help out with an answer regarding
this???

Good luck!

-Yoav

-Original Message-
From: Garry De Toffoli [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 10:26 AM
To: [EMAIL PROTECTED]
Subject: R: R: Problem with a new version of JSP pages


Also me;

infact restarting the TomCat and Apache, from my IE, I cannot see the new
JSP pages, but not every time; it is difficult  to simulate the problem, but
after 15-20 minutes of modify on 2 o more JSP pages, the new JSP will not be
visible; from that moment, I (and all my factory) see the old JSP page,
while I restart Tomcat and Apache;

in my factory we develop in ASP, and we have no problem at all when we
modify an ASP Page;

I would like to  work with JSP page on the same mode, that is modifying my
JSP page through LAN directly on on Web Server, and viewing the newer
version;

but now, with  this problem, I don't know if the modification will be
executing, and when.

Thank you very much for your help.

Best regards
Garry De Toffoli

- Original Message -
From: Jan Labanowski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 3:37 PM
Subject: Re: R: Problem with a new version of JSP pages


 That means that you have a proxy server installed somewhere.
 You need to change the properties in your browser and tell it to
 load the pages directly, without using proxy server. I do not use IE
 daily, so I do not know the order of clicks. It is probably:

   View -- Internet Options -- Connection -- Bypass Proxy server

 On netscape it would be:

   Edit -- Preferences -- Advanced -- Proxies -- Direct connection to
the
 internet

 If this is not it, I am not sure what is happening...


 On Wed, 21 Feb 2001, Garry De Toffoli wrote:

  Sorry for my incomplete information.
 
  I'm using Tomcat 3.21 with Apache 1.3, in Win2k Server Edition; JDK 1.3;
  the brower is Internet Explorer 5.5;
 
  I have try to refresh and to delete all files in $TOMCAT_HOME/work, but
I
  have also the same problem; from my PC I modify a JSP page, I read from
the
  JASPER.LOG that my Jsp Page has been compiled; on the $TOMCAT_HOME/work
  there is another .java and .class is newer; but from my and all browser
of
  my office, I see the JSP page without modification;
 
  Occasionaly, after a modification end reloading my Jsp Page, from my
browser
  I run a jsp page, that made a submit on another jsp page; on the SUBMIT
  time, on the end of the first  jsp page appear these rows:
 
  HTTP/1.1 200 OK
  Date: Tue, 20 Feb 2001 10:03:07 GMT
  Server: Apache/1.3.12 (Win32) mod_jk
  Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servelet 2.2; Java
1.3.0;
  Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
  Keep-Alive: timeout=15. max=99
  Transfer-Encoding: chunked
  Content-Type: text/html;charset=8859_1
 
  and after these the new jsp page, but these appear like a single page;
  refreshing the page, all is OK; it seems to be a mismatch of the TomCat
or
  of the Apache sending  the page.
 
  I have read the bug#80, saying that Jasper JSP compiler is not
threadsafe;
  is this possible that my problem would manifest when there are 2 compile
of
  JSP page at the same time? And if yes, what can I do?
 
  May be a configuration problem? After the installation, I have modifiied
the
  httpd.conf of Apache in this manner:
 
  ... init modify of apache.conf...
  VirtualHost 213.178.196.10
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot "d:/JSP"
   DirectoryIndex homepage.htm
   ServerName www.test.jsp
   CustomLog d:/JSP/access.log common
  /VirtualHost
 
  include 

In process Tomcat and JSP

2001-02-21 Thread Don Ha

Hi,
I'm trying to use In process Tomcat and JSP.  When I
execute JSP files from "webapps/examples" directory, 
there is error message about  file not exist.  What
should I change Tomcat config file?  Thanks.
Don Ha

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




R: R: Problem with a new version of JSP pages

2001-02-21 Thread Garry De Toffoli

Thank you Shahed, I am not alone.

But what we can do to resolve this "wierd" problem?
Open a new Bug?

My be Apache that cache the old JSP Pages? I don't know Apache very well.

Bye Bye
Garry De Toffoli

- Original Message - 
From: Shahed Ali [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 4:48 PM
Subject: Re: R: Problem with a new version of JSP pages


 I also did use %@ include %,
 
 but I touched the main (including) jsp page and it recompiled.
 
 But the recompiled java file in the work dir 
 (after deleting all stuff in work) was still the 
 old java source 
 
 Its a wierd problem !! 
 
 Regards
 Shahed.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 


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




Solaris mod_jk binaries, how many?

2001-02-21 Thread Jones, Stephen


My company redistributes Tomcat 3.2.1 with our web product, and we support
Solaris 8. However, our installation process is long and confuses a lot of
our customers. The bulk of the trouble comes from having to compile mod_jk.
This is pretty well documented and doable, but we'd like to save them the
trouble.

If we (or Tomcat themselves) were to distribute Solaris binaries of mod_jk,
how many different versions would it take to cover most Solaris 8/SPARC
users? Do they need one for 32-bit, one for 64-bit, the same two for intel
versus Sparc, etc?

Thanks for any help,
Steve Jones

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




Hihi..kenni here!! Fwd: Super Cute~baby!

2001-02-21 Thread Kenny Lee


Note: forwarded message attached.


__
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com.sg/





From: "Joanne Lim" [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED]
Subject: Super Cute~baby!
Date: Thu, 11 Jan 2001 14:45:17




_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



  Subject: Fwd:My baby Gives U A WiNk@@



 baby.gif



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


RE: Answer three simple questions and I will be thrilled.

2001-02-21 Thread Randy Layman


See replies intermixed.

-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Answer three simple questions and I will be thrilled.


Hi,

I am trying to get a handle on Log4J and I have three problems/questions I
am trying to get
around.

First I am trying to use log4j with a web app that is distributed in a
standard war file. I want
to be able to distribute this file, along with the logging class and not
worry about configuring
log4j.

In my code I have PropertyConfigurator.configure("path to
myLog.properties");

As a result I have to set this path every time I distribute the war file.
Is it possible to set this up so that the class file looks to where it has
been installed and
looks for myLog.properties there. This way I don't have to worry about
setting to
myLog.properties.


You can use ServletContext.getResource/getResourceAsStream or the same
methods on the ClassLoader.  This might give you a URL similar to
jar://path_to_WAR:entry_in_war_file, which might not be writable.



Second, I have a rolling file set in myLog.properties via:
log4j.appender.R.File="/myRollingLog.log"

How can I do the same as in step one, have this file default to where the
war file was installed?


There is one problem with this - what happens if its installed into a web
server that doesn't expand WAR files?  The spec does not require the files
be expanded, and you can't necessary add files to existing WARs though the
normal writing methods.  If you want to find the directory that the WAR is
in then you could use ServletContext.getRealPath("some file we know exists")
and then chop off the end.


Third, I have the following code in each of my class files:
Category cat=Category.getinstance(myclass.class.getName());
How can I have the above through reflection find its own class name and
therefore I would have a
default statement? Something like
Category
cat=Category.getInstance("Find_What_Class_This_Is).class.getName())?


This one I'm not sure about.  From within an instance you can call
getClass() that returns a handle to the java.lang.Class object of this
class, but I don't think this works from a static context.  If your have
some form of a pre-processor you can run on your code you might be able to
do a text replacement on the code, but I don't think this is possible in
straight java.



Thanks for any help.

Alex



=
Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices!
http://auctions.yahoo.com/

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

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




JDBC realm - Pls help

2001-02-21 Thread Suchi Somasekar

Hi
I am a new user of tomcat and I am having trouble getting the JDBC realm
to work. I am using Tomcat 3.2.1 on Windows2000 and I am testing a small
sample application that I wrote. Everything including the user
authentication works great when I use the "SimpleRealm".
But, When I tried to use the JDBC realm the server will not start, it
just dies with no error messages, no log messages.
I have made absolutely no other changes except comment out the
SimpleRealm and include the JDBC realm information to the server.xml and
added the Oracle driver in tomcat/lib. The following is the relevant
portion of my server.xml

!--
RequestInterceptor
className="org.apache.tomcat.request.SimpleRealm"
debug="0" /
--

   RequestInterceptor
className="org.apache.tomcat.request.JDBCRealm"
debug="99"
 driverName="oracle.jdbc.driver.OracleDriver"
  connectionURL="jdbc:oracle:thin:@testserver:1521:TEST3"
connectionName="readonly"
  connectionPassword="nowrites"

userTable="usernames"
userNameCol="username"
userCredCol="password"
 userRoleTable="userroles"
   roleNameCol="rolename" /


Can someone please tell me what I am missing.

Thanks
Suchithra



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




Compiling mod_jk on HPUX11.00

2001-02-21 Thread John P. Dodge

Has anyone been successfull in getting mod_jk to compile and run on
HPUX11.00. I have searched the list and found the response from "Matchim,
Brian - BOP/BDP" [EMAIL PROTECTED]. I am having problems getting
past the "dlopen - unresolved symbol" problem that Brian talks about. I am
unable to use the GCC compiler and am using the HP C compiler. Brian
mentions that "dlopen" is available for 64-bit compilers but the source
code must me modified to use the equivalent "shl_open" function for 32-bit
compilers. Does anyone have source code with this fix applied?


Thanks



"Mon aeroglisseur est plein d'anguilles"

John P. Dodge
Boeing Shared Services Group



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




best way to handle Servlets+JSPs+multiple Frames?

2001-02-21 Thread Sebastian Schulz




hi,

i want to develop a WebApplication
using Servlets+JSPs+JavaBeans.
(MVC)

So far no problems.

But on client-side i need a frame-based 
solution.
Every Frame itself is a JSP. The following i need 
to 
get working as smart as possible:

User-action at one Frame causes the Servlet to 
change
this but also all the other JSP-Frames acording to 
the
current action.

I know i cando this by including a 
JavaScript-Function
which produces a request for every Frame to the 
Servlet.

This sucks because of:
- i need JavaScript
- it is notsmart andwill lead to bad 
performance because of multiple, 
 redundant requests
- it is quite dangerous for some (altering) 
operations, which 
 shold take place only one 
times!

so i would be very glad, if someone have a more 
elegant solution!
may be there is a "best way" for this kind of 
problem...
thanks in advance.

bAs T.


Answer three simple questions and I will be thrilled.

2001-02-21 Thread Alex Colic

Hi,

I am trying to get a handle on Log4J and I have three problems/questions I am trying 
to get
around.

First I am trying to use log4j with a web app that is distributed in a standard war 
file. I want
to be able to distribute this file, along with the logging class and not worry about 
configuring
log4j.

In my code I have PropertyConfigurator.configure("path to myLog.properties");

As a result I have to set this path every time I distribute the war file.
Is it possible to set this up so that the class file looks to where it has been 
installed and
looks for myLog.properties there. This way I don't have to worry about setting to
myLog.properties.

Second, I have a rolling file set in myLog.properties via:
log4j.appender.R.File="/myRollingLog.log"

How can I do the same as in step one, have this file default to where the war file was 
installed?

Third, I have the following code in each of my class files:
Category cat=Category.getinstance(myclass.class.getName());
How can I have the above through reflection find its own class name and therefore I 
would have a
default statement? Something like
Category cat=Category.getInstance("Find_What_Class_This_Is).class.getName())?

Thanks for any help.

Alex



=
Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




Re: best way to handle Servlets+JSPs+multiple Frames?

2001-02-21 Thread uthay



Jsp is no different from other when it comes to 
client side.
Why don't you just link the client actions to 
specific or generic Jsp pages just as normal!

   Original Message - 
  From: 
  Sebastian Schulz 

  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, February 21, 2001 5:06 
  PM
  Subject: best way to handle 
  Servlets+JSPs+multiple Frames?
  
  
  hi,
  
  i want to develop a WebApplication
  using Servlets+JSPs+JavaBeans.
  (MVC)
  
  So far no problems.
  
  But on client-side i need a frame-based 
  solution.
  Every Frame itself is a JSP. The following i need 
  to 
  get working as smart as possible:
  
  User-action at one Frame causes the Servlet to 
  change
  this but also all the other JSP-Frames acording 
  to the
  current action.
  
  I know i cando this by including a 
  JavaScript-Function
  which produces a request for every Frame to the 
  Servlet.
  
  This sucks because of:
  - i need JavaScript
  - it is notsmart andwill lead to bad 
  performance because of multiple, 
   redundant requests
  - it is quite dangerous for some (altering) 
  operations, which 
   shold take place only one 
  times!
  
  so i would be very glad, if someone have a more 
  elegant solution!
  may be there is a "best way" for this kind of 
  problem...
  thanks in advance.
  
  bAs 
T.


RE: problems configuring tomcat/apache mod_jk.so

2001-02-21 Thread Jennifer Dyess



Thanks 
so much!
That 
did the trick.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 
  21, 2001 2:17 AMTo: 
  [EMAIL PROTECTED]Subject: Re: problems configuring 
  tomcat/apache mod_jk.soHello, you must add the -lposix4 
  flag on the apxs command line on Solaris Sparc, and i thinkl that it is the 
  same for Solaris x86 
  Try this l: #!/usr/bin/gnu/bash 
  SERVER_ROOT=/0/admin/lmaitre/www-sop JAVA_HOME=/usr/local/jdk1.3 
  ${SERVER_ROOT}/bin/apxs -o mod_jk.so -DSOLARIS -I../jk 
  -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris -lposix4 -c *.c 
  ../jk/*.c 
  (it is from 
  http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html: "On 
  some systems, this will build the module correctly, but will fail at runtime 
  with a "symbol "fdatasync" not found". To fix, add -lposix4 just before the -c 
  in the above command.") 
  Regards, --
[EMAIL PROTECTED]

INRIA - 2004 route des lucioles - BP 93 Tel: (33/0) 4 92 38 50 41
06902 SOPHIA-ANTIPOLIS cedex (France) Fax: (33/0) 4 92 38 76 02 



URL ReWriting

2001-02-21 Thread Jones, Stephen

I am in the process of researching URL-rewriting techniques for the purposes
of:
- Session Management (a non-cookie solution)
- Web Server Load Balancing

Would the info you have help me out? Much appreciated,
Steve

--SNIP--
 PS : If somebody want information for dealing with URL 
 rewriting between
 Tomcat and Apache i have found some tricks who could help you, mail me
 if you are
 interested.
 (and without making external redirects)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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




pass arguments to servlet in tomcat 4.0

2001-02-21 Thread eddie tsai

i am currently using tomcat 4.0 milestone 5. i am trying to make a
servlet that can take arguments when the servlet is invoked from another
java application. the way i did it worked with tomcat 3.2 but not with
4.0. it gave me the "stream is closed" error when the servlet is trying
to read from the servlet request inputstream. has mechanism underneath
been changed? or is that not how it is supposed to be done? 

thanks for your help,

eddie
--

-
here is the error i got:

java.io.IOException: This input stream has been closed
at
org.apache.catalina.connector.RequestStream.available(RequestStream.java:182)
at TestServlet.service(TestServlet.java:11)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:519)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:386)
at
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:251)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2038)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at
org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:811)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:890)
at java.lang.Thread.run(Thread.java:484)

--
here is the code fragment for the application invoking the servlet and
trying to pass an arguments to the servlet:

class TestApplication
{
...
public void main(String[] args)
{
try
{
URL url = new
URL("http://localhost:8080/RS/servlet/TestServlet");
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setUseCaches(false);

ObjectOutputStream oos = new ObjectOutputStream(
connection.getOutputStream());
// Try to pass an argument to the servlet.
oos.writeObject("first argument");
oos.flush();

connection.getInputStream();
System.out.println("done with testservlet");
}
catch (Exception e)
{
e.printStackTrace();
}
}
}

--
here is the code for the servlet to be invoked:

class TestServlet extends GenericServlet
{
public void service(
ServletRequest request,
ServletResponse response) throws ServletException,
IOException
{
System.out.println("ready to test input stream");
// Trying to see if the 'argument' is available to be
read.
java.io.InputStream is = request.getInputStream();
// The error will occur when doing is.available().
System.out.println("successfully got input stream and
available="+
is.available());
}
}



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




Jinsight with Tomcat

2001-02-21 Thread Sharmila Kannangara

Is there a way to configure Tomcat to run in standalone mode with Jinsight ?
I have Tomcat standalone on my NT machine and want to analyze servlet
performance using IBM's 
Jinsight.

Thank you
Sharmila


 winmail.dat

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


Proposed spec - Temp Working directory.

2001-02-21 Thread Jason Hoffman
Title: Proposed spec - Temp Working directory.





Hello,


I have a request to clarify/modify Section 3.7 of the proposed final draft of the Servlet 2.3 specification dated October 20, 2000.

I think this javax.servlet.context.tempdir could be extremely useful and am glad to see its addition. One thing I dont understand is why this is a Temporary Working Directory versus a Working Directory. Specifically, being a temporary directory implies it's lifespan cannot be guaranteed. I think this directory could be much more useful, if its lifetime could be guaranteed as long as the Web application is installed. 

One way I think this could be used is for storing permanent user configuration and files for the life of the web application's installation. For Example, allowing an admin user to set Database connection parameters via a Admin servlet. These parameters could be stored in an XML file inside this working directory. Also, if the user wanted to upload his/her own Images, then they could also be saved inside this directory. There is no need for any developer/admin to have prior knowledge of the exact location of these files on their system. This is the responsibility of the application container to provide this environment. 

I think the specification needs to specify that the this directory NOT be deleted or cleaned out upon container startup and/or shutdown. In conjunction, the name of javax.servlet.context.tempdir be modified to javax.servlet.context.workingdir. 

Just my 2 cents




Jason Hoffman
Software Developer
KUIT, Inc.
Ph 214-373-5227
Cell 214-676-4376
[EMAIL PROTECTED]







POST doesn't work; PUT does (Part2)

2001-02-21 Thread Tom Gibb

Sorry about the POST/PUT code not showing up in my last message as
text.  Here is my previous message with the POST/PUT examples:

When we use a POST in a web page such as in :
FORM ACTION="/servlet/coreservlets.ShowParameters"
  METHOD="POST"

 we get the following error:

 HANDLER THREAD PROBLEM: java.io.IOException: Stream closed
 prematurely
 java.io.IOException: Stream closed prematurely
 at
 org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextReque
 st(Ajp12ConnectionHandler.java(Compiled Code))
 at
 org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
 nection(Ajp12ConnectionHandler.java:134)
 at
 org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
 ava:338)
 at java.lang.Thread.run(Thread.java:498)

 However, when we use:
FORM ACTION="/servlet/coreservlets.ShowParameters"
  METHOD="PUT"


 The servlet runs fine with no error.  We are using Tomcat 3.1.

 Thanks for any insights you have into this problem,
 Tom


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




Windows 98

2001-02-21 Thread Mark Richmond

Quick question. Is it possible to run Tomcat on Windows 98 or are my 
efforts in vain?
Thanks


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




Adding contexts to tomcat with IIS

2001-02-21 Thread Hensley, Zachary

I have loaded tomcat on IIS and I can get the examples directory to come up
fine.  I can not get any other contexts to come up though.  This is what I
have tried.  I would appreciate any tips or ides.
 
I Added the following line /admin/*=ajp12 to the uriworkermap.properties
file restarted everything and still never found the context.  I then
commented out the examples context and it still came up fine.  I checked the
registry worker_mount_file and everything looks fine.  I then deleted the
uriworkermap.properties file and examples still came up.  For some reason it
doesn't seem like tomcat is finding everything.  Any suggestions.
 
Thanks
 
Zach H.
 


**

This email and any files transmitted with it are confidential
 and intended solely for the use of the individual or entity to
 whom they are addressed.  If you have received this email
 in error, please notify the sender by email and delete and
 destroy this message and its attachments.

**

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




Re: Proposed spec - Temp Working directory.

2001-02-21 Thread servletAPI-feedback

Thank you for your feedback on the Servlet API. Your feedback will be
read by an engineer on the Java Servlet API Team and given serious
consideration. We will contact you directly if we have further
questions about your feedback.

--

We do not perform sales or technical support from this address.  This
is worth repeating: you will not receive any additional mail, unless
we have questions on your feedback. Please contact one of our other
support channels (below) if you require support.

To place a bug report directly into our database, you may enter your
bug here: http://java.sun.com/cgi-bin/bugreport.cgi

For licensing, sales and schedule information, please contact
1-888-THEJAVA. If outside the US, please dial 1-(512)434-1591

--

For more discussion of the servlet API please consider joining the
servlet-interest mailing list.

You may subscribe to the mailing list by sending an email to:

[EMAIL PROTECTED]

with the _body_ of the message containing the line

SUBSCRIBE SERVLET-INTEREST Full-Name-Here

where Full-Name-Here is your name.

Discussions of programming Java Servlets, and server side Java
programming in general, are carried out on the Usenet newsgroup
comp.lang.java.programmer.

--

Thank you for your time and input.

The Servlet API Team

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




Condtional Bean creation

2001-02-21 Thread Chad LaJoie

I have a JSP with the following lines of code:

jsp:useBean id="layout" class=foo.bar.Layout" scope="session"
 %
 File someFile = new File("some/path");
 layout.loadFile(someFile);
 %
/jsp:useBean

The objective is pretty simple.  When a user loads the JSP, if the bean is 
not already in the session context, it is created and then the code in the 
body of the useBean tag is execute.  The problem is that this doesn't 
work.  The JSP simply spits out the body of the useBean tag as HTML, though 
according to the log messages it does actually create a new bean.  I am 
currently using Tomcat 3.2.1 embedded in Netscape Enterprise Server.  Has 
anyone else run into this, is this is a bug, or does any one have any info 
on this?  Thanks.

Chad La Joie   "Only a man who can not conquer
IT Specialist his deficiencies feels the need to
ISC - WARD convince the world he has none"


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




RE: Windows 98

2001-02-21 Thread Randy Layman


While not ideal, it is possible.  You are probably getting "Out of
Environment Space" errors.  From your Dos prompt window, you need to
increase the memory.

Randy


-Original Message-
From: Mark Richmond [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 2:39 PM
To: [EMAIL PROTECTED]
Subject: Windows 98


Quick question. Is it possible to run Tomcat on Windows 98 or are my 
efforts in vain?
Thanks


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

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




Re: best way to handle Servlets+JSPs+multiple Frames?

2001-02-21 Thread Sebastian Schulz

hi Stephen,

thank you for your solution.

But if i'm not mistaken your example needs
no session (therefor the redirection, right?)

Then it's no problem to have one frame
making the Request and the Servlet after
doing its job redirects to the URL with the
Frameset.

But i need session-support for the whole Lifetime
of the WebApplication, so thats my abstract use-case:

request (for instance form-data) from one frame, servlet
validates and changes some Java-Objects, putting them
back to session, then _dispatching_ , better _forwarding_
the request to the frameset.
because the frameset consists of several "JSP-Frames", whitch all
needs access to the session-object, i can not dispatch to the
frameset, instead i have to dispatch to that frame, which has made the
request (with help from a JavaScript-Function).

Am I wrong?

here some code-snippets:

frame with form, action as a redirection to a JavaScript-Function:
form method="post" ... action="javascript:dispatchFrames('Servlet-Path')"


sript language = ...
function dispatchFrames(servletpath){
/* reading form-parameters etc.
then dispatching for that frames who need access to modified
session-object:
*/
parameterlist=.

parent.frames[0].location.href=servletpath+"?"+parameterlist;
parent.frames[1].location ...same
... and so on

Servlet:
/* doGet() + doPost(): */
...public void doIt(...) ...
/* get my Object from Session: */
object = (cast)session.getSessionAttribute(..);
/* changing the object acording to request-parameters */
/* no explicit store back, because call by reference */
/* dispatch to that file(jsp), the requesting frame should display now: */
RequestDispatcher rd = getServletContext().getRequestDispatcher(url);
try{
...
...
res.setHeader(...
rd.forward(req,res);


this is my solution, witch work also with session-suport for frames,
but i'm not very happy with it.

bAs T.

- Original Message - 
From: Jones, Stephen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 6:51 PM
Subject: RE: best way to handle Servlets+JSPs+multiple Frames?


 In our product, we use forms to POST user input data. We usually send the
 input to another JSP page, but I don't see why this would not work for a
 servlet's doPost(HttpServletRequest, HttpServletResponse) method.
 
 e.g.:
 form name="ReqAttMod" id="ReqAttMod" method="POST"
 action="UserMod_Ctl.jsp" target="_top"
 % /* form stuff here, buttons, textfields, etc */ %
 /form
 
 When the servlet has made its controller-decisions, it then performs a
 URL-redirect to the new HTML frameset desired (sURL), according to biz
 logic, e.g.:
 
 response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
 response.setHeader("Location", sURL);
 
 (this is a cookie-safe redirect)
 
 I'm sure there are other ways, as well.
 Steve
 
 -Original Message-
 From: Sebastian Schulz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 21, 2001 10:07 AM
 To: [EMAIL PROTECTED]
 Subject: best way to handle Servlets+JSPs+multiple Frames?
 
 
 hi,
 
 i want to develop a WebApplication
 using Servlets+JSPs+JavaBeans.
 (MVC)
 
 So far no problems.
 
 But on client-side i need a frame-based solution.
 Every Frame itself is a JSP. The following i need to 
 get working as smart as possible:
 
 User-action at one Frame causes the Servlet to change
 this but also all the other JSP-Frames acording to the
 current action.
 
 I know i can do this by including a JavaScript-Function
 which produces a request for every Frame to the Servlet.
 
 This sucks because of:
 - i need JavaScript
 - it is not smart and will lead to bad performance because of multiple, 
   redundant requests
 - it is quite dangerous for some (altering) operations, which 
   shold take place only one times!
 
 so i would be very glad, if someone have a more elegant solution!
 may be there is a "best way" for this kind of problem...
 thanks in advance.
 
 bAs T.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


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




RE: best way to handle Servlets+JSPs+multiple Frames?

2001-02-21 Thread Randy Layman


But I think that his orginal point was this does not seem like an
efficient solution - you end up loading the frameset for every page, as well
as all the dependent pages.

What we have done is to make one Frame the "Controlling" frame.  All
actions take place in this frame.  Then, for our menu bars, title bars,
button bars, etc we create pages that are mostly JavaScript.  From the
Controlling Frame, we tell the dependent frame to create their HTML based
upon the function parameters.  (For example, each page calls
fames[x].setMenus(labels, actions), which generates the html for our menus
and then sets the innerHTML for a paticular span to the html just
generated.)  This does end up with a lot of JavaScript on the client,
however it makes the design just about as clean as a non-frame set
implementation.  It also moves some of the processing from the server out to
the client (for those worried about the load on their servers).

Randy


-Original Message-
From: Jones, Stephen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 12:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: best way to handle Servlets+JSPs+multiple Frames?


In our product, we use forms to POST user input data. We usually send the
input to another JSP page, but I don't see why this would not work for a
servlet's doPost(HttpServletRequest, HttpServletResponse) method.

e.g.:
form name="ReqAttMod" id="ReqAttMod" method="POST"
action="UserMod_Ctl.jsp" target="_top"
% /* form stuff here, buttons, textfields, etc */ %
/form

When the servlet has made its controller-decisions, it then performs a
URL-redirect to the new HTML frameset desired (sURL), according to biz
logic, e.g.:

response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
response.setHeader("Location", sURL);

(this is a cookie-safe redirect)

I'm sure there are other ways, as well.
Steve

-Original Message-
From: Sebastian Schulz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 10:07 AM
To: [EMAIL PROTECTED]
Subject: best way to handle Servlets+JSPs+multiple Frames?


hi,

i want to develop a WebApplication
using Servlets+JSPs+JavaBeans.
(MVC)

So far no problems.

But on client-side i need a frame-based solution.
Every Frame itself is a JSP. The following i need to 
get working as smart as possible:

User-action at one Frame causes the Servlet to change
this but also all the other JSP-Frames acording to the
current action.

I know i can do this by including a JavaScript-Function
which produces a request for every Frame to the Servlet.

This sucks because of:
- i need JavaScript
- it is not smart and will lead to bad performance because of multiple, 
  redundant requests
- it is quite dangerous for some (altering) operations, which 
  shold take place only one times!

so i would be very glad, if someone have a more elegant solution!
may be there is a "best way" for this kind of problem...
thanks in advance.

bAs T.

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

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




Re: RequestDispatcher.forward() problem

2001-02-21 Thread Dmitry Rogatkin

I met the same problem. To read your query string in included or forwarded servlet, 
you have to use the call:

String query = request.getAttribute("javax.servlet.include.query_string");

Regards,
Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:paul marshal [EMAIL PROTECTED]
Sent:Wed, 21 Feb 2001 16:48:26 +0100
To:  [EMAIL PROTECTED]
Subject: Re: RequestDispatcher.forward() problem


Andrew Kerr wrote:
 
 Hello,
 
 I've been having a bit of trouble with the RequestDispatcher.forward()
 method.  If I try to forward to a URL with a query string on it, and
 then have some code that processes the forwarded request, the
 getQueryString() method does not return the query string.  However, the
 parameters _are_ available via getParameter().
 
 Section 8.1.1 of the Servlet 2.2 spec does not explicitly state what the
 getQueryString() method should return in the event of a forward, but it
 seems to me that if the new request parameters are added to the
 request's internal list of parameters, that it only makes sense to also
 add the parameters to the query string.
 
 Section 8.4 of the spec states that "the path elements of the request
 object reflect those of the original request."  Although a query string
 is not strictly considered a "path element" according to the spec, it
 does seem in the spirit of section 8.4 that the additional parameters
 should be on the query string.
 
 Does anyone have any thoughts on this?
 
 Thanks,
 Andrew

Hi !

I can't answer your exact question. 
But for many purposes - other than reusing an existing servlet class
that you forward to - 

request.setAttribute("name" , valueObject) ; 
RequestDispatcher dest = context.getRequestDispatcher("..."); 
dest.forward(request,response); 

will do. 

-- 
Paul Marshall
[EMAIL PROTECTED]
089/26019-609

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




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Tomcat and Orion together!

2001-02-21 Thread Chris Thompson

Hi all,

I have been asked to install Orion and Tomcat on the same machine, to run
simaltaneously for demoing different products. I have tried to get people to
decide which to use but am assured that we need both.

DOes anyone know if this is possible and if so how to do it. I have assigned
the server two virtual IP addresses and just want Orion listening on one,
Tomcat on another. 

Do I need to install jdk1.3 twice?

Many thanks for any help recieved.

Chris

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




RE: Adding contexts to tomcat with IIS

2001-02-21 Thread Randy Layman


First, I believe that uriworpermap.properties file is only loaded at
IIS service startup.  In other words, to make modifications to the contexts
available, you need to restart IIS.  Second, I believe that /admin is a
special virutal directory in IIS.  Lastly, it seems like you have a
different uriworkermap.properties file that is really being used.  You
shouldn't be able to delete the file and still have IIS/Tomcat work after an
IIS restart.

Randy


-Original Message-
From: Hensley, Zachary [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 2:36 PM
To: '[EMAIL PROTECTED]'
Subject: Adding contexts to tomcat with IIS


I have loaded tomcat on IIS and I can get the examples directory to come up
fine.  I can not get any other contexts to come up though.  This is what I
have tried.  I would appreciate any tips or ides.
 
I Added the following line /admin/*=ajp12 to the uriworkermap.properties
file restarted everything and still never found the context.  I then
commented out the examples context and it still came up fine.  I checked the
registry worker_mount_file and everything looks fine.  I then deleted the
uriworkermap.properties file and examples still came up.  For some reason it
doesn't seem like tomcat is finding everything.  Any suggestions.
 
Thanks
 
Zach H.
 


**

This email and any files transmitted with it are confidential
 and intended solely for the use of the individual or entity to
 whom they are addressed.  If you have received this email
 in error, please notify the sender by email and delete and
 destroy this message and its attachments.

**

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

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




Performance ISSUES : mod_jk ajp13 Vs ajp12

2001-02-21 Thread Shahed Ali

Hi,

We are using Tomcat 3.2.1 with Apache 1.3.14 and mod_jk
on Solaris 8 Intel  JDK 1.3

We have had the strangest of experiences with
multiple configs including
various mix  match combos of
TC 3.1 , TC 3.2 , JDK 1.2.2, JDK 1.3 , mod_jk / mod_jserv

We finally decided to stick with mod_jk and ajp13
Every things seems ok, but today we had a problem
whereby it seemd that the communication between
mod_jk and apache broke.

Requests were being sent to mod_jk, but then it would
close the socket instead of replying back to apache, leading to a large
number of sockets remaing in CLOSE_WAIT / FIN_WAIT_2 state.

My boss seems to think that AJP13 is not ready for
production yet.

Can anyone tell me what seems to be the best combo
from the following :-

mod_jk and ajp12

mod_jk and ajp13

mod_jserv and ajp12 with smart content redirection (static = apache ||
*.jsp  /servlet/ = tomcat )

mod_jserv and ajp13 ??? (dont think its allowed)

Also, my mod_jk has a patch so that it acts as
a Content Handler instead of the default behavior of
acting like a filter. So only *.jsp and /servlet/ are handled by it.

Any recomendations ?

Thanks
Shahed.


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




Re: formbased authentication: logout ?

2001-02-21 Thread uthay

If you want an application controled authentication why dont you develope a
session bean that will interact with the login script?



- Original Message -
From: "paul marshal" [EMAIL PROTECTED]
To: "tomcat-list" [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 3:10 PM
Subject: formbased authentication: logout ?


 How do I create a possibility for my users to logout.
 Is there something in the HttpSession that I need to delete ?
 Or how does it all work ?

 Paul

 --
 Paul Marshall
 [EMAIL PROTECTED]
 089/26019-609

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




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




Re: formbased authentication: logout ?

2001-02-21 Thread Charles Sabourdin

you create a page where you set :
%session.invalidate() %

then the session is eligable for the garbage
collector.


--- paul marshal [EMAIL PROTECTED] wrote:
 How do I create a possibility for my users to
 logout. 
 Is there something in the HttpSession that I need to
 delete ?
 Or how does it all work ?
 
 Paul
 
 -- 
 Paul Marshall
 [EMAIL PROTECTED]
 089/26019-609
 

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


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




How do I get AJP13 working

2001-02-21 Thread McDermid, Ian

Hi,

I have Apache 1.3.17 with SSL and Tomcat working. My question relvolves
around the mod_jk.conf-auto file. No matter what I change the JKMount
statements always specify Ajp12 as the protocol to be used.

Is there a way I can force ajp13 use in the auto file or will I have to
change the Include statement in httpd.conf to include a static file.


Ian



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




RE: JSP quoting and escape conventions

2001-02-21 Thread Paul FitzPatrick


Craig, I know you're the man, but it seems that the JSP Spec 1.1 says that
the JSP compiler should translate a %\ into % and keep going looking for a
% just to that his example would work.

"Section 2.4 Quoting and Escape Conventions" seems to me to say that in the
example he lists (here it is again :)
% String foo = "testing %\"; %

should be allowable and that the JSP compiler should generate a line like :
String foo = "testing %";

While I agree that
String foo = "testing %\";
is invalid java code, it is the JSP compilers responsibility to convert the
JSP escape sequence.

Thanks,
Paul


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:26 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP quoting and escape conventions


William Au wrote:

 Yes, I see what you mean.  I guess it is a matter of what happen first.
 If the escape happens first, then the JSP

 % String foo = "testing %\"; %

 would be translate to the following java code

 String foo = "testing %";

 Then it would be valid java code.

 However, it seems to me in Tomcat, the translation happens first so the
 following
 invalid java code is generated:

 String foo = "testing %\";


What is happening first is what *has* to happen first -- the JSP parser
sees the
"%\" but recognizes (correctly) that this is not the end of the
scriptlet.  This
is exactly in accordance to the spec.

Therefore, all of the text between the "%" and the "%" is passed
through to the
language compiler for the scripting language (Java in this case),
uninterpreted
by the JSP page compiler.  The uninterpreted code is not valid Java
syntax, and
therefore violates the JSP specification -- just the same as if you
forgot a
quote around the string literal, or omitted a required semicolon, or
made some
other error in Java syntax.


 Bill

Craig

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



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




RE: mod_jk.so installation tar.gz...

2001-02-21 Thread Adam Fowler

I'll give it a bash...he he ...bash.

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:35 AM
To: [EMAIL PROTECTED]
Subject: RE: mod_jk.so installation tar.gz...


Did you notice that there is existing RPM for tomcat modules,
mod_jk and mod_jserv ?

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m1/rpms/

I'd really like you to rebuild the SRPMS, tag the release with mdk and
provide the SRPMS / RPMS back to Mandrake users...

La prise de conscience de votre propre ignorance est un grand pas vers la
connaissance.
-- Benjamin Disraeli
 

-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 11:34 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: mod_jk.so installation tar.gz...


Hi,

This kind of trouble! 8o) :-

[root@willow RPM]# rpm -ba SPECS/mod_jk-apache1.3-1mdk.spec
File /usr/src/RPM/SOURCES is smaller than 4 bytes
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.14373
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf mod_jk.so-tomcat3.2.1
+ tar -xf /usr/src/RPM/SOURCES
tar: /usr/src/RPM/SOURCES: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
Bad exit status from /var/tmp/rpm-tmp.14373 (%prep)
[root@willow RPM]#

I'd be greatful for some help, the RPM-Howto doesn;t help much.

Oh, and your e-mail address is appearing as [EMAIL PROTECTED]!
(apart from the reply-to, obviously)

Regards + thanks,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Peter B. West
Sent: Monday, February 19, 2001 10:42 PM
To: [EMAIL PROTECTED]
Subject: Re: mod_jk.so installation tar.gz...


Adam Fowler wrote:

 I'm trying to make an RPM but am having trouble building it. 
Any hints?

What kind of trouble?

Peter
--
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"

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



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


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



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




POST doesn't work; PUT does

2001-02-21 Thread Tom Gibb


When we use a POST in a web page such as in :
FORM ACTION="servletTest"
 METHOD="POST">
we get the following error:
HANDLER THREAD PROBLEM: java.io.IOException: Stream closed
prematurely
java.io.IOException: Stream closed prematurely
 at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextReque
st(Ajp12ConnectionHandler.java(Compiled Code))
 at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
nection(Ajp12ConnectionHandler.java:134)
 at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
 at java.lang.Thread.run(Thread.java:498)
However, when we use:
FORM ACTION="servletTest"
 METHOD="PUT">
The servlet runs fine with no error. We are using Tomcat 3.1.
Thanks for any insights you have into this problem,
Tom






Re: How do I get AJP13 working

2001-02-21 Thread Rui M . Silva Seabra

On Thu, Feb 22, 2001 at 08:26:23AM +1100, McDermid, Ian wrote:
 I have Apache 1.3.17 with SSL and Tomcat working. My question relvolves
 around the mod_jk.conf-auto file. No matter what I change the JKMount
 statements always specify Ajp12 as the protocol to be used.
 Is there a way I can force ajp13 use in the auto file or will I have to
 change the Include statement in httpd.conf to include a static file.

Simple:

 Never use the auto generated file. Instead, use it as a template to learn the minimal 
configuration needed. From then on, just make it by hand.

 Not only it is safer, but also you will not have surprises!

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

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




Re: Windows 98

2001-02-21 Thread bennie

You can do that with "command /E:2816" in a dos window!

- Original Message - 
From: Randy Layman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 8:21 PM
Subject: RE: Windows 98


 
 While not ideal, it is possible.  You are probably getting "Out of
 Environment Space" errors.  From your Dos prompt window, you need to
 increase the memory.
 
 Randy
 
 
 -Original Message-
 From: Mark Richmond [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 21, 2001 2:39 PM
 To: [EMAIL PROTECTED]
 Subject: Windows 98
 
 
 Quick question. Is it possible to run Tomcat on Windows 98 or are my 
 efforts in vain?
 Thanks
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


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




Cannot buiild mod_jserv.so

2001-02-21 Thread Manos Riglis

Hi,

I have tried to build mod_jserv.so  in a solaris box for tomcat 3.2.1, by
running apxs -c -o mod_jserv.so *.c.; Here is the compiler output

[jserv]:DEVapxs -c -o mod_jserv.so *.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c autochange.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_ajpv11.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_ajpv12.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_balance.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_image.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_mmap.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_protocols.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_status.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_utils.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_watchdog.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_wrapper.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_wrapper_unix.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c jserv_wrapper_win.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/usr/lo
cal/apache/include  -c mod_jserv.c
  -o mod_jserv.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o
jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o
jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o jserv_ajpv12.o
jserv_ajpv11.o autochange.o
apxs:Break: Command failed with rc=16711680

I am running apxs from $JAKARTA_HOME/jakarta-tomcat/src/native/apache/jserv
as root.

Any help would be appreciated

Thanks

Manos


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




RE: best way to handle Servlets+JSPs+multiple Frames?

2001-02-21 Thread Jones, Stephen

Sebastian:

I do not understand any added significance with regards to session
information. All JSP pages and servlets have access to the session Object
provided by Tomcat. The session is shared across any number of different
requests coming in from the client...

What I mean is that any page can retrieve the object your servlet has
modified, the same way the servlet got it:
object = (cast) session.getAttribute(..);

Really, though-- it seems like your object should be a session-scope bean.
Then the "view" JSP pages can retrieve the object via useBean tags.

Steve

 -Original Message-
 From: Sebastian Schulz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 21, 2001 12:10 PM
 To: [EMAIL PROTECTED]
 Subject: Re: best way to handle Servlets+JSPs+multiple Frames?
 
 
 hi Stephen,
 
 thank you for your solution.
 
 But if i'm not mistaken your example needs
 no session (therefor the redirection, right?)
 
 Then it's no problem to have one frame
 making the Request and the Servlet after
 doing its job redirects to the URL with the
 Frameset.
 
 But i need session-support for the whole Lifetime
 of the WebApplication, so thats my abstract use-case:
 
 request (for instance form-data) from one frame, servlet
 validates and changes some Java-Objects, putting them
 back to session, then _dispatching_ , better _forwarding_
 the request to the frameset.
 because the frameset consists of several "JSP-Frames", whitch all
 needs access to the session-object, i can not dispatch to the
 frameset, instead i have to dispatch to that frame, which has made the
 request (with help from a JavaScript-Function).
 
 Am I wrong?
 
 here some code-snippets:
 
 frame with form, action as a redirection to a JavaScript-Function:
 form method="post" ... 
 action="javascript:dispatchFrames('Servlet-Path')"
 
 
 sript language = ...
 function dispatchFrames(servletpath){
 /* reading form-parameters etc.
 then dispatching for that frames who need access to modified
 session-object:
 */
 parameterlist=.
 
 parent.frames[0].location.href=servletpath+"?"+parameterlist;
 parent.frames[1].location ...same
 ... and so on
 
 Servlet:
 /* doGet() + doPost(): */
 ...public void doIt(...) ...
 /* get my Object from Session: */
 object = (cast)session.getSessionAttribute(..);
 /* changing the object acording to request-parameters */
 /* no explicit store back, because call by reference */
 /* dispatch to that file(jsp), the requesting frame should 
 display now: */
 RequestDispatcher rd = getServletContext().getRequestDispatcher(url);
 try{
 ...
 ...
 res.setHeader(...
 rd.forward(req,res);
 
 
 this is my solution, witch work also with session-suport for frames,
 but i'm not very happy with it.
 
 bAs T.

--SNIP--

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




Disbling -auto files generation

2001-02-21 Thread Ludovic Maitre

Hello all,

Is there an option to prevent the generation of -auto files in /conf
(e.g. mod_jk.conf-auto,...) without modifying the code of Tomcat ? 

This files aren't needed on a production server.

Thanks per advance for your answers,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

PS : If somebody want information for dealing with URL rewriting between
Tomcat and Apache i have found some tricks who could help you, mail me
if you are
interested.
(and without making external redirects)

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




Re: problem upgrading to tomcat4.0 from tomcat3.2

2001-02-21 Thread Craig R. McClanahan

eddie tsai wrote:

 hi,

 i am upgrading from tomcat3.2 to tomcat4.0. the same servlets that
 worked with tomcat3.2 don't work with tomcat4.0 anymore. specifically,
 it tells me that my servlets aren't servlets. the root cause was that it
 had problem while casting. my servlet extends GenericServlet. my
 servlets are located in a different directory (not in the classes
 directory), would that cause the problem? it looks like it could find
 the servlet but could not accept it as a servlet.

 did anyone encounter that problem when upgrading? how did you solve it?


Which build of Tomcat 4.0 are you trying this with.  There were problems similar to 
this
prior to 4.0-beta-1 but they have been fixed in recent nightly builds.


 thanks,

 eddie


Craig McClanahan



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




cpu load 100% on windows 2000 using iis

2001-02-21 Thread Rui M . Silva Seabra

Hello,

 Please, before reading this, bare in mind that unfourtunately I am forced to use an 
IIS and windows 2000, because of a client's demands, so changing to the desirable 
*nix+apache+tomcat is not an option.

 Apparently everything is okay.
 Until the moment when you either reach the isapi_redirect.dll directly (because you 
know the url and there's no point in defending security by obscurity) or call a 
servlet.
 By the time either of this events happen, the tomcat java process jumps to 100% cpu 
usage, until an indeterminate time, and provides no results.

 So, what could be happening? Here go some technical details on the machine:

  * windows 2000 (yuk)
- no namesolver, all name must be solved by usage of the hosts file
  * IIS (default with win2k - yuk yuk)
  * tomcat 3.2.1
  * jdk 1.3.0
 

If anyone has a sensible opinion on this matter, please, share your thoughts with me 
on the list, since this could be a future trouble shooter.

Hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

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




problem upgrading to tomcat4.0 from tomcat3.2

2001-02-21 Thread eddie tsai

hi,

i am upgrading from tomcat3.2 to tomcat4.0. the same servlets that
worked with tomcat3.2 don't work with tomcat4.0 anymore. specifically,
it tells me that my servlets aren't servlets. the root cause was that it
had problem while casting. my servlet extends GenericServlet. my
servlets are located in a different directory (not in the classes
directory), would that cause the problem? it looks like it could find
the servlet but could not accept it as a servlet.

did anyone encounter that problem when upgrading? how did you solve it?

thanks,

eddie
--

- Root Cause -
java.lang.ClassCastException: com.nn.rn.rs.TestServlet
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:740)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:496)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:386)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:251)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2038)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at
org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:811)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:890)
at java.lang.Thread.run(Thread.java:484)



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




RE: cpu load 100% on windows 2000 using iis

2001-02-21 Thread Craig O'Brien

Just so you know.  This is not a Windows only issue and can appear on most
OSs. (Solarus etc.)

Craig

-Original Message-
From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 2:35 PM
To: [EMAIL PROTECTED]
Subject: cpu load 100% on windows 2000 using iis


Hello,

 Please, before reading this, bare in mind that unfourtunately I am forced
to use an IIS and windows 2000, because of a client's demands, so changing
to the desirable *nix+apache+tomcat is not an option.

 Apparently everything is okay.
 Until the moment when you either reach the isapi_redirect.dll directly
(because you know the url and there's no point in defending security by
obscurity) or call a servlet.
 By the time either of this events happen, the tomcat java process jumps to
100% cpu usage, until an indeterminate time, and provides no results.

 So, what could be happening? Here go some technical details on the machine:

  * windows 2000 (yuk)
- no namesolver, all name must be solved by usage of the hosts file
  * IIS (default with win2k - yuk yuk)
  * tomcat 3.2.1
  * jdk 1.3.0


If anyone has a sensible opinion on this matter, please, share your thoughts
with me on the list, since this could be a future trouble shooter.

Hugs, rms

--
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

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


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




RE: best way to handle Servlets+JSPs+multiple Frames?

2001-02-21 Thread Jones, Stephen

In our product, we use forms to POST user input data. We usually send the
input to another JSP page, but I don't see why this would not work for a
servlet's doPost(HttpServletRequest, HttpServletResponse) method.

e.g.:
form name="ReqAttMod" id="ReqAttMod" method="POST"
action="UserMod_Ctl.jsp" target="_top"
% /* form stuff here, buttons, textfields, etc */ %
/form

When the servlet has made its controller-decisions, it then performs a
URL-redirect to the new HTML frameset desired (sURL), according to biz
logic, e.g.:

response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
response.setHeader("Location", sURL);

(this is a cookie-safe redirect)

I'm sure there are other ways, as well.
Steve

-Original Message-
From: Sebastian Schulz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 10:07 AM
To: [EMAIL PROTECTED]
Subject: best way to handle Servlets+JSPs+multiple Frames?


hi,

i want to develop a WebApplication
using Servlets+JSPs+JavaBeans.
(MVC)

So far no problems.

But on client-side i need a frame-based solution.
Every Frame itself is a JSP. The following i need to 
get working as smart as possible:

User-action at one Frame causes the Servlet to change
this but also all the other JSP-Frames acording to the
current action.

I know i can do this by including a JavaScript-Function
which produces a request for every Frame to the Servlet.

This sucks because of:
- i need JavaScript
- it is not smart and will lead to bad performance because of multiple, 
  redundant requests
- it is quite dangerous for some (altering) operations, which 
  shold take place only one times!

so i would be very glad, if someone have a more elegant solution!
may be there is a "best way" for this kind of problem...
thanks in advance.

bAs T.

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




help in adding servlets to Tomcat server..

2001-02-21 Thread Siby Khader



i'm new to the Tomcat environment and would like to 
know how to add new servlets to a context? and what do I need to do if I have 
all my servlets packaged into jar files? 

I created a new context and have all the directory 
created under it. and added the servlets to the web.xml

when i'm trying loading the servlets, Tomcat 
throws an error  "cannot load servlet name : MyServlet"

plz help

regards
Siby


Win2k / IIS 5.0

2001-02-21 Thread Adam Anderson

When will Tomcat support Win2k / IIS 5.0 as an out-of-process servlet
container?

Thanks,
Adam

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




Re: best way to handle Servlets+JSPs+multiple Frames?

2001-02-21 Thread Sebastian Schulz

hi Stephen,

thank you for your solution.

But if i'm not mistaken your example needs
no session (therefor the redirection, right?)

Then it's no problem to have one frame
making the Request and the Servlet after
doing its job redirects to the URL with the
Frameset.

But i need session-support for the whole Lifetime
of the WebApplication, so thats my abstract use-case:

request (for instance form-data) from one frame, servlet
validates and changes some Java-Objects, putting them
back to session, then _dispatching_ , better _forwarding_
the request to the frameset.
because the frameset consists of several "JSP-Frames", whitch all
needs access to the session-object, i can not dispatch to the
frameset, instead i have to dispatch to that frame, which has made the
request (with help from a JavaScript-Function).

Am I wrong?

here some code-snippets:

frame with form, action as a redirection to a JavaScript-Function:
form method="post" ... action="javascript:dispatchFrames('Servlet-Path')"


sript language = ...
function dispatchFrames(servletpath){
/* reading form-parameters etc.
then dispatching for that frames who need access to modified
session-object:
*/
parameterlist=.

parent.frames[0].location.href=servletpath+"?"+parameterlist;
parent.frames[1].location ...same
... and so on

Servlet:
/* doGet() + doPost(): */
...public void doIt(...) ...
/* get my Object from Session: */
object = (cast)session.getSessionAttribute(..);
/* changing the object acording to request-parameters */
/* no explicit store back, because call by reference */
/* dispatch to that file(jsp), the requesting frame should display now: */
RequestDispatcher rd = getServletContext().getRequestDispatcher(url);
try{
...
...
res.setHeader(...
rd.forward(req,res);


this is my solution, witch work also with session-suport for frames,
but i'm not very happy with it.

bAs T.

- Original Message -
From: Jones, Stephen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 6:51 PM
Subject: RE: best way to handle Servlets+JSPs+multiple Frames?


 In our product, we use forms to POST user input data. We usually send the
 input to another JSP page, but I don't see why this would not work for a
 servlet's doPost(HttpServletRequest, HttpServletResponse) method.

 e.g.:
 form name="ReqAttMod" id="ReqAttMod" method="POST"
 action="UserMod_Ctl.jsp" target="_top"
 % /* form stuff here, buttons, textfields, etc */ %
 /form

 When the servlet has made its controller-decisions, it then performs a
 URL-redirect to the new HTML frameset desired (sURL), according to biz
 logic, e.g.:

 response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
 response.setHeader("Location", sURL);

 (this is a cookie-safe redirect)

 I'm sure there are other ways, as well.
 Steve




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




Re: Running servlet from /

2001-02-21 Thread Tom Woteki

You need to do 2 things in your web.xml file: name the servlet and map it to
a URL. Something like the following is what you'll have to do:

servlet
servlet-nameyourServletName/servlet
servlet-classyour.servlets.fully.qualified.ClassName/servlet-class
/servlet

servlet-mapping
servlet-nameyourServletName/servlet-name
url-pattern//url-pattern
/servlet-mapping

The first declaration associates a logical name with the actual fully
qualified class name of the servlet.

The second associates the named servlet with a url pattern to which Tomcat
will respond by invoking the servlet. In your case you want the pattern to
be the root.

Now I am reasoning by analogy with what I know works wherein one maps the
servlet to say /foobar/myServlet. I haven't actually tried running a servlet
from /.

Good luck.
-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:[EMAIL PROTECTED]
202-544-2743 (fax)
http://www.woteki.com/wines -- a pure Java, Apache-Tomcat web application
running under MacOSX


 From: Donie Kelly [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Wed, 21 Feb 2001 06:25:36 -0500
 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
 Subject: RE: Running servlet from /
 
 Thanks Tom
 How exactly do I do that. My servlet is located in
 /webapps/ROOT/WEB-INF/classes? At the moment I can access it using
 /servlet/serbletName.
 
 Forgive me, because I'm new to Tomcat but can you show me exactly how to do
 this...
 
 Thanks in advance
 Donie
 
 -Original Message-
 From: Tom Woteki [mailto:[EMAIL PROTECTED]]
 Sent:21 February 2001 01:14
 To:tomcat user help; Donie Kelly
 Subject:Re: Running servlet from /
 
 Map the servlet to an appropriate URL in the web.xml file or make the home
 page into a jsp file.
 
 From: Donie Kelly [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Tue, 20 Feb 2001 15:10:17 -0500
 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
 Subject: Running servlet from /
 
 Hi 
 
 Hi all
 
 I want a servlet to run when I use the URL http://wilson/ http://wilson/
 
 i.e., no servlet specified. How can this be easily achieved?
 
 Donie
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


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




Re: R: Problem with a new version of JSP pages

2001-02-21 Thread Shahed Ali

I have had exactly the same problem with 
tomcat 3.2.1 on Solaris / Apache / mod_jk and 
jdk 1.3

I tried deleting the work dir, clearing cache etc etc etc
No luck. 

When I restarted tomcat + apache, the problem
disappeared.

I know that someone else also faced this problem.

This is quite a  "freaky" thing, because I have not been able
to reproduce it.



Regards
Shahed.


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




RE: failure notice

2001-02-21 Thread Craig O'Brien

Take heart Larry.  It will work.  Check your registry settings. Make sure
that you have execute access to the directory that the isapi_redirect is
located.  Go over the "IIS how to" very thoroughly.  The instructions are
good. I use the pre-compiled isapi on Win 2000 with IIS, tomcat 3.2, JDK 1.3
with no problems.

Good luck,
Craig

-Original Message-
From: Larry Hand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:01 PM
To: '[EMAIL PROTECTED]'
Subject: FW: failure notice


I am using Windows 2000 with IIS.  The isapi_redirect.dll doesn't seem to
install correctly.  I created a virtual directory called jakarta and then at
the Default Web directory I entered it into the Filter tab and the arrow
stays red and pointing down (not the green up arrow).  What did I do wrong?

Larry Hand
Rogue Wave Software

Voice:  303.545.3196
Cell:   303.619.9236
FAX:303.473.9137
Main Number:303.545.3295
Main 800 Number:800.487.3217


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


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




Where is the source code for mod_jserv?

2001-02-21 Thread Stuart Morse

Hi,

I have Tomcat installed and running on an Intel FreeBSD 4.2 system, but I 
can't make it interface with apache because I'm missing the shared library:

mod_jserv.so

The Tomcat user guide says I should obtain the source code and compile
it on my systems using apxs. I went to the link at which the guide said I 
could find the source, downloaded the source for Tomcat, as instructed by
the guide, but it didn't contain the source for mod_jserv. Does anybody
know where I can find this?

Please reply to me directly, as I am not a member of this list.

Regards,

Stuart
-- 
Stuart Morse, BCD Technical Support


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




Re: [tc3.3] Shutting down doesn't seem to honor the config file

2001-02-21 Thread Endre Stølsvik

On Tue, 20 Feb 2001, Endre Stlsvik wrote:

| How do I shut down my Tomcat 3.3 when I have set the ajp12 port to
| something else thatn 8007? I supply -f configfile, but it doesn't seem to
| do anything about it.

Ok, found it!

I think there might be some inconsistency when it comes to the
"tomcat.home".

The org.apache.tomcat.startup.StopTomcat looks for a file called
"ajp12.id" in the tomcat home dir. This is where it stores the portnumber,
and apparently also "the secret" and the address that tomcat is supposed
to have bound to. It expects this to be the tomcat "root", the proper
tomcat home. But org.apache.tomcat.startup.Main seems to expect the
tomcat.home to be set to the install dir. If not, the URLClassLoader won't
find Tomcat:
 java.lang.ClassNotFoundException: org.apache.tomcat.startup.Tomcat
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

So it works when I supply my tomcat install dir as the -Dtomcat.home for
the startup.Main, and the dir where ajp12.id ends up as the -Dtomcat.home
for the StopTomcat.

..or am I doing something else wrong?

(I wondering though why one couldn't read the config file again, which
seems a bit more robust..)

-- 
Mvh,
Endre


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




RE: Slow upload speeds

2001-02-21 Thread Dmitry Rogatkin

I have feeling that it's a browser issue. Can somebody who knows browser upload 
mechanism confirm that?

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Tal Dayan [EMAIL PROTECTED]
Sent:Wed, 21 Feb 2001 19:05:06 -0800
To:  [EMAIL PROTECTED]
Subject: RE: Slow upload speeds



We have the same low performance problem with Jason's library. The strange
things is that when the browser and server are on the same machine (using
127.0.0.1) the CPU usage is still low while transferring large files. Our
experience with other client/server applications is that the CPU usage in
such cases gets to 100% (since there is no real I/O to the NIC, all is
handled by the CPU).

I am not sure where the 'idle' time is spent.

Tal

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 04, 2001 3:13 PM
 To: [EMAIL PROTECTED]
 Subject: Slow upload speeds


 Hi everyone.

 I am using Tomcat-3.2.1 on W2K, Solaris with or without apache. Since I
 need to provide users with functionality to upload fairly big files ( 10
 MB), speed is essential.

 My uploader is based on Jason Hunter code. Maximum upload speed I could
 achieve is between 40 and 60 Kbytes/s (even when client and server are on
 the same machine). Bottleneck (quiet predictable) seems to be in
 ServletInputStream misc. "read()" methods. Speed does not seem to be
 dependant on a platform or web server.

 Anyone was able to achieve better speeds (at least around 100 kBytes/s)?
 Any ideas ?

 Thanks

 Andrus


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




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




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




RE: Compiling mod_jk on HPUX11.00

2001-02-21 Thread Mike Braden

I was able to get mod_jk built on an hpux 11 l-class using gcc.

I wasn't able to get the dl stuff working (dlopen, dlclose, etc.).

I ended up changing a few things and removing support for JNI, which was the
only part that uses the dl stuff.  For my install, I won't use jni,
I'm using apache 1.3 and it isn't recommended anyway.

I was trying to create a build script, but with all of the changes it
doesn't look like something easy to automate.  I can clean up my notes
and send you a copy if you can get by without jni.

Mike.
--
Mike Braden
[EMAIL PROTECTED]


-Original Message-
From: John P. Dodge [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 11:28 AM
To: Tomcat Users Mail Liat
Subject: Compiling mod_jk on HPUX11.00


Has anyone been successfull in getting mod_jk to compile and run on
HPUX11.00. I have searched the list and found the response from "Matchim,
Brian - BOP/BDP" [EMAIL PROTECTED]. I am having problems getting
past the "dlopen - unresolved symbol" problem that Brian talks about. I am
unable to use the GCC compiler and am using the HP C compiler. Brian
mentions that "dlopen" is available for 64-bit compilers but the source
code must me modified to use the equivalent "shl_open" function for 32-bit
compilers. Does anyone have source code with this fix applied?


Thanks



"Mon aeroglisseur est plein d'anguilles"

John P. Dodge
Boeing Shared Services Group



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

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




RE: cpu load 100% on windows 2000 using iis

2001-02-21 Thread Marc Saegesser

Is there a ROOT web app?  There is a known bug in 3.2.1 that causes Tomcat
to spin in a tight loop if it gets a URL that doesn't map into a servlet
*and* the ROOT webapp has been removed.  This has been fixed and will appear
in Tomcat 3.2.2.

Also, be careful using JDK 1.3 if your going to run Tomcat as an NT service.
There is a known bug in the JDK that will cause the service to stop when a
user logs out.  See the archives for this list for lots of discussion on
this topic.

 -Original Message-
 From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 21, 2001 4:35 PM
 To: [EMAIL PROTECTED]
 Subject: cpu load 100% on windows 2000 using iis


 Hello,

  Please, before reading this, bare in mind that unfourtunately I
 am forced to use an IIS and windows 2000, because of a client's
 demands, so changing to the desirable *nix+apache+tomcat is not an option.

  Apparently everything is okay.
  Until the moment when you either reach the isapi_redirect.dll
 directly (because you know the url and there's no point in
 defending security by obscurity) or call a servlet.
  By the time either of this events happen, the tomcat java
 process jumps to 100% cpu usage, until an indeterminate time, and
 provides no results.

  So, what could be happening? Here go some technical details on
 the machine:

   * windows 2000 (yuk)
 - no namesolver, all name must be solved by usage of the hosts file
   * IIS (default with win2k - yuk yuk)
   * tomcat 3.2.1
   * jdk 1.3.0


 If anyone has a sensible opinion on this matter, please, share
 your thoughts with me on the list, since this could be a future
 trouble shooter.

 Hugs, rms

 --
 + No matter how much you do, you never do enough -- unknown
 + Whatever you do will be insignificant,
 | but it is very important that you do it -- Ghandi
 + So let's do it...?

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



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




Re: R: Problem with a new version of JSP pages

2001-02-21 Thread Shahed Ali

I also did use %@ include %,

but I touched the main (including) jsp page and it recompiled.

But the recompiled java file in the work dir 
(after deleting all stuff in work) was still the 
old java source 

Its a wierd problem !! 

Regards
Shahed.


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




Re: TC3.2.1 - response commit on included JSPs

2001-02-21 Thread Mel Martinez


--- Incze Lajos [EMAIL PROTECTED] wrote:
 Maybe it's not correct in general but the JSP 1.1
 syntax
 contains the flush="true" attribute - obligatory in
 case
 of jsp:include. So, it's inconvenient but tomcat3 is
 an
 jsp 1.1 implementation. Am I missing something?
incze

The JSP 1.1 spec says that the current response buffer
should be flushed _prior_ to the inclusion.  In other
words, the flush="true" requirement is talking about
what should happen at level of the calling page.  In
normal java servlet code this is saying :

if(buffered  flush==true){ //JSP1.1 flush always
true
  out.flush();
}
requestDispatcher.include(...);
//continue...

All this is saying is that, at least for JSP 1.1, we
are required to write everything we've put in the
buffer now before we add more to the buffer from the
included resource.  This requirement is supposed to
happen on the CALLING page, not in the INCLUDED page. 
I will note that TC3.2.1 does not actually do this
correctly and if it tried, it would break because of
the same root cause to the problem I am talking about
here.

The problem I am talking about is independent of the
_calling_ page.  

The problem is caused by the nature of the JSP servlet
that is generated by TC3.2.1.  It cannot properly be
included (dynamically) from either a JSP *OR* a
servlet because when it exits, it always sets the
isCommitted() flag of the response.  It should not do
that if the page is processing a request as an
'include' action because only the parent, calling
servlet or jsp should Commit the response.

As explained, the reason it always sets the
isCommitted() state is due to the sequence:

1) Every JSP page generated by TC3.2.1 has a finally{}
block that invokes out.flush() and...
2) For some reason the TC 3.2.1 JspWriterImpl
implementation of out.flush() commits the response
even BEFORE it calls response.flushBuffer()!
3) Also, out.flush() ALWAYS calls
response.flushBuffer() even if processing an included
request.

IMHO out.flush() should not commit the response.  Only
response.flushBuffer() should commit the response. 
And response.flushBuffer() should not be called from
an inside an 'include' request.

What probably SHOULD happen is the following:

1) Response.flushBuffer() alone should be used to set
the commit state.  But it should NEVER be called from
within an include action which can be checked with:

Obj incl = request.getAttribute(
 "javax.servlet.include.servlet_path");
if(incl==null){
  response.flushBuffer();
}

2) It is probably fine for out.flush() to be called at
the end of every JSP page.  Optionally, a check like
in
(1) could be used to call response.flushBuffer().

3) MOST IMPORTANTLY - JspWriterImpl needs to be
rewritten so as to flush the output stream, but NOT to
commit the response and NOT to call
response.flushBuffer()!

I'd say that I consider this a serious bug because it
makes it impossible for a JSP page to be included in
any other JSP or even a Java Servlet except as the
last committment to the response - which means that it
is essentially only a 'forward' action.

Also, the fact that out.flush() (incorrectly) commits
the response actually means that technically TC3.2.1
can not be made compliant with the very spec you cite
because if it DID enforce the flush="true" attribute
and then tried to include a resource (or do ANY output
or forward or redirect), an error would occur becuase
(as I've stated) the response would already be
committed as soon as out.flush() got called.

"Fortunately", tc3.2.1 is currently broken in this
regard and is NOT actually flushing the output before
the include.  If the above problem in out.flush() is
fixed, then this should be fixed as well.

This bug has thrown a HUGE wrench into my current
project and I'm not sure how I'm going to address it
in the short term. 

Hasn't someone noticed this before?  Is this problem
fixed in either of the later versions (3.3 or 4.0)?

If so, I may need to upgrade and I really hate having
to upgrade to non-release versions of software since
that entails a whole lot of risk/justification I have
to explain to my clients.

Sigh... if it ain't one thing, it's another...

Mel


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




RE: IE form POST generates 404 error

2001-02-21 Thread Randy Layman


I have noticed a similar problem when accessing the server machine
by name and the name is not known to the first DNS server in the list.  My
configuration - host1's ip address is 10.0.0.4.  The first DNS listed
doesn't know about this, but the second DNS server knows the address.
nslookup from the command line returns the correct value.  In my case its
almost like IE makes the first request and then figures the rest of the
world doesn't know either, without trying.

I haen't found any solution other than either editing my DNS or
changing the order of the DNS servers.

Randy


-Original Message-
From: Roger Campbell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 5:16 PM
To: [EMAIL PROTECTED]
Subject: IE form POST generates 404 error


We have a servlet application running on Tomcat 3.1 with IIS 5.0.  When
forms are posted from the browser, IE gives a 404 error occasionally.  You
can hit the back button and submit again, and it will normally work the
second or third try.  This happens with both IE 5.0 and IE 5.5 but Netscape
4.7 works fine.  It appears to be more of an IE problem than Tomcat, because
IIS and Tomcat never get the bad request (according to the logs).

I suspect some kind of caching problem and have adjusted the Expiration
times but this didn't help.  I would appreciate any other suggestions.
Thanks,

Roger Campbell


CustomerCentrix, LLC.
www.customercentrix.com

[EMAIL PROTECTED]


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

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




Re: Windows 98

2001-02-21 Thread ? ??

Hi,

If you try to install Tomcat as out-of-process servlet container working
with PWD4.0 on Windows 98.
There are several things you should be careful.

1. Set Filtes DLLs as a string value for Parameters in Registery.
2. Increace the Dos prompt memory ro 4096(maximum)
3. Tomact 3.2.1 is case sensitive

By the way, I have a problem to ask:

I added a context in the server.xml file as follow

Context
   path="/Audio/Upload"
   docBase="/DGS/audio/uplod"
  debug="0"
  reloadable="true" 
/Context

In my E drive, I have follow directory
E:\DGS\audio\upload.

When I try to donwload a audio file from E:\DGS\audio\upload directory.
It shows page not found.  However It works under Tomcat 3.1 as the
directory.  Could any one tell why? Help me please.


Daming






- Original Message -
From: "bennie" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 12:25 PM
Subject: Re: Windows 98


 You can do that with "command /E:2816" in a dos window!

 - Original Message -
 From: Randy Layman [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, February 21, 2001 8:21 PM
 Subject: RE: Windows 98


 
  While not ideal, it is possible.  You are probably getting "Out of
  Environment Space" errors.  From your Dos prompt window, you need to
  increase the memory.
 
  Randy
 
 
  -Original Message-
  From: Mark Richmond [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 21, 2001 2:39 PM
  To: [EMAIL PROTECTED]
  Subject: Windows 98
 
 
  Quick question. Is it possible to run Tomcat on Windows 98 or are my
  efforts in vain?
  Thanks
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 


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



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




RE: TC3.2.1 - response commit on included JSPs

2001-02-21 Thread Mel Martinez


--- Larry Isaacs [EMAIL PROTECTED] wrote:
 to the spec.  Your discussion below about the
 JspWriterImpl
 seems to be something different.
 
 So rather than quess, let me ask exactly what are
 you
 referring to when you say, "dynamic include of a JSP
 page"?
 
 Is this jsp:include..., PageContext.include(),
 RequestDispatcher.include(), or am I off track here?
 

Yes, by 'dynamic' include (the above) I was making the
distinction from a 'static' include, which would be
done with the syntax %@ include file="blah.txt" %.

The problem with the TC3.2.1 behavior is that after
performing a dynamic include (using any of the above
three methods), of a _JSP_ resource (served by
TC3.2.1), the response will be committed.  Note that
if you do a dynamic include of some other resource
(such as a servlet) the response would not necessarily
be committed (and generally shouldn't be unless a
forward or redirect occurs).

Mel

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




Tomcat service using JDBC-ODBC bridge

2001-02-21 Thread Peter Nguyen

I am running Tomcat on Windows 2000 with jdk1.2.2. I have servlets accessing an
MS Access and Oracle database. The servlets work fine with Sun's JDBC-ODBC
bridge against MS Acces and Oracle's thin driver against the Oracle database.

When I set Tomcat up as a NT service Oracle worked fine after I put the Oracle
drivers on the classpath in wrapper.properties.

However, I started to have problems when I tried to get the MS Access
connection. The driver registered fine but attempting to get a connection
resulted in:

[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified

Note that the exact same configuration worked fine when running Tomcat as a
normal app and not as a service. Does Sun's JDBC-ODBC bridge rely on something
else that is not accessible when run as a service? Or did I miss something else?

Cheers,
Peter


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




extending servlets

2001-02-21 Thread James Holmes

Hey everyone.

I have setup tomcat 4.0b1 and have it working fine for a very simple
servlet.  Just prints a string to the web browser.  As soon as I try and
introduce a parent class (that will handle some initialization) for all my
servlets, tomcat blows up.

I get this error: "java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServlet" along with a stack trace.  I don't
understand at all.  Does tomcat expect the servlets to extend "HttpServlet"
directly instead of being a subclass of a class that extends "HttpServlet"?

In the code below case "A" works and "B" does not.  Ideas?  Suggestions?

Thanks,

-james



case A:
--
public TestServlet extends HttpServlet
{
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();

out.println("testing");
}
}
--



case B:
--
public SpecialHttpServlet extends HttpServlet
{
public void init()
throws ServletException
{
// do some initialization stuff
}
}

public TestServlet extends SpecialHttpServlet
{
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();

out.println("testing");
}
}
--


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




Re: Cannot load d:/apache/modules/ApacheModuleJServ.dll into server:

2001-02-21 Thread RameshBabu R Muthuvel

Hi

Follow this simple step
1) Install Apache
2) Install Tomcat
3) Download mod_jserv (file name for windows version is 
ApacheModuleJServ.dll from jakarta website).
4) copy it into the Apache modules directory(say c:\program files\Apache 
Group\apache\modules)

5) eidt your httpd.conf in (say c:\program files\Apache Group|Apache\conf) 
directory and add the following line to the end

Include "c:\Program Files\Apache 
Group\jakarta-tomcat\conf\tomcat-apache.conf"

(USE CORRECT PATH to the tomcat-apache.conf FILE IN UR MACHINE ABOVE)


Hope this helps

cheers


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




FW: failure notice

2001-02-21 Thread Larry Hand

I am using Windows 2000 with IIS.  The isapi_redirect.dll doesn't seem to
install correctly.  I created a virtual directory called jakarta and then at
the Default Web directory I entered it into the Filter tab and the arrow
stays red and pointing down (not the green up arrow).  What did I do wrong?

Larry Hand
Rogue Wave Software

Voice:  303.545.3196
Cell:   303.619.9236
FAX:303.473.9137
Main Number:303.545.3295
Main 800 Number:800.487.3217


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




RE: best way to handle Servlets+JSPs+multiple Frames?

2001-02-21 Thread Brett Knights

You can target any frame for the result to go to in your form tag

e.g.
form target="frameName"..

then for any other frames that need refreshing have a javascript function that 
refreshes them when the form's target frame is done
loading.

e.g. in the html returned to "frameName"
body onLoad="refreshOthers('myFrameName');"...

where refreshOthers is a function in the parent window that knows which frames should 
be updated when a new frame is returned.
e.g. frameB.location="myservlet?infoFor=frameB"

All the refreshes should just be able to use sessions normally since the original post 
will have updated the session and returned
when the other pages get refreshed.

Does this help?

 -Original Message-
 From: Sebastian Schulz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 21, 2001 11:10 AM
 To: [EMAIL PROTECTED]
 Subject: Re: best way to handle Servlets+JSPs+multiple Frames?


 hi Stephen,

 thank you for your solution.

 But if i'm not mistaken your example needs
 no session (therefor the redirection, right?)

 Then it's no problem to have one frame
 making the Request and the Servlet after
 doing its job redirects to the URL with the
 Frameset.

 But i need session-support for the whole Lifetime
 of the WebApplication, so thats my abstract use-case:

 request (for instance form-data) from one frame, servlet
 validates and changes some Java-Objects, putting them
 back to session, then _dispatching_ , better _forwarding_
 the request to the frameset.
 because the frameset consists of several "JSP-Frames", whitch all
 needs access to the session-object, i can not dispatch to the
 frameset, instead i have to dispatch to that frame, which has made the
 request (with help from a JavaScript-Function).

 Am I wrong?

 here some code-snippets:

 frame with form, action as a redirection to a JavaScript-Function:
 form method="post" ...
 action="javascript:dispatchFrames('Servlet-Path')"
 
 
 sript language = ...
 function dispatchFrames(servletpath){
 /* reading form-parameters etc.
 then dispatching for that frames who need access to modified
 session-object:
 */
 parameterlist=.
 
 parent.frames[0].location.href=servletpath+"?"+parameterlist;
 parent.frames[1].location ...same
 ... and so on

 Servlet:
 /* doGet() + doPost(): */
 ...public void doIt(...) ...
 /* get my Object from Session: */
 object = (cast)session.getSessionAttribute(..);
 /* changing the object acording to request-parameters */
 /* no explicit store back, because call by reference */
 /* dispatch to that file(jsp), the requesting frame should
 display now: */
 RequestDispatcher rd = getServletContext().getRequestDispatcher(url);
 try{
 ...
 ...
 res.setHeader(...
 rd.forward(req,res);
 

 this is my solution, witch work also with session-suport for frames,
 but i'm not very happy with it.

 bAs T.

 - Original Message -
 From: Jones, Stephen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, February 21, 2001 6:51 PM
 Subject: RE: best way to handle Servlets+JSPs+multiple Frames?


  In our product, we use forms to POST user input data. We
 usually send the
  input to another JSP page, but I don't see why this would
 not work for a
  servlet's doPost(HttpServletRequest, HttpServletResponse) method.
 
  e.g.:
  form name="ReqAttMod" id="ReqAttMod" method="POST"
  action="UserMod_Ctl.jsp" target="_top"
  % /* form stuff here, buttons, textfields, etc */ %
  /form
 
  When the servlet has made its controller-decisions, it then
 performs a
  URL-redirect to the new HTML frameset desired (sURL),
 according to biz
  logic, e.g.:
 
  response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
  response.setHeader("Location", sURL);
 
  (this is a cookie-safe redirect)
 
  I'm sure there are other ways, as well.
  Steve
 
  -Original Message-
  From: Sebastian Schulz
[mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 21, 2001 10:07 AM
 To: [EMAIL PROTECTED]
 Subject: best way to handle Servlets+JSPs+multiple Frames?


 hi,

 i want to develop a WebApplication
 using Servlets+JSPs+JavaBeans.
 (MVC)

 So far no problems.

 But on client-side i need a frame-based solution.
 Every Frame itself is a JSP. The following i need to
 get working as smart as possible:

 User-action at one Frame causes the Servlet to change
 this but also all the other JSP-Frames acording to the
 current action.

 I know i can do this by including a JavaScript-Function
 which produces a request for every Frame to the Servlet.

 This sucks because of:
 - i need JavaScript
 - it is not smart and will lead to bad performance because of multiple,
   redundant requests
 - it is quite dangerous for some (altering) operations, which
   shold take place only one times!

 so i would be very glad, if someone have a more elegant solution!
 may be there is a "best way" for this kind of problem...
 thanks in advance.

 bAs T.

 -
 To unsubscribe, e-mail: 

RE: How do I get AJP13 working

2001-02-21 Thread McDermid, Ian

I guess the easiest way is to modify the "auto" file to use Ajp13 and copy
it to static file, and do this every time you add/change a context.

Ian

-Original Message-
From: Rob Tanner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 8:57 AM
To: [EMAIL PROTECTED]
Subject: Re: How do I get AJP13 working


That's one of the most popular questions on this list (it ought to be a 
FAQ).  The answer is the latter -- you need to use a static file.  And 
besides, you only need modify that status file when you create a new 
application, not just when you add a new servlet or *.jsp page.

-- Rob

--On Thursday, February 22, 2001 08:26:23 AM +1100 "McDermid, Ian" 
[EMAIL PROTECTED] wrote:

 Hi,

 I have Apache 1.3.17 with SSL and Tomcat working. My question
 relvolves around the mod_jk.conf-auto file. No matter what I change
 the JKMount statements always specify Ajp12 as the protocol to be
 used.

 Is there a way I can force ajp13 use in the auto file or will I have
 to change the Include statement in httpd.conf to include a static
 file.


 Ian



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





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]

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

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




Re: extending servlets

2001-02-21 Thread Craig R. McClanahan

James Holmes wrote:

 Hey everyone.

 I have setup tomcat 4.0b1 and have it working fine for a very simple
 servlet.  Just prints a string to the web browser.  As soon as I try and
 introduce a parent class (that will handle some initialization) for all my
 servlets, tomcat blows up.

 I get this error: "java.lang.NoClassDefFoundError:
 javax/servlet/http/HttpServlet" along with a stack trace.  I don't
 understand at all.  Does tomcat expect the servlets to extend "HttpServlet"
 directly instead of being a subclass of a class that extends "HttpServlet"?

 In the code below case "A" works and "B" does not.  Ideas?  Suggestions?


Several things to check:

Case "B" would fail if the "SpecialHttpServlet" class were not available to your web
application (i.e. it wasn't in WEB-INF/classes or WEB-INF/lib).  Are you sure that it,
as well as the TestServlet class, is available?  Have you got correct imports for
javax.servlet.http.HttpServlet?  Do you have an old copy of servlet.jar or jsdk.jar on
your classpath, or in $JAVA_HOME/jre/lib/ext?


 Thanks,

 -james


Craig McClanahan



 case A:
 --
 public TestServlet extends HttpServlet
 {
 public void doGet(HttpServletRequest request, HttpServletResponse response)
 throws IOException, ServletException
 {
 response.setContentType("text/html");
 PrintWriter out = response.getWriter();

 out.println("testing");
 }
 }
 --

 case B:
 --
 public SpecialHttpServlet extends HttpServlet
 {
 public void init()
 throws ServletException
 {
 // do some initialization stuff
 }
 }

 public TestServlet extends SpecialHttpServlet
 {
 public void doGet(HttpServletRequest request, HttpServletResponse response)
 throws IOException, ServletException
 {
 response.setContentType("text/html");
 PrintWriter out = response.getWriter();

 out.println("testing");
 }
 }
 --

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


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




RE: Compiling mod_jk on HPUX11.00

2001-02-21 Thread John P. Dodge

Great, I'll take any help you can provide to ge this working. I am using
Apache1.3 also and I don't care about JNI.





Thanks



On Wed, 21 Feb 2001, Mike Braden wrote:

 I was able to get mod_jk built on an hpux 11 l-class using gcc.
 
 I wasn't able to get the dl stuff working (dlopen, dlclose, etc.).
 
 I ended up changing a few things and removing support for JNI, which was the
 only part that uses the dl stuff.  For my install, I won't use jni,
 I'm using apache 1.3 and it isn't recommended anyway.
 
 I was trying to create a build script, but with all of the changes it
 doesn't look like something easy to automate.  I can clean up my notes
 and send you a copy if you can get by without jni.
 
 Mike.
 --
 Mike Braden
 [EMAIL PROTECTED]
 
 


"Mon aeroglisseur est plein d'anguilles"

John P. Dodge
Boeing Shared Services Group



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




  1   2   >