Re: Problem with ResourceBumdles using tomcat4.0.1

2001-11-16 Thread Jim Cheesman

At 08:16 PM 15/11/01, you wrote:
I have a web application which provides support for 4 different languages. I
am using the resource bundle files for this. However tomcat4.0 is unable to
load these files and reports a  java.util.MissingResourceException: Can't
find resource for base name
  actionStrings, locale en_US . This problem doesnt occur with tomcat3.2.1 .
I place the property files in web-inf/classes dir.
Any solutions or workarounds.


I found the only way to (routinely) get tomcat to find the resource bundles 
was to stick them in a jar. (And hence in WEB-INF/lib)



Jim


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  Exaggeration is not 
all it's cracked up to be.



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




AW: Doubts on drivers

2001-11-16 Thread Ralph Einfeldt

If you search for type 4 drivers that support your database
you will find drivers that are available for all plattforms
(As type 4 means that they are pure java)

 -Ursprüngliche Nachricht-
 Von: Law Kim Soon [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 16. November 2001 08:58
 An: [EMAIL PROTECTED]
 Betreff: Doubts on drivers
 
 
 First of all,i would like to thank Barney Hamish, Randy 
 Layman and Carl Boudreau for entertaining my mail.Appreaciate 
 it very much.
 
 However,i still haven't clear my doubts.What is the 
 difference between ODBC and those drivers in 
 http://industry.java.sun.com/products/jdbc/drivers
 There are so many of them but they did not mention which 
 platform they can be supported.
 Hope to learn for all of you.
 Thanks.
 
 Regards,
 Andy
 

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




AW: Doubts on drivers

2001-11-16 Thread Ralph Einfeldt

Additional note:

Read http://java.sun.com/products/jdbc/driverdesc.html
to unstand the different types of drivers and their 
relation to ODBC.

 -Ursprüngliche Nachricht-
 Von: Law Kim Soon [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 16. November 2001 08:58
 An: [EMAIL PROTECTED]
 Betreff: Doubts on drivers
 
 
 First of all,i would like to thank Barney Hamish, Randy 
 Layman and Carl Boudreau for entertaining my mail.Appreaciate 
 it very much.
 
 However,i still haven't clear my doubts.What is the 
 difference between ODBC and those drivers in 
 http://industry.java.sun.com/products/jdbc/drivers
 There are so many of them but they did not mention which 
 platform they can be supported.
 Hope to learn for all of you.
 Thanks.
 
 Regards,
 Andy
 

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




Impossible to write the response after processing a JSP with Tomcat 3.2.3

2001-11-16 Thread DARIOL Rodolphe DvSI/SIFAC

Bonjour,

I want to generate a PDF file from a JSP with a servlet doing this :

- call a JSP and redirect the ouput to a HTML file,
- then, transform the HTML to a PDF file via HtmlDoc,
- finally, open then PDF and send it to the client.

The output is redirected to a HTML file whith a tag in the JSP
like this :
JSP : % out =  

The HtmlDoc programm is call as an external process.

I'm getting the ServletOutputStream from the response and write the
PDF stream into it.


This treatment works fine with Tomcat 3.1, BEA WebLogic 5.1 and 4.5,
IBM WebSphere 2.03 and 3.02 (there's another problem whith WebSphere
3.5).


When I try it with Tomcat 3.2.3, the browser complains that the
document contains no data.


After debugging and reading the code, I see that the problem is
comming from the forward method (doForward in reality) of the
RequestDispatcherImpl whitch close the ServletOutputStream and, then,
the servletoutputstream writing has no effect.


As I didn't see in the specs that it's impossible to write on the
ServletOuputStream after calling a JSP, I don't know if it's a bug.

But, anyway, if it's possible, I would like any comments or suggestions
about doing this treatment in a better way.

Thanks in advance.

-- 
Rodolphe Dariol
Quelque temps qu'il fasse en novembre,
commence le feu dans ta chambre.

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




Re: Precompile JSP

2001-11-16 Thread Nikola Milutinovic

  2. Run a startup servlet, which will precompile all JSPs in your
  webapp (request them with URL /path/file.jsp?precompile=true, I think)
 
 As I wrote before this is not possible, because a jsp can first be accessed
 after the container is *completely* up - including all servlet-startups! And
 so the servlet tries to precompile the jsp forever... I learned that the
 hard way :-) So you would need another way to hook your precompiler into the
 container...

(sigh) and I thought it was such a good idea...

Could we have a startup servlet that would wait for a JSP servlet to start-up and then 
call all the pre-compilations? Or just wait for a while? (That sucks as an idea, I 
know)

We definitely need a regular hook for this.

Nix.



Is Tomcat 4.0.1 taglib integration buggy?

2001-11-16 Thread Thomas Rickal, IOP Unternehmensberatung GmbH

Hi again,

i' am trying to upgrade from Tomcat 3.2.3/ Apache 1.3.19 to Tomcat
4.0.1/ Apache 1.3.19 on Linux.

All the urls in the jsps of my application are rewritten by a
UrlTag. The UrlTag Class takes the url between the tags and rewrites
it if necessary.

It works with Tomcat 4.0.1 if the url is placed in the jsp file
statically. It works not if the url is get by using the get-method
of a bean.

In Tomcat 3.2.3 it worked fine in both cases. Maybe this is a Tomcat
4.0.1 bug? Who can help?

Thomas


Example:

### example.jsp ###

A href=myLib:url%= myBean.getURL() %/myLib:urltext/A


### output Tomcat 3.2.3 (right) ###

A href=http://localhost/target.jsp;text/A


### output Tomcat 4.0.1 (wrong) ###

A href=%= myBean.getURL() %text/A


### example.tld ###

tag
  nameurl/name
  tagclassde.iop.webrun.shared.taglib.UrlTag/tagclass
  bodycontenttagdependent/bodycontent
  inforewrite url/info
/tag


### UrlTag-Code ###

import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.io.IOException;

public class UrlTag extends BodyTagSupport
{
  public int doAfterBody() throws JspException
  {
BodyContent bodyContent = getBodyContent();
String baseURL  = bodyContent.getString();
bodyContent.clearBody();
try
{
  HttpServletResponse response = (HttpServletResponse)
pageContext.getResponse();
  String encodedURL = response.encodeURL(baseURL);
  this.getPreviousOut().print(encodedURL);
}
catch(IOException e)
{
  throw new JspTagException(I/O exception  + e.getMessage());
}
return SKIP_BODY;
  }
}



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




RE: Is Tomcat 4.0.1 taglib integration buggy?

2001-11-16 Thread Conrad Winchester

I think its because you havent set 

rtexprvaluetrue/rtexprvalue

which tells JSP that the parameter is specified at run time and not compile
time.

Conrad

-Original Message-
From: Thomas Rickal, IOP Unternehmensberatung GmbH
[mailto:[EMAIL PROTECTED]]
Sent: 16 November 2001 08:38
To: 'Tomcat Users List'
Subject: Is Tomcat 4.0.1 taglib integration buggy?


Hi again,

i' am trying to upgrade from Tomcat 3.2.3/ Apache 1.3.19 to Tomcat
4.0.1/ Apache 1.3.19 on Linux.

All the urls in the jsps of my application are rewritten by a
UrlTag. The UrlTag Class takes the url between the tags and rewrites
it if necessary.

It works with Tomcat 4.0.1 if the url is placed in the jsp file
statically. It works not if the url is get by using the get-method
of a bean.

In Tomcat 3.2.3 it worked fine in both cases. Maybe this is a Tomcat
4.0.1 bug? Who can help?

Thomas


Example:

### example.jsp ###

A href=myLib:url%= myBean.getURL() %/myLib:urltext/A


### output Tomcat 3.2.3 (right) ###

A href=http://localhost/target.jsp;text/A


### output Tomcat 4.0.1 (wrong) ###

A href=%= myBean.getURL() %text/A


### example.tld ###

tag
  nameurl/name
  tagclassde.iop.webrun.shared.taglib.UrlTag/tagclass
  bodycontenttagdependent/bodycontent
  inforewrite url/info
/tag


### UrlTag-Code ###

import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.io.IOException;

public class UrlTag extends BodyTagSupport
{
  public int doAfterBody() throws JspException
  {
BodyContent bodyContent = getBodyContent();
String baseURL  = bodyContent.getString();
bodyContent.clearBody();
try
{
  HttpServletResponse response = (HttpServletResponse)
pageContext.getResponse();
  String encodedURL = response.encodeURL(baseURL);
  this.getPreviousOut().print(encodedURL);
}
catch(IOException e)
{
  throw new JspTagException(I/O exception  + e.getMessage());
}
return SKIP_BODY;
  }
}



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

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




Invalid virtual host name on WebAppDeploy

2001-11-16 Thread Falko Braun

I did the same configurations like mentioned below. But I get:
Invalid virtual host name

for the following line in httpd.conf:
WebAppDeploy examples conn /examples

But I did not configure any Virtual Host.


-Original Message-
From: Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 16. November 2001 04:41
To: 'Tomcat Users List'
Subject: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp for
window NT


I can't make Apache 1.3  Tomcat 4 w/ mod_webApp to work.

This is what I do(follow install guide):

1) copy mod_webapp.so and libapr.dll to directory
apache install dir \modules
2)edit httpd.conf like this

ServerName localhost
LoadModule webapp_module modules/mod_webapp.so

WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples

3) my  tomcat 4 has server.xml like this:

 !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set to
--
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache defaultHost=localhost debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared globally
--
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

4) start tomcat 4 and then apache, I can see apache home on port 80 and
tomcat home on port 8080 like this
http://localhost/
http://localhost:8080
http://localhost:8080/examples

but the following
http://localhost/examples

give me error of page not found


any idea why


any help would be greatly appreciated


John








 -Original Message-
 From: David Smith [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, November 15, 2001 4:04 PM
 To:   Tomcat Users List
 Subject:  Re: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp

 I'm guessing you changed the port for the Connector statement in the
 Tomcat-Apache service of server.xml to 9090?  If so, that's correct.  If
 not,
 try using 8008 instead.

 The second WebAppConnection line isn't needed unless it's connecting to a
 different machine and/or port.  The way your config is below, there should

 only be one with both WebAppDeploy lines referencing it.  This might be
 the
 source of your error.

 Good luck and hope this helps some.

 --David Smith

 On Thursday 15 November 2001 12:09 pm, you wrote:
  FreeBSD, Tomcat 4, Apache 1.3.19
 
 
  Here's my config;
 
  Alias /myapp /usr/local/jakarta-tomcat-4.0/webapps/myapp/
  WebAppConnection tomcat4  warp  localhost:9090
  WebAppDeploy myapp  tomcat4  /myapp
  WebAppConnection conn  warp  localhost:9090
  WebAppDeploy examples  conn  /examples
 
 
  Here's the result from the apache error log;
 
  [Thu Nov 15 10:40:00 2001] [error] Cannot receive handshake WARP packet
  [Thu Nov 15 10:40:00 2001] [error] Cannot read packet
  (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
 configure
  connection tomcat4 [Thu Nov 15 10:40:00 2001] [error] Cannot receive
  handshake WARP packet [Thu Nov 15 10:40:00 2001] [error] Cannot read
 packet
  (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
 configure
  connection tomcat4
 
  Might this be an error with compiling?
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]


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

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


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




servlet information

2001-11-16 Thread clai

Hi,

i'm working with Tomcat and Windows 2000. Is it possible to set up the
server
to do this thing ? :
it should start always the same same servlet when it receive an HTTP
request ( whatever request, so to catch the context of the request into the
servlet ).
Thanks

cristian



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




RE: Precompile JSP

2001-11-16 Thread pero

 (sigh) and I thought it was such a good idea...

me too :)

 Could we have a startup servlet that would wait for a JSP servlet
 to start-up and then call all the pre-compilations? Or just wait
 for a while? (That sucks as an idea, I know)

 We definitely need a regular hook for this.

Servlet-Api 2.3 (TC 4) uses the concept of LifeCycleListeners - that could
have been the deal! But it isn't. :-( The contextInitialized-method is
called before the servlets are loaded (including jsp) and so this approach
doesn't work either...
Could any developer point me (us) to a solution on how to hook a precompiler
into the application (dont want to use jspc)? I doubt that there is a
portable way of doing so, since servlet-on-startup and LifeCycleListener do
not work. But nevertheless I would love to implement that feature.
And some dirty workaround (starting a thread in servlet.init() that waits 10
sec or so) would be too evil. At least for me (-:

help appriciated

pero


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




AW: Is Tomcat 4.0.1 taglib integration buggy?

2001-11-16 Thread Thomas Rickal, IOP Unternehmensberatung GmbH

Hi Conrad,

thanx for answering.

But there is no parameter so i can't set rtexprvalue to true.

I' looked in my documentation again. Maybe bodycontent has to be set
to JSP:

bodycontentJSP/bodycontent

I tried it out but i did not work too.

Thomas



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




Re: Authentication Filter Posting Again

2001-11-16 Thread Pritpal Dhaliwal

I am posting this again because no one responded.  No one here has worked
with filters? Can I get a yes or no about if Tomcat has a Authentication
filter?

Thanks in Advance,

Pritpal Dhaliwal
- Original Message -
From: Pritpal Dhaliwal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 10:13 PM
Subject: Authentication Filter


 Is there an authentication filter that could be used with Servlet Spec
2.3.
 Does tomcat 4 come with one that could be used?

 Thanks in Advance,

 Pritpal Dhaliwal


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




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




Re: Security question

2001-11-16 Thread Pritpal Dhaliwal

You could always use Referrer to see where the request is coming from.  I am
not sure if this would work if you used  a dispatcher.

Pritpal Dhaliwal


- Original Message -
From: Laurent Michenaud [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 7:38 AM
Subject: Security question


 Hi,

 It is possible de verify that a servlet has been called by a specific
 servlet or jsp
 and that it can't be called by another one.


 Michenaud Laurent
 - Adeuza -
 [ Développeur Web - Administrateur Réseau ]


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




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




Re: Is Tomcat 4.0.1 taglib integration buggy?

2001-11-16 Thread David Cassidy

try

return EVAL_BODY_TAG

...

Why not just do

%=  response.encodeURL( /page/you/want/to/go/to.jsp ) %



David




Thomas Rickal, IOP Unternehmensberatung GmbH wrote:



 Hi again,

 i' am trying to upgrade from Tomcat 3.2.3/ Apache 1.3.19 to Tomcat
 4.0.1/ Apache 1.3.19 on Linux.

 All the urls in the jsps of my application are rewritten by a
 UrlTag. The UrlTag Class takes the url between the tags and rewrites
 it if necessary.

 It works with Tomcat 4.0.1 if the url is placed in the jsp file
 statically. It works not if the url is get by using the get-method
 of a bean.

 In Tomcat 3.2.3 it worked fine in both cases. Maybe this is a Tomcat
 4.0.1 bug? Who can help?

 Thomas

 Example:

 ### example.jsp ###

 A href=myLib:url%= myBean.getURL() %/myLib:urltext/A

 ### output Tomcat 3.2.3 (right) ###

 A href=http://localhost/target.jsp;text/A

 ### output Tomcat 4.0.1 (wrong) ###

 A href=%= myBean.getURL() %text/A

 ### example.tld ###

 tag
   nameurl/name
   tagclassde.iop.webrun.shared.taglib.UrlTag/tagclass
   bodycontenttagdependent/bodycontent
   inforewrite url/info
 /tag

 ### UrlTag-Code ###

 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.jsp.tagext.*;
 import javax.servlet.jsp.*;
 import java.io.IOException;

 public class UrlTag extends BodyTagSupport
 {
   public int doAfterBody() throws JspException
   {
 BodyContent bodyContent = getBodyContent();
 String baseURL  = bodyContent.getString();
 bodyContent.clearBody();
 try
 {
   HttpServletResponse response = (HttpServletResponse)
 pageContext.getResponse();
   String encodedURL = response.encodeURL(baseURL);
   this.getPreviousOut().print(encodedURL);
 }
 catch(IOException e)
 {
   throw new JspTagException(I/O exception  + e.getMessage());
 }
 return SKIP_BODY;
   }
 }


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


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




RE: mod_jk

2001-11-16 Thread Arnaud Héritier

Thanks Larry.

effectively I use tomcat 3.2.3 with Apache 1.3.22 and the AJP 1.3 connector on an AIX 
plateform.

I'll try to use the 3.3 release of the mod_jk in my 3.2.3 unless the 3.3 could be used 
in a production environment.

otherwise i can try to use tomcat 4 but I only tested it on NT plateform for the 
moment.

thanks for help

arno



 -Message d'origine-
 De:   Larry Isaacs [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 15 novembre 2001 19:04
 À:'Tomcat Users List'
 Objet:RE: mod_jk
 
 A bug in mod_jk for Tomcat 3.2.x causes this to always print,
 error or not.  Since you are not like to be getting errors,
 it may be ignored.  This is fixed in Tomcat 3.3's version of
 mod_jk.  I believe you can use Tomcat 3.3's mod_jk with
 Tomcat 3.2.x, though I haven't tried it.  Note that the
 reverse, mod_jk from Tomcat 3.2.x with Tomcat 3.3 is known
 *not* to work.
 
 Larry
 
  -Original Message-
  From: Arnaud Héritier [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, November 15, 2001 4:36 AM
  To: Tomcat Users List (Adresse de messagerie)
  Subject: mod_jk
  
  
  although my web application is correctly running I always 
  have this errors in the mod_jk.log :
  
  [jk_uri_worker_map.c (335)]: 
  jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
  [jk_uri_worker_map.c (185)]: In 
  jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
  [jk_uri_worker_map.c (335)]: 
  jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
  [jk_uri_worker_map.c (185)]: In 
  jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
  
  
  Is it normal 
  
  Thanx
  
  arno
  
  
  
  Arnaud HERITIER
  Ingénieur d'études
  SOPRA. Group
  EAI Consulting
  Tel : +33-1-53-33-44-74
  Email : [EMAIL PROTECTED]
  
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: 

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




AW: Is Tomcat 4.0.1 taglib integration buggy?

2001-11-16 Thread Thomas Rickal, IOP Unternehmensberatung GmbH

Hi David,

i tried to return EVAL_BODY_TAG but then tomcat was not able to
serve the page. An infinite amount of kilobytes was produced as
response.

I intensively used taglibs in the project to encapsulate und reuse
view logic for several jsps. It isn't a good idea to place the code
directly in my jsps. I could do it for the url-rewriting but i
should not do it for the other components.

Thomas



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




Problem with Tomcat 3.23, mmJdBC and Mysql

2001-11-16 Thread Frank Oertelt

i m working with macromedia ultradev jsp 1.0, mysql 3.23, mmJDBC and tomcat 3.23. All 
works fine, but when i call the webpages all data-fields of type text crashes. There 
only appears [B@4f2a8511 in every field (the last 8 characters changing).

is there any idea of that behavior.

Frank


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




Re: Invalid virtual host name on WebAppDeploy

2001-11-16 Thread Roman Schlueter

Hello Falko,

'Invalid virtual host name' was also a problem in my configuration.
The solution is to enable and assign 'ServerName' in httpd.conf.

Regards
Roman


Falko Braun wrote:
 
 I did the same configurations like mentioned below. But I get:
 Invalid virtual host name
 
 for the following line in httpd.conf:
 WebAppDeploy examples conn /examples
 
 But I did not configure any Virtual Host.
 
 -Original Message-
 From: Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
 Sent: Freitag, 16. November 2001 04:41
 To: 'Tomcat Users List'
 Subject: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp for
 window NT
 
 I can't make Apache 1.3  Tomcat 4 w/ mod_webApp to work.
 
 This is what I do(follow install guide):
 
 1) copy mod_webapp.so and libapr.dll to directory
 apache install dir \modules
 2)edit httpd.conf like this
 
 ServerName localhost
 LoadModule webapp_module modules/mod_webapp.so
 
 WebAppConnection conn warp localhost:8008
 WebAppDeploy examples conn /examples
 
 3) my  tomcat 4 has server.xml like this:
 
  !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache
 
 Connector className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/
 
 !-- Replace localhost with what your Apache ServerName is set to
 --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=localhost debug=0 appBase=webapps
 
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
 
   !-- Because this Realm is here, an instance will be shared globally
 --
   Realm className=org.apache.catalina.realm.MemoryRealm /
 
 /Engine
 
   /Service
 
 4) start tomcat 4 and then apache, I can see apache home on port 80 and
 tomcat home on port 8080 like this
 http://localhost/
 http://localhost:8080
 http://localhost:8080/examples
 
 but the following
 http://localhost/examples
 
 give me error of page not found
 
 any idea why
 
 any help would be greatly appreciated
 
 John
 
  -Original Message-
  From: David Smith [SMTP:[EMAIL PROTECTED]]
  Sent: Thursday, November 15, 2001 4:04 PM
  To:   Tomcat Users List
  Subject:  Re: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp
 
  I'm guessing you changed the port for the Connector statement in the
  Tomcat-Apache service of server.xml to 9090?  If so, that's correct.  If
  not,
  try using 8008 instead.
 
  The second WebAppConnection line isn't needed unless it's connecting to a
  different machine and/or port.  The way your config is below, there should
 
  only be one with both WebAppDeploy lines referencing it.  This might be
  the
  source of your error.
 
  Good luck and hope this helps some.
 
  --David Smith
 
  On Thursday 15 November 2001 12:09 pm, you wrote:
   FreeBSD, Tomcat 4, Apache 1.3.19
  
  
   Here's my config;
  
   Alias /myapp /usr/local/jakarta-tomcat-4.0/webapps/myapp/
   WebAppConnection tomcat4  warp  localhost:9090
   WebAppDeploy myapp  tomcat4  /myapp
   WebAppConnection conn  warp  localhost:9090
   WebAppDeploy examples  conn  /examples
  
  
   Here's the result from the apache error log;
  
   [Thu Nov 15 10:40:00 2001] [error] Cannot receive handshake WARP packet
   [Thu Nov 15 10:40:00 2001] [error] Cannot read packet
   (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
  configure
   connection tomcat4 [Thu Nov 15 10:40:00 2001] [error] Cannot receive
   handshake WARP packet [Thu Nov 15 10:40:00 2001] [error] Cannot read
  packet
   (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
  configure
   connection tomcat4
  
   Might this be an error with compiling?
  
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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




RE: Invalid virtual host name on WebAppDeploy

2001-11-16 Thread Falko Braun

Hi Roman,

I tried that before like
ServerName localhost
but it didn't change the error. I'm afraid there is another bug in my .conf,
although I didn't change much. If you wouldn't mind, I'd like to ask you, if
you can mail me your httpd.conf for comparison.

Thanks
Falko

[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Roman Schlueter
Sent: Freitag, 16. November 2001 11:24
To: Tomcat Users List
Subject: Re: Invalid virtual host name on WebAppDeploy


Hello Falko,

'Invalid virtual host name' was also a problem in my configuration.
The solution is to enable and assign 'ServerName' in httpd.conf.

Regards
Roman


Falko Braun wrote:

 I did the same configurations like mentioned below. But I get:
 Invalid virtual host name

 for the following line in httpd.conf:
 WebAppDeploy examples conn /examples

 But I did not configure any Virtual Host.

 -Original Message-
 From: Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
 Sent: Freitag, 16. November 2001 04:41
 To: 'Tomcat Users List'
 Subject: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp for
 window NT

 I can't make Apache 1.3  Tomcat 4 w/ mod_webApp to work.

 This is what I do(follow install guide):

 1) copy mod_webapp.so and libapr.dll to directory
 apache install dir \modules
 2)edit httpd.conf like this

 ServerName localhost
 LoadModule webapp_module modules/mod_webapp.so

 WebAppConnection conn warp localhost:8008
 WebAppDeploy examples conn /examples

 3) my  tomcat 4 has server.xml like this:

  !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache

 Connector
className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/

 !-- Replace localhost with what your Apache ServerName is set to
 --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=localhost debug=0 appBase=webapps

   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/

   !-- Because this Realm is here, an instance will be shared globally
 --
   Realm className=org.apache.catalina.realm.MemoryRealm /

 /Engine

   /Service

 4) start tomcat 4 and then apache, I can see apache home on port 80 and
 tomcat home on port 8080 like this
 http://localhost/
 http://localhost:8080
 http://localhost:8080/examples

 but the following
 http://localhost/examples

 give me error of page not found

 any idea why

 any help would be greatly appreciated

 John

  -Original Message-
  From: David Smith [SMTP:[EMAIL PROTECTED]]
  Sent: Thursday, November 15, 2001 4:04 PM
  To:   Tomcat Users List
  Subject:  Re: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp
 
  I'm guessing you changed the port for the Connector statement in the
  Tomcat-Apache service of server.xml to 9090?  If so, that's correct.  If
  not,
  try using 8008 instead.
 
  The second WebAppConnection line isn't needed unless it's connecting to
a
  different machine and/or port.  The way your config is below, there
should
 
  only be one with both WebAppDeploy lines referencing it.  This might be
  the
  source of your error.
 
  Good luck and hope this helps some.
 
  --David Smith
 
  On Thursday 15 November 2001 12:09 pm, you wrote:
   FreeBSD, Tomcat 4, Apache 1.3.19
  
  
   Here's my config;
  
   Alias /myapp /usr/local/jakarta-tomcat-4.0/webapps/myapp/
   WebAppConnection tomcat4  warp  localhost:9090
   WebAppDeploy myapp  tomcat4  /myapp
   WebAppConnection conn  warp  localhost:9090
   WebAppDeploy examples  conn  /examples
  
  
   Here's the result from the apache error log;
  
   [Thu Nov 15 10:40:00 2001] [error] Cannot receive handshake WARP
packet
   [Thu Nov 15 10:40:00 2001] [error] Cannot read packet
   (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
  configure
   connection tomcat4 [Thu Nov 15 10:40:00 2001] [error] Cannot receive
   handshake WARP packet [Thu Nov 15 10:40:00 2001] [error] Cannot read
  packet
   (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
  configure
   connection tomcat4
  
   Might this be an error with compiling?
  
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

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

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

Use Servlets

2001-11-16 Thread Michael CONOR

Hi,

how to use servlets with tomcat 4? is it mandatory to put servlets in 
servlets folder or is it possible to use different folders?
How to define the servlet used as default one when the user comes to the 
site (such as index.jsp with JSP)

thanks for your help!


_
Téléchargez MSN Explorer gratuitement à l'adresse 
http://explorer.msn.fr/intl.asp


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




Re: Fixed - Repost:HELP! Security question - grant entries

2001-11-16 Thread Antony Bowesman

Hi,

Got it to work, permissions for JSPs can only be given at the context
root level.  I was trying to be more fine grained which is not possible.

Antony

Antony Bowesman wrote:
 
 Hi,
 
 How can you assign permissions to code compiled from a JSP, it is
 possible or do you have to put all code that performs actions that may
 encounter security checks inside a bean and then allocate permissions to
 the bean class?
 
 I tried adding
 
 grant codeBase
 file:${catalina.home}/work/localhost/examples/jsp/security/protected/-
 {
 permission java.security.AllPermission;
 };
 
 to the conf/catalina.policy but I get an AccessControlException because
 the compiled code in the stack frame
 
 org.apache.jsp.index$jsp._jspService(index$jsp.java:116)
 
 does not have permission.
 
 It's tomcat 4.0
 
 Any ideas?
 Antony
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Antony Bowesman
Teamware Group 
[EMAIL PROTECTED]
phone: +358 9 5128 2562
fax  : +358 9 5128 2705

intra / extra / Internet solutions at www.teamware.com

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




AW: help tomcat 4.0 iis 5.0

2001-11-16 Thread Hessing Ingo


Hi,

which isapi_redirect.dll are you using? - I ask because the Tomcat 4.0.1
release doesn't contain one and all isapi_redirect.dll-files before
Tomcat 3.3 do _not_ support ajp13 that Tomcat 4.0.1 relies on.

So have you tried the isapi_redirect.dll from the Tomcat 3.3 release?

bestWISHES

Ingo

 -Ursprüngliche Nachricht-
 Von: Matt Laywell [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 15. November 2001 22:47
 An: '[EMAIL PROTECTED]'
 Betreff: help tomcat 4.0 iis 5.0
 
 
 I am using tomcat 4.0 with iis 5.0.  When I try to view jsp 
 pages from my
 website I get a 404 resource whatever.jsp is not available error from
 tomcat.  I believe the isapi redirector is working properly 
 because the
 error is from the tomcat server not from iis.  any help would be
 appreciated.
 
 new at this
 
 matt laywell
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




Solved! RE: Invalid virtual host name on WebAppDeploy

2001-11-16 Thread Falko Braun

FYI:

I manged to bind Tomcat4.0 to Apache on Win2k by
adding the following lines in httpd.conf:

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c

and at the very end (which was the important point) of the file

#Virtual Host
VirtualHost *
ServerName localhost
ErrorLog logs/error_log
CustomLog logs/access_log common
   WebAppConnection warpconn warp localhost:8008
   WebAppDeploy examples warpconn /examples/
   WebAppInfo /web-inf
/VirtualHost

-Original Message-
From: Falko Braun [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 16. November 2001 11:37
To: Tomcat Users List
Subject: RE: Invalid virtual host name on WebAppDeploy


Hi Roman,

I tried that before like
ServerName localhost
but it didn't change the error. I'm afraid there is another bug in my .conf,
although I didn't change much. If you wouldn't mind, I'd like to ask you, if
you can mail me your httpd.conf for comparison.

Thanks
Falko

[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Roman Schlueter
Sent: Freitag, 16. November 2001 11:24
To: Tomcat Users List
Subject: Re: Invalid virtual host name on WebAppDeploy


Hello Falko,

'Invalid virtual host name' was also a problem in my configuration.
The solution is to enable and assign 'ServerName' in httpd.conf.

Regards
Roman


Falko Braun wrote:

 I did the same configurations like mentioned below. But I get:
 Invalid virtual host name

 for the following line in httpd.conf:
 WebAppDeploy examples conn /examples

 But I did not configure any Virtual Host.

 -Original Message-
 From: Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
 Sent: Freitag, 16. November 2001 04:41
 To: 'Tomcat Users List'
 Subject: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp for
 window NT

 I can't make Apache 1.3  Tomcat 4 w/ mod_webApp to work.

 This is what I do(follow install guide):

 1) copy mod_webapp.so and libapr.dll to directory
 apache install dir \modules
 2)edit httpd.conf like this

 ServerName localhost
 LoadModule webapp_module modules/mod_webapp.so

 WebAppConnection conn warp localhost:8008
 WebAppDeploy examples conn /examples

 3) my  tomcat 4 has server.xml like this:

  !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache

 Connector
className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/

 !-- Replace localhost with what your Apache ServerName is set to
 --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=localhost debug=0 appBase=webapps

   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/

   !-- Because this Realm is here, an instance will be shared globally
 --
   Realm className=org.apache.catalina.realm.MemoryRealm /

 /Engine

   /Service

 4) start tomcat 4 and then apache, I can see apache home on port 80 and
 tomcat home on port 8080 like this
 http://localhost/
 http://localhost:8080
 http://localhost:8080/examples

 but the following
 http://localhost/examples

 give me error of page not found

 any idea why

 any help would be greatly appreciated

 John

  -Original Message-
  From: David Smith [SMTP:[EMAIL PROTECTED]]
  Sent: Thursday, November 15, 2001 4:04 PM
  To:   Tomcat Users List
  Subject:  Re: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp
 
  I'm guessing you changed the port for the Connector statement in the
  Tomcat-Apache service of server.xml to 9090?  If so, that's correct.  If
  not,
  try using 8008 instead.
 
  The second WebAppConnection line isn't needed unless it's connecting to
a
  different machine and/or port.  The way your config is below, there
should
 
  only be one with both WebAppDeploy lines referencing it.  This might be
  the
  source of your error.
 
  Good luck and hope this helps some.
 
  --David Smith
 
  On Thursday 15 November 2001 12:09 pm, you wrote:
   FreeBSD, Tomcat 4, Apache 1.3.19
  
  
   Here's my config;
  
   Alias /myapp /usr/local/jakarta-tomcat-4.0/webapps/myapp/
   WebAppConnection tomcat4  warp  localhost:9090
   WebAppDeploy myapp  tomcat4  /myapp
   WebAppConnection conn  warp  localhost:9090
   WebAppDeploy examples  conn  /examples
  
  
   Here's the result from the apache error log;
  
   [Thu Nov 15 10:40:00 2001] [error] Cannot receive handshake WARP
packet
   [Thu Nov 15 10:40:00 2001] [error] Cannot read packet
   (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
  configure
   connection tomcat4 [Thu Nov 15 10:40:00 2001] [error] Cannot receive
   handshake WARP packet [Thu Nov 15 10:40:00 2001] 

RE: Tomcat under a high load

2001-11-16 Thread Randy Layman


Another possibility is that you are maxing out your network
connection - either at the machine or at some point upstream (like your
internet connection, perhaps?)

Randy

 -Original Message-
 From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 15, 2001 10:20 PM
 To: Tomcat Users List
 Subject: Re: Tomcat under a high load
 
 
  I am using Tomcat 4.0 on a server with heavy traffic.  
 Randomly under
 these
  conditions users get a Page can not be displayed error, 
 yet the server's
  4 cpus are not completely maxed out and the Tomcat/Java VM still has
 available
  memory.  The logs don't display any problem.  Anyone seen 
 this before?
  It is not an easily reproducible condition.
 
 If the situation doesn't degrade over time, then it's just 
 that you should
 raise the number of processors the HTTP connector is allowed to use.
 
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
 
 Change maxProcessors and give it a higher value.
 
 Remy
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Using class as an attribute

2001-11-16 Thread Nick Pierpoint


Hello All.

I have a custom tag that Tomcat (Jasper) won't compile.

The problem is one of its attributes called class. I want to include this
attribute so that users of the tag can set the style sheet attribute in the
same way as for other HTML4 tags.

Corresponding to the class attribute, there is a setClass(String) method.
There is not a getClass() method as it clashes with the getClass() method of
the underlying Object class.

I have tried this on Tomcat to 3.3 and it produces the following error
message:

- org.apache.jasper.compiler.CompileException:
/usr3/jakarta-tomcat-3.3/webapps/panportalDev/forms/ieformtest.jsp(41,0)
Unable to find setter method for attribute: class
at org.apache.jasper.compiler.TagBeginGenerator.generateSetters

There is public void setClass(String s) in the Tag
but, of course, no property called 'class'.


Using class as an attribute is very natural for page designers so I expect
there is a workaround. Anyone any ideas?


--
Nick Pierpoint


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




Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Samuel Rochas

Hello, 

Using Jakarta on IIS makes the authentication through IIS not working.

I have to configure Jakarta in order to allow the access to some
directories only after an authentication. I don't want to change my
application for that, furthermore I want to use Jakarta-Features for it. 

I am also looking for information how to customize the configuration
files (*.xml) and I did not find much in some FAQs 'till now. Can
anybody tell me which configuration files are involved? Which changes
are needed in these files?

Is there an online source for my request?

Thanks
Samuel
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

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




RE: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Barney Hamish

There is documentation on setting up JDBC authentication/JDBC Realms:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html

One thing I found that wasn't documented you need to add 
/app name/j_security_check=$(default.worker)
to your uriworkermap.properties file so that the request is redirected to
IIS correctly.

Hamish

-Original Message-
From: Samuel Rochas [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 1:58 PM
To: Tomcat Users List
Subject: Authentication with Tomcat 3.2 and IIS4


Hello, 

Using Jakarta on IIS makes the authentication through IIS not working.

I have to configure Jakarta in order to allow the access to some
directories only after an authentication. I don't want to change my
application for that, furthermore I want to use Jakarta-Features for it. 

I am also looking for information how to customize the configuration
files (*.xml) and I did not find much in some FAQs 'till now. Can
anybody tell me which configuration files are involved? Which changes
are needed in these files?

Is there an online source for my request?

Thanks
Samuel
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

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

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




Re: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Samuel Rochas

Hello Hamish, 

Thanks for your answer.
Do you mean, the authentification and user management with Jakarta runs
with the help of a database? Do I have other possibilities like using a
config file instead of a database?

Sincerly
Samuel
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

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




RE: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Barney Hamish

There is also a simple xml file authentication method that Tomcat uses by
default. You just add log-ins to an xml file. I believe there is an example
included with the Tomcat download (examples/jsp/security I think)

Hamish

-Original Message-
From: Samuel Rochas [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 2:16 PM
To: Tomcat Users List
Subject: Re: Authentication with Tomcat 3.2 and IIS4


Hello Hamish, 

Thanks for your answer.
Do you mean, the authentification and user management with Jakarta runs
with the help of a database? Do I have other possibilities like using a
config file instead of a database?

Sincerly
Samuel
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

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

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




RE: JkMount Syntax

2001-11-16 Thread Larry Isaacs

Tomcat 3.3 has automated support for this.  See:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#context_addcust

as it relates to virtual hosts, if you are curious.
I haven't tried to do much with virtual hosts in Tomcat 3.2.3,
so I can't comment on how well virtual hosts work in 3.2.3.

Larry

 -Original Message-
 From: Marko Sarunac [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 15, 2001 11:23 PM
 To: Tomcat Users List
 Subject: Re: JkMount Syntax
 
 
 Is there a way to do JkMount based on the domain
 so for one host i would mount all jpg's and for the other i would not?
 
  Hi Marko,
   
  I'm afraid that JkMount only supports the syntax:
   
  JkMount [/path]/* worker
   
  and
   
  JkMount [/path]/*.ext worker
   
  where [/path] is an optional path which is typically
  the context name.
   
  JkMount [/path]/*.jpg worker
   
  would send all jpg requests for /path to Tomcat.  Since
  mod_jk knows how to deal with the ;jsessionid, it wouldn't
  be a problem.
   
  Larry
   
   
  From: Marko Sarunac 
  Subject:  JkMount Syntax
  Date:  Thu, 15 Nov 2001 18:27:05 -0800 (PST)
  
  I am trying to do a JkMount for all jsessions so that when tomcat
  issues jsession attrib firs time and appends it to all the image and
  paths it doesn't break
  
  When i did
  JkMount /*;jsessionid* ajp12
  it worked great but then i realized the everything is mounted to
  tomcatincluding my cgi-bin and that was of course failing
  
  Any ideas?
  
  Thank you
  
  --
  Marko Sarunac
  [EMAIL PROTECTED]
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
  
  
 
 -- 
 Marko Sarunac
 [EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: Trouble connecting Apache 1.3 Tomcat 4 w/ mod_webApp for window NT

2001-11-16 Thread Geoff Howard

Try turning off image display in your browser preferences.  If the pages
then work, the problem is an unresolved one with mod_webpp.  You can search
the archive for nightly snapshot and you should find a link to the latest
version of the source, which may have fixed this by now, but the last time I
tried the same problem persisted.  This problem is apparently not universal,
since a coworker is using the same conf files and build of tomcat, apache,
and mod_webapp on his machine and things work smoothly.  

Geoff

-Original Message-
From: Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 10:41 PM
To: 'Tomcat Users List'
Subject: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp for
window NT


I can't make Apache 1.3  Tomcat 4 w/ mod_webApp to work.

This is what I do(follow install guide):

1) copy mod_webapp.so and libapr.dll to directory
apache install dir \modules   
2)edit httpd.conf like this

ServerName localhost  
LoadModule webapp_module modules/mod_webapp.so

WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples

3) my  tomcat 4 has server.xml like this:

 !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set to
--
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache defaultHost=localhost debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared globally
--
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

4) start tomcat 4 and then apache, I can see apache home on port 80 and
tomcat home on port 8080 like this
http://localhost/
http://localhost:8080
http://localhost:8080/examples

but the following 
http://localhost/examples

give me error of page not found


any idea why


any help would be greatly appreciated


John








 -Original Message-
 From: David Smith [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, November 15, 2001 4:04 PM
 To:   Tomcat Users List
 Subject:  Re: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp
 
 I'm guessing you changed the port for the Connector statement in the 
 Tomcat-Apache service of server.xml to 9090?  If so, that's correct.  If
 not, 
 try using 8008 instead.  
 
 The second WebAppConnection line isn't needed unless it's connecting to a 
 different machine and/or port.  The way your config is below, there should
 
 only be one with both WebAppDeploy lines referencing it.  This might be
 the 
 source of your error.
 
 Good luck and hope this helps some.
 
 --David Smith
 
 On Thursday 15 November 2001 12:09 pm, you wrote:
  FreeBSD, Tomcat 4, Apache 1.3.19
 
 
  Here's my config;
 
  Alias /myapp /usr/local/jakarta-tomcat-4.0/webapps/myapp/
  WebAppConnection tomcat4  warp  localhost:9090
  WebAppDeploy myapp  tomcat4  /myapp
  WebAppConnection conn  warp  localhost:9090
  WebAppDeploy examples  conn  /examples
 
 
  Here's the result from the apache error log;
 
  [Thu Nov 15 10:40:00 2001] [error] Cannot receive handshake WARP packet
  [Thu Nov 15 10:40:00 2001] [error] Cannot read packet
  (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
 configure
  connection tomcat4 [Thu Nov 15 10:40:00 2001] [error] Cannot receive
  handshake WARP packet [Thu Nov 15 10:40:00 2001] [error] Cannot read
 packet
  (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
 configure
  connection tomcat4
 
  Might this be an error with compiling?
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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




RE: Thread pool problem in Tomcat 3.3 in Windows NT 4.0

2001-11-16 Thread Larry Isaacs

There is a bug in ThreadPool that causes it to overwrite the
settings installed by the Ajp13Connector.  This is fixed in
the nightly version of Tomcat 3.3.1 which can be found at:

http://jakarta.apache.org/builds/jakarta-tomcat/nightly-3.3/

Cheers,
Larry

 -Original Message-
 From: Raymond Lee [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 2:43 AM
 To: [EMAIL PROTECTED]
 Subject: Thread pool problem in Tomcat 3.3 in Windows NT 4.0
 
 
 Hi,
 
 I have used Tomcat 3.3 with Apache 1.3.12 as my development 
 servlet engine and 
 I have a query about thread pool of Ajp13Connector in Tomcat 3.3.
 
 I define the following setting in server.xml and I expect 
 there should be at least 100
 threads created in startup of tomcat 3.3.
 
 Ajp13Connector address=127.0.0.1 
   port=8009 
   maxThreads=500 
   maxSpareThreads=200 
   minSpareThreads=100 
   pools=true/
 
 However, I found there are only 25 threads instead of 100 
 threads created in the java virtual
 machine used by Tomcat 3.3.  I browsed so many documents 
 about Tomcat 3.3 and even
 many forums but I was unable to find any relevent information 
 about this problem. 
 
 In Tomcat 3.2, the way to define thread pool is different 
 from that of Tomcat 3.3.
 
 Is the following setting valid in Tomcat 3.3?
 
 Connector className=org.apache.tomcat.service.PoolTcpConnector
 Parameter name=handler 
 value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/
 Parameter name=port value=8007/
 Parameter name=max_threads value=150/
 Parameter name=max_spare_threads value=100/
 Parameter name=min_spare_threads value=50/
 /Connector
 
 This setting can make the java virtual machine to create at 
 least 50 threads. (I confirmed this with Task
 Manager)
 
 Does anyone know how to fix this?
 
 Thanks,
 
 Raymond Lee
 

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




Re: Using class as an attribute

2001-11-16 Thread Mika Goeckel

Nick,

unfortunately I know no straight workaround. The getClass method in
java.lang.Object is declared final and you would if you could override that
risk that the jre completely screws up.
You could of course call it CLASS. From a code purist's point of view that
would be blasphemic, but it should work.

Mika

- Original Message -
From: Nick Pierpoint [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 1:42 PM
Subject: Using class as an attribute



 Hello All.

 I have a custom tag that Tomcat (Jasper) won't compile.

 The problem is one of its attributes called class. I want to include
this
 attribute so that users of the tag can set the style sheet attribute in
the
 same way as for other HTML4 tags.

 Corresponding to the class attribute, there is a setClass(String)
method.
 There is not a getClass() method as it clashes with the getClass() method
of
 the underlying Object class.

 I have tried this on Tomcat to 3.3 and it produces the following error
 message:

 - org.apache.jasper.compiler.CompileException:

/usr3/jakarta-tomcat-3.3/webapps/panportalDev/forms/ieformtest.jsp(41,0)
 Unable to find setter method for attribute: class
 at org.apache.jasper.compiler.TagBeginGenerator.generateSetters

 There is public void setClass(String s) in the Tag
 but, of course, no property called 'class'.


 Using class as an attribute is very natural for page designers so I
expect
 there is a workaround. Anyone any ideas?


 --
 Nick Pierpoint


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



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




RE: Help with multiple security domains

2001-11-16 Thread Ignacio J. Ortega

Tomcat 3.3 suport multiple realms ( one per webapp , and also global
ones ), Just add your realm inside the context element in app-*.xml
file..

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Trever M. Shick [mailto:[EMAIL PROTECTED]]
 Enviado el: jueves 15 de noviembre de 2001 17:53
 Para: [EMAIL PROTECTED]
 Asunto: Help with multiple security domains
 
 
 I'd like to have two different JDBC realms within my 
 server.xml and then I'd
 like to reference those within my web.xml file.
 
 I already have one JDBC realm working, I would like to add a 
 second one.
 Is there some sort of name or key that can be set for a 
 JDBC realm and
 then referenced by the security constraints within the web.xml?
 
 Thanks for any help.
 
 
 
 _
 Trever Shick
 ICQ#:137752693
 Current ICQ status:
 
 SMS: (Send an SMS message to my ICQ): +2783142137752693
 More ways to contact me:
 Yahoo Id:[EMAIL PROTECTED]
 Current Yahoo! Messenger status:
 
 
 MSN Messenger Id : [EMAIL PROTECTED]
 
 ICQ URL:
 http://wwp.icq.com/137752693
 
 E-Mail :
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 Web Page: http://www.geocities.com/trevershick
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




Re: servlet information

2001-11-16 Thread Frank Lawlor

There are many books on online articles (@ Sun, Apache, etc.)
that describe the basics of how to organize web applications.
You might look specifically for Model 2 Architecture.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.




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




Re: Servlet Mapping...:(

2001-11-16 Thread Frank Lawlor

A couple of things to check

Is your servlet class really ActionServlet and not something
like com.mycom.ActionServlet?  
If it IS ActionServlet then
the class file should be in WEB-INF/classes (if it is
com.mycom.ActionServlet then it should be in 
WEB-INF/classes/com/mycom/).

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.




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




error-page usage in web.xml

2001-11-16 Thread Fabien Modoux

Hello,

I am having trouble understanding how to properly configure
the error-page section of my web.xml. I found some previous
posts, but could not find enough information.

There are two types of error-page element: exception-type and 
error-code. Are those complimentary -- i.e., they must both be 
defined to handle all errors -- or is there some sort of overlap? 
I did a few tests and I don't think 404 cannot be handled as an 
exception, only with the error-code element. However I am 
wondering about the difference between error-code 500 and 
exception-type java.lang.Throwable, which one is the most general 
one?

I've also seen a post (#33290) saying that

 Within the page, you can access (among others) the following request 
 attribute created by the container:
 
   %
 String requestURI = (String)
  request.getAttribute(javax.servlet.error.request_uri);
   %

I am using TC3.2.2 and the attribute has the value of the error
handler page, not of the page that created the error. Is the possible
to get the latter info?

Thanks for your help,

-Fabien

-  
Fabien Modoux,
Voicemate - http://www.voicemate.com

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




RE: servlet information

2001-11-16 Thread Donie Kelly

Hi Cristian

Here is a web.xml which will map a servlet like you wish...

  servlet
servlet-namemyservlet/servlet-name
display-namemyservlet/display-name
servlet-classcom.company.myservlet/servlet-class
  /servlet

  servlet-mapping
servlet-namemyservlet/servlet-name
url-pattern//url-pattern
  /servlet-mapping

Everything in that context will now execute the said servlet unless there is
another mapping which can be mapped to another servlet. The following URL
will execute your servlet

http://server/context/

Hope this helps. 

ps: try looking at putting your application in webapps/ROOT if you don't
want the context path so the url would look like

http://server

Haven't tested this but I think it should work also...

Donie



-Original Message-
From: clai [mailto:[EMAIL PROTECTED]]
Sent: 16 November 2001 08:52
To: Tomcat Users List
Subject: servlet information


Hi,

i'm working with Tomcat and Windows 2000. Is it possible to set up the
server
to do this thing ? :
it should start always the same same servlet when it receive an HTTP
request ( whatever request, so to catch the context of the request into the
servlet ).
Thanks

cristian



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

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




Configuration help needed with standard RPM install

2001-11-16 Thread Jonathan B. Bayer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello tomcat-user,

I have a RedHat 7.1 system running Apache.  I downloaded and installed
the following RPMs:

font.properties (notes said to download this)
j2sdk-1_3_1_01-linux-i386-rpm.bin created: jdk-1.3.1_01.i386.rpm
mod_webapp-1.0-1.i386.rpm
tomcat4-4.0.1-1.noarch.rpm
tomcat4-manual-4.0.1-1.noarch.rpm
tomcat4-webapps-4.0.1-1.noarch.rpm

They are all installed, and the basic stuff is working nicely.

A gripe of mine is that most of the files in the documentation directory
are 0 length.

My problem is when I am testing the supplied Send Mail Example from
the example pages, I get the following output errors when trying to
send mail.  I did configure the smtp server in the conf/server.xml file.

I checked, and the SendMailServlet is installed in:

/var/tomcat4/webapps/examples/WEB-INF/classes/SendMailServlet.java

Any ideas what is wrong?

Thanks in advance.

JBB


Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class SendMailServlet or a 
class it depends on
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java)
at 
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java)
at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java)
at java.lang.Thread.run(Thread.java:484) root cause
java.lang.ClassNotFoundException: SendMailServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java)
at 

Using tomcat to implement SMTP

2001-11-16 Thread Donie Kelly

Hi all

Has anybody any experience of implementing the SMTP/POP/IMAP protocols using
GenericServlet class? Is it possible to do this. How can I get Tomcat to
listen on port 25/110/143 or whatever and work with these protocols?

Any pointers or help is greatly appreciated...

Donie

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




Re: Authentication Filter Posting Again

2001-11-16 Thread Barry White

I would have responded had I known the answer... I have never worked with
filters.
Try searching for authentication filters in the archives.


- Original Message -
From: Pritpal Dhaliwal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 4:48 AM
Subject: Re: Authentication Filter Posting Again


 I am posting this again because no one responded.  No one here has worked
 with filters? Can I get a yes or no about if Tomcat has a Authentication
 filter?

 Thanks in Advance,

 Pritpal Dhaliwal
 - Original Message -
 From: Pritpal Dhaliwal [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, November 14, 2001 10:13 PM
 Subject: Authentication Filter


  Is there an authentication filter that could be used with Servlet Spec
 2.3.
  Does tomcat 4 come with one that could be used?
 
  Thanks in Advance,
 
  Pritpal Dhaliwal
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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




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




Re: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Samuel Rochas

Hello, 

Ok, I am now able to prompt for a dialog box, asking for username and
password. So far, exactly what I wanted.

I have configured a user in the file /conf/tomcat-users.xml according to
the role defined in the role defined in the security constraint for the
application. 
The trouble is that Jakarta does not regognize any of the defined user
and I can't access the page. Can somebody tell me why? Should I make
further changes in other config files?

Sincerly
Samuel

Barney Hamish wrote:
 
 There is also a simple xml file authentication method that Tomcat uses by
 default. You just add log-ins to an xml file. I believe there is an example
 included with the Tomcat download (examples/jsp/security I think)
 
 Hamish
 
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

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




Tomcat 3.3 Startup

2001-11-16 Thread Douglas Brendle

I've been working with and using Tomcat3.3 for two weeks and it has been running fine.
Yesterday, I added a new .jar file to my classpath and all of a sudden Tomcat stopped
running. I started Tomcat with the run attribute so it would start in the same window
and this is the stack trace I receieved:

EmbededTomcat: exception initializing ContextManager 
  java.lang.NoClassDefFoundError: javax/xml/parsers/SAXParserFactory   
 
  at java.lang.ClassLoader.defineClass0(Native Method)   
  at java.lang.ClassLoader.defineClass(ClassLoader.java:486) 

And as you can see, the crimson.jar file is in my classpath.

classpath=c:\Oracle\Ora81\orb\classes\yoj.jar;c:\Oracle\Ora81\orb\classes\share.zip;
d:\tomcat3.3\jakarta\lib\container\xalan.jar;d:\tomcat3.3\jakarta\lib\common\tomcat_core.jar;
d:\tomcat3.3\jakarta\lib\common\servlet.jar;d:\tomcat3.3\jakarta\lib\common\jasper-runtime.jar;
d:\tomcat3.3\jakarta\lib\container\jasper.jar;d:\tomcat3.3\jakarta\webapps\examples\web-inf\classes;
d:\tomcat3.3\jakarta\lib\common\cos.jar;d:\tomcat3.3\jakarta\lib\container\crimson.jar 


Anyone know what is going on? 


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




RE: Tomcat 3.3 Startup

2001-11-16 Thread Chen, Gin

crimson parser doesnt play nice with xalan/xerces parser
-Tim

-Original Message-
From: Douglas Brendle [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.3 Startup


I've been working with and using Tomcat3.3 for two weeks and it has been
running fine.
Yesterday, I added a new .jar file to my classpath and all of a sudden
Tomcat stopped
running. I started Tomcat with the run attribute so it would start in the
same window
and this is the stack trace I receieved:

EmbededTomcat: exception initializing ContextManager 
  java.lang.NoClassDefFoundError:
javax/xml/parsers/SAXParserFactory
  at java.lang.ClassLoader.defineClass0(Native Method)   
  at java.lang.ClassLoader.defineClass(ClassLoader.java:486) 

And as you can see, the crimson.jar file is in my classpath.

classpath=c:\Oracle\Ora81\orb\classes\yoj.jar;c:\Oracle\Ora81\orb\classes\sh
are.zip;
d:\tomcat3.3\jakarta\lib\container\xalan.jar;d:\tomcat3.3\jakarta\lib\common
\tomcat_core.jar;
d:\tomcat3.3\jakarta\lib\common\servlet.jar;d:\tomcat3.3\jakarta\lib\common\
jasper-runtime.jar;
d:\tomcat3.3\jakarta\lib\container\jasper.jar;d:\tomcat3.3\jakarta\webapps\e
xamples\web-inf\classes;
d:\tomcat3.3\jakarta\lib\common\cos.jar;d:\tomcat3.3\jakarta\lib\container\c
rimson.jar 

Anyone know what is going on? 


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

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




RE: Tomcat 3.3 Startup

2001-11-16 Thread Martin van den Bemt

Why are you using a classpath? Tomcat handles that for you completely.
You shouldn't have any problems if the jar is added to the webapp lib..
(btw I believ you have to rename the zip to jar files so tomcat can read
them).


Mvgr,
Martin

 -Original Message-
 From: Douglas Brendle [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 5:26 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3 Startup


 I've been working with and using Tomcat3.3 for two weeks and it
 has been running fine.
 Yesterday, I added a new .jar file to my classpath and all of a
 sudden Tomcat stopped
 running. I started Tomcat with the run attribute so it would
 start in the same window
 and this is the stack trace I receieved:

 EmbededTomcat: exception initializing ContextManager
   java.lang.NoClassDefFoundError:
 javax/xml/parsers/SAXParserFactory
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:486)

 And as you can see, the crimson.jar file is in my classpath.

 classpath=c:\Oracle\Ora81\orb\classes\yoj.jar;c:\Oracle\Ora81\orb\
 classes\share.zip;
 d:\tomcat3.3\jakarta\lib\container\xalan.jar;d:\tomcat3.3\jakarta\
 lib\common\tomcat_core.jar;
 d:\tomcat3.3\jakarta\lib\common\servlet.jar;d:\tomcat3.3\jakarta\l
 ib\common\jasper-runtime.jar;
 d:\tomcat3.3\jakarta\lib\container\jasper.jar;d:\tomcat3.3\jakarta
 \webapps\examples\web-inf\classes;
 d:\tomcat3.3\jakarta\lib\common\cos.jar;d:\tomcat3.3\jakarta\lib\c
 ontainer\crimson.jar

 Anyone know what is going on?


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




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




tomcat 4.0 catalina cluster

2001-11-16 Thread Meyer, James

Hello everybody.
I am looking at upgrading to tomcat 4.0.1.  I have everything working
correctly except for clustering/load balancing.  I have scanned the
documentation and have not found anything suggesting how to setup load
balancing.Can anybody give me an example or point me towards some
documentation on how to do this under tomcat 4.0.1.

The environment consists on 2 Sun Solaris Servers running apache 1.3.19 with
mod_jk as the connector.

Thanks in advance.

-James Meyer


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




RE: Tomcat 3.3 Startup

2001-11-16 Thread Larry Isaacs

Can you provide more detail about what is changed from the
binary distribution?  Normally only tomcat.jar is on your
classpath.  Tomcat 3.3 adds the rest of the jars internally.

Larry

 -Original Message-
 From: Douglas Brendle [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 11:26 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3 Startup
 
 
 I've been working with and using Tomcat3.3 for two weeks and 
 it has been running fine.
 Yesterday, I added a new .jar file to my classpath and all of 
 a sudden Tomcat stopped
 running. I started Tomcat with the run attribute so it would 
 start in the same window
 and this is the stack trace I receieved:
 
 EmbededTomcat: exception initializing ContextManager 
   java.lang.NoClassDefFoundError: 
 javax/xml/parsers/SAXParserFactory
   at java.lang.ClassLoader.defineClass0(Native Method)   
   at 
 java.lang.ClassLoader.defineClass(ClassLoader.java:486) 
 
 And as you can see, the crimson.jar file is in my classpath.
 
 classpath=c:\Oracle\Ora81\orb\classes\yoj.jar;c:\Oracle\Ora81\
 orb\classes\share.zip;
 d:\tomcat3.3\jakarta\lib\container\xalan.jar;d:\tomcat3.3\jaka
 rta\lib\common\tomcat_core.jar;
 d:\tomcat3.3\jakarta\lib\common\servlet.jar;d:\tomcat3.3\jakar
 ta\lib\common\jasper-runtime.jar;
 d:\tomcat3.3\jakarta\lib\container\jasper.jar;d:\tomcat3.3\jak
 arta\webapps\examples\web-inf\classes;
 d:\tomcat3.3\jakarta\lib\common\cos.jar;d:\tomcat3.3\jakarta\l
 ib\container\crimson.jar 
 
 Anyone know what is going on? 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: Precompile JSP

2001-11-16 Thread Craig R. McClanahan



On Fri, 16 Nov 2001, pero wrote:

 Date: Fri, 16 Nov 2001 10:26:07 +0100
 From: pero [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Precompile JSP

  (sigh) and I thought it was such a good idea...

 me too :)

  Could we have a startup servlet that would wait for a JSP servlet
  to start-up and then call all the pre-compilations? Or just wait
  for a while? (That sucks as an idea, I know)
 
  We definitely need a regular hook for this.

 Servlet-Api 2.3 (TC 4) uses the concept of LifeCycleListeners - that could
 have been the deal! But it isn't. :-( The contextInitialized-method is
 called before the servlets are loaded (including jsp) and so this approach
 doesn't work either...
 Could any developer point me (us) to a solution on how to hook a precompiler
 into the application (dont want to use jspc)? I doubt that there is a
 portable way of doing so, since servlet-on-startup and LifeCycleListener do
 not work. But nevertheless I would love to implement that feature.
 And some dirty workaround (starting a thread in servlet.init() that waits 10
 sec or so) would be too evil. At least for me (-:


Precompilation is a feature of a particular container -- it's not anything
mandated by the JSP spec.  Tomcat's current implementation of that is
jspc -- if you don't like jspc for some reason, you'll need to suggest
(or, better, contribute :-) an implementation that does what you want.
But nothing else exists in Tomcat at the moment.

 help appriciated

 pero


Craig


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




Re: Authentication Filter Posting Again

2001-11-16 Thread Craig R. McClanahan

I answered this yesterday ... go check the archives of this mailing list.

Craig


On Fri, 16 Nov 2001, Pritpal Dhaliwal wrote:

 Date: Fri, 16 Nov 2001 01:48:20 -0800
 From: Pritpal Dhaliwal [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Authentication Filter Posting Again

 I am posting this again because no one responded.  No one here has worked
 with filters? Can I get a yes or no about if Tomcat has a Authentication
 filter?

 Thanks in Advance,

 Pritpal Dhaliwal
 - Original Message -
 From: Pritpal Dhaliwal [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, November 14, 2001 10:13 PM
 Subject: Authentication Filter


  Is there an authentication filter that could be used with Servlet Spec
 2.3.
  Does tomcat 4 come with one that could be used?
 
  Thanks in Advance,
 
  Pritpal Dhaliwal
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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




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




Re: Using class as an attribute

2001-11-16 Thread Craig R. McClanahan

Unfortunately, you're stuck -- and you can blame Java for this one ;-).

If you look at the JavaDocs for java.lang.Object (the top-level superclass
for all Java classes), you'll see that it includes a getClass() method
that returns the java.lang.Class for a paritcular object.  Therefore, you
cannot define your own class property (in the JavaBeans sense) as a
String, because the types will not match.

In the Struts tags that generate CSS class identifiers, I used an
attribute named styleClass instead, to get around this problem.

Craig


On Fri, 16 Nov 2001, Nick Pierpoint wrote:

 Date: Fri, 16 Nov 2001 12:42:18 -
 From: Nick Pierpoint [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Using class as an attribute


 Hello All.

 I have a custom tag that Tomcat (Jasper) won't compile.

 The problem is one of its attributes called class. I want to include this
 attribute so that users of the tag can set the style sheet attribute in the
 same way as for other HTML4 tags.

 Corresponding to the class attribute, there is a setClass(String) method.
 There is not a getClass() method as it clashes with the getClass() method of
 the underlying Object class.

 I have tried this on Tomcat to 3.3 and it produces the following error
 message:

 - org.apache.jasper.compiler.CompileException:
 /usr3/jakarta-tomcat-3.3/webapps/panportalDev/forms/ieformtest.jsp(41,0)
 Unable to find setter method for attribute: class
 at org.apache.jasper.compiler.TagBeginGenerator.generateSetters

 There is public void setClass(String s) in the Tag
 but, of course, no property called 'class'.


 Using class as an attribute is very natural for page designers so I expect
 there is a workaround. Anyone any ideas?


 --
 Nick Pierpoint


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




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




Re: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Craig R. McClanahan



On Fri, 16 Nov 2001, Samuel Rochas wrote:

 Date: Fri, 16 Nov 2001 14:16:25 +0100
 From: Samuel Rochas [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Authentication with Tomcat 3.2 and IIS4

 Hello Hamish,

 Thanks for your answer.
 Do you mean, the authentification and user management with Jakarta runs
 with the help of a database? Do I have other possibilities like using a
 config file instead of a database?


For Tomcat 4, there are a variety of places you can tell Tomcat to go vor
validating users.  Docs are included with Tomcat, and also available
online:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html

 Sincerly
 Samuel

Craig


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




Re: error-page usage in web.xml

2001-11-16 Thread Craig R. McClanahan



On Fri, 16 Nov 2001, Fabien Modoux wrote:

 Date: Fri, 16 Nov 2001 11:32:08 -0500
 From: Fabien Modoux [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: error-page usage in web.xml

 Hello,

 I am having trouble understanding how to properly configure
 the error-page section of my web.xml. I found some previous
 posts, but could not find enough information.

 There are two types of error-page element: exception-type and
 error-code. Are those complimentary -- i.e., they must both be
 defined to handle all errors -- or is there some sort of overlap?

There's no overlap.

The exception-type error pages are consulted when your servlet throws an
exception instead of returning normally from the service() method.

The error-code error pages are consulted when your servlet returns
normally from the service() method, but you've set the HTTP response
status to something other than 200.

 I did a few tests and I don't think 404 cannot be handled as an
 exception, only with the error-code element. However I am
 wondering about the difference between error-code 500 and
 exception-type java.lang.Throwable, which one is the most general
 one?


If your servlet throws an exception, and you have *not* defined an error
page for that exception, Tomcat creates a default error 500 page for
you.

 I've also seen a post (#33290) saying that

  Within the page, you can access (among others) the following request
  attribute created by the container:
 
%
  String requestURI = (String)
   request.getAttribute(javax.servlet.error.request_uri);
%

 I am using TC3.2.2 and the attribute has the value of the error
 handler page, not of the page that created the error. Is the possible
 to get the latter info?


Sounds like a bug in 3.2.2 -- it should be the request URI of the original
page.

 Thanks for your help,

 -Fabien


Craig McClanahan


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




Re: Using tomcat to implement SMTP

2001-11-16 Thread Craig R. McClanahan



On Fri, 16 Nov 2001, Donie Kelly wrote:

 Date: Fri, 16 Nov 2001 16:42:14 -
 From: Donie Kelly [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: Using tomcat to implement SMTP

 Hi all

 Has anybody any experience of implementing the SMTP/POP/IMAP protocols using
 GenericServlet class? Is it possible to do this. How can I get Tomcat to
 listen on port 25/110/143 or whatever and work with these protocols?


It's not going to work, because Tomcat is an HTTP server.

If you want to build an extensible mail server application, you might want
to look at the James project at Jakarta as a starting point:

  http://jakarta.apache.org/james/

 Any pointers or help is greatly appreciated...

 Donie


Craig


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




RE: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Ignacio J. Ortega

This is a known problem (related to ajp13 and ajp12 connector), Tomcat
3.3 has the fix for this.., 

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Samuel Rochas [mailto:[EMAIL PROTECTED]]
 Enviado el: viernes 16 de noviembre de 2001 18:16
 Para: Tomcat Users List
 Asunto: Re: Authentication with Tomcat 3.2 and IIS4
 
 
 Hello, 
 
 Ok, I am now able to prompt for a dialog box, asking for username and
 password. So far, exactly what I wanted.
 
 I have configured a user in the file /conf/tomcat-users.xml 
 according to
 the role defined in the role defined in the security 
 constraint for the
 application. 
 The trouble is that Jakarta does not regognize any of the defined user
 and I can't access the page. Can somebody tell me why? Should I make
 further changes in other config files?
 
 Sincerly
 Samuel
 
 Barney Hamish wrote:
  
  There is also a simple xml file authentication method that 
 Tomcat uses by
  default. You just add log-ins to an xml file. I believe 
 there is an example
  included with the Tomcat download (examples/jsp/security I think)
  
  Hamish
  
 -- 
 SWIPe Software Engineering  Project Management GmbH
 
 Solutions with Individual Profile
 
 Web: http://www.swipe.de
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




AW: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Hessing Ingo


Hi,

maybe I have a solution. Your're using the isapi_redirect.dll and access
your contexts via IIS 4, right? Have you tried accessing your pages
using Tomcat directly? Does it work then?

I have a machine running W2k, IIS 5 and Tomcat - and had exactly the
same problem: The dialog box appeared asking for username and password
but you were unable to login. But the thing did work when accessing the
page through Tomcat on normal HTTP.

What helped was the following: I defined exactly the same users within
W2k having guest roles for IIS 5. And then the IIS did let through the
requests because he knew the users and their correct passwords.

So the problem seems to be IIS (in my case version 5 - maybe it's the
same with 4) or the isapi_redirect.dll neglegting the requests because
it doesn't recognize the users/passwords if they are not defined within
W2k in a parallel way.

bestWISHES

Ingo

 -Ursprüngliche Nachricht-
 Von: Samuel Rochas [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 16. November 2001 18:16
 An: Tomcat Users List
 Betreff: Re: Authentication with Tomcat 3.2 and IIS4
 
 
 Hello, 
 
 Ok, I am now able to prompt for a dialog box, asking for username and
 password. So far, exactly what I wanted.
 
 I have configured a user in the file /conf/tomcat-users.xml 
 according to
 the role defined in the role defined in the security 
 constraint for the
 application. 
 The trouble is that Jakarta does not regognize any of the defined user
 and I can't access the page. Can somebody tell me why? Should I make
 further changes in other config files?
 
 Sincerly
 Samuel
 
 Barney Hamish wrote:
  
  There is also a simple xml file authentication method that 
 Tomcat uses by
  default. You just add log-ins to an xml file. I believe 
 there is an example
  included with the Tomcat download (examples/jsp/security I think)
  
  Hamish
  
 -- 
 SWIPe Software Engineering  Project Management GmbH
 
 Solutions with Individual Profile
 
 Web: http://www.swipe.de
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




AW: Ajp13 config + dll for IIS

2001-11-16 Thread Hessing Ingo


Hi,

I can now confirm that the isapi_redirect.dll of Tomcat 3.3 runs
successfully on W2k with IIS 5 redirecting to Tomcat 4.0.1.

And I've received this URL from a user of the list - a howto on this
topic:

http://www.vacodi.com/howto/tomcat/iisnt/index.html

bestWISHES

Ingo

 -Ursprüngliche Nachricht-
 Von: Hessing Ingo 
 Gesendet: Mittwoch, 14. November 2001 09:21
 An: 'Tomcat Users List'
 Cc: '[EMAIL PROTECTED]'
 Betreff: AW: Ajp13 config + dll for IIS
 
 
 
 Hi!
 
 I've heard that the ISAPI_REDIRECT.DLL for Tomcat 3.3 might 
 work with Tomcat 4.0.1, too.
 
 Can anybody verify this or does anybody know when a special 
 version for Tomcat 4.0.1 will be released?
 
 bestWISHES
 
 Ingo
 
  -Ursprüngliche Nachricht-
  Von: Abbrederis Thomas tab09 [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. November 2001 09:04
  An: 'Tomcat Users List'
  Betreff: Ajp13 config + dll for IIS
  
  
  Hello to all!
  
  I'm searching for tomcat 4.0.1 the ajp1.3 redirect dll for IIS 4.
  
  Did anybody have information about that?!?
  Where I can find it and how does it work?!?
  
  Thanks for reply!
  
  Best regards
  
  inet-logistics GmbH
  Thomas Abbrederis
  (software engineering)
  Holzriedstrasse 29
  A-6961 Wolfurt
  mailto:[EMAIL PROTECTED]
  http://www.inet-logistics.com
  
  
  --
  To unsubscribe:   
mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




RE: Precompile JSP

2001-11-16 Thread pero

Hi,

 Precompilation is a feature of a particular container -- it's not anything
 mandated by the JSP spec.  Tomcat's current implementation of that is
 jspc -- if you don't like jspc for some reason, you'll need to suggest
 (or, better, contribute :-) an implementation that does what you want.
 But nothing else exists in Tomcat at the moment.

  help appriciated
 
  pero
 

 Craig

I know that the kind of precompilation I was talking about does not belong
to the JSP spec. All that I've asked for was some help in coding it. Thus, I
*want* to contribute, but I haven't got a clue where to put it. :-) So, I
will dig into the tc source to find it...

pero

..: for the second time today an answer to a mail of mine tried to oppose my
mail but said exact the same that I've mentioned before - maybe my english
is too bad :-))


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




NoClassDefFoundError: sun/tools/javac/Main

2001-11-16 Thread James Adams

I am trying to get Tomcat working on an SGI - IRIX machine.  I can get
the example Tomcat page (index.html) as well as the example servlets.
However the example JSPs and my own JSPs are not being served and give
errors, such as:


001-11-16 12:22:04 - Ctx() : Compiling: /dataview/DataCenterFrameset.jsp
to
dataview.DataCenterFrameset_0
2001-11-16 12:22:04 - Ctx() : Class not found:
dataview.DataCenterFrameset_1
2001-11-16 12:22:04 - Ctx() : Status code:404 request:R(  +
/dataview/DataCenterFrameset.jsp +
null) msg:null


and when I try one of the example JSP I get:


java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136,
Compiled Code)
at
org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:783,
Compiled Code)
at
org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:633,
Compiled Code)
at
org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:446,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833,
Compiled Code)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:161,
Compiled Code)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:477,
Compiled Code)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:519,
Compiled Code)
at java.lang.Thread.run(Thread.java:484, Compiled Code)


Can anybody suggest what I might look for in order to correct this
situation ?  I am using Tomcat 3.3 and SGI Irix 6.5.  Thanks in advance
for any suggestions.

-James


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




Re: error-page usage in web.xml

2001-11-16 Thread Barry White

Yes are correct in stating that the 404 error is not an exception... it is
simply file not found error and must be handled seperatly from exception
errors.
I am currently exploring the exception error handling/page myself.
You can get the URL of the page as follows:

In the page you have the error, you put:
% request.setAttribute(sourcePage, request.getRequestURI()); %

then in your exception error page defined in web.xml (JSP) you get the URI
by:
% request.getAttribute(sourcePage); %

You would usually write the error URL in your log file for debugging allong
with the rest of the exception info.

There are probably many beans available on the web that will do this quit
nicely, but where is the fun in that?
:)
Barry


- Original Message -
From: Fabien Modoux [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 11:32 AM
Subject: error-page usage in web.xml


 Hello,

 I am having trouble understanding how to properly configure
 the error-page section of my web.xml. I found some previous
 posts, but could not find enough information.

 There are two types of error-page element: exception-type and
 error-code. Are those complimentary -- i.e., they must both be
 defined to handle all errors -- or is there some sort of overlap?
 I did a few tests and I don't think 404 cannot be handled as an
 exception, only with the error-code element. However I am
 wondering about the difference between error-code 500 and
 exception-type java.lang.Throwable, which one is the most general
 one?

 I've also seen a post (#33290) saying that

  Within the page, you can access (among others) the following request
  attribute created by the container:
 
%
  String requestURI = (String)
   request.getAttribute(javax.servlet.error.request_uri);
%

 I am using TC3.2.2 and the attribute has the value of the error
 handler page, not of the page that created the error. Is the possible
 to get the latter info?

 Thanks for your help,

 -Fabien

 -
 Fabien Modoux,
 Voicemate - http://www.voicemate.com

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




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




RE: Common Problem with Tomcat/Apache (processer sticks at 97% on linux)

2001-11-16 Thread Brandon Cruz

Thank you for the suggestions, so to upgrade to a newer version of tomcat
3.2.x, all I have to do is switch jar files in tomcat_home/lib?  Do you
think that may help with the 97% processor problem?


As far as garbage collection, this condition stays this way, even after 12
hours.  Would that be an indication of garbage collection or an endless loop
somewhere?  If it is in our developers code, then I would expect this to
reproduce on any machine, development on win2k, or production on
linux-apache-tomcat.  Still can only find this on the linux-apache machine.

I will try the upgrade and reading up some information on garbage
collection.  If anyone else has seen this condition and been able to fix it,
please let me know what you did!

Thanks Again!

Brandon

-Original Message-
From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 8:01 PM
To: Tomcat Users List
Subject: Re: Common Problem with Tomcat/Apache (processer sticks at 97%
on linux)


At the very least, upgrade to the latest stable 3.2.x version. 3.2.1 is
quite old and had several security problems. I'm pretty sure they are about
to release 3.2.4, so that might be a good incentive. You don't have to
change any of your config files, just replace the jar files in your
TOMCAT_HOME/lib directory with the new ones.

Thanks,
--jeff

- Original Message -
From: Brandon Cruz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 5:08 PM
Subject: Common Problem with Tomcat/Apache (processer sticks at 97% on
linux)


 I am using Tomcat 3.2.1 connected to Apache via mod_jk.  For some reason,
 every once in a while, my java (Tomcat) process in linux goes up to 97%
and
 stays there until I try to stop tomcat.  Even though tomcat shuts down,
that
 process still stays all of the way up at 97% and can only be stopped by
 executing the kill command.  Does anyone know a fix for this problem,
 upgrade tomcat, upgrade linux version, upgrade jre, etc.?

 I have seen many posts on this subject before, but never a definate
answer.
 I see that many people say check the code, so I am doing that for now.
The
 only strange thing is that I can't figure out exactly what causes this to
 happen, and it can't be duplicated on development machines running tomcat
 stand alone on win2k.

 Any help would REALLY be appreciated!!!


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



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




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




RE: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Jim Urban

You must restart Tomcat for the changes to take effect.

Jim

-Original Message-
From: Samuel Rochas [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 11:16 AM
To: Tomcat Users List
Subject: Re: Authentication with Tomcat 3.2 and IIS4


Hello,

Ok, I am now able to prompt for a dialog box, asking for username and
password. So far, exactly what I wanted.

I have configured a user in the file /conf/tomcat-users.xml according to
the role defined in the role defined in the security constraint for the
application.
The trouble is that Jakarta does not regognize any of the defined user
and I can't access the page. Can somebody tell me why? Should I make
further changes in other config files?

Sincerly
Samuel

Barney Hamish wrote:

 There is also a simple xml file authentication method that Tomcat uses by
 default. You just add log-ins to an xml file. I believe there is an
example
 included with the Tomcat download (examples/jsp/security I think)

 Hamish

--
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

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



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




Re: NoClassDefFoundError: sun/tools/javac/Main

2001-11-16 Thread James Adams

I have heard that perhaps I need to make sure that tools.jar is in
Tomcat's CLASSPATH.

How can I determine the environment variables being used by Tomcat
?  Where are these set ?  I assume that there is a config file which is
handling this...

Thanks for suggestions,

-James


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




internal server error 500 with realms

2001-11-16 Thread Jeffrey Kunzelman


I'm trying to use Realms with JDBC to control access to my web 
application. I've verified the database connection and login seems to 
work as the log reports the username when trying to get a page from 
the tomcat server. I can get pages from /examples, but when I go to 
my own webapp I get an internal server error 500. with the following 
dump:

javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:518)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Unknown Source)

root cause

java.lang.StackOverflowError
at
-- 


Tomcat 4.0.1 and Struts 1.0

2001-11-16 Thread Jonathan Gerhard

I have a problem with existing struts 1.0 jsp's that work fine with Tomcat
3.3 but not with Tomcat 4.0.1.  I have an input form and submit with the
appropriate STRUTS taglibs but they fail to compile.  That is all that is in
the JSP (username and password login).  Are there any particular
configuration issues or changes in the location of configuration files,
taglibs etc that I should be aware of?  I am using the same working code
base and WEB-INF config files etc and I have created a context in the
server.xml file for my previously-working web app.  I repeat the code works
fine in Tomcat 3.3 and does not work in 4.0.1.  THis should be a
no-brainer

Jonathan

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




Realm not working within Context

2001-11-16 Thread Scott Edwards

I have a JDBC Realm which is working fine as long as it is defined
within the Engine. If I take that Realm definition and Cut-Paste it into
the Context definition I get the contextConfig.missingRealm error logged
out of ContextConfig.java.

Is there some magic that needs to be imparted to the Context tag for
the Realm tag to be recognized by the parser?

Any help would be great.

My server.xml looks like:

  !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector
className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=localhost debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

Realm  className=org.apache.catalina.realm.JDBCRealm
debug=99
   driverName=oracle.jdbc.driver.OracleDriver
   connectionName=tomcat
   connectionPassword=tomcat

connectionURL=jdbc:oracle:thin:@anakin.caresoft.com:1521:phdev1
userTable=users userNameCol=user_name
userCredCol=password
userRoleTable=user_roles roleNameCol=user_role /


  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps
unpackWARs=true



!-- Access log processes all requests for this virtual host.
By
 default, log files are created in the logs directory
relative to
 $CATALINA_HOME.  If you wish, you can specify a different
 directory with the directory attribute.  Specify either a
relative
 (to $CATALINA_HOME) or absolute path to the desired
directory.
--
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common/

!-- Logger shared by all Contexts related to this virtual
host.  By
 default (when using FileLogger), log files are created in
the logs
 directory relative to $CATALINA_HOME.  If you wish, you can
specify
 a different directory with the directory attribute.
Specify either a
 relative (to $CATALINA_HOME) or absolute path to the
desired
 directory.--
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt

 timestamp=true/

!-- Define properties for each web application.  This is only
needed
 if you want to set non-default properties, or have web
application
 document roots in places other than the virtual host's
appBase
 directory.  --

!-- Explicit Phoenix Context --
Context path= docBase=phoenix/ debug=99
reloadable=true/


  /Host

/Engine

If I move the Realm to within the Context like so:

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=localhost debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps
unpackWARs=true



!-- Access log processes all requests for this virtual host.
By
 default, log files are created in the logs directory
relative to
 $CATALINA_HOME.  If you wish, you can specify a different
 directory with the directory attribute.  Specify either a
relative
 (to $CATALINA_HOME) or absolute path to the desired
directory.
--
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common/

!-- Logger shared by all Contexts related to this virtual
host.  By
 default (when using FileLogger), log files are created in
the logs
 directory relative to $CATALINA_HOME.  If you wish, you can
specify
 a different directory with the directory attribute.
Specify either a
 relative (to $CATALINA_HOME) or absolute path to the
desired
 directory.--
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt

 timestamp=true/

!-- Define properties for each web application.  This is only
needed
 if you want to set non-default properties, or have web
application

Re: Struts 1.0 has Problems working with Tomcat 4.1

2001-11-16 Thread Scott Edwards

Hammad Said wrote:

 Struts 1.0 fails with Tomcat 4.0.1 on the Window, but woks fine with Tomcat
3.3


 Get the following error message: ( login.jsp is the page browser is trying
to access)


Login.jsp is code is:
%--%@ page import=com.agentware.web.util.WebKeys%--%

%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %

%@ taglib uri=/WEB-INF/struts-html.tld prefix=html % 
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html
head
titleLogin Demo Page/title
/head
body
brspan class=subheaderUser Login/span 
html:form action=/login/submit.do method=POST
 table border=0 width=100% cellpadding=3 cellspacing=0
bgcolor=#ff
tr 
 td class=textUser Name:/td
 td 
html:text property=userBean.userName maxlength=25 size=30/
font color = #FFhtml:errors property=userBean.userName//font
 /td
 /tr
tr 
 td class=textPassword:/td
  td  
 html:password property=userBean.password maxlength=25 size=30/
font color = #FFhtml:errors property=userBean.password//font
 /td
/tr  
 tr 
 tdnbsp;/td
td 
  html:submit property=action value=login/html:submit 
 /td
  /tr
 /table
/html:form
/body
/html

// End of Login.jsp code

 Error Message
org.apache.jasper.compiler.ParseException: /jsp/login.jsp(2,16) Attribute
has no value at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java,
Compiled Code) at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java,
Compiled Code) at
org.apache.jasper.compiler.ParserController.figureOutJspDocument(ParserContr
oller.java, Compiled Code) at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:194)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177) at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679) at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431) at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355) at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1605) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1448) at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:472) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Compiled
Code) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java,
Compiled Code) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Compiled
Code) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at

RE: Struts 1.0 has Problems working with Tomcat 4.1

2001-11-16 Thread Francis Lalonde

I had the same problem, and reverted to Tomcat 4.0 to fix it. Something to
do with the way Xerces is shared between Tomcat and the Webapp I guess.
Supplying my own XML Parser in the webapp lib didn't help.

-Original Message-
From: Hammad Said [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 17:55
To: '[EMAIL PROTECTED]'
Subject: Struts 1.0 has Problems working with Tomcat 4.1



 Struts 1.0 fails with Tomcat 4.0.1 on the Window, but woks fine with Tomcat
3.3


 Get the following error message: ( login.jsp is the page browser is trying
to access)


Login.jsp is code is:
%--%@ page import=com.agentware.web.util.WebKeys%--%

%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %

%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html
head
titleLogin Demo Page/title
/head
body
brspan class=subheaderUser Login/span
html:form action=/login/submit.do method=POST
 table border=0 width=100% cellpadding=3 cellspacing=0
bgcolor=#ff
tr
 td class=textUser Name:/td
 td
html:text property=userBean.userName maxlength=25 size=30/
font color = #FFhtml:errors property=userBean.userName//font
 /td
 /tr
tr
 td class=textPassword:/td
  td
 html:password property=userBean.password maxlength=25 size=30/
font color = #FFhtml:errors property=userBean.password//font
 /td
/tr
 tr
 tdnbsp;/td
td
  html:submit property=action value=login/html:submit
 /td
  /tr
 /table
/html:form
/body
/html

// End of Login.jsp code

 Error Message
org.apache.jasper.compiler.ParseException: /jsp/login.jsp(2,16) Attribute
has no value at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java,
Compiled Code) at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java,
Compiled Code) at
org.apache.jasper.compiler.ParserController.figureOutJspDocument(ParserContr
oller.java, Compiled Code) at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:194)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177) at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679) at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431) at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355) at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1605) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1448) at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:472) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, Compiled
Code) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java,
Compiled Code) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
Compiled Code) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code) at

Mod-jk conf question

2001-11-16 Thread Mike Kelley

Since I can't get webapp to work on a W2K to tie apache to TC I'm trying to
use  Mod-JK ... 


Apache doesn't seem to auto-gen the conf/mod_jk.conf file.

How do I accomplish this?

OS: W2K
TC: 4.0
Apache 1.3.22



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




Configuration of Domino JDBC Driver...

2001-11-16 Thread Carlos Augusto

Hi everyone:

I´m a newbee with tomcat so please bear with me...

I´m trying to install the JDBC drivers for Domino. My config is as follows:
TOMCAT: Ver 4.0.1 (STAND ALONE)
JDK: VER 1.3.1_01
DOMINO: VER: 5.0.6

I downloaded the driver form the lotus webpage and installed it according to their 
documentation.

I wrote a JSP test script but a java error occured saying that the java class for the 
driver could not be found...I checked the CLASSPATH environment variable and is 
correctly set.

1. What steps must I follow to configure tomcat to use the JDBC Driver correctly.

2. in the script how can I point to a specific .nsf database located in a subdirectory 
with in the /DATA dir (lotus:jdbc:\ /my_dir/my_db.nsf)?

3.  Do I have to do anything to the domino server to make it work or can tomcat handle 
the request by its own?

4. Does Domino web server have to be running to use the JDBC to connect to the 
database?

Thanks a lot for your help, but I feel like an idiot because I´ve been trying to get 
this thing to work for 6 hours and found no way out.

A step by step procedure would be REALLY appreciated.
==
 CARLOS AUGUSTO ABARCA B.

 Ingeniero de Desarrollo
Seguros Bolivar - TBF Sistemas
 Bogotá D.C., Colombia

 Tel. (571) 3410077  Ext. 8719
==



Re: Common Problem with Tomcat/Apache (processer sticks at 97% on linux)

2001-11-16 Thread Jeff Kilbride

- Original Message -
From: Brandon Cruz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 7:01 AM
Subject: RE: Common Problem with Tomcat/Apache (processer sticks at 97% on
linux)


 Thank you for the suggestions, so to upgrade to a newer version of tomcat
 3.2.x, all I have to do is switch jar files in tomcat_home/lib?  Do you
 think that may help with the 97% processor problem?

That's what the Readme file that comes with the distribution says -- and it
worked for me. I remember 3.2.1 (and possibly 3.2.2) having a known runaway
processor problem, but I don't remember what caused it. Something to do with
mapping a servlet incorrectly could cause a runaway, I think. I believe it
was fixed by 3.2.3. As I said, I think 3.2.4 is going to be released very
soon, so you might wait for that distro.

 As far as garbage collection, this condition stays this way, even after 12
 hours.  Would that be an indication of garbage collection or an endless
loop
 somewhere?  If it is in our developers code, then I would expect this to
 reproduce on any machine, development on win2k, or production on
 linux-apache-tomcat.  Still can only find this on the linux-apache
machine.

 I will try the upgrade and reading up some information on garbage
 collection.  If anyone else has seen this condition and been able to fix
it,
 please let me know what you did!

I doubt that it's a garbage collection issue. Try upgrading TC first to see
if it resolves your problems.

 Thanks Again!

 Brandon

--jeff


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




RE: Mod-jk conf question

2001-11-16 Thread Travis Schmid

Tomcat autogenerates that file.  You need to start Tomcat first, the Apache.
Travis

 -Original Message-
 From: Mike Kelley [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 3:20 PM
 To: 'Tomcat Users List'
 Subject: Mod-jk conf question
 
 
 Since I can't get webapp to work on a W2K to tie apache to TC 
 I'm trying to
 use  Mod-JK ... 
 
 
 Apache doesn't seem to auto-gen the conf/mod_jk.conf file.
 
 How do I accomplish this?
 
 OS: W2K
 TC: 4.0
 Apache 1.3.22
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: Mod-jk conf question

2001-11-16 Thread Mike Kelley

That's my problem,

When I try to restart/start apache I get the error ...

fopen: No such file or directory
Apache.exe: could not open document config file c:/program files/apache
group/to
mcat-4.0/conf/mod_jk.conf -auto
Note the errors or messages above, and press the ESC key to exit.  


So I'm not getting the autobuild ... Without the build I can't start apache


-Original Message-
From: Travis Schmid [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 16, 2001 4:49 PM
To: 'Tomcat Users List'
Subject: RE: Mod-jk conf question


Tomcat autogenerates that file.  You need to start Tomcat first, the Apache.
Travis

 -Original Message-
 From: Mike Kelley [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 3:20 PM
 To: 'Tomcat Users List'
 Subject: Mod-jk conf question
 
 
 Since I can't get webapp to work on a W2K to tie apache to TC
 I'm trying to
 use  Mod-JK ... 
 
 
 Apache doesn't seem to auto-gen the conf/mod_jk.conf file.
 
 How do I accomplish this?
 
 OS: W2K
 TC: 4.0
 Apache 1.3.22
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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

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




Re: NoClassDefFoundError: sun/tools/javac/Main

2001-11-16 Thread Craig R. McClanahan



On Fri, 16 Nov 2001, James Adams wrote:

 Date: Fri, 16 Nov 2001 14:33:48 -0700
 From: James Adams [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: NoClassDefFoundError: sun/tools/javac/Main

 I have heard that perhaps I need to make sure that tools.jar is in
 Tomcat's CLASSPATH.

 How can I determine the environment variables being used by Tomcat
 ?  Where are these set ?  I assume that there is a config file which is
 handling this...


For environment variable usage, it's a matter of reading the documentation
(and sometimes the code).  In the Tomcat 4 case, the environment variables
that are referenced are listed at the top of the bin/catalina.bat and
bin/catalina.sh scripts.

 Thanks for suggestions,

 -James


Craig



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




RE: Mod-jk conf question

2001-11-16 Thread Travis Schmid

Check your include line in the httpd.conf file in apache.  I think you have
added an extra space in the name of the file.  
It should be: c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf-auto
not: c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf -auto

-auto is part of the file name, not a command line flag.

Travis

 -Original Message-
 From: Mike Kelley [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 3:55 PM
 To: 'Tomcat Users List'
 Subject: RE: Mod-jk conf question
 
 
 That's my problem,
 
 When I try to restart/start apache I get the error ...
 
 fopen: No such file or directory
 Apache.exe: could not open document config file c:/program 
 files/apache
 group/to
 mcat-4.0/conf/mod_jk.conf -auto
 Note the errors or messages above, and press the ESC key to exit.  
 
 
 So I'm not getting the autobuild ... Without the build I 
 can't start apache
 
 
 -Original Message-
 From: Travis Schmid [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, November 16, 2001 4:49 PM
 To: 'Tomcat Users List'
 Subject: RE: Mod-jk conf question
 
 
 Tomcat autogenerates that file.  You need to start Tomcat 
 first, the Apache.
 Travis
 
  -Original Message-
  From: Mike Kelley [mailto:[EMAIL PROTECTED]]
  Sent: Friday, November 16, 2001 3:20 PM
  To: 'Tomcat Users List'
  Subject: Mod-jk conf question
  
  
  Since I can't get webapp to work on a W2K to tie apache to TC
  I'm trying to
  use  Mod-JK ... 
  
  
  Apache doesn't seem to auto-gen the conf/mod_jk.conf file.
  
  How do I accomplish this?
  
  OS: W2K
  TC: 4.0
  Apache 1.3.22
  
  
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: NoClassDefFoundError: sun/tools/javac/Main

2001-11-16 Thread Eric Strain

Hi James-
first, my disclaimer: I'm a C++, Visual C++, ATL, COM, DCOM guy, so I'm by 
no means a TC Guru, in fact considering the problems I've had with TC and 
Java, I hate the entire Java scene, but aside from that here's what I did:

I downloaded and extracted the JDK 1.1.8 program to my root drive C:\ ,

open a command prompt and (for win95 / 98) type

SET CLASSPATH=%CLASSPATH%;C:\...\...\*.jar (where C:\...\...\*.jaris the 
path to any jar files that you want included, if you need several *.jar 
files in your classpath each entry must be a fully qualified path to the 
target jar file and each seperate FQP (fully qualified path) must be 
seperated by a ; (no spaces)
the press enter when the edits are finished

(still at the command prompt) you can type cls to clear the screen then type 
set and press enter to double check that the classpath edits were successful

find the javac.exe program, copy your *.java  file to the same directory and 
type
javac.exe myProgram.java

if the compilation is successful you will be returned to the command prompt, 
if not then the code needs changes.




From: James Adams [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: NoClassDefFoundError: sun/tools/javac/Main
Date: Fri, 16 Nov 2001 14:33:48 -0700

I have heard that perhaps I need to make sure that tools.jar is in
Tomcat's CLASSPATH.

How can I determine the environment variables being used by Tomcat
?  Where are these set ?  I assume that there is a config file which is
handling this...

Thanks for suggestions,

-James


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



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


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




[FAQ] jGuru FAQ Update

2001-11-16 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Is there any way to change/set owner of a file that is uploaded, before it's saved to 
the filesystem?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=543979

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Is commercial support available for Tomcat?
My company is interested in purchasing technical support (24x7) for Tomcat (on 
Solaris). Does anybody know of any organisation able to offer a support service? 
(please post reply here and also email to me [EMAIL PROTECTED])
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=544502

Tomcat and WebDav Security
p
I am attempting to configure Tomcat's WebDav application 
(http://localhost:8080/webdav) to allow everyone to view the directory.  However I 
need authorized users to be able to edit the content of the directory.  
p
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=544213



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




RE: Thread pool problem in Tomcat 3.3 in Windows NT 4.0

2001-11-16 Thread Raymond Lee

Hi Larry,

Thanks for your help. Does the same bug exist in Tomcat 4.0.1? 

Cheers,
Raymond

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 10:29 PM
To: 'Tomcat Users List'
Subject: RE: Thread pool problem in Tomcat 3.3 in Windows NT 4.0


There is a bug in ThreadPool that causes it to overwrite the
settings installed by the Ajp13Connector.  This is fixed in
the nightly version of Tomcat 3.3.1 which can be found at:

http://jakarta.apache.org/builds/jakarta-tomcat/nightly-3.3/

Cheers,
Larry

 -Original Message-
 From: Raymond Lee [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 2:43 AM
 To: [EMAIL PROTECTED]
 Subject: Thread pool problem in Tomcat 3.3 in Windows NT 4.0
 
 
 Hi,
 
 I have used Tomcat 3.3 with Apache 1.3.12 as my development 
 servlet engine and 
 I have a query about thread pool of Ajp13Connector in Tomcat 3.3.
 
 I define the following setting in server.xml and I expect 
 there should be at least 100
 threads created in startup of tomcat 3.3.
 
 Ajp13Connector address=127.0.0.1 
   port=8009 
   maxThreads=500 
   maxSpareThreads=200 
   minSpareThreads=100 
   pools=true/
 
 However, I found there are only 25 threads instead of 100 
 threads created in the java virtual
 machine used by Tomcat 3.3.  I browsed so many documents 
 about Tomcat 3.3 and even
 many forums but I was unable to find any relevent information 
 about this problem. 
 
 In Tomcat 3.2, the way to define thread pool is different 
 from that of Tomcat 3.3.
 
 Is the following setting valid in Tomcat 3.3?
 
 Connector className=org.apache.tomcat.service.PoolTcpConnector
 Parameter name=handler 
 value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/
 Parameter name=port value=8007/
 Parameter name=max_threads value=150/
 Parameter name=max_spare_threads value=100/
 Parameter name=min_spare_threads value=50/
 /Connector
 
 This setting can make the java virtual machine to create at 
 least 50 threads. (I confirmed this with Task
 Manager)
 
 Does anyone know how to fix this?
 
 Thanks,
 
 Raymond Lee
 

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


Re: error-page usage in web.xml (correction)

2001-11-16 Thread Barry White

Fabien,
Just a follow-up to my previous email.
I was able to get the calling URI of the page that caused the exception
along with the time of the exception to be stored in the application log of
Tomcat (or your webapp).
In my error page (error.jsp) I put:

% // Log the calling URL to the log file.  All other info about the
exception is logged automatically.
application.log(Exception occured on page-  + (String)
request.getAttribute(javax.servlet.error.request_uri), exception);
%

This placed the calling URI and date/time in my log file as shown:

2001-11-17 01:14:26 Exception occured on page- /rfq/inqtableman.jsp
java.sql.SQLException: Error during query: Unexpected Exception:
java.sql.SQLException message given: Column not found: Unknown column
'inqmain.inqNumberZZZ' in 'order clause'
 at org.gjt.mm.mysql.Connection.execSQL(Connection.java:807)
 at org.gjt.mm.mysql.Connection.execSQL(Connection.java:740)
 at org.gjt.mm.mysql.Statement.executeQuery(Statement.java:159) . . . . . .
. (much more information written by Tomcat)

The above example is for an SQL exception, and you must have the exception
and error page defined in the web.xml file of your web application.
I did not need the code in the calling page that I wrote in the previous
email.
BTW I am using Tomcat 4.0, W2K

Hope this helps,
Barry

- Original Message -
From: Barry White [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 3:17 PM
Subject: Re: error-page usage in web.xml


 Yes are correct in stating that the 404 error is not an exception... it is
 simply file not found error and must be handled seperatly from exception
 errors.
 I am currently exploring the exception error handling/page myself.
 You can get the URL of the page as follows:

 In the page you have the error, you put:
 % request.setAttribute(sourcePage, request.getRequestURI()); %

 then in your exception error page defined in web.xml (JSP) you get the URI
 by:
 % request.getAttribute(sourcePage); %

 You would usually write the error URL in your log file for debugging
allong
 with the rest of the exception info.

 There are probably many beans available on the web that will do this quit
 nicely, but where is the fun in that?
 :)
 Barry


 - Original Message -
 From: Fabien Modoux [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, November 16, 2001 11:32 AM
 Subject: error-page usage in web.xml


  Hello,
 
  I am having trouble understanding how to properly configure
  the error-page section of my web.xml. I found some previous
  posts, but could not find enough information.
 
  There are two types of error-page element: exception-type and
  error-code. Are those complimentary -- i.e., they must both be
  defined to handle all errors -- or is there some sort of overlap?
  I did a few tests and I don't think 404 cannot be handled as an
  exception, only with the error-code element. However I am
  wondering about the difference between error-code 500 and
  exception-type java.lang.Throwable, which one is the most general
  one?
 
  I've also seen a post (#33290) saying that
 
   Within the page, you can access (among others) the following request
   attribute created by the container:
  
 %
   String requestURI = (String)
request.getAttribute(javax.servlet.error.request_uri);
 %
 
  I am using TC3.2.2 and the attribute has the value of the error
  handler page, not of the page that created the error. Is the possible
  to get the latter info?
 
  Thanks for your help,
 
  -Fabien
 
  -
  Fabien Modoux,
  Voicemate - http://www.voicemate.com
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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




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