RE: release method in taglib

2004-03-11 Thread Ronald Wildenberg
> I have created several custom tag libs, I notice there is a 
> release() method in the TagSupport class.  Will the release() 
> method be automically called the tag lib is finished?  If 
> not, where should I call it?  Thanks!
> 


It will be called by the JSP page implementation object
automatically, so you don't have to call this yourself.
Multiple invocations on doStartTag and doEndTag may have
occurred before this method is called (for example when
multiple tags of the same type occur on a page).


Regards, Ronald.

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



Tomcat 5 and Jetspeed 1.4 don't work?

2004-03-11 Thread Vi
When I install jetspeed as manual says I see empty directory when enter 
through web. And the manual says
that there are two accounts already setup, but I see only empty 
directory. Jetspeed comes in a war directory.
And manual says to copy it in webapp, which I do. When I request 
jetspeed from tomcat it creates new directory,
but empty one, which I see from web. As far as I understand I should see 
something else? Or should I start developing
my portlets from there?? Please help.

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


RE: mod_jk2 problems

2004-03-11 Thread Yiannis Mavroukakis
http://apr.apache.org/

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:37
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Yes, probably some lib(s), which were not linked corectly with mod_jk2 
while compiling it?
What's apr?

Yiannis Mavroukakis wrote:

>If memory serves me right, the apache httpd sources and the apr sources.
>
>-Original Message-
>From: Vi [mailto:[EMAIL PROTECTED]
>Sent: 10 March 2004 17:17
>To: Tomcat Users List
>Subject: Re: mod_jk2 problems
>
>
>Oh, yes! Thanks!
>Here is what missing:
>
>undefined symbol: ap_scoreboard_image   (./mod_jk2.so)
>undefined symbol: ap_server_root(./mod_jk2.so)
>undefined symbol: apr_pool_cleanup_null (./mod_jk2.so)
>undefined symbol: apr_socket_create (./mod_jk2.so)
>undefined symbol: ap_hook_post_config   (./mod_jk2.so)
>undefined symbol: ap_get_module_config  (./mod_jk2.so)
>undefined symbol: apr_file_write_full   (./mod_jk2.so)
>undefined symbol: apr_send  (./mod_jk2.so)
>undefined symbol: apr_table_add (./mod_jk2.so)
>undefined symbol: ap_exists_scoreboard_image(./mod_jk2.so)
>undefined symbol: apr_pool_create_ex(./mod_jk2.so)
>undefined symbol: ap_hook_handler   (./mod_jk2.so)
>undefined symbol: apr_strerror  (./mod_jk2.so)
>undefined symbol: ap_update_mtime   (./mod_jk2.so)
>undefined symbol: apr_connect   (./mod_jk2.so)
>undefined symbol: apr_mmap_offset   (./mod_jk2.so)
>undefined symbol: apr_file_seek (./mod_jk2.so)
>undefined symbol: apr_md5_final (./mod_jk2.so)
>undefined symbol: apr_thread_mutex_trylock  (./mod_jk2.so)
>undefined symbol: apr_filename_of_pathname  (./mod_jk2.so)
>undefined symbol: ap_hook_child_init(./mod_jk2.so)
>undefined symbol: find_child_by_pid (./mod_jk2.so)
>undefined symbol: apr_setsocketopt  (./mod_jk2.so)
>undefined symbol: ap_setup_client_block (./mod_jk2.so)
>undefined symbol: apr_proc_mutex_create (./mod_jk2.so)
>undefined symbol: apr_thread_mutex_lock (./mod_jk2.so)
>undefined symbol: ap_hook_map_to_storage(./mod_jk2.so)
>undefined symbol: apr_table_set (./mod_jk2.so)
>undefined symbol: apr_proc_mutex_trylock(./mod_jk2.so)
>undefined symbol: apr_table_addn(./mod_jk2.so)
>undefined symbol: ap_get_server_version (./mod_jk2.so)
>undefined symbol: apr_pool_cleanup_register (./mod_jk2.so)
>undefined symbol: ap_mpm_query  (./mod_jk2.so)
>undefined symbol: apr_mmap_create   (./mod_jk2.so)
>undefined symbol: apr_filepath_merge(./mod_jk2.so)
>undefined symbol: ap_log_perror (./mod_jk2.so)
>undefined symbol: apr_thread_mutex_create   (./mod_jk2.so)
>undefined symbol: apr_pstrdup   (./mod_jk2.so)
>undefined symbol: apr_date_parse_http   (./mod_jk2.so)
>undefined symbol: apr_recv  (./mod_jk2.so)
>undefined symbol: ap_get_server_name(./mod_jk2.so)
>undefined symbol: ap_os_escape_path (./mod_jk2.so)
>undefined symbol: ap_log_error  (./mod_jk2.so)
>undefined symbol: apr_table_setn(./mod_jk2.so)
>undefined symbol: ap_get_remote_host(./mod_jk2.so)
>undefined symbol: apr_table_get (./mod_jk2.so)
>undefined symbol: apr_socket_close  (./mod_jk2.so)
>undefined symbol: apr_psprintf  (./mod_jk2.so)
>undefined symbol: apr_file_open (./mod_jk2.so)
>undefined symbol: apr_ctime (./mod_jk2.so)
>undefined symbol: apr_sockaddr_info_get (./mod_jk2.so)
>undefined symbol: apr_thread_mutex_destroy  (./mod_jk2.so)
>undefined symbol: apr_stat  (./mod_jk2.so)
>undefined symbol: apr_palloc(./mod_jk2.so)
>undefined symbol: ap_strchr (./mod_jk2.so)
>undefined symbol: apr_sockaddr_port_get (./mod_jk2.so)
>undefined symbol: ap_should_client_block(./mod_jk2.so)
>undefined symbol: apr_pvsprintf (./mod_jk2.so)
>undefined symbol: apr_time_now  (./mod_jk2.so)
>undefined symbol: ap_rwrite (./mod_jk2.so)
>undefined symbol: apr_proc_mutex_unlock (./mod_jk2.so)
>undefined symbol: apr_pool_get_parent   (./mod_jk2.so)
>undefined symbol: ap_set_module_config  (./mod_jk2.so)
>undefined symbol: apr_table_elts(./mod_jk2.so)
>undefined symbol: ap_get_client_block   (./mod_jk2.so)
>undefined symbol: ap_add_version_component  (./mod_jk2.so)
>undefined symbol: apr_md5_init  (./mod_jk2.so)
>undefined symbol: apr_proc_mutex_destroy(./mod_jk2.so)
>undefined symbol: apr_file_info_get (./mod_jk2.so)
>undefined symbol: apr_pool_clear(./mod_jk2.so)
>undefined symbol: apr_pool_userdata_set (./mod_jk2.so)
>undefined symbol: apr_mmap_delete   (./mod_jk2.so)
>undefined symbol: ap_get_server_port(./mod_jk2.so)
>undefined symbol: ap_content_type_tolower   (./mod_jk2.so)
>undefined symbol: apr_proc_mutex_lock   (./mod_jk2.so)
>undefined symbol: ap_rflush (./mod_jk2.so)
>undefined symbol: apr_md5_update(./mod_jk2.so)
>undefined symbol: ap_set_last_modified  (./mod_jk2.so)
>undefined symbol: apr_socket_timeout_set(./mod_jk2.so)
>undefined symbol: ap_hook_translate_name(./mod_jk2.so)
>undefined symbol: ap_add_common

Re: Tomcat 5 and Jetspeed 1.4 don't work?

2004-03-11 Thread Vi
Heh, sorry, about that, now it works. I deleted the dir couple of times 
and it started working! :)
But it wasn't working at first I sware.

Vi wrote:

When I install jetspeed as manual says I see empty directory when 
enter through web. And the manual says
that there are two accounts already setup, but I see only empty 
directory. Jetspeed comes in a war directory.
And manual says to copy it in webapp, which I do. When I request 
jetspeed from tomcat it creates new directory,
but empty one, which I see from web. As far as I understand I should 
see something else? Or should I start developing
my portlets from there?? Please help.

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



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


url-pattern pb in security constraints

2004-03-11 Thread Boulay Arnaud
Hello, I'm trying some web.xml security features and think that Catalina 
does'nt perform url pattern very well in some cases (whatever the kind of Realm).

For example :
Roles  : Administrateur and DTN
protected ressources :
 "/pages/secret1/*.jsp" reserved for Administrateur role
 "/pages/*.jsp" reserved for Administrateur and  DTN roles

When the current user has only DTN role, the first pattern is not filtered and 
so the ressource is not protected while if the first pattern is a straightforward 
ressource (say /pages/secret1/myfile.jsp) is correctly safe.
any idea ?
thanks in advance,
Arnaud

web.xml sample :


  
webapp2
/pages/secret1/*.jsp
  
  
   Administrateur
  
 

 
  
webapp1
/pages/*.jsp
  
  
   DTN
   Administrateur
  
 







Re: mod_jk2 problems

2004-03-11 Thread Vi
Yes, I already found it, but should I install it? Will it affect apache 
in some way, or is it just a set of libraries?
I don't want to risk to affect apache.

Yiannis Mavroukakis wrote:

http://apr.apache.org/

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:37
To: Tomcat Users List
Subject: Re: mod_jk2 problems
Yes, probably some lib(s), which were not linked corectly with mod_jk2 
while compiling it?
What's apr?

Yiannis Mavroukakis wrote:

 

If memory serves me right, the apache httpd sources and the apr sources.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:17
To: Tomcat Users List
Subject: Re: mod_jk2 problems
Oh, yes! Thanks!
Here is what missing:
undefined symbol: ap_scoreboard_image   (./mod_jk2.so)
undefined symbol: ap_server_root(./mod_jk2.so)
undefined symbol: apr_pool_cleanup_null (./mod_jk2.so)
undefined symbol: apr_socket_create (./mod_jk2.so)
undefined symbol: ap_hook_post_config   (./mod_jk2.so)
undefined symbol: ap_get_module_config  (./mod_jk2.so)
undefined symbol: apr_file_write_full   (./mod_jk2.so)
undefined symbol: apr_send  (./mod_jk2.so)
undefined symbol: apr_table_add (./mod_jk2.so)
undefined symbol: ap_exists_scoreboard_image(./mod_jk2.so)
undefined symbol: apr_pool_create_ex(./mod_jk2.so)
undefined symbol: ap_hook_handler   (./mod_jk2.so)
undefined symbol: apr_strerror  (./mod_jk2.so)
undefined symbol: ap_update_mtime   (./mod_jk2.so)
undefined symbol: apr_connect   (./mod_jk2.so)
undefined symbol: apr_mmap_offset   (./mod_jk2.so)
undefined symbol: apr_file_seek (./mod_jk2.so)
undefined symbol: apr_md5_final (./mod_jk2.so)
undefined symbol: apr_thread_mutex_trylock  (./mod_jk2.so)
undefined symbol: apr_filename_of_pathname  (./mod_jk2.so)
undefined symbol: ap_hook_child_init(./mod_jk2.so)
undefined symbol: find_child_by_pid (./mod_jk2.so)
undefined symbol: apr_setsocketopt  (./mod_jk2.so)
undefined symbol: ap_setup_client_block (./mod_jk2.so)
undefined symbol: apr_proc_mutex_create (./mod_jk2.so)
undefined symbol: apr_thread_mutex_lock (./mod_jk2.so)
undefined symbol: ap_hook_map_to_storage(./mod_jk2.so)
undefined symbol: apr_table_set (./mod_jk2.so)
undefined symbol: apr_proc_mutex_trylock(./mod_jk2.so)
undefined symbol: apr_table_addn(./mod_jk2.so)
undefined symbol: ap_get_server_version (./mod_jk2.so)
undefined symbol: apr_pool_cleanup_register (./mod_jk2.so)
undefined symbol: ap_mpm_query  (./mod_jk2.so)
undefined symbol: apr_mmap_create   (./mod_jk2.so)
undefined symbol: apr_filepath_merge(./mod_jk2.so)
undefined symbol: ap_log_perror (./mod_jk2.so)
undefined symbol: apr_thread_mutex_create   (./mod_jk2.so)
undefined symbol: apr_pstrdup   (./mod_jk2.so)
undefined symbol: apr_date_parse_http   (./mod_jk2.so)
undefined symbol: apr_recv  (./mod_jk2.so)
undefined symbol: ap_get_server_name(./mod_jk2.so)
undefined symbol: ap_os_escape_path (./mod_jk2.so)
undefined symbol: ap_log_error  (./mod_jk2.so)
undefined symbol: apr_table_setn(./mod_jk2.so)
undefined symbol: ap_get_remote_host(./mod_jk2.so)
undefined symbol: apr_table_get (./mod_jk2.so)
undefined symbol: apr_socket_close  (./mod_jk2.so)
undefined symbol: apr_psprintf  (./mod_jk2.so)
undefined symbol: apr_file_open (./mod_jk2.so)
undefined symbol: apr_ctime (./mod_jk2.so)
undefined symbol: apr_sockaddr_info_get (./mod_jk2.so)
undefined symbol: apr_thread_mutex_destroy  (./mod_jk2.so)
undefined symbol: apr_stat  (./mod_jk2.so)
undefined symbol: apr_palloc(./mod_jk2.so)
undefined symbol: ap_strchr (./mod_jk2.so)
undefined symbol: apr_sockaddr_port_get (./mod_jk2.so)
undefined symbol: ap_should_client_block(./mod_jk2.so)
undefined symbol: apr_pvsprintf (./mod_jk2.so)
undefined symbol: apr_time_now  (./mod_jk2.so)
undefined symbol: ap_rwrite (./mod_jk2.so)
undefined symbol: apr_proc_mutex_unlock (./mod_jk2.so)
undefined symbol: apr_pool_get_parent   (./mod_jk2.so)
undefined symbol: ap_set_module_config  (./mod_jk2.so)
undefined symbol: apr_table_elts(./mod_jk2.so)
undefined symbol: ap_get_client_block   (./mod_jk2.so)
undefined symbol: ap_add_version_component  (./mod_jk2.so)
undefined symbol: apr_md5_init  (./mod_jk2.so)
undefined symbol: apr_proc_mutex_destroy(./mod_jk2.so)
undefined symbol: apr_file_info_get (./mod_jk2.so)
undefined symbol: apr_pool_clear(./mod_jk2.so)
undefined symbol: apr_pool_userdata_set (./mod_jk2.so)
undefined symbol: apr_mmap_delete   (./mod_jk2.so)
undefined symbol: ap_get_server_port(./mod_jk2.so)
undefined symbol: ap_content_type_tolower   (./mod_jk2.so)
undefined symbol: apr_proc_mutex_lock   (./mod_jk2.so)
undefined symbol: ap_rflush (./mod_jk2.so)
undefined symbol: apr_md5_update(./mod_jk2.so)
undefined symbol: ap_set_last_modified  (./mod_jk2.so)
undefined symbol: apr_socket_timeout_set(./mod_jk2.so)
u

RE: mod_jk2 problems

2004-03-11 Thread Yiannis Mavroukakis
It shouldn't, but if you are worried you install it in a directory out of
the way, and link jk2 against it.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 11 March 2004 09:38
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Yes, I already found it, but should I install it? Will it affect apache 
in some way, or is it just a set of libraries?
I don't want to risk to affect apache.

Yiannis Mavroukakis wrote:

>http://apr.apache.org/
>
>-Original Message-
>From: Vi [mailto:[EMAIL PROTECTED]
>Sent: 10 March 2004 17:37
>To: Tomcat Users List
>Subject: Re: mod_jk2 problems
>
>
>Yes, probably some lib(s), which were not linked corectly with mod_jk2 
>while compiling it?
>What's apr?
>
>Yiannis Mavroukakis wrote:
>
>  
>
>>If memory serves me right, the apache httpd sources and the apr sources.
>>
>>-Original Message-
>>From: Vi [mailto:[EMAIL PROTECTED]
>>Sent: 10 March 2004 17:17
>>To: Tomcat Users List
>>Subject: Re: mod_jk2 problems
>>
>>
>>Oh, yes! Thanks!
>>Here is what missing:
>>
>>undefined symbol: ap_scoreboard_image   (./mod_jk2.so)
>>undefined symbol: ap_server_root(./mod_jk2.so)
>>undefined symbol: apr_pool_cleanup_null (./mod_jk2.so)
>>undefined symbol: apr_socket_create (./mod_jk2.so)
>>undefined symbol: ap_hook_post_config   (./mod_jk2.so)
>>undefined symbol: ap_get_module_config  (./mod_jk2.so)
>>undefined symbol: apr_file_write_full   (./mod_jk2.so)
>>undefined symbol: apr_send  (./mod_jk2.so)
>>undefined symbol: apr_table_add (./mod_jk2.so)
>>undefined symbol: ap_exists_scoreboard_image(./mod_jk2.so)
>>undefined symbol: apr_pool_create_ex(./mod_jk2.so)
>>undefined symbol: ap_hook_handler   (./mod_jk2.so)
>>undefined symbol: apr_strerror  (./mod_jk2.so)
>>undefined symbol: ap_update_mtime   (./mod_jk2.so)
>>undefined symbol: apr_connect   (./mod_jk2.so)
>>undefined symbol: apr_mmap_offset   (./mod_jk2.so)
>>undefined symbol: apr_file_seek (./mod_jk2.so)
>>undefined symbol: apr_md5_final (./mod_jk2.so)
>>undefined symbol: apr_thread_mutex_trylock  (./mod_jk2.so)
>>undefined symbol: apr_filename_of_pathname  (./mod_jk2.so)
>>undefined symbol: ap_hook_child_init(./mod_jk2.so)
>>undefined symbol: find_child_by_pid (./mod_jk2.so)
>>undefined symbol: apr_setsocketopt  (./mod_jk2.so)
>>undefined symbol: ap_setup_client_block (./mod_jk2.so)
>>undefined symbol: apr_proc_mutex_create (./mod_jk2.so)
>>undefined symbol: apr_thread_mutex_lock (./mod_jk2.so)
>>undefined symbol: ap_hook_map_to_storage(./mod_jk2.so)
>>undefined symbol: apr_table_set (./mod_jk2.so)
>>undefined symbol: apr_proc_mutex_trylock(./mod_jk2.so)
>>undefined symbol: apr_table_addn(./mod_jk2.so)
>>undefined symbol: ap_get_server_version (./mod_jk2.so)
>>undefined symbol: apr_pool_cleanup_register (./mod_jk2.so)
>>undefined symbol: ap_mpm_query  (./mod_jk2.so)
>>undefined symbol: apr_mmap_create   (./mod_jk2.so)
>>undefined symbol: apr_filepath_merge(./mod_jk2.so)
>>undefined symbol: ap_log_perror (./mod_jk2.so)
>>undefined symbol: apr_thread_mutex_create   (./mod_jk2.so)
>>undefined symbol: apr_pstrdup   (./mod_jk2.so)
>>undefined symbol: apr_date_parse_http   (./mod_jk2.so)
>>undefined symbol: apr_recv  (./mod_jk2.so)
>>undefined symbol: ap_get_server_name(./mod_jk2.so)
>>undefined symbol: ap_os_escape_path (./mod_jk2.so)
>>undefined symbol: ap_log_error  (./mod_jk2.so)
>>undefined symbol: apr_table_setn(./mod_jk2.so)
>>undefined symbol: ap_get_remote_host(./mod_jk2.so)
>>undefined symbol: apr_table_get (./mod_jk2.so)
>>undefined symbol: apr_socket_close  (./mod_jk2.so)
>>undefined symbol: apr_psprintf  (./mod_jk2.so)
>>undefined symbol: apr_file_open (./mod_jk2.so)
>>undefined symbol: apr_ctime (./mod_jk2.so)
>>undefined symbol: apr_sockaddr_info_get (./mod_jk2.so)
>>undefined symbol: apr_thread_mutex_destroy  (./mod_jk2.so)
>>undefined symbol: apr_stat  (./mod_jk2.so)
>>undefined symbol: apr_palloc(./mod_jk2.so)
>>undefined symbol: ap_strchr (./mod_jk2.so)
>>undefined symbol: apr_sockaddr_port_get (./mod_jk2.so)
>>undefined symbol: ap_should_client_block(./mod_jk2.so)
>>undefined symbol: apr_pvsprintf (./mod_jk2.so)
>>undefined symbol: apr_time_now  (./mod_jk2.so)
>>undefined symbol: ap_rwrite (./mod_jk2.so)
>>undefined symbol: apr_proc_mutex_unlock (./mod_jk2.so)
>>undefined symbol: apr_pool_get_parent   (./mod_jk2.so)
>>undefined symbol: ap_set_module_config  (./mod_jk2.so)
>>undefined symbol: apr_table_elts(./mod_jk2.so)
>>undefined symbol: ap_get_client_block   (./mod_jk2.so)
>>undefined symbol: ap_add_version_component  (./mod_jk2.so)
>>undefined symbol: apr_md5_init  (./mod_jk2.so)
>>undefined symbol: apr_proc_mutex_destroy(./mod_jk2.so)
>>undefined symbol: apr_file_info_get (./mod_jk2.so)
>>undefined symbol: apr_pool_clear(./mod_jk2.so)
>>undefined symbol: apr_pool_userdata_set (./mod_jk2.so)
>>undefin

i18n problems

2004-03-11 Thread Yiannis Mavroukakis
I'm acting as a middleman delivering this email for a friend who has trouble
contacting the list ;)



I am using TC 5.0.16.

 I once had problems when reading intl. form data and passing them thru
servlets to a database. That was solved by just using

 request.setCharacterEncoding("iso-8859-7");

Now the problem is opposite. I read strings from a database and as soon as
they become http data, their encoding is lost, resulting in ???'s instead of
text. Servlets do contain

res.setContentType("text/html; charset=iso-8859-7");
req.setCharacterEncoding("iso-8859-7");

and I have tried with UTF-8 as well, with same results. There is nothing
wrong with the database and the strings, as other applications work fine. To
make sure that I get correct strings from the db, I also print them to a
JTextArea (as soon as they are retrieved) and they have no problem.

So it's not a database, font, browser problem. Encoding is lost somewhere
inside TC and I don't know what to do... Any ideas welcome.

TIA


==


Kostas Harvatis
-
National Center for Social Research - Directorate of Research Support
www.ekke.gr


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-11 Thread Harry Mantheakis
Hi Yoav

I am on a 24 hour response cycle at the moment, because my ISP is saving up
all the Tomcat-User emails and giving them to me once a day somewhere
between the time I go to bed and the time I get up!

This morning I had about 160 'new' messages :-)


> It allows the container to map your portable descriptor in web.xml to
> its specific instance in the container (which is defined in server.xml).
> So resource-ref is the same for your app in your dev, test, and
> production environments, on tomcat, weblogic, websphere, etc.  But the
> container-specific configuration elements change.  It's a way to map
> container-specific resources in a portable and consistent manner.  See
> also env-entry-ref...


Thank you for that explanation. (I always value your time.)

I read it a couple of times, and pondered it for a while, and in the end I
think I understood it (!)

Bearing in mind this is what the resource-ref element looks like in the
deployment descriptor:



 My DB DataSource
 jdbc/postgres
 javax.sql.DataSource
 Container



My understanding of it is that, even though I can get away without declaring
that element in my Tomcat deployment, I would need to restore it if I was to
deploy my application to (say) Weblogic, Websphere, etc.

That implies that the 'container-specific configuration' in Tomcat is to
actually use 'javax.sql.DataSource' as the resource type. IOW, the Tomcat
container creates a 'data-source' object and somewhere along the line it
wraps it up as a 'javax.sql.DataSource' object, so that when I get an
'Object' reference to it I can safely cast it to 'javax.sql.DataSource'.

That is what happens when I call:


return ( DataSource )new InitialContext().
lookup( "java:comp/env/jdbc/postgres" );


The suggestion is that on another container (Weblogic, etc.) would handed
some *other* type of data-source object, unless I informed the container
that I need a 'javax.sql.DataSource' type by including the resource-ref
element in my deployment descriptor.

If that 'understanding' is correct, Yoav, just say 'yes' or 'yep' or
something simple like that :-)

Kind regards

Harry Mantheakis
London, UK



















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



More problems with upgrade from 4.1 to 5.0

2004-03-11 Thread Michael Forster
I am still having problems now my filters are failing at startup and my
context is not starting.

The main window shows a message like

MerchantFilter FILTER CONFIG   <-- This line is from a
System.out.println in the filter code
11-Mar-2004 09:37:55 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
11-Mar-2004 09:37:55 org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors


and the error log shows the following

2004-03-11 09:06:52 StandardContext[]Exception starting filter
MerchantFilter
java.lang.NullPointerException
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:103)
at java.io.FileInputStream.(FileInputStream.java:66)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
297)

any ideas? or is it just the filter is broken


Mike.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
G e+ h++ r+++ y+++
--END GEEK CODE BLOCK--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004


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



RE: url-pattern pb in security constraints

2004-03-11 Thread Ralph Einfeldt
According to the spec (Chapter 11.2):


A string beginning with a â/â character and ending 
with a â/*â postfix is used for path mapping.

A string beginning with a â*.â prefix is used as an 
extension mapping.

A string containing only the â/â character indicates 
the "default" servlet of the application. In this case 
the servlet path is the request URI minus the context
path and the path info is null.

All other strings are used for exact matches only. 


So /pages/*.jsp is not a valid pattern mapping.
It's just *.jsp or /pages/*

> -Original Message-
> From: Boulay Arnaud [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 10:26 AM
> To: [EMAIL PROTECTED]
> Subject: url-pattern pb in security constraints
> 
> 
>   /pages/secret1/*.jsp
>   /pages/*.jsp
> 


Re: Tomcat Realm Authentication + Storing Objects In The Session

2004-03-11 Thread Adam Hardy
On 03/11/2004 08:56 AM Ronald Wildenberg wrote:
My biggest unknown right now is, because the server handles the
creation of the session, what would it take to make the server grab
a user object from the database and store it in the session after
the user logs in?
Can't you use an HttpSessionListener for this? It is called right 
after a session is created (and when it's destroyed again). I'm not
sure though whether there's enough information in the HttpSession 
object for you to be able to grab something from the database at the
time HttpSessionListener.sessionCreated() is called.
I do it with a filter. Easy to check request.getRemoteUser(), fetch the 
session and check for the user bean.

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: OT: Java Hosting

2004-03-11 Thread Adam Hardy
Try kgbinternet.com.  They have very reasonable developer accounts with 
tomcat and mysql or postgresql.  They have dedicated jvm's so you can 
start and stop your own tomcat.  I have used them with good success. The 
person to talk to is
Keith Bjorndahl at [EMAIL PROTECTED]
Good luck,
Phil Campaigne

How much do you pay a month for a login with a dedicated JVM?

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Config file mania

2004-03-11 Thread Michael Forster
Ok, I am losing hair rapidly here,

if I have an entry of


  log4jPath
  logging.conf
  java.lang.String


in my web.xml file where will it look for the logging.conf file. I have put
a copy in every directory I can think of and it still says it can't find the
file.

the web.xml is in the \dev\tomcat\webapps\ROOT\WEB-INF\  directory.
I have put a copy of logging.conf currently in
\dev
\dev\tomcat
\dev\tomcat\conf
\dev\tomcat\conf\Catalina
\dev\tomcat\conf\Catalina\localhost
\dev\tomcat\conf\Catalina\localhost\myapp\
\dev\tomcat\webapps
\dev\tomcat\webapps\ROOT
\dev\tomcat\webapps\ROOT\WEB-INF


Mike.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
G e+ h++ r+++ y+++
--END GEEK CODE BLOCK--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004


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



RE: Config file mania

2004-03-11 Thread STOCKHOLM, Raymond
Usually, the log4j.properties is looked for in your classpath.
try :
$tomcat\webapps\ROOT\WEB-INF\classes

-Message d'origine-
De : Michael Forster [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 11 mars 2004 11:28
À : Tomcat-User
Objet : Config file mania


Ok, I am losing hair rapidly here,

if I have an entry of


  log4jPath
  logging.conf
  java.lang.String


in my web.xml file where will it look for the logging.conf file. I have put
a copy in every directory I can think of and it still says it can't find the
file.

the web.xml is in the \dev\tomcat\webapps\ROOT\WEB-INF\  directory.
I have put a copy of logging.conf currently in
\dev
\dev\tomcat
\dev\tomcat\conf
\dev\tomcat\conf\Catalina
\dev\tomcat\conf\Catalina\localhost
\dev\tomcat\conf\Catalina\localhost\myapp\
\dev\tomcat\webapps
\dev\tomcat\webapps\ROOT
\dev\tomcat\webapps\ROOT\WEB-INF


Mike.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
G e+ h++ r+++ y+++
--END GEEK CODE BLOCK--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004


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


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



RE: Config file mania

2004-03-11 Thread Michael Forster
No change
Still the cant find error

Mike.

> -Original Message-
> From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
> Sent: 11 March 2004 10:33
> To: Tomcat Users List
> Subject: RE: Config file mania
>
>
> Usually, the log4j.properties is looked for in your classpath.
> try :
> $tomcat\webapps\ROOT\WEB-INF\classes
>
> -Message d'origine-
> De : Michael Forster [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 11 mars 2004 11:28
> À : Tomcat-User
> Objet : Config file mania
>
>
> Ok, I am losing hair rapidly here,
>
> if I have an entry of
>
> 
>   log4jPath
>   logging.conf
>   java.lang.String
> 
>
> in my web.xml file where will it look for the logging.conf file.
> I have put
> a copy in every directory I can think of and it still says it
> can't find the
> file.
>
> the web.xml is in the \dev\tomcat\webapps\ROOT\WEB-INF\  directory.
> I have put a copy of logging.conf currently in
> \dev
> \dev\tomcat
> \dev\tomcat\conf
> \dev\tomcat\conf\Catalina
> \dev\tomcat\conf\Catalina\localhost
> \dev\tomcat\conf\Catalina\localhost\myapp\
> \dev\tomcat\webapps
> \dev\tomcat\webapps\ROOT
> \dev\tomcat\webapps\ROOT\WEB-INF
>
>
> Mike.
>
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12
> GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
> O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
> G e+ h++ r+++ y+++
> --END GEEK CODE BLOCK--
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004


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



RE: Config file mania

2004-03-11 Thread STOCKHOLM, Raymond
In my webapps, I use log4j, and I don't specify anything
such as 
 
   log4jPath
   logging.conf
   java.lang.String
 
in web.xml

I only put a log4j.properties file in
$tomcat/webapps/MYAPPLICATION/WEB-INF/classes
and of course log4j.jar in 
$tomcat/webapps/MYAPPLICATION/WEB-INF/lib

And it works !

Example of log4j.properties
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG, A1
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

You shoud see the logs in the console starting tomcat

-Message d'origine-
De : Michael Forster [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 11 mars 2004 11:40
À : Tomcat Users List
Objet : RE: Config file mania


No change
Still the cant find error

Mike.

> -Original Message-
> From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
> Sent: 11 March 2004 10:33
> To: Tomcat Users List
> Subject: RE: Config file mania
>
>
> Usually, the log4j.properties is looked for in your classpath.
> try :
> $tomcat\webapps\ROOT\WEB-INF\classes
>
> -Message d'origine-
> De : Michael Forster [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 11 mars 2004 11:28
> À : Tomcat-User
> Objet : Config file mania
>
>
> Ok, I am losing hair rapidly here,
>
> if I have an entry of
>
> 
>   log4jPath
>   logging.conf
>   java.lang.String
> 
>
> in my web.xml file where will it look for the logging.conf file.
> I have put
> a copy in every directory I can think of and it still says it
> can't find the
> file.
>
> the web.xml is in the \dev\tomcat\webapps\ROOT\WEB-INF\  directory.
> I have put a copy of logging.conf currently in
> \dev
> \dev\tomcat
> \dev\tomcat\conf
> \dev\tomcat\conf\Catalina
> \dev\tomcat\conf\Catalina\localhost
> \dev\tomcat\conf\Catalina\localhost\myapp\
> \dev\tomcat\webapps
> \dev\tomcat\webapps\ROOT
> \dev\tomcat\webapps\ROOT\WEB-INF
>
>
> Mike.
>
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12
> GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
> O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
> G e+ h++ r+++ y+++
> --END GEEK CODE BLOCK--
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004


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


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



Strange exception at tomcat 4.1.29 startup

2004-03-11 Thread Francois JEANMOUGIN
Hi all,

I really can't find what I've done wrong in copying the tomcat environement from one 
machine to another. I have this exception (with standard server.xml) :

Mar 11, 2004 12:29:36 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Any help appreciated.

François.


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



Jetspeed bug or misconfig?

2004-03-11 Thread Vi
Hi, I'm having problems with jetspeed again. Anyone using it?
So when I view user list as admin everything is ok, but when I
click on any link from there I go to the same content! Even when
I click on edit user info, and so on. Even when I edit address line
and leave it to the root, I still see same content :(. I can only logout
successfully. Is this a bug or my configuration is incorrect?
I'm using mod_proxy as a connector maybe problem is there?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


redirect and request´s attributes doubts

2004-03-11 Thread Edson Alves Pereira
Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

Regards,
Edson


RE: redirect and request´s attributes doubts

2004-03-11 Thread Ralph Einfeldt

A redirect creates a new request.

If you want to pass informations across a redirect
you can use url parameters in the redirect url.

Maybe it's is an option to you to forward to the jsp, 
then no new request is created.

> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 2:15 PM
> To: 'Tomcat-User List'
> Subject: redirect and request´s attributes doubts
> 
> 
>   Hello dudes, i´m trying to set some attributes to a 
> request in my
> servlet, that´s pretty easy as you know, but after i must use 
> redirect to a
> JSP page and when i try to recall those attributes created before they
> doesn´t appear in JSP´s request object. Even thought i set a request´s
> attribute and use redirect i cannot get it again, can i?
> 
>   Regards,
>   Edson
> 

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



RE: Strange exception at tomcat 4.1.29 startup

2004-03-11 Thread Edson Alves Pereira
Maybe path, libraries or environment variables are different.

> --
> De:   Francois JEANMOUGIN[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  quinta-feira, 11 de março de 2004 8:32
> Para: Tomcat Users List
> Assunto:  Strange exception at tomcat 4.1.29 startup
> 
> Hi all,
> 
> I really can't find what I've done wrong in copying the tomcat
> environement from one machine to another. I have this exception (with
> standard server.xml) :
> 
> Mar 11, 2004 12:29:36 PM org.apache.commons.digester.Digester startElement
> SEVERE: Begin event threw exception
> java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
> at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
> org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:2
> 52)
> at org.apache.commons.digester.Rule.begin(Rule.java:200)
> at
> org.apache.commons.digester.Digester.startElement(Digester.java:1273)
> at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unk
> nown Source)
> at
> org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootEl
> ementHook(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispa
> tcher.dispatch(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at org.apache.commons.digester.Digester.parse(Digester.java:1548)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> 
> Any help appreciated.
> 
> François.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


RE: Strange exception at tomcat 4.1.29 startup

2004-03-11 Thread FRANCOIS Dufour
java.lang.ClassNotFoundException class not found  java_home path  maybee!


[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc




From: Edson Alves Pereira <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Subject: RE: Strange exception at tomcat 4.1.29 startup
Date: Thu, 11 Mar 2004 10:23:18 -0300
	Maybe path, libraries or environment variables are different.

> --
> De: 	Francois JEANMOUGIN[SMTP:[EMAIL PROTECTED]
> Responder: 	Tomcat Users List
> Enviada: 	quinta-feira, 11 de março de 2004 8:32
> Para: 	Tomcat Users List
> Assunto: 	Strange exception at tomcat 4.1.29 startup
>
> Hi all,
>
> I really can't find what I've done wrong in copying the tomcat
> environement from one machine to another. I have this exception (with
> standard server.xml) :
>
> Mar 11, 2004 12:29:36 PM org.apache.commons.digester.Digester 
startElement
> SEVERE: Begin event threw exception
> java.lang.ClassNotFoundException: 
org.apache.catalina.core.StandardServer
> at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
> 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:2
> 52)
> at org.apache.commons.digester.Rule.begin(Rule.java:200)
> at
> org.apache.commons.digester.Digester.startElement(Digester.java:1273)
> at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> at 
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
> Source)
> at
> 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unk
> nown Source)
> at
> 
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootEl
> ementHook(Unknown Source)
> at
> 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispa
> tcher.dispatch(Unknown Source)
> at
> 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at 
org.apache.commons.digester.Digester.parse(Digester.java:1548)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
> at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> at 
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> at
> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>
> Any help appreciated.
>
> François.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
_
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/

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


the problem of in XML view page(tomcat 5.0.19)

2004-03-11 Thread Eric Suen
I have two file hello.jspx & world.jspx like:

  hello.jspx:
  | 
  | http://www.w3.org/1999/XSL/Format";
  | xmlns:jsp="http://java.sun.com/JSP/Page";>
  | 
  | 

  world.jspx:
  | http://www.w3.org/1999/XSL/Format";>
  | Hello World
  | 

  and the result is:
  | 
  | http://www.w3.org/1999/XSL/Format";>
  | 
  | ~~
  | http://www.w3.org/1999/XSL/Format";>
  | Hello World

and tomcat product too much XML decl, is this a bug?

Regards

Eric




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



Where does Tomcat remember types of EL variables?

2004-03-11 Thread Juergen Weber
Where does Tomcat remember types of EL variables?

If I use an EL variable image like

${index.selected}

Tomcat 5 generates code like:

image = (de.jwi.jgallery.Image)
pageContext.findAttribute("image");


When I renamed the class name of image, Tomcat would
still generate code to access the old name. I deleted
the work directory and restarted Tomcat, no change.
Where does Tomcat remember the class name?
In the end, I gave in and undid the class name change.

Anyway, why is the cast necessary?

imho there could be

Object image = pageContext.findAttribute("image");


Object selected =
image.getClass().getMethod("getSelected",null).invoke(image,null);


Thanks,
Jürgen

__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



Question on the packaging of tag libraries

2004-03-11 Thread Faine, Mark
Tomcat 4.1.27 on Solaris 8
 
I'm looking at centralizing our tag libraries that our used by several web
applications.  Unfortunately the way one of our vendors packages their
taglibs is not very portable.  I know class files for taglibs can (and
should) go in a jar file and be loaded by the web app from a lib directory
but what about tlds can they also be placed in some central location and
loaded by every web application instead of having to maintain them in each
web application individually.
 
Thanks,
-Mark


RE: Config file mania

2004-03-11 Thread Shapira, Yoav

Hi,

>In my webapps, I use log4j, and I don't specify anything
>such as
> 
>   log4jPath
>   logging.conf
>   java.lang.String
> 
>in web.xml
>
>I only put a log4j.properties file in
>$tomcat/webapps/MYAPPLICATION/WEB-INF/classes
>and of course log4j.jar in
>$tomcat/webapps/MYAPPLICATION/WEB-INF/lib
>
>And it works !

Right -- you're relying on log4j's default initialization procedure.
Michael doesn't want to do that.

>> 
>>   log4jPath
>>   logging.conf
>>   java.lang.String
>> 
>>
>> in my web.xml file where will it look for the logging.conf file.
>> I have put
>> a copy in every directory I can think of and it still says it
>> can't find the
>> file.

What says it can't find the file?  Can you (yourself, not log4j) find
and read the find using JNDI?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Context Paths

2004-03-11 Thread Shapira, Yoav

Hi,

>The code in 'MyContext' is a library of code that I am hoping to be
able
>to reuse in serval sites on the same server. The thing is it needs a
>config file and  I would like the config file to always be in the root
>of the site. The thing is if I do a get getRealPath("/") from the code
>in MyContext it will always return SomePath3. How do I get the docbase
>of the "" context, (SomePath2)? or even of the virtual host,
>(SomePath1), from with in MyContext.
>
>I guess I am asking if it is possible to getRealPath cross context?

Yes, it's possible: add crossContext="true" to your context definitions,
and use ServletContext#getContext to get the other context, then call
getRealPath on the other context.

That said, your approach is bad because webapps are supposed to be
independent and self-contained.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: invalid url-pattern

2004-03-11 Thread Shapira, Yoav

Howdy,

>Yoav:
>  Thank You!  That was it. I re-read the servlet spec 2.4, section
>"Mapping Requests to Servlets." I see it now. Can't help feeling dumb
:(
>
>  I guess OC4J is more liberal in evaluating the mapping or deviated
from
>the Sun spec here?
>
>Anyway, Thanks Again! :)

No problem, glad to help.  Yup, OC4J allows for mappings beyond those
defined in the specification.  Tomcat tries to more strictly implement
the spec, for better or worse.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Question on the packaging of tag libraries

2004-03-11 Thread Edson Alves Pereira
Maybe this helps.

The required extensions for a tag file are .tag if you write the file in JSP
syntax, and .tagx if the file is only composed of XML elements. The JSP 2.0
specification requires you to place the tag file in the WEB-INF/tags
directory, or a subdirectory thereof. If you want to package the tag file in
a Java Archive .jar file as part of a custom tag library, then you can store
it in META-INF/tags (or a subdirectory of META-INF/tags), and then describe
the tag file in a Tag Library Descriptor (TLD), a type of configuration
file. You do not have to describe the tag files that are placed beneath
WEB-INF/tags in a TLD, but you can, if you want to consolidate a library of
traditional custom tags and tag files in one TLD.

> --
> De:   Faine, Mark[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  quinta-feira, 11 de março de 2004 10:38
> Para: '[EMAIL PROTECTED]'
> Assunto:  Question on the packaging of tag libraries
> 
> Tomcat 4.1.27 on Solaris 8
>  
> I'm looking at centralizing our tag libraries that our used by several web
> applications.  Unfortunately the way one of our vendors packages their
> taglibs is not very portable.  I know class files for taglibs can (and
> should) go in a jar file and be loaded by the web app from a lib directory
> but what about tlds can they also be placed in some central location and
> loaded by every web application instead of having to maintain them in each
> web application individually.
>  
> Thanks,
> -Mark
> 


redirect and request´s attributes doubts

2004-03-11 Thread Edson Alves Pereira
Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

Regards,
Edson



RE: redirect and request´s attributes doubts

2004-03-11 Thread Ralph Einfeldt
That has been answered 40 Minutes ago:

A redirect creates a new request.

If you want to pass informations across a redirect
you can use url parameters in the redirect url.

Maybe it's is an option to you to forward to the jsp, 
then no new request is created.

> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 3:00 PM
> To: 'Tomcat-User List'
> Subject: redirect and request´s attributes doubts
> 
> 
>   Hello dudes, i´m trying to set some attributes to a 
> request in my
> servlet, that´s pretty easy as you know, but after i must use 
> redirect to a
> JSP page and when i try to recall those attributes created before they
> doesn´t appear in JSP´s request object. Even thought i set a request´s
> attribute and use redirect i cannot get it again, can i?
> 

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



RE: More problems with upgrade from 4.1 to 5.0

2004-03-11 Thread Shapira, Yoav

Howdy,

>I am still having problems now my filters are failing at startup and my
>context is not starting.

Right: the former directly causes the latter.

>2004-03-11 09:06:52 StandardContext[]Exception starting filter
>MerchantFilter
>java.lang.NullPointerException
>   at java.io.FileInputStream.open(Native Method)
>   at java.io.FileInputStream.(FileInputStream.java:103)
>   at java.io.FileInputStream.(FileInputStream.java:66)
>   at
>org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.
java
>:
>297)
>
>any ideas? or is it just the filter is broken

You're handing PropertyConfigurator a null file handle or URL most
likely.  See if you can open/read the file in your filter before you
hand it to the configurator.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: tomcat4.1 for windows

2004-03-11 Thread Shapira, Yoav

Howdy,
What you need to do is blah blah, and then blah blah. ;)

Seriously though, more precise error information would be welcome.
AFAIK, only tomcat 3.x runs on J2ME, as later versions of tomcat require
the full J2SE JDK.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: yuni indrasary [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 10, 2004 10:14 PM
>To: Tomcat Users List
>Subject: tomcat4.1 for windows
>
>
>Hi, I recognized this list when doing some google's
>dig. My final project in college is about developping
>a wireless application (MIDlet, and using
>HTTPconnection)that supposed to be served by servlet.
>The MIDlet and servlet(using doPOST method) works well
>when compiled, but when I try to run it from J2ME
>WTK4.0, it promps error message that says somethink
>like this:
>"Servlet Exception:Null at doPOST..blah..blah" and
>"Internal Error...blah..blah"
>when I run this application, I used Win98se,
>J2meWTK4.0, and Tomcat4.1.29.
>I thought maybe it's about the server.xml
>configuration file or should I install apache also?
>Would anybody be so kind to tell me some hints to set
>the server configuration so it can serve the
>application properly?
>thank's a lot for advance..:)
>
>ps forgive me for my bad english, hopefully yu still
>catch the idea
>
>__
>Do you Yahoo!?
>Yahoo! Search - Find what you're looking for faster
>http://search.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Strange exception at tomcat 4.1.29 startup

2004-03-11 Thread Francois JEANMOUGIN


> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 2:23 PM
> To: 'Tomcat Users List'
> Subject: RE: Strange exception at tomcat 4.1.29 startup
> 
>   Maybe path, libraries or environment variables are different.

Well, maybe, but it clearly find most of the classes (common digesters and so on). So, 
what is the jar I need for this StandardServer to work ?

François.


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



RE: Strange exception at tomcat 4.1.29 startup

2004-03-11 Thread Francois JEANMOUGIN
To be clear, in the beginning of the exception, you see that 
org.apache.commons.digester.Digester is loaded. It is in the file :
server/lib/commons-digester.jar

StandardServer is in the file :
server/lib/catalina.jar
(unzip tells me everything is fine in this jar :
testing: org/apache/catalina/core/StandardServer.class   OK)

So why the hell isn't it loaded at startup ? It is in the same directory  and should 
known by the tomcat classloader, no ?

François.




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



Strange cross-context bean/session behaviour

2004-03-11 Thread Justin Johnson
I have an internal website, split into several web applications.  A problem
has been co-ordinating a UserDataBean across the sessions for each app, so
that the user's preferences change across all apps simultaneously.

Here's the tag that puts a UserDataBean into the session; it's at the top of
all pages:





The body should be executed only if there is no bean attached to 'user' in
the session, and that's what appears to happen.

The co-ordination problem was solved by having each bean register itself
with a singleton that dispatches propertyChanged events to other beans for
the same user.  I created a reporting function for the singleton to inspect
it, and got this:

Number of UserDataBeans listening: 3
Listening sessions:
89140B58A732CF2989E5F3D9D7D58AA3 [Intranet]
1E8628A77789A26C49AB80AA3B0B8665 [Project Template]
1E8628A77789A26C49AB80AA3B0B8665 [Intranet]

[Intranet] is the contextName of the root app; [Project Template] is the
name of the app that is a template for other apps.  Notice that there are
three beans, but only two sessions.

The session starting 8914 is initialized on hitting the home page, and a
bean is created for it.  The session starting 1E86 is initialized on first
hitting the template app, and a bean is created for it.  My question is
about the second bean created for the session starting 1E86.

Every page uses  to grab
mainMenu.jsp from the root context; mainMenu has the same  tag
as I listed above.  What's apparently happening is that, since the import is
cross-context, mainMenu is being processed as being in the root context, not
the template context (as it should be, I believe).  However, the session to
which that bean is attached is the Template session.  In other words, the
template session is going cross-context.

At the point the import is executed, both sessions already have a
UserDataBean attached to 'user' in the session.  So why is a third created?
In either session, and in either context, the bean is already initialized
and attached.  The index page of the root app also imports mainMenu.jsp
locally, but doesn't create a bean in that case (the order of the beans
above is necessarily the order in which they were created; the third,
unnecessary bean was only created after the cross-context import).  

This isn't a problem, per se, just a strange behaviour that I would like to
understand.  Any insight is appreciated.

Justin

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



updated prototype screencap

2004-03-11 Thread Peter Lin
 
I managed to get a rough performance graph coded. tonight I will post an update.
 
http://cvs.apache.org/~woolfel/prototype_perfcap.png
 
peter lin
 


-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

RE: Strange exception at tomcat 4.1.29 startup

2004-03-11 Thread Mike Curwen
did you copy the startup scripts as well, from the old machine, and did
you alter those scripts at all on the old machine (so perhaps now, a
path has changed). Have you double checked that CATALINA_HOME, JAVA_HOME
etc. are all appropriate ?  

> -Original Message-
> From: Francois JEANMOUGIN 
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 11, 2004 8:42 AM
> To: Tomcat Users List
> Subject: RE: Strange exception at tomcat 4.1.29 startup
> 
> 
> To be clear, in the beginning of the exception, you see that 
> org.apache.commons.digester.Digester is loaded. It is in the 
> file : server/lib/commons-digester.jar
> 
> StandardServer is in the file :
> server/lib/catalina.jar
> (unzip tells me everything is fine in this jar :
> testing: org/apache/catalina/core/StandardServer.class   OK)
> 
> So why the hell isn't it loaded at startup ? It is in the 
> same directory  and should known by the tomcat classloader, no ?
> 
> François.
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Strange exception at tomcat 4.1.29 startup

2004-03-11 Thread Francois JEANMOUGIN


> -Original Message-
> From: Mike Curwen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 4:10 PM
> To: 'Tomcat Users List'
> Subject: RE: Strange exception at tomcat 4.1.29 startup
> 
> did you copy the startup scripts as well, from the old machine, and did
> you alter those scripts at all on the old machine (so perhaps now, a
> path has changed). Have you double checked that CATALINA_HOME, JAVA_HOME
> etc. are all appropriate ?

I think they are, because it finds the commons-digester.jar! In fact I use both 
CATALINA_BASE and CATALINA_HOME, but Catalina.jar is in the same directory with the 
same permissions as commons-digester.jar, which is used, clearly.

'can't understand.

François.


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



GlobalNamingResource problem

2004-03-11 Thread D'Alessandro, Arthur
Given the following server.xml  snipplet (functional), we'd like to move
the jdbc/entitlement to the host element using a GlobalNamingResource
(see bottom for example one of many attempts).. Can someone shed some
light on how to accomplish this so all my contexts within a HOST element
have access to the JNDI naming resource?  I get errors when obtaining a
Connection, not when looking up the JNDI resource name.
 
  




  
 
   
   
 
   factory
 
org.apache.commons.dbcp.BasicDataSourceFactory
 
 
   username
   username
 
 
   password
   password
 
 
   driverClassName
   org.postgresql.Driver
 
 
   url
 
jdbc:postgresql://somehost/somedatabase?autoReconnect=true
 
   
  
 

  
 

-
 
Would like it to be moved to the Host element so it is available to
multiple contexts like this, but the contexts no longer have access to
the jdbc pool:
 
  

   
   
 
   factory
 
org.apache.commons.dbcp.BasicDataSourceFactory
 
 
   username
   username
 
 
   password
   password
 
 
   driverClassName
   org.postgresql.Driver
 
 
   url
 
jdbc:postgresql://somehost/somedatabase?autoReconnect=true
 
   





  
 

   

  
 
 
 


Jsp outside webapp

2004-03-11 Thread Anu Pidaparti
Here is my situation:

Tomcat 4.1 on Solaris 8 using mod_jk2 to integrate with Apache 1.3
My catalina_home is /opt/tomcat

I want all my jsps, images and any static include files to be under the
apache document root /webpages instead of /opt/tomcat/webapps/myapp but
I want my servlets and classes to reside in
/opt/tomcat/webapps/myapp/WEB-INF/classes.

I have tried to configure server.xml context path but can't get it to
work.
Please help.

Thanks.

Anu

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



RE: Jsp outside webapp

2004-03-11 Thread Shapira, Yoav

Hi,

>I want all my jsps, images and any static include files to be under the
>apache document root /webpages instead of /opt/tomcat/webapps/myapp but
>I want my servlets and classes to reside in
>/opt/tomcat/webapps/myapp/WEB-INF/classes.

JSPs are servlets.  Good luck ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Jsp outside webapp

2004-03-11 Thread Charles N. Harvey III
A template language like Velocity can do that for you since they are
not compiled servlets.  You can load templates from a Webapp, filesystem,
URL or database.  Its worth looking at.
Charlie

Shapira, Yoav wrote:

Hi,

 

I want all my jsps, images and any static include files to be under the
apache document root /webpages instead of /opt/tomcat/webapps/myapp but
I want my servlets and classes to reside in
/opt/tomcat/webapps/myapp/WEB-INF/classes.
   

JSPs are servlets.  Good luck ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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


 

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


Re: Jsp outside webapp

2004-03-11 Thread Adam Buglass
You need to define it in your build.xml file.

Something a bit like this:

But consult the documentation thoroughly, this is just a quick hack.

  
  
  
  
  
  

  
  
   
  





   
  




   
  
  



On Thu, 2004-03-11 at 15:53, Anu Pidaparti wrote:
> Here is my situation:
> 
> Tomcat 4.1 on Solaris 8 using mod_jk2 to integrate with Apache 1.3
> My catalina_home is /opt/tomcat
> 
> I want all my jsps, images and any static include files to be under the
> apache document root /webpages instead of /opt/tomcat/webapps/myapp but
> I want my servlets and classes to reside in
> /opt/tomcat/webapps/myapp/WEB-INF/classes.
> 
> I have tried to configure server.xml context path but can't get it to
> work.
> Please help.
> 
> Thanks.
> 
> Anu
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 

Adam Buglass,  ><>
The Golden Freeway,
Department of Child Health,
University of Newcastle-upon-Tyne.
Royal Victoria Infirmary.

(0191) 2023062

"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote." 
~Benjamin Franklin, 1759


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



international filenames inaccessible

2004-03-11 Thread Edward Toro
Does anyone know if Tomcat 5 is supposed to serve files with international characters 
in their filenames?  It used to work in Tomcat 4.1.24, but stopped working in 4.1.30 
and doesn't work in 5.0.19.

In all the versions of Tomcat I've seen, the international characters are converted 
using URLEncoder(filename, "UTF-8") as per the standard at 
http://www.w3.org/International/O-URL-code.html.  But the broken servers return 404 
when you try to access international filenames like that.

The code to interpret the encoding is provided on that w3.org page.  Why isn't it part 
of the server anymore?

-Ed


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



is /work portable?

2004-03-11 Thread Euan Guttridge
 If you deploy the same webapp on four servers, use (and compile jsps) of
the webapp on one server, is it possible to simply copy across the compiled
/work dir to the other three servers?

I have briefly tested the theory and it seemed to work. Does anyone have any
practical experience doing this?

 

Tomcat-4.1.24-LE, RH9 (ld_assume_kernel 241), JDK 141_03

Thanks
Euan



RE: is /work portable?

2004-03-11 Thread Shapira, Yoav

Hi,

> If you deploy the same webapp on four servers, use (and compile jsps)
of
>the webapp on one server, is it possible to simply copy across the
compiled
>/work dir to the other three servers?
>
>I have briefly tested the theory and it seemed to work. Does anyone
have
>any
>practical experience doing this?

Assuming it works now, what would you gain?  You'd have to retest every
time you change your tomcat version, and you'll never be doing something
that's officially supported.  Why not precompile your webapps normally?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: JK Connector & SYN packet for established connection

2004-03-11 Thread CONANT,PATRICK (HP-FtCollins,ex1)
Thanks for the proposal.  We made the change, but to no avail.  When the IIS
server came back up, we saw the same problem start almost immediately.

The only other report of this problem I could find was for a different
product (http://www.firewall-1.org/2002-04/msg00180.html).  I don't think
that the cause could be the same: with the amount of traffic we're seeing,
the JK connections should just remain open.  Regardless, our firewall admin
refuses to change the tcptimeout (as suggested in the above link) due to
potential impacts on other applications.

Any other ideas?


Thanks,
Pat.



-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 9:47 AM
To: Tomcat Users List
Subject: Re: JK Connector & SYN packet for established connection


CONANT,PATRICK (HP-FtCollins,ex1) wrote, On 3/10/2004 7:58 AM:
> 
> Our workers.properties file is pretty simple:
> worker.list=frontend
> worker.frontend.host=X.XXX.hp.com
> worker.frontend.type=ajp13
> worker.frontend.port=8007

Try setting the socket_keepalive and socket_timeout options and see if 
that helps:
worker.frontend.socket_keepalive=1
worker.frontend.socket_timeout=300

-Dave

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

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



Does anyone have mod_jk2.so for Apache 1.3.29?

2004-03-11 Thread Galam
 
Hi,
 
Does anyone have mod_jk2.so for Apache 1.3.29?  I couldn't find it anywhere at the 
jakarta website.  
 
Thanks!
 


-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Re: Does anyone have mod_jk2.so for Apache 1.3.29?

2004-03-11 Thread Adam Buglass
Yeah, I'll e-mail it to you off the list.

On Thu, 2004-03-11 at 16:35, Galam wrote:
>  Hi,
>  
> Does anyone have mod_jk2.so for Apache 1.3.29?  I couldn't find it anywhere at the 
> jakarta website.  
>  
> Thanks!
>  
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Search - Find what youÂre looking for faster.


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



mod_jk errors when using tomcat 5 and apache

2004-03-11 Thread Galam
Hi,
 
 
I have a few questions concerning running Apache 1.3.29 and Tomcat5 in a virtual 
hosting enviroment. The tomcat5 server runs fine, and I can access the sites using the 
browser. The only problem is that I got lots of errors in the mod_jk.log. I've 
attached the logs and my configuration in server.xml and workers.properties. I've been 
googling for a whole day but I still couldn't find an answer... It seems that there is 
no official solution to this problem. If anyone of you have the same experiences and 
have the problems resolved, please share your thougths with us. Thanks!
 
 
Another question I want to ask is that there are JK and JK2 connectors, which one 
should I use to connect tomcat5 to Apache1.3.29?   The mod_jk.so I used came from 
Tomcat4.0.3, I am not sure whether it is compatible with Tomcat5. The output from 
"catalina.out" log is complaining about the channel sockets, but the channel sockets 
only appears in the JK2 property files, not the JK one. Is it possible that the Apache 
use the wrong JK to talk to Tomcat?  
 
Any helps will be greately appreciated!
 
Thanks!
 
 
 
 
 
 
-- mod_jk log 
[Thu Mar 11 09:44:48 2004]  [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: 
Error - jk_tcp_socket_recvfull failed
[Thu Mar 11 09:44:48 2004]  [jk_ajp_common.c (1009)]: Error reading reply
[Thu Mar 11 09:44:48 2004]  [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, 
ajp_get_reply failed in send loop 0
 
 
 

 tomcat 5 log 

Total number of files loaded = 4335
Mar 11, 2004 8:44:15 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:15 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:20 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:20 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:25 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:25 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:43 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 11, 2004 8:44:48 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 11, 2004 8:45:03 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:45:03 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:45:12 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:45:12 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:45:25 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
java.lang.NullPointerException

 

 
Here are my server.xml and workers.properties

 
 
 
- server.xml  (partial) 
 
 
  
 






  

  
   

sinclude(`/var/tomcat4/conf/sites.m4')   

  
  
 
 
 
 workers.properties-
 
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

 


-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

SSL question

2004-03-11 Thread Ishwara Naik
Hi

We have two web application under webapps folder, WebApp1 and webApp2. There is 
separate context entry for each of them. Each of them connects to its own App Server 
through Java RMI. The difference is WebApp1 connects to its APP server over SSL(i.e 
secure rmi call) and the other one non SSL(i.e normal rmi call).
We have html link from web page of WebApp1 to WebApp2 login page. We use the same 
cookie name in both the application, which allows one time login to any of the two 
application and the other one logs in automatically when we go there.
For ssl communication we have used jssl and related packages.
Now, if we use WebApp2 alone there is no issue working with it. However if I login to 
WebApp1 and then click the link to go to WebApp2 it gives the following error. Cause 
of the error as you can see below is 'jssl.impl.PrematureEOFException: EOF reading 
record'

java.rmi.ConnectIOException: error during JRMP connection establishment; nested 
exception is:
  jssl.impl.PrematureEOFException: EOF reading record
java.rmi.ConnectIOException: error during JRMP connection establishment; nested 
exception is:
  jssl.impl.PrematureEOFException: EOF reading record
  at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)
  at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
.
  at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
  at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
  at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
  at java.lang.Thread.run(Thread.java:534)
Caused by: jssl.impl.PrematureEOFException: EOF reading record
  at jssl.internal.RecordInput.readSSLCiphertext(RecordInput.java:188)
  at jssl.internal.RecordInput.readSSLCompressed(RecordInput.java:128)
  at jssl.internal.RecordInput.receive(RecordInput.java:110)
  at jssl.internal.SSLClientProtocol.stateReceive(SSLClientProtocol.java:349)
  at jssl.internal.SSLClientProtocol.stateMachine(SSLClientProtocol.java:319)
  at jssl.internal.SSLClientProtocol.stateStep(SSLClientProtocol.java:143)
  at jssl.internal.SSLClientProtocol.authenticate(SSLClientProtocol.java:131)
  at jssl.internal.SSLProtocol.verifyStatus(SSLProtocol.java:181)
  at jssl.internal.SSLProtocol.getOutputStream(SSLProtocol.java:110)
  at jssl.JSSL.getOutputStream(JSSL.java:193)
  at jssl.JSSLSocket.getOutputStream(JSSLSocket.java:226)
  at sun.rmi.transport.tcp.TCPConnection.getOutputStream(TCPConnection.java:66)
  at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:189)

The same web application is working on JRUN over IIS. Now that we are migrating the 
web part to to tomcat, we have this issue.

Where am I going wrong? Please advise

Thanks and Regards
Ishwara



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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



RE: i18n problems

2004-03-11 Thread Yansheng Lin
Hi middleman:), can you ask your friend to do one thing first(I would do this
myself, but I am having trouble with my oracle jdbc driver:(. 

That is, native2ascii a test strings and insert it to the database.  I bet
that's why he is seeing the ???'s instead of the text. 

-yan

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 11, 2004 2:45 AM
To: 'Tomcat Users List'
Subject: i18n problems


I'm acting as a middleman delivering this email for a friend who has trouble
contacting the list ;)



I am using TC 5.0.16.

 I once had problems when reading intl. form data and passing them thru
servlets to a database. That was solved by just using

 request.setCharacterEncoding("iso-8859-7");

Now the problem is opposite. I read strings from a database and as soon as
they become http data, their encoding is lost, resulting in ???'s instead of
text. Servlets do contain

res.setContentType("text/html; charset=iso-8859-7");
req.setCharacterEncoding("iso-8859-7");

and I have tried with UTF-8 as well, with same results. There is nothing
wrong with the database and the strings, as other applications work fine. To
make sure that I get correct strings from the db, I also print them to a
JTextArea (as soon as they are retrieved) and they have no problem.

So it's not a database, font, browser problem. Encoding is lost somewhere
inside TC and I don't know what to do... Any ideas welcome.

TIA


==


Kostas Harvatis
-
National Center for Social Research - Directorate of Research Support
www.ekke.gr


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


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



Catching Exceptions in Filter

2004-03-11 Thread Qureshi, Affan
 I have a strange problem when trying to catch Exceptions in my filter. I am supposed 
to run the chain.doFilter() method and catch any exception thereof and handle them in 
the Filter. But even if the Servlets throw a ServletException they are not caught in 
the try - catch block i have set up in the filter. However a 
StringIndexOutOfBoundsException is caught in that block.

 My Filter.doFilter code is below:

 public void doFilter(ServletRequest servletRequest,
 ServletResponse response, FilterChain chain)
 throws IOException, ServletException
 {
 String targetPage = null;
 boolean foundError = false;

 try
 {
 logger.info(" Let the servlet run ");   

 //let the servlet run
 chain.doFilter(request, response);

 logger.info(" In Filter.This should not be shown ");

 }
 catch (Exception servex)
 {
 foundError = true;
   logger.info(" Caught exception " + servex);

   //this is unhandled exception. got to system error page
 targetPage = systemErrorPage;

 logger.error(servex.getMessage(), servex);
 }

   }



 My servlet doGet() code is simply:

 public void doGet(HttpServletRequest req, HttpServletResponse res)
 throws IOException, ServletException {

 String str = "abc";
 //String def = str.substring(5,10);

 if(true)
 throw new ServletException("ErrorMessage");

 }

 Any ideas?

 Thanks a lot.

 Affan

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



Re: mod_jk errors when using tomcat 5 and apache

2004-03-11 Thread Vi
About your another question. mod_jk2 was made for apache2 in mind, nut 
can work under apache 1.3.
I recomend you to stay with mod_jk, if you are going to keep using 
apache 1.3.

Galam wrote:

Hi,

I have a few questions concerning running Apache 1.3.29 and Tomcat5 in a virtual hosting enviroment. The tomcat5 server runs fine, and I can access the sites using the browser. The only problem is that I got lots of errors in the mod_jk.log. I've attached the logs and my configuration in server.xml and workers.properties. I've been googling for a whole day but I still couldn't find an answer... It seems that there is no official solution to this problem. If anyone of you have the same experiences and have the problems resolved, please share your thougths with us. Thanks!

Another question I want to ask is that there are JK and JK2 connectors, which one should I use to connect tomcat5 to Apache1.3.29?   The mod_jk.so I used came from Tomcat4.0.3, I am not sure whether it is compatible with Tomcat5. The output from "catalina.out" log is complaining about the channel sockets, but the channel sockets only appears in the JK2 property files, not the JK one. Is it possible that the Apache use the wrong JK to talk to Tomcat?  

Any helps will be greately appreciated!

Thanks!





-- mod_jk log 
[Thu Mar 11 09:44:48 2004]  [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: 
Error - jk_tcp_socket_recvfull failed
[Thu Mar 11 09:44:48 2004]  [jk_ajp_common.c (1009)]: Error reading reply
[Thu Mar 11 09:44:48 2004]  [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, 
ajp_get_reply failed in send loop 0


 tomcat 5 log 

Total number of files loaded = 4335
Mar 11, 2004 8:44:15 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:15 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:20 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:20 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:25 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:25 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:43 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 11, 2004 8:44:48 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 11, 2004 8:45:03 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:45:03 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:45:12 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:45:12 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:45:25 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
java.lang.NullPointerException


Here are my server.xml and workers.properties



- server.xml  (partial) 

 

   
   
maxProcessors="150" enableLookups="true" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="2"
useURIValidationHack="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
   
   
timestamp="true"/>
   
   
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
 
   
 
  
   
sinclude(`/var/tomcat4/conf/sites.m4')   
   
 
 



 workers.properties-

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1


-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.
 



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


RE: international filenames inaccessible

2004-03-11 Thread Larry Isaacs
See the "uriEncoding" attribute described at:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html

The same attribute applies to Tomcat 4.1.30 as well.

I'm not aware of any specs that guarantee behavior when using
non-ASCII characters in the URL in this fashion, but it might
work.

Cheers,
Larry

> -Original Message-
> From: Edward Toro [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 11, 2004 11:10 AM
> To: Tomcat Users List
> Subject: international filenames inaccessible
> 
> 
> Does anyone know if Tomcat 5 is supposed to serve files with 
> international characters in their filenames?  It used to work 
> in Tomcat 4.1.24, but stopped working in 4.1.30 and doesn't 
> work in 5.0.19.
> 
> In all the versions of Tomcat I've seen, the international 
> characters are converted using URLEncoder(filename, "UTF-8") 
> as per the standard at 
> http://www.w3.org/International/O-URL-> code.html.  But the 
> broken servers return 404 when you try 
> to access international filenames like that.
> 
> The code to interpret the encoding is provided on that w3.org 
> page.  Why isn't it part of the server anymore?
> 
> -Ed
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



HTTPS support for tomcat using openSSL with Client Authentication

2004-03-11 Thread saravanan.babu

Hi All,

I wanted to support SSL with Client Authentication  over Tomcat 4.18.



I followed the steps mentioned in the link below, but I couldn't succeed
in getting the client authentication to work,however I was able to get
the https working with "clientAuth=false" in tomcat's configuration file
"server.xml file".



http://marc.theaimsgroup.com/?l=tomcat-user

&m=106293430225790&w=2



I have attached the screenshot of the security message I see on the
client which doesn't list any certificate to choose from, though I have
imported the client certificate.pkcs12 (step 16) and the CA certificate
on the client system.



Please let me know If I am doing something wrong?



Thanks & Regards

csaravanan



Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

RE: international filenames inaccessible

2004-03-11 Thread Edward Toro
Wow, that worked!

The problem may actually be in Java rather than Tomcat.  I set the DEBUG value to 1001 
on a 5 server and a 4.1.18 server to check the request info.  The call to 
getServletPath() returns a different value between 4.1.18 and the latest releases.  I 
suppose previously Java did the decoding, but now the servlet is responsible for the 
decoding?  Or maybe the newer servers specify ISO-8859-1 instead of letting Java do 
the work?

It's really annoying that this value overrides the use of the "file.encoding" System 
property.  A previous "solution" mentioned using that, but I couldn't get it to work.

IMO, the server should be able to serve files with international file names without 
any extra configuration, especially since it used to do it before.  UTF-8 is becoming 
the standard for international character transmission over the net, if it's not the 
standard already.  And UTF-8 looks exactly like ASCII for all the values in the ASCII 
range.  Is this something worth bringing up in the Tomcat-Dev group?

-ET

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 12:36 PM
To: Tomcat Users List
Subject: RE: international filenames inaccessible


See the "uriEncoding" attribute described at:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html

The same attribute applies to Tomcat 4.1.30 as well.

I'm not aware of any specs that guarantee behavior when using
non-ASCII characters in the URL in this fashion, but it might
work.

Cheers,
Larry

> -Original Message-
> From: Edward Toro [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 11, 2004 11:10 AM
> To: Tomcat Users List
> Subject: international filenames inaccessible
> 
> 
> Does anyone know if Tomcat 5 is supposed to serve files with 
> international characters in their filenames?  It used to work 
> in Tomcat 4.1.24, but stopped working in 4.1.30 and doesn't 
> work in 5.0.19.
> 
> In all the versions of Tomcat I've seen, the international 
> characters are converted using URLEncoder(filename, "UTF-8") 
> as per the standard at 
> http://www.w3.org/International/O-URL-> code.html.  But the 
> broken servers return 404 when you try 
> to access international filenames like that.
> 
> The code to interpret the encoding is provided on that w3.org 
> page.  Why isn't it part of the server anymore?
> 
> -Ed
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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




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



Where does Tomcat remember types of EL variables?

2004-03-11 Thread Juergen Weber
I found the problem, the classname was used as String
parameter in the constructor for a TagExtraInfo.

Should always use Myclass.class.getClass().getName()
instead of String class names.

Sorry for bothering you,
Juergen




>Where does Tomcat remember types of EL variables?
>
>If I use an EL variable image like
>
>${index.selected}
>
>Tomcat 5 generates code like:
>
>image = (de.jwi.jgallery.Image)
>pageContext.findAttribute("image");
>
>
>When I renamed the class name of image, Tomcat would
>still generate code to access the old name. I deleted
>the work directory and restarted Tomcat, no change.
>Where does Tomcat remember the class name?
>In the end, I gave in and undid the class name
change.
>
>Anyway, why is the cast necessary?
>
>imho there could be
>
>Object image = pageContext.findAttribute("image");
>
>
>Object selected =
>image.getClass().getMethod("getSelected",null).invoke(image,null);
>


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



RE: Where does Tomcat remember types of EL variables?

2004-03-11 Thread Shapira, Yoav

Hi,

>I found the problem, the classname was used as String
>parameter in the constructor for a TagExtraInfo.
>
>Should always use Myclass.class.getClass().getName()
>instead of String class names.
>
>Sorry for bothering you,

It's not a bother, especially if you also post your
conclusions/solutions as you did above.  Then it becomes valuable
searchable archive material.  Thanks,

Yoav Shapira

>Juergen
>
>
>
>
>>Where does Tomcat remember types of EL variables?
>>
>>If I use an EL variable image like
>>
>>${index.selected}
>>
>>Tomcat 5 generates code like:
>>
>>image = (de.jwi.jgallery.Image)
>>pageContext.findAttribute("image");
>>
>>
>>When I renamed the class name of image, Tomcat would
>>still generate code to access the old name. I deleted
>>the work directory and restarted Tomcat, no change.
>>Where does Tomcat remember the class name?
>>In the end, I gave in and undid the class name
>change.
>>
>>Anyway, why is the cast necessary?
>>
>>imho there could be
>>
>>Object image = pageContext.findAttribute("image");
>>
>>
>>Object selected =
>>image.getClass().getMethod("getSelected",null).invoke(image,null);
>>
>
>
>__
>Do you Yahoo!?
>Yahoo! Search - Find what you're looking for faster
>http://search.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



https without specifying the port in address bar

2004-03-11 Thread Forte, Graham
Hello all,
I am trying to stand up a site and my company has all ports except
for 8443 blocked. Thus if someone types in www.mydomain.com they cant get to
any of my pages. SSL is a requirement for this site. 
How can I set this up so that if the user types in https://www.mydomain.com
they will see my pages.
Right now they have to type in https://www.mydomain.com:8443/logon.jsp

Thanks in advance!

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



RE: international filenames inaccessible

2004-03-11 Thread Larry Isaacs
This has been discussed on tomcat-dev pretty thoroughly
already.  Tomcat 4.1.27 and earlier were hard coded to
use UTF-8 for decoding URLs.  This allowed you to easily
develop a dependency on this "feature" and then later
discover your webapp isn't portable.  Tomcat 4.1.30 and
5.0.19 fix this by forcing you to change the default,
which supports portability, to something that does not.
Hence, no surprises with respect to portability.

Note that URL query string encoding is affected by the
useBodyEncodingForURI attribute.  Tomcat 4.1.30 defaults
this to true, to maintain the same behavior as prior
Tomcat 4.1.x versions. In Tomcat 5.0.19 it defaults to
false.  If you try to serve some webapps that aren't
using UTF-8 everywhere, you could be impacted by this.

Cheers,
Larry

> -Original Message-
> From: Edward Toro [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 11, 2004 12:58 PM
> To: Tomcat Users List
> Subject: RE: international filenames inaccessible
> 
> 
> Wow, that worked!
> 
> The problem may actually be in Java rather than Tomcat.  I 
> set the DEBUG value to 1001 on a 5 server and a 4.1.18 server 
> to check the request info.  The call to getServletPath() 
> returns a different value between 4.1.18 and the latest 
> releases.  I suppose previously Java did the decoding, but 
> now the servlet is responsible for the decoding?  Or maybe 
> the newer servers specify ISO-8859-1 instead of letting Java 
> do the work?
> 
> It's really annoying that this value overrides the use of the 
> "file.encoding" System property.  A previous "solution" 
> mentioned using that, but I couldn't get it to work.
> 
> IMO, the server should be able to serve files with 
> international file names without any extra configuration, 
> especially since it used to do it before.  UTF-8 is becoming 
> the standard for international character transmission over 
> the net, if it's not the standard already.  And UTF-8 looks 
> exactly like ASCII for all the values in the ASCII range.  Is 
> this something worth bringing up in the Tomcat-Dev group?
> 
> -ET
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 12:36 PM
> To: Tomcat Users List
> Subject: RE: international filenames inaccessible
> 
> 
> See the "uriEncoding" attribute described at:
> 
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
> 
> The same attribute applies to Tomcat 4.1.30 as well.
> 
> I'm not aware of any specs that guarantee behavior when using
> non-ASCII characters in the URL in this fashion, but it might
> work.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Edward Toro [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, March 11, 2004 11:10 AM
> > To: Tomcat Users List
> > Subject: international filenames inaccessible
> > 
> > 
> > Does anyone know if Tomcat 5 is supposed to serve files with 
> > international characters in their filenames?  It used to work 
> > in Tomcat 4.1.24, but stopped working in 4.1.30 and doesn't 
> > work in 5.0.19.
> > 
> > In all the versions of Tomcat I've seen, the international 
> > characters are converted using URLEncoder(filename, "UTF-8") 
> > as per the standard at 
> > http://www.w3.org/International/O-URL-> code.html.  But the 
> > broken servers return 404 when you try 
> > to access international filenames like that.
> > 
> > The code to interpret the encoding is provided on that w3.org 
> > page.  Why isn't it part of the server anymore?
> > 
> > -Ed
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



virtual hosts for single application context

2004-03-11 Thread James Agnew
Hello all,

I have an application (CFMX) running under Tomcat 5.0.18 as a deployed war
file within the ROOT folder i.e.

$CATALINA_HOME/webapps/ROOT/

this all works perfectly and correcly parses all .cfm files.

Now, I've created virtual hosts by adding the following in server.xml:









This works, but the application (i.e. CFMX) doesn't parse the .cfm pages
within the website1 and website2 folders.

Is it possible to map multiple virtual hosts to a single application
context?

Thanks, James




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



RE: https without specifying the port in address bar

2004-03-11 Thread Edward Toro
When you don't specify a port number, the number is defaulted for you.

When you access http://www.mydomain.com, I believe the default port is 80.  When you 
access https://www.mydomain.com, the default port might be 443.  You can look it up to 
confirm.

If you want your webapp to be served on the default ports, change the port number in 
the XML config files.

-ET

-Original Message-
From: Forte, Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 1:21 PM
To: 'Tomcat Users List'
Subject: https without specifying the port in address bar


Hello all,
I am trying to stand up a site and my company has all ports except
for 8443 blocked. Thus if someone types in www.mydomain.com they cant get to
any of my pages. SSL is a requirement for this site. 
How can I set this up so that if the user types in https://www.mydomain.com
they will see my pages.
Right now they have to type in https://www.mydomain.com:8443/logon.jsp

Thanks in advance!

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




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



test

2004-03-11 Thread Edson Alves Pereira


RE: international filenames inaccessible

2004-03-11 Thread Yansheng Lin
Works for me too now.  Thanks for the pointer.  Man, think all the time I
"wasted":).  

um, But I think you are going to have a hard time to convince the Tomcat
Developers to defaulting the attribute "URIEncoding" to UTF-8.  Simply because
UTF-8 is not catching up as fast.  One less direct approach would be asking them
to set the default for "useBodyEncodingForURI" to true instead of false.  

This is good to know.

-Yan

-Original Message-
From: Edward Toro [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 11, 2004 10:58 AM
To: Tomcat Users List
Subject: RE: international filenames inaccessible


Wow, that worked!

The problem may actually be in Java rather than Tomcat.  I set the DEBUG value
to 1001 on a 5 server and a 4.1.18 server to check the request info.  The call
to getServletPath() returns a different value between 4.1.18 and the latest
releases.  I suppose previously Java did the decoding, but now the servlet is
responsible for the decoding?  Or maybe the newer servers specify ISO-8859-1
instead of letting Java do the work?

It's really annoying that this value overrides the use of the "file.encoding"
System property.  A previous "solution" mentioned using that, but I couldn't get
it to work.

IMO, the server should be able to serve files with international file names
without any extra configuration, especially since it used to do it before.
UTF-8 is becoming the standard for international character transmission over the
net, if it's not the standard already.  And UTF-8 looks exactly like ASCII for
all the values in the ASCII range.  Is this something worth bringing up in the
Tomcat-Dev group?

-ET

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 12:36 PM
To: Tomcat Users List
Subject: RE: international filenames inaccessible


See the "uriEncoding" attribute described at:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html

The same attribute applies to Tomcat 4.1.30 as well.

I'm not aware of any specs that guarantee behavior when using
non-ASCII characters in the URL in this fashion, but it might
work.

Cheers,
Larry

> -Original Message-
> From: Edward Toro [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 11, 2004 11:10 AM
> To: Tomcat Users List
> Subject: international filenames inaccessible
> 
> 
> Does anyone know if Tomcat 5 is supposed to serve files with 
> international characters in their filenames?  It used to work 
> in Tomcat 4.1.24, but stopped working in 4.1.30 and doesn't 
> work in 5.0.19.
> 
> In all the versions of Tomcat I've seen, the international 
> characters are converted using URLEncoder(filename, "UTF-8") 
> as per the standard at 
> http://www.w3.org/International/O-URL-> code.html.  But the 
> broken servers return 404 when you try 
> to access international filenames like that.
> 
> The code to interpret the encoding is provided on that w3.org 
> page.  Why isn't it part of the server anymore?
> 
> -Ed
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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




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


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



Re: https without specifying the port in address bar

2004-03-11 Thread James Agnew
If the *only* port that your company's firewall is listening on is 8443,
then there's nothing you can do, as all traffic to other ports (e.g. 443 for
SSL) will be dropped. If there's some kind of proxy in between, then you
could use port forwarding, where the client request for port 443 is
translated to 8443.

The only other solution is to open up port 443 on the firewall and, if you
can only run Tomcat on 8443, then set up a firewall rule to translate 443 to
8443.

- Original Message - 
From: "Forte, Graham" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 11, 2004 7:21 PM
Subject: https without specifying the port in address bar


> Hello all,
> I am trying to stand up a site and my company has all ports except
> for 8443 blocked. Thus if someone types in www.mydomain.com they cant get
to
> any of my pages. SSL is a requirement for this site.
> How can I set this up so that if the user types in
https://www.mydomain.com
> they will see my pages.
> Right now they have to type in https://www.mydomain.com:8443/logon.jsp
>
> Thanks in advance!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: virtual hosts for single application context

2004-03-11 Thread James Agnew
..of course, the second host name should read 'website2.com' - apologies for
typo.

I've just tried the same approach with the website1 and website2 folders
directly below the application context, but it still doesn't want to parse.

Appreciate any input

Thanks, James


- Original Message - 
From: "James Agnew" <[EMAIL PROTECTED]>
To: "tomcat list" <[EMAIL PROTECTED]>
Sent: Thursday, March 11, 2004 7:30 PM
Subject: virtual hosts for single application context


> Hello all,
>
> I have an application (CFMX) running under Tomcat 5.0.18 as a deployed war
> file within the ROOT folder i.e.
>
> $CATALINA_HOME/webapps/ROOT/
>
> this all works perfectly and correcly parses all .cfm files.
>
> Now, I've created virtual hosts by adding the following in server.xml:
>
> 
> 
> 
>
> 
> 
> 
>
> This works, but the application (i.e. CFMX) doesn't parse the .cfm pages
> within the website1 and website2 folders.
>
> Is it possible to map multiple virtual hosts to a single application
> context?
>
> Thanks, James
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: international filenames inaccessible

2004-03-11 Thread Edward Toro
It still seems incorrect for the server to decide which type of encoding to use.  To 
support the portability of webapps, shouldn't each webapp decide its own encoding?  
Otherwise, once "URIEncoding=UTF-8" is set, every webapp on the server has to send 
international characters in UTF-8.  Instead, each webapp should specify the encoding 
it wants to use in a header.

So the worthwhile change would be, as Yan said, to default the useBodyEncodingForURI 
to true.  But if that only applies to the query string, then it only solves part of 
the problem.

-ET

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 1:23 PM
To: Tomcat Users List
Subject: RE: international filenames inaccessible


This has been discussed on tomcat-dev pretty thoroughly
already.  Tomcat 4.1.27 and earlier were hard coded to
use UTF-8 for decoding URLs.  This allowed you to easily
develop a dependency on this "feature" and then later
discover your webapp isn't portable.  Tomcat 4.1.30 and
5.0.19 fix this by forcing you to change the default,
which supports portability, to something that does not.
Hence, no surprises with respect to portability.

Note that URL query string encoding is affected by the
useBodyEncodingForURI attribute.  Tomcat 4.1.30 defaults
this to true, to maintain the same behavior as prior
Tomcat 4.1.x versions. In Tomcat 5.0.19 it defaults to
false.  If you try to serve some webapps that aren't
using UTF-8 everywhere, you could be impacted by this.

Cheers,
Larry

> -Original Message-
> From: Edward Toro [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 11, 2004 12:58 PM
> To: Tomcat Users List
> Subject: RE: international filenames inaccessible
> 
> 
> Wow, that worked!
> 
> The problem may actually be in Java rather than Tomcat.  I 
> set the DEBUG value to 1001 on a 5 server and a 4.1.18 server 
> to check the request info.  The call to getServletPath() 
> returns a different value between 4.1.18 and the latest 
> releases.  I suppose previously Java did the decoding, but 
> now the servlet is responsible for the decoding?  Or maybe 
> the newer servers specify ISO-8859-1 instead of letting Java 
> do the work?
> 
> It's really annoying that this value overrides the use of the 
> "file.encoding" System property.  A previous "solution" 
> mentioned using that, but I couldn't get it to work.
> 
> IMO, the server should be able to serve files with 
> international file names without any extra configuration, 
> especially since it used to do it before.  UTF-8 is becoming 
> the standard for international character transmission over 
> the net, if it's not the standard already.  And UTF-8 looks 
> exactly like ASCII for all the values in the ASCII range.  Is 
> this something worth bringing up in the Tomcat-Dev group?
> 
> -ET
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 12:36 PM
> To: Tomcat Users List
> Subject: RE: international filenames inaccessible
> 
> 
> See the "uriEncoding" attribute described at:
> 
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
> 
> The same attribute applies to Tomcat 4.1.30 as well.
> 
> I'm not aware of any specs that guarantee behavior when using
> non-ASCII characters in the URL in this fashion, but it might
> work.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Edward Toro [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, March 11, 2004 11:10 AM
> > To: Tomcat Users List
> > Subject: international filenames inaccessible
> > 
> > 
> > Does anyone know if Tomcat 5 is supposed to serve files with 
> > international characters in their filenames?  It used to work 
> > in Tomcat 4.1.24, but stopped working in 4.1.30 and doesn't 
> > work in 5.0.19.
> > 
> > In all the versions of Tomcat I've seen, the international 
> > characters are converted using URLEncoder(filename, "UTF-8") 
> > as per the standard at 
> > http://www.w3.org/International/O-URL-> code.html.  But the 
> > broken servers return 404 when you try 
> > to access international filenames like that.
> > 
> > The code to interpret the encoding is provided on that w3.org 
> > page.  Why isn't it part of the server anymore?
> > 
> > -Ed
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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




---

RE: JK Connector & SYN packet for established connection

2004-03-11 Thread David Rees
CONANT,PATRICK (HP-FtCollins,ex1) wrote:
> Thanks for the proposal.  We made the change, but to no avail.  When the
> IIS server came back up, we saw the same problem start almost immediately.
>
> The only other report of this problem I could find was for a different
> product (http://www.firewall-1.org/2002-04/msg00180.html).  I don't think
> that the cause could be the same: with the amount of traffic we're seeing,
> the JK connections should just remain open.  Regardless, our firewall
> admin refuses to change the tcptimeout (as suggested in the above link)
> due to potential impacts on other applications.
>
> Any other ideas?

Could you try setting the socket_timeout to an even lower value?  Say 30s
instead of 300?

worker.frontend.socket_timeout=30

-Dave

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



redirect and request´s attributes doubts

2004-03-11 Thread Edson Alves Pereira
Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

Regards,
Edson




doubts about attributes

2004-03-11 Thread Edson Alves Pereira
Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

Regards,
Edson





RE: international filenames inaccessible

2004-03-11 Thread Larry Isaacs
What character encoding would you have the server use to
decode the headers? :)

If the server has to make a character encoding assumption
about something, why not the URL.  IMHO, it would be backwards
to require the server look at something "internal", i.e. the
headers, in order to figure out what to do with the parent,
i.e. the request and its URL.

Since the RFCs don't require servers to handle more than ASCII,
at least for HTTP URLs, as far as I can recall.  Going beyond
ASCII in the URL, is going beyond guaranteed behavior.  Until
the RFCs are updated, this won't change.  Fortunately, the
server doesn't need to mess with the URL query string during its
portion of the processing.  Thus, slipping non-ASCII characters
into the query string is a lot less likely to have problems.

In Java land, with Unicode based strings, a Java based web
server using UTF-8 has a good change of doing what you want.
The RFCs address a more than just Java based web servers, so
they aren't likely to be changed or updated just because
something is easy in Java.

Note that the character encoding of servlet mappings in the
web.xml aren't explicitly covered in the specs.  You would be
on shakier ground if you wanted to use non-ASCII characters
in the url-pattern of a servlet mapping.

Just my 2 cents.

Cheers,
Larry

> -Original Message-
> From: Edward Toro [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 11, 2004 1:47 PM
> To: Tomcat Users List
> Subject: RE: international filenames inaccessible
> 
> 
> It still seems incorrect for the server to decide which type 
> of encoding to use.  To support the portability of webapps, 
> shouldn't each webapp decide its own encoding?  Otherwise, 
> once "URIEncoding=UTF-8" is set, every webapp on the server 
> has to send international characters in UTF-8.  Instead, each 
> webapp should specify the encoding it wants to use in a header.
> 
> So the worthwhile change would be, as Yan said, to default 
> the useBodyEncodingForURI to true.  But if that only applies 
> to the query string, then it only solves part of the problem.
> 
> -ET
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 1:23 PM
> To: Tomcat Users List
> Subject: RE: international filenames inaccessible
> 
> 
> This has been discussed on tomcat-dev pretty thoroughly
> already.  Tomcat 4.1.27 and earlier were hard coded to
> use UTF-8 for decoding URLs.  This allowed you to easily
> develop a dependency on this "feature" and then later
> discover your webapp isn't portable.  Tomcat 4.1.30 and
> 5.0.19 fix this by forcing you to change the default,
> which supports portability, to something that does not.
> Hence, no surprises with respect to portability.
> 
> Note that URL query string encoding is affected by the
> useBodyEncodingForURI attribute.  Tomcat 4.1.30 defaults
> this to true, to maintain the same behavior as prior
> Tomcat 4.1.x versions. In Tomcat 5.0.19 it defaults to
> false.  If you try to serve some webapps that aren't
> using UTF-8 everywhere, you could be impacted by this.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Edward Toro [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, March 11, 2004 12:58 PM
> > To: Tomcat Users List
> > Subject: RE: international filenames inaccessible
> > 
> > 
> > Wow, that worked!
> > 
> > The problem may actually be in Java rather than Tomcat.  I 
> > set the DEBUG value to 1001 on a 5 server and a 4.1.18 server 
> > to check the request info.  The call to getServletPath() 
> > returns a different value between 4.1.18 and the latest 
> > releases.  I suppose previously Java did the decoding, but 
> > now the servlet is responsible for the decoding?  Or maybe 
> > the newer servers specify ISO-8859-1 instead of letting Java 
> > do the work?
> > 
> > It's really annoying that this value overrides the use of the 
> > "file.encoding" System property.  A previous "solution" 
> > mentioned using that, but I couldn't get it to work.
> > 
> > IMO, the server should be able to serve files with 
> > international file names without any extra configuration, 
> > especially since it used to do it before.  UTF-8 is becoming 
> > the standard for international character transmission over 
> > the net, if it's not the standard already.  And UTF-8 looks 
> > exactly like ASCII for all the values in the ASCII range.  Is 
> > this something worth bringing up in the Tomcat-Dev group?
> > 
> > -ET
> > 
> > -Original Message-
> > From: Larry Isaacs [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 11, 2004 12:36 PM
> > To: Tomcat Users List
> > Subject: RE: international filenames inaccessible
> > 
> > 
> > See the "uriEncoding" attribute described at:
> > 
> > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
> > 
> > The same attribute applies to Tomcat 4.1.30 as well.
> > 
> > I'm not aware of any specs that guarantee behavior when using
> > non-ASCII characters in the URL in this f

Re: Application developed for Tomcat 4.1.27 failed to tun with Tomcat 5.0.19....

2004-03-11 Thread Antonio Fiol Bonnín
You missed a /

/servlet/TestServlet

Antonio Fiol

S.Latha Kamatchi wrote:

Yes  Mr.Antanio,

As u said i used the invoker servlet...

My application files (Applet and bean files ) invokes servlets as 

http://machineName:8080/webapps/myFolder/servlet/ServletName

I understand that I have to have my application specific web.xml file inside 
myFolder\WEB-INF.
I designed it to have the following stucture


 TestServlet
 /TestServlet


Its now working if the calling statement is http://machineName:8080/webapps/myFolder/TestServlet. 
But all my files in Tomcat 4.1.27,invoke servlets as http://machineName:8080/webapps/myFolder/servlet/TestServlet. 
So I tried changing the web.xml as 


 TestServlet
 servlet/TestServlet



Its not working when invoked as http://machineName:8080/webapps/myFolder/servlet/TestServlet. 
nín <[EMAIL PROTECTED]> wrote:
Hi,

Does your app map all servlets? Or did you (lazily) use the invoker servlet?

The invoker servlet comes commented out in Tomcat 5. You have two options:

- Correct your app. (My advice, it makes your app more portable)
- Uncomment the invoker (Quick kludge, but it also works)
Yours,

Antonio Fiol



S.Latha Kamatchi wrote:

 

Dear Tomcat users,

I run my web application with Tomcat 4.1.27.

My own folder name is "myFolder".

I put it under webapps folder.

I have placed jar , html and jsp pages inside 
"myFolder".

I have the folder structure WEB-INF\classes inside 
"myFolder" and 
placed the servelt files there.

Its working perfectly.
But my client now upgraded his system to have Tomcat 
5.0.19. and 
reported me that the application is not working in the 
lattest version.

Should I configure web.xml/server.xml or change the 
folder structure 
specifically to Tomcat 5.0.19?

Please suggest me...

Thankx
Latha
-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.
   



 

ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s
   



-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.
 




smime.p7s
Description: S/MIME Cryptographic Signature


Re: How to protect server.xml?

2004-03-11 Thread Antonio Fiol Bonnín
Short answer is "no".

Long answer is: "Tomcat is free software. You can make it do what you 
want. Simply patch it to your needs."

Antonio Fiol

Sonny Sukumar wrote:

Hmm ok.  Is there any way to encrypt the passwords
stored in server.xml on top of that?  I'll take all
the security I can get. :-)
--- Yiannis Mavroukakis <[EMAIL PROTECTED]>
wrote:
 

I will assume you mean protect the file from being
read. The
easiest way to do that is to assign read/write
permission to the file
to whoever user is running tomcat and remove all
permissions from group. 
That also assumes that you are running some flavour
of Unix, but you could 
achieve the same with Win32 security.

-Original Message-
From: Sonny Sukumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 01:40
To: [EMAIL PROTECTED]
Subject: How to protect server.xml?


Hey guys,

I have both a keystore password and a database
connection user name/password in cleartext in my
server.xml file and I don't know how to get around
that.
In light of this, has anybody come up with a way to
protect server.xml?  Is there a way to encrypt these
passwords? Or perhaps to encrypt the whole
server.xml
file itself?
This has been weighing on my mind for a few months
now, and I couldn't find a solution in the mailing
list archives.
I'd appreciate any help!

Tomcat version: 4.1.27

__
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster
http://search.yahoo.com
   

-
 

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


   


 

This e-mail has been scanned for all viruses by Star
Internet. The
service is powered by MessageLabs.


   

Note:__
 

This message is for the named person's use only. It
may contain
confidential, proprietary or legally privileged
information. No
confidentiality or privilege is waived or lost by
any mistransmission.
If you receive this message in error, please
immediately delete it and
all copies of it from your system, destroy any hard
copies of it and
notify the sender. You must not, directly or
indirectly, use, disclose,
distribute, print, or copy any part of this message
if you are not the
intended recipient. Jaguar Freight Services and any
of its subsidiaries
each reserve the right to monitor all e-mail
communications through its
networks.
Any views expressed in this message are those of the
individual sender,
except where the message states otherwise and the
sender is authorized
to state them to be the views of any such entity.
   


 

This e-mail has been scanned for all viruses by Star
Internet. The
service is powered by MessageLabs.
   



__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




smime.p7s
Description: S/MIME Cryptographic Signature


Re: JK Connector & SYN packet for established connection

2004-03-11 Thread Antonio Fiol Bonnín
That won't help.

socket_timeout tells Apache to CLOSE connections that have been unused 
for that time, but only WHEN it needs it.

So that will cause problems on the Tomcat side.

What we did (but our problem was slightly different) was:

Set the tcp keepalive sysctl of the web server (it is a Linux box, look 
for the equivalent on Windows) to a value LOWER than the firewall's drop 
time (1800 was OK for us).

Set socket_timeout for the worker to some value. It does not matter 
much. In fact, it can be as high as you wish.

Set socket_keepalive for the worker to 1, to enable it.

And... Good luck!!

Antonio Fiol



David Rees wrote:

CONANT,PATRICK (HP-FtCollins,ex1) wrote:
 

Thanks for the proposal.  We made the change, but to no avail.  When the
IIS server came back up, we saw the same problem start almost immediately.
The only other report of this problem I could find was for a different
product (http://www.firewall-1.org/2002-04/msg00180.html).  I don't think
that the cause could be the same: with the amount of traffic we're seeing,
the JK connections should just remain open.  Regardless, our firewall
admin refuses to change the tcptimeout (as suggested in the above link)
due to potential impacts on other applications.
Any other ideas?
   

Could you try setting the socket_timeout to an even lower value?  Say 30s
instead of 300?
worker.frontend.socket_timeout=30

-Dave

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




smime.p7s
Description: S/MIME Cryptographic Signature


mod_jk2 with multiple tomcats

2004-03-11 Thread Randy Harrison


Hi all,

I'm currently using apache2 + mod_jk2 + tomcat 5 with no problems.

I'd like to be able to connect to other instances of tomcat, including tomcat 4.

Does anyone know of any good documentation regarding this?

Thanks!

Randy Harrison



   

  Edson Alves Pereira  

  <[EMAIL PROTECTED]To:   'Tomcat-User List' <[EMAIL 
PROTECTED]>
  ano.com.br> cc:  

  Subject:  doubts about attributes

  03/11/2004 03:05 PM  

  Please respond to

  "Tomcat Users List"  

   

   





 Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

 Regards,
 Edson








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



[NON DELIVERY NOTIFICATION]

2004-03-11 Thread noreply
This message was verified by the filtering system of our mail server.

Original message was replaced by this one for the following reason:
*** A suspicious file (executable code) was found in the message !

Original message had the following attached files:
   (X-FILE ??? ) : jokes.txt.com
TYPE : application/octet-stream

   SUSPECT FILES : 1

Original message was sent by
   From : <[EMAIL PROTECTED]>

If you did not send the original message, it is likely that it came to
us with a forged header, and you can safely ignore this warning.

If you think this is an error and the message should not be rejected by
the filtering system, or if you have any questions, you can contact us:
  [EMAIL PROTECTED]

Sincerely,
  [EMAIL PROTECTED]

 j-chkmail - (c) Ecole des Mines de Paris 2002


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



Newbie to Apache/Tomcat configuration

2004-03-11 Thread Nancy Clark


Hi,
Here is what I'm trying to do
Set non-html home page for  www.foo.com to abc.bar ( a file processed by Tomcat)
 
I've tried editing httpd.conf to include :
 
ProxyPass /dir  http://localhost:port#/dir>
and ProxyReverse with the same settings.
 
Now if I type localhost/dir/abc.bar, everything works but what I really want is for it 
to resolve at the localhost level to a file as against a directory. 
 
Any ideas?
 
HTH,
Nancy





-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Tomcat 4 Clustering w/Session Replication Issue

2004-03-11 Thread Walter Stokes
I am experiencing a problem using software load balancer distributor 
(using round robin) to two Tomcat 4.1.24 instances running on the same 
machine. I am using the tomcat-replication.jar for in memory session 
replication. The context using session replication is also using a 
security-realm with form authentication. When the initial http request comes 
into server1, security constraint forces browser to my custom login form 
page. The submit of form(POST of j_security_check) then hits the 
server2. User authentication is successful, however server2 doesn't have the 
original http request. So he doesn't know the original URL to redirect 
to. This appears to happen b/c Tomcat places the original httprequest 
into the notes collection of the catalina session object. The notes 
collection doesn't appear to be replicated between servers. So, the second 
server doesn't have the original url. It looks like the principal gets 
replicated, along with all session attributes. So, the problem only 
happens
at login. Meaning once the user is authenticated and redirected by the 
same server, I can switch servers successfully. From further testing, 
it looks like the same situation exists in Tomcat 5 with clustering 
code. I am wondering is this a known issue or if it should be considered an 
issue. Any configuration fixes or workarounds would be helpful. Thanks 
for your time! 




-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Error on JSP-examples - Tomcat 5

2004-03-11 Thread Erin O'Neill
Hello all -
I'm new to tomcat and it is driving me up the wall! I've followed the 
instructions/tutorial to get it up and running. I'm installing tomcat 
5.0.19 on a solaris machine (OS 2.8 with patches), Apache 2.0.48. Java 
is  1.4.2_03-b02. Apache is up and running basic html, perl cgi & php cgi 
scripts.

Due to google and some good websites, I've actually gotten as far as to get 
to the manager page and I've been able to run some of the examples. The 
first basic ones all work (pretty exciting to even get to this point). But 
then things start to fall apart.
1. JSP 2.0 Examples all run (arthimatic ... functions)
2. Simple Tag Handling:
1. Hello World Tag works.
2. Repeat tag fails with:
HTTP Status: 500
exception:

javax.servlet.ServletException: _jspx_page_context

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:864)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.jsp2.tagfiles.panel_jsp._jspService(panel_jsp.java:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
3. Book Example works fine
3. Tag Files
1. hello world tag - works fine
2. Panel tag file - same error as above:
4. Display Products Example - same error as above.
4. New JSP XML Syntax
1. XHTML Basic example - same error as above
2. SVG (didn't test)
5. Other JSP 2.0 Features
1.  and ... - worked
2. shuffle example - same error as above
3. attributes with Dynamic names - worked4. JSP 
configuration - a NEW ERROR:
(background: $CATALINA_HOME, $JAVA_HOME have been set. From googling this 
problem I also set a PATH & a CLASSPATH. the start up script. I followed 
the instructions of copying the
tools.jar from the directory they recommended to the common/lib directory. 
I've stopped and started tomcat. I've rebooted the computer. Nothing seems 
to work. I must have a configuration error??

CLASSPATH=.:/usr/local/tomcat/common/lib:/usr/j2se:/usr/j2se/lib:$JAVA_HOME/lib/tools.jar:/usr/local/tomcat/common/lib/tools.jar:
PATH=/usr/java/bin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/java/bin:/usr/local/mysql/bin:/usr/ccs/bin:
EXCEPTION ERROR FROM TOMCAT:
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar 
from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat 
restart.
If using an alternate Java compiler, please check its installation and 
access path.


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
I did the following tutorial to get tomcat 
running:http://volume1.coreservlets.com/Apache-Tomcat-Tutorial.html

Any thoughts on what I may have wrong??

thanks,
erin


Is this how I do it?

2004-03-11 Thread George Hester
I installed a war file from this location:

http://www.jcvs.org/download.html

It is the jCVS Servlet - Release 1.0.1.  After which I read this:

http://localhost:8080/jcvslet/doc/manual/config/server.html

__
jCVS Servlet Web Server Configuration
JCVS Servlet requires only one parameter to be configured in your web server: the home 
directory. Once jCVS Servlet knows where the home directory is, it can read the global 
properties, which will then indicate the project properties files that will be read to 
configure each project. 
JCVSLET_HOME
The servlet parameter that jCVS Servlet requires you to set is named JCVSLET_HOME. How 
you set this parameter depends on which web server you are using to run the jCVS 
Servlet. For example, jCVS.org runs the Apache web server. To set this parameter on 
the jCVS.org web server, I entered the following line in my servlet properties file: 
servlet.JCVSlet.initArgs=JCVSLET_HOME=/jcvs/jcvslet 
___


In the Administrator section of Tomcat 1.4.30 j2sdk1.4.2 I see a section called 
Environment Entries in the Tree view on the left.  When I select that I see 
simpleValue on the right with a value of 30.  Under Available Actions drop down there 
is a Create New Env Entry.  Is that what I am supposed to do from above:

Nmae: JCVSLET_HOME
Type: java.lang.string
Value:  =/jcvs/jcvslet
Overide Application Level entries: checked
Description: CVS Servlet

???

Thanks.

-- 
George Hester
__


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



Re: Re: Document

2004-03-11 Thread tomcat-user
Your document is attached.


Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Context Paths

2004-03-11 Thread cameron
Thank-you for your reply. If you know of another way to get a virualhost 
specific configuration without pulling againist the virtualhost docbase 
I am all ears for it.

-Cam

Shapira, Yoav wrote:

Hi,

 

The code in 'MyContext' is a library of code that I am hoping to be
   

able
 

to reuse in serval sites on the same server. The thing is it needs a
config file and  I would like the config file to always be in the root
of the site. The thing is if I do a get getRealPath("/") from the code
in MyContext it will always return SomePath3. How do I get the docbase
of the "" context, (SomePath2)? or even of the virtual host,
(SomePath1), from with in MyContext.
I guess I am asking if it is possible to getRealPath cross context?
   

Yes, it's possible: add crossContext="true" to your context definitions,
and use ServletContext#getContext to get the other context, then call
getRealPath on the other context.
That said, your approach is bad because webapps are supposed to be
independent and self-contained.
Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
** Classified by CRM114 SS as good ** 
CLASSIFY fails; success probability: 0.  pR: -88.3358
Best match to file #1 (nonspam.css) prob: 1.  pR: 88.3358  
Total features in input file: 6672
#0 (spam.css): features: 222912, hits: 175902, prob: 4.62e-89, pR: -88.34 
#1 (nonspam.css): features: 147312, hits: 169473, prob: 1.00e+00, pR:  88.34 

 



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


Re: mod_jk errors when using tomcat 5 and apache

2004-03-11 Thread Galam
Thanks! 
 
Does anyone have comments on the mod_jk error? I am still struggle to figure out the 
cause of the problem because now I have to reboot the tomcat several times a day.
 
 


Vi <[EMAIL PROTECTED]> wrote:About your another question. mod_jk2 was made for apache2 
in mind, nut 
can work under apache 1.3.
I recomend you to stay with mod_jk, if you are going to keep using 
apache 1.3.

Galam wrote:

>Hi,
> 
> 
>I have a few questions concerning running Apache 1.3.29 and Tomcat5 in a virtual 
>hosting enviroment. The tomcat5 server runs fine, and I can access the sites using 
>the browser. The only problem is that I got lots of errors in the mod_jk.log. I've 
>attached the logs and my configuration in server.xml and workers.properties. I've 
>been googling for a whole day but I still couldn't find an answer... It seems that 
>there is no official solution to this problem. If anyone of you have the same 
>experiences and have the problems resolved, please share your thougths with us. 
>Thanks!
> 
> 
>Another question I want to ask is that there are JK and JK2 connectors, which one 
>should I use to connect tomcat5 to Apache1.3.29? The mod_jk.so I used came from 
>Tomcat4.0.3, I am not sure whether it is compatible with Tomcat5. The output from 
>"catalina.out" log is complaining about the channel sockets, but the channel sockets 
>only appears in the JK2 property files, not the JK one. Is it possible that the 
>Apache use the wrong JK to talk to Tomcat? 
> 
>Any helps will be greately appreciated!
> 
>Thanks!
> 
> 
> 
> 
> 
> 
>-- mod_jk log 
>[Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: 
>Error - jk_tcp_socket_recvfull failed
>[Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (1009)]: Error reading reply
>[Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, 
>ajp_get_reply failed in send loop 0
> 
> 
> 
>
> tomcat 5 log 
>
>Total number of files loaded = 4335
>Mar 11, 2004 8:44:15 AM org.apache.jk.common.ChannelSocket processConnection
>INFO: connection timeout reached
>Mar 11, 2004 8:44:15 AM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 11, 2004 8:44:20 AM org.apache.jk.common.ChannelSocket processConnection
>INFO: connection timeout reached
>Mar 11, 2004 8:44:20 AM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 11, 2004 8:44:25 AM org.apache.jk.common.ChannelSocket processConnection
>INFO: connection timeout reached
>Mar 11, 2004 8:44:25 AM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 11, 2004 8:44:43 AM org.apache.jk.common.HandlerRequest decodeRequest
>WARNING: Error registering request
>Mar 11, 2004 8:44:48 AM org.apache.jk.common.HandlerRequest decodeRequest
>WARNING: Error registering request
>Mar 11, 2004 8:45:03 AM org.apache.jk.common.ChannelSocket processConnection
>INFO: connection timeout reached
>Mar 11, 2004 8:45:03 AM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 11, 2004 8:45:12 AM org.apache.jk.common.ChannelSocket processConnection
>INFO: connection timeout reached
>Mar 11, 2004 8:45:12 AM org.apache.jk.common.HandlerRequest invoke
>INFO: Unknown message 0
>Mar 11, 2004 8:45:25 AM org.apache.jk.common.HandlerRequest decodeRequest
>WARNING: Error registering request
>java.lang.NullPointerException
>
> 
>
> 
>Here are my server.xml and workers.properties
>
> 
> 
> 
>- server.xml (partial) 
> 
> 
> 
> 
> 
> >maxProcessors="150" enableLookups="true" redirectPort="8443" acceptCount="100" 
> >debug="0" connectionTimeout="2"
>useURIValidationHack="false" 
>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> 
> >timestamp="true"/>
> 
> >prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
> 
> 
> 
> 
> 
>sinclude(`/var/tomcat4/conf/sites.m4') 
> 
> 
> 
> 
> 
> 
> workers.properties-
> 
>worker.ajp12.port=8007
>worker.ajp12.host=localhost
>worker.ajp12.type=ajp12
>worker.ajp12.lbfactor=1
>
>worker.ajp13.port=8009
>worker.ajp13.host=localhost
>worker.ajp13.type=ajp13
>worker.ajp13.lbfactor=1
>
> 
>
>
>-
>Do you Yahoo!?
>Yahoo! Search - Find what you#25262;e looking for faster.
> 
>


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



-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Re: JK Connector & SYN packet for established connection

2004-03-11 Thread David Rees
Antonio Fiol Bonnín wrote:
> That won't help.

I think it will, see below.

> socket_timeout tells Apache to CLOSE connections that have been unused
> for that time, but only WHEN it needs it.
>
> So that will cause problems on the Tomcat side.

Why will it cause problems on the Tomcat side?

IMO, it has a good chance of fixing the problem as Apache/mod_jk will open
a new connection if it hasn't been used for a while which should prevent
the SYN problem the original poster was having problems with.  Tomcat will
detect the closed connection and return that JK thread back to the pool
for later use.

Even if it doesn't help, it's an easy change to try.

-Dave

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



RE: Tomcat 4 Clustering w/Session Replication Issue

2004-03-11 Thread Filip Hanik \(lists\)
use sticky load balancing, that should do it

Filip

-Original Message-
From: Walter Stokes [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 3:56 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 Clustering w/Session Replication Issue


I am experiencing a problem using software load balancer distributor
(using round robin) to two Tomcat 4.1.24 instances running on the same
machine. I am using the tomcat-replication.jar for in memory session
replication. The context using session replication is also using a
security-realm with form authentication. When the initial http request comes
into server1, security constraint forces browser to my custom login form
page. The submit of form(POST of j_security_check) then hits the
server2. User authentication is successful, however server2 doesn't have the
original http request. So he doesn't know the original URL to redirect
to. This appears to happen b/c Tomcat places the original httprequest
into the notes collection of the catalina session object. The notes
collection doesn't appear to be replicated between servers. So, the second
server doesn't have the original url. It looks like the principal gets
replicated, along with all session attributes. So, the problem only
happens
at login. Meaning once the user is authenticated and redirected by the
same server, I can switch servers successfully. From further testing,
it looks like the same situation exists in Tomcat 5 with clustering
code. I am wondering is this a known issue or if it should be considered an
issue. Any configuration fixes or workarounds would be helpful. Thanks
for your time!




-
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004


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



HTTPS on Tomcat

2004-03-11 Thread UmamaheswarKalluru




Hi,
I wanted to have the default page running on 80 port and when the user logs
in, I need him to be in 443 port. I have made all the settings but I need a
clarification on how to redirect the user who has logged in using 80 port
to 443 port.

How is this generally handled in realtime. Do I need 2 instances of the
tomcat running? If so how?

Thank you,
Best Regards,
Uma


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



RE: clustering question?

2004-03-11 Thread Filip Hanik \(lists\)
at most 4 cluster members, the cluster is at a host level, so yes, that
would be 4 hosts in your scenario

Filip

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 7:53 AM
To: Tomcat Users List
Subject: Re: clustering question?


So let me get this straight.
You are saying that I should only have 2-4 hosts in a cluster?
or are saying that I should only have 2-4 physical boxes in a cluster?

I have over 10 different host and was thinking that each one needed to be in
its own cluster(is that the right way of thinking about it).


Which lives on 2 tomcat boxes running and will be adding more in the long
run.

Thanks
Daniel
Schulken


- Original Message -
From: "Aadi Deshpande" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 09, 2004 11:41 AM
Subject: Re: clustering question?


> Hi,
>
> You're changing the wrong port.
> You should not change the mcastPort, instead you should change the
> tcpListenPort
>
> The mcastPort and mcastAddr should be the same for every instance
> participating in the cluster.
>
> Also, as a word of advice, it's best to keep the cluster size down to
> 2-3 ( and at most 4 ).  we've had a lot of trouble with larger cluster
> sizes, not because of any fault of the cluster manager, just that it's a
> huge (network/memory ) resource hog having all your sessions replicated
> six times over.  Of course, this is only for our case so YMMV.
>
> hth,
> -a
>
> [EMAIL PROTECTED] wrote:
>
> >I am getting the following info in my log file.
> >
> >Mar 8, 2004 12:45:10 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
> >start
> >INFO: Cluster is about to start
> >Mar 8, 2004 12:45:10 PM
> >org.apache.catalina.cluster.tcp.ReplicationListener run
> >SEVERE: Unable to start cluster listener.
> >java.net.SocketException: Address already in use
> >at sun.nio.ch.Net.bind(Native Method)
> >at
> >sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:108
> >)
> >at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> >at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
> >at
> >org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationLi
> >stener.java:148)
> >at
> >org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListe
> >ner.java:129)
> >at java.lang.Thread.run(Thread.java:534)
> >Mar 8, 2004 12:45:10 PM org.apache.catalina.cluster.mcast.McastService
> >start
> >INFO: Sleeping for 2000 secs to establish cluster membership
> >2004-03-08 12:45:13,151 [main] DEBUG (ManagerBase.java:671) -
> >Registering Tomcat-Standalone:type=Manager,path=/,host=etrak-plus.com
> >2004-03-08 12:45:13,156 [main] DEBUG (StandardManager.java:697) - Force
> >random number initialization starting
> >2004-03-08 12:45:13,157 [main] DEBUG (ManagerBase.java:555) - Opening
> >/dev/urandom
> >2004-03-08 12:45:13,158 [main] DEBUG (ManagerBase.java:366) - Getting
> >message digest component for algorithm MD5
> >2004-03-08 12:45:13,158 [main] DEBUG (ManagerBase.java:380) - Completed
> >getting message digest component
> >2004-03-08 12:45:13,159 [main] DEBUG (ManagerBase.java:383) -
> >getDigest() 1
> >2004-03-08 12:45:13,160 [main] DEBUG (StandardManager.java:700) - Force
> >random number initialization completed
> >2004-03-08 12:45:13,161 [main] DEBUG (StandardManager.java:406) - Start:
> >Loading persisted sessions
> >2004-03-08 12:45:13,161 [main] DEBUG (StandardManager.java:416) -
> >Loading persisted sessions from SESSIONS.ser
> >2004-03-08 12:45:13,165 [main] DEBUG (StandardManager.java:430) -
> >Creating custom object input stream for class loader
> >2004-03-08 12:45:13,171 [main] DEBUG (StandardManager.java:460) -
> >Loading 0 persisted sessions
> >2004-03-08 12:45:13,172 [main] DEBUG (StandardManager.java:507) -
> >Finish: Loading persisted sessions
> >
> >
> >Here is the cluster info that i have in my server.xml.
> >
> > >name="etrakCluster1"
> >managerClassName="org.apache.catalina.cluster.session.DeltaManager"
> >expireSessionsOnShutdown="false"
> >useDirtyFlag="true">
> >
> > >className="org.apache.catalina.cluster.mcast.McastService"
> >mcastAddr="228.0.0.106"
> >mcastPort="45100"
> >mcastFrequency="500"
> >mcastDropTime="3000"/>
> >
> > >className="org.apache.catalina.cluster.tcp.ReplicationListener"
> >tcpListenAddress="auto"
> >tcpListenPort="4001"
> >tcpSelectorTimeout="100"
> >tcpThreadCount="6"/>
> >
> > >className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
> >replicationMode="pooled"/>
> >
> > >filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
> >
> >
> >
> >my mcastAddr range is from 228.0.0.106 - 228.0.0.115
> >
> >and the ports run from 45100-45109.
> >
> >Note each host has its own cluster entry and i have 10 different hosts.
> >
> >This is on tomcat 5.0.19 running on slackware 9.X
> >
> >Would i need to reboot the server to clear this up?
> >
> >Is this a problem with clustering or could it be a setup problem on my

RE: HTTPS on Tomcat

2004-03-11 Thread Filip Hanik \(lists\)
only one instance of tomcat, the settings (and examples) are in server.xml,
read the documentation for more info



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 8:37 PM
To: [EMAIL PROTECTED]
Subject: HTTPS on Tomcat






Hi,
I wanted to have the default page running on 80 port and when the user logs
in, I need him to be in 443 port. I have made all the settings but I need a
clarification on how to redirect the user who has logged in using 80 port
to 443 port.

How is this generally handled in realtime. Do I need 2 instances of the
tomcat running? If so how?

Thank you,
Best Regards,
Uma


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004


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



[Tomcat Monitor] alpha version ready

2004-03-11 Thread Peter Lin
 
Latest screen shot
http://cvs.apache.org/~woolfel/alpha-mon-cap.png
 
http://tao.altern8.net/jmeter-mon.zip
 
 
I've tested it quite a bit today. This weekend I plan to run a long-ish test and let 
the monitor run for 48+ hours to see if memory consumption grows. So far for short 
durations 30 min, the memory usage remains flat. What it is capable of doing.
 
1. monitor multiple servers
 a. add new thread group with 1 thread
 b. add constant timer
 c. add config element -> authentication
 d. add http sampler
 e. check "use as monitor"
 
2. it will display the health of the servers in the "Health" tab
 
3. it will display the "heart beat" a.k.a performance history
 
4. you can stop and clear the results
 
I tried to get all the bugs out I can. I'm hoping people will give it a try. 
Especially those who have a staging environment with many servers or people working on 
clustering. to use it, you need to be using a nightly snapshot of TC5 from this week.
 
As usual, send all comments to me directly.
 
peter lin
 


-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Re: [Tomcat Monitor] alpha version ready

2004-03-11 Thread Peter Lin

I just discovered a minor bug when the graph is
resized. if you make the width less than the minimum
width, it will draw a line across. the fix for it is
easy. tomorrow I will probably post a new version with
a fix for it. I just ran the monitor for 2 hours and
the memory usage was constant.

peter lin



--- Peter Lin <[EMAIL PROTECTED]> wrote:
>  
> Latest screen shot
> http://cvs.apache.org/~woolfel/alpha-mon-cap.png
>  
> http://tao.altern8.net/jmeter-mon.zip
>  
>  
> I've tested it quite a bit today. This weekend I
> plan to run a long-ish test and let the monitor run
> for 48+ hours to see if memory consumption grows. So
> far for short durations 30 min, the memory usage
> remains flat. What it is capable of doing.
>  
> 1. monitor multiple servers
>  a. add new thread group with 1 thread
>  b. add constant timer
>  c. add config element -> authentication
>  d. add http sampler
>  e. check "use as monitor"
>  
> 2. it will display the health of the servers in the
> "Health" tab
>  
> 3. it will display the "heart beat" a.k.a
> performance history
>  
> 4. you can stop and clear the results
>  
> I tried to get all the bugs out I can. I'm hoping
> people will give it a try. Especially those who have
> a staging environment with many servers or people
> working on clustering. to use it, you need to be
> using a nightly snapshot of TC5 from this week.
>  
> As usual, send all comments to me directly.
>  
> peter lin
>  
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Search - Find what you’re looking for faster.


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Dump HTTP Request and Response Headers

2004-03-11 Thread mganesh
Dear folks,
  How could i dump HTTP Response and Request headers. 
  Im using Apache 1.3 and Tomcat 4.0 MOD_JK.

Regards
Ganesh 

Apache/Tomcat configuration

2004-03-11 Thread Nancy Clark
Just wondering if anyone has answers to this...
 
Thanks in advance for your time,
N


Hi,
Here is what I'm trying to do
Set non-html home page for  www.foo.com to abc.bar ( a file processed by Tomcat)
 
I've tried editing httpd.conf to include :
 
ProxyPass /dir  http://localhost:port#/dir>
and ProxyReverse with the same settings.
 
Now if I type localhost/dir/abc.bar, everything works but what I really want is for it 
to resolve at the localhost level to a file as against a directory. 
 
Any ideas?
 
HTH,
Nancy




-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.


-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

RE: doubts about attributes

2004-03-11 Thread Ralph Einfeldt
That is the fourth mail with the same question.
2 times it has been answered.

Didn't you like the answer, didn't you receive it ?

> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 8:06 PM
> To: 'Tomcat-User List'
> Subject: doubts about attributes
> 
> 
>   Hello dudes, i´m trying to set some attributes to a 
> request in my
> servlet, that´s pretty easy as you know, but after i must use 
> redirect to a
> JSP page and when i try to recall those attributes created before they
> doesn´t appear in JSP´s request object. Even thought i set a request´s
> attribute and use redirect i cannot get it again, can i?
> 
>   Regards,
>   Edson
> 
> 
> 
> 

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



Re: JK Connector & SYN packet for established connection

2004-03-11 Thread Antonio Fiol Bonnín

socket_timeout tells Apache to CLOSE connections that have been unused
for that time, but only WHEN it needs it.
So that will cause problems on the Tomcat side.
   

Why will it cause problems on the Tomcat side?
 

See below.

IMO, it has a good chance of fixing the problem as Apache/mod_jk will open
a new connection if it hasn't been used for a while which should prevent
the SYN problem the original poster was having problems with.
It's worth trying. Agreed.

Tomcat will
detect the closed connection and return that JK thread back to the pool
for later use.
 

It won't. If the firewall has already dropped the connection, Tomcat 
will not notice it being closed.

And as I said (and sources seem to agree with me ;-), socket_timeout is 
only checked synchronously, i.e. at usage time. So, maybe 
socket_timeout=10, but you may have connections staying up for ... as 
long as a whole night of deep inactivity.

In the morning, if you "netstat" on both machines, you will see a 
different number of ESTABLISHED connections. You will have more of them 
in the Tomcat side. And that is not good. Add up some nights, and you 
will have to restart your tomcat server in a couple of days / a week / a 
couple of weeks, depending on your MaxSpareClients (or equivalent) in 
your web server and your maxProcessors / maxThreads in Tomcat.

That is because Tomcat does not use keepalive on its side, and never 
sends any data to the client if the data has not been requested (AFAIK).

Some time ago, I proposed to fix this. I am not sure what the conclusion 
was.

Even if it doesn't help, it's an easy change to try.
 

Agreed.

-Dave



Antonio Fiol


smime.p7s
Description: S/MIME Cryptographic Signature


RE: Java Hosting

2004-03-11 Thread Andi Reinbrech
The next best thing since sliced bread is UML (no, not drawings of stickmen)
User Mode Linux.

Some hosting companies give you a Linux VM with full root & telnet access.
You can do with it whatever you want, install Tomcat, install JDK,
PostgreSQL - whatever tickles your fancy.  You can "reboot" whenever you
want etc.


**
Everything in this e-mail and attachments relating to the official business of 
MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of the 
individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify the 
sender immediately by email, facsimile 
or telephone and destroy the original message.
**

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