How to populate session after authenticate

2006-03-28 Thread Dave
I am using JBoss. The servlet Form authentication is nice, but I need something 
more flexible.
   
  Users are allowed to login on any unprotected page and stay in the same page 
after lgoin.  I have database table to store username and password.
   
  After verifying username and password, what information needs to put into 
session(or other data structure) so that:
  HttpServletRequest.getRemoteUser() will return the remote user.
   
  Thanks!


-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

failing webapp affects other sites

2006-03-28 Thread Edmund Urbani


hi!

the config:
apache httpd 2.0 + mod_jk2 + several tomcat instances

the problem:
one of the webapps in a tomcat failed. the application continued to 
accept requests, but they just hanged without a response. after a while 
the number of hanging request reached the MaxClients number specified in 
the httpd configuration, causing httpd to stop processing new requests 
and effectively bringing down all other webapps on the system.


the question:
how do i set up httpd / mod_jk2 to be more robust in case of a failure 
of a webapp/tomcat? increasing MaxClients gives me more time to react, 
but it does not solve the problem.


Thanks!

Edmund

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



troubles with Tomcat IIS-redirector help

2006-03-28 Thread feghoul mohamed
hello everybody

I recently installed Tomcat V4.1.31 on my windows 2K
Server machine with IIS 6.0. I'm trying to use the
redirector to direct content from a host IIS
webserver, to the Tomcat processor (again, these are
on the same machine). 

I have been unable to get it working...
Please help in any way possible..

when i try this url
http://localhost/examples/jsp/index.html
the returned data lokks like this :

[EMAIL PROTECTED] Í!¸LÍ!This program cannot be run in
DOS mode.
$+Hpo)Ro)Ro)R|!wRi)Rj%~Rm)Rj%Rw)Ro)R)Rì!CRh)Rj%ARÄ)Rj%BRn)Rƒ"@Rn)Rj%DRn)RRicho)RPEL’HëBà!
  [EMAIL PROTECTED]
ø/бx6H°È.textޝ  `.rdata0‘° °@@.dataÜ:P
[EMAIL PROTECTED]@@.reloc|0 [EMAIL PROTECTED]@BS‹\$
VWht²mjjhl²mjh†h²mjSèí\‹|$(ƒÄ…ÿt7‹…Àt1‹p…öt*‹F…À~
Pè(€ƒÄV觛ƒÄÇ_^¸[Âhð±mjjhl²mjh‘h²mjSè\ƒÄ_^3À[ÂSU‹l$VWh`³mjjhT³mjh™h²


machine:W2K
java : jdk1.4.2_11
IIS : 6.0
isapi_redirect.dll : 1.2.15
i alse add a web service extension for the jakarta
filter (with allowed property).

here 's mt registry setting :
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software
Foundation]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software
Foundation\Jakarta Isapi Redirector]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software
Foundation\Jakarta Isapi Redirector\1.0]
@=""
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="C:\\JakartaIsapiRedirector\\log\\isapi_redirect.log"
"log_level"="debug"
"worker_file"="C:\\JakartaIsapiRedirector\\conf\\workers.properties"
"worker_mount_file"="C:\\JakartaIsapiRedirector\\conf\\uriworkermap.properties"


Here is an excerpt from the isapi_redirect.log:
ebug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): received from ajp13 pos=0 len=8188 max=8192
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 03 1F F8 8E 3B CC 3B DB 3B F7 3B 00 3C
09 3C 2B  - ;.;.;.;.<.<+
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 00103C 32 3C 41 3C 58 3C 5E 3C 6B 3C 77 3C
7E 3C 87  - <2.
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 00503E 8B 3E 9A 3E A8 3E AE 3E B5 3E C2 3E
C9 3E CF  - >.>.>.>.>.>.>.>.
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 00603E D7 3E DD 3E E8 3E F0 3E 00 00 00 E0
01 00 A8  - >.>.>.>.>...
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 007000 00 00 2F 31 3D 31 43 31 5D 31 62 31
71 31 7A  - .../1=1C1]1b1q1z
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 008031 87 31 92 31 A4 31 B7 31 C2 31 C8 31
CD 31 D3  - 1.1.1.1.1.1.1.1.
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 009031 E0 31 FD 31 03 32 0E 32 13 32 1B 32
21 32 2B  - 1.1.1.2.2.2.2!2+
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 00a032 31 32 46 32 4D 32 53 32 61 32 67 32
6C 32 72  - 212F2M2S2a2g2l2r
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 00b032 80 32 8C 32 AA 32 BB 32 C1 32 D2 32
35 33 C7  - 2.2.2.2.2.2.253.
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 00c036 D5 36 EC 36 F2 36 F7 36 06 37 0F 37
1C 37 27  - 6.6.6.6.6.7.7.7'
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 00d037 39 37 45 37 53 37 59 37 5E 37 64 37
71 37 8B  - 797E7S7Y7^7d7q7.
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 00e037 91 37 A1 37 AE 37 B4 37 C4 37 CE 37
EE 37 4E  - 7.7.7.7.7.7.7.7N
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 00f038 5E 3A B1 3A C6 3A F6 3A FC 3A 15 3B
1B 3B 56  - 8^:.:.:.:.:.;.;V
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 01003B A7 3B E2 3D ED 3D F5 3D 09 3E A9 3E
B1 3E 03  - ;.;.=.=.=.>.>.>.
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 01103F 15 3F 00 F0 01 00 C4 00 00 00 29 30
7B 30 8A  - ?.?)0{0.
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 012030 A2 30 38 32 F3 32 13 34 92 34 AD 34
BE 34 37  - 0.082.2.4.4.4.47
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 013035 F4 37 F8 37 FC 37 00 38 04 38 08 38
0C 38 10  - 5.7.7.7.8.8.8.8.
[Tue Mar 28 11:04:33 2006] [1864:2528] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c
(1037): 014038 1B 38 31 38 3D 38 45 38 4D 38 59 38
67 38 6F  - 8.818=8E8M8Y8g8o
[Tue Mar 28 11:04:33 2006]

Running Two Web Sites in Tomcat 5

2006-03-28 Thread Shakeel Ahmad
Hi, I am to host two websites in Tomcat 5. What should I do. This is the
scenario.

I have two domain names:
1- www.gosmile.com
2- www.gosmiletv.com 

But I have a single IP address. I want to configure this in a way that
both the URLs above are resolved to my single IP, but the web app must
be different.
 

Regards,
Shakeel Ahmad.


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



Re: failing webapp affects other sites

2006-03-28 Thread feghoul mohamed
hello

why using mod_jk2
this version is not yet supported ?

--- Edmund Urbani <[EMAIL PROTECTED]> wrote:

> 
> hi!
> 
> the config:
> apache httpd 2.0 + mod_jk2 + several tomcat
> instances
> 
> the problem:
> one of the webapps in a tomcat failed. the
> application continued to 
> accept requests, but they just hanged without a
> response. after a while 
> the number of hanging request reached the MaxClients
> number specified in 
> the httpd configuration, causing httpd to stop
> processing new requests 
> and effectively bringing down all other webapps on
> the system.
> 
> the question:
> how do i set up httpd / mod_jk2 to be more robust in
> case of a failure 
> of a webapp/tomcat? increasing MaxClients gives me
> more time to react, 
> but it does not solve the problem.
> 
> Thanks!
> 
>  Edmund
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: failing webapp affects other sites

2006-03-28 Thread Edmund Urbani

feghoul mohamed wrote:


hello

why using mod_jk2
this version is not yet supported ?
 

it's an older config. the system was originally set up before the "use 
jk2 or go back to jk" discussion.


i might switch to mod_jk, if this helps solve the issue i've experienced.

Edmund

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



Re: Running Two Web Sites in Tomcat 5

2006-03-28 Thread Corobitsyn Roman
You must RTFM
http://tomcat.apache.org/tomcat-5.5-doc/
http://tomcat.apache.org/tomcat-5.5-doc/connectors.html
http://httpd.apache.org/docs
http://httpd.apache.org/docs/2.2/vhosts/name-based.html

SA> Hi, I am to host two websites in Tomcat 5. What should I do. This is the
SA> scenario.

SA> I have two domain names:
SA> 1- www.gosmile.com
SA> 2- www.gosmiletv.com 

SA> But I have a single IP address. I want to configure this in a way that
SA> both the URLs above are resolved to my single IP, but the web app must
SA> be different.
 

SA> Regards,
SA> Shakeel Ahmad.


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




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



Re: How to populate session after authenticate

2006-03-28 Thread Nic Daniau
I use request.getUserPrincipal().getName() to get the username, does it work
for you?

Never quite understood what this getRemoteUser method was... if someone
knows, I'm interested!

On 28/03/06, Dave <[EMAIL PROTECTED]> wrote:
>
> I am using JBoss. The servlet Form authentication is nice, but I need
> something more flexible.
>
>   Users are allowed to login on any unprotected page and stay in the same
> page after lgoin.  I have database table to store username and password.
>
>   After verifying username and password, what information needs to put
> into session(or other data structure) so that:
>   HttpServletRequest.getRemoteUser() will return the remote user.
>
>   Thanks!
>
>
> -
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
> countries) for 2¢/min or less.
>


Subject: Single sign-on with multiple Tomcats served via one Apache httpd server

2006-03-28 Thread Nic Daniau
Hi there!

Configuration:
a. Apache httpd 2.0 server (IP0, port 80) with some content served from /cms
b. Worker to a Tomcat 4.1 running on a separate box (IP1:8080) mapped to
/app1
c. Anpother worker to another Tomcat 5.5 running on separate box (IP2:8080)
mapped to /app2

Both Tomcats are using the same configuration for security realm (pointing
to the same DataSource parameters of course):

  

and have their Single Sign-on valve turned on:



However, if you're required to authenticate to access say,
/app1/aSecure.jsp, you will be asked to authenticate again to access say,
/app2/anotherSecure.jsp, though from the user point of view, this is the
same username/password on the same URL.

Is there a way to carry over the single sign-on from each Tomcat to the
Apache server, so that /app2/anotherSecure.jsp can trust the authentication
done while visiting /app1/aSecure.jsp, or should this be done in a
completely different way?

We have to keep those two separate Tomcats (distinct hardware, different
versions, performance issues).

Thanks for your help!
Nic


Re: First time with Tomcat

2006-03-28 Thread Jean-François Lebeau


Yeah i'm running Apache 2, PHP and MySQ.

I tried what you said, but if I remove the 8080 connectors, I can't access 
to Tomcat main page anymore, even on the PC running it..


Can you explain a bit more?

Jean-François Lebeau


From: Franck Borel <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: First time with Tomcat
Date: Tue, 28 Mar 2006 09:05:22 +0200

Hi Jean-Francois,

in fact that is the most stable version.

> Thanks Konstantin, 1) is now fixed. Is the 5.15 the most stable 5.x 
version?

>
> And my 2) Could a config issue prevent another PC from connecting or I
> should look for a "firewall and the like" issue ?

As I understand you use Apache and Tomcat in tandem. Now you can add
following entries in you httpd.conf:


Options None
AllowOverride None
Order deny,allow
Allow from ,


Remove the 8080 Connector from your server.xml.

That's all.

-- Franck





> Thanks for help.
>
> Jean-François Lebeau
>
>
> >From: Konstantin L Kouptsov <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" 
> >To: Tomcat Users List 
> >Subject: Re: First time with Tomcat
> >Date: Mon, 27 Mar 2006 21:36:37 -0600
> >
> >
> >
> >
> >Jean-François Lebeau wrote:
> >>Hi,
> >>
> >>I need to create a simple webapp for a course project, I tried to 
install
> >>and configure Tomcat but I got some problems. I hope someone can help 
me a

> >>bit.
> >>
> >>1) After the installation (on Windows XP), I start Tomcat and go to 
the

> >>default page (on http://ipadress:8080) but I can't use the Jsp/servlet
> >>examples. I got this error message (sorry, french config) :
> >>Etat HTTP 404 - /jsp-examples/
> >
> >Try installing Tomcat 5.5.15 instead. Worked for me. Examples in 5.5.16 
do

> >not work - something is broken. It's a known issue.
> >
> >Konstantin.
> >
> >
> >>2) If I try to connect to Tomcat from an other PC in the lab, it 
doesn't

> >>work, should I look for a "firewall" issue or a config issue first ?
> >>
> >>Thanks a lot.
> >>
> >>Jean-François Lebeau
> >
> >
> >-
> >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: InputBuffer and Posting Data

2006-03-28 Thread Jon Wingfield
What is buf.length? Is it the actual length of the data you want to post 
or is it 8k?
The data you receive on the Tomcat side may be truncated by the 
Connector if the body data is longer than the value set for the 
Content-Length header.


HTH,

Jon

Vikram Goyal wrote:

Hi all,

 


I am trying to post some data via an applet to a JSP running on Tomcat
5.5.16. In my applet code, I am setting the following:

 


postConn.setRequestMethod("POST");

 


postConn.setRequestProperty("Content-Length", (buf.length) + "");

 


postConn.setRequestProperty("Content-Type", "application/octet-stream");

 


Now, on the server side, I am retrieving my actual data by using the
ServletInputStream gathered from request.getInputStream() method. The
connection also contains some query parameters, which I am retrieving on
the server side using request.getParameter().

 


Now, irrespective of the size of the data that I post, the
ServletInputStream is truncating the data to a size of 8K (for files
greater than that size, smaller files are the received correctly). I
understand, after going through the source code, that the Request class
uses the InputBuffer class for reading from this stream and the default
size of the buffer for this operation is 8K. However, I would have
expected this buffer to grow, if the data was larger than this default,
but this is not happening.

 


Is there a setting to increase this buffer automatically that I need to
set? Alternatively, is there a setting that I need to set that will set
the default to a larger value? I have searched and searched and cannot
find anything.

 


Thanks,

Vikram

 

 







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



RE: SSL Using APR Connectors under Linux not working

2006-03-28 Thread Armand Rock
Thanks for the help...it works now...kind of...
Http is no longer functioning 100% of the time (random images seem to not
display anymore...
getting rid of the APR changes fixes the problem...
I'm going to have to take a look and see if there are any known bugs with
the APR connectors under linux
or if there is something else that needs to be done

-Original Message-
From: Markus Schönhaber [mailto:[EMAIL PROTECTED]
Sent: Monday, March 27, 2006 4:29 PM
To: Tomcat Users List
Subject: Re: SSL Using APR Connectors under Linux not working


Armand Rock wrote:
[...]
> Libraries have been installed in:
>/usr/local/apr/lib
>
> I then copied the .so library file from
/usr/local/apr/lib/libtcnative-1.so
> to /tomcat/bin/libtcnative-1.so
> I restarted TomcatI'm still getting a page cannot be displayed error.

By default, if Tomcat doesn't find libtcnative-1.so, it will generate a log
message in catalina.out that contains information where it looked for it.
In contrast to Windows, on Linux /bin isn't searched for native
libs by default and it therefore has no effect to copy libtcnative-1.so in
there.

> Is there anything else I perhaps need to do?

Add the directory that contains the native lib either to the environment
variable LD_LIBRARY_PATH or the Java property java.library.path when
starting
Tomcat. The easiest way to achieve this might be to create a file named
"setenv.sh" in /bin which contains

# File content starts here
export LD_LIBRARY_PATH=/usr/local/apr/lib
# File content ends here

(the path "/usr/local/apr/lib" is taken from what you wrote above).

Regards
  mks

-
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: SSL Using APR Connectors under Linux not working

2006-03-28 Thread Markus Schönhaber
Armand Rock wrote:
> Thanks for the help...it works now...kind of...
> Http is no longer functioning 100% of the time (random images seem to not
> display anymore...
> getting rid of the APR changes fixes the problem...
> I'm going to have to take a look and see if there are any known bugs with
> the APR connectors under linux

Almost all known bugs habe been fixed in Tomcat 5.5.16 and tomcat-native 1.1.2 
(due to a packaging bug, 5.5.16 comes with the older tomcat-native 1.1.1 
which won't work).
You didn't mention which Tomcat version you're using. If it isn't 5.5.16 the 
first step should be to upgrade.

AFAIK the exception is a bug in the OS detection that was fixed after 5.5.16 
was released. This bug, on my machine, had the effect that SO_REUSEADDR isn't 
set on the APR-sockets, which in turn can cause a restart of Tomcat to fail 
with "address already in use" if there are connections still in CLOSE_WAIT 
state.

Regards
  mks

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



Re: InputBuffer and Posting Data

2006-03-28 Thread Lothar Krenzien

Look for the value of "maxHttpHeaderSize"  in your server.xml in the 
CATALINA_HOME/conf diretory. I had a similar problem.

> -Ursprüngliche Nachricht-
> Von: "Tomcat Users List" 
> Gesendet: 28.03.06 16:24:20
> An: Tomcat Users List 
> Betreff: Re: InputBuffer and Posting Data


> What is buf.length? Is it the actual length of the data you want to post 
> or is it 8k?
> The data you receive on the Tomcat side may be truncated by the 
> Connector if the body data is longer than the value set for the 
> Content-Length header.
> 
> HTH,
> 
> Jon
> 
> Vikram Goyal wrote:
> > Hi all,
> > 
> >  
> > 
> > I am trying to post some data via an applet to a JSP running on Tomcat
> > 5.5.16. In my applet code, I am setting the following:
> > 
> >  
> > 
> > postConn.setRequestMethod("POST");
> > 
> >  
> > 
> > postConn.setRequestProperty("Content-Length", (buf.length) + "");
> > 
> >  
> > 
> > postConn.setRequestProperty("Content-Type", "application/octet-stream");
> > 
> >  
> > 
> > Now, on the server side, I am retrieving my actual data by using the
> > ServletInputStream gathered from request.getInputStream() method. The
> > connection also contains some query parameters, which I am retrieving on
> > the server side using request.getParameter().
> > 
> >  
> > 
> > Now, irrespective of the size of the data that I post, the
> > ServletInputStream is truncating the data to a size of 8K (for files
> > greater than that size, smaller files are the received correctly). I
> > understand, after going through the source code, that the Request class
> > uses the InputBuffer class for reading from this stream and the default
> > size of the buffer for this operation is 8K. However, I would have
> > expected this buffer to grow, if the data was larger than this default,
> > but this is not happening.
> > 
> >  
> > 
> > Is there a setting to increase this buffer automatically that I need to
> > set? Alternatively, is there a setting that I need to set that will set
> > the default to a larger value? I have searched and searched and cannot
> > find anything.
> > 
> >  
> > 
> > Thanks,
> > 
> > Vikram
> > 
> >  
> > 
> >  
> > 
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



Re: SSL Using APR Connectors under Linux not working

2006-03-28 Thread Remy Maucherat
On 3/28/06, Armand Rock <[EMAIL PROTECTED]> wrote:
> Thanks for the help...it works now...kind of...
> Http is no longer functioning 100% of the time (random images seem to not
> display anymore...
> getting rid of the APR changes fixes the problem...
> I'm going to have to take a look and see if there are any known bugs with
> the APR connectors under linux
> or if there is something else that needs to be done

You should update to Tomcat native 1.1.2.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Inc
x

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



multiple sessions being created with Tomcat Proxy and session is null

2006-03-28 Thread [EMAIL PROTECTED]
 Greetings:

I am looking for help with an issue that I cannot find the answer to on the
web or list-archives. My issue is this:

I use Tomcat 5.5 and jdk 1.5 on linux. 

1)I have a custom jsp tag that puts string data in a Session attribute when
the jsp page loads (via pageRequest.getSession().setAttribute("var",value).

2)The jsp page is a form that submits to data to a servlet. The servlet
retrieves the data request.getSession().getAttribute("var") to compare it
with data from another form field.

Under normal deployement with tomcat running on port 8080 and the app at
context /myapp (http://localhost:8080/myapp) the servlet is able to
retrieve the "var" out of the session and read it.

The problem-issue is when I setup the apache/tomcat proxy (http not
modjk).

When I access the application with Apache on port 80 through the proxy on
port 8082 (http://myhost.localhost/myapp), the
request.getSession().getAttribute("var") within the servlet returns null.
When I access the application throgh the proxied port
(http://myhost.localhost:8082/myapp) the session attribute is not null.

Also, when I access the application through port 80, the Tomcat manager
webapp reports double the amount of sessions being created.


Here is the connector setting in sever.xml


Here is the host setting in server.xml

myhost.localhost.org







Here is the apache virtual host proxy configuration:

ServerName myhost.localhost
DocumentRoot /usr/local/tomcat/myhost
Options Indexes

ProxyPass / http://myhost.localhost:8082/myhost/
ProxyPassReverse / http://myhost.localhost:8082/myhost/




Does anyone know what is going on here? any help is greatly appreciated.
Thanks.
Bill


mail2web - Check your email from the web at
http://mail2web.com/ .



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



Re: Tomcat, Security and RMI

2006-03-28 Thread Mike Sabroff
I have not used RMI since '98 and I know it has gone through some 
changes since then. It use to be that RMIC created stubs and skeletons 
fore marshalling the data and class structure. (That is not the case 
anymore is it?)
But, when I did this...even though the stub was on one side and th 
skeleton on the other, I had to have at least one of them on both client 
and server side in order for it to work.
This is probably not helpful, but my point isis this a Tomcat 
problem or a java problem??


Mike S.

Gary Pennington wrote:

Hi,

Environment:

OS: Solaris 10 on client and server
Java: java full version "1.5.0_06-b04"
Tomcat: 5.5.15

I'm trying make one of my servlets act as an RMI client with an RMI server
running on a different host.

I have a problem though and I can't seem to make much progress, so maybe
someone can help me.

If I invoke Tomcat with the following additional options, I can make my
servlet/RMI client deploy:

-Djava.rmi.server.codebase="http://webserver/builds2/garypen/jars/jscmc.jar 
http://webserver/builds2/garypen/jars/jscma.jar";

The application executes fine until it tries to make an RMI call to the server
which involves transferring an object from the client to the server. At this
point, if I make sure that the client jar file is in my server's class path
then everything works fine, since the server loads the local class definition.
However, this is not ideal and I don't want to have to load client jar files
on my server. Rather, I would like to use the RMI capability to load the
class definition from my client. This is the problem I'm trying to solve.

I modified my catalina policy file so that:

//Gary's nasty hack to get round all security :)
grant codeBase "file:${catalina.home}/webapps/repository/-" {
permission java.security.AllPermission;
};

You'll note that I'm trying to give every permisssion to my servlets.
I'll fix this later and only give specific permissions. I'm just using
this whilst I figure out what is going on.

I start up my server with the -security option to make sure the policy
file is used to set the security environment.

However, when the call to the server is made, I get the following errors:

Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested 
exception is:
java.lang.ClassNotFoundException: access to class loader denied

Caused by: java.security.AccessControlException: access denied 
(java.io.FilePermission 
/home/garypen/dev/dist/apache-tomcat-5.5.15/webapps/repository/WEB-INF/classes/-
 read)

(This is just a snippet of the full trace log, the rest appears to be
fairly unhelpful detail.)

So, this is a big puzzle to me. I'm giving everything under
/webapps/repository all permissions and yet Tomcat is failing to
load the class that I want to send to my RMI server because of a
permissions problem.

Has anyone got any idea what the problem could be?

On a related note. When you modify a policy file and use the '-' sign to
indicate all jars and classes under this codebase have the policies applied.
Does this include jar files with different extensions, e.g. .war or .ear?

It doesn't seem that it does at the moment, so I'm unpacking my .war
files. Again, this is a bit unsatisfactory, so I'd rather not do this.
How do I set policy against .war files?

Thanks for any pointers,

Gary
  


--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



RE: mod_jk 1.2.15 - is this a solution for High Availability Clustering?

2006-03-28 Thread Fictorie, H (kpn.com opr development)
What we use is (Solaris 8, Apache 2.0.55, mod_jk.1.2.15):

worker.worker1.type=ajp13
worker.worker1.host=a.b.c.d
worker.worker1.port=xyz
worker.worker1.lbfactor=50
worker.worker1.cache_timeout=600
worker.worker1.recycle_timeout=600
worker.worker1.socket_timeout=62
worker.worker1.sticky_session=1
worker.worker1.prepost_timeout=3
worker.worker1.recovery_options=0
worker.worker1.reply_timeout=60
worker.worker1.retries=1

same for worker2, worker3, worker4

worker.lbworker.type=lb
worker.lbworker.balance_workers=worker4,worker3,worker2,worker1
worker.lbworker.sticky_session=1
worker.lbworker.local_worker_only=0
worker.lbworker.retries=1

When a tomcat worker goes does, the worker enters the error state and
traffic gets redirected to another worker. When the tomcat worker is
restarted it will eventually be detected by mod_jk and traffic gets
directed to it.

Henk
-- 
Henk Fictorie 
KPN.com
phone: +31 70 3438362 
mobile: +31 6 51379479
email: [EMAIL PROTECTED] 



-Original Message-
From: Vidya TR [mailto:[EMAIL PROTECTED]
Sent: dinsdag 28 maart 2006 0:28
To: users@tomcat.apache.org
Subject: mod_jk 1.2.15 - is this a solution for High Availability
Clustering?



For several days now I have been trying various options in mod_jk
including
the following. But I am unable to get apache mod_jk to detect a hung a
node
due to a thread deadlock and failover to nodeB. 

# below are in seconds worker.nodeA.cache_timeout=60
worker.nodeA.socket_timeout=30
worker.nodeA.recycle_timeout=60
# Advanced ping-pong options
worker.nodeA.recovery_options=0
# below are in milliseconds
worker.nodeA.prepost_timeout=5000
worker.nodeA.connect_timeout=5000
# under load it can take awhile to get a reply when doing an initial JSP
compile
worker.nodeA.reply_timeout=6

I give up coming to a conclusion that mod_jk 1.2.15 is not a solution
for
High Availability Clustering.
--
View this message in context:
http://www.nabble.com/mod_jk-1.2.15---is-this-a-solution-for-High-Availa
bility-Clustering--t1352358.html#a3619614
Sent from the Tomcat - User forum at Nabble.com.


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



DefaultContext with JNDI resource in admin web-app

2006-03-28 Thread Todd Hill
When I try to add a JNDI lookup resource (DataSource) to the DefaultContext
node in the server.xml file, I always get a "Error retrieving attribute
debug" message (see attached screenshot).
 
I have the server.xml is configured as follows:

  
  


  
url
 
jdbc:mysql://localhost/test?zeroDateTimeBehavior=convertToNull
  
  
password
root
  
  
maxActive
10
  
  
maxWait
100
  
  
driverClassName
com.mysql.jdbc.Driver
  
  
username
root
  
  
maxIdle
30
  
 


  
  
  

 . . .

 
 
Further, the admin log shows the following error:
 . . .
2006-03-27 17:26:59 StandardContext[/admin]action: Select event on
Catalina:type=DefaultContext,host=localhost
2006-03-27 17:26:59 StandardContext[/admin]action: Error retrieving
attribute debug
javax.management.InstanceNotFoundException: MBeanServer cannot find MBean
with ObjectName Catalina:type=DefaultLoader,host=localhost
at
mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:528)
at
mx4j.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1235)
at
org.apache.webapp.admin.defaultcontext.EditDefaultContextAction.perform(Edit
DefaultContextAction.java:198)
at org.apache.struts.action.Action.execute(Action.java:420)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
java:540)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534)

I'm not sure what the MBean error is all about. Any clues as to how I can
get this to work? Incidentally, the JNDI lookup works fine and the webapps
are accessing the JDBC Datasource, it's just the admin webapp that doesn't
seem to work with DefaultContext, even though some books tell you to
configure things this way.

Thanks in advance.
Todd

--

Context startup order

2006-03-28 Thread Cord Awtry
All,
 
I have several contexts that run on one server. I've slogged
through documentation and googled until I can google no more, but I've been
unable to find a way to specify an order to start them up (there's one in
particular that I want to start first). Does anyone know of a way to do this
that I missed? This is Tomcat 5.0.28, btw.
 
Thanks,
 
-C-
 


RE: DefaultContext with JNDI resource in admin web-app

2006-03-28 Thread Farrow, Marc
Not sure if this is related to your specific error, but you need to add a
resource link in the context.xml to the application.  The resource
(datasource) is defined globally, but you still need to point your app to
that resource.

webappname.xml snippet:







-Original Message-
From: Todd Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 10:48 AM
To: users@tomcat.apache.org
Subject: DefaultContext with JNDI resource in admin web-app

When I try to add a JNDI lookup resource (DataSource) to the DefaultContext
node in the server.xml file, I always get a "Error retrieving attribute
debug" message (see attached screenshot).

I have the server.xml is configured as follows:

  
  


  
url

jdbc:mysql://localhost/test?zeroDateTimeBehavior=convertToNull
  
  
password
root
  
  
maxActive
10
  
  
maxWait
100
  
  
driverClassName
com.mysql.jdbc.Driver
  
  
username
root
  
  
maxIdle
30
  
 


  
  
  

 . . .



Further, the admin log shows the following error:
 . . .
2006-03-27 17:26:59 StandardContext[/admin]action: Select event on
Catalina:type=DefaultContext,host=localhost
2006-03-27 17:26:59 StandardContext[/admin]action: Error retrieving
attribute debug
javax.management.InstanceNotFoundException: MBeanServer cannot find MBean
with ObjectName Catalina:type=DefaultLoader,host=localhost
at
mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:528)
at
mx4j.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1235)
at
org.apache.webapp.admin.defaultcontext.EditDefaultContextAction.perform(Edit
DefaultContextAction.java:198)
at org.apache.struts.action.Action.execute(Action.java:420)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
java:540)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(T

Re: multiple sessions being created with Tomcat Proxy and session is null

2006-03-28 Thread Mike Sabroff

Do you have any mappings for your servlet in a web.xml?

I have always mapped my servlets in my web.xml, then made a JkMount the 
same as that mapping


i.e.


http://java.sun.com/dtd/web-app_2_3.dtd";>

   
   admincontrol
   com.bla.servlet.AdminServlet
   4
   

   
   admincontrol
   /admincontrol/*
   



then in httpd.conf

JkMount /*.jsp local
JkMount /webappname/* local
JkMount /admincontrol/* local

then when accessing through these mappings, the session is the same session

The problem is, if you don't have some kind of mapping in apache to 
match a webapp class in tomcat

apache will access the jsp though a session at "/"
and the webapp servlet at /servlet or whatever so you have 2 different 
sessions
Doing it the way I described, then accessing through the 
/webappname/main.jsp where the action of the form is 
/webappname/admincontrol insures using the same session.


Now, there may be better ways of doing this as the support persons at 
tomcat would know better than me, but this works for me.


The thing is (I believe this to be true) that if you don't create the 
correct mappings for both servers, you can get 2 different sessions as 
you have 2 different servers. After all, a session is a connection 
between a client and a server.







[EMAIL PROTECTED] wrote:

 Greetings:

I am looking for help with an issue that I cannot find the answer to on the
web or list-archives. My issue is this:

I use Tomcat 5.5 and jdk 1.5 on linux. 


1)I have a custom jsp tag that puts string data in a Session attribute when
the jsp page loads (via pageRequest.getSession().setAttribute("var",value).

2)The jsp page is a form that submits to data to a servlet. The servlet
retrieves the data request.getSession().getAttribute("var") to compare it
with data from another form field.

Under normal deployement with tomcat running on port 8080 and the app at
context /myapp (http://localhost:8080/myapp) the servlet is able to
retrieve the "var" out of the session and read it.

The problem-issue is when I setup the apache/tomcat proxy (http not
modjk).

When I access the application with Apache on port 80 through the proxy on
port 8082 (http://myhost.localhost/myapp), the
request.getSession().getAttribute("var") within the servlet returns null.
When I access the application throgh the proxied port
(http://myhost.localhost:8082/myapp) the session attribute is not null.

Also, when I access the application through port 80, the Tomcat manager
webapp reports double the amount of sessions being created.


Here is the connector setting in sever.xml


Here is the host setting in server.xml

myhost.localhost.org







Here is the apache virtual host proxy configuration:

ServerName myhost.localhost
DocumentRoot /usr/local/tomcat/myhost
Options Indexes

ProxyPass / http://myhost.localhost:8082/myhost/
ProxyPassReverse / http://myhost.localhost:8082/myhost/




Does anyone know what is going on here? any help is greatly appreciated.
Thanks.
Bill


mail2web - Check your email from the web at
http://mail2web.com/ .



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

  


--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



Re: First time with Tomcat

2006-03-28 Thread Jean-François Lebeau


Sorry, it was a Xp-Firewall issue.

Thanks anyway!

Jean-François Lebeau






From: Franck Borel <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: First time with Tomcat
Date: Tue, 28 Mar 2006 09:05:22 +0200

Hi Jean-Francois,

in fact that is the most stable version.

> Thanks Konstantin, 1) is now fixed. Is the 5.15 the most stable 5.x 
version?

>
> And my 2) Could a config issue prevent another PC from connecting or I
> should look for a "firewall and the like" issue ?

As I understand you use Apache and Tomcat in tandem. Now you can add
following entries in you httpd.conf:


Options None
AllowOverride None
Order deny,allow
Allow from ,


Remove the 8080 Connector from your server.xml.

That's all.

-- Franck





> Thanks for help.
>
> Jean-François Lebeau
>
>
> >From: Konstantin L Kouptsov <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" 
> >To: Tomcat Users List 
> >Subject: Re: First time with Tomcat
> >Date: Mon, 27 Mar 2006 21:36:37 -0600
> >
> >
> >
> >
> >Jean-François Lebeau wrote:
> >>Hi,
> >>
> >>I need to create a simple webapp for a course project, I tried to 
install
> >>and configure Tomcat but I got some problems. I hope someone can help 
me a

> >>bit.
> >>
> >>1) After the installation (on Windows XP), I start Tomcat and go to 
the

> >>default page (on http://ipadress:8080) but I can't use the Jsp/servlet
> >>examples. I got this error message (sorry, french config) :
> >>Etat HTTP 404 - /jsp-examples/
> >
> >Try installing Tomcat 5.5.15 instead. Worked for me. Examples in 5.5.16 
do

> >not work - something is broken. It's a known issue.
> >
> >Konstantin.
> >
> >
> >>2) If I try to connect to Tomcat from an other PC in the lab, it 
doesn't

> >>work, should I look for a "firewall" issue or a config issue first ?
> >>
> >>Thanks a lot.
> >>
> >>Jean-François Lebeau
> >
> >
> >-
> >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: how to install Tomcat 5.5.15 or 16 in Windows 2003?

2006-03-28 Thread Anoop kumar V
Did you try the non-exe install?? Tomcat actually does not install anything
I think - it is mostly just a decompress of files and the setting of
references to environment variables like JAVA_HOME etc.. setting of
shortcuts on the start menu. initialising the service.

So there should be a zipped version (non-exe) tomcat binary file that you
might have to download from the tomcat site. Then you would have to set the
variables like JAVA_HOME to point to your java install..
You should be able to start tomcat by running /bin/startup.exe

You would have to do all the above stuff manually - thats the only drawback
- else it is quite uncomplicated - the install is.

Hope that helps,
Anoop



On 3/27/06, Cesar Ribera <[EMAIL PROTECTED]> wrote:
>
> Hi All.
>  I'm just begining to use Tomcat, installed in WinXP before, with no
> problems, I tried to install it in Windows Server 2003 and I had a popup
> GPF Window (see attached image) about "Memory 'read' " and I couldn't
> finish the
> installation.
>
>   The Windows Server 2003 has IIS 6 already installed...JRE 1.5.06 is
> correctly installed and verified.
>
> I tried both Tomcat 5.5.15 and 5.5.16 and the same result, the same error
> screen.
>
>   Where can I find detailed documentation regarding the necesary steps
> to Install Tomcat in Windows 2003? The most basic info, the better.
>
>   Thanks in advance for your help, best Regards.
>
> __
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> Regístrate ya - http://correo.espanol.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


--
Thanks and best regards,
Anoop


Re: Context startup order

2006-03-28 Thread Vivek Mohan
Do you have all the contexts mentioned in one server.xml? or do you
have separate context xmls for your separate contexts? If its the
former case, then I guess, the order in which you mention the contexts
in server.xml is going to be the order of starting them up by Tomcat.

--
Vivek.

On 3/28/06, Cord Awtry <[EMAIL PROTECTED]> wrote:
> All,
>
> I have several contexts that run on one server. I've slogged
> through documentation and googled until I can google no more, but I've been
> unable to find a way to specify an order to start them up (there's one in
> particular that I want to start first). Does anyone know of a way to do this
> that I missed? This is Tomcat 5.0.28, btw.
>
> Thanks,
>
> -C-

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



Re: Context starts twice

2006-03-28 Thread Vivek Mohan
This can happen if you have a separate context path configured for
your webapp and its present in your appbase. If thats the case, then
Tomcat will try to load the webapp twice, once for the different
context path and once for the presence of the war or folder in
appbase. This is a known feature(or bug) in Tomcat.

Try keeping your webapp outside of your appbase and re-loading should
not happen.
--
Vivek.

On 3/28/06, Jean-Philippe Boily <[EMAIL PROTECTED]> wrote:
> Hi,
>What version of Tomcat are you using ? Maybe your war is under your
> appbaseif it so, it may starts your context once  with the
> context.xml file and once with the WAR
>
>
> Good luck !
> Jean-Philippe Boily
>
> On 3/27/06, Dola Woolfe <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I don't know what I did wrong, but my StartUp servlet
> > now runs twice in a row when I start Tomcat. The
> > web.xml entry is
> >
> >   StartUp
> >   servlets.StartUp
> >   1
> >
> > I don't even know where to begin looking for the
> > error. Do you have any suggestions?
> >
> > Many thanks in advance!
> >
> > Dola
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > -
> > 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]
>
>


--
I told the doctor I broke my leg in two places. He told me to quit
going to those places.

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



How to set a default or root application?

2006-03-28 Thread Gamigin Gamigin
I deploy an application to my Tomcat server via .war file. It works
perfectly but I must use:
http://domain.com/Application

I want to make this the default application so the user can use:
http://domain.com

My hosting provider told me to edit the conf/server.xml and find this element:

And change docBase to this:


This started to work, but my JNDI JDBC data source that I defined in
META-INF/context.xml wasn't available. I worked around that, by
manually creating the global JNDI resource on Tomcat. Then I got a
ClassNotFoundException exception. This same application works
perfectly when I use the full URL (http://domain.com/Application).
What is wrong? Is there a better way to make a specified application
the default?

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



RE: How to set a default or root application?

2006-03-28 Thread Farrow, Marc
Here is a work around if you want to use it.  Change your default page
(usually index.html or index.jsp) under your "/" context (ROOT) to redirect
to the http://domain.com/Application using Javascript.




window.location.replace(http://domain.com/Application);




OR

You can just set up your stuff in your default context and run it out of
root.

-Original Message-
From: Gamigin Gamigin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 1:03 PM
To: users@tomcat.apache.org
Subject: How to set a default or root application?

I deploy an application to my Tomcat server via .war file. It works
perfectly but I must use:
http://domain.com/Application

I want to make this the default application so the user can use:
http://domain.com

My hosting provider told me to edit the conf/server.xml and find this
element:

And change docBase to this:


This started to work, but my JNDI JDBC data source that I defined in
META-INF/context.xml wasn't available. I worked around that, by
manually creating the global JNDI resource on Tomcat. Then I got a
ClassNotFoundException exception. This same application works
perfectly when I use the full URL (http://domain.com/Application).
What is wrong? Is there a better way to make a specified application
the default?

-
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: NoClassDefFoundError in SystemLogHandler during Bootstrap in binary version

2006-03-28 Thread Cody Caughlan
I looked at the Tomcat source code and that class should be in
/server/lib/tomcat-util.jar. Which should be in the bootstrap
classpath. For fun's sake I added that to the classpath environment
variable building routine in catalina.sh and it still didnt work.

/Cody

On 3/27/06, Farrow, Marc <[EMAIL PROTECTED]> wrote:
> You need to place the Jar file that contains the
> org/apache/tomcat/util.log/SystemLoghandler class in your
> %tomcat_home%/common/lib folder.  I am not going to research and find that
> jar file you.  I will let that be an assignment for you.
>
> -Original Message-
> From: Cody Caughlan [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 26, 2006 11:42 PM
> To: users@tomcat.apache.org
> Subject: NoClassDefFoundError in SystemLogHandler during Bootstrap in binary
> version
>
> Tomcat version: 5.5.16
> SuSE 10 OSS
> JDK: 1.5.06
> Classpath: /usr/local/apache-tomcat-5.5.16/bin:
> /usr/local/apache-tomcat-5.5.16/server/lib:
> /usr/local/apache-tomcat-5.5.16/common/lib:
> /usr/local/jdk1.5.0_06/lib:/usr/local/jdk1.5.0_06/jre/lib/ext
>
>
> I get this error in catalina.out when I attempt to start Tomcat.
>
> java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
> at java.lang.Class.getConstructor0(Class.java:2640)
> at java.lang.Class.newInstance0(Class.java:321)
> at java.lang.Class.newInstance(Class.java:303)
> at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:205)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)
>
>
>
> This subject has come up before on this list and people have suggested
> adding TOMCAT_HOME/server/lib/tomcat-util.jar and
> TOMCAT_HOME/common/lib to my CLASSPATH. Which I did. Same for
> TOMCAT_HOME/bin which contains common-daemon.jar. As you can see above
> my CLASSPATH contains all of the necessary references. I have also
> placed commons-logging.jar in common/lib.
>
> Any fresh ideas? Thanks!
>
> -
> 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: NoClassDefFoundError in SystemLogHandler during Bootstrap in binary version

2006-03-28 Thread Filip Hanik - Dev Lists

Classpath: /usr/local/apache-tomcat-5.5.16/bin:
/usr/local/apache-tomcat-5.5.16/server/lib:
/usr/local/apache-tomcat-5.5.16/common/lib:
/usr/local/jdk1.5.0_06/lib:/usr/local/jdk1.5.0_06/jre/lib/ext


this is not a valid classpath. you need to specify each JAR that you want 
included.
only for .class files can you specify a directory

Filip



Cody Caughlan wrote:

I looked at the Tomcat source code and that class should be in
/server/lib/tomcat-util.jar. Which should be in the bootstrap
classpath. For fun's sake I added that to the classpath environment
variable building routine in catalina.sh and it still didnt work.

/Cody

On 3/27/06, Farrow, Marc <[EMAIL PROTECTED]> wrote:
  

You need to place the Jar file that contains the
org/apache/tomcat/util.log/SystemLoghandler class in your
%tomcat_home%/common/lib folder.  I am not going to research and find that
jar file you.  I will let that be an assignment for you.

-Original Message-
From: Cody Caughlan [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 26, 2006 11:42 PM
To: users@tomcat.apache.org
Subject: NoClassDefFoundError in SystemLogHandler during Bootstrap in binary
version

Tomcat version: 5.5.16
SuSE 10 OSS
JDK: 1.5.06
Classpath: /usr/local/apache-tomcat-5.5.16/bin:
/usr/local/apache-tomcat-5.5.16/server/lib:
/usr/local/apache-tomcat-5.5.16/common/lib:
/usr/local/jdk1.5.0_06/lib:/usr/local/jdk1.5.0_06/jre/lib/ext


I get this error in catalina.out when I attempt to start Tomcat.

java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:205)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)



This subject has come up before on this list and people have suggested
adding TOMCAT_HOME/server/lib/tomcat-util.jar and
TOMCAT_HOME/common/lib to my CLASSPATH. Which I did. Same for
TOMCAT_HOME/bin which contains common-daemon.jar. As you can see above
my CLASSPATH contains all of the necessary references. I have also
placed commons-logging.jar in common/lib.

Any fresh ideas? Thanks!

-
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: NoClassDefFoundError in SystemLogHandler during Bootstrap in binary version

2006-03-28 Thread Cody Caughlan
Yes, I belatedly realized this.  I undefined my classpath and am
letting Tomcat build it in catalina.sh (not thats working, though).


On 3/28/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> >Classpath: /usr/local/apache-tomcat-5.5.16/bin:
> > /usr/local/apache-tomcat-5.5.16/server/lib:
> > /usr/local/apache-tomcat-5.5.16/common/lib:
> > /usr/local/jdk1.5.0_06/lib:/usr/local/jdk1.5.0_06/jre/lib/ext
>
> this is not a valid classpath. you need to specify each JAR that you want 
> included.
> only for .class files can you specify a directory
>
> Filip
>
>
>
> Cody Caughlan wrote:
> > I looked at the Tomcat source code and that class should be in
> > /server/lib/tomcat-util.jar. Which should be in the bootstrap
> > classpath. For fun's sake I added that to the classpath environment
> > variable building routine in catalina.sh and it still didnt work.
> >
> > /Cody
> >
> > On 3/27/06, Farrow, Marc <[EMAIL PROTECTED]> wrote:
> >
> >> You need to place the Jar file that contains the
> >> org/apache/tomcat/util.log/SystemLoghandler class in your
> >> %tomcat_home%/common/lib folder.  I am not going to research and find that
> >> jar file you.  I will let that be an assignment for you.
> >>
> >> -Original Message-
> >> From: Cody Caughlan [mailto:[EMAIL PROTECTED]
> >> Sent: Sunday, March 26, 2006 11:42 PM
> >> To: users@tomcat.apache.org
> >> Subject: NoClassDefFoundError in SystemLogHandler during Bootstrap in 
> >> binary
> >> version
> >>
> >> Tomcat version: 5.5.16
> >> SuSE 10 OSS
> >> JDK: 1.5.06
> >> Classpath: /usr/local/apache-tomcat-5.5.16/bin:
> >> /usr/local/apache-tomcat-5.5.16/server/lib:
> >> /usr/local/apache-tomcat-5.5.16/common/lib:
> >> /usr/local/jdk1.5.0_06/lib:/usr/local/jdk1.5.0_06/jre/lib/ext
> >>
> >>
> >> I get this error in catalina.out when I attempt to start Tomcat.
> >>
> >> java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler
> >> at java.lang.Class.getDeclaredConstructors0(Native Method)
> >> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
> >> at java.lang.Class.getConstructor0(Class.java:2640)
> >> at java.lang.Class.newInstance0(Class.java:321)
> >> at java.lang.Class.newInstance(Class.java:303)
> >> at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:205)
> >> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)
> >>
> >>
> >>
> >> This subject has come up before on this list and people have suggested
> >> adding TOMCAT_HOME/server/lib/tomcat-util.jar and
> >> TOMCAT_HOME/common/lib to my CLASSPATH. Which I did. Same for
> >> TOMCAT_HOME/bin which contains common-daemon.jar. As you can see above
> >> my CLASSPATH contains all of the necessary references. I have also
> >> placed commons-logging.jar in common/lib.
> >>
> >> Any fresh ideas? Thanks!
> >>
> >> -
> >> 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]
>
>

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



Re: how to install Tomcat 5.5.15 or 16 in Windows 2003?

2006-03-28 Thread Nic Daniau
ar... not sure about the "Tomcat actually does not install anything I think"
bit, and JAVA_HOME is not required either... it's a param of the service
config...

you might want to read my post on "*running two instances of tomcat*"
starting with "OK here we go", that might get you started with a Windows
install from the zip.

HTH
Nic



On 28/03/06, Anoop kumar V <[EMAIL PROTECTED]> wrote:
>
> Did you try the non-exe install?? Tomcat actually does not install
> anything
> I think - it is mostly just a decompress of files and the setting of
> references to environment variables like JAVA_HOME etc.. setting of
> shortcuts on the start menu. initialising the service.
>
> So there should be a zipped version (non-exe) tomcat binary file that you
> might have to download from the tomcat site. Then you would have to set
> the
> variables like JAVA_HOME to point to your java install..
> You should be able to start tomcat by running
> /bin/startup.exe
>
> You would have to do all the above stuff manually - thats the only
> drawback
> - else it is quite uncomplicated - the install is.
>
> Hope that helps,
> Anoop
>
>
>
> On 3/27/06, Cesar Ribera <[EMAIL PROTECTED]> wrote:
> >
> > Hi All.
> >  I'm just begining to use Tomcat, installed in WinXP before, with no
> > problems, I tried to install it in Windows Server 2003 and I had a popup
> > GPF Window (see attached image) about "Memory 'read' " and I
> couldn't
> > finish the
> > installation.
> >
> >   The Windows Server 2003 has IIS 6 already installed...JRE 1.5.06 is
> > correctly installed and verified.
> >
> > I tried both Tomcat 5.5.15 and 5.5.16 and the same result, the same
> error
> > screen.
> >
> >   Where can I find detailed documentation regarding the necesary steps
> > to Install Tomcat in Windows 2003? The most basic info, the better.
> >
> >   Thanks in advance for your help, best Regards.
> >
> > __
> > Correo Yahoo!
> > Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> > Regístrate ya - http://correo.espanol.yahoo.com/
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> Thanks and best regards,
> Anoop
>
>


Re: Context startup order

2006-03-28 Thread Nic Daniau
I wouldn't bet on that, plus it would be a short term fix as it's meant to
become a deprecated use of server.xml in future releases

That said, I don't have the answer but I'm sure it's in the source if you
take the time to go through it...

On 28/03/06, Vivek Mohan <[EMAIL PROTECTED]> wrote:
>
> Do you have all the contexts mentioned in one server.xml? or do you
> have separate context xmls for your separate contexts? If its the
> former case, then I guess, the order in which you mention the contexts
> in server.xml is going to be the order of starting them up by Tomcat.
>
> --
> Vivek.
>
> On 3/28/06, Cord Awtry <[EMAIL PROTECTED]> wrote:
> > All,
> >
> > I have several contexts that run on one server. I've slogged
> > through documentation and googled until I can google no more, but I've
> been
> > unable to find a way to specify an order to start them up (there's one
> in
> > particular that I want to start first). Does anyone know of a way to do
> this
> > that I missed? This is Tomcat 5.0.28, btw.
> >
> > Thanks,
> >
> > -C-
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to set a default or root application?

2006-03-28 Thread Nic Daniau
What Marc said is probably true but what about all these poor users who
don't use javascrip, hum?

I also noticed that with Tomcat, the new context deployment method does not
work: if you put your context.xml into META-INF, it's supposed to load it,
and it works... except when your context is ROOT!... why? don't ask me but
I'll check bugzilla if there's a bug on this.

Marc's second suggestion will work however.
1. from tomcat install root (CATALINA_HOME), create a folder called
"context"
2. edit context.xml and put "docbase="${catalina.home}\context\yourwebapp.war"
as an attribut of the  element
3. move your war file to the "context" folder (don't leave a copy of the war
in webapps!)
4. rename your context.xml to ROOT.xml, move this file to
conf/catalina/localhost (or whatever your host is)
5. start Tomcat -- you should get what you want

HTH
Nic

On 28/03/06, Farrow, Marc <[EMAIL PROTECTED]> wrote:
>
> Here is a work around if you want to use it.  Change your default page
> (usually index.html or index.jsp) under your "/" context (ROOT) to
> redirect
> to the http://domain.com/Application using Javascript.
>
>
> 
> 
> window.location.replace(http://domain.com/Application);
> 
> 
>
>
> OR
>
> You can just set up your stuff in your default context and run it out of
> root.
>
> -Original Message-
> From: Gamigin Gamigin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 28, 2006 1:03 PM
> To: users@tomcat.apache.org
> Subject: How to set a default or root application?
>
> I deploy an application to my Tomcat server via .war file. It works
> perfectly but I must use:
> http://domain.com/Application
>
> I want to make this the default application so the user can use:
> http://domain.com
>
> My hosting provider told me to edit the conf/server.xml and find this
> element:
>  reloadable="true">
> And change docBase to this:
>  reloadable="true">
>
> This started to work, but my JNDI JDBC data source that I defined in
> META-INF/context.xml wasn't available. I worked around that, by
> manually creating the global JNDI resource on Tomcat. Then I got a
> ClassNotFoundException exception. This same application works
> perfectly when I use the full URL (http://domain.com/Application).
> What is wrong? Is there a better way to make a specified application
> the default?
>
> -
> 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]
>
>


Ant Deploy Task Problem

2006-03-28 Thread Warren
I get a "FAIL - Application already exists at path" message when I use the
deploy task after I have used the undeploy task. The undeploy task does work
by itself, but it still leaves the directory structure /appname/WEB-INF/lib
and the strut.jar. The deploy task will work when I shut down Tomcat, remove
the leftover directory, restart Tomcat and then run the deploy task. I am
using the following:

Tomcat 5.5.12 on a windows machine with the catalina-ant.jar that comes with
Tomcat copied into my ANT lib directory. My build file has the following in
it:

  
  
  
  

  

  

  

  

This use to work when I was using Tomcat 5.0.19 with the catalina-ant.jar
that came with it. What am I missing?


Thanks,

Warren Bell


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



Re: Ant Deploy Task Problem

2006-03-28 Thread Kevin Klinemeier
Hi Warren,

I had the same problem, and I feel that it's a bug:

http://issues.apache.org/bugzilla/show_bug.cgi?id=39061

-Kevin

On 3/28/06, Warren <[EMAIL PROTECTED]> wrote:
>
> I get a "FAIL - Application already exists at path" message when I use the
> deploy task after I have used the undeploy task. The undeploy task does
> work
> by itself, but it still leaves the directory structure
> /appname/WEB-INF/lib
> and the strut.jar. The deploy task will work when I shut down Tomcat,
> remove
> the leftover directory, restart Tomcat and then run the deploy task. I am
> using the following:
>
> Tomcat 5.5.12 on a windows machine with the catalina-ant.jar that comes
> with
> Tomcat copied into my ANT lib directory. My build file has the following
> in
> it:
>
>   
>   
>   
>classname="org.apache.catalina.ant.UndeployTask"/>
>
>   
> username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"
>localWar="file://${build.home}"/>
>   
>
>   
> username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"/>
>   
>
> This use to work when I was using Tomcat 5.0.19 with the catalina-ant.jar
> that came with it. What am I missing?
>
>
> Thanks,
>
> Warren Bell
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Ant Deploy Task Problem

2006-03-28 Thread Jim Freeby
I had the same problem with Tomcat, Windows and a Struts webapp.

I updated my META-INF/context.xml as follows:





and now undeploy can properly remove the webapp directory.

Apparently there is a problem with windows locking resources, so that undeploy 
cannot delete the directory.

-Original Message-
From: Kevin Klinemeier [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 11:16 AM
To: Tomcat Users List
Subject: Re: Ant Deploy Task Problem


Hi Warren,

I had the same problem, and I feel that it's a bug:

http://issues.apache.org/bugzilla/show_bug.cgi?id=39061

-Kevin

On 3/28/06, Warren <[EMAIL PROTECTED]> wrote:
>
> I get a "FAIL - Application already exists at path" message when I use the
> deploy task after I have used the undeploy task. The undeploy task does
> work
> by itself, but it still leaves the directory structure
> /appname/WEB-INF/lib
> and the strut.jar. The deploy task will work when I shut down Tomcat,
> remove
> the leftover directory, restart Tomcat and then run the deploy task. I am
> using the following:
>
> Tomcat 5.5.12 on a windows machine with the catalina-ant.jar that comes
> with
> Tomcat copied into my ANT lib directory. My build file has the following
> in
> it:
>
>   
>   
>   
>classname="org.apache.catalina.ant.UndeployTask"/>
>
>   
> username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"
>localWar="file://${build.home}"/>
>   
>
>   
> username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"/>
>   
>
> This use to work when I was using Tomcat 5.0.19 with the catalina-ant.jar
> that came with it. What am I missing?
>
>
> Thanks,
>
> Warren Bell
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


!DSPAM:44298ba6234615020319812!

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



How to pass basic auth credentials from one tomcat server to another - SSO

2006-03-28 Thread Vivek Mohan
My scenario is something like this:
There's an entry server webapp (tomcat 4.0 installation) which takes
in the username/password from the user for basic authentication,
authenticates the user and makes available links to various other
webapps on different tomcat (4.0)installations. These can be on
different machines.

Question:
How can I enable the user to give his username/password only in the
entry server and not again for any other tomcat server? Is there a way
to pass on the credentials to the webapp url being accessed?

Thanks,
Vivek.

--
I told the doctor I broke my leg in two places. He told me to quit
going to those places.

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



Re: Running Two Web Sites in Tomcat 5

2006-03-28 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
[EMAIL PROTECTED]




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



Auto Login Using Realms - Is It Possible? :(

2006-03-28 Thread Neal

It seems to me that Tomcat security realms may be a bit inflexible.  It
seems easy to set it up to require login for protected resources, but it
seems difficult to programmatically integrate and affect login state
otherwise.  

I would like to accomplish a couple of very common authentication
scenarios and am wondering (a) if they're possible using realms and (b)
if so - how would one accomplish them?


Auto Login Scenarios:

1. New Account - After a user signs up for my website and an account is
present in the database, they can login.  But it seems terrible to me to
ask a person to login after having just created an account; they should
already be logged in when they're done creating the account!  

2. Remember Me - I want to give the user the option to select a
"remember me" checkbox when logging in, in which case, a cookie is set
locally and if the cookie is present, then the user will be
automatically logged in when they return, rather than having to submit
the login form.

...in both of these cases, I need the ability to programmatically log
someone in; not just send them to a form-protected resource.  Is this
possible?  Can someone explain to me how this is done?

Thanks!
Neal



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



Re: Auto Login Using Realms - Is It Possible? :(

2006-03-28 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-users-owner


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



RE: Auto Login Using Realms - Is It Possible? :(

2006-03-28 Thread Neal
Oh. I'm not sure I follow (a) how you new I responded to a thread or (b)
how it cuases a problem.  I removed all the text of the previous thread
and even changed the subject name.  It should've been a new thread I
thought.  :(

Well, I guess I'll do it as you suggested moving forward.  

Do I need to re-post now as you suggested?

Thanks.
Neal


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 12:22 PM
To: Tomcat Users List
Subject: Re: Auto Login Using Realms - Is It Possible? :(


When starting a new thread (ie sending a message to the list about a new
topic) please do not reply to an existing message and change the subject
line. To many of the list archiving services and mail clients used by
list subscribers this  makes your new message appear as part of the old
thread. This makes it harder for other users to find relevant
information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned upon
on this list. Frequent offenders will be removed from the list. It
should also be noted that many list subscribers automatically ignore any
messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-users-owner


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



tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-28 Thread dean
Anyone have much experience with running on these.  On tomcat 5.5, I have
ran into many problems
1. exception fron ServletContextListener.contextInitialized causes the
vague error of "Error listenerStart" with no details.  Most people on
lists I have seen don't even know it was caused by Exception out of that
method(Took me a while to figure out too)
2. logging MyFaces logs was not working
3. Facelets example war files don't work in 5.5.16

Now, I have found 5.0 seems to be fine with all these problems.  What are
the experiences of other people out there? and why is tomcat 5.5 above
tomcat 5.0 like it is more stable or something on the tomcat page(I guess
I will post that question to their list).
thanks,
dean


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



Auto Login Using Realms - Is It Possible?

2006-03-28 Thread Neal

It seems to me that Tomcat security realms may be a bit inflexible.  It
seems easy to set it up to require login for protected resources, but it
seems difficult to programmatically integrate and affect login state
otherwise.  
 
I would like to accomplish a couple of very common authentication
scenarios and am wondering (a) if they're possible using realms and (b)
if so - how would one accomplish them?
 

Auto Login Scenarios:
 
1. New Account - After a user signs up for my website and an account is
present in the database, they can login.  But it seems terrible to me to
ask a person to login after having just created an account; they should
already be logged in when they're done creating the account!  
 
2. Remember Me - I want to give the user the option to select a
"remember me" checkbox when logging in, in which case, a cookie is set
locally and if the cookie is present, then the user will be
automatically logged in when they return, rather than having to submit
the login form.
 
...in both of these cases, I need the ability to programmatically log
someone in; not just send them to a form-protected resource.  Is this
possible?  Can someone explain to me how this is done?
 
Thanks!
Neal



tomcat 5.0 vs. 5.5? tomcat 5.5 very unstable

2006-03-28 Thread dean
I have been running into problem after problem it seems with 5.5.16.  Does
anyone know the stability differences between 5.0 and 5.5.  Here are some
examples so far(I think there are more but it has been so hardgoing in
5.5)

1. exception from ServletContextListener results in vague error of Error
listenerStart
2. could not get logging of ServletContextListener to work
3. facelets example apps don't work

It seems however, I can get most things to work in 5.0.  Any comments? 
This is a fresh install of tomcat 5.5.16.  5.0.28 seems fine.  I only
change one thing in conf directory...added antiJarLocking and
antiResourceLocking.

thanks for any info,
dean


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



Re: Ant Deploy Task Problem

2006-03-28 Thread dean
I found the following solution which worked great

Change conf/context.xml from this

to this


worked great, or you can switch to Linux and not have to do anything :).
later,
dean


> I get a "FAIL - Application already exists at path" message when I use the
> deploy task after I have used the undeploy task. The undeploy task does
> work
> by itself, but it still leaves the directory structure
> /appname/WEB-INF/lib
> and the strut.jar. The deploy task will work when I shut down Tomcat,
> remove
> the leftover directory, restart Tomcat and then run the deploy task. I am
> using the following:
>
> Tomcat 5.5.12 on a windows machine with the catalina-ant.jar that comes
> with
> Tomcat copied into my ANT lib directory. My build file has the following
> in
> it:
>
>classname="org.apache.catalina.ant.DeployTask"/>
>   
>classname="org.apache.catalina.ant.ReloadTask"/>
>classname="org.apache.catalina.ant.UndeployTask"/>
>
>   
> username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"
>localWar="file://${build.home}"/>
>   
>
>   
> username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"/>
>   
>
> This use to work when I was using Tomcat 5.0.19 with the catalina-ant.jar
> that came with it. What am I missing?
>
>
> Thanks,
>
> Warren Bell
>
>
> -
> 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: Ant Deploy Task Problem

2006-03-28 Thread Warren
I made the changes suggested and it works like a charm. As far as switching
to Linux, I wouldn't want to do that, I enjoy banging my head up against the
wall.

Thanks all,

> -Original Message-
> From: Warren [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 28, 2006 11:14 AM
> To: users@tomcat.apache.org
> Subject: Ant Deploy Task Problem
>
>
> I get a "FAIL - Application already exists at path" message when I use the
> deploy task after I have used the undeploy task. The undeploy
> task does work
> by itself, but it still leaves the directory structure
> /appname/WEB-INF/lib
> and the strut.jar. The deploy task will work when I shut down
> Tomcat, remove
> the leftover directory, restart Tomcat and then run the deploy task. I am
> using the following:
>
> Tomcat 5.5.12 on a windows machine with the catalina-ant.jar that
> comes with
> Tomcat copied into my ANT lib directory. My build file has the
> following in
> it:
>
>classname="org.apache.catalina.ant.DeployTask"/>
>   
>classname="org.apache.catalina.ant.ReloadTask"/>
>classname="org.apache.catalina.ant.UndeployTask"/>
>
>   
> username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"
>localWar="file://${build.home}"/>
>   
>
>   
> username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"/>
>   
>
> This use to work when I was using Tomcat 5.0.19 with the catalina-ant.jar
> that came with it. What am I missing?
>
>
> Thanks,
>
> Warren Bell
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> __ NOD32 1.1459 (20060327) Information __
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>


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



How to populate session after authenticate

2006-03-28 Thread Terence M. Bandoian
Hi-

As I understand it, HttpServletRequest.getRemoteUser() returns the user
name entered if HTTP authentication (RFC2617) is used.  According to the
JavaDoc, its return value is "Same as the value of the CGI variable
REMOTE_USER."

-Terence M. Bandoian

> Subject:
> Re: How to populate session after authenticate
> From:
> "Nic Daniau" <[EMAIL PROTECTED]>
> Date:
> Tue, 28 Mar 2006 12:55:50 +0100
> To:
> "Tomcat Users List" 
>
> To:
> "Tomcat Users List" 
>
> Message-ID:
> <[EMAIL PROTECTED]>
> MIME-Version:
> 1.0
> Content-Type:
> multipart/alternative; boundary="=_Part_9753_29317241.1143546950185"
>
>
>I use request.getUserPrincipal().getName() to get the username, does it work
>for you?
>
>Never quite understood what this getRemoteUser method was... if someone
>knows, I'm interested!
>
>On 28/03/06, Dave <[EMAIL PROTECTED]> wrote:
>  
>
>>I am using JBoss. The servlet Form authentication is nice, but I need
>>something more flexible.
>>
>>  Users are allowed to login on any unprotected page and stay in the same
>>page after lgoin.  I have database table to store username and password.
>>
>>  After verifying username and password, what information needs to put
>>into session(or other data structure) so that:
>>  HttpServletRequest.getRemoteUser() will return the remote user.
>>
>>  Thanks!
>>
>>
>>-
>>Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
>>countries) for 2¢/min or less.
>>

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



Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-28 Thread Remy Maucherat
On 3/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Anyone have much experience with running on these.  On tomcat 5.5, I have
> ran into many problems
> 1. exception fron ServletContextListener.contextInitialized causes the
> vague error of "Error listenerStart" with no details.  Most people on
> lists I have seen don't even know it was caused by Exception out of that
> method(Took me a while to figure out too)

Yes, it's an extremely myterious log message, as a
ServletContextListener is a listener for the context.

> 2. logging MyFaces logs was not working

Whatever.

> 3. Facelets example war files don't work in 5.5.16

It uses a bad method for descovering its config, if I remember well,
which is now fixed.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Inc
x

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



XMLSignature

2006-03-28 Thread Martin Gainty
Sorry for the O/T post but does Anyone know where XMLSignature lives?

Thanks,
Martin

Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-28 Thread dean

On number 1 5.0 logs the entire stack trace, so you can jump to the line
number.  On 5.5, no such stack trace in any file.  Also, I searched a few
lists and many people had questions on what was wron when they saw that
error.  I think the cause is the lack of informationit should at the
very least log the stack trace and does not.

I just used the latest facelets and it did not work, but worked on 5.0.

in fact, all the stuff works on 5.0 which leads me to believe 5.5 is
unstable, but I wanted to verify.
dean

> On 3/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Anyone have much experience with running on these.  On tomcat 5.5, I
>> have
>> ran into many problems
>> 1. exception fron ServletContextListener.contextInitialized causes the
>> vague error of "Error listenerStart" with no details.  Most people on
>> lists I have seen don't even know it was caused by Exception out of that
>> method(Took me a while to figure out too)
>
> Yes, it's an extremely myterious log message, as a
> ServletContextListener is a listener for the context.
>
>> 2. logging MyFaces logs was not working
>
> Whatever.
>
>> 3. Facelets example war files don't work in 5.5.16
>
> It uses a bad method for descovering its config, if I remember well,
> which is now fixed.
>
> --
> x
> Rémy Maucherat
> Developer & Consultant
> JBoss Inc
> x
>
> -
> 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: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-28 Thread Vamsidhar
I am assuming you have been using logger to log stack traces in case of
errors in tomcat 5.0. This was deprecated in 5.0 and completely removed in
5.5. So, If you have logger defined for engine, host, or context to  record
the stack traces in a file in your application this will not work on tomcat
5.5

http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html
"Please note that Loggers are deprecated in Tomcat 5.0 and removed from
Tomcat 5.5. Tomcat 5.5 uses Commons-Logging  instead."

hope this helps.

On 3/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> On number 1 5.0 logs the entire stack trace, so you can jump to the line
> number.  On 5.5, no such stack trace in any file.  Also, I searched a few
> lists and many people had questions on what was wron when they saw that
> error.  I think the cause is the lack of informationit should at the
> very least log the stack trace and does not.
>
> I just used the latest facelets and it did not work, but worked on 5.0.
>
> in fact, all the stuff works on 5.0 which leads me to believe 5.5 is
> unstable, but I wanted to verify.
> dean
>
> > On 3/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >> Anyone have much experience with running on these.  On tomcat 5.5, I
> >> have
> >> ran into many problems
> >> 1. exception fron ServletContextListener.contextInitialized causes the
> >> vague error of "Error listenerStart" with no details.  Most people on
> >> lists I have seen don't even know it was caused by Exception out of
> that
> >> method(Took me a while to figure out too)
> >
> > Yes, it's an extremely myterious log message, as a
> > ServletContextListener is a listener for the context.
> >
> >> 2. logging MyFaces logs was not working
> >
> > Whatever.
> >
> >> 3. Facelets example war files don't work in 5.5.16
> >
> > It uses a bad method for descovering its config, if I remember well,
> > which is now fixed.
> >
> > --
> > x
> > Rémy Maucherat
> > Developer & Consultant
> > JBoss Inc
> > x
> >
> > -
> > 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: InputBuffer and Posting Data

2006-03-28 Thread Vikram Goyal
Sorry Jon. Buf.length is the size of the buffer that I want to post. I
have confirmed that this is being sent correctly. But as I said earlier,
on the server side 8K is the maximum size of this data that is read.

Vikram

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 29 March 2006 12:25 AM
To: Tomcat Users List
Subject: Re: InputBuffer and Posting Data

What is buf.length? Is it the actual length of the data you want to post

or is it 8k?
The data you receive on the Tomcat side may be truncated by the 
Connector if the body data is longer than the value set for the 
Content-Length header.

HTH,

Jon

Vikram Goyal wrote:
> Hi all,
> 
>  
> 
> I am trying to post some data via an applet to a JSP running on Tomcat
> 5.5.16. In my applet code, I am setting the following:
> 
>  
> 
> postConn.setRequestMethod("POST");
> 
>  
> 
> postConn.setRequestProperty("Content-Length", (buf.length) + "");
> 
>  
> 
> postConn.setRequestProperty("Content-Type",
"application/octet-stream");
> 
>  
> 
> Now, on the server side, I am retrieving my actual data by using the
> ServletInputStream gathered from request.getInputStream() method. The
> connection also contains some query parameters, which I am retrieving
on
> the server side using request.getParameter().
> 
>  
> 
> Now, irrespective of the size of the data that I post, the
> ServletInputStream is truncating the data to a size of 8K (for files
> greater than that size, smaller files are the received correctly). I
> understand, after going through the source code, that the Request
class
> uses the InputBuffer class for reading from this stream and the
default
> size of the buffer for this operation is 8K. However, I would have
> expected this buffer to grow, if the data was larger than this
default,
> but this is not happening.
> 
>  
> 
> Is there a setting to increase this buffer automatically that I need
to
> set? Alternatively, is there a setting that I need to set that will
set
> the default to a larger value? I have searched and searched and cannot
> find anything.
> 
>  
> 
> Thanks,
> 
> Vikram
> 
>  
> 
>  
> 
> 



-
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: InputBuffer and Posting Data

2006-03-28 Thread Vikram Goyal
It's funny you should say that. maxHttpHeaderSize is the incorrect parameter to 
use in this case, but I noticed that by changing the size of this header 
parameter, I was able to send larger files, although not consistently. But what 
I don't understand is how this parameter is affecting the size of the received 
data. There is clearly a bug here, but I just can't put my finger on what 
exactly the bug is.

Vikram

-Original Message-
From: Lothar Krenzien [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 29 March 2006 1:17 AM
To: Tomcat Users List
Subject: Re: InputBuffer and Posting Data


Look for the value of "maxHttpHeaderSize"  in your server.xml in the 
CATALINA_HOME/conf diretory. I had a similar problem.

> -Ursprüngliche Nachricht-
> Von: "Tomcat Users List" 
> Gesendet: 28.03.06 16:24:20
> An: Tomcat Users List 
> Betreff: Re: InputBuffer and Posting Data


> What is buf.length? Is it the actual length of the data you want to post 
> or is it 8k?
> The data you receive on the Tomcat side may be truncated by the 
> Connector if the body data is longer than the value set for the 
> Content-Length header.
> 
> HTH,
> 
> Jon
> 
> Vikram Goyal wrote:
> > Hi all,
> > 
> >  
> > 
> > I am trying to post some data via an applet to a JSP running on Tomcat
> > 5.5.16. In my applet code, I am setting the following:
> > 
> >  
> > 
> > postConn.setRequestMethod("POST");
> > 
> >  
> > 
> > postConn.setRequestProperty("Content-Length", (buf.length) + "");
> > 
> >  
> > 
> > postConn.setRequestProperty("Content-Type", "application/octet-stream");
> > 
> >  
> > 
> > Now, on the server side, I am retrieving my actual data by using the
> > ServletInputStream gathered from request.getInputStream() method. The
> > connection also contains some query parameters, which I am retrieving on
> > the server side using request.getParameter().
> > 
> >  
> > 
> > Now, irrespective of the size of the data that I post, the
> > ServletInputStream is truncating the data to a size of 8K (for files
> > greater than that size, smaller files are the received correctly). I
> > understand, after going through the source code, that the Request class
> > uses the InputBuffer class for reading from this stream and the default
> > size of the buffer for this operation is 8K. However, I would have
> > expected this buffer to grow, if the data was larger than this default,
> > but this is not happening.
> > 
> >  
> > 
> > Is there a setting to increase this buffer automatically that I need to
> > set? Alternatively, is there a setting that I need to set that will set
> > the default to a larger value? I have searched and searched and cannot
> > find anything.
> > 
> >  
> > 
> > Thanks,
> > 
> > Vikram
> > 
> >  
> > 
> >  
> > 
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


-
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 the output of -verbose:gc get written

2006-03-28 Thread Turbett, Tim




I'm 
running Tomcat as a windows service.  I want to study what's going on with 
the JVM memory.  I add the -verbose:gc Java option, and start 
Tomcat.
 
What directory and file contains the GC 
information?
 
Tim 
Turbett  Pegasystems 
 101 Main 
Street    
Voice: (617) 374-9600 x6439  Cell (978) 
886-2772  Cambridge, MA 02142   
Email: [EMAIL PROTECTED] 

 


Re: Where does the output of -verbose:gc get written

2006-03-28 Thread David Kerber
It's in the jakarta_service_mmdd.log file, in your tomcat logs 
directory.



Turbett, Tim wrote:

I'm running Tomcat as a windows service.  I want to study what's going 
on with the JVM memory.  I add the -verbose:gc Java option, and start 
Tomcat.
 
What directory and file contains the GC information?
 


Tim Turbett
 Pegasystems
 101 Main StreetVoice: (617) 374-9600 x6439  
Cell (978) 886-2772
 Cambridge, MA 02142   Email:_ [EMAIL PROTECTED] 
_


 





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



How to have mod_jk NOT forward certain jsp's?

2006-03-28 Thread michael thomas
Hello,

Is there a way to get mod_jk not to forward certain
jsp's?  Specifically, we are using cvsweb on Apache,
and it creates URL's like the following:

http://www.site.com/cgi-bin/cvsweb.cgi/source/jsp/backoffice.jsp

Since it ends in .jsp, JkMount is forwarding it:
JkMount /*.jsp app01

However, we want anything that is in /cgi-bin to not
go to Tomcat.

I figured we needed some sort of rewriting rule, like:
RewriteRule ^/cgi-bin/(.*) /cgi-bin/$1 [PT]

But that didn't seem to work.  (We do know rewriting
is enabled, as we use it for other things.)

Thanks,
Michael


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



j_security_check error

2006-03-28 Thread VIKASS NAGPAL
Hi

I have a single signon page after clicking on the
single signon button I am getting the
/control/j_security_check resource not available
error. Can anyone help me in resolving this error.

Thanks,
With regards,
Vikas Nagpal.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How to have mod_jk NOT forward certain jsp's?

2006-03-28 Thread Long
- Original Message - 
From: "michael thomas" <[EMAIL PROTECTED]>
> Hello,
> 
> Is there a way to get mod_jk not to forward certain
> jsp's?  Specifically, we are using cvsweb on Apache,
> and it creates URL's like the following:
> 
> http://www.site.com/cgi-bin/cvsweb.cgi/source/jsp/backoffice.jsp
> 
> Since it ends in .jsp, JkMount is forwarding it:
> JkMount /*.jsp app01
> 
> However, we want anything that is in /cgi-bin to not
> go to Tomcat.
>
How about

JkMount /path/to/tomcat/context/*.jsp app01

Long
www.edgesoft.ca


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



Re: How to have mod_jk NOT forward certain jsp's?

2006-03-28 Thread Molot
2006/3/29, Long <[EMAIL PROTECTED]>:
> - Original Message -
> From: "michael thomas" <[EMAIL PROTECTED]>
> > Hello,
> >
> > Is there a way to get mod_jk not to forward certain
> > jsp's?  Specifically, we are using cvsweb on Apache,
> > and it creates URL's like the following:
> >
> > http://www.site.com/cgi-bin/cvsweb.cgi/source/jsp/backoffice.jsp
> >
> > Since it ends in .jsp, JkMount is forwarding it:
> > JkMount /*.jsp app01
> >
> > However, we want anything that is in /cgi-bin to not
> > go to Tomcat.
> >
> How about
>
> JkMount /path/to/tomcat/context/*.jsp app01
>
> Long
> www.edgesoft.ca
>

>From docs:
"JkUnmount directive acts as an opposite to JkMount"
It doesn't work for you?

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



Logs not getting generated in tomcat 5.5.12

2006-03-28 Thread GUNJAN SINGH
hi 
  I'm using j2sdk1.4.2_09 version and tamcat 5.5.12 and myeclipse as an IDE.
  The problem is that logs are not getting generated under 
apache-tomcat-5.5.12/logs directory.
  The server is starting properly and i have added the required campatibility 
jars.
  Can any one tell me the reason as to why tomcat logs are not getting 
generated and what i should do in order to get this done.
   
  thanks and regards.
  ved


-
Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! 
Messenger with Voice.

Re: Increasing Tomcat/Java memory

2006-03-28 Thread Harald Henkel
Thanks for all the replies, but I think the problem was really only that
I didn't set the memory size correctly for Tomcat Service in WinXP (with
environment var CATALINA_OPTS instead of registry values) and the export
really needed more than the default 64M memory (or that what was
remaining of this).

With kind regards,
Harald Henkel

Harald Henkel wrote:
> 
> Hello everybody.
> 
> How can I increase the memory Tomcat/Java is using?
> 
> I tried setting CATALINA_OPTS with -server -Xms256m -Xmx512m
> but runtime.totalMemory always seems to return a value around 60MB.
> 
> And there are some operations (exporting several thousand database
> records to an Excel file) where we receive out of memory errors.
> Unfortunately I don't yet know the exact error text and where it is
> displayed...
> 
> Yet, if the server (including database) is rebootet it works, so it
> seems to be a problem with Tomcat (oracle doesn't seem to have a problem,
> because the data is already dispalyed in a table genereated by tomcat (JSP).
> Only if I try to export this data to an exel file, the problem arised.
> 
> This is on Windows XP Pro SP2.
> 
> Anybody got an idea? Can this be due to Tomcat memory management? How to
> change it correctly on windows ?
> 
> Somewhere I saw -ms and -mx insead of -Xms and -Xmx
> 
> Any help appreciated!
> 
> With kind regards,
> Harald Henkel
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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