Re: Problem Loading Page Connection was Reset

2007-07-08 Thread Johnny Kewl

Nathan, you should still be able to get to the manager from
http://localhost:8080/manager/html

If you messing around with the ROOT config, its a little tricky because its 
precompiled.
The easiest way to change ROOT, is to just make a webapp with the name ROOT 
and an empty context path do whatever you want, then drop the WAR into 
TC.


If you trying to retore it, just copy the contents of another TC.



- Original Message - 
From: "Nathan Bahr" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, July 07, 2007 11:07 PM
Subject: Problem Loading Page Connection was Reset



Hi
I have a small problem with accessing a webapp hosted by my tomcat
5.5.20 server. I have in webapps/ROOT a basic
helloWorld.html file. The server starts and stops fine when running the
shell scripts (using j2se 5.0 btw) however I cannot
access helloWorld.html through the web browser. The log files offer no
indication that anything is breaking and I used
to be able to access webapps through the server. This change occured
about the time I tried to delete a directory and war file
in the webapps directory manually nstead of through the manager webapp
(which is also inaccessable now). Does anyone
have advice on how to find where the problem might be occuring?
Thanks
-Nathan


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring Tomcat 5.5 and IIS 6

2007-07-08 Thread rcgeorge23

Hi Glenn,

Thanks for your tutorial - the virtual folder in IIS was indeed the missing
piece to the jigsaw. IIS and Tomcat are happily up and running now.

Cheers,
Richard.


gbarnas wrote:
> 
> 404's indicate that the file can't be found. IIS needs to be able to "see"
> the tomcat files/folders in order to know to invoke tomcat.. IIS can't
> magically see Tomcat's folders, so you may need to define a virtual folder
> in IIS to the Tomcat JSP files. 
> 
> Have a look at 
> http://www.innotechcg.com/downloads/IntegrateTomcatIIS.zip, which is a
> step-by-step discussion of integrating IIS 6 and Tomcat. It may not suit
> your specific need, but if you follow the steps, it should illustrate the
> concepts required for IIS and Tomcat to work together. My how-to will work
> with both the default and specific IIS instances.
> 
> Regards,
> 
> Glenn
> 
> 
> 
> rcgeorge23 wrote:
>> 
>> Hi All,
>> 
>> I'm having trouble getting Tomcat to serve pages through IIS. I have
>> tried to follow several step-by-step guides online but haven't really had
>> much luck! I've searched through this forum but again, I haven't been
>> able to find anything that's fixed my problem.
>> 
>> I downloaded jakarta-tomcat-connectors-jk2.0.4-win32-IIS.zip, and
>> followed the setup instructions on the jakarta site. I made a slight
>> modification to the setup script (so that it created the jakarta virtual
>> folder in mydomain.com rather than IIS's "Default Website"), but other
>> than that I believe I've done precisely as instructed!
>> 
>> Tomcat is running on port 8080 and when I hit
>> http://www.mydomain.com:8080/context/main.jsp, Tomcat faithfully serves
>> up the page. However when I attempt to hit
>> http://www.mydomain.com/main.jsp, IIS serves up a 404.
>> 
>> If I look in the IIS log, I can see that IIS is attempting to push the
>> request towards the isapi_redirector dll:
>> 
>> #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query
>> s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer)
>> sc-status sc-win32-status sc-bytes cs-bytes time-taken 
>> 2007-05-27 11:48:19 W3SVC10769 XXX.XXX.220.132 GET
>> /jakarta/isapi_redirector2.dll - 80 - XXX.XXX.56.247 HTTP/1.1
>> Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-GB;+rv:1.8.1.3)+Gecko/20070309+Firefox/2.0.0.3
>> s_pers=%20s_vsn_paypalglobal%3D4757241787590%7C1473537542953%3B - 404
>> 1260 1814 525 31
>> 
>> ...so I'm guessing it's a problem with the way the dll has been
>> configured.
>> 
>> Here is my workers2.properties:
>> 
>> ==
>> [shm]
>> info=Scoreboard. Requried for reconfiguration and status with
>> multiprocess servers.
>> file=D:\Tomcat 5.5\work\jk2.shm
>> 
>> # Example socket channel, override port and host.
>> [channel.socket:XXX.XXX.220.132:8009]
>> info=Ajp13 port forwarding over socket
>> tomcatId=XXX.XXX.220.132:8009
>> 
>> [logger]
>> level=DEBUG
>> 
>> [logger.file:0]
>> level=DEBUG
>> file=D:\Tomcat 5.5\logs\jk2.log
>> 
>> [workerEnv:]
>> info=Global server options
>> timing=1
>> debug=0
>> logger=logger.file:0 
>> 
>> # define the worker
>> [ajp13:XXX.XXX.220.132:8009]
>> channel=channel.socket:XXX.XXX.220.132:8009
>> 
>> # Map the Tomcat examples webapp to the Web server uri space
>> [uri:88.208.220.132/*]
>> context=/ols-web
>> worker=ajp13:XXX.XXX.220.132:8009
>> =
>> 
>> I attempted to enable logging to see whether this would give me any
>> clues, but the file I specified (D:\Tomcat 5.5\logs\jk2.log) doesn't get
>> created.
>> 
>> Here's Tomcat's context.xml
>> 
>> ==
>> 
>>  > verbosity="4" timestamp="true"/>
>> 
>> ==
>> 
>> ...and here's the bit in server.xml where the AJP connector port is
>> configured:
>> 
>> ==
>> >enableLookups="false" redirectPort="8443"
>> protocol="AJP/1.3" />
>> ==
>> 
>> If anyone can offer any advice, I'd be really grateful.
>> 
>> Cheers,
>> Richard.
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Configuring-Tomcat-5.5-and-IIS-6-tf3823529.html#a11487014
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Any way to check the client abruptly close the connection?

2007-07-08 Thread aaime74

Hi,
I'm fighting a relatively nasty issue. I've implemented a WMS service (Web
Map Server), which basically
returns a geographic map in response to a request stating which data to use,
which area to display, which style to apply to the map, and so on.

The main trouble is that building the map can take anywhere from 100ms to
minutes, depending on
how much data is needed, and during the map building time the output stream
is not touched (the map is drawn on a buffered image, which is encoded to
png/gif/jpeg only when completely drawn).
It happens quite often that the client closes the connection because the map
is taking too much time to be generated, and I would like to be informed
about this right away to avoid wasting precious resources.

Is there any way to know?
Cheers
Andrea

-- 
View this message in context: 
http://www.nabble.com/Any-way-to-check-the-client-abruptly-close-the-connection--tf4043946.html#a11487168
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



error in isapi.log: Failed to obtain an endpoint to service...

2007-07-08 Thread Rasmus - Next Stay A/S
Hi

 

I am seeing this error in my isapi.log, I am running IIS 6.0, tomcat 4.1
and jk 1.2.23

 

...[5228:6988] [error] jk_isapi_plugin.c (1507): Failed to obtain an
endpoint to service request - your connection_pool_size is probably less
than the threads in your web server!

 

 

Does anyone know what this means, and what the cure is?

 

Thanks,

 

Rasmus



RE: Context.xml error

2007-07-08 Thread Caldarale, Charles R
> From: Juha Laiho [mailto:[EMAIL PROTECTED] 
> Subject: Re: Context.xml error
> 
> Looking at that the context data you posted, at least the
> first one is missing the path="/..." attribute (which is
> required to be unique for all context within a given host
> -- and I think this requirement makes the path attribute
> mandatory as well).

Please note the following in the doc for the path attribute:

"The value of this field must not be set except when statically defining
a Context in server.xml, as it will be inferred from the filenames used
for either the .xml context file or the docBase."

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to compile from source

2007-07-08 Thread Caldarale, Charles R
> From: Marcello Pucci [mailto:[EMAIL PROTECTED] 
> Subject: How to compile from source
> 
> I've just completed the steps required to build 
> apache-tomcat-5.5 from source,

For curiosity's sake, why are you doing this?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring Tomcat 5.5 and IIS 6

2007-07-08 Thread gbarnas

Thanks for the feedback, and I'm glad it was useful. I'll be posting it as an
HTML document on my web site shortly - adding a Resources page for this kind
of information. The .DOC file will still be available for downloading.

Glenn

rcgeorge23 wrote:
> 
> Hi Glenn,
> 
> Thanks for your tutorial - the virtual folder in IIS was indeed the
> missing piece to the jigsaw. IIS and Tomcat are happily up and running
> now.
> 
> Cheers,
> Richard.
> 

-- 
View this message in context: 
http://www.nabble.com/Configuring-Tomcat-5.5-and-IIS-6-tf3823529.html#a11491180
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



error in stderror.log: connection timeout reached...

2007-07-08 Thread Rasmus - Next Stay A/S
Hi

 

I am seeing this error in my stderror.log, I am running IIS 6.0, tomcat
4.1 and jk 1.2.23

 

Jul 8, 2007 7:38:37 PM org.apache.jk.common.ChannelSocket
processConnection

INFO: connection timeout reached

 

Does anyone know what this means, and what the cure is?

 

Thanks,

 

Rasmus



Re: Any way to check the client abruptly close the connection?

2007-07-08 Thread Johnny Kewl

This is an interesting question, and I'm going to "guess"...
If you in a JSP page, I dont think the error can be trapped.

If you in a servlet, yes I think a try catch will detect it, but only if you 
actually write something.


I think the generic problem is that you cant just leave the browser standing 
there doing sweat nothing and I appreciate the problem, its tricky.


Think you going to have to resort to AJAX or something like that.
Dont know anything about WMS, but I imagine it collects images and assembles 
the overlays.
If perhaps you could send the user a base overlay, while it was been 
assembled, that may keep them interested, then when its ready, AJAX kills 
the base image and replaced it with the full assembly something like 
that.


I think the problem comes down to sending the user something, while its 
being assembled.


good luck




- Original Message - 
From: "aaime74" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, July 08, 2007 12:06 PM
Subject: Any way to check the client abruptly close the connection?




Hi,
I'm fighting a relatively nasty issue. I've implemented a WMS service (Web
Map Server), which basically
returns a geographic map in response to a request stating which data to 
use,

which area to display, which style to apply to the map, and so on.

The main trouble is that building the map can take anywhere from 100ms to
minutes, depending on
how much data is needed, and during the map building time the output 
stream

is not touched (the map is drawn on a buffered image, which is encoded to
png/gif/jpeg only when completely drawn).
It happens quite often that the client closes the connection because the 
map

is taking too much time to be generated, and I would like to be informed
about this right away to avoid wasting precious resources.

Is there any way to know?
Cheers
Andrea

--
View this message in context: 
http://www.nabble.com/Any-way-to-check-the-client-abruptly-close-the-connection--tf4043946.html#a11487168

Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem Loading Page Connection was Reset

2007-07-08 Thread Nathan Bahr
Are there any flat files to look at or modify the manager/html settings.
The tricky
part is that I don't have phyisical access to the machine. I can log in
through ssh 
and do have sufficient privileges to tweak the server. I've tried wget
on localhost, 
so I know the helloWorld webapp is working and hosted. 
I think the ports are close for hosting the tomcat server. Catalina has
its connector 
set to port 8084 in the server.xml and nmap -sT localhost indicates
that
this port is not open (other servers are hosted on this machine so I
get a different
port). I'm not very good at troubleshooting networking problem but I
think this may be the 
reason my web browser cannot see the server. So ultimately, accessing
manager/html 
may be a moot point since I cannot access the server. 

I  think I've just answered my own question and I just need to bug tech
support :P. 
 
>>> [EMAIL PROTECTED] 7/8/2007 12:13 AM >>>
Nathan, you should still be able to get to the manager from
http://localhost:8080/manager/html 

If you messing around with the ROOT config, its a little tricky because
its 
precompiled.
The easiest way to change ROOT, is to just make a webapp with the name
ROOT 
and an empty context path do whatever you want, then drop the WAR
into 
TC.

If you trying to retore it, just copy the contents of another TC.



- Original Message - 
From: "Nathan Bahr" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, July 07, 2007 11:07 PM
Subject: Problem Loading Page Connection was Reset


> Hi
> I have a small problem with accessing a webapp hosted by my tomcat
> 5.5.20 server. I have in webapps/ROOT a basic
> helloWorld.html file. The server starts and stops fine when running
the
> shell scripts (using j2se 5.0 btw) however I cannot
> access helloWorld.html through the web browser. The log files offer
no
> indication that anything is breaking and I used
> to be able to access webapps through the server. This change occured
> about the time I tried to delete a directory and war file
> in the webapps directory manually nstead of through the manager
webapp
> (which is also inaccessable now). Does anyone
> have advice on how to find where the problem might be occuring?
> Thanks
> -Nathan
>
>
>
-
> To start a new topic, e-mail: users@tomcat.apache.org 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
>
> 


-
To start a new topic, e-mail: users@tomcat.apache.org 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Re: Character encoding

2007-07-08 Thread lightbulb432

That was a really great set of answers, thanks! These follow-ups are somewhat
off-topic to Tomcat, but you really know this stuff well so I hope you don't
mind addressing them:


POST requests always use the request's "body" encoding, which is specified
in 
> the HTTP header (and can be overridden by using 
> request.setCharacterEncoding). Some broken clients don't provide the 
> character encoding of the request, which makes things difficult sometimes.

What determines what's specified in the HTTP header for the value of the
encoding? Is it purely up to the user agent, or can Tomcat provide hints
based on previous requests how to encode it - or is it something up to the
end user to set in their browser (in IE, View -> Encoding)?

In what cases would you call request.setCharacterEncoding to override the
value specified by the user agent? Shouldn't you trust the user agent rather
than trying to guess? (Or is this only used in cases where the user agent is
"broken", like you said - but then how would you know you're dealing with a
broken client to begin with...aah, complicated!)



You shouldn't have to worry about cookie encoding, since you can always
> call request.getCookies() and get them "correctly" interpreted for you.

What do you mean by this? Does it mean (pardon the surely messed up use of
the API below) in your response.addCookie(), you add a cookie where the
value has cookie.setValue(new String(charByteArray,"UTF-8")) then you read
it back using responseCookie.getValue().getBytes("UTF-8")? (Where UTF-8 is
whatever encoding you're using internally in your application.)


Finally, what's the default encoding used by the response when
response.setCharacterEncoding(myEncoding) isn't called? Am I correct to
assume that if that default is not the default Java String encoding of
UTF-16, then you MUST call convert all the Strings you've outputted to that
encoding? (...because the HTTP header expects whatever the default is, but
Java is outputting UTF-16 encoded text to the actual response bytes)

Am I speaking rubbish here, or am I thinking about these concepts in the
right way?

Thanks a lot.

P.S. How did you learn all of that?!




Christopher Schultz-2 wrote:
> 
> Lightbulb,
> 
> lightbulb432 wrote:
>> Why is the URIEncoding attribute specified on the connector rather than
>> on a
>> host, for example?
> 
> Because the host doesn't handle connections... the connectors do.
> 
>> Does this mean that the number of virtual hosts that can
>> listen on the same port on the same box are limited by whether they all
>> use
>> the same encodings in their URIs?
> 
> Yes, all virtual hosts listening on the same port will have to have the
> same encoding. Fortunately, UTF-8 works for all languages that I know of.
> 
>> Now that I think about it, wouldn't it be
>> at the context level, not even at the host level?
> 
> If you had a connector-per-context, yes, but that's no the case.
> 
>> In Tomcat 6, should the useBodyEncodingForURI be used if not needing
>> compatibility with 4.1, as the documentation mentions? 
> 
> I would highly recommend following that recommendation.
> 
>> To see if I have things straight, is HttpServletRequest's
>> get/setCharacterEncoding used for both the request parameters from a GET
>> request AND the contents of the POST?
> 
> No. GET requests have request parameters encoded as part of the URL,
> which is affected by the 's URIEncoding parameter. POST
> requests always use the request's "body" encoding, which is specified in
> the HTTP header (and can be overridden by using
> request.setCharacterEncoding). Some broken clients don't provide the
> character encoding of the request, which makes things difficult sometimes.
> 
>> How are multipart POST requests dealt with?
> 
> Typically, each part of a multipart request contains its own character
> encoding, so a multipart POST would follow the encoding for the part
> you're reading at the time.
> 
>> And HttpServletResponse's get/setCharacterEncoding is used for the
>> contents
>> of the response header and the meta tags?
> 
> Only for the header field, not META tags. If you want to emit META tags,
> you'll have to do them yourself.
> 
>> Does it also encode the page content itself? 
> 
> Nope. If you change the character encoding for a response after the
> response has already had some data written to it, I think you'll send an
> incorrect header. For instance:
> 
> response.setCharacterEncoding("ISO-8859-1");
> PrintWriter out = response.getOutputWriter();
> 
> response.setCharacterEncoding("Big5");
> 
> out.print("abcdef");
> out.flush();
> 
> Your client will not receive a sane response. Setting the character
> encoding only sets the HTTP response header and configures the
> response's Writer, if used, but only /before/ calling getWriter the
> first time.
> 
>> What about the encoding of cookies for both incoming requests and
>> outgoing
>> responses?
> 
> See the HTTP spec, section 4.2 ("Message Headers"). It references RFC
> 822 (A

about tomcat

2007-07-08 Thread randeelwrw

hi everyone,

can i use two tomcat webservers to exchange information between them?
how can i do that?

thank you,
rana.
-- 
View this message in context: 
http://www.nabble.com/about-tomcat-tf4047066.html#a11495638
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: about tomcat

2007-07-08 Thread Stephen . Morris



Yes, it is possible to run two servers as a cluster and exchange
information between them. I have seen an article on the internet recently
on doing exactly this. The easiest way of finding out how to do this is to
use Googles advanced search and to type 'tomcat clustering' into the exact
phrase textbox, which should return about 19,700 hits. It is then a matter
of just selecting the article that is most relevant to what you are trying
to do.

regards,
Steve Morris
IT Security Access Management
Technology Risk and Security
Technology Australia
National Australia Bank
Phone: +61-3-8634 1755 (x31755)
Mobile: +0438 537 569
email: [EMAIL PROTECTED]


   
 randeelwrw
 <[EMAIL PROTECTED] 
 .com>  To 
   users@tomcat.apache.org 
 09/07/2007 14:05   cc 
   
   Subject 
 Please respond to about tomcat
   "Tomcat Users   
   List"   
 <[EMAIL PROTECTED] 
 che.org>  
   
   





hi everyone,

can i use two tomcat webservers to exchange information between them?
how can i do that?

thank you,
rana.
--
View this message in context:
http://www.nabble.com/about-tomcat-tf4047066.html#a11495638
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are not the intended 
recipient, please immediately notify us at [EMAIL PROTECTED] or by replying to 
the sender, and then destroy all copies of this email. Except where this email 
indicates otherwise, views expressed in this email are those of the sender and 
not of National Australia Bank Ltd. Advice in this email does not take account 
of your objectives, financial situation, or needs. It is important for you to 
consider these matters and, if the e-mail refers to a product(s), you should 
read the relevant Product Disclosure Statement(s)/other disclosure document(s) 
before making any decisions. If you do not want email marketing from us in 
future, forward this email with "unsubscribe" in the subject line to [EMAIL 
PROTECTED] in order to stop marketing emails from this sender. National 
Australia Bank Ltd does not represent that this email is free of errors, 
viruses or interference.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: about tomcat

2007-07-08 Thread randeelwrw

thank you for the reply.
what i really need to do is transfer records from one database to 
another database.so in the middle there would be two web servers.
is this a good idea?



Stephen.Morris wrote:
> 
> 
> 
> 
> Yes, it is possible to run two servers as a cluster and exchange
> information between them. I have seen an article on the internet recently
> on doing exactly this. The easiest way of finding out how to do this is to
> use Googles advanced search and to type 'tomcat clustering' into the exact
> phrase textbox, which should return about 19,700 hits. It is then a matter
> of just selecting the article that is most relevant to what you are trying
> to do.
> 
> regards,
> Steve Morris
> IT Security Access Management
> Technology Risk and Security
> Technology Australia
> National Australia Bank
> Phone: +61-3-8634 1755 (x31755)
> Mobile: +0438 537 569
> email: [EMAIL PROTECTED]
> 
> 
>
>  randeelwrw
>  <[EMAIL PROTECTED] 
>  .com>  To 
>users@tomcat.apache.org 
>  09/07/2007 14:05   cc 
>
>Subject 
>  Please respond to about tomcat
>"Tomcat Users   
>List"   
>  <[EMAIL PROTECTED] 
>  che.org>  
>
>
> 
> 
> 
> 
> 
> hi everyone,
> 
> can i use two tomcat webservers to exchange information between them?
> how can i do that?
> 
> thank you,
> rana.
> --
> View this message in context:
> http://www.nabble.com/about-tomcat-tf4047066.html#a11495638
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> National Australia Bank Ltd - ABN 12 004 044 937
> This email may contain confidential information. If you are not the
> intended recipient, please immediately notify us at [EMAIL PROTECTED]
> or by replying to the sender, and then destroy all copies of this email.
> Except where this email indicates otherwise, views expressed in this email
> are those of the sender and not of National Australia Bank Ltd. Advice in
> this email does not take account of your objectives, financial situation,
> or needs. It is important for you to consider these matters and, if the
> e-mail refers to a product(s), you should read the relevant Product
> Disclosure Statement(s)/other disclosure document(s) before making any
> decisions. If you do not want email marketing from us in future, forward
> this email with "unsubscribe" in the subject line to
> [EMAIL PROTECTED] in order to stop marketing emails from this
> sender. National Australia Bank Ltd does not represent that this email is
> free of errors, viruses or interference.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/about-tomcat-tf4047066.html#a11495951
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: about tomcat

2007-07-08 Thread Stephen . Morris



I would have thought this wouldn't be a problem as long as the db queries
returned a concise list of records for transfer. If the queries returned
large volumes of transactions your "network" could very quickly become
clogged and unusable.

regards,
Steve Morris
IT Security Access Management
Technology Risk and Security
Technology Australia
National Australia Bank
Phone: +61-3-8634 1755 (x31755)
Mobile: +0438 537 569
email: [EMAIL PROTECTED]


   
 randeelwrw
 <[EMAIL PROTECTED] 
 .com>  To 
   users@tomcat.apache.org 
 09/07/2007 14:51   cc 
   
   Subject 
 Please respond to about tomcat
   "Tomcat Users   
   List"   
 <[EMAIL PROTECTED] 
 che.org>  
   
   





hi everyone,

can i use two tomcat webservers to exchange information between them?
how can i do that?

what i really need to do is transfer records from one database to
another database.so in the middle there would be two web servers.
is this a good idea?

thank you,
rana.
--
View this message in context:
http://www.nabble.com/about-tomcat-tf4047066.html#a11495638
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are not the intended 
recipient, please immediately notify us at [EMAIL PROTECTED] or by replying to 
the sender, and then destroy all copies of this email. Except where this email 
indicates otherwise, views expressed in this email are those of the sender and 
not of National Australia Bank Ltd. Advice in this email does not take account 
of your objectives, financial situation, or needs. It is important for you to 
consider these matters and, if the e-mail refers to a product(s), you should 
read the relevant Product Disclosure Statement(s)/other disclosure document(s) 
before making any decisions. If you do not want email marketing from us in 
future, forward this email with "unsubscribe" in the subject line to [EMAIL 
PROTECTED] in order to stop marketing emails from this sender. National 
Australia Bank Ltd does not represent that this email is free of errors, 
viruses or interference.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: about tomcat

2007-07-08 Thread Johnny Kewl
No, I dont think so, a web server is not a client, and unless you really 
have to work on port 80, it would be much easier to just to use JDBC to 
exchange records. ie open 2 database connections, read from one and write to 
the other, this way you can also use tranactions and ensure the integrity.


If you talking about a real time replication system, ie the databases must 
stay aligned, its alot more complex than simply writing a few records.


If its something like updating the status say once a week, then a web server 
may do.
For example you make a cache or disconnected recordset in the servlet, this 
gets sent to a client, and it updates the dB on the other side. A cache is 
serializable, so that would work.


If you use PostgreSQL, I may be able to help you, I have a replication 
system for that, but its not on port 80.
Its not enough to just say I got two dB's you need to explain the 
desired system.
Using a WEB server to send a cached recorset to a client, that then sticks 
it in a local embedded dB and uses the data, is one thing.

Replication is another story.

- Original Message - 
From: "randeelwrw" <[EMAIL PROTECTED]>

To: 
Sent: Monday, July 09, 2007 6:49 AM
Subject: Re: about tomcat




thank you for the reply.
what i really need to do is transfer records from one database to
another database.so in the middle there would be two web servers.
is this a good idea?



Stephen.Morris wrote:





Yes, it is possible to run two servers as a cluster and exchange
information between them. I have seen an article on the internet recently
on doing exactly this. The easiest way of finding out how to do this is 
to
use Googles advanced search and to type 'tomcat clustering' into the 
exact
phrase textbox, which should return about 19,700 hits. It is then a 
matter
of just selecting the article that is most relevant to what you are 
trying

to do.

regards,
Steve Morris
IT Security Access Management
Technology Risk and Security
Technology Australia
National Australia Bank
Phone: +61-3-8634 1755 (x31755)
Mobile: +0438 537 569
email: [EMAIL PROTECTED]



 randeelwrw
 <[EMAIL PROTECTED]
 .com> 
To

   users@tomcat.apache.org
 09/07/2007 14:05 
cc



Subject
 Please respond to about tomcat
   "Tomcat Users
   List"
 <[EMAIL PROTECTED]
 che.org>







hi everyone,

can i use two tomcat webservers to exchange information between them?
how can i do that?

thank you,
rana.
--
View this message in context:
http://www.nabble.com/about-tomcat-tf4047066.html#a11495638
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are not the
intended recipient, please immediately notify us at [EMAIL PROTECTED]
or by replying to the sender, and then destroy all copies of this email.
Except where this email indicates otherwise, views expressed in this 
email

are those of the sender and not of National Australia Bank Ltd. Advice in
this email does not take account of your objectives, financial situation,
or needs. It is important for you to consider these matters and, if the
e-mail refers to a product(s), you should read the relevant Product
Disclosure Statement(s)/other disclosure document(s) before making any
decisions. If you do not want email marketing from us in future, forward
this email with "unsubscribe" in the subject line to
[EMAIL PROTECTED] in order to stop marketing emails from this
sender. National Australia Bank Ltd does not represent that this email is
free of errors, viruses or interference.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: 
http://www.nabble.com/about-tomcat-tf4047066.html#a11495951

Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: https in Tomcat 5.5 via basic JKS keytool keystore..not doing what it should !

2007-07-08 Thread Ben Iggulden
I've worked around the "java.io.IOException: Keystore was tampered with, or
password was incorrect" problem now and that was the cause of it all.

I can clear the problem by using the password "changeit" as I generate my
key, and by not using the keystorePass attribute on the connector in the
server.xml.

On Tomcat 4 I could override that password (I could "change it") in that way
and the documentation on 5.5 says I can do it the same way, but I'm not
seeing it work on Tomcat 5.5. 

Is this keystore password supposed to be changed as I have presumed
(ensuring the same is used in the server.xml connector's keystorePass
attribute as is used in generation) or is using anything other than
"changeit" not typically done ?



-Original Message-
From: Ben Iggulden [mailto:[EMAIL PROTECTED] 
Sent: 06 July 2007 13:28
To: users@tomcat.apache.org
Subject: https in Tomcat 5.5 via basic JKS keytool keystore..not doing what
it should !

Bit of a maddening problem this one.

I'm setting up https on Tomcat 5.5.  
Following the how-to closely I've generated a keystore using keytool and
uncommented/modified the port 8443 connector in the server.xml.
But the https connector just fails to work, the logs report these errors:

1. org.apache.tomcat.util.net.SSLImplementation - Error loading SSL
Implementation org.apache.tomcat.util.net.puretls.PureTLSImplementation
   java.lang.ClassNotFoundException:
org.apache.tomcat.util.net.puretls.PureTLSImplementation

2. DEBUG main org.apache.tomcat.util.net.jsse.JSSEImplementation - Error
getting factory: org.apache.tomcat.util.net.jsse.JSSE15Factory
   java.lang.ClassNotFoundException:
org.apache.tomcat.util.net.jsse.JSSE15Factory

3. ERROR main org.apache.coyote.http11.Http11BaseProtocol - Error
initializing endpoint
   java.io.IOException: Keystore was tampered with, or password was
incorrect

4. ERROR main org.apache.catalina.startup.Catalina - Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.io.IOException: Keystore was tampered with, or password was incorrect

Now from reading I think the first is unimportant because it should be using
a JSSE and not PureTLS implementation.  The second would look worrying then,
and could mean I'm running with the wrong JSSE version (I'm using the one
that shipped with Tomcat 5.5 and a Java 5 JRE).  The 3rd & 4th are the same
and are the ones really messing with me.  As you can see below..the keystore
password used in generation and in the server.xml are the same so that one
has got me.

Does this look like a JSSE version issue or have I missed something much
more simple ?

---
Log of console session in which I generated the keystore:

C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf>"C:\Program
Files\Java\j2re1.4.2_14\bin\keytool" -genkey -alias tomcat -keyalg RSA
-keystore .keystore
Enter keystore password:  t0mcat
What is your first and last name?
  [Unknown]:  localhost
What is the name of your organizational unit?
  [Unknown]:  Dev Env
What is the name of your organization?
  [Unknown]:  Codefarm
What is the name of your City or Locality?
  [Unknown]:  Repton
What is the name of your State or Province?
  [Unknown]:  NSW
What is the two-letter country code for this unit?
  [Unknown]:  AU
Is CN=localhost, OU=Dev Env, O=Codefarm, L=Repton, ST=NSW, C=AU correct?
  [no]:  y

Enter key password for 
(RETURN if same as keystore password):

C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf>
---
The server.xml connector:




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hide 501 error message

2007-07-08 Thread climbingrose

Hi all,

I'm configuring Tomcat 6.0.10 behind Apache 2.0 using mod_jk 1.2.3.
Everything is working beautifully but I want to hide 501 error when
malicious user try to access the server. For example:

# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
alsfjalsfjsdf


Apache Tomcat/6.0.10 - Error report
HTTP Status 501 - Method alsfjalsfjsdf is not defined in
RFC 2068 and is not supported by the Servlet API type Status reportmessage Method
alsfjalsfjsdf is not defined in RFC 2068 and is not supported by the Servlet
API description The server does not support the functionality
needed to fulfill this request (Method alsfjalsfjsdf is not defined in RFC
2068 and is not supported by the Servlet API ).Apache Tomcat/6.0.10Connection
closed by foreign host.


I don't want to show the message because it contains Tomcat information as
well as revealing the technology I'm using on my website. Any ideas?

Thanks.

-- 
View this message in context: 
http://www.nabble.com/Hide-501-error-message-tf4047399.html#a11496600
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



request timeout over https

2007-07-08 Thread Ben Iggulden
I'm configuring a Tomcat 5.5 instance to use HTTPS.

It's a fresh install, with a Sun Java 5 JVM.  

 

To config HTTPS I've followed the server.xml/how-to by generating a
.keystore using the password "changeit" and uncommenting the SSL/HTTP1.1
connector on port 8443.  I've also thrown fast common access log valve on by
uncommenting that.

 

At this point, the server starts with no errors logged and everything works
fine over HTTP:8080.

 

But any URL that I hit via HTTPS:8443 gets no response and nothing is logged
in the access log, and nothing is reported in any log (level = warn).

If I leave the connection timeout to 20 seconds, Firefox reports "The
connection was interrupted" and IE7 says  that I don't appear to be
connected to the internet.  If I set that to 0 then the browser just sits
and waits patiently for that response over HTTPS that's definitely not
coming !

 

I've ruled my firewall being funny with port 8443 out as a problem, because
if I run Tomcat through Eclipse WST (which picks up a marginally different
server.xml which loads the same app out of my development environment
instead of /webapps) I can hit it fine.  

 

 



Re: Any way to check the client abruptly close the connection?

2007-07-08 Thread aaime74



Johnny Kewl wrote:
> 
> This is an interesting question, and I'm going to "guess"...
> If you in a JSP page, I dont think the error can be trapped.
> 
> If you in a servlet, yes I think a try catch will detect it, but only if
> you 
> actually write something.
> 

Which I can't do. The WMS is an international standard, I cannot bend it
to my will, since the point of the application is to be fully conformant to
it.

This is a pity, I mean, the webapp container should have a way to check
the socket is gone bye bye without writing on it, no?

Cheers
Andrea
-- 
View this message in context: 
http://www.nabble.com/Any-way-to-check-the-client-abruptly-close-the-connection--tf4043946.html#a11496790
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]