Re: Tomcat and webdav in general [Beginner]

2007-09-24 Thread Sven Braun

Hello again,

The thing is that the company wants to implement webdav to it's own existing
document and knowledge management system, allowing users to change content
without downloading a document and having to upload it back again. I believe
the documents are opened from within that management system.

So, Mark you are saying that the already existing Tomcat+webdav structure
will work for that purpose, where one only needs to mount the root folder of
the cms-like-system, like I mentioned earlier? 
Will user privilleges work too?

Does that mean that the server side doesn't need to be touched at all and
basically a good client needs to be found that handles locking and etc.?

Thanks again for the info!!!



Mark Thomas-15 wrote:
 
 Sven Braun wrote:
 I have no knowledge of the CMS being used at all, what I know is that it
 runs with tomcat.
 
 So right now I don't know where and how to start off really and what I
 need
 to work with.
 
 The data or document files/folders should be received or displayed in a
 dynamic way using Java.
 
 So, I'm wondering if I need to create a whole new webdav-servlet or if
 that
 dynamic way is possible at all?
 
 What do you mean dynamic?
 
 If you already have a CMS running on Tomcat you don't need a webdav
 servlet. For clients you have windows explorer etc. I don't understand
 what you are trying to achieve.
 
 Since I cant install any open-source CMS that might support webdav I have
 no
 real picture of how these work together. Maybe you can recommend some so
 that I can try them at home.
 
 Tomcat + webdav servlet. DAVExplorer for the client.
 
 Perhaps you can point out a way to help me understand how everything
 interacts because right now I look at webdav like it needs to be enabled
 under Network Ressources and then one uses a Client like WindowsExplorer,
 DAVExplorer or SkunkDav which can't be the way the CMS should work.
 
 The webdav spec would be the place to start.
 
 HTH,
 
 Mark
 
 -
 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/Tomcat-and-webdav-in-general--Beginner--tf4493232.html#a12854795
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]



Tomcat, IIS and Authentication

2007-09-24 Thread Preuss, Jacqueline - ENCOWAY
Hi all!

 

We have an application (hosted with Tomcat) which has to communicate
with the .NET world, i.e. our web application is integrated in an
Asp.Net application hosted by an IIS. So, to connect both we have an
Asp.Net Connector on the one side and a Java Connector on the other
side. If the user selects something on our application the JavaConnector
is called which creates an URLConnection to a specific Asp.Net site. At
the moment, the URLConnection is established with an empty username and
password because we created a specific IIS user which is always the same
for every request. Now, we want to use the integrated windows
authentication, i.e. we want to know which user is currently asking.
That's why we thought on NTLM authentication or something like that...
But we didn't know how to get the credentials in the Java Connector to
establish the connection with Asp.Net. What can we do? Is it generally
possible to use the integrated windows authentication in Java with IIS
and Tomcat? How? Can you give me some tips?

 

Regards,

Jacqueline.

 

 



Re: ??: could two tomcat servers have mutual authentication?

2007-09-24 Thread quanxin zhu
ok, I know.
Thx a lot!


2007/9/24, Mark Thomas [EMAIL PROTECTED]:

 quanxin zhu wrote:
  Could you explain it in detail?

 You have written the code to call a web service. You need to write
 additional code to pass a certificate.

  where could I find the instruction to modify the code to implement this
  function?

 Goggle woudl be a good place to start.

  I have another questions, when navigate a servlet using browser, the
 tomcat
  server could trasfer the certification to browser automatically,
  why cannot it transfer the certification to other tomcat servers for
  authentication?

 Because in Tomcat to browser communciation Tomcat is acting as the
 server and Tomcat includes code to pass the certificate to the client in
 this case.

 When you write a servlet that calls a web service, your servlet is
 acting as a client and you have to hand code the SSL aspects in the same
 way as every other aspect of the web service client.

 Mark


 -
 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: Problems with JAAS-Realm

2007-09-24 Thread Franck Borel

Hi David,

thanks again for your time!


There is only one instance of your realm that is shared by all incoming
requests. That mean only local values inside methods are individual.
Every property that is stored at instance of class level is to be
accessed and stored in a ThreadSafe manner. It's up to you code to be
Threadsafe by assuming several Http Threads can run it at the same Time.


I am not so shure if I've a clear understanding of the realm architecture. So 
let me present my view of it:


Context -- Singleton?
Valve -- Singleton? Valve is the one who passes requests and responses 	 


  objects
Realm -- Singleton?
  here I get requests and responses objects passing through the 


  Valve that wrapps the realm. A call of the
  request.getRemoteAddr() invokes the valve to get current
  request informations, which is out of scope of the current
  informations I get about the user in the realm (except
  username and password, which are set in the callback handler).
  How this is done? Which pattern is used, listener?


You can, however, make the assumption that the Thread that goes inside
your realm methods is the same that will serve your request. As such,
you can save datas for later use by same Thread using ThreadLocal.

Any example?



However, Threadlocal are to be used with caution. Do not forget to set
their value back to null our you could face a case of memory leak.

Ok.

Thanks!

-- Franck



En l'instant précis du 21/09/07 13:21, Franck Borel s'exprimait en ces
termes:

Salut David,

thanks very much for your answer!


 public SecurityConstraint[] findSecurityConstraints(Request request,
Context context) {
   HttpServletRequest req = request;// catch Request
session = req.getSession();  // catch session
ipAddress = req.getRemoteAddr();

The problem:
In a first try this seems to work. But if more then one client try to
use the authentication, it catches the last IP address of the user who
makes a request and not the IP address of the current client I like to
authenticate:
So, the req.getRemoteAddr() seems to catch the information outside of
the current thread and I don't know why. Have someone an idea?

req.getRemoteAddres() will get the address of that specific request,
it's isolated from other simultaneous request, or lots of people would
start getting problems using it. I would be more enclined to take a look
at where you are defining the session and ipAddress properties, it looks
like they are class or instance level, where it's mandatory that Realm
be ThreadSafe and stateless.

This sounds like as my problem seems to be elsewhere as I supposed. I
have no idea where I should tell tomcat to keep the thread statefull.
I tried to set some page directives on my login.jsp:

%@ session=true % (which I think is standard)
%@ isThreadsafe=false %

This doesn't help. Of course, it can't work, cause the Realm is a
valve and therefore the Realm is the part who calls the login.jsp page
and the directives of the page appears, in manner of speaking, to late.

How can I tell the Realm to get ThreadSafe? Or have I missunderstood
something?


-- Franck

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





--

Beste Grüße

Franck Borel

**
Dipl.-Hyd. Franck BorelTelefon: +49[0]761-203 3908
Universitätsbibliothek Fax: +49[0]761-203 3987
Werthmannsplatz 2  E-Mail : [EMAIL PROTECTED]
   WWW: http://www.ub.uni-freiburg.de
D-79098 Freiburg
**


-
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: Basic question - Ingterating Tomcat with Apache

2007-09-24 Thread Peter Crowther
 From: albrecht andrzejewski [mailto:[EMAIL PROTECTED] 
 I think tomcat stand alone is
 - easier to deploy.
 And that's all.

There are also fewer things to fail, and a smaller learning curve for
your system administrators (if they don't already know Apache httpd and
the JK connector).

 I think apache as a front end is a more flexible and secure solution.
 - if apache fails, tomcat is not affected

... but is inaccessible.  This is a failure mode you don't have with
just a Tomcat.

 - if tomcat fails, apache can redirect request to another tomcat

True.  How often do you expect this failure mode?

 - when you serve static content juste like image of your 
 site and all  
 static text part , javascripts, etc ( i mean... dynamic content is  
 often just an hour ticking at the top of the page!) apche can better  
 handle the request and serve them quickier (with cache).

There have been a couple of benchmarks on this, most recently by Peter
Lin (available at
http://tomcat.apache.org/articles/benchmark_summary.pdf).  They showed
that Tomcat 5.0 and higher are sufficiently efficient at serving static
content that you'll saturate your network before you run out of
resources on the server.  Peter saturated a 100Mbit/s LAN connection.

 Am i wrong ?  As i have currently nothing pre-installed on it... and  
 it would be fine to know what you are thinking about it. You seem to  
 be pro vanilla tomcat... But just let us know WHEN pure 
 tomcat has to be choosen !

Vanilla Tomcat never *has* to be chosen.  I like systems with fewer
moving parts - they're generally simpler to manage, more robust and
easier to debug when they go wrong.  And security-wise, I'd much rather
put a proper firewall in front of a web server than rely on httpd to
catch all the possible attacks!

You may have other reasons to add httpd.  Unless you have very slow
boxes and very fast network connections, speed of serving static content
is not a valid reason.  I'd never assume httpd is any more secure than
Tomcat, so security (to me) is not a valid reason.  You may want to put
httpd in front, simply so that you can load-balance and scale Tomcats as
your application grows - that's a valid reason if you don't want to use
a hardware load-balancer, and plenty of folks load-balance that way,
including some quite large sites with quite demanding SLAs.  Just make
sure you know what you're gaining by adding the extra system!

- Peter

-
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: JSP - static mirroring

2007-09-24 Thread Sonal Goyal
What do you mean by parse, compile and highlight .htmls ?

On 9/22/07, Dola Woolfe [EMAIL PROTECTED] wrote:

 Hassan, that's terrific, thank you!

 Would you happen to know how to get Eclipse to parse,
 compile, and highlight .html's the same way it does
 .jsp's?

 Thanks again!

 Dola
 --- Hassan Schroeder [EMAIL PROTECTED]
 wrote:

  On 9/19/07, Dola Woolfe [EMAIL PROTECTED] wrote:
   How do I configure Tomcat to process .html files
  as .jsp?
 
  Add this to the web.xml of the relevant Context:
 
servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.html/url-pattern
/servlet-mapping
 
  That's it :-)
 
  HTH!
  --
  Hassan Schroeder 
  [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]
 
 





 
 Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
 news, photos  more.
 http://mobile.yahoo.com/go?refer=1GNXIC

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




-- 
Thanks and Regards,
Sonal


Re: Tomcat and webdav in general [Beginner]

2007-09-24 Thread Sven Braun

Alright I got some more information about the cms structure. One doesn't have
access to the actual files but to a database (well, I don't). Which is even
more confusing. 
So I was told to find a way to represent that data-tree creating a program
that could look at the db-structure to be used with webdav.

Do you have any idea how or if this can be achieved? Or is it necessary to
actually mount the root directory and not a db?

I've installed Slide which works fine but I don't know how to deal with that
underlying data structure mentioned above.

Do you perhaps know of any cms that works that way, so I could inspect it?

thanks again!!!




Sven Braun wrote:
 
 Hello again,
 
 The thing is that the company wants to implement webdav to it's own
 existing document and knowledge management system, allowing users to
 change content without downloading a document and having to upload it back
 again. I believe the documents are opened from within that management
 system.
 
 So, Mark you are saying that the already existing Tomcat+webdav structure
 will work for that purpose, where one only needs to mount the root folder
 of the cms-like-system, like I mentioned earlier? 
 Will user privilleges work too?
 
 Does that mean that the server side doesn't need to be touched at all and
 basically a good client needs to be found that handles locking and etc.?
 
 Thanks again for the info!!!
 
 
 
 Mark Thomas-15 wrote:
 
 Sven Braun wrote:
 I have no knowledge of the CMS being used at all, what I know is that it
 runs with tomcat.
 
 So right now I don't know where and how to start off really and what I
 need
 to work with.
 
 The data or document files/folders should be received or displayed in a
 dynamic way using Java.
 
 So, I'm wondering if I need to create a whole new webdav-servlet or if
 that
 dynamic way is possible at all?
 
 What do you mean dynamic?
 
 If you already have a CMS running on Tomcat you don't need a webdav
 servlet. For clients you have windows explorer etc. I don't understand
 what you are trying to achieve.
 
 Since I cant install any open-source CMS that might support webdav I
 have no
 real picture of how these work together. Maybe you can recommend some so
 that I can try them at home.
 
 Tomcat + webdav servlet. DAVExplorer for the client.
 
 Perhaps you can point out a way to help me understand how everything
 interacts because right now I look at webdav like it needs to be enabled
 under Network Ressources and then one uses a Client like
 WindowsExplorer,
 DAVExplorer or SkunkDav which can't be the way the CMS should work.
 
 The webdav spec would be the place to start.
 
 HTH,
 
 Mark
 
 -
 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/Tomcat-and-webdav-in-general--Beginner--tf4493232.html#a12858502
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]



Cactus Authentication problem with Tomcat 5.5.20

2007-09-24 Thread Nicolas Clemeur

Hello all,

I am having some difficulties to setup cactus tests using 
tomcat  5.5.20 (Everything works fine with 5.5.20). 
I am using form authentication in cactus tests (as described
 on the cactus web site). When I look at the generated request,
I get the authentication layer called with all the parameters
needed for the test (service name, class,...), but when the 
request for the actual test is generated it is missing all the
 parameters to run the test. So I am suspecting something must
 have change in tomcat (nothing has changed in the cactus 
environment) in the way the authentication calls are handled
 in tomcat post 5.5.20 (I have tried 5.5.23 and 5.5.25). 
If I disable authentication all is working fine again. For the
 authentication layer we use a JDBC Realm. Outside cactus tests
 the webapp is working fine in 5.5.25.

I would really appreciate if anyone would have an idea where
 I should look at as I am really having a hard time to understand
 where these parameters get swallowed.

Regards

Nicolas



-
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 control encoding of response.sendRedirect? (Tomcat 5.5.17)

2007-09-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

Mark Thomas wrote:
 Check the HTTP spec. I am pretty sure (but haven't checked) that the
 headers must always be in ISO-8859-1.

The HTTP spec doesn't say: it points to RFC 822.

- From RFC 822, section 3.1.2:

Once a field has been unfolded, it may be viewed as being com-
posed of a field-name followed by a colon (:), followed by a
field-body, and  terminated  by  a  carriage-return/line-feed.
The  field-name must be composed of printable ASCII characters
(i.e., characters that  have  values  between  33.  and  126.,
decimal, except colon).  The field-body may be composed of any
ASCII characters, except CR or LF.  (While CR and/or LF may be
present  in the actual text, they are removed by the action of
unfolding the field.)

So the fields themselves must be in ASCII. Since there's a provision for
encoding other stuff in ASCII (%-codes for URLs), you should be able to
do this.

Unfortunately, I can't find anywhere in the spec that says which
encoding to use in URLs for % HEX HEX encoding.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG97UL9CaO5/Lv0PARAto0AJ9mJAkUcDf4QXjRY0sBAiibNANBzACgqVMW
J6rdXmSpIVZd00QudmJuazY=
=2XqX
-END PGP SIGNATURE-

-
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: Re: Performing SSL on tomcat using the JAAS ream

2007-09-24 Thread Clinton J. Totten
Thanks Bill for the information but I'm a bit confused b/c the tomcat
documentation talks about how to configure the JAAS realm:
http://jakarta.apache.org/slide/howto-jaas.html.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Friday, September 21, 2007 9:51 PM
To: users@tomcat.apache.org
Subject: Re: Performing SSL on tomcat using the JAAS ream

The JAASRealm in Tomcat doesn't currently support CLIENT-CERT auth.

Clinton J. Totten [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
I am getting a 401 error when trying to access my webapps deployed on
tomcat.  I configured the JAAS realm and connection properties according
to the tomcat documentation in the server.xml file.  In the web.xml file
the login-config auth method element is set to CLIENT-CERT with a realm
name of JAASRealm.  I placed the compiled classes for the login module,
principal and callback handlers under the tomcat/server/classes
directory and put the jaas config file in the conf directory.  Any help
would be appreciated.



Thanks!





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



issue when redirect/forward on not - parsed form/multipart request

2007-09-24 Thread tw796021
Hello,

Hopefully this is the right place for my problem.

I wrote a servlet (running on Apache Tomcat 5.5) using Commons FileUpload
and it works good except for the following problem:

If a user wants to upload a file larger then sizeMax, a
SizeLimitExceededException is thrown while parsing the request and I want
to redirect the user to another webpage displaying a warning/error. If the
users session expired the request is ignored (not parsed) and the user is
redirected to some page telling him about it.

If I try this using Tomcat 5.5 alone (localhost:8080/...) it works well,
but if I use it together with Ms IIS / isapi redirector (jk-1.2.25), then
those warnings are not shown, instead a (hope this is the right
translation) Connection aborted, Connection to server was reset while
loading the page is shown in the browser. No errors found in the logs of
Tomcat/Redirector. If the request is fully parsed (file upload ok), then
all goes OK.

Is there something that has to be done (sort of cancelling the request)?


Thanks in advance for your efforts! (..and please excuse my english ;-) )


Thomas


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



mod_jk JkShmFile directive

2007-09-24 Thread Gerhardus . Geldenhuis
Hi
I have asked about this directive(JkShmFile) before but on the apache-http
list. I am still not 100% clear as to the exact usage of this directive.
 
This page is very vague about usage:
http://tomcat.apache.org/connectors-doc/reference/apache.html
 
After a lot of googling and searching through my mail archives I found the
following snippets of information:
 
start of snippets
 
Concerning mod_jk there is no hard upper limit. If the number of workers
(counting all lb workers and all members of lb workers comes close to 64,
you will need to increase the JkShmSize.) No dependency on the tomcat or AJP
version. I didn't think about old JK versions though. 
1.2.23 doesn't count as old.
 
 I am not intending to use shared memory or load balancing or anything 
 like that. Therefore, I have no such configuration in my 
 jk_workers.properties file. Could this be the reason why there appear 
 to be no maps when trying to match JkMounts? Are the workers being 
 configured and then discarded because there's no place to put them in 
 memory? That would suck, but at least make sense.
 
Should not be related. Nevertheless even without load balancing, using a
single member load balancer and shared memory can be interesting because of
the advanced managment and information features provided by the stu worker
(that uses the shared memory to comunicate with the lb).
 

The reason why it ended up in /var/log/httpd/jk.shm is because the JkShmFile
logs/jk.shm directive in the httpd.conf translates to
$ServerRoot/logs/jk.shm
where $ServerRoot in this case is /etc/httpd. /etc/httpd/logs is a symlink
to
/var/log/httpd. 
 
It is used as a scoreboard with run time data for workers so the
load balancer works more accurately.
 
More logical placement for 
/var/run/mod_jk 

This file is used for shared memory, lock, ...of mod_jk threads.
if you don't declare it in your mod_jk config file, mod_jk will create a
default one in your http log directory.
 
/end of snippets

My questions

Is this shared memory used by different child apache processes on the same
machine or is it a bit more involved than that.

If the answer to the above question is yes, do you really need this in the
config. What value does it add to have this directive available, except for
the fact that you can specify the location...

I would also kind of expect the JkShmSize directive to be automatic instead
of having to specify it. If it needs to be bigger than the default 64Kb it
should grow on its own accord.

Regards


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Re: mod_jk JkShmFile directive

2007-09-24 Thread Rainer Jung

[EMAIL PROTECTED] wrote:

My questions

Is this shared memory used by different child apache processes on the same
machine or is it a bit more involved than that.


Yes, its simply that.
The shared memory contains configuration and runtime information for 
load balancer workers and their members. We need it in order that
- all apache children share the same status information for load 
balancing members (OK, ERROR, ...). Before shm, each child had to detect 
an error by itself (possibly burning requests etc.)
- share the information about load taken by the individual workers. 
Before shm, each child had its own load counter, leading to very bad 
balancing behaviour under small load
- share the information for the parts of the configuration, which are 
changeable during runtime by the status worker


The shm is used by balancer and status workers.


If the answer to the above question is yes, do you really need this in the
config. What value does it add to have this directive available, except for
the fact that you can specify the location...


No other value. I think this value is enough. You usually want to place 
this file in a run directory, where e.g. the pid files go etc. Also 
the file should not be on NFS (I guess), so hard coding SERVERROOT/logs 
is not enough.



I would also kind of expect the JkShmSize directive to be automatic instead
of having to specify it. If it needs to be bigger than the default 64Kb it
should grow on its own accord.


Yes, that would be nice. Unfortunately this requires a little code 
surgery and not only a small patch, because at the moment the shm is 
statically acquired (fixed size) and we need it before we parse the 
worker configuration, so beforee we know, how many workers we have. To 
fix that, we would either need to count the workers in a separate pass 
in advance, or enhance the shm handling to allow growth of it.


At the moment we initialize the shm for 64 workers, which on some 
platforms lead to 28800 Bytes size. Actually I'm not sure, if we will 
really be able to use 64 workers, or if the number is slightly smaller 
(63?), because we might need to subtract some offset size used as a header.



Regards


Regards,

Rainer

-
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: issue when redirect/forward on not - parsed form/multipart request

2007-09-24 Thread Rainer Jung

Hi Thomas,

[EMAIL PROTECTED] wrote:

I wrote a servlet (running on Apache Tomcat 5.5) using Commons FileUpload
and it works good except for the following problem:

If a user wants to upload a file larger then sizeMax, a
SizeLimitExceededException is thrown while parsing the request and I want
to redirect the user to another webpage displaying a warning/error. If the
users session expired the request is ignored (not parsed) and the user is
redirected to some page telling him about it.


As I understand you, you can easily reproduce the  behaviour without 
actually uploading huge files, because the redirect should happen before 
the actual upload starts?


If so, you can increase the redirector log level to debug or even 
trace, because then we can see, if and in which form your redirect 
comes back and maybe also, what happens to it.



Is there something that has to be done (sort of cancelling the request)?


I'm not sure, let's look at the log. I expect, you return a 30x, using a 
real http redirect?


Just to make sure, you should also post your workers.properties.


Thomas


Regards,

Rainer

-
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 with nsapi_connector.so and HTTP 304 response from JBoss

2007-09-24 Thread Matt Cristantello

Rainer,

Thanks very much for the help. I can't believe I didn't catch that! 
Works fine now. For what it's worth, the linux server obj.conf file did 
not have that goofy 3= stuff, it just had the Service command on the 
same line and that was enough to break it.


Thanks again!
~Matt

[EMAIL PROTECTED] wrote:

--
Matt Cristantello
Programmer/Analyst
Frontier Science and Technology Research Foundation, Inc.
Email: [EMAIL PROTECTED]
Phone: 716-898-7380


-
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: Tomcat, IIS and Authentication

2007-09-24 Thread Gabe Wong

Jacqueline,
Just to follow your question, Are you asking if it is possible to create 
a custom Tomcat Realm,
where the user/password provided from the java application login page is 
checked against the windows user authentication system?


Preuss, Jacqueline - ENCOWAY wrote:

Hi all!

 


We have an application (hosted with Tomcat) which has to communicate
with the .NET world, i.e. our web application is integrated in an
Asp.Net application hosted by an IIS. So, to connect both we have an
Asp.Net Connector on the one side and a Java Connector on the other
side. If the user selects something on our application the JavaConnector
is called which creates an URLConnection to a specific Asp.Net site. At
the moment, the URLConnection is established with an empty username and
password because we created a specific IIS user which is always the same
for every request. Now, we want to use the integrated windows
authentication, i.e. we want to know which user is currently asking.
That's why we thought on NTLM authentication or something like that...
But we didn't know how to get the credentials in the Java Connector to
establish the connection with Asp.Net. What can we do? Is it generally
possible to use the integrated windows authentication in Java with IIS
and Tomcat? How? Can you give me some tips?

 


Regards,

Jacqueline.

 

 



  



--
Regards

Gabe Wong
Private JVM JAVA Hosting Automation
http://www.ngasi.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]



Tomcat maxThreads

2007-09-24 Thread Mike Crawford
Hi,

I'd like to know if there are any gotchas from increasing maxThreads well
beyond the standard 150.  For instance, on a new Dell 1950 dual-core with
4GB RAM, why not try 300 or even thousands of threads?  I will be putting
Lighty or Apache in front of Tomcat, which is also a potential bottleneck.

Thanks for your time,

Mike Crawford


Cygwin and mod_jk

2007-09-24 Thread Javier Badaracco
Hi:
Someone has experience in putting to work mod_jk winthin an apache instance 
running in cygwin.

Thanks


Re: Tomcat maxThreads

2007-09-24 Thread Filip Hanik - Dev Lists
Threads in hundreds, or lower one thousand is ok, if you need more, 
question yourself :)

ie, if you need more concurrency, simply turn of keep alives.

Having too many threads will do the following

1. Eat up a good chunk of memory
2. Your system will spend too much time context switching

Filip

Mike Crawford wrote:

Hi,

I'd like to know if there are any gotchas from increasing maxThreads well
beyond the standard 150.  For instance, on a new Dell 1950 dual-core with
4GB RAM, why not try 300 or even thousands of threads?  I will be putting
Lighty or Apache in front of Tomcat, which is also a potential bottleneck.

Thanks for your time,

Mike Crawford

  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.13.30/1027 - Release Date: 9/24/2007 11:27 AM
  



-
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: Tomcat 5.5.25 takes 5 minutes to shut down.

2007-09-24 Thread Gabe Wong

Hi Hermansen,

Check the solution in the following link:
http://www.ngasi.com/ngasihelp/ngasiuserguide/tomcat_fails_shutdown_complete.htm

Hermansen, Erik wrote:

Hello!

I'm running Tomcat 5.5.25 on SLED 10.  I performed the installation of Tomcat manually, 
using the apache-tomcat-5.5.25 archive from Apache's website.  Tomcat will start fine and 
operate as expected, but shutting down is unreliable and often takes about 5 minutes to 
complete.  If I run the $CATALINA_BASE/bin/shutdown.sh script, it will return immediately 
without errors, but checking for the process (ps aux | grep tomcat) shows it 
is still loaded for a long amount of time after the script is called.  On a different 
server with identical hardware and very similar tomcat installation, the shutdown script 
will bring Tomcat down in about 3 seconds.

Reading through catalina.out, I find this error which corresponds to calling 
the shutdown.sh script:

SEVERE: Protocol handler pause failed
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:461)
at java.net.Socket.connect(Socket.java:411)
at java.net.Socket.init(Socket.java:310)
at java.net.Socket.init(Socket.java:154)
at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:49
2)
at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:289)
at org.apache.jk.server.JkMain.pause(JkMain.java:681)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:163)
at org.apache.catalina.connector.Connector.pause(Connector.java:1032)
at org.apache.catalina.core.StandardService.stop(StandardService.java:48
9)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Sep 19, 2007 3:11:55 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 19, 2007 3:11:56 AM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Sep 19, 2007 3:11:56 AM org.apache.catalina.core.AprLifecycleListener lifecycleE
vent
INFO: Failed shutdown of Apache Portable Runtime

I've found a couple similar cases where people had this problem.  They resolved 
it by doing something with their network configuration, but in both cases the 
description of their solution was very vague, so I'm not sure how I could 
proceed.

-Erik


  



--
Regards

Gabe Wong
Private JVM JAVA Hosting Automation
http://www.ngasi.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]



Uninstall options for tomcat 4.1.31

2007-09-24 Thread ehawkes
Hi, 

I haven't been able to find the answer to this in the MARC 
archives or elsewhere.  

Where can I find a list of command line flags for the 
uninstaller (uninst-tomcat4.exe)? 

Our product includes tomcat 4.1.31.  I would like to 
silently uninstall tomcat 4.1 before upgrading our users 
to tomcat 5.5.  

When running the tomcat 4.1 uninstaller manually, the UI 
prompts me to remove the tomcat directory and all files 
in it.  Is this option also available via a command line 
switch?  

Thanks, 

Eric 

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



Tomcat 5.5.25 takes 5 minutes to shut down.

2007-09-24 Thread Hermansen, Erik
Hello!

I'm running Tomcat 5.5.25 on SLED 10.  I performed the installation of Tomcat 
manually, using the apache-tomcat-5.5.25 archive from Apache's website.  Tomcat 
will start fine and operate as expected, but shutting down is unreliable and 
often takes about 5 minutes to complete.  If I run the 
$CATALINA_BASE/bin/shutdown.sh script, it will return immediately without 
errors, but checking for the process (ps aux | grep tomcat) shows it is still 
loaded for a long amount of time after the script is called.  On a different 
server with identical hardware and very similar tomcat installation, the 
shutdown script will bring Tomcat down in about 3 seconds.

Reading through catalina.out, I find this error which corresponds to calling 
the shutdown.sh script:

SEVERE: Protocol handler pause failed
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:461)
at java.net.Socket.connect(Socket.java:411)
at java.net.Socket.init(Socket.java:310)
at java.net.Socket.init(Socket.java:154)
at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:49
2)
at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:289)
at org.apache.jk.server.JkMain.pause(JkMain.java:681)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:163)
at org.apache.catalina.connector.Connector.pause(Connector.java:1032)
at org.apache.catalina.core.StandardService.stop(StandardService.java:48
9)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Sep 19, 2007 3:11:55 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 19, 2007 3:11:56 AM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Sep 19, 2007 3:11:56 AM org.apache.catalina.core.AprLifecycleListener lifecycleE
vent
INFO: Failed shutdown of Apache Portable Runtime

I've found a couple similar cases where people had this problem.  They resolved 
it by doing something with their network configuration, but in both cases the 
description of their solution was very vague, so I'm not sure how I could 
proceed.

-Erik



Re: Tomcat maxThreads

2007-09-24 Thread Mike Crawford
Hi Filip,

The reason I want to use more threads is because of the nature of our AJAX
client.  'Sleeping' threads on the server seems like a viable option
compared to polling, and therefore I'm wondering how many threads to use.
Other options include Jetty 6 'Continuation' or equivalents -
http://blogs.webtide.com/gregw/2006/07/25/1153845234453.html to handle this
problem.  I'd prefer to stick with Tomcat if it is scalable with AJAX
clients that require a lot of talk between client-server.

Regards,

Mike



On 9/24/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

 Threads in hundreds, or lower one thousand is ok, if you need more,
 question yourself :)
 ie, if you need more concurrency, simply turn of keep alives.

 Having too many threads will do the following

 1. Eat up a good chunk of memory
 2. Your system will spend too much time context switching

 Filip

 Mike Crawford wrote:
  Hi,
 
  I'd like to know if there are any gotchas from increasing maxThreads
 well
  beyond the standard 150.  For instance, on a new Dell 1950 dual-core
 with
  4GB RAM, why not try 300 or even thousands of threads?  I will be
 putting
  Lighty or Apache in front of Tomcat, which is also a potential
 bottleneck.
 
  Thanks for your time,
 
  Mike Crawford
 
 
  
 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.5.488 / Virus Database: 269.13.30/1027 - Release Date:
 9/24/2007 11:27 AM
 


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




AJP Flush Packet causing text/plain output

2007-09-24 Thread Larry Reisler
We recently switched our development JBOSS instance from 4.05GA to 4.21GA, 
where we are have been using mod_jk for connecting an Apache front end server 
(2.2) to the Tomcat AppServer. We have noticed periodic times when the apache 
web server will return data with a content-type of plain/text (the server 
default) instead of the real content-type, and a chunked encoding (even if the 
AppServer was producing a non-chunked content). We tried switch to 
mod_proxy_ajp, but got the same result. 

A bit of sleuthing (2 days X 2 engineers) revealed that the AJP connection on 
Tomcat is sending a SEND_BODY_CHUNK (which I assume is a flush packet) 
periodically that seem to be confusing mod_jk. We can see in the mod_jk and 
mod_proxy_ajp debug log that the correct headers are coming from the Tomcat 
server. However, it seems like mod_jk and mod_proxy_ajp are losing all the 
header information regarding the packet (including the Powered by headers, 
content-type, content-length, cookies, etc.). 

In normal operation, for a sample small transaction, we would see this sequence 
in response: 
SEND_HEADERS 
SEND_BODY_CHUNK 
END_RESPONSE 

When the output would come out as text/plain, we would see this sequence: 
SEND_BODY_CHUNK 
SEND_HEADERS 
SEND_BODY_CHUNK 
END_RESPONSE 

Is there something we should have configured differently so that mod_jk or 
mod_proxy_ajp will behave better?

 



Re: Tomcat maxThreads

2007-09-24 Thread Filip Hanik - Dev Lists
In Tomcat 6 we have the Comet servlet, you would have to use 6.0.x 
trunk, since there is a connection reuse bug in 6.0.14



Filip


Mike Crawford wrote:

Hi Filip,

The reason I want to use more threads is because of the nature of our AJAX
client.  'Sleeping' threads on the server seems like a viable option
compared to polling, and therefore I'm wondering how many threads to use.
Other options include Jetty 6 'Continuation' or equivalents -
http://blogs.webtide.com/gregw/2006/07/25/1153845234453.html to handle this
problem.  I'd prefer to stick with Tomcat if it is scalable with AJAX
clients that require a lot of talk between client-server.

Regards,

Mike



On 9/24/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
  

Threads in hundreds, or lower one thousand is ok, if you need more,
question yourself :)
ie, if you need more concurrency, simply turn of keep alives.

Having too many threads will do the following

1. Eat up a good chunk of memory
2. Your system will spend too much time context switching

Filip

Mike Crawford wrote:


Hi,

I'd like to know if there are any gotchas from increasing maxThreads
  

well


beyond the standard 150.  For instance, on a new Dell 1950 dual-core
  

with


4GB RAM, why not try 300 or even thousands of threads?  I will be
  

putting


Lighty or Apache in front of Tomcat, which is also a potential
  

bottleneck.


Thanks for your time,

Mike Crawford




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.13.30/1027 - Release Date:
  

9/24/2007 11:27 AM

-

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





  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.13.30/1027 - Release Date: 9/24/2007 11:27 AM
  



-
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: Tomcat maxThreads

2007-09-24 Thread Mike Crawford
Thanks Filip,

The link that I pasted below led me to think Comet servlet wouldn't work
when applying the Yale CAS SSO filter that I use.  I'll see how it goes.

Regards,

Mike

On 9/24/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

 In Tomcat 6 we have the Comet servlet, you would have to use 6.0.x
 trunk, since there is a connection reuse bug in 6.0.14


 Filip


 Mike Crawford wrote:
  Hi Filip,
 
  The reason I want to use more threads is because of the nature of our
 AJAX
  client.  'Sleeping' threads on the server seems like a viable option
  compared to polling, and therefore I'm wondering how many threads to
 use.
  Other options include Jetty 6 'Continuation' or equivalents -
  http://blogs.webtide.com/gregw/2006/07/25/1153845234453.html to handle
 this
  problem.  I'd prefer to stick with Tomcat if it is scalable with AJAX
  clients that require a lot of talk between client-server.
 
  Regards,
 
  Mike
 
 
 
  On 9/24/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 
  Threads in hundreds, or lower one thousand is ok, if you need more,
  question yourself :)
  ie, if you need more concurrency, simply turn of keep alives.
 
  Having too many threads will do the following
 
  1. Eat up a good chunk of memory
  2. Your system will spend too much time context switching
 
  Filip
 
  Mike Crawford wrote:
 
  Hi,
 
  I'd like to know if there are any gotchas from increasing maxThreads
 
  well
 
  beyond the standard 150.  For instance, on a new Dell 1950 dual-core
 
  with
 
  4GB RAM, why not try 300 or even thousands of threads?  I will be
 
  putting
 
  Lighty or Apache in front of Tomcat, which is also a potential
 
  bottleneck.
 
  Thanks for your time,
 
  Mike Crawford
 
 
 
 
 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.5.488 / Virus Database: 269.13.30/1027 - Release Date:
 
  9/24/2007 11:27 AM
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  
 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.5.488 / Virus Database: 269.13.30/1027 - Release Date:
 9/24/2007 11:27 AM
 


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




Vmware and Tomcat 5.x 6.x

2007-09-24 Thread Mitesh Shah
Hi,

I am fairly new to this user group. 

I have deployed Tomcat 5.0 and Tomcat6.0 on our Virtualized environment;
consist of ESX 3.0 servers with Clarion storage.

This is first ever deployment of our product on virtual environment and we
are facing lots of issues of slowness. There are too many variables to
monitor and looking for some path to follow. 

Previously, I have deployed tomcat in our physical server environment and
it's running absolutely fine with all performance tunning in place but same
is not working in virtual environment. 

I was hoping to get some input as if anyone is aware of such issue of vmware
and tomcat.

Please let me know if you need any further details about components used in
our deployment or any details pertinent to this issue.

 

Thank you in advance.

 

Mitesh



Re: Tomcat 5.5.25 takes 5 minutes to shut down.

2007-09-24 Thread Martin Gainty
Ive seen this too where the main process is stopped but the connections to
the Listener stay alive for a while
netstat -a | grep Port
shows activity until all the connections are quiesced..

Ive see where commenting out the APR listener allows a quicker stop for
tomcat e.g.
!-- Listener className=org.apache.catalina.core.AprLifecycleListener/ --

M--
- Original Message -
From: Gabe Wong [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, September 24, 2007 3:53 PM
Subject: Re: Tomcat 5.5.25 takes 5 minutes to shut down.


 Hi Hermansen,

 Check the solution in the following link:

http://www.ngasi.com/ngasihelp/ngasiuserguide/tomcat_fails_shutdown_complete
htm

 Hermansen, Erik wrote:
  Hello!
 
  I'm running Tomcat 5.5.25 on SLED 10.  I performed the installation of
Tomcat manually, using the apache-tomcat-5.5.25 archive from Apache's
website.  Tomcat will start fine and operate as expected, but shutting down
is unreliable and often takes about 5 minutes to complete.  If I run the
$CATALINA_BASE/bin/shutdown.sh script, it will return immediately without
errors, but checking for the process (ps aux | grep tomcat) shows it is
still loaded for a long amount of time after the script is called.  On a
different server with identical hardware and very similar tomcat
installation, the shutdown script will bring Tomcat down in about 3 seconds.
 
  Reading through catalina.out, I find this error which corresponds to
calling the shutdown.sh script:
 
  SEVERE: Protocol handler pause failed
  java.net.ConnectException: Connection timed out
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
  at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
  at java.net.Socket.connect(Socket.java:461)
  at java.net.Socket.connect(Socket.java:411)
  at java.net.Socket.init(Socket.java:310)
  at java.net.Socket.init(Socket.java:154)
  at
org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:49
  2)
  at
org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:289)
  at org.apache.jk.server.JkMain.pause(JkMain.java:681)
  at
org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:163)
  at
org.apache.catalina.connector.Connector.pause(Connector.java:1032)
  at
org.apache.catalina.core.StandardService.stop(StandardService.java:48
  9)
  at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
  at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
  at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
  Sep 19, 2007 3:11:55 AM org.apache.catalina.core.StandardService stop
  INFO: Stopping service Catalina
  Sep 19, 2007 3:11:56 AM org.apache.coyote.http11.Http11BaseProtocol
destroy
  INFO: Stopping Coyote HTTP/1.1 on http-8080
  Sep 19, 2007 3:11:56 AM org.apache.catalina.core.AprLifecycleListener
lifecycleE
  vent
  INFO: Failed shutdown of Apache Portable Runtime
 
  I've found a couple similar cases where people had this problem.  They
resolved it by doing something with their network configuration, but in both
cases the description of their solution was very vague, so I'm not sure how
I could proceed.
 
  -Erik
 
 
 


 --
 Regards

 Gabe Wong
 Private JVM JAVA Hosting Automation
 http://www.ngasi.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: Vmware and Tomcat 5.x 6.x

2007-09-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mitesh,

Mitesh Shah wrote:
 This is first ever deployment of our product on virtual environment and we
 are facing lots of issues of slowness. There are too many variables to
 monitor and looking for some path to follow. 

Is the whole server slow, or do you notice that certain operations are slow?

 I was hoping to get some input as if anyone is aware of such issue of vmware
 and tomcat.

AFAIK, there are no Tomcat-specific vmware issues. However, there could
be some problems with the JVM in general that you might be coming
across. For instance, if you are using a source of randomness that
blocks when used through the virtual environment, that might cause a
problem. Also, if you are using non-native disks (meaning a big file on
the host OS that holds the entire filesystem for the VM), you may
experience some slowdown, there.

I'm not sure what Clarion is... could that be a problem at all?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+DOF9CaO5/Lv0PARAtSKAJ0T6KHaEBu8WC6c9QSnea0QWtj/8QCguIhp
VSqAodugC0GLy8LRk5In52I=
=nMgC
-END PGP SIGNATURE-

-
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: Tomcat 5.5.25 takes 5 minutes to shut down.

2007-09-24 Thread Hermansen, Erik
The solution Gabe pointed to fixed the problem.  I found that my hostname was 
set to an old IP address no longer in use.  When I added an entry to the hosts 
file, the shutdown script finished quickly as expected.

Martin, I decided not to try commenting out the listener, since at that point, 
nothing was broke.  Thanks for the quick replies, guys!

-Erik

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 24, 2000 2:52 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.25 takes 5 minutes to shut down.

Ive seen this too where the main process is stopped but the connections to
the Listener stay alive for a while
netstat -a | grep Port
shows activity until all the connections are quiesced..

Ive see where commenting out the APR listener allows a quicker stop for
tomcat e.g.
!-- Listener className=org.apache.catalina.core.AprLifecycleListener/ --

M--
- Original Message -
From: Gabe Wong [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, September 24, 2007 3:53 PM
Subject: Re: Tomcat 5.5.25 takes 5 minutes to shut down.


 Hi Hermansen,

 Check the solution in the following link:

http://www.ngasi.com/ngasihelp/ngasiuserguide/tomcat_fails_shutdown_complete
htm

 Hermansen, Erik wrote:
  Hello!
 
  I'm running Tomcat 5.5.25 on SLED 10.  I performed the installation of
Tomcat manually, using the apache-tomcat-5.5.25 archive from Apache's
website.  Tomcat will start fine and operate as expected, but shutting down
is unreliable and often takes about 5 minutes to complete.  If I run the
$CATALINA_BASE/bin/shutdown.sh script, it will return immediately without
errors, but checking for the process (ps aux | grep tomcat) shows it is
still loaded for a long amount of time after the script is called.  On a
different server with identical hardware and very similar tomcat
installation, the shutdown script will bring Tomcat down in about 3 seconds.
 
  Reading through catalina.out, I find this error which corresponds to
calling the shutdown.sh script:
 
  SEVERE: Protocol handler pause failed
  java.net.ConnectException: Connection timed out
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
  at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
  at java.net.Socket.connect(Socket.java:461)
  at java.net.Socket.connect(Socket.java:411)
  at java.net.Socket.init(Socket.java:310)
  at java.net.Socket.init(Socket.java:154)
  at
org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:49
  2)
  at
org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:289)
  at org.apache.jk.server.JkMain.pause(JkMain.java:681)
  at
org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:163)
  at
org.apache.catalina.connector.Connector.pause(Connector.java:1032)
  at
org.apache.catalina.core.StandardService.stop(StandardService.java:48
  9)
  at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
  at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
  at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
  Sep 19, 2007 3:11:55 AM org.apache.catalina.core.StandardService stop
  INFO: Stopping service Catalina
  Sep 19, 2007 3:11:56 AM org.apache.coyote.http11.Http11BaseProtocol
destroy
  INFO: Stopping Coyote HTTP/1.1 on http-8080
  Sep 19, 2007 3:11:56 AM org.apache.catalina.core.AprLifecycleListener
lifecycleE
  vent
  INFO: Failed shutdown of Apache Portable Runtime
 
  I've found a couple similar cases where people had this problem.  They
resolved it by doing something with their network configuration, but in both
cases the description of their solution was very vague, so I'm not sure how
I could proceed.
 
  -Erik
 
 
 


 --
 Regards

 Gabe Wong
 Private JVM JAVA Hosting Automation
 http://www.ngasi.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 

RE: Tomcat 5.5.25 takes 5 minutes to shut down.

2007-09-24 Thread Caldarale, Charles R
 From: Hermansen, Erik [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat 5.5.25 takes 5 minutes to shut down.
 
 I decided not to try commenting out the listener, 
 since at that point, nothing was broke.

You must not comment out the APR listenter if you're actually using APR.
If you're not using APR, it won't matter what you do with the listener.

 - 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: Vmware and Tomcat 5.x 6.x

2007-09-24 Thread Mitesh Shah
Thanks Chris for reply. Clarion is SAN, so all are data and OS partitions
are on SAN.

Whole server works fine but our application works using tomcat and I have
installed around 20 instances of tomcats on one virtual machine (2.66GHz and
4GB RAM). On similar line, does JDK takes advantage of two CPU compared to
one CPU?

I can reconfigure Swap file on separate disks than OS disk and see if it
performs better.

Please let me know if above info helps in understanding issue better?

Mitesh Shah
Hosted Services Engineer
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 24, 2007 6:01 PM
To: Tomcat Users List
Subject: Re: Vmware and Tomcat 5.x  6.x

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mitesh,

Mitesh Shah wrote:
 This is first ever deployment of our product on virtual environment and we
 are facing lots of issues of slowness. There are too many variables to
 monitor and looking for some path to follow. 

Is the whole server slow, or do you notice that certain operations are slow?

 I was hoping to get some input as if anyone is aware of such issue of
vmware
 and tomcat.

AFAIK, there are no Tomcat-specific vmware issues. However, there could
be some problems with the JVM in general that you might be coming
across. For instance, if you are using a source of randomness that
blocks when used through the virtual environment, that might cause a
problem. Also, if you are using non-native disks (meaning a big file on
the host OS that holds the entire filesystem for the VM), you may
experience some slowdown, there.

I'm not sure what Clarion is... could that be a problem at all?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+DOF9CaO5/Lv0PARAtSKAJ0T6KHaEBu8WC6c9QSnea0QWtj/8QCguIhp
VSqAodugC0GLy8LRk5In52I=
=nMgC
-END PGP SIGNATURE-

-
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: Vmware and Tomcat 5.x 6.x

2007-09-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mitesh,

Mitesh Shah wrote:
 Thanks Chris for reply. Clarion is SAN, so all are data and OS partitions
 are on SAN.

Okay. That shouldn't be a problem.

 Whole server works fine but our application works using tomcat and I have
 installed around 20 instances of tomcats on one virtual machine (2.66GHz and
 4GB RAM).

OMG that is a /lot/ of Tomcat instances. How many request-handler
threads do you have configured for each?

 On similar line, does JDK takes advantage of two CPU compared to
 one CPU?

You didn't say what JDK version you are using, but unless you have
something that is seriously out of date, the JDK will use as many CPUs
as you have available to the VM.

 I can reconfigure Swap file on separate disks than OS disk and see if it
 performs better.

With 20 JVMs running on a 4GB machine, I'd say that swapping is going to
be a huge problem. Try running a single instance to see how it works
out. If that is reasonably fast, then try adding more instances until it
starts to suck. Then, check your swap file usage and I'll bet you'll see
that at some point, you start to heavily swap. You're not seeing Tomcat
hosing... you're seeing your OS thrashing.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+GgH9CaO5/Lv0PARAuAWAJ98MOnNnZzJay8SwaG8ieSjmCrDAACgrS1S
qVirHsVVczlbKe6GVKpoZ7Y=
=I6VL
-END PGP SIGNATURE-

-
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: Tomcat and webdav in general [Beginner]

2007-09-24 Thread Mark Thomas
Sven Braun wrote:
 Alright I got some more information about the cms structure. One doesn't have
 access to the actual files but to a database (well, I don't). Which is even
 more confusing. 
 So I was told to find a way to represent that data-tree creating a program
 that could look at the db-structure to be used with webdav.
 
 Do you have any idea how or if this can be achieved? Or is it necessary to
 actually mount the root directory and not a db?

 I've installed Slide which works fine but I don't know how to deal with that
 underlying data structure mentioned above.

Caveat: I know next to nothing about slide...

Slide is probably the way to go. I think you will need to implement the
various store interfaces to make your data accessible via Slide. You
might have better luck on the Slide users list although I am not sure
how active that list is.

Mark

-
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: Vmware and Tomcat 5.x 6.x

2007-09-24 Thread Gabe Wong

Mitesh,
The most important thing with regards to the JVM, is available memory. 
Of extra importance in this case is the amount of memory (REAL/PHYSICAL)
allocated to the Virtual Environment (VMWare). That said, you also need 
to determine the Memory Heap usage of each of the JVM instances.
Sluggishness usually indicates a memory shortage. At that point SWAP 
consumption increases. As you would image disk swap would be much
slower than real memory. Besides sluggishness, SWAP usage may increase 
the chance of disk failure because essentially you are using a 100% of
resources.  In short compare the total Memory Heaps of all the JVMS to 
the total memory allocated to the Virtual Environment of the VMWare 
instance.



Mitesh Shah wrote:

Thanks Chris for reply. Clarion is SAN, so all are data and OS partitions
are on SAN.

Whole server works fine but our application works using tomcat and I have
installed around 20 instances of tomcats on one virtual machine (2.66GHz and
4GB RAM). On similar line, does JDK takes advantage of two CPU compared to
one CPU?

I can reconfigure Swap file on separate disks than OS disk and see if it
performs better.

Please let me know if above info helps in understanding issue better?

Mitesh Shah
Hosted Services Engineer
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 24, 2007 6:01 PM

To: Tomcat Users List
Subject: Re: Vmware and Tomcat 5.x  6.x

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mitesh,

Mitesh Shah wrote:
  

This is first ever deployment of our product on virtual environment and we
are facing lots of issues of slowness. There are too many variables to
monitor and looking for some path to follow. 



Is the whole server slow, or do you notice that certain operations are slow?

  

I was hoping to get some input as if anyone is aware of such issue of


vmware
  

and tomcat.



AFAIK, there are no Tomcat-specific vmware issues. However, there could
be some problems with the JVM in general that you might be coming
across. For instance, if you are using a source of randomness that
blocks when used through the virtual environment, that might cause a
problem. Also, if you are using non-native disks (meaning a big file on
the host OS that holds the entire filesystem for the VM), you may
experience some slowdown, there.

I'm not sure what Clarion is... could that be a problem at all?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+DOF9CaO5/Lv0PARAtSKAJ0T6KHaEBu8WC6c9QSnea0QWtj/8QCguIhp
VSqAodugC0GLy8LRk5In52I=
=nMgC
-END PGP SIGNATURE-

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



  



--
Regards

Gabe Wong
Private JVM JAVA Hosting Automation
http://www.ngasi.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: How to control encoding of response.sendRedirect? (Tomcat 5.5.17)

2007-09-24 Thread Mark Thomas
Christopher Schultz wrote:
 Unfortunately, I can't find anywhere in the spec that says which
 encoding to use in URLs for % HEX HEX encoding.

AFAIR there is a W3C recommendation that it should be UTF-8 but it isn't
mandated by any spec.

Mark


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



Tomcat 6 JBoss 4.2.1

2007-09-24 Thread Tony Anecito
Hi All,

Is there any recent (in the last year) Tomcat to JBoss
EJB examples anywhere? I see old examples that mention
using a jndi.properties file and others that indicate
a config.xml and others a server.xml. Very confusing
but there must be more recent examples. I am trying to
use Tomcat 6.0.14 to communicate with EJB's in a JBoss
4.2.1 container.

Thanks for any help.
-Tony


   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz
 

-
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: Uninstall options for tomcat 4.1.31

2007-09-24 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 Where can I find a list of command line flags for the 
 uninstaller (uninst-tomcat4.exe)? 
 
 Our product includes tomcat 4.1.31.  I would like to 
 silently uninstall tomcat 4.1 before upgrading our users 
 to tomcat 5.5.  
 
 When running the tomcat 4.1 uninstaller manually, the UI 
 prompts me to remove the tomcat directory and all files 
 in it.  Is this option also available via a command line 
 switch?  

I don't think so. The uninstall section can be found at the end of
http://svn.apache.org/repos/asf/tomcat/container/branches/tc4.1.x/tomcat.nsi
I don't see any code that would support what you want. NSIS may have
something but I haven't checked the docs.

Mark

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



tomcat5.1 out of memory for swap space not released!

2007-09-24 Thread 颜燕



I am a Chinese and English is not well,but I will try my best to express 
myself.I have HP-UX operation system with JDK1.5 and sybase.But after tomcat5.0 
running for some times ,it would out of memory.The tomcat5.0 process 
continuously allocated swap space but not released it.So when swap space was 
insufficient,tomcat out of memory and shutdown!Below is some 
information:=tomcat
 startup script parameters: JAVA_OPTS=-Xms1001m -Xmx1001m -XX:MaxPermSize=800m 
-Dfile.encoding=GBK=out
 of memory log in cataline.out:2007-08-29 17:38:07.283 (Pagination.java:68)] 
DEBUG - render Id = pagination  Exception java.lang.OutOfMemoryError: requested 
74856 bytes for GrET* in 
/CLO/Components/JAVA_HOTSPOT/Src/src/share/vm/utilities/growableArray.cpp. Out 
of swap space?Possible causes:- not enough swap space left
 , or- kernel parameter MAXDSIZ is very small. Out of memory while reading 
in symbol table of /opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl( 0)  
0xc5c88264 [/opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl]( 1)  
0xc5c241d0 
[/opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl]=Hp
 Unix Server hardware information 
:CPU:1GHz*2;memory:4G;=Please
 give me an idea in this situation! And please help me make tomcat process 
release swap space?yanyan
_
手机也能上 MSN 聊天了,快来试试吧!
http://mobile.msn.com.cn/

Re: tomcat5.1 out of memory for swap space not released!

2007-09-24 Thread Mark Thomas
Tomcat 5.0.x has some memory leaks but as far as I recall they were
mostly related to context reload.

If you are reloading your app, I'd suggst an upgrade to the latest
5.5.x. If you are not reloading, then your app probably has a memory
leak. I'd suggest using a profiler such as YourKit to try and track it down.

Mark

-
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: tomcat5.1 out of memory for swap space not released!

2007-09-24 Thread Mark Thomas
Tomcat 5.0.x has some memory leaks but as far as I recall they were
mostly related to context reload.

If you are reloading your app, I'd suggst an upgrade to the latest
5.5.x. If you are not reloading, then your app probably has a memory
leak. I'd suggest using a profiler such as YourKit to try and track it down.

Mark

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



AW: Tomcat, IIS and Authentication

2007-09-24 Thread Preuss, Jacqueline - ENCOWAY
Hi!

Actually, I want it to work the other way round, i.e. we don't have a java 
application login page because the user is authenticated via the .Net 
application (- via IIS and integrated windows authentication). We integrated 
our java application to that windows (Asp.Net) application. If the user saves 
something on our page f.ex., we call an Asp.Net site for that we need the 
username / password for IIS. But we didn't know how to retrieve those 
information on java side. What we tried was the NTLM filter for Tomcat which 
seems to authenticate, but how can we establish an URLConnection to IIS with 
the right credentials:

|---|   |-| 
|-|
|   Java|   Request|  Java   |   URL Connection   
| Asp.Net | authenticate IIS   
|Application|   |Connector| Problem: How to 
|Connector| 
|---|   |-| get 
credentials?|-| --retrieve infos - 
WebService
  |
|
|   |---|
|- |   Tomcat  |
|---|

It's getting clearer now :-/ ?


 -Ursprüngliche Nachricht-
 Von: Gabe Wong [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 24. September 2007 16:58
 An: Tomcat Users List
 Betreff: Re: Tomcat, IIS and Authentication
 
 Jacqueline,
 Just to follow your question, Are you asking if it is possible to
 create
 a custom Tomcat Realm,
 where the user/password provided from the java application login page
 is
 checked against the windows user authentication system?
 
 Preuss, Jacqueline - ENCOWAY wrote:
  Hi all!
 
 
 
  We have an application (hosted with Tomcat) which has to
 communicate
  with the .NET world, i.e. our web application is integrated in an
  Asp.Net application hosted by an IIS. So, to connect both we have an
  Asp.Net Connector on the one side and a Java Connector on the other
  side. If the user selects something on our application the
 JavaConnector
  is called which creates an URLConnection to a specific Asp.Net site.
 At
  the moment, the URLConnection is established with an empty username
 and
  password because we created a specific IIS user which is always the
 same
  for every request. Now, we want to use the integrated windows
  authentication, i.e. we want to know which user is currently asking.
  That's why we thought on NTLM authentication or something like
 that...
  But we didn't know how to get the credentials in the Java Connector
 to
  establish the connection with Asp.Net. What can we do? Is it
 generally
  possible to use the integrated windows authentication in Java with
 IIS
  and Tomcat? How? Can you give me some tips?
 
 
 
  Regards,
 
  Jacqueline.
 
 
 
 
 
 
 
 
 
 --
 Regards
 
 Gabe Wong
 Private JVM JAVA Hosting Automation
 http://www.ngasi.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]