Re: Tomcat Bug?

2005-01-24 Thread Drew Jorgenson
OK, look inside TOMCAT_INSTALL_DIR/work/Catalina/localhost (or whatever
other virtual host you may be running) delete the cached file in
question or all of them and restart tomcat ;-)

Drew.

On Mon, 2005-01-24 at 20:11, Aris Javier wrote:
> Hello!
>  
> Please Help!
>  
> It seems Tomcat won't refresh the page...
>  
> I have this logout.jsp page.. have configured it so many times...
> deployed it to webapps/elog/web folder but still it's initial logout.jsp
> appeared... 
>  
> restarted tomcat, restarted browser, and even restarted my pc... but to
> no avail.
>  
> im using tomcat 5.0.25 on windows 2000...
>  
> is this tomcat 5.0.25 bug?
>  
> Thanks!
> Aris


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



Apache2.0.52, Tomcat 5.5.4 and jk1.2.8

2005-01-24 Thread David Short
Does anyone have this configuration working, or similar?  If so, would you
mind posting your httpd.conf, workers.properties and anything else you
changed?



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



Re: Deploying a Servlet to Tomcat 5.0

2005-01-24 Thread Antony Paul
You have to add a mapping for the servlet in the WEB-INF/web.xml file.
Look at the examples directory in webapps for sample.

rgds
Antony Paul


On Mon, 24 Jan 2005 22:04:17 -0800 (PST), Harsha perera
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have been trying to deploy a simple servlet to
> Tomcat 5.0. Tomcat is installed on WIndows XP.
> 
> This is what I did:
> 1. Created a directory structure under
>$TOMCAT_HOME\webapps as follows:
>ROOT\WEB-INF\classes
> 
> 2. Moved the class(HelloServlet.class) to the
>above created directory.
> 
> 3. Bounced Tomcat.
> 
> 4. Attempting to access the class as
>http://localhost:8080/servlet/HelloServlet gives
>me the error:
>HTTP Status 404 - /servlet/HelloServlet
> 
> 
> 
> type Status report
> 
> message /servlet/HelloServlet
> 
> description The requested resource
> (/servlet/HelloServlet) is not available.
> 
> Please advise on how I should be deploying this simple
> servlet.
> 
> The servlet is code is given below:
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> 
> /** Simple servlet used to test server.
>  *  
>  *  Taken from Core Servlets and JavaServer Pages 2nd
> Edition
>  *  from Prentice Hall and Sun Microsystems Press,
>  *  http://www.coreservlets.com/.
>  *  © 2003 Marty Hall; may be freely used or
> adapted.
>  */
> 
> public class HelloServlet extends HttpServlet {
>   public void doGet(HttpServletRequest request,
> HttpServletResponse response)
>   throws ServletException, IOException {
> response.setContentType("text/html");
> PrintWriter out = response.getWriter();
> String docType =
>   " +
>   "Transitional//EN\">\n";
> out.println(docType +
> "\n" +
> "Hello\n"
> +
> "\n" +
> "Hello\n" +
> "");
>   }
> }
> 
> Regards
> Harsha
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Multiple hit from one user problem

2005-01-24 Thread Nikola Milutinovic
Dola Woolfe wrote:
Hi,
Since this doesn't appear to threads issue I'm taking
it out into a separate thread.
I'm running TC 5.4.4 on port 80 with no Apache on XP
Pro. A colleague on mine has an Excel spreadsheet
attempts to perform about 2000 very short queries,
most likely in sequence. About half of the way
through, the server stop responding to him. When he
then uses the browser to go to one of the pages served
by the server he gets a "page cannot be displayed".
After about 2 min (we never really timed) things
return to normal.
 

This sounds like resource exhaustion. Either the client is holding HTTP 
connections open (Excel? No, it could not be so ;-) ) or the server is 
not releasing DB connections.

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


Re: Certificate Revocation List

2005-01-24 Thread Bill Barker

"Martin Dubuc" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Does Tomcat support certificate revocation list?
>
> If it does, could someone send me a pointer to a page
> that explains how to configure Tomcat to enable this?
>

Not currently.  It's something that probably could be added to TC 5.5 when 
using a 1.5 JVM.

> Regards,
>
> Martin
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail 




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



Deploying a Servlet to Tomcat 5.0

2005-01-24 Thread Harsha perera
Hi,

I have been trying to deploy a simple servlet to
Tomcat 5.0. Tomcat is installed on WIndows XP.

This is what I did:
1. Created a directory structure under 
   $TOMCAT_HOME\webapps as follows:
   ROOT\WEB-INF\classes

2. Moved the class(HelloServlet.class) to the
   above created directory.

3. Bounced Tomcat.

4. Attempting to access the class as 
   http://localhost:8080/servlet/HelloServlet gives 
   me the error:
   HTTP Status 404 - /servlet/HelloServlet



type Status report

message /servlet/HelloServlet

description The requested resource
(/servlet/HelloServlet) is not available.


Please advise on how I should be deploying this simple
servlet. 

The servlet is code is given below:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/** Simple servlet used to test server.
 *  
 *  Taken from Core Servlets and JavaServer Pages 2nd
Edition
 *  from Prentice Hall and Sun Microsystems Press,
 *  http://www.coreservlets.com/.
 *  © 2003 Marty Hall; may be freely used or
adapted.
 */

public class HelloServlet extends HttpServlet {
  public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String docType =
  "\n";
out.println(docType +
"\n" +
"Hello\n"
+
"\n" +
"Hello\n" +
"");
  }
}



Regards
Harsha

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

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



Re: Tomcat Bug?

2005-01-24 Thread Parsons Technical Services
As far as I know.
Under IE options for the settings in the files section you can set that to 
check for a new page on each visit.

Pressing F5 is suppose to do a new request.
Also I remember some mention about file dates. Make sure date on new file is 
later than on original file.

There have been several threads on this but each had a slightly different 
twist. Check the archives.

If you delete the app does the page still respond or give you an error?
Doug
- Original Message - 
From: "Aris Javier" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, January 25, 2005 12:07 AM
Subject: RE: Tomcat Bug?

I've deleted the cookies, ie history, temp files...
is this the way to empty browser cache?
I've also deleted the whole webapp/elog folder before deployment.
but to no avail.
thanks
aris

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 1:01 PM
To: Tomcat Users List
Subject: Re: Tomcat Bug?
Empty your browser cache.
How are you doing the deploy?
Make sure the directory is being removed before redeploy.
Are other pages updating?
What if you delete the page all together?
Doug
- Original Message -
From: "Aris Javier" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 24, 2005 11:11 PM
Subject: Tomcat Bug?
Hello!
Please Help!
It seems Tomcat won't refresh the page...
I have this logout.jsp page.. have configured it so many times...
deployed it to webapps/elog/web folder but still it's initial logout.jsp
appeared...
restarted tomcat, restarted browser, and even restarted my pc... but to
no avail.
im using tomcat 5.0.25 on windows 2000...
is this tomcat 5.0.25 bug?
Thanks!
Aris

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


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


Re: Meaning of threads

2005-01-24 Thread Sean M. Duncan
What is the impact of having apache httpd allow keep alive requests when
using the AJP connector to tomcat?  Does this have any impact on
tomcat's thread usage?  How well does httpd itself deal with keep alive
pipelines under a heavy user load?

-Sean

On Mon, 2005-01-24 at 16:23 -0600, Filip Hanik - Dev wrote:
> no, think about it a little bit longer, what does a keepalive connection do,
> 
> it hogs one thread per client, not per concurrent user. so now other clients 
> will be stuck waiting cause you have keepalive turned
> on, and a user is sitting idle doing nothing, but yet, taking up server 
> resources
> 
> Filip
> 
> - Original Message -
> From: "Dola Woolfe" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Monday, January 24, 2005 3:50 PM
> Subject: Re: Meaning of threads
> 
> 
> That's counterintuitive, isn't it?
> 
> How come?
> 
> --- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:
> 
> > the number of threads will depend on the size of
> > your machine,
> > but to support many concurrent users, you will want
> > to turn off keep alive connections, as these will
> > have the opposite effect.
> >
> > Filip
> >
> > - Original Message -
> > From: "Dola Woolfe" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List"
> > 
> > Sent: Monday, January 24, 2005 3:29 PM
> > Subject: Re: Meaning of threads
> >
> >
> > Yes, I get the direction this is going in!
> >
> > I assume that the reason for having threads waiting
> > is
> > that they take time to be created? And you don't
> > want
> > to have too many because they take up memory?
> >
> > I can't resist asking a question about optimal
> > values.
> > Since the answer is obviously "it depends" let me
> > put
> > my question this way. If you were running
> > "craigslist"
> > (I assume you've heard of it) what would these
> > values
> > be? How about ebay?
> >
> >
> > --- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:
> >
> > > >maxThreads="150"
> > >
> > > your server can handle a maximum of 150 concurrent
> > > clients
> > >
> > > >minSpareThreads="25"
> > > if your server is idle, it will at least have 25
> > > threads waiting to handle requests
> > >
> > > >maxSpareThreads="75"
> > > if your server is idle, it will have no more than
> > 75
> > > threads waiting to handle requests
> > >
> > > you get the direction this is going in, right?
> > > Filip
> > >
> > > - Original Message -
> > > From: "Dola Woolfe" <[EMAIL PROTECTED]>
> > > To: "Tom Cat" 
> > > Sent: Monday, January 24, 2005 2:51 PM
> > > Subject: Meaning of threads
> > >
> > >
> > > Hi,
> > >
> > > Where can I read about the meaning of the
> > following
> > > options: maxThreads="150" minSpareThreads="25"
> > > maxSpareThreads="75"
> > >
> > > My server tends to lock out a user who bombards it
> > > with requests so I'm wondering whether those
> > options
> > > have anything to do with it before I post the
> > > problem
> > > here.
> > >
> > >
> > > Aaron Fude
> > >
> > >
> > >
> > > __
> > > Do you Yahoo!?
> > > All your favorites on one personal page - Try My
> > > Yahoo!
> > > http://my.yahoo.com
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Mail - You care about security. So do we.
> > http://promotions.yahoo.com/new_mail
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Re: Does JDBCRealm close connections?

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: Does JDBCRealm close connections?

2005-01-24 Thread Parsons Technical Services
In a quick scan of the source (4.1.30). The realm does not use pools. It 
opens the connection upon authentication. Then closes it right after. All in 
the same method.

There is a note about adding pooling, and this may be one reason why.
If you have a limit on the number of connection your dbengine can support 
then this may be the cause.

So for the last question, yes, it would keep opening the needed connections 
for logins. But it closes them promptly after retrieval of the data.

Doug
- Original Message - 
From: "Stephen Charles Huey" <[EMAIL PROTECTED]>
To: "Tomcat User" 
Sent: Monday, January 24, 2005 9:55 PM
Subject: Does JDBCRealm close connections?


Hey there--just wondering if JDBCRealm with Tomcat 4 ever closes
connections it opens...I'm assuming it can open up more than one
connection to the database if traffic gets heavy (because we think we're
seeing that, though it's hard to tell for sure).  If so, when does it go
about closing those connections?  I was reading about it here:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html#JDBCRealm
We're trying to debug a nasty problem, and we're wondering if a couple
hundred folks try to log in at the same time and there are only about
that many database connections that can be pooled (and a bunch of the db
connections are already in use by the web app), then does JDBCRealm just
keep opening up more and more connections to the database?
Thanks,
Stephen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: RE: Tomcat Bug?

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: Tomcat Bug?

2005-01-24 Thread Aris Javier
I've deleted the cookies, ie history, temp files...
is this the way to empty browser cache?

I've also deleted the whole webapp/elog folder before deployment.
but to no avail.

thanks
aris

 

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]

Sent: Tuesday, January 25, 2005 1:01 PM
To: Tomcat Users List
Subject: Re: Tomcat Bug?

Empty your browser cache. 

How are you doing the deploy?
Make sure the directory is being removed before redeploy. 
Are other pages updating?
What if you delete the page all together?

Doug


- Original Message -
From: "Aris Javier" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 24, 2005 11:11 PM
Subject: Tomcat Bug?


Hello!
 
Please Help!
 
It seems Tomcat won't refresh the page...
 
I have this logout.jsp page.. have configured it so many times...
deployed it to webapps/elog/web folder but still it's initial logout.jsp
appeared... 
 
restarted tomcat, restarted browser, and even restarted my pc... but to
no avail.
 
im using tomcat 5.0.25 on windows 2000...
 
is this tomcat 5.0.25 bug?
 
Thanks!
Aris



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


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



Re: Re: Tomcat does not evaluate jspf extension files

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: Tomcat does not evaluate jspf extension files

2005-01-24 Thread Paul Gregoire
Ok, just so its clear...
   
   jsp
   *.jsfp
   
;)
Larry Meadors wrote:
See the problem below?
On Mon, 24 Jan 2005 17:01:38 -0800 (PST), Norris Shelton wrote:
 

Everytime I try to use a .jsfp extension for a file, tomcat does
not evaluate it.  Comments come out, code is displayed, etc.
   
   jsp
   *.jspx
   
   

One of these things is not like the other one...
Come on! Sing along! You know the words!
Larry
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


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


Re: Re: Tomcat Bug?

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: Tomcat Bug?

2005-01-24 Thread Parsons Technical Services
Empty your browser cache. 

How are you doing the deploy?
Make sure the directory is being removed before redeploy. 
Are other pages updating?
What if you delete the page all together?

Doug
- Original Message - 
From: "Aris Javier" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 24, 2005 11:11 PM
Subject: Tomcat Bug?

Hello!
Please Help!
It seems Tomcat won't refresh the page...
I have this logout.jsp page.. have configured it so many times...
deployed it to webapps/elog/web folder but still it's initial logout.jsp
appeared... 

restarted tomcat, restarted browser, and even restarted my pc... but to
no avail.
im using tomcat 5.0.25 on windows 2000...
is this tomcat 5.0.25 bug?
Thanks!
Aris

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


Re: Tomcat does not evaluate jspf extension files

2005-01-24 Thread Larry Meadors
See the problem below?

On Mon, 24 Jan 2005 17:01:38 -0800 (PST), Norris Shelton wrote:
> Everytime I try to use a .jsfp extension for a file, tomcat does
> not evaluate it.  Comments come out, code is displayed, etc.
> 
> jsp
> *.jspx
> 

One of these things is not like the other one...

Come on! Sing along! You know the words!

Larry

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



Re: Tomcat Bug?

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Tomcat Bug?

2005-01-24 Thread Aris Javier
Hello!
 
Please Help!
 
It seems Tomcat won't refresh the page...
 
I have this logout.jsp page.. have configured it so many times...
deployed it to webapps/elog/web folder but still it's initial logout.jsp
appeared... 
 
restarted tomcat, restarted browser, and even restarted my pc... but to
no avail.
 
im using tomcat 5.0.25 on windows 2000...
 
is this tomcat 5.0.25 bug?
 
Thanks!
Aris


Re: Does JDBCRealm close connections?

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Does JDBCRealm close connections?

2005-01-24 Thread Stephen Charles Huey
Hey there--just wondering if JDBCRealm with Tomcat 4 ever closes
connections it opens...I'm assuming it can open up more than one
connection to the database if traffic gets heavy (because we think we're
seeing that, though it's hard to tell for sure).  If so, when does it go
about closing those connections?  I was reading about it here:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html#JDBCRealm

We're trying to debug a nasty problem, and we're wondering if a couple
hundred folks try to log in at the same time and there are only about
that many database connections that can be pooled (and a bunch of the db
connections are already in use by the web app), then does JDBCRealm just
keep opening up more and more connections to the database?  

Thanks,
Stephen

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



Re: Tomcat does not evaluate jspf extension files

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Tomcat does not evaluate jspf extension files

2005-01-24 Thread Norris Shelton
Everytime I try to use a .jsfp extension for a file, tomcat does
not evaluate it.  Comments come out, code is displayed, etc.

I also ran into this thread:
http://www.javakb.com/Uwe/Forum.aspx/java-programmer/13915/Tomcat-5-EL-Expressions-in-jsp-inlcude

He happened to be using the .jspf extension also.

I tracked it down to this in the Tomcat web.xml:

jspf
text/plain



Is the problem because .jspf is not mapped to the jsp servlet
like .jsp and .jspx are?


jsp
*.jsp



jsp
*.jspx



=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Re: RE: Sending email with zip file attach problem

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: Sending email with zip file attach problem

2005-01-24 Thread Daxin Zuo
Thanks for the reply. So I have to output the file.
If, in jave, there is no way to upload the file and attach the file
directly, it seems strange.


-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, January 24, 2005 11:10 AM
To: Tomcat Users List
Subject: Re: Sending email with zip file attach problem


It is an example of sending bulk mails with
attachment.
You have to write the uploaded file into a temporary
directory.

See the attachments.  I hope the example could be
useful.

-Caroline

--- Daxin Zuo <[EMAIL PROTECTED]> wrote:

>
> Hi,
>Please help. Any sugestion is welcome. In my web
> page, users send email
> with attachment, so upload is related. I can provide
> the file in either a
> byte[] array, or in an inputstream. I try to send
> the attachement with
> JavaMail(I know there is email api in Tomcat-Common.
> But I have no a good
> example).
>
> --- my code in a function in a servlet  ---
> DiskFileUpload upload = new DiskFileUpload();
> List items = upload.parseRequest(request);
> Iterator itr = items.iterator();
> item = (FileItem) itr.next();
> .
> //- now it is a attachement. 
> InputStream istrm= item.getInputStream();
> ... 
> MimeBodyPart messageBodyPart = new MimeBodyPart();
> messageBodyPart.setDisposition(Part.INLINE);
> messageBodyPart.setContent(strBodyText,
> "text/plain");
> MimeMultipart multipart = new MimeMultipart();
> multipart.addBodyPart(messageBodyPart);
> messageBodyPart = new MimeBodyPart(istrm);
>
messageBodyPart.setDisposition(messageBodyPart.ATTACHMENT);
> messageBodyPart.addHeader("Content-Type",strMime);
> //strMime is correct
> messageBodyPart.setFileName(fileName);
> multipart.addBodyPart(messageBodyPart);
> 
>
>
> NO metter what file it is, the attachement received
> is ATT00211.txt.
> I the file is a text file, the contents are correct.
> if the file is a small zip file, it adds the lines
> as following in attached
> file:
> Content-Type: application/zip; name=idmeta.zip
> Content-Disposition: attachment; filename=idmeta.zip
> Content-Transfer-Encoding: 7bit
>
> What's wrong? Please forward instruction.
>
>
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>




__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail


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



Re: Multiple hit from one user problem

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Multiple hit from one user problem

2005-01-24 Thread Dola Woolfe
Hi,

Since this doesn't appear to threads issue I'm taking
it out into a separate thread.

I'm running TC 5.4.4 on port 80 with no Apache on XP
Pro. A colleague on mine has an Excel spreadsheet
attempts to perform about 2000 very short queries,
most likely in sequence. About half of the way
through, the server stop responding to him. When he
then uses the browser to go to one of the pages served
by the server he gets a "page cannot be displayed".
After about 2 min (we never really timed) things
return to normal.

Any suggestions?

Many thanks in advance,

Aaron Fude



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Re: Re: AW: Meaning of threads

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: AW: Meaning of threads

2005-01-24 Thread Dola Woolfe

"In my experience however, this does NOT work well in
a high traffic situation."

I'm sure you're not saying that "Tomcat does NOT work
well in a high traffic situation". You are just saying
that in a high traffic situation one should turn off
keep alives.

Am I guessing correctly that I have only a few
persistent visitors (such as an office web application
that is a front end to a database) then turning keep
alives on will cause the data to be returned to the
user more promptly.

But if, say, you are running an eBay type site, keep
alives should be turned off.  Any single user will
suffer a little but the traffic will be handled
better.


Aaron Fude




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Re: Tomcat Error: java.lang.NoClassDefFoundError:

2005-01-24 Thread Kathie Manson
Hi QM,

Thanks for your response.  In between Tomcat working and breaking, I
had installed Cactus.  I think that actually changed something,
somewhere on the classpath which wasn't actually in tomcat's directory
structure.  When I reinstalled tomcat, I did completely remove it,
then reinstall.

I've managed to fix the problem now, by removing my Java SDK and
reinstalling that.  Not the world's greatest solution, but it worked.
And, yes, that was the full stack trace from catalina.out.  The "root
cause" was the java.lang.NoClassDefFoundError.

Thanks for your help,
Kathie.



> 
> -- Forwarded message --
> From: QM <[EMAIL PROTECTED]>
> To: Tomcat Users List 
> Date: Thu, 20 Jan 2005 05:55:09 -0600
> Subject: Re: Tomcat Error: java.lang.NoClassDefFoundError: 
> org/apache/naming/JndiPermission
> On Thu, Jan 20, 2005 at 10:01:18AM +1100, Kathie Manson wrote:
> : Up until yesterday, I was happily running tomcat 4.1.30.  Then, for
> : some reason, I started getting this error.  I'm not sure why.  It's
> : likely that I somehow changed the class path, or installed something
> : else that affected some other java classes, but I just don't know how
> : to fix it.
> 
> At the risk of sounding flippant, try to think of what has changed
> recently.  Can you check your backups and compare that list of JAR files
> (or even /classes dirs) to what's installed on the server?
> 
> -and when you say you "reinstalled" Tomcat, how dod you do it?  Did you
> remove the old version, then replace it with the new version? or did you
> overwrite the old with the new?  In the latter case, any rogue (extra) JARs
> that are lying around won't be affected.
> 
> Finally, are you certain that's the full stack trace?  Those usually
> come with a "Root Cause" section that can be quite helpful.
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
>

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



Re: AW: Meaning of threads

2005-01-24 Thread Andrew Miehs
On Jan 24, 2005, at 11:09 PM, Steffen Heil wrote:
Hi
the number of threads will depend on the size of your
machine, but to support many concurrent users, you will want
to turn off keep alive connections, as these will have the
opposite effect.
Wouldn't it make more sense to enable keep alive connections and 
increase
the thread count - if memory suffices?

Unfortunately not. IMHO threads are over used and over rated.
Have a look at the reasons THTTPD and Zeus webserver were created.
I was told that the 'Java Servlet Spec' (I think this was the one) 
requires
one thread per connection. I can understand the reasoning behind this,
as it makes the implementation much easier.

In my experience however, this does NOT work well in a high traffic 
situation.
It makes NO sense for a machine to need to deal with 1000+ threads. 
(Unless
of course you have an E15000 in the basement with 1000 processors). I 
had
major problems with Debian Woody as the supplied Glib C as I was unable
to get java to start more than 250 threads. Sarge was better in that it 
supported
the new linux threading library out of the box. I do not have any 
experience with
Solaris or Windows when dealing with that many threads.

You need to disable keep-alives, becuase if you don't you end up 
wasting a lot
of threads that just sit waiting for the next request on that 
connection - meaning
even more threads just hanging around.

The scary thing is, imagine something hangs on the backend for 30 
seconds, and
then all your 1000 threads start trying to do something at once You 
will end up
with a load of 1000 and ALL your requests will take a long time to 
return.

It may be interesting to replace the http connector for tomcat with one 
that uses
"select" and uses 'threads' as a type of worker pool. This way, you can 
deal with
all the connections in the select loop (incl. keep-alive) and still 
have the advantage
of not needing to remember state due to the worker threads to the back 
end...

My 2c
Andrew

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


Re: Meaning of threads

2005-01-24 Thread Filip Hanik - Dev
no, think about it a little bit longer, what does a keepalive connection do,

it hogs one thread per client, not per concurrent user. so now other clients 
will be stuck waiting cause you have keepalive turned
on, and a user is sitting idle doing nothing, but yet, taking up server 
resources

Filip

- Original Message -
From: "Dola Woolfe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 24, 2005 3:50 PM
Subject: Re: Meaning of threads


That's counterintuitive, isn't it?

How come?

--- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:

> the number of threads will depend on the size of
> your machine,
> but to support many concurrent users, you will want
> to turn off keep alive connections, as these will
> have the opposite effect.
>
> Filip
>
> - Original Message -
> From: "Dola Woolfe" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> 
> Sent: Monday, January 24, 2005 3:29 PM
> Subject: Re: Meaning of threads
>
>
> Yes, I get the direction this is going in!
>
> I assume that the reason for having threads waiting
> is
> that they take time to be created? And you don't
> want
> to have too many because they take up memory?
>
> I can't resist asking a question about optimal
> values.
> Since the answer is obviously "it depends" let me
> put
> my question this way. If you were running
> "craigslist"
> (I assume you've heard of it) what would these
> values
> be? How about ebay?
>
>
> --- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:
>
> > >maxThreads="150"
> >
> > your server can handle a maximum of 150 concurrent
> > clients
> >
> > >minSpareThreads="25"
> > if your server is idle, it will at least have 25
> > threads waiting to handle requests
> >
> > >maxSpareThreads="75"
> > if your server is idle, it will have no more than
> 75
> > threads waiting to handle requests
> >
> > you get the direction this is going in, right?
> > Filip
> >
> > - Original Message -
> > From: "Dola Woolfe" <[EMAIL PROTECTED]>
> > To: "Tom Cat" 
> > Sent: Monday, January 24, 2005 2:51 PM
> > Subject: Meaning of threads
> >
> >
> > Hi,
> >
> > Where can I read about the meaning of the
> following
> > options: maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> >
> > My server tends to lock out a user who bombards it
> > with requests so I'm wondering whether those
> options
> > have anything to do with it before I post the
> > problem
> > here.
> >
> >
> > Aaron Fude
> >
> >
> >
> > __
> > Do you Yahoo!?
> > All your favorites on one personal page - Try My
> > Yahoo!
> > http://my.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>




__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

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


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



Certificate Revocation List

2005-01-24 Thread Martin Dubuc
Does Tomcat support certificate revocation list?

If it does, could someone send me a pointer to a page
that explains how to configure Tomcat to enable this?

Regards,

Martin



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Re: Meaning of threads

2005-01-24 Thread Andrew Miehs
I would also consider turning of keepalive. Unfortunately tomcat (and 
apache)
both setup one thread per connection. You may be able to use squid as a
reverse proxy if you are having load/ number of connection/ thread 
problems
depending on your application

Andrew
On Jan 24, 2005, at 10:11 PM, Filip Hanik - Dev wrote:
maxThreads="150"
your server can handle a maximum of 150 concurrent clients
minSpareThreads="25"
if your server is idle, it will at least have 25 threads waiting to 
handle requests

maxSpareThreads="75"
if your server is idle, it will have no more than 75 threads waiting 
to handle requests

you get the direction this is going in, right?
Filip

My server tends to lock out a user who bombards it
with requests so I'm wondering whether those options
have anything to do with it before I post the problem
here.


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


AW: Meaning of threads

2005-01-24 Thread Steffen Heil
Hi

> the number of threads will depend on the size of your 
> machine, but to support many concurrent users, you will want 
> to turn off keep alive connections, as these will have the 
> opposite effect.

Wouldn't it make more sense to enable keep alive connections and increase
the thread count - if memory suffices?

Even if not, the keep-alive timeout should be decreased instead of disabled
all together.

Additionally I'd like to see tomcat to be able to drop keep-alive connection
exactly then, when all threads are busy and a new connection is to be
etablished.
That would give us the benefit of keep alive connections - faster data
delivery for users - as well as optimal thread usage even on small thread
pools.

What is your opinion?

Regards,
  Steffen


smime.p7s
Description: S/MIME cryptographic signature


Re: Meaning of threads

2005-01-24 Thread Dola Woolfe
That's counterintuitive, isn't it?

How come?

--- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:

> the number of threads will depend on the size of
> your machine,
> but to support many concurrent users, you will want
> to turn off keep alive connections, as these will
> have the opposite effect.
> 
> Filip
> 
> - Original Message - 
> From: "Dola Woolfe" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> 
> Sent: Monday, January 24, 2005 3:29 PM
> Subject: Re: Meaning of threads
> 
> 
> Yes, I get the direction this is going in!
> 
> I assume that the reason for having threads waiting
> is
> that they take time to be created? And you don't
> want
> to have too many because they take up memory?
> 
> I can't resist asking a question about optimal
> values.
> Since the answer is obviously "it depends" let me
> put
> my question this way. If you were running
> "craigslist"
> (I assume you've heard of it) what would these
> values
> be? How about ebay?
> 
> 
> --- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:
> 
> > >maxThreads="150"
> > 
> > your server can handle a maximum of 150 concurrent
> > clients
> > 
> > >minSpareThreads="25"
> > if your server is idle, it will at least have 25
> > threads waiting to handle requests
> > 
> > >maxSpareThreads="75"
> > if your server is idle, it will have no more than
> 75
> > threads waiting to handle requests
> > 
> > you get the direction this is going in, right?
> > Filip
> > 
> > - Original Message - 
> > From: "Dola Woolfe" <[EMAIL PROTECTED]>
> > To: "Tom Cat" 
> > Sent: Monday, January 24, 2005 2:51 PM
> > Subject: Meaning of threads
> > 
> > 
> > Hi,
> > 
> > Where can I read about the meaning of the
> following
> > options: maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> > 
> > My server tends to lock out a user who bombards it
> > with requests so I'm wondering whether those
> options
> > have anything to do with it before I post the
> > problem
> > here.
> > 
> > 
> > Aaron Fude
> > 
> > 
> > 
> > __ 
> > Do you Yahoo!? 
> > All your favorites on one personal page - Try My
> > Yahoo!
> > http://my.yahoo.com 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
> 
> 
> __ 
> Do you Yahoo!? 
> Yahoo! Mail - You care about security. So do we. 
> http://promotions.yahoo.com/new_mail
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Re: Meaning of threads

2005-01-24 Thread Filip Hanik - Dev
the number of threads will depend on the size of your machine,
but to support many concurrent users, you will want to turn off keep alive 
connections, as these will have the opposite effect.

Filip

- Original Message - 
From: "Dola Woolfe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 24, 2005 3:29 PM
Subject: Re: Meaning of threads


Yes, I get the direction this is going in!

I assume that the reason for having threads waiting is
that they take time to be created? And you don't want
to have too many because they take up memory?

I can't resist asking a question about optimal values.
Since the answer is obviously "it depends" let me put
my question this way. If you were running "craigslist"
(I assume you've heard of it) what would these values
be? How about ebay?


--- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:

> >maxThreads="150"
> 
> your server can handle a maximum of 150 concurrent
> clients
> 
> >minSpareThreads="25"
> if your server is idle, it will at least have 25
> threads waiting to handle requests
> 
> >maxSpareThreads="75"
> if your server is idle, it will have no more than 75
> threads waiting to handle requests
> 
> you get the direction this is going in, right?
> Filip
> 
> - Original Message - 
> From: "Dola Woolfe" <[EMAIL PROTECTED]>
> To: "Tom Cat" 
> Sent: Monday, January 24, 2005 2:51 PM
> Subject: Meaning of threads
> 
> 
> Hi,
> 
> Where can I read about the meaning of the following
> options: maxThreads="150" minSpareThreads="25"
> maxSpareThreads="75"
> 
> My server tends to lock out a user who bombards it
> with requests so I'm wondering whether those options
> have anything to do with it before I post the
> problem
> here.
> 
> 
> Aaron Fude
> 
> 
> 
> __ 
> Do you Yahoo!? 
> All your favorites on one personal page - Try My
> Yahoo!
> http://my.yahoo.com 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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

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



Re: Virtual domains

2005-01-24 Thread Dola Woolfe
> The FM, particularly the Server Configuration 
> Reference, is your friend :-)


Wrong! Guys like you, who point me to the FM, are my
friends. Thanks for the response.

Aaron




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Re: Meaning of threads

2005-01-24 Thread Dola Woolfe
Yes, I get the direction this is going in!

I assume that the reason for having threads waiting is
that they take time to be created? And you don't want
to have too many because they take up memory?

I can't resist asking a question about optimal values.
Since the answer is obviously "it depends" let me put
my question this way. If you were running "craigslist"
(I assume you've heard of it) what would these values
be? How about ebay?


--- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:

> >maxThreads="150"
> 
> your server can handle a maximum of 150 concurrent
> clients
> 
> >minSpareThreads="25"
> if your server is idle, it will at least have 25
> threads waiting to handle requests
> 
> >maxSpareThreads="75"
> if your server is idle, it will have no more than 75
> threads waiting to handle requests
> 
> you get the direction this is going in, right?
> Filip
> 
> - Original Message - 
> From: "Dola Woolfe" <[EMAIL PROTECTED]>
> To: "Tom Cat" 
> Sent: Monday, January 24, 2005 2:51 PM
> Subject: Meaning of threads
> 
> 
> Hi,
> 
> Where can I read about the meaning of the following
> options: maxThreads="150" minSpareThreads="25"
> maxSpareThreads="75"
> 
> My server tends to lock out a user who bombards it
> with requests so I'm wondering whether those options
> have anything to do with it before I post the
> problem
> here.
> 
> 
> Aaron Fude
> 
> 
> 
> __ 
> Do you Yahoo!? 
> All your favorites on one personal page - Try My
> Yahoo!
> http://my.yahoo.com 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



Re: Emergency: make Tomcat forward

2005-01-24 Thread Graham Bleach
On Mon, Jan 24, 2005 at 12:15:05PM -0600, Stephen Charles Huey wrote:
> I have Tomcat 4.1.27 on a Linux box at a particular public IP address,
> and I want to make it forward ALL requests to a Tomcat on a Windows box
> at another public IP address.  Over the weekend, we changed the DNS to
> the Linux box, but now we need to roll back to the Windows box, and we
> already changed the DNS through our ISP, and a lot of folks are hitting
> the Windows box, but some people are still hitting the Linux one.  So,
> we want to turn on the Tomcat on the Linux box and somehow send all
> those folks to the Windows one.  
> 
> Is there any way to do this?  

This is completely offtopic.

Some ideas:

- If you only have one virtual host on the Windows box, then start a
webserver on the Linux box and set it to redirect to the IP address of
the windows machine.

- Start a proxy on the Linux box and have it hand all requests to the
Windows box.

- Add some NAT rules to the linux box's netfliter rules to send all
connections (depends on root access and relevant kernel modules being
installed)

# very much untested and to be used at your own risk!
cat /proc/sys/net/ipv4/ip_forward   # check what it's set to now
echo 1 >/proc/sys/net/ipv4/ip_forward
iptables -I PREROUTING -t nat -p tcp --dport 80 -d  -j DNAT \
--to-destination 

To revert back to previous state, write the previous value of
/proc/sys/net/ipv4/ip_forward back to it and then replace the '-I' in
the iptables command with a '-D'.

G
-- 
The average girl would rather have beauty than brains because she knows
that the average man can see much better than he can think.
-- Ladies' Home Journal

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



bizarre authentication problem

2005-01-24 Thread Andy Kriger
I have an Tomcat server on an internal network configured to require
basic authentication. This works fine when I use IE or Java code to
access a site, but when I try to access the site using Firefox, the
user/password is never accepted. I have packet sniffed the GET calls
from both IE and Firefox and the Authorization header is the same for
both. I can access the Tomcat Manager using basic auth and external
sites with auth so it's not entirely broken. Tomcat has
maxKeepAliveRequests set to 1 (to deal with a .NET SOAP interop
problem) - that's the only oddball config in Tomcat.

I realize this is more likely a Firefox problem than a Tomcat one, but
I'm wondering if anyone has seen behavior like this.

This is the diff between the IE HTTP headers (<) and the Firefox HTTP
headers (>)...
< Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*
< Accept-Language: en-us
< Accept-Encoding: gzip, deflate
< User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
Feedreader; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
7c3,9
< Connection: Keep-Alive
---
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) 
> Gecko/20041107 Firefox/1.0
> Accept: 
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive

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



Re: Meaning of threads

2005-01-24 Thread Filip Hanik - Dev
>maxThreads="150"

your server can handle a maximum of 150 concurrent clients

>minSpareThreads="25"
if your server is idle, it will at least have 25 threads waiting to handle 
requests

>maxSpareThreads="75"
if your server is idle, it will have no more than 75 threads waiting to handle 
requests

you get the direction this is going in, right?
Filip

- Original Message - 
From: "Dola Woolfe" <[EMAIL PROTECTED]>
To: "Tom Cat" 
Sent: Monday, January 24, 2005 2:51 PM
Subject: Meaning of threads


Hi,

Where can I read about the meaning of the following
options: maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"

My server tends to lock out a user who bombards it
with requests so I'm wondering whether those options
have anything to do with it before I post the problem
here.


Aaron Fude



__ 
Do you Yahoo!? 
All your favorites on one personal page - Try My Yahoo!
http://my.yahoo.com 

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

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



"Error allocating a servlet instance" caused by ClassCircularityError on java.util.Date with Tomcat 5.0.28

2005-01-24 Thread Ian Stevens
I have been trying to get our servlet working with Tomcat5.0, without much
success.  The servlet works flawlessly in Tomcat4.0 and Tomcat4.1, although
dropping the same WAR file in Tomcat5.0 on Windows with JDK1.4.2 (on two
seperate machines, even) produces the following stacktrace:

StandardWrapperValve[Phantom]: Allocate exception for servlet Phantom
javax.servlet.ServletException: Error allocating a servlet instance
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:691)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:144)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534) 
- Root Cause -
java.lang.ClassCircularityError: java/util/Date 
at com.phantom.common.util.logging.SimpleLogFormatter.format(Unknown
Source)
at java.util.logging.StreamHandler.publish(StreamHandler.java:178) 
at java.util.logging.FileHandler.publish(FileHandler.java:543)
at java.util.logging.Logger.log(Logger.java:424) 
at java.util.logging.Logger.doLog(Logger.java:446)
at java.util.logging.Logger.logp(Logger.java:562) 
at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:91)
at
org.apache.commons.logging.impl.Jdk14Logger.debug(Jdk14Logger.java:103)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1223)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1189)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) 
at com.phantom.common.util.logging.SimpleLogFormatter.format(Unknown
Source)
at java.util.logging.StreamHandler.publish(StreamHandler.java:178) 
at java.util.logging.FileHandler.publish(FileHandler.java:543)
at java.util.logging.Logger.log(Logger.java:424) 
at java.util.logging.Logger.doLog(Logger.java:446)
at java.util.logging.Logger.logp(Logger.java:562) 
at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:91)
at
org.apache.commons.logging.impl.Jdk14Logger.debug(Jdk14Logger.java:103)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:685)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:144)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeli

Re: Virtual domains

2005-01-24 Thread Hassan Schroeder
Dola Woolfe wrote:
But does Tomcat support virtual domains?
The FM, particularly the Server Configuration Reference, is your
friend :-)
 
:: which would lead you to the  element...
 
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Meaning of threads

2005-01-24 Thread Dola Woolfe
Hi,

Where can I read about the meaning of the following
options: maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"

My server tends to lock out a user who bombards it
with requests so I'm wondering whether those options
have anything to do with it before I post the problem
here.


Aaron Fude



__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



Re: Virtual domains

2005-01-24 Thread Dakota Jack
Yes.  Check the documentation.


On Mon, 24 Jan 2005 12:40:19 -0800 (PST), Dola Woolfe
<[EMAIL PROTECTED]> wrote:
> Recently I asked whether Tomcat can be used w/o
> Apache, and the answers that I received convinced me
> that for my project using Tomcat by itself is the
> right thing to do.
> 
> But does Tomcat support virtual domains?
> 
> Aaron Fude
> 
> __
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Virtual domains

2005-01-24 Thread Dola Woolfe
Recently I asked whether Tomcat can be used w/o
Apache, and the answers that I received convinced me
that for my project using Tomcat by itself is the
right thing to do.


But does Tomcat support virtual domains?


Aaron Fude




__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



Re: precompilation and JSTL

2005-01-24 Thread Marcus Beyer
Tim Funk schrieb:
Is your web.xml using the 2.4 declaration?
Yes it is.
The problem has to do with precompilation, because it works if I deploy 
the JSPs instead of the servlets.

Example: 
The precompiled Java code looks like this:
_jspx_th_c_out_1.setValue(new String("1 + 2 = ${1 + 2}"));
Whereas the Java code compiled after deployment looks like this:
_jspx_th_c_out_1.setValue((java.lang.Object) 
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("1 + 2 = 
${1 + 2}", java.lang.Object.class, (PageContext)_jspx_page_context, 
null, false));

Why is it different??
--
Grüße, Marcus

"Whatever you do will be insignificant,
 but it is very important that you do it." -- Gandhi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Sending email with zip file attach problem

2005-01-24 Thread Caroline Jen
It is an example of sending bulk mails with
attachment.
You have to write the uploaded file into a temporary
directory.

See the attachments.  I hope the example could be
useful.

-Caroline

--- Daxin Zuo <[EMAIL PROTECTED]> wrote:

> 
> Hi,
>Please help. Any sugestion is welcome. In my web
> page, users send email
> with attachment, so upload is related. I can provide
> the file in either a
> byte[] array, or in an inputstream. I try to send
> the attachement with
> JavaMail(I know there is email api in Tomcat-Common.
> But I have no a good
> example).
> 
> --- my code in a function in a servlet  ---
> DiskFileUpload upload = new DiskFileUpload();
> List items = upload.parseRequest(request);
> Iterator itr = items.iterator();
> item = (FileItem) itr.next();
> .
> //- now it is a attachement. 
> InputStream istrm= item.getInputStream();
> ... 
> MimeBodyPart messageBodyPart = new MimeBodyPart();
> messageBodyPart.setDisposition(Part.INLINE);
> messageBodyPart.setContent(strBodyText,
> "text/plain");
> MimeMultipart multipart = new MimeMultipart();
> multipart.addBodyPart(messageBodyPart);
> messageBodyPart = new MimeBodyPart(istrm);
>
messageBodyPart.setDisposition(messageBodyPart.ATTACHMENT);
> messageBodyPart.addHeader("Content-Type",strMime);
> //strMime is correct
> messageBodyPart.setFileName(fileName);
> multipart.addBodyPart(messageBodyPart);
> 
> 
> 
> NO metter what file it is, the attachement received
> is ATT00211.txt.
> I the file is a text file, the contents are correct.
> if the file is a small zip file, it adds the lines
> as following in attached
> file:
> Content-Type: application/zip; name=idmeta.zip
> Content-Disposition: attachment; filename=idmeta.zip
> Content-Transfer-Encoding: 7bit
> 
> What's wrong? Please forward instruction.
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mailpackage org.dhsinfo.message;

// import the JavaMail packages
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;

// import misc classes that we need
import java.util.Properties;
import java.util.Collection;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.DynaActionForm;
import org.apache.struts.upload.FormFile;

public final class SendBatchMails extends Action
{
   private final String PROPFILE = "resources/smtpServer.properties";
   private Properties smtpProp = null;

   public SendBatchMails()
   {
  try
  {
 smtpProp = new Properties();
 smtpProp.load ( getClass().getClassLoader().getResourceAsStream( 
PROPFILE ) );
  }
  catch( IOException oEx )
  {
 System.out.println("Unable to load the Properties " + PROPFILE + oEx );
  }
}

public ActionForward execute( ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response )
throws java.lang.Exception
{
   SelectRecipientsForm srf = ( SelectRecipientsForm )form;

   // get the message parameters from the HTML page
   String from = srf.getSender();
   /* if ( from == null ) from = mailOption.defaultEmailFrom; */
   String[] to = srf.getSelectedEmailAddresses();
   String subject = srf.getMessageTopic();
   String text = srf.getMessageBody();
   FormFile file = srf.getTheFile();
   String fileName = file.getFileName();

   Address[] toAddress = new Address[ to.length ];

   for ( int i=0; i < to.length; i++ )
   {
  toAddress[i] = new InternetAddress( to[i] );
   }

   CreateTemporaryFile ctf = new CreateTemporaryFile();
   String filePath = ctf.writeToFile( file, fileName );
   //destroy the temporary file created
   file.destroy();

   // set the SMTP host property value
   String smtpServer = smtpProp.getProperty( "smtpServer" );
   Properties props = System.getProperties();
   props.put( "mail.smtp.host", smtpServer );

   Transport trans = null;

   PrintWriter out = response.getWriter();
   response.setContentType( "text/html" );

   try
   {
   // create a JavaMail session
   Session session = Session.getDefaultInstance( props, null

Re: precompilation and JSTL

2005-01-24 Thread David Smith
Just a thought: 

Last I knew using the j2ee jar w/ Tomcat == EVIL.  You can either use 
the j2ee distribution on Sun's site OR Jakarta Tomcat (w/ j2sdk, not 
j2ee), but never j2ee and jakarta tomcat together.  It'll create some 
really ugly version conflicts.  If you use jakarta tomcat from 
jakarta.apache.org, use the jar files that have the specific functions 
you need instead. 

For jstl, that would be the standard-1.1 tag lib available here: 
http://jakarta.apache.org/taglibs/index.html.  D/L the standard taglibs, 
drop the jars in your WEB-INF/lib directory, and include the taglibs in 
your web.xml per the docs.  Restart the context and your done.

--David
Tim Funk wrote:
Is your web.xml using the 2.4 declaration?
-Tim
Marcus Beyer wrote:
Tim Funk schrieb:
I finally solved my (first) problem: I had a wrong lib (J2EE 1.3) in 
my class path. So there was some kind of version mismatch ...

Are you sure you want
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
and not
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

But still my pages do not work if I specify to use the jstl 1.1 taglib.
Example: 
With 1.0 taglib I get "1 + 2 = 3".
With 1.1 taglib I get "1 + 2 = ${1 + 2}".
Any idea about this?

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


Sending email with zip file attach problem

2005-01-24 Thread Daxin Zuo

Hi,
   Please help. Any sugestion is welcome. In my web page, users send email
with attachment, so upload is related. I can provide the file in either a
byte[] array, or in an inputstream. I try to send the attachement with
JavaMail(I know there is email api in Tomcat-Common. But I have no a good
example).

--- my code in a function in a servlet  ---
DiskFileUpload upload = new DiskFileUpload();
List items = upload.parseRequest(request);
Iterator itr = items.iterator();
item = (FileItem) itr.next();
.
//- now it is a attachement. 
InputStream istrm= item.getInputStream();
... 
MimeBodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setDisposition(Part.INLINE);
messageBodyPart.setContent(strBodyText, "text/plain");
MimeMultipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
messageBodyPart = new MimeBodyPart(istrm);
messageBodyPart.setDisposition(messageBodyPart.ATTACHMENT);
messageBodyPart.addHeader("Content-Type",strMime); //strMime is correct
messageBodyPart.setFileName(fileName);
multipart.addBodyPart(messageBodyPart);



NO metter what file it is, the attachement received is ATT00211.txt.
I the file is a text file, the contents are correct.
if the file is a small zip file, it adds the lines as following in attached
file:
Content-Type: application/zip; name=idmeta.zip
Content-Disposition: attachment; filename=idmeta.zip
Content-Transfer-Encoding: 7bit

What's wrong? Please forward instruction.



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



Re-Post SSL and Tomcat

2005-01-24 Thread stuff
I would really appreciate any help on this.

I have two applications running on a Tomcat server. One is the main webpage
and the other is a shopping cart for that webpage. I would like to set up a
secure checkout for the cart.

Is it best to encrypt the whole cart or just part of the cart?
Should the main website and the cart be on the same server?
What eles should I look out for?

Thanks

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



Re: Emergency: make Tomcat forward

2005-01-24 Thread Tim Funk
If you can use tomcat5 - look at the balancer webapp.
-Tim
Stephen Charles Huey wrote:
I have Tomcat 4.1.27 on a Linux box at a particular public IP address,
and I want to make it forward ALL requests to a Tomcat on a Windows box
at another public IP address.  Over the weekend, we changed the DNS to
the Linux box, but now we need to roll back to the Windows box, and we
already changed the DNS through our ISP, and a lot of folks are hitting
the Windows box, but some people are still hitting the Linux one.  So,
we want to turn on the Tomcat on the Linux box and somehow send all
those folks to the Windows one.  

Is there any way to do this?  

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


Emergency: make Tomcat forward

2005-01-24 Thread Stephen Charles Huey
I have Tomcat 4.1.27 on a Linux box at a particular public IP address,
and I want to make it forward ALL requests to a Tomcat on a Windows box
at another public IP address.  Over the weekend, we changed the DNS to
the Linux box, but now we need to roll back to the Windows box, and we
already changed the DNS through our ISP, and a lot of folks are hitting
the Windows box, but some people are still hitting the Linux one.  So,
we want to turn on the Tomcat on the Linux box and somehow send all
those folks to the Windows one.  

Is there any way to do this?  


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



Using digital signatures to log into admin webapp

2005-01-24 Thread Edmon Begoli
Hi,
Is it possible to enable digital certs as a authentication method for 
the admin app. and if yes - please tell me how.

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


Start Tomcat 5.5.4 in the Background with No Console (Windows)

2005-01-24 Thread Matt Mejaski
Hi all,
 
I'm wondering -- is there a way to start Tomcat 5.5.4 in the background on
Windows, without seeing the console, and without running it as a service?
 
Here's my situation:
 
I have a webapp running that sometimes needs to access network folders that
are only mapped when the user logs in to windows.  If I use a service to
launch Tomcat, it starts using the SYSTEM account, which doesn't have access
to the network drives.  Now, I know I can change the "Log On As" to user a
local account, but that also means I have to change the local account's
security privileges (to allow that account to run services), etc., which is
not a viable solution for me.
 
Instead, I was thinking that I could just start Tomcat in the background
when the user logs in (by putting something in the Startup folder or
something like that).  That way, Tomcat would be launched by the user, and
then it would be able to access network drives.
 
But, I don't know if there is a way to start Tomcat without the console
visible (so that Tomcat's execution is still transparent to the user, as it
would be if it were run as a service).
 
I guess I would also have to figure out a way to have the shutdown script
called when the user logs out.  That could be a pain as well, couldn't it?
 
 
Does anyone have any thoughts on this?
 
 
Thanks,
Matt Mejaski


Re: out of memory error with more than a few sites

2005-01-24 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/memory.html
I bet your machine has some kernel limits on number of open files that you 
are passing.

-Tim
Helmut Eggebert wrote:
Hi,
I am getting an out of memory error when I start Tomcat.   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: out of memory error with more than a few sites

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: out of memory error with more than a few sites

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



out of memory error with more than a few sites

2005-01-24 Thread Helmut Eggebert
Hi,
I am getting an out of memory error when I start Tomcat.  I read posts on 
this in the past and followed some instructions to increase by min and max 
memory settings in catalina.sh.  I have 1028 MB on this server and so I 
increased the min to 128 and the max to 768.

The server was working fine when I had a few test sites on it.  I am 
currently using Apache httpd 2.0.52, Tomcat 5.0.28 and mod_jk2 configured 
with workers2.properties and so that tomcat can listen to apache requests.  
Apache httpd serves static files and Tomcat
is set to work on jsp's with the directive:
JkUriSet worker ajp13:localhost:8009

The problem showed up when I started migrating some sites over and increased 
the number of hosts significantly.  I created 80 VirtualHosts in httpd.conf 
and 80 hosts in server.xml.  Then I created 80 corresponding directories in 
webapp, each with META-INF and WEB-INF subdirectories.

Even though all these directories and subdirectories are empty, when I start 
up Tomcat, it tries to deploy them all and throws the out of memory error.  
If I remove most of the hosts in server.xml, everything runs fine again.

My goal is to have these sites each with a large number of static pages and 
only a few jps's which are Lucene's search.jsp and results.jsp.  After this 
I want to have these sites each has a portal component using Jetspeed 2.

I know that if Tomcat was not in the picture this server would be able to 
handle many more sites, but is 80 hosts with only a few jsps in each too 
much for Tomcat on an average modern Web server?  How can I optimize this?

Below I have included code snippets of my httpd.conf and server.xml and 
workers2.properties.

Thanks.
#--
#httpd.conf snippet
#--

   DocumentRoot /opt/jakarta-tomcat-5.0.28/webapps/sitename
ServerName sitename.com
ServerAlias www.sitename.com
DirectoryIndex index.html index.jsp index.cgi index.php
CustomLog logs/sitename_access_log combined
ErrorLog logs/sitename_error_log

JkUriSet worker ajp13:localhost:8009

ScriptAlias /WEB-INF/ 
/opt/jakarta-tomcat-5.0.28/webapps/sitename/WEB-INF/

AllowOverride None
Options None
Order allow,deny
Allow from all

ScriptAlias /META-INF/ 
/opt/jakarta-tomcat-5.0.28/webapps/sitename/META-INF/

AllowOverride None
Options None
Order allow,deny
Allow from all


AllowOverride AuthConfig

   ErrorDocument 404 http://www.sitename.com/errorpages/404.html


#--
#server.xml snippet
#--
   
   www.sitename.com
   
directory="logs" prefix="sitename." suffix=".log" 
timestamp="true"/>
   
   

#---
#workers2.properties snippet
#---
[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess 
servers.
file=anon

# Defines a load balancer named lb. Use even if you only have one  =machine.
[lb:lb]
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
#host=localhost
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
# Uri mapping
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=lb
[status:]
info=Status worker, displays runtime information
[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Re: sharing webapplication

2005-01-24 Thread Dakota Jack
You can have the various application URLs point to the same webserver
app, as Parsons pointed out.  However, why don't you want them to
share, except the "skin", everything on the website?  As long as the
"skin" is different, they won't know they are sharing anything.

Jack


On Mon, 24 Jan 2005 16:48:37 +0100, Omar Adobati <[EMAIL PROTECTED]> wrote:
> nobody can help me too?
> 
> 
> On Mon, 24 Jan 2005 11:08:36 +0100, Omar Adobati <[EMAIL PROTECTED]> wrote:
> > Hi to everybody,
> >
> >  I need an idea. suppose I have some webapp that i need to share
> > among some other webapplication. For example, suppose I have three
> > customer website each that need the access to a reserved area. Suppose
> > thet I want to use just on login webapp shared among all my customers;
> > suppose I need that every login page need to by skinned as the rest of
> > the website.
> >
> > The main issue I want to obtain is to manage just one shared webapp
> > fot all customers to better menaging upgrades, bug fixing and so on. I
> > think that skin the website is not a problem... I shoud use XML +
> > XSL(T) to skin... the matter is how to share.
> >
> > What are the best way to do this?
> >
> > (sorry bad english)
> >
> > --
> > Adobati Omar
> >
> 
> -- 
> Adobati Omar
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Re: Re: precompilation and JSTL

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: precompilation and JSTL

2005-01-24 Thread Tim Funk
Is your web.xml using the 2.4 declaration?
-Tim
Marcus Beyer wrote:
Tim Funk schrieb:
I finally solved my (first) problem: I had a wrong lib (J2EE 1.3) in my 
class path. So there was some kind of version mismatch ...

Are you sure you want
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
and not
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

But still my pages do not work if I specify to use the jstl 1.1 taglib.
Example: 
With 1.0 taglib I get "1 + 2 = 3".
With 1.1 taglib I get "1 + 2 = ${1 + 2}".
Any idea about this?

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


Re: Re: precompilation and JSTL

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: precompilation and JSTL

2005-01-24 Thread Marcus Beyer
Tim Funk schrieb:
I finally solved my (first) problem: I had a wrong lib (J2EE 1.3) in my 
class path. So there was some kind of version mismatch ...

Are you sure you want
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
and not
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
But still my pages do not work if I specify to use the jstl 1.1 taglib.
Example: 
With 1.0 taglib I get "1 + 2 = 3".
With 1.1 taglib I get "1 + 2 = ${1 + 2}".
Any idea about this?
--
Grüße, Marcus

"Whatever you do will be insignificant,
 but it is very important that you do it." -- Gandhi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: sharing webapplication

2005-01-24 Thread Omar Adobati
This seems to be a nice way to try out...
I'll say you if this should work as I hope.

I'm waiting for other suggestions too



On Mon, 24 Jan 2005 11:45:20 -0500, Parsons Technical Services
<[EMAIL PROTECTED]> wrote:
> Way out on a limb here. (Assuming) If you are having three customers then
> you have three URLs. If this is true, maybe you could use the alias and
> setup something like this:
> 
> secure.companya.com
> secure.companyb.com
> secure.companyc.com
> 
> where all three are pointed to the same app. I have NOT done this and am not
> sure it will work.
> 
> But the way the documentation reads it should. From there have the
> secure.company.. added to the dns on each domain to point to the server.
> 
> Doug
> 
> 
> - Original Message -
> From: "Omar Adobati" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 24, 2005 10:48 AM
> Subject: Re: sharing webapplication
> 
> > nobody can help me too?
> >
> >
> >
> > On Mon, 24 Jan 2005 11:08:36 +0100, Omar Adobati <[EMAIL PROTECTED]>
> > wrote:
> >> Hi to everybody,
> >>
> >>  I need an idea. suppose I have some webapp that i need to share
> >> among some other webapplication. For example, suppose I have three
> >> customer website each that need the access to a reserved area. Suppose
> >> thet I want to use just on login webapp shared among all my customers;
> >> suppose I need that every login page need to by skinned as the rest of
> >> the website.
> >>
> >> The main issue I want to obtain is to manage just one shared webapp
> >> fot all customers to better menaging upgrades, bug fixing and so on. I
> >> think that skin the website is not a problem... I shoud use XML +
> >> XSL(T) to skin... the matter is how to share.
> >>
> >> What are the best way to do this?
> >>
> >> (sorry bad english)
> >>
> >> --
> >> Adobati Omar
> >>
> >
> >
> > --
> > Adobati Omar
> > [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 


-- 
Adobati Omar
[EMAIL PROTECTED]

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



Re: Re: sharing webapplication

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: sharing webapplication

2005-01-24 Thread Parsons Technical Services
Way out on a limb here. (Assuming) If you are having three customers then 
you have three URLs. If this is true, maybe you could use the alias and 
setup something like this:

secure.companya.com
secure.companyb.com
secure.companyc.com
where all three are pointed to the same app. I have NOT done this and am not 
sure it will work.

But the way the documentation reads it should. From there have the 
secure.company.. added to the dns on each domain to point to the server.

Doug
- Original Message - 
From: "Omar Adobati" <[EMAIL PROTECTED]>
To: 
Sent: Monday, January 24, 2005 10:48 AM
Subject: Re: sharing webapplication


nobody can help me too?

On Mon, 24 Jan 2005 11:08:36 +0100, Omar Adobati <[EMAIL PROTECTED]> 
wrote:
Hi to everybody,
 I need an idea. suppose I have some webapp that i need to share
among some other webapplication. For example, suppose I have three
customer website each that need the access to a reserved area. Suppose
thet I want to use just on login webapp shared among all my customers;
suppose I need that every login page need to by skinned as the rest of
the website.
The main issue I want to obtain is to manage just one shared webapp
fot all customers to better menaging upgrades, bug fixing and so on. I
think that skin the website is not a problem... I shoud use XML +
XSL(T) to skin... the matter is how to share.
What are the best way to do this?
(sorry bad english)
--
Adobati Omar

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


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


Re: TrustManager

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



TrustManager

2005-01-24 Thread Quenin Bertrand
Hi,
I'd like to know how setting a custom TrustManager in Tomcat 4.1.31. I have 
my custom provider installed and working ok. I tried to override 
"ssl.TrustManagerFactory.algorithm" property with my custom 
TrustManagerAlgorithm but tomcat seems to ignore it ... The only thing i 
achieve is to set a custom TrustStore with javax.net properties ... But i want 
a dynamic (CRLs, OCSP, etc.) TrustStore, not a static one ...
I can't find any information about TrustManagers in documentation.
Any help would be greatly appreciated.
 
 
BQ.
 


Re: What is it mean that "Java code does not belong in well designed JSP pages"?

2005-01-24 Thread Dakota Jack
> Debugging code in JSPs is very painful. Debugging tag libraries is the same
> as debugging any ordinary Java object.
> 

I pretty much agree with everything Harry says and I do so "in spades"
as they say.  You can, as a tip, make debugging JSP easier by putting
the whole page in a try/catch exception trap.

Jack

-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Re: sharing webapplication

2005-01-24 Thread Omar Adobati
nobody can help me too?



On Mon, 24 Jan 2005 11:08:36 +0100, Omar Adobati <[EMAIL PROTECTED]> wrote:
> Hi to everybody,
> 
>  I need an idea. suppose I have some webapp that i need to share
> among some other webapplication. For example, suppose I have three
> customer website each that need the access to a reserved area. Suppose
> thet I want to use just on login webapp shared among all my customers;
> suppose I need that every login page need to by skinned as the rest of
> the website.
> 
> The main issue I want to obtain is to manage just one shared webapp
> fot all customers to better menaging upgrades, bug fixing and so on. I
> think that skin the website is not a problem... I shoud use XML +
> XSL(T) to skin... the matter is how to share.
> 
> What are the best way to do this?
> 
> (sorry bad english)
> 
> --
> Adobati Omar
> 


-- 
Adobati Omar
[EMAIL PROTECTED]

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



Re: RE: RE: IIS 5.0 + ISAPI filter + tomcat

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: RE: IIS 5.0 + ISAPI filter + tomcat

2005-01-24 Thread Warron French
Sorry, I dont remember Dutch anymore.  Please reply in English.


Warron French
Sr. Network Engineer
Xtria, LLC
8045 Leesburg Pike #400
Vienna, VA 22182
Desk: 703-821-6110
Main: 703-821-6000
Fax:  703-827-0374


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, January 24, 2005 10:25 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: RE: IIS 5.0 + ISAPI filter + tomcat


Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: ant install fails

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



ant install fails

2005-01-24 Thread Anil Philip
Hello,

The build.xml supplied in the Tomcat 5.5.4 (Windows XP) documentation has
this line in the 'install' target:

   localWar="file://${build.home}"/>

 

Following the "development processes" Tomcat document, when I do an: ant
install

I get the following error:

 

C:\CRUDRE\build.xml:369: java.io.IOException: Server returned HTTP response
code

: 401 for URL:
http://localhost:80/manager/deploy?path=%2Fcrudre&war=file%3A%2F%

2FC%3A%5CCRUDRE%2Fbuild

 

However 

- doing a google search it says this 401 error is an authentication problem
but I am able to run the manager from the Start menu and in the
build.properties, I specify the same password/username that I did in the
popup dialog.

- when I did an 'ant all', it built successfully.

 

C:\CRUDRE>ant all

Buildfile: build.xml

 

clean:

   [delete] Deleting directory C:\CRUDRE\build

 

prepare:

[mkdir] Created dir: C:\CRUDRE\build

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF\classes

 [copy] Copying 13 files to C:\CRUDRE\build

 

compile:

[javac] Compiling 3 source files to C:\CRUDRE\build\WEB-INF\classes

 

all:

 

BUILD SUCCESSFUL

 

=== tomcat-users.xml===





  

  

  

  

  

  

  

  



=application-dir\build.properties===



  http://localhost:80/manager"/>

  

===

 

 

Any help, appreciated.

Thanks,

Anil Philip

 



Re: RE: connection Pool leaking - how to detect it ?

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: connection Pool leaking - how to detect it ?

2005-01-24 Thread Mike Curwen
I use the logAbandonded in our test server, and I find the log messages in
catalina.out.  The log message includes (as part of a stack trace, so you
will have to inspect the output a bit) the JSP page or class (and line!) in
which the connection was opened.

Here's an example:

DBCP object created 2005-01-24 09:09:33 by the following code was never
closed:
java.lang.Exception
at
org.apache.commons.dbcp.AbandonedTrace.init(AbandonedTrace.java:96)
at
org.apache.commons.dbcp.AbandonedTrace.(AbandonedTrace.java:79)
at
org.apache.commons.dbcp.DelegatingResultSet.(DelegatingResultSet.java:
71)
at
org.apache.commons.dbcp.DelegatingResultSet.wrapResultSet(DelegatingResultSe
t.java:80)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingP
reparedStatement.java:92)
at
com.acme.security.DataSourceAuthenticator.getAuthenticatedUser(DataSourceAut
henticator.java:40)
at
com.acme.security.SimpleLoginServlet.doPost(SimpleLoginServlet.java:76)



Mike Curwen


> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 24, 2005 3:26 AM
> To: Tomcat Users List
> Subject: connection Pool leaking - how to detect it ?
> 
> 
> I just shifted to DataSource Connection pooling. I followed
>  
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasourc
e-examples-howto.html
 
 
Here they have given 3 parameters to specify to control leaking  such as
removeAbandoned, removeAbandonedTimeout, logAbandoned
 
1) Is there any way to detect in which program / connection, resultsets etc
are not closed. I tried my best not to keep it open, but in case by mistake
it happend to be then how i can detect it ?
 
2) Also what is the meaning of logAbandoned - where i can see the log of
this ? 
 
 
regards
Manisha
 

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


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



tomcat-user@jakarta.apache.org

2005-01-24 Thread ksv
Hello ,
Interests everything, that is connected to managements of transactions at use 
DBCP...
Who Can will share experience or links? The database is not essential.
The principle of work with transactions through DBCP is necessary...



Best regards,
 ksv  mailto:[EMAIL PROTECTED]




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



Re: RE: IIS 5.0 + ISAPI filter + tomcat

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: IIS 5.0 + ISAPI filter + tomcat

2005-01-24 Thread Warron French
Ramien, I have checked and found that there was a virtual directory called 
tomcat (which is what the ISAPI filter is configured with.
 
In the Vritual directory I have the following files:
isapi_redirect_1.2.5.dll
jboss-connector.reg
uriworkermap.properties
workers.properties
 
 
Here is the content of jboss-connector.reg ==
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation]
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
Redirector]
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
Redirector\1.0]
"extension_uri"="/tomcat/isapi_redirect_1.2.5.dll"
"worker_file"="C:\\jboss-3.2.3\\server\\default\\conf\\workers.properties"
"worker_mount_file"="C:\\jboss-3.2.3\\server\\default\\conf\\uriworkermap.properties"
"log_file"="C:\\jboss-3.2.3\\server\\default\\log\\jk_iis.log"
"log_level"="INFO"

 
 
Here is the content for uriworkermap.properties ==
/*=testWorker
/*.jsp=testWorker
/www.nticonference.org/*.jsp=testWorker
 
Here is the content of workers.properties ==
worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
 
 
 
Thanks for your help, I really need it.
 
 
Warron French 
Sr. Network Engineer 
Xtria, LLC 
8045 Leesburg Pike #400 
Vienna, VA 22182 
Desk: 703-821-6110 
Main: 703-821-6000 
Fax:  703-827-0374 

-Original Message-
From: Ramien E. Rosillo G. [mailto:[EMAIL PROTECTED]
Sent: Monday, January 24, 2005 8:51 AM
To: Warron French
Subject: Re: IIS 5.0 + ISAPI filter + tomcat



Hi warron, did u check the for the isapi_redirect.dll in your jakarta (virtual 
site in the IIS) ?, after that you have to set up the wrokers.properties file 
in the Tomcat directory and the uriworkermap.properties.

Tell me if you have  done this, if not I can give you a paper that I found on 
the Internet with the instructions for right configuration of the IIS 
redirection.

Good luck.
Ramien Rosillo.-





<[EMAIL PROTECTED]>
IIS 5.0 + ISAPI filter + tomcat
Is this an appropriate list to send my questions for IIS 5.0 ISAPI filters and

 tomcat?  Running on a Windows 2000 Terminal Server?



I am having problems with controlling the redirection of a website.



http://www.acf.hhs.gov/programs/core/hsrc/



However, I was asked to change this the headstart website to redirect to this

 site instead, 

http://www.acf.hhs.gov/programs/opre/hsrc/



Well, I went into IIS and looked up the site's configuration, clicked on the

 Home Directory tab and set the radial option from "Directory on this system" to

 "URL redirection" because I thought this was the correct way.



http://www.acf.hhs.gov/programs/opre/hsrc/ that

 link BACK to the headstartresearchconf.net... but as you would expect since I

 chose the radial option "URL redirection" the site simply loops back.



http://www.acf.hhs.gov/programs/opre/hsrc/ 
http://www.acf.hhs.gov/programs/core/hsrc/. 
 



http://www.acf.hhs.gov/programs/opre/hsrc/, but then the links on that site

 can't make it to the headstartresearchconf.net references they are trying to

 reach... because I removed the ISAPI filter named "tomcat."



I really need to fix this mess, because it is a heavily used site.









http://www.acf.hhs.gov/programs/core/hsrc/  with the ISAPI filter in place, but

 I don't know what is generating the URL redirection.  Could it be a jsp, I

 honestly don't know because I am not a java developer.





If anyone could help me or guide me through this process it would be greatly

 appreciated.





Warron French

Sr. Network Engineer

Xtria, LLC





-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

Walla! Mail - get your free 1G mail   today



Re: BASIC Authentication

2005-01-24 Thread Ashish Kulkarni
Hi
May be try putting the following in web.xml file just
before taglib ( i am not sure but works with 2.2)

403

/pages/error/noaccess.jsp



401

/pages/error/noaccess.jsp


Ashish
--- Omar Adobati <[EMAIL PROTECTED]> wrote:

> Oh, I'm sorry... you are using the basic auth
> mode... there was a
> missunderstanding... sorry again...
> 
> 
> On Mon, 24 Jan 2005 14:29:44 +0100, Giorgio Ponza
> <[EMAIL PROTECTED]> wrote:
> > Omar Adobati ha scritto:
> > > I never try it, but maybe u can write your own
> code into the login
> > > page that redirect you on a different page if
> the login taske will not
> > > completed as needed...
> > 
> > I can't try this :D
> > There is no login page, only a box appearing over
> the browser asking user and password.
> > Thanks anyway
> > 
> > Giorgio
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> Adobati Omar
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



RE: open Excel 2000 bug

2005-01-24 Thread Sun House
Hi,
 I tried that, and it did not help
it looks like maybe related to a subject of disabling WebDav from working with 
default servlet.
though if webDav is working, it is strage because i deleted the WebDav 
application from tomcat 

Derrick Koes <[EMAIL PROTECTED]> wrote:

Try calling response.reset() before setting content type.


Derrick Koes

url="http://www.skillsoft.com"/>
codeauthor2001
[EMAIL PROTECTED]

(603) 821-3260

(603) 305-1753

No, try not, do
or do not, there is no try.

-Original Message-
From: Sun House [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 24, 2005 7:33 AM
To: tomcat-user@jakarta.apache.org
Subject: open Excel 2000 bug

Hi All,
I have a JSP page that eventually opens Excel page.

I got my content type set to be "application/vnd.ms-excel"
I also work with FOP to serialize the Excel.

I got this working for both Win 2000 and XP , and for Office XP and 2003, but 
for Office 2000 I got an Error generating the Ecxel.

If i look at localhost access log, I see that the page is somehow been called 2 
again times:
GET /ExcelReportGenerationPage.jsp?reportName=ResourceExcelRep HTTP/1.1" 200 
5120 LOCK /ExcelReportGenerationPage.jsp?reportName%3DResourceExcelRep 
HTTP/1.1" 500 2170 GET 
/eBopBrowser/jsp/ReportGenerationPage.jsp?reportName=ResourceExcelRep HTTP/1.1" 
200 5120


I know that 500 indicates an internal Error of the server, but i don't 
understand what is the lock doing here.
I understand that it relates ot webDav - but why is it here? od i use WebDav 
without my knowledge?
I use tomcat 5.027

How come in Excel 2000 i got this Error? 
I looked in Microsoft and FOP mailing lists as well with no success.
Any one?

Regards
Sun House



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


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



-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

Re: precompilation and JSTL

2005-01-24 Thread Marcus Beyer
Tim Funk schrieb:
Are you sure you want
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
and not
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
-Tim
  


Strange. After changing to JSTL 1.1 taglib, that c:if thing above does 
not work anymore. Isn't ${true} correct here?

--
Grüße, Marcus

"Whatever you do will be insignificant,
 but it is very important that you do it." -- Gandhi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: open Excel 2000 bug

2005-01-24 Thread Derrick Koes
 
Try calling response.reset() before setting content type.


  Derrick Koes
  Senior Software Engineer
  http://www.skillsoft.com"/>
  codeauthor2001
  [EMAIL PROTECTED]
  (603) 821-3260
  (603) 305-1753
  
  No, try not, do
or do not, there is no try.

-Original Message-
From: Sun House [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 24, 2005 7:33 AM
To: tomcat-user@jakarta.apache.org
Subject: open Excel 2000 bug

Hi All,
I have a JSP page that eventually opens Excel page.
 
I got my content type set to be "application/vnd.ms-excel"
I also work with FOP to serialize the Excel.
 
I got this working for both Win 2000 and XP , and for Office XP and 2003, but 
for Office 2000 I got an Error generating the Ecxel.
 
If i look at localhost access log, I see that the page is somehow been called 2 
again  times:
GET /ExcelReportGenerationPage.jsp?reportName=ResourceExcelRep HTTP/1.1" 200 
5120 LOCK /ExcelReportGenerationPage.jsp?reportName%3DResourceExcelRep 
HTTP/1.1" 500 2170 GET 
/eBopBrowser/jsp/ReportGenerationPage.jsp?reportName=ResourceExcelRep HTTP/1.1" 
200 5120
 
 
I know that 500 indicates an internal Error of the server, but i don't 
understand what is the lock doing here.
I understand that it relates ot webDav - but why is it here? od i use WebDav 
without my knowledge?
I use tomcat 5.027
 
How come in Excel 2000 i got this Error? 
I looked in Microsoft and FOP mailing lists as well with no success.
Any one?
 
Regards
Sun House
 
 

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


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



Re: Problem with HTTPServletRequest

2005-01-24 Thread Christoph Kutzinski
Hi,
Peter Monz wrote:
Hi All,
I have quite a problem with HTTPServletReuquest in some Servlets sometimes.
Sometimes if I access HTTPServletRequest in Servlet I get only a
"null"-Pointer and my Servlet crashes. But I can see in a HTTP-trace,
created with a spy programm that the date will be sent from the browser to
the apache server. -- Is there a konw problem?
Someone told me that happens because I use the post- and the get-method at
same time:
e.g.:



 

if you suspect this to be the problem, why you don't try it with only post?
e.g.:




Greetings
Christoph


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


Re: Installing SSL into tomcat

2005-01-24 Thread Tim Funk
There are 2 ssl links here  ...
http://wiki.apache.org/jakarta-tomcat/UsefulLinks
-Tim
Mumanyi Bravismore wrote:
Sorry for my ignorance. Is there anyone who happens to have a guide on 
how to install SSL into tomcat. I have tried using the method that comes 
with tomcat documentation with no success.

Thanks
Regards
/Bravo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Installing SSL into tomcat

2005-01-24 Thread Mumanyi Bravismore
Sorry for my ignorance. Is there anyone who happens to have a guide on 
how to install SSL into tomcat. I have tried using the method that comes 
with tomcat documentation with no success.

Thanks
Regards
/Bravo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with HTTPServletRequest

2005-01-24 Thread Tim Funk
We need a stack trace to help you debug. Odds are - its your servlet.
-Tim
Peter Monz wrote:
Hi All,
I have quite a problem with HTTPServletReuquest in some Servlets sometimes.
Sometimes if I access HTTPServletRequest in Servlet I get only a
"null"-Pointer and my Servlet crashes. But I can see in a HTTP-trace,
created with a spy programm that the date will be sent from the browser to
the apache server. -- Is there a konw problem?
Someone told me that happens because I use the post- and the get-method at
same time:
e.g.:



another one told me it was a thread problem that lock the HTTPServletRequest.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with HTTPServletRequest

2005-01-24 Thread Peter Monz
Hi All,

I have quite a problem with HTTPServletReuquest in some Servlets sometimes.

Sometimes if I access HTTPServletRequest in Servlet I get only a
"null"-Pointer and my Servlet crashes. But I can see in a HTTP-trace,
created with a spy programm that the date will be sent from the browser to
the apache server. -- Is there a konw problem?

Someone told me that happens because I use the post- and the get-method at
same time:

e.g.:





another one told me it was a thread problem that lock the HTTPServletRequest.


Can anyone plase help me?


Cheers

Peter



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



Re: precompilation and JSTL

2005-01-24 Thread Marcus Beyer
Tim Funk schrieb:
Are you sure you want
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
and not
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
Oh, right. Thank you!
Unfortunately the error persists nevertheless ...
--
Grüße, Marcus

"Whatever you do will be insignificant,
 but it is very important that you do it." -- Gandhi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: BASIC Authentication

2005-01-24 Thread Omar Adobati
Oh, I'm sorry... you are using the basic auth mode... there was a
missunderstanding... sorry again...


On Mon, 24 Jan 2005 14:29:44 +0100, Giorgio Ponza <[EMAIL PROTECTED]> wrote:
> Omar Adobati ha scritto:
> > I never try it, but maybe u can write your own code into the login
> > page that redirect you on a different page if the login taske will not
> > completed as needed...
> 
> I can't try this :D
> There is no login page, only a box appearing over the browser asking user and 
> password.
> Thanks anyway
> 
> Giorgio
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Adobati Omar
[EMAIL PROTECTED]

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



Re: BASIC Authentication

2005-01-24 Thread Giorgio Ponza
Omar Adobati ha scritto:
I never try it, but maybe u can write your own code into the login
page that redirect you on a different page if the login taske will not
completed as needed...
I can't try this :D
There is no login page, only a box appearing over the browser asking user and 
password.
Thanks anyway
Giorgio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: BASIC Authentication

2005-01-24 Thread Omar Adobati
I never try it, but maybe u can write your own code into the login
page that redirect you on a different page if the login taske will not
completed as needed...


On Mon, 24 Jan 2005 14:21:19 +0100, Giorgio Ponza <[EMAIL PROTECTED]> wrote:
> Hi all
> I have a small problem trying to configure BASIC auth.
> Everything works good, but i'd like to know if i can change the default page 
> when the user is not
> authenticated. I try to eplain better: if i write wrong 3 times the password, 
> or i click on "cancel"
> button, a default Tomcat page appears saying
> 
> type Status report
> message
> description This request requires HTTP authentication ().
> 
> Is possible to change this default page?
> Tx everybody
> 
> Giorgio
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Adobati Omar
[EMAIL PROTECTED]

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



BASIC Authentication

2005-01-24 Thread Giorgio Ponza
Hi all
I have a small problem trying to configure BASIC auth.
Everything works good, but i'd like to know if i can change the default page when the user is not 
authenticated. I try to eplain better: if i write wrong 3 times the password, or i click on "cancel" 
button, a default Tomcat page appears saying

type Status report
message
description This request requires HTTP authentication ().
Is possible to change this default page?
Tx everybody
Giorgio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: controlling and limiting threads launched by servelts

2005-01-24 Thread QM
On Mon, Jan 24, 2005 at 12:04:41PM +0100, Romeo Benzoni wrote:
: A tomcat instance where several independent webapps are hosted. (kind of
: "shared hosting").

This is the crux of your problem right here.  =)

In my experience, getting multiple Java apps to behave in the same
container was a headache (even if the code was fine, but the apps just
needed their own space).


: questions:
: is it possible to...
: 
: - prevent a serlvet from launching threads at all?
: - limit the number of threads a webapp/servlet can launch
: simultaneously?
: - automatically terminates all threads a webapp/servlet has launched
: when stopping context? (kind of GC for threads)

You *might* be able to do this with a security policy, though I'm pretty
sure that's limited to actual access (file, port, etc).

It sounds like you're trying to solve a policy problem with technology.
You'd do well to nip this in the bud and contact the person(s)
responsible.

What are your options for setting up each app in its own container?
That won't prevent developers from making foolish mistakes, but it at
least gives you enough isolation to shutdown/restart the one container
with no effects to the others.


: notice:
: all this should be possible without "cooperative behavoiur" of the
: serlvet developer and so implememented completely transparent to them.

Is there any reason you can't confront the offending developer(s)?  If
this is a corporate situation, you could push this up the management
chain.  Statements such as "app A is adversely affecting apps B and C"
tend to make an impact. =)

If you're a host and these are your customers, I'm sure you can tell the
offender they risk account termination if they continue to impact your
other customers.  This could (should) fall under any terms of service to
which they agreed when they signed up...

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



open Excel 2000 bug

2005-01-24 Thread Sun House
Hi All,
I have a JSP page that eventually opens Excel page.
 
I got my content type set to be "application/vnd.ms-excel"
I also work with FOP to serialize the Excel.
 
I got this working for both Win 2000 and XP , and for Office XP and 2003, but 
for Office 2000 I got an Error generating the Ecxel.
 
If i look at localhost access log, I see that the page is somehow been called 2 
again  times:
GET /ExcelReportGenerationPage.jsp?reportName=ResourceExcelRep HTTP/1.1" 200 
5120
LOCK /ExcelReportGenerationPage.jsp?reportName%3DResourceExcelRep HTTP/1.1" 500 
2170
GET /eBopBrowser/jsp/ReportGenerationPage.jsp?reportName=ResourceExcelRep 
HTTP/1.1" 200 5120
 
 
I know that 500 indicates an internal Error of the server, but i don't 
understand what is the lock doing here.
I understand that it relates ot webDav - but why is it here? od i use WebDav 
without my knowledge?
I use tomcat 5.027
 
How come in Excel 2000 i got this Error? 
I looked in Microsoft and FOP mailing lists as well with no success.
Any one?
 
Regards 
Sun House
 
 

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

Re: precompilation and JSTL

2005-01-24 Thread Tim Funk
Are you sure you want
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
and not
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
-Tim
Marcus Beyer wrote:
Hello all!
I am trying to precompile my JSPs using org.apache.jasper.JspC.
Problem: The ones that use JSTL result in uncompilable Java code.
[Sorry for my english. Is it uncompilable or incompilable?]
Example:
  <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
  JSTL test
  

 

The resulting Java file contains this line:
  if (_jspx_meth_c_out_0(_jspx_th_c_if_0, _jspx_page_context))
  return true;
The (Eclipse) compiler complains:
  The method _jspx_meth_c_out_0(JspTag, PageContext) in the type
  test_jsp is not applicable for the arguments (IfTag, PageContext)
"IfTag" is org.apache.taglibs.standard.tag.el.core.IfTag.
"JspTag" is javax.servlet.jsp.tagext.JspTag.
IfTag extends javax.servlet.jsp.jstl.core.ConditionalTagSupport.
ConditionalTagSupport extends javax.servlet.jsp.tagext.TagSupport.
TagSupport implements javax.servlet.jsp.tagext.JspTag.
So this looks right. Any idea what the problem is?
I am using JSTL 1.1.2 with Tomcat 5.0.26.
best wishes,
Marcus Beyer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


precompilation and JSTL

2005-01-24 Thread Marcus Beyer
Hello all!
I am trying to precompile my JSPs using org.apache.jasper.JspC.
Problem: The ones that use JSTL result in uncompilable Java code.
[Sorry for my english. Is it uncompilable or incompilable?]
Example:
  <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
  JSTL test
  

   
The resulting Java file contains this line:
  if (_jspx_meth_c_out_0(_jspx_th_c_if_0, _jspx_page_context))
  return true;
The (Eclipse) compiler complains:
  The method _jspx_meth_c_out_0(JspTag, PageContext) in the type
  test_jsp is not applicable for the arguments (IfTag, PageContext)
"IfTag" is org.apache.taglibs.standard.tag.el.core.IfTag.
"JspTag" is javax.servlet.jsp.tagext.JspTag.
IfTag extends javax.servlet.jsp.jstl.core.ConditionalTagSupport.
ConditionalTagSupport extends javax.servlet.jsp.tagext.TagSupport.
TagSupport implements javax.servlet.jsp.tagext.JspTag.
So this looks right. Any idea what the problem is?
I am using JSTL 1.1.2 with Tomcat 5.0.26.
best wishes,
Marcus Beyer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


controlling and limiting threads launched by servelts

2005-01-24 Thread Romeo Benzoni
Hi

situation:
A tomcat instance where several independent webapps are hosted. (kind of
"shared hosting").

scenario:
A developer for one of this webapp is kind of lazy (or not that skilful)
and launches a new thread during init(). but he does not terminates this
thread during the destroy() of the servlet.

effect:
so when he reloads his webapp the thread keeps on running. further more
his webapp could in "developing state" where this reload happen very
often. so after some time I've a lot of "orphaned" threads running in my
tomcat VM. When I notice this, or a Developer complains that something
must be wrong on my system as his thread behaves weired (most often
non-deterministic behaviour because of race conditions when more than
one of these threads are running) I send information about correct
launching and terminating threads from a servlet of course. But this
solution leaves a unpleasant feeling. further more I'll have to restart
tomcat to get rid of these threads. I would prefer a technical solution
which prevents this. I know that I can't isolate webapps 100% against
each other concerning system ressources (slugish servlet can allocate
too much memory and cause an OutOfMemoryError etc.). I did had a look a
java policy but you can't either prevent a thread from being started,
nor have any fine grained control on threads. non the less here are my 

questions:
is it possible to...

- prevent a serlvet from launching threads at all?
- limit the number of threads a webapp/servlet can launch
simultaneously?
- automatically terminates all threads a webapp/servlet has launched
when stopping context? (kind of GC for threads)

notice:
all this should be possible without "cooperative behavoiur" of the
serlvet developer and so implememented completely transparent to them.


is this possible at all?
any ideashow to implement?
thanks in advance

cu

romeo

-- 
Romeo Benzoni <[EMAIL PROTECTED]>


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



  1   2   >