HELP!! Container managed authentication problem with Apache 1.3 + Tomcat 4 + Warp

2002-04-01 Thread @Basebeans.com

Subject: HELP!! Container managed authentication problem with Apache 1.3 + Tomcat 4 + 
Warp
From: Hyunjin Kim [EMAIL PROTECTED]
 ===
Hi,

I have recently set up TOMCAT 4 + Apache 1.3 with ***Warp connector***.
Although I have failed to have Apache forward *.do calls to jakarta
correctly (for struts Action servlet calls), everything else seems to work
fine(it's kinda outta subject, but my struts is now configured to be called
when /execute is seen).

My problem is:

- I have set up my app with default JDBC realm container managed security,
and it works fine when called from :8080... but when I try to access the
security constrained folder (/admin in my case) through Apache(port :80), it
forwards me to the correct page(login.jsp page). However, when I put in the
correct username/password(that works find in :8080), it ALWAYS forwards me
to error page.

Strange thing is, my login attempt through apache doesn't even get logged...
When I try to log in from :8080, all my attemps are logged, like following:

2002-04-01 16:11:41 JDBCRealm[/adsf]: Username hyunjin has role
administrator
2002-04-01 16:13:12 JDBCRealm[/asdf]: Username hyunjin NOT successfully
authenticated

... Stranger thing?? after failing the login, apache will forward me to
correct login error page

Any help would be really appreciated. Thank you! (following is the web.xml
file for my webapp, although I don't think this problem is got to do with
this file..)


security-constraint
  web-resource-collection
   web-resource-nameNano-enc Administrator/web-resource-name
   url-pattern/admin/url-pattern
  /web-resource-collection
  auth-constraint
   role-nameadministrator/role-name
  /auth-constraint
 /security-constraint

 security-constraint
  web-resource-collection
   web-resource-nameIntranet Security Constraint/web-resource-name
   url-pattern/intranet/url-pattern
  /web-resource-collection
  auth-constraint
   role-nameemployee/role-name
   role-nameadministrator/role-name
  /auth-constraint
 /security-constraint

 login-config
 auth-methodFORM/auth-method
 realm-namedefault/realm-name
 form-login-config
   form-login-page/login.jsp/form-login-page
   form-error-page/loginerror.jsp/form-error-page
 /form-login-config
 /login-config








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




Re: HELP!! Container managed authentication problem with Apache 1.3 + Tomcat 4 + Warp

2002-04-01 Thread @Basebeans.com

Subject: Re: HELP!! Container managed authentication problem with Apache 1.3 + Tomcat 
4 + Warp
From: Hyunjin Kim [EMAIL PROTECTED]
 ===
Simply said,

Had anyone successfully configured and used Apache 1.3 + TOMCAT 4 + warp +
tomcat container managed security??

with emphasis on **Apache** and **Container Managed security***

Hyunjin Kim [EMAIL PROTECTED] wrote in message
news:a895t6$avb$[EMAIL PROTECTED]...
 Hi,

 I have recently set up TOMCAT 4 + Apache 1.3 with ***Warp connector***.
 Although I have failed to have Apache forward *.do calls to jakarta
 correctly (for struts Action servlet calls), everything else seems to work
 fine(it's kinda outta subject, but my struts is now configured to be
called
 when /execute is seen).

 My problem is:

 - I have set up my app with default JDBC realm container managed security,
 and it works fine when called from :8080... but when I try to access the
 security constrained folder (/admin in my case) through Apache(port :80),
it
 forwards me to the correct page(login.jsp page). However, when I put in
the
 correct username/password(that works find in :8080), it ALWAYS forwards me
 to error page.

 Strange thing is, my login attempt through apache doesn't even get
logged...
 When I try to log in from :8080, all my attemps are logged, like
following:

 2002-04-01 16:11:41 JDBCRealm[/adsf]: Username hyunjin has role
 administrator
 2002-04-01 16:13:12 JDBCRealm[/asdf]: Username hyunjin NOT successfully
 authenticated

 ... Stranger thing?? after failing the login, apache will forward me to
 correct login error page

 Any help would be really appreciated. Thank you! (following is the web.xml
 file for my webapp, although I don't think this problem is got to do with
 this file..)


 security-constraint
   web-resource-collection
web-resource-nameNano-enc Administrator/web-resource-name
url-pattern/admin/url-pattern
   /web-resource-collection
   auth-constraint
role-nameadministrator/role-name
   /auth-constraint
  /security-constraint

  security-constraint
   web-resource-collection
web-resource-nameIntranet Security Constraint/web-resource-name
url-pattern/intranet/url-pattern
   /web-resource-collection
   auth-constraint
role-nameemployee/role-name
role-nameadministrator/role-name
   /auth-constraint
  /security-constraint

  login-config
  auth-methodFORM/auth-method
  realm-namedefault/realm-name
  form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/loginerror.jsp/form-error-page
  /form-login-config
  /login-config










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




Re: Character Encoding

2002-04-01 Thread Nikola Milutinovic

 I have used: request.setCharacterEncoding(ISO-8859-1); and when I want to display 
the following line (in Danish):
 Sjclland og Rerne

Is it supposed to be ISO-8859-1, in the first place? Danish should be in the Latin-1 
subset, AFAIK.

Also, why are you setting request and complaining on what is displayed (which is 
correlated to response object)?

 I get these results:
 Mozilla (Linux OS):Sjclland og Rerne
 Netscape (Windows OS):Sjclland og Rerne
 Explorer (Windows OS):Sjýlland og ýerne

 The data are fetched from a PostgreSQL DB Server encoded to LATIN1. When I am using 
the data
 from DB directly within my JSP pages there are no problems. It is only when I am 
using the parameters
 received from other pages I see the problem with the character encoding.

One thing that might be bugging you is the encoding of the HTML document. Is it se to 
ISO-8859-1? Your page should look something like this:

% page
  contentType=text/html; charset=ISO-8859-1
%
...
html
head
  titleTest/title
  meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
  ...
/head
...

Nix.



FW: Update of address

2002-04-01 Thread Boon Kong Yip




Hi,

My new address will be listed below,

477 Jurong West St 41
#05-360
Singapore 640477


How is life? What happen to Web-Vision? Why your web site redirected to
infocommcentral. R u currently upgrading new server now?


Enjoy life.


Rdgs

Boon Kong




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




Tomcat 4 and OpenSSL

2002-04-01 Thread Jordan C N Chong

Dear all experts

I am a newbie of Tomcat. I have installed Apache-Tomcat-4.0 on my Windows
2000. However I wish to install OpenSSL, to handle the certificates. I am
not sure how to do it... I found some information about installing Tomcat3.2
with Openssl. But I couldn't find any about Tomcat4.0. Please help me. Thank
you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



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




RE: How to do filter after Servlet?

2002-04-01 Thread Cox, Charlie

look at the sample filters, you will see a call to doChain(). This is where
your servlet will be processed. Any code before it will be executed before
your servlet, and code after it will be executed after your servlet
finishes.

Charlie

 -Original Message-
 From: Alvin Wang [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 28, 2002 3:07 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Cc: SERVLET-INTEREST
 Subject: RE: How to do filter after Servlet?
 
 
 Charlie, do you mean to call doChain() in servlet? I am not sure if I
 understand you.
 
 your code means my filter code?
 put your code there means where?
 you need to call doChain() first, from where? Servlet?
 
 Sorry for my confusion. Thanks!
 
 
 
 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 28, 2002 11:23 AM
 To: 'Tomcat Users List'
 Subject: RE: How to do filter after Servlet?
 
 
 the doChain() in a filter is what calls the next filter or 
 serlvet in the
 chain, so if you want your code to process the servlet's 
 result, then you
 need to call doChain() first, then put your code there.
 
 you will need a custom HttpServletResponse object if you want 
 to view any
 part of the response.
 
 Charlie
 
  -Original Message-
  From: Alvin Wang [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, March 27, 2002 5:02 PM
  To: Tomcat Users List
  Subject: How to do filter after Servlet?
  Importance: High
 
 
  Hi! This is naive. All the examples I saw about filter are
  pre-servlet
  filters. So how to do a post-servlet filter? Do I need to setup in
  web.xml? Or do I need to do it in code (servlet/filter)?
 
  Can any guru give me a sample?
 
  Thanks a lot!
 
 
  --
  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: Reloading Web Applications without manager and without reloadable=true

2002-04-01 Thread Cox, Charlie

The role must be 'manager'. The manager app currently does not let you
specify the role to use.

Charlie

 -Original Message-
 From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 28, 2002 2:14 PM
 To: Tomcat Users List
 Subject: Re: Reloading Web Applications without manager and without
 reloadable=true
 
 
 I'm not 100% sure about this, but I'm sure someone will
 correct me if I'm wrong
 
 Isn't the manager app limited to apps within the same 
 virtual host?  So have your sysadmin create a tomcat
 virtual host just for your web app. Install the manager
 app in your virtual host under a unique context name so
 as not to conflict with the manager app for other virtual
 hosts. Then configure the role in the web.xml for YOUR manager 
 app to a custom role and create a unique username and password 
 for that role in tomcat-users.xml.
 
 Now you have access to a manager app just for your webapp. And
 your sysadmin rests easy knowing that you can't mess with anyone
 elses webapps.
 
 Jeff
 
 - Original Message - 
 From: Tarun Ramakrishna Elankath [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 27, 2002 10:28 AM
 Subject: Reloading Web Applications without manager and 
 without reloadable=true
 
 
  Hello all,
  I had asked this question previously without anybody 
 understanding. I 
  need to be able to reload my web-application *without* setting the 
  reloadable=true parameter in the context tag, when I *dont* 
 have access 
  to the manager web-application.
  Why? This is because my web-application will be on a 
 *production* server 
  where reloadable *should* be set equal to false (as the 
 documentation 
  recommends). And I will not be given access to the manager 
 application 
  because my web-application resides with web-apps of other 
 independent 
  developers. I do not want to bother my system administrator 
 for every 
  modification that I commit to the site. (Even production 
 environments 
  suffer from modification)
  Is there another way of forcing Tomcat to reload classes of 
 *only* my web 
  application? If no  such program exists then I would be grateful if 
  someone could point me towards how to write one.
  
  Any help appreciated,
  Tarun
  
  
  
  --
  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: How to do filter after Servlet?

2002-04-01 Thread Minsu Jang

You have to implement a response wrapper class to do something
with response. The wrapper class is to give successors in the filter
chain a fake output stream. The original output stream should be kept
unused.
By the way, be careful to overload ServletResponseWrapper.getOutputStream()
as well as getWriter(). These two methods are correlated, and you don't know
which methods will be used by the continuing filters and servlets in the filter chain.
If you overload just one of these two, you cannot assure a consistent
behaviour out of Tomcat.

Minsu

- Original Message - 
From: Cox, Charlie [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 8:51 PM
Subject: RE: How to do filter after Servlet?


 look at the sample filters, you will see a call to doChain(). This is where
 your servlet will be processed. Any code before it will be executed before
 your servlet, and code after it will be executed after your servlet
 finishes.
 
 Charlie
 
  -Original Message-
  From: Alvin Wang [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 28, 2002 3:07 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Cc: SERVLET-INTEREST
  Subject: RE: How to do filter after Servlet?
  
  
  Charlie, do you mean to call doChain() in servlet? I am not sure if I
  understand you.
  
  your code means my filter code?
  put your code there means where?
  you need to call doChain() first, from where? Servlet?
  
  Sorry for my confusion. Thanks!
  
  
  
  -Original Message-
  From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 28, 2002 11:23 AM
  To: 'Tomcat Users List'
  Subject: RE: How to do filter after Servlet?
  
  
  the doChain() in a filter is what calls the next filter or 
  serlvet in the
  chain, so if you want your code to process the servlet's 
  result, then you
  need to call doChain() first, then put your code there.
  
  you will need a custom HttpServletResponse object if you want 
  to view any
  part of the response.
  
  Charlie
  
   -Original Message-
   From: Alvin Wang [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, March 27, 2002 5:02 PM
   To: Tomcat Users List
   Subject: How to do filter after Servlet?
   Importance: High
  
  
   Hi! This is naive. All the examples I saw about filter are
   pre-servlet
   filters. So how to do a post-servlet filter? Do I need to setup in
   web.xml? Or do I need to do it in code (servlet/filter)?
  
   Can any guru give me a sample?
  
   Thanks a lot!
  
  
   --
   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: Kinda not topical

2002-04-01 Thread Jim Urban

I use jEdit http://jedit.org/.  Its open source and quite powerful.

Jim 

 -Original Message-
 From: Vladimir Vanyukov [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, March 31, 2002 10:07 PM
 To: Tomcat Users List
 Subject: Kinda not topical
 
 
 I just have a general question that has nothing to do with tomcat (sorry
 to clog up your mailbox)
 
 What programs do all of you use to do your coding?
 
 I ask because I want something more feature filled then a text editor,
 but something less monolithic then an IDE
 
 
 --
 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[2]: Kinda not topical

2002-04-01 Thread Tomcat Users List

Hello Jim,

Monday, April 01, 2002, 4:35:10 PM, you wrote:

Also MED editor: http://www.utopia-planitia.de/
- easy to unite different files into project;
- syntax highlight (easy customizable) for lot of file types;
- customizable actions, interface, action output redirection, ...

JU I use jEdit http://jedit.org/.  Its open source and quite powerful.

JU Jim 


 I just have a general question that has nothing to do with tomcat (sorry
 to clog up your mailbox)
 
 What programs do all of you use to do your coding?
 
 I ask because I want something more feature filled then a text editor,
 but something less monolithic then an IDE


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




Running tomcat as NT service on win 2000

2002-04-01 Thread Vadim Fainshtein

Hello.
I use win200.


Hi
May be you can help me (please). hr I did the following steps, as
described in
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html.

1. Downloaded the jk_nt_service.exe and put it into jdk1.3.1jre\bin\classic
2. Configured wrapper.properties:
wrapper.tomcat_home=C:\tomcat324
wrapper.java_home=C:\work\jdk1.3.1
3. Run:
jk_nt_service.exe -i tomcat C:\tomcat324\conf\wrapper.properties
jk_nt_service.exe -s tomcat
net start tomcat

In this step I get the following error:

A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.

I've got the same error on other computers and using Alexandria's program,
and as I understood I'm not the only one with the same problem.
May be you can help me..
Thanks in advance,
Vadim.


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




IIS dis-allowing the POST method on Servlets

2002-04-01 Thread Dirk-Willem van Gulik


I've got an IIS/5.0+Tomcat/3.3.1 on Windows 2000 installation - set up
using the binary distribution:

-   The two are integrated using the isapi filter dll.
-   IIS and (perl)cgi works fine for GET and POST. 
-   Tomcat works fine for any GET or POST to 
- either a servlet 
- or a *.jsp page
through its build in web server.
-   GET to a servlet or *.jsp through IIS work fine too.

But a POST to specifically a servlet through IIS yields:

POST /foo/servlet/Bar HTTP/1.0
Content-Type: application/x-www-form-urlencoded
...

HTTP/1.1 405 Method not allowed
Server: Microsoft-IIS/5.0
Date: Sun, 31 Mar 2002 04:36:49 GMT
Allow: OPTIONS, TRACE, GET, HEAD, PUT, DELETE
Content-Length: 3126
Content-Type: text/html

What is happening ? (To be clear - the above directly to tomcat (i.e. on
port 8080) works fine - i.e. doPost() et.al. are functional).

Will summarize.

Txs !

Dw



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




Re: Reloading Web Applications without manager and without reloadable=true

2002-04-01 Thread Jeff Larsen

Not true. I've tested with a role-name other than manager. It
is configurable in the web.xml for the manager app. See excerpt
below. (TC 4.0.3)

security-constraint
  web-resource-collection
web-resource-nameEntire Application/web-resource-name
url-pattern/*/url-patter
  /web-resource-collection
  auth-constraint
role-namemyappmanager/role-name
  /auth-constraint
/security-constraint
  
  


- Original Message - 
From: Cox, Charlie [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 6:02 AM
Subject: RE: Reloading Web Applications without manager and without reloadable=true


 The role must be 'manager'. The manager app currently does not let you
 specify the role to use.
 
 Charlie
 
  -Original Message-
  From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 28, 2002 2:14 PM
  To: Tomcat Users List
  Subject: Re: Reloading Web Applications without manager and without
  reloadable=true
  
  
  I'm not 100% sure about this, but I'm sure someone will
  correct me if I'm wrong
  
  Isn't the manager app limited to apps within the same 
  virtual host?  So have your sysadmin create a tomcat
  virtual host just for your web app. Install the manager
  app in your virtual host under a unique context name so
  as not to conflict with the manager app for other virtual
  hosts. Then configure the role in the web.xml for YOUR manager 
  app to a custom role and create a unique username and password 
  for that role in tomcat-users.xml.
  
  Now you have access to a manager app just for your webapp. And
  your sysadmin rests easy knowing that you can't mess with anyone
  elses webapps.
  
  Jeff
  
  - Original Message - 
  From: Tarun Ramakrishna Elankath [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, March 27, 2002 10:28 AM
  Subject: Reloading Web Applications without manager and 
  without reloadable=true
  
  
   Hello all,
   I had asked this question previously without anybody 
  understanding. I 
   need to be able to reload my web-application *without* setting the 
   reloadable=true parameter in the context tag, when I *dont* 
  have access 
   to the manager web-application.
   Why? This is because my web-application will be on a 
  *production* server 
   where reloadable *should* be set equal to false (as the 
  documentation 
   recommends). And I will not be given access to the manager 
  application 
   because my web-application resides with web-apps of other 
  independent 
   developers. I do not want to bother my system administrator 
  for every 
   modification that I commit to the site. (Even production 
  environments 
   suffer from modification)
   Is there another way of forcing Tomcat to reload classes of 
  *only* my web 
   application? If no  such program exists then I would be grateful if 
   someone could point me towards how to write one.
   
   Any help appreciated,
   Tarun
   
   
   
   --
   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: taglib and contextPath

2002-04-01 Thread Jeff Larsen


HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();

This request object can then be used just like in a servlet.

Jeff

- Original Message - 
From: Zsolt Koppany [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 31, 2002 3:21 AM
Subject: taglib and contextPath


 Hi,
 
 from a taglib class I have to write links (A HREF=.../A) with context 
 dependent paths. From a servlet I use request.getContextPath()...
 How can I do the same from a taglib class?
 
 -- 
 Zsolt Koppany
 
 --
 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: appBase and virtual hosts

2002-04-01 Thread Jeff Larsen

You need separate webapp directories for each virtual host. Otherwise
Tomcat will autodeploy everything it finds in your webapp directory, even
if the app is supposed to belong to another virtual host.

Jeff


- Original Message - 
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 31, 2002 3:15 AM
Subject: appBase and virtual hosts


 If you have a virtual host that you want to run the application my_app at 
 CATALINA_HOME/webapps/my_app, what is the value you use for appBase?  How 
 do you refer to only my_app and not to all applications in the webapps file 
 holding other applications for other virtual hosts?
 
 Thanks for assistance.
 
 
 
 --
 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]




Where is authentication information stored in the session?

2002-04-01 Thread Wellie W. Chao

I got container-managed form-based authentication and logout working
properly, and I'm just curious: where does Tomcat store the user
information? It doesn't seem to create any new attributes for the
authentication information. Is that purely internal and completely hidden
from the application developer?


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




How to debug Tomcat itself?

2002-04-01 Thread Nikola Milutinovic

Hi all.

I would like to get some advice on debugging Tomcat itself. I have downloaded 
Tomcat-4.0.3-src and managed to make a JBuilder 6 project out of it.

I can start Tomcat and I can enter a debugging session. My main goal is to see 
what is going on with those JNDI JDBC resources (JNDI troubles - several threads).

I figured that my main problem lies in TyrexDataSourceFactory class, since it 
reads JNDI object and tries to create a DataSource object out of it. It is 
surrounded by one large try {} catch() clause, which masks all exceptions and 
just returns null, without logging anything at all.

So, I compiled everything and set a breakpoint in:

TyrexDataSourceFactory-getObjectInstance()

but JBuilder never stops there. I also tried to run step by step, but JBuilder 
gets lost around XML parsing code (enters an interface source, insted of 
implementation).

QUESTIONS
-

1. Any immediate advice?

2. What is the flow of operations?

3. When is Tyrex actually invoked? Upon parsing or upon deploying a context?

Nix.


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




RE: Reloading Web Applications without manager and without reloadable=true

2002-04-01 Thread Cox, Charlie

I stand corrected. I didn't think you could override the default manager
role since it is not defined in the web.xml. 

So you have manager working with a user without the 'manager' role? Or are
you adding another role requirement to to the manager path? This is what it
appears that you are doing in the example as opposed to replacing 'manager'
with 'myappmanager'.

Certainly you could add another role requirement on top of manager - you
would just have to make sure that each webapp's manager does the same if you
want users to only have access to their own app.

Charlie

 -Original Message-
 From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 01, 2002 10:34 AM
 To: Tomcat Users List
 Subject: Re: Reloading Web Applications without manager and without
 reloadable=true
 
 
 Not true. I've tested with a role-name other than manager. It
 is configurable in the web.xml for the manager app. See excerpt
 below. (TC 4.0.3)
 
 security-constraint
   web-resource-collection
 web-resource-nameEntire Application/web-resource-name
 url-pattern/*/url-patter
   /web-resource-collection
   auth-constraint
 role-namemyappmanager/role-name
   /auth-constraint
 /security-constraint
   
   
 
 
 - Original Message - 
 From: Cox, Charlie [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, April 01, 2002 6:02 AM
 Subject: RE: Reloading Web Applications without manager and 
 without reloadable=true
 
 
  The role must be 'manager'. The manager app currently does 
 not let you
  specify the role to use.
  
  Charlie
  
   -Original Message-
   From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, March 28, 2002 2:14 PM
   To: Tomcat Users List
   Subject: Re: Reloading Web Applications without manager 
 and without
   reloadable=true
   
   
   I'm not 100% sure about this, but I'm sure someone will
   correct me if I'm wrong
   
   Isn't the manager app limited to apps within the same 
   virtual host?  So have your sysadmin create a tomcat
   virtual host just for your web app. Install the manager
   app in your virtual host under a unique context name so
   as not to conflict with the manager app for other virtual
   hosts. Then configure the role in the web.xml for YOUR manager 
   app to a custom role and create a unique username and password 
   for that role in tomcat-users.xml.
   
   Now you have access to a manager app just for your webapp. And
   your sysadmin rests easy knowing that you can't mess with anyone
   elses webapps.
   
   Jeff
   
   - Original Message - 
   From: Tarun Ramakrishna Elankath [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, March 27, 2002 10:28 AM
   Subject: Reloading Web Applications without manager and 
   without reloadable=true
   
   
Hello all,
I had asked this question previously without anybody 
   understanding. I 
need to be able to reload my web-application *without* 
 setting the 
reloadable=true parameter in the context tag, when I *dont* 
   have access 
to the manager web-application.
Why? This is because my web-application will be on a 
   *production* server 
where reloadable *should* be set equal to false (as the 
   documentation 
recommends). And I will not be given access to the manager 
   application 
because my web-application resides with web-apps of other 
   independent 
developers. I do not want to bother my system administrator 
   for every 
modification that I commit to the site. (Even production 
   environments 
suffer from modification)
Is there another way of forcing Tomcat to reload classes of 
   *only* my web 
application? If no  such program exists then I would be 
 grateful if 
someone could point me towards how to write one.

Any help appreciated,
Tarun



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




Direct login without login form between pages

2002-04-01 Thread Wellie W. Chao

I've got container-managed form-based login working fine under the following
scenario:

User starts on page A, which is accessible by all visitors, including
unauthenticated visitors. User clicks on a link to page B, which requires a
role of 'admin'. In this case, Tomcat brings up a login form and the user
enters information, then is directed to page B.

Here is an alternate scenario I would also like to get working:

User starts on page A, which has a login box in the upper right hand corner.
User enters information that maps to an 'admin' role. User is directed to
page B, which is the welcome page for admin users.

Does anyone know how to get the second scenario working? I have tried a form
with method=POST and action=j_security_check, but it seems you can't
specify the login URL as a direct action, and anyway I'm not sure how I tell
Tomcat to go to page B. Is there a way to tell Tomcat, hey, I want you to
authenticate the user with this information and then go to page X with a
certain URL?


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




Re: custom Resources class

2002-04-01 Thread Craig R. McClanahan



On Sun, 31 Mar 2002, Vladimir Vanyukov wrote:

 Date: Sun, 31 Mar 2002 23:10:49 -0500
 From: Vladimir Vanyukov [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: custom Resources class

 Does anyone know where I can get some decent info on writing my own
 class to use in the Resources element in server.xml. What I want to be
 able to do is have tomcat obtain all of its static resources (i.e.
 .class files, JSP pages, HTML, .properties, etc) from a database using
 JDBC.


Deep down inside of Tomcat 4, the Resources implementation class is a
javax.naming.directory.DirContext implementation (from the JNDI API).
You will want to get the JNDI specs (http://java.sun.com/products/jndi) as
you look into this.

A good starting point would be to look at the following classes in the
org.apache.naming.resources package:
* BaseDirContext - Convenience base class for resources implementations
* FileDirContext - Implementation used when you run a webapp from an
  unpacked directory
* WARDirContext - Implementation used when you run a webapp directly
  from a WAR file

The mechanism by which the right resources implementation is selected is a
little obtuse, and I've never actually tried replacing it via the
Resources element, but it should be possible.

 ANY help you be greatly appreciated!
 Vlad


Craig


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




Re: Reloading Web Applications without manager and without reloadable=true

2002-04-01 Thread Jeff Larsen

As long as the role-name in the manager app web.xml matches
the role assigned to a user in tomcat-users.xml, it works.

- Original Message - 
From: Cox, Charlie [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 10:15 AM
Subject: RE: Reloading Web Applications without manager and without reloadable=true


 I stand corrected. I didn't think you could override the default manager
 role since it is not defined in the web.xml. 
 
 So you have manager working with a user without the 'manager' role? Or are
 you adding another role requirement to to the manager path? This is what it
 appears that you are doing in the example as opposed to replacing 'manager'
 with 'myappmanager'.
 
 Certainly you could add another role requirement on top of manager - you
 would just have to make sure that each webapp's manager does the same if you
 want users to only have access to their own app.
 
 Charlie
 
  -Original Message-
  From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 01, 2002 10:34 AM
  To: Tomcat Users List
  Subject: Re: Reloading Web Applications without manager and without
  reloadable=true
  
  
  Not true. I've tested with a role-name other than manager. It
  is configurable in the web.xml for the manager app. See excerpt
  below. (TC 4.0.3)
  
  security-constraint
web-resource-collection
  web-resource-nameEntire Application/web-resource-name
  url-pattern/*/url-patter
/web-resource-collection
auth-constraint
  role-namemyappmanager/role-name
/auth-constraint
  /security-constraint


  
  
  - Original Message - 
  From: Cox, Charlie [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Monday, April 01, 2002 6:02 AM
  Subject: RE: Reloading Web Applications without manager and 
  without reloadable=true
  
  
   The role must be 'manager'. The manager app currently does 
  not let you
   specify the role to use.
   
   Charlie
   
-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 2:14 PM
To: Tomcat Users List
Subject: Re: Reloading Web Applications without manager 
  and without
reloadable=true


I'm not 100% sure about this, but I'm sure someone will
correct me if I'm wrong

Isn't the manager app limited to apps within the same 
virtual host?  So have your sysadmin create a tomcat
virtual host just for your web app. Install the manager
app in your virtual host under a unique context name so
as not to conflict with the manager app for other virtual
hosts. Then configure the role in the web.xml for YOUR manager 
app to a custom role and create a unique username and password 
for that role in tomcat-users.xml.

Now you have access to a manager app just for your webapp. And
your sysadmin rests easy knowing that you can't mess with anyone
elses webapps.

Jeff

- Original Message - 
From: Tarun Ramakrishna Elankath [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 10:28 AM
Subject: Reloading Web Applications without manager and 
without reloadable=true


 Hello all,
 I had asked this question previously without anybody 
understanding. I 
 need to be able to reload my web-application *without* 
  setting the 
 reloadable=true parameter in the context tag, when I *dont* 
have access 
 to the manager web-application.
 Why? This is because my web-application will be on a 
*production* server 
 where reloadable *should* be set equal to false (as the 
documentation 
 recommends). And I will not be given access to the manager 
application 
 because my web-application resides with web-apps of other 
independent 
 developers. I do not want to bother my system administrator 
for every 
 modification that I commit to the site. (Even production 
environments 
 suffer from modification)
 Is there another way of forcing Tomcat to reload classes of 
*only* my web 
 application? If no  such program exists then I would be 
  grateful if 
 someone could point me towards how to write one.
 
 Any help appreciated,
 Tarun
 
 
 
 --
 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: 

Mapping *.abc requests to Tomcat

2002-04-01 Thread Alan Williamson

All,

I have been having lots of fun attempting to setup Apache/Tomcat on my
MacOS-X box.  We have been using the older Apache/JServ combination for
years now with no problems whatsoever.  However the move to Tomcat has been
more than painful.   I have managed to get it to do many wonderful things,
but nothing close to the way JServ use to work.

Here is the problem.

We have the ApacheWebServer (AWS) and we wish it to handle a number of
Virtual Hosts.  No big deal there.  Each of the these virtual hosts has its
own document root and various other configurations.  So far so good.  We
have a special file extension, [*.abc] that must be passed to a particular
servlet for processing.  These files are everywhere.

So ... we want a file that ends with .abc to be processed by Tomcat.  

After much buggering around with Tomcat4.0 we could only get it to process
all files; ie the main ApacheWebServer was taken out of the loop and was not
even doing the static files such as images etc.  Read somewhere on Google,
that Tomcat4.0 couldn't do this just yet, but move down to Tomcat3.  To
which we did.

Moved down to Tomcat3.0.  Modified the {tomcat}/conf/web.xml and added in
our mappings ... but this never made a difference.  Our servlet is to load
at startup and nothing.  It wouldn't load for love'nor'money.  So we moved
it to {tomcat}/webapps/ROOT/WEB-INF/web.xml and it loaded there with no
problems.  However still doesn't get hit.

Here is the relevant section from Apache's httpd.conf:

--] httpd.conf  
ApJservManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel info
ApJservDefaultPort 9007
AddType text/abc .abc
AddHandler jserv-servlet .abc
ApJServLogFile /tmp/mod_jserv.log
-

I have attempted adding [ApServMount / /root] but that doesn't seem to make
a different, except our ABC files are sent back to us as plain text!

--] server.xml---

Host name=www2.myhost.org
  Context path= 
   docBase=/home/webroot/www2.myhost.org 
   reloadable=false 
debug=1 /
/Host
-

So ... the question's are:

Q1. I feel so close ... but no cigar.  What am i missing?

Q2. Should {tomcat}/conf/web.xml be getting read?

Q3. How do i setup Tomcat 3 (or 4) so that .abc are processed across all
VH's and across all directories.


thank you very much,

alan


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




Re: Mapping *.abc requests to Tomcat

2002-04-01 Thread costinm


First question - with tomcat3.x, are you still using mod_jserv ? If it 
worked before with jserv, it should still work with the exactly same 
apache config and module as before, assuming you have a 'recent' 
mod_jserv ( i.e. 1..2 years old - but I think '99 would work too ).
Just replace the java jserv with tomcat. 

If you use mod_jk - the same apache settings and module will work with 
both tomcat3.x and 4.x. You probably need 

 JkMount *.abc WORKER_NAME
( where WORKER_NAME is typically ajp13 or whatever you define in 
workers.properties )

Costin


On Mon, 1 Apr 2002, Alan Williamson wrote:

 After much buggering around with Tomcat4.0 we could only get it to process
 all files; ie the main ApacheWebServer was taken out of the loop and was not
 even doing the static files such as images etc.  Read somewhere on Google,
 that Tomcat4.0 couldn't do this just yet, but move down to Tomcat3.  To
 which we did.
 
 Moved down to Tomcat3.0.  Modified the {tomcat}/conf/web.xml and added in
 our mappings ... but this never made a difference.  Our servlet is to load
 at startup and nothing.  It wouldn't load for love'nor'money.  So we moved
 it to {tomcat}/webapps/ROOT/WEB-INF/web.xml and it loaded there with no
 problems.  However still doesn't get hit.
 
 Here is the relevant section from Apache's httpd.conf:
 
 --] httpd.conf  
 ApJservManual on
 ApJServDefaultProtocol ajpv12
 ApJServSecretKey DISABLED
 ApJServMountCopy on
 ApJServLogLevel info
 ApJservDefaultPort 9007
 AddType text/abc .abc
 AddHandler jserv-servlet .abc
 ApJServLogFile /tmp/mod_jserv.log
 -
 
 I have attempted adding [ApServMount / /root] but that doesn't seem to make
 a different, except our ABC files are sent back to us as plain text!
 
 --] server.xml---
 
 Host name=www2.myhost.org
   Context path= 
docBase=/home/webroot/www2.myhost.org 
reloadable=false 
 debug=1 /
 /Host
 -
 
 So ... the question's are:
 
 Q1. I feel so close ... but no cigar.  What am i missing?
 
 Q2. Should {tomcat}/conf/web.xml be getting read?
 
 Q3. How do i setup Tomcat 3 (or 4) so that .abc are processed across all
 VH's and across all directories.
 
 
 thank you very much,
 
 alan
 
 
 --
 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: Mapping *.abc requests to Tomcat

2002-04-01 Thread Alan Williamson

Thanks for that Costin ... however ... i am on a new server ... everyone has
been raving about the Apple so i am moving up to that!  :)

With respect to the mod_jk library ... whats the difference with this and
mod_jserv?

Also ... if i use that method ... does all the .properties files that were
with JServ of yore, come back into action again?

thanks
a


||| -Original Message-
||| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
||| Sent: 01 April 2002 18:43
||| To: Tomcat Users List
||| Subject: Re: Mapping *.abc requests to Tomcat
||| 
||| 
||| 
||| First question - with tomcat3.x, are you still using 
||| mod_jserv ? If it 
||| worked before with jserv, it should still work with the 
||| exactly same 
||| apache config and module as before, assuming you have a 'recent' 
||| mod_jserv ( i.e. 1..2 years old - but I think '99 would work too ).
||| Just replace the java jserv with tomcat. 
||| 
||| If you use mod_jk - the same apache settings and module 
||| will work with 
||| both tomcat3.x and 4.x. You probably need 
||| 
|||  JkMount *.abc WORKER_NAME
||| ( where WORKER_NAME is typically ajp13 or whatever you define in 
||| workers.properties )
||| 
||| Costin
||| 
||| 
||| On Mon, 1 Apr 2002, Alan Williamson wrote:
||| 
|||  After much buggering around with Tomcat4.0 we could only 
||| get it to process
|||  all files; ie the main ApacheWebServer was taken out of 
||| the loop and was not
|||  even doing the static files such as images etc.  Read 
||| somewhere on Google,
|||  that Tomcat4.0 couldn't do this just yet, but move down 
||| to Tomcat3.  To
|||  which we did.
|||  
|||  Moved down to Tomcat3.0.  Modified the 
||| {tomcat}/conf/web.xml and added in
|||  our mappings ... but this never made a difference.  Our 
||| servlet is to load
|||  at startup and nothing.  It wouldn't load for 
||| love'nor'money.  So we moved
|||  it to {tomcat}/webapps/ROOT/WEB-INF/web.xml and it loaded 
||| there with no
|||  problems.  However still doesn't get hit.
|||  
|||  Here is the relevant section from Apache's httpd.conf:
|||  
|||  --] httpd.conf  
|||  ApJservManual on
|||  ApJServDefaultProtocol ajpv12
|||  ApJServSecretKey DISABLED
|||  ApJServMountCopy on
|||  ApJServLogLevel info
|||  ApJservDefaultPort 9007
|||  AddType text/abc .abc
|||  AddHandler jserv-servlet .abc
|||  ApJServLogFile /tmp/mod_jserv.log
|||  -
|||  
|||  I have attempted adding [ApServMount / /root] but that 
||| doesn't seem to make
|||  a different, except our ABC files are sent back to us as 
||| plain text!
|||  
|||  --] server.xml---
|||  
|||  Host name=www2.myhost.org
|||Context path= 
||| docBase=/home/webroot/www2.myhost.org 
||| reloadable=false 
|||  debug=1 /
|||  /Host
|||  -
|||  
|||  So ... the question's are:
|||  
|||  Q1. I feel so close ... but no cigar.  What am i missing?
|||  
|||  Q2. Should {tomcat}/conf/web.xml be getting read?
|||  
|||  Q3. How do i setup Tomcat 3 (or 4) so that .abc are 
||| processed across all
|||  VH's and across all directories.
|||  
|||  
|||  thank you very much,
|||  
|||  alan
|||  
|||  
|||  --
|||  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: Mapping *.abc requests to Tomcat

2002-04-01 Thread Alan Williamson


||| If you use mod_jk - the same apache settings and module 
||| will work with both tomcat3.x and 4.x. You probably need 
snip

Costin, first of all thank you for all your help ... the mod_jk worked a
treat.  I had a bit of searching to find a binary for it for the Mac
platform, but once i had that, i plumbed it into the Tomcat4 installation,
and boom, the whole thing burst into life!!!  Boy am i a happy man!!

Quick question:

What is the recommended order for startup?



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




mod_jk and load balancing

2002-04-01 Thread PERIYANAN,VISWA (Non-HP-Cupertino,ex1)

Hi,
  I am using two tomcat severs load balanced by mod_jk(with apache).
  The load factor (as specified in the workers.properties) for the both the
tomcat servers are the equal.
  
  To test whether the load is being distributed equally, I sent 
  100 requests to the apache server. The servlet code under both tomcat
being identical, I found that
  
  When the servlet to which the request is being sent responds quickly
  (less than few seconds), the number of request sent to both tomcat1 
  and tomcat2 were equal (50 requests each).
  
  When the servlet take a longer time (say 3 minutes)
  to respond, the request distribution is not so equal (3 request for one
server and 97 for the other).
  I did a Thread.sleep(1000*60*3) to delay the response.
  

  Is there any way I can make the load balancer distribute the load equally
among the servers?

viswa.

  
  
  
 
   
  

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




Log File Error

2002-04-01 Thread Scott Purcell

Hello,
I somehow foobared my Tomcat on NT install. I did not touch the server.xml file, but 
did play with the class path.

When I try and do a start : startup at the command line, if just begins it tries to 
start and dies.

I checked my java_home and it is good. I can't figure out why its erroring.

I went to the tomcat_home/logs and killed them out, and tried to restart, but it does 
not make a log for this problem. How can I tell what the error is?

Thanks,
Scott


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




Process for using Manager reload of war file?

2002-04-01 Thread David M. Karr

I'm trying to understand the complete process of getting the Manager
application to completely reload a rebuilt application.

I'm on Win2k, with TC 4.0.4b2, and JDK 1.4.0.

With Tomcat down, I make sure I have a valid WAR file copied into webapps, and
the unpacked directory is gone.

I then start Tomcat and test the app.

Now, I make a minor change to one JSP file and rebuild the WAR file.

At this point, I've tried various things, starting with copying the new WAR
file into webapps.  I've tried the reload op.  I've tried using stop, and
then start.  I've tried deleting the unpacked directory, but while Tomcat is
running, this never completes (Tomcat probably has something open).  None of
these things seem to result in Tomcat reloading the app.  When I retest the
app, it doesn't show the minor change I made to the JSP.

I've verified that the Manager app basically works, as I can execute the list
operation, and I can use stop and start on an app to see its different
output in the list output.

I'm just using wget to interface to the Manager app, writing results to
standard output.

I wondered whether the unpackWARs attribute in my Context element in
server.xml would make it NOT unpack the WAR into the directory, but this
seemed to have no effect.  I set this to false, made sure the unpacked
directory was gone, restarted Tomcat, and it unpacked the WAR again.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




losing session info with netscape 4.x

2002-04-01 Thread Huy K Dung

Hi,

I am using tomcat 3.3.1, apache 1.3.24, turbine 2.1 to develop my web app.
Everything seems to work fine with IE 5.5 and netscape 6.x and even netscape
4.x. What I've noticed is that when I use popup windows, netscape 4.x
doesn't seem to have the right info from session.

From main netscape window I click to open a 1st popup window, and from the
1st popup window I click to open a 2nd popup windows. When I perform an
action from the 2nd popup window, it closes it self and refresh the 1st
popup. The 1st popup doesn't seem to have the right session info. And the
same thing happens to the main window when I perform an action on the 1st
popup. None of this happens to IE 5.5 or netscape 6.x.

Does anyone come across this problem before? Work around? Please HELP!!!

Thanks in advance!!!



Missing web.xml

2002-04-01 Thread Jason Johnston

I've installed the tomcat engine on an NT Server 4.0 machine.  I've been compiling and 
running test servlets and jsp's but I can't get custom web.xml's to work.

I've run through the example on O'reilly's  site:

http://www.onjava.com/lpt/a//onjava/2001/04/19/tomcat.html

However, I keep getting the error:

2002-04-01 16:37:17 ContextConfig[/onjava]: Missing application web.xml, using 
defaults only

in my log file.

My directory structure is correct and my WEB-INF is in all uppercase(at the DOS 
prompt, it won't show uppercase through windows explorer).  If anyone has any insight 
that can help, I would appreciate it.



Re: Process for using Manager reload of war file?

2002-04-01 Thread Jeff Larsen

Here's the deal with unpacking of war files: It only 
happens when Tomcat starts and autodeploys apps that
do not otherwise have a Context element in server.xml.

If you manually define the context, it won't unpack the war file!
If you update the war file and reload, it won't re-unpack the war file!
Absolutly NOTHING will get tomcat to re-unpack a war file except 
stopping tomcat, manually deleting the unpacked directory, and
restarting tomcat.  And again, it ONLY unpacks auto-deployed apps.

I've given up on war files, because I need my app unpacked so Apache
can serve the static content. Luckily, I have an ftp client (CuteFTP) 
than can upload an entire directory structure with one command. Then, 
with the files already unpacked (I have reloadable=false in my Context),
I use the manager app to reload my application.

Personally, I fail to see the purpose of auto-unpacking of war
files if the only way to reload is to manually delete the unpacked
directory (Tomcat developers: are you listening?!?!?). It has caused
myself and many other contributors to this list more headaches than 
it is worth.

My $0.02, 

Jeff


- Original Message - 
From: David M. Karr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 4:39 PM
Subject: Process for using Manager reload of war file?


 I'm trying to understand the complete process of getting the Manager
 application to completely reload a rebuilt application.
 
 I'm on Win2k, with TC 4.0.4b2, and JDK 1.4.0.
 
 With Tomcat down, I make sure I have a valid WAR file copied into webapps, and
 the unpacked directory is gone.
 
 I then start Tomcat and test the app.
 
 Now, I make a minor change to one JSP file and rebuild the WAR file.
 
 At this point, I've tried various things, starting with copying the new WAR
 file into webapps.  I've tried the reload op.  I've tried using stop, and
 then start.  I've tried deleting the unpacked directory, but while Tomcat is
 running, this never completes (Tomcat probably has something open).  None of
 these things seem to result in Tomcat reloading the app.  When I retest the
 app, it doesn't show the minor change I made to the JSP.
 
 I've verified that the Manager app basically works, as I can execute the list
 operation, and I can use stop and start on an app to see its different
 output in the list output.
 
 I'm just using wget to interface to the Manager app, writing results to
 standard output.
 
 I wondered whether the unpackWARs attribute in my Context element in
 server.xml would make it NOT unpack the WAR into the directory, but this
 seemed to have no effect.  I set this to false, made sure the unpacked
 directory was gone, restarted Tomcat, and it unpacked the WAR again.
 
 -- 
 ===
 David M. Karr  ; Java/J2EE/XML/Unix/C++
 [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: Process for using Manager reload of war file?

2002-04-01 Thread Jeff Larsen

I forgot to mention:

If you can live without unpacked war files, set unpackWARs=false
in your Host and/or define your Context with docBase=myapp.war
and reloadable=false.

Then the manager app will successfully reload (but not unpack) your
war file.

Jeff

- Original Message - 
From: Jeff Larsen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 5:19 PM
Subject: Re: Process for using Manager reload of war file?


 Here's the deal with unpacking of war files: It only 
 happens when Tomcat starts and autodeploys apps that
 do not otherwise have a Context element in server.xml.
 
 If you manually define the context, it won't unpack the war file!
 If you update the war file and reload, it won't re-unpack the war file!
 Absolutly NOTHING will get tomcat to re-unpack a war file except 
 stopping tomcat, manually deleting the unpacked directory, and
 restarting tomcat.  And again, it ONLY unpacks auto-deployed apps.
 
 I've given up on war files, because I need my app unpacked so Apache
 can serve the static content. Luckily, I have an ftp client (CuteFTP) 
 than can upload an entire directory structure with one command. Then, 
 with the files already unpacked (I have reloadable=false in my Context),
 I use the manager app to reload my application.
 
 Personally, I fail to see the purpose of auto-unpacking of war
 files if the only way to reload is to manually delete the unpacked
 directory (Tomcat developers: are you listening?!?!?). It has caused
 myself and many other contributors to this list more headaches than 
 it is worth.
 
 My $0.02, 
 
 Jeff
 
 
 - Original Message - 
 From: David M. Karr [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 01, 2002 4:39 PM
 Subject: Process for using Manager reload of war file?
 
 
  I'm trying to understand the complete process of getting the Manager
  application to completely reload a rebuilt application.
  
  I'm on Win2k, with TC 4.0.4b2, and JDK 1.4.0.
  
  With Tomcat down, I make sure I have a valid WAR file copied into webapps, and
  the unpacked directory is gone.
  
  I then start Tomcat and test the app.
  
  Now, I make a minor change to one JSP file and rebuild the WAR file.
  
  At this point, I've tried various things, starting with copying the new WAR
  file into webapps.  I've tried the reload op.  I've tried using stop, and
  then start.  I've tried deleting the unpacked directory, but while Tomcat is
  running, this never completes (Tomcat probably has something open).  None of
  these things seem to result in Tomcat reloading the app.  When I retest the
  app, it doesn't show the minor change I made to the JSP.
  
  I've verified that the Manager app basically works, as I can execute the list
  operation, and I can use stop and start on an app to see its different
  output in the list output.
  
  I'm just using wget to interface to the Manager app, writing results to
  standard output.
  
  I wondered whether the unpackWARs attribute in my Context element in
  server.xml would make it NOT unpack the WAR into the directory, but this
  seemed to have no effect.  I set this to false, made sure the unpacked
  directory was gone, restarted Tomcat, and it unpacked the WAR again.
  
  -- 
  ===
  David M. Karr  ; Java/J2EE/XML/Unix/C++
  [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: losing session info with netscape 4.x

2002-04-01 Thread Jeff Larsen

Netscape 4.x has been working for me in this type of situation, 
but the value of .x might make a difference. Do you have cookies
enabled? If not, does your javascript for opening the popup window
use a correctly encoded URL so the popup window's request has the
session id built in? For debugging, configure your popup window with
an address bar so you can see the sessionid in the URL.

Jeff

- Original Message - 
From: Huy K Dung [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 4:59 PM
Subject: losing session info with netscape 4.x


 Hi,
 
 I am using tomcat 3.3.1, apache 1.3.24, turbine 2.1 to develop my web app.
 Everything seems to work fine with IE 5.5 and netscape 6.x and even netscape
 4.x. What I've noticed is that when I use popup windows, netscape 4.x
 doesn't seem to have the right info from session.
 
 From main netscape window I click to open a 1st popup window, and from the
 1st popup window I click to open a 2nd popup windows. When I perform an
 action from the 2nd popup window, it closes it self and refresh the 1st
 popup. The 1st popup doesn't seem to have the right session info. And the
 same thing happens to the main window when I perform an action on the 1st
 popup. None of this happens to IE 5.5 or netscape 6.x.
 
 Does anyone come across this problem before? Work around? Please HELP!!!
 
 Thanks in advance!!!
 

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




RE: losing session info with netscape 4.x

2002-04-01 Thread Huy K Dung

netscape 4.79 in particular. Accept all cookies option is selected.

I will try your suggestion and see what it will do.

Thanks.

PS. how do you correctly encode URL?

-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 06:29 PM
To: Tomcat Users List; Huy K. Dung
Subject: Re: losing session info with netscape 4.x


Netscape 4.x has been working for me in this type of situation,
but the value of .x might make a difference. Do you have cookies
enabled? If not, does your javascript for opening the popup window
use a correctly encoded URL so the popup window's request has the
session id built in? For debugging, configure your popup window with
an address bar so you can see the sessionid in the URL.

Jeff

- Original Message -
From: Huy K Dung [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 4:59 PM
Subject: losing session info with netscape 4.x


 Hi,

 I am using tomcat 3.3.1, apache 1.3.24, turbine 2.1 to develop my web app.
 Everything seems to work fine with IE 5.5 and netscape 6.x and even
netscape
 4.x. What I've noticed is that when I use popup windows, netscape 4.x
 doesn't seem to have the right info from session.

 From main netscape window I click to open a 1st popup window, and from the
 1st popup window I click to open a 2nd popup windows. When I perform an
 action from the 2nd popup window, it closes it self and refresh the 1st
 popup. The 1st popup doesn't seem to have the right session info. And the
 same thing happens to the main window when I perform an action on the 1st
 popup. None of this happens to IE 5.5 or netscape 6.x.

 Does anyone come across this problem before? Work around? Please HELP!!!

 Thanks in advance!!!


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



Re: Mapping *.abc requests to Tomcat

2002-04-01 Thread @Basebeans.com

Subject: Re: Mapping *.abc requests to Tomcat
From: Hyunjin Kim [EMAIL PROTECTED]
 ===
when stopping:
1. stop apache
2. stop tomcat

when starting
1. start tomcat
2. start apache (someone says 10 seconds delay between starting of tomcat
and apache is needed..)

Good luck!


Alan Williamson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...

 ||| If you use mod_jk - the same apache settings and module
 ||| will work with both tomcat3.x and 4.x. You probably need
 snip

 Costin, first of all thank you for all your help ... the mod_jk worked a
 treat.  I had a bit of searching to find a binary for it for the Mac
 platform, but once i had that, i plumbed it into the Tomcat4 installation,
 and boom, the whole thing burst into life!!!  Boy am i a happy man!!

 Quick question:

 What is the recommended order for startup?



 --
 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!! Container managed authentication problem with Apache 1.3 + Tomcat 4 + Warp

2002-04-01 Thread @Basebeans.com

Subject: Re: HELP!! Container managed authentication problem with Apache 1.3 + Tomcat 
4 + Warp
From: Hyunjin Kim [EMAIL PROTECTED]
 ===
uh oh...

I just found out that tomcat example application's security stuff works fine
from port 80. That means the apache-tomcat connection was not the problem...


I also found out that the username/password combination defined in
/jakarta-tomcat/conf/tomcat-users.xml works(go through the authentication
with role defined in that tomcat-users.xml file).

and that doesn't make sense

here's my server.xml for the application i am developing:

!-- Nano Enc Context --
  Context path=/nanoenc docBase=nanoenc
   debug=0 reloadable=true
Logger className=org.apache.catalina.logger.FileLogger
 prefix=nanoenc_log. suffix=.txt
 timestamp=true/

!-- Using JCBC Realm for security reasons.. --
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=com.jk.jdbc.Driver
 connectionName=sa
 connectionPassword=
 connectionURL=jdbc:jk://211.333.999:1433/database=Nano
 userTable=tblUSER userNameCol=user_name userCredCol=user_password
 userRoleTable=tblUSER_ROLE roleNameCol=role_name /
  /Context

I haven't deleted the
  Realm className=org.apache.catalina.realm.MemoryRealm /
section that came with server.xml file, but it said realm from lower level
would override the global one.. so.. this should work right?? (Of course it
works when called from stand alone tomcat...)


and my web.xml for my
application(jakarta-tomcat/webapp/nanoenc/WEB-INF/web.xml):

security-constraint
  web-resource-collection
   web-resource-nameIntranet Security Constraint/web-resource-name
   url-pattern/intranet/*/url-pattern
  /web-resource-collection
  auth-constraint
   role-nameemployee/role-name
   role-nameadministrator/role-name
  /auth-constraint
 /security-constraint

 login-config
 auth-methodFORM/auth-method
 realm-namedefault/realm-name
 form-login-config
   form-login-page/login.jsp/form-login-page
   form-error-page/loginerror.jsp/form-error-page
 /form-login-config
 /login-config



I think I am very close... but no cigar yet..

I need to have apache understand that I am going to use different
authentication method for context nanoenc. (it might be impossible for me
to fix this without changing code for warp or tomcat.. i guess..)

If you give me any idea or helping hand, I will really appreciate.
Thank you!!



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




Re: Mapping *.abc requests to Tomcat

2002-04-01 Thread costinm

On Mon, 1 Apr 2002, Jakarta Tomcat Newsgroup wrote:

 Subject: Re: Mapping *.abc requests to Tomcat
 From: Hyunjin Kim [EMAIL PROTECTED]
  ===
 when stopping:
 1. stop apache
 2. stop tomcat
 
 when starting
 1. start tomcat
 2. start apache (someone says 10 seconds delay between starting of tomcat
 and apache is needed..)

You probably want to have tomcat 'ready' before starting apache - 
otherwise users may send requests and get error messages ( since tomcat 
is down ).

If you have most of the information static, and only few services
on tomcat, you'll probably want to start apache first - so the downtime 
is minimal. 

The tricky part is keeping all the things running all the time- even when 
you change the system, and for that you'll have to use loadbalancing and
all kind of tricks. Hopefully this will become easier in next jk.



Costin


 
 
 Alan Williamson [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]...
 
  ||| If you use mod_jk - the same apache settings and module
  ||| will work with both tomcat3.x and 4.x. You probably need
  snip
 
  Costin, first of all thank you for all your help ... the mod_jk worked a
  treat.  I had a bit of searching to find a binary for it for the Mac
  platform, but once i had that, i plumbed it into the Tomcat4 installation,
  and boom, the whole thing burst into life!!!  Boy am i a happy man!!
 
  Quick question:
 
  What is the recommended order for startup?
 
 
 
  --
  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]




Libraries problem

2002-04-01 Thread RAYMOND Romain


Hello,

I use TC 4.0.3, my web app used XML parser and transformer (throught the
XML Jakarta project FOP).
Before I was using TC 4.0.1, with this version my application was
working with all libraries (jar files)
used to run it who were inside my WEB-INF/lib.
I do not understand why now I am with TC 4.0.3, I have to put a
transformer jar (xalan) in my TC/common/lib 
repository ?

Any indications or documentation about this libraries incluson problem ?

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




AW: AW: sessions, security, and the RFCs

2002-04-01 Thread Ralph Einfeldt
As I understand it, the spec doesn't say much about the
session bahaviour in this scenario.

So it's quite legal that different containers implement
opposite behaviours for the switch between http and https.

It would be nice to hear what one of the gurus has to say
about this topic ?

 -Ursprungliche Nachricht-
 Von: Manuel Mall [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 28. Marz 2002 06:53
 An: 'Tomcat Users List'
 Betreff: RE: AW: sessions, security, and the RFCs
snip/
 Why does Tomcat 4 implement a different session behaviour 
 than Tomcat 3.3 if they are both based on essentially the 
 same specification?
snip/

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


Reagrding file size in uploading

2002-04-01 Thread jagan mohan

hi all!
Is there any control in size of the file which is to be uploaded from local
system to the server?

Jaganmohan,
Software Engineer - MIS,
Unidux Electronics Ltd.,
Tel   : 65 6293 4797
Fax  : 65 6293 4920
www.unidux.com.sg.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.343 / Virus Database: 190 - Release Date: 3/22/2002


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




Odp: Reagrding file size in uploading

2002-04-01 Thread tszacon


Try http://www.jspsmart.com/

Tom


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




Re: Libraries problem

2002-04-01 Thread Jacob Kjome

Hi Raymond,

Supposedly having the XML parser in the webapp itself is against the Sun 
classloading spec.  The spec was beginning to be implemented in 4.0.2 (in 
fact, if you look at 4.0.2-b2, you still get the 4.0.1 behavior).  4.0.3 is 
pretty much an exact copy of 4.0.2 except with a security fix.  4.0.4 betas 
are starting to get the classloading issues right (before you would see a 
lot of ClassNotFoundExceptions even if the lib was in the proper directory 
in Tomcat outside the webapp).

Here's the official bug on this behavior:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374 (note that it is 
fixed, btw)

Much of this has to do with the fact that j2sdk.4.0 now contains an XML 
parser by default.  You may have noticed the new lite builds without most 
of the libraries since 1.4.0 already includes them.

Jake



At 09:03 AM 4/2/2002 +0200, you wrote:

Hello,

I use TC 4.0.3, my web app used XML parser and transformer (throught the
XML Jakarta project FOP).
Before I was using TC 4.0.1, with this version my application was
working with all libraries (jar files)
used to run it who were inside my WEB-INF/lib.
I do not understand why now I am with TC 4.0.3, I have to put a
transformer jar (xalan) in my TC/common/lib
repository ?

Any indications or documentation about this libraries incluson problem ?

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



Where to config the jsp(html outputsteam) output size....

2002-04-01 Thread Gordon Luk

Hi all,


I got a problem, that is my jsp(with struts) all the way threw exception
(java.lang.NullPointerExcepton),
i trace around my jsp code, but hadn't found any problem.

When i view the problem output(html), found exception point is not
consistence, and i feel that not problem on my code,
because it like cut off by the tomcat (something , it stop at a
struts tag/tag... like :
 start of porblem html -
... normal html.
...
td class='element_te
- end of problem html 


when i view the size of html... each time it generate 25k data, then
stop and threw exception... so, i wonder, is that anywhere set the
tomcat that couldn't output more 25k ? but i cann't found at tomcat
document... :-(


Please help.


Gordon

PS/Sorry that, i cross post two mailling list, because i cann't define
this problem is rasic by tomcat or struts


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


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