Information

2004-10-04 Thread craig . mcclanahan
--  Virus Warning Message (on uusnwa0p)

Found virus WORM_NETSKY.Z in file Data.txt 
   
 .exe (in Data.zip)
The file is deleted.

-
Important data!


--  Virus Warning Message (on uusnwa0p)

Data.zip is removed from here because it contains a virus.

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

RE: Tomcat Question - HELP

2004-10-04 Thread Pawson, David
 

-Original Message-
From: Shapira, Yoav 
Personally, I'd take this support list over any commercial 
support organization, hands down. 

+1
   Try asking questions like (almost any on this list) to Redmond
and see what the response is :-)

regards DaveP

*** snip here ***

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



RE: Using XInclude in tomcat's config files

2004-10-04 Thread Pawson, David
 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni
Sent: 01 October 2004 21:44

Alas, that didn't help. I tried setting both 
org.xml.sax.parser and 
org.apache.xerces.xni.parser.XMLParserConfiguration (the 
latter one being the one described in the Xerces XInclude FAQ at
http://xml.apache.org/xerces2-j/faq-xinclude.html) on the 
java command line to 
org.apache.xerces.parsers.XIncludeParserConfiguration, 
but neither seems to have had the least effect.

The

 xi:include href=../../../etc/tomcat/dbparams.xml
 xmlns:xi=http://www.w3.org/2003/XInclude/

is completely ignored in my server.xml, and it is as if 
this directive weren't even present. (The file contains a 
ResourceParams root element for insertion into the 
Context that I've declared in server.xml).

Anything else I can try?

Try an entity instead of xinclude? Not many parsers are good
for xinclude as yet (a mainly uninformed statement). Entity
resolution is easier if the parser is setup correctly.

I'm not familiar with xinlude, but are you OK to use relative
url's in the href attribute? Does it need a file:// protocol?

HTH DaveP.





-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



RE:logging, configuration.

2004-10-04 Thread Pawson, David
 

-Original Message-
From: Jacob Kjome
Is it the commons-logging that produces 
catalina_log.date.txt? Is there 
a config file as per log4j?

Even when testing, this file becomes quite significant.
It would be nice to reduce/minimise its output.

Ultimately, Tomcat uses commons-logging for logging, but 
uses its own Logger interface which is configured in 
context configuration files or server.xml.  Note that this 
is no longer the case in 5.5.x.  Read the docs on Tomcat's 
Logger's for more info.

tc 5.0.27, server.xml has

   Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  
 prefix=localhost_log. 
 suffix=.txt
timestamp=true/

and
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. 
  suffix=.txt
  verbosity=1
  timestamp=true/

The documentation states that verbosity = 1 should log errors only?
(which it states to be the default)

I don't think the log output below constitute errors?
Is there somewhere else that I can restrict the log output
to errors only please?

regards DaveP



2004-10-04 09:22:16 RequestDumperValve[Catalina]: 
===
2004-10-04 09:22:20 RequestDumperValve[Catalina]: REQUEST URI   =/repository/getit
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   authType=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:  characterEncoding=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:  contentLength=692
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
contentType=multipart/form-data; boundary=---7d4115142050a
2004-10-04 09:22:20 RequestDumperValve[Catalina]:contextPath=/repository
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
cookie=JSESSIONID=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]: header=accept=image/gif, 
image/x-xbitmap, image/jpeg, image/pjpeg, application/xhtml+xml, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=referer=http://localhost/repository/upload/index.html
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=accept-language=en-gb
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=content-type=multipart/form-data; 
boundary=---7d4115142050a
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=accept-encoding=gzip, deflate
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MathPlayer 2.0; 
.NET CLR 1.1.4322)
2004-10-04 09:22:20 RequestDumperValve[Catalina]: header=host=localhost
2004-10-04 09:22:20 RequestDumperValve[Catalina]: header=content-length=692
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=connection=Keep-Alive
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=cache-control=no-cache
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=cookie=JSESSIONID=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]: locale=en_GB
2004-10-04 09:22:20 RequestDumperValve[Catalina]: method=POST
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   pathInfo=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   protocol=HTTP/1.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:queryString=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]: remoteAddr=127.0.0.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]: remoteHost=127.0.0.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]: remoteUser=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
requestedSessionId=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]: scheme=http
2004-10-04 09:22:20 RequestDumperValve[Catalina]: serverName=localhost
2004-10-04 09:22:20 RequestDumperValve[Catalina]: serverPort=80
2004-10-04 09:22:20 RequestDumperValve[Catalina]:servletPath=/getit
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   isSecure=false
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
---
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
---
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   authType=FORM
2004-10-04 09:22:20 RequestDumperValve[Catalina]:  contentLength=-1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:contentType=text/html
2004-10-04 09:22:20 RequestDumperValve[Catalina]:message=null
2004-10-04 

5.0.28 stack overflow?

2004-10-04 Thread Cott Lang
Anyone ever seen one like this? :)


ApplicationDispatcher[] Servlet.service() for servlet action threw
exception
java.lang.StackOverflowError
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:208)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)

[many thousands of identical lines clipped]

at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
at
org.apache.struts.action.ActionServlet.getModuleConfig(ActionServlet.java:829)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



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



Access the org.apache.catalina.authenticator.REQUEST note (get the requested page before the authentication form)

2004-10-04 Thread Giovanni Formenti
Hi!!
I use Tomcat 4.1 within JBoss 3.2.3 and JAAS.
I need to know the page requested before the authentication take the control
of the view. I find that information in the StandardSession's note
org.apache.catalina.authenticator.REQUEST.
How can i read it?!
request.getSession() is a StandardSessionFacade with the session field
(that have the public getNotes()) unaccessible... :(

Any idea?!


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



Re: Multiple arguments in a GET URL

2004-10-04 Thread Ronald Klop
You should escape the value of mainFrame, so the webserver will not parse it in 
index.jsp.
Ronald.
On Fri Oct 01 19:34:04 CEST 2004 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I am attempting to redirect to a URL that is similar to the following

http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1
http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1item2=in
fo2 item2=info2

However, I can only do a request.getParameter on item1 in the somePage.jsp
JSP. When I attempt to do it for item2, it fails..

Any ideas? Workarounds?

Azam Khan





RE: Multiple arguments in a GET URL

2004-10-04 Thread Ronald Klop
You better escape the value than replacing one character. This doesn't solve your 
issue on the long run.
See java.net.URLEncoder.
String args = mainFrame= + URLEncoder(url, UTF-8);
Ronald.
On Mon Oct 04 04:34:05 CEST 2004 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Eric:
Thanks for your help. Now that I think about it, it appears that is what is
happening. I will modify the code tomorrow morning to pass the second
ampersand as an ASCII value. 

Thanks everyone for your input on this !!

Thanks,
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 7:59 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Multiple arguments in a GET URL

On Fri, Oct 01, 2004 at 05:10:22PM -0400, [EMAIL PROTECTED]
wrote:
it sees hello as expected
 
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 

http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp?arg1=helloarg2
=helloagain
 
In this scenario, I am able to perform a request.getParameter 
on arg1 in blahblah.jsp but when I try to do it on arg2, I 
receive a null pointer exception.
 
For curiosity's sake, what value does blahblah.jsp see for arg1?

Oh, I bet I know what you're doing. In index.jsp you're probably
using
the value of mainFrame directly as the url to load in the frame. But the
value of the mainFrame arg is blahblah.jsp?arg1=hello, not just plain
blahblah.jsp. That's why you can get arg1. arg2 is just another
parameter being passed to index.jsp.
You need to either escape those 's so the whole thing after 
mainFrame= is the value of mainFrame, or index.jsp needs to explicitly
append any of _it's_ args (i.e. mainFrame and arg2) to the frame url.
(or rather, any that you think should be passed on)

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



where can i get jkjni.dll for windows.

2004-10-04 Thread Sato
hi,

where can i get jkjni.dll for win32 to run apache with tomcat as
inmemory process(mod_jk2)?


regards,
0xcafebabe

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



Re: 5.0.28 stack overflow?

2004-10-04 Thread Tim Funk
I'm guessing your using an HttpServletRequestWrapper. My guess might be the 
way your implementation overrode getRequest() might be doing wacky things.

ApplicationHttpRequest extends HttpServletRequestWrapper
-Tim
Cott Lang wrote:
Anyone ever seen one like this? :)
ApplicationDispatcher[] Servlet.service() for servlet action threw
exception
java.lang.StackOverflowError
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:208)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
at

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


Re: Windows Environment Variables

2004-10-04 Thread Dov Rosenberg
The web.xml file is located in the /WEB-INF. Inside the web-app element
you can add multiple context-param elements. Each context parameter has a
name/value element nested inside. Like :

web-app
...
context-param

param-nameDomainName/param-name

param-valuedemo/param-value

/context-param
...
/web-app

You can access the context parameters using
ServletConfig.getServletContext().getInitParameter() inside your servlet.



-- 
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com


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



Re: Tomcat Compiling Error - Form Based Authentication

2004-10-04 Thread Omar Adobati
I have to give u a bad news.
What i said yesterday night was wrong.
I have the same error also putting tools.jar (the JDK 1.5 ones)...
so I'm in trouble again!
Omar
- Original Message - 
From: John Najarian [EMAIL PROTECTED]
To: 'Omar Adobati' [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 9:53 PM
Subject: RE: Tomcat Compiling Error - Form Based Authentication

Hi Omar,
 You should install the entire new JDK.  Having 1 jar file from 1 version
of the JDK and all the other JAR files from another version could cause a
lot of problems.  I'd be surprised if it doesn't.
  Also, to avoid this problem and similar ones from happening you should
install the same version of Tomcat on the Linux box also.
  Developing on 1 box and trying to deploy on another box running different
versions of Tomcat  the JDK is NOT advisable.
  Let me know what you do.  I'm interested.
John
-Original Message-
From: Omar Adobati [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 12:39 PM
To: John Najarian
Subject: Re: Tomcat Compiling Error - Form Based Authentication
Exactly...just replace the old tools.jar with the new one!
I'm so happy It was drive me crazy!
- Original Message - 
From: John Najarian [EMAIL PROTECTED]
To: 'Omar Adobati' [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 9:31 PM
Subject: RE: Tomcat Compiling Error - Form Based Authentication

YEEE HA!
Good for you  glad I could help.
So you didn't have to install the new jdk but used the tools.jar from the
new jdk?
I'd install the entire 1.5 JDK.  Compiling and running other things may
cause similar problems to what you just had occur.
-Original Message-
From: Omar Adobati [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 12:22 PM
To: Tomcat Users List
Subject: Re: Tomcat Compiling Error - Form Based Authentication
WOW, it works!
I have tried to upload the JDK 1.5.0 tools.jar into
$Tomcat-home$\commons\lib and all works!
Thankyou very much for help and yur time!
regards
Omar (Italian happy guy!)
- Original Message - 
From: Omar Adobati [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 9:11 PM
Subject: Re: Tomcat Compiling Error - Form Based Authentication


I hope you've right.
Tomorrow i'll do it and write here if it works...
thx a lot
- Original Message - 
From: John Najarian [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 9:07 PM
Subject: RE: Tomcat Compiling Error - Form Based Authentication

Omar, this may be the problem  my hunch is that it is.  You've built 
run
code against never version of tomcat, jdk, jre... It could be there is 1
or
more things that work/compile... with these newer versions that aren't
backward compatible.  It maybe the tools.jar files aren't compatible.
If you can get jdk 1.5 and tomcat 5.28 for Linux download, install them
and
rebuild your app.
-Original Message-
From: Omar Adobati [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 11:50 AM
To: Tomcat Users List
Subject: Re: Tomcat Compiling Error - Form Based Authentication
On the windows box I'm using:
- Tomcat 5.0.28
- JDK  jre: 1.5.0 beta
every help is wellcome!
- Original Message - 
From: John Najarian [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 8:45 PM
Subject: RE: Tomcat Compiling Error - Form Based Authentication

You're still using the app on a Windows XP machine right?
What version of Tomcat, jdk  jre are on that box?
You may want to upgrade the jre/plugin to 1.4.2_05.  I'm not sure if this
will fix your problem but it won't hurt or take much time.
-Original Message-
From: Omar Adobati [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 11:25 AM
To: Tomcat Users List
Subject: Re: Tomcat Compiling Error - Form Based Authentication
Tomcat: 5.0.18
JDK  jre: 1.4.2
O.S.: Linux
ther's anything wrong?
- Original Message - 
From: John Najarian [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 8:07 PM
Subject: RE: Tomcat Compiling Error - Form Based Authentication

This may be an 'out there' question for your problem but which versions
Of Tomcat, jdk  jre are you using?  I could be that you've got a
mismatch.
-Original Message-
From: Omar Adobati [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 10:24 AM
To: Tomcat Users List
Subject: Re: Tomcat Compiling Error - Form Based Authentication
I don't think it was a permission problem on the webapps application
'couse
all other still work good and have the same permissions settings as this
one
that gives troubles.
This is the permission on tools.jar,  I think it's all ok...
-rwxr--r--1 root root  5092901 ott  3 16:47 tools.jar
Tomcat version I'm using is the 5.0.18
Hope this help you to help me in solving this trouble!
- Original Message - 
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, 

Deployer package ANT task error

2004-10-04 Thread Christian Ruediger
I am just about to try the first webapp tutorial of Tomcat.
My environment is:
Win 2k
Tomcat 5.0.28
eclipse 3.0
ANT 1.6.2

The catalina-ant.jar is added to the ant path.

When running the deploy task i get the following error

Buildfile: C:\Documents and Settings\cruediger\Mes
documents\Workspace\LocasugeGSM\build.xml
prepare:
compile:
install:
BUILD FAILED: C:\Documents and Settings\cruediger\Mes
documents\Workspace\LocasugeGSM\build.xml:263: java.io.IOException:
Server returned HTTP response code: 401 for URL:
http://localhost:8080/manager/deploy?path=%2FLocasugeGSMwar=file%3A%2F%2FC%3A%2FDocuments+and+Settings%2Fcruediger%2FMes+documents%2FWorkspace%2FLocasugeGSM%2Fdist
Total time: 1 second

The task in the Build file looks as follows
...
  taskdef name=deploy   classname=org.apache.catalina.ant.DeployTask/
...
 target name=install depends=compile
   description=Install application to servlet container

deploy url=${manager.url}
   username=${manager.username}
   password=${manager.password}
   path=${app.path}
   localWar=file://C:/Documents and Settings/cruediger/Mes
documents/Workspace/LocasugeGSM/dist/

  /target
...
The matching entries in the build.propertie file are:

manager.url= http://localhost:8080/manager
manager.password = 
manager.udername = 

As the provided example build file didn't bother to set password and
user, and the documentation hasn4t lost a word about it, i didn't do
either.
Is this a mistake?

I would very much appreciate some help in this matter, as it bothers
me for a few days by now.
Thanks 
Christian Ruediger

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



error-page exception-type

2004-10-04 Thread François Richard
Hi,
I'm blocked since this morning with an annoying problem on Tomcat (5.27 
and 5.28). Impossible to redirect users with the error-page tag on jsp 
and html files. I'm using that on the web.xml :
   error-page
   
exception-typecom.sofice.commun.securite.DroitsException/exception-type
   location/pagesError/droits.jsp/location
   /error-page

The jsp are well-compiled but the broswer display an error message (HTTP 
500). The start of the DroitsException (jsp, servlet ...) is unimportant 
the problem is the same.
Notice that the redirection works fine with servlet and 'directory 
listing' :
   error-page
   
exception-typecom.sofice.commun.securite.DroitsException/exception-type
   location/servlet/test/location
   /error-page
   error-page
   
exception-typecom.sofice.commun.securite.DroitsException/exception-type
   location/pagesError//location
   /error-page

Many thanks for your answer.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat Compiling Error - Form Based Authentication

2004-10-04 Thread Dale, Matt

I'd suggest rebuilding your appliation against java 5, and also running your tomcat 
with the java 5 JDK as well. Make sure that everything is happy at that level.

Ta
Matt

-Original Message-
From: Omar Adobati [mailto:[EMAIL PROTECTED]
Sent: 04 October 2004 13:44
To: John Najarian; Tomcat Users List
Subject: Re: Tomcat Compiling Error - Form Based Authentication


I have to give u a bad news.
What i said yesterday night was wrong.
I have the same error also putting tools.jar (the JDK 1.5 ones)...
so I'm in trouble again!

Omar

- Original Message - 
From: John Najarian [EMAIL PROTECTED]
To: 'Omar Adobati' [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 9:53 PM
Subject: RE: Tomcat Compiling Error - Form Based Authentication


Hi Omar,

  You should install the entire new JDK.  Having 1 jar file from 1 version
of the JDK and all the other JAR files from another version could cause a
lot of problems.  I'd be surprised if it doesn't.

   Also, to avoid this problem and similar ones from happening you should
install the same version of Tomcat on the Linux box also.

   Developing on 1 box and trying to deploy on another box running different
versions of Tomcat  the JDK is NOT advisable.

   Let me know what you do.  I'm interested.

John

-Original Message-
From: Omar Adobati [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 12:39 PM
To: John Najarian
Subject: Re: Tomcat Compiling Error - Form Based Authentication

Exactly...just replace the old tools.jar with the new one!
I'm so happy It was drive me crazy!


- Original Message - 
From: John Najarian [EMAIL PROTECTED]
To: 'Omar Adobati' [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 9:31 PM
Subject: RE: Tomcat Compiling Error - Form Based Authentication


YEEE HA!

Good for you  glad I could help.

So you didn't have to install the new jdk but used the tools.jar from the
new jdk?

I'd install the entire 1.5 JDK.  Compiling and running other things may
cause similar problems to what you just had occur.

-Original Message-
From: Omar Adobati [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 12:22 PM
To: Tomcat Users List
Subject: Re: Tomcat Compiling Error - Form Based Authentication

WOW, it works!
I have tried to upload the JDK 1.5.0 tools.jar into
$Tomcat-home$\commons\lib and all works!
Thankyou very much for help and yur time!

regards

Omar (Italian happy guy!)


- Original Message - 
From: Omar Adobati [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 9:11 PM
Subject: Re: Tomcat Compiling Error - Form Based Authentication


I hope you've right.
 Tomorrow i'll do it and write here if it works...

 thx a lot

 - Original Message - 
 From: John Najarian [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Sunday, October 03, 2004 9:07 PM
 Subject: RE: Tomcat Compiling Error - Form Based Authentication


 Omar, this may be the problem  my hunch is that it is.  You've built 
 run
 code against never version of tomcat, jdk, jre... It could be there is 1
 or
 more things that work/compile... with these newer versions that aren't
 backward compatible.  It maybe the tools.jar files aren't compatible.

 If you can get jdk 1.5 and tomcat 5.28 for Linux download, install them
 and
 rebuild your app.

 -Original Message-
 From: Omar Adobati [mailto:[EMAIL PROTECTED]
 Sent: Sunday, October 03, 2004 11:50 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Compiling Error - Form Based Authentication

 On the windows box I'm using:
 - Tomcat 5.0.28
 - JDK  jre: 1.5.0 beta

 every help is wellcome!

 - Original Message - 
 From: John Najarian [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Sunday, October 03, 2004 8:45 PM
 Subject: RE: Tomcat Compiling Error - Form Based Authentication


 You're still using the app on a Windows XP machine right?
 What version of Tomcat, jdk  jre are on that box?

 You may want to upgrade the jre/plugin to 1.4.2_05.  I'm not sure if this
 will fix your problem but it won't hurt or take much time.

 -Original Message-
 From: Omar Adobati [mailto:[EMAIL PROTECTED]
 Sent: Sunday, October 03, 2004 11:25 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Compiling Error - Form Based Authentication

 Tomcat: 5.0.18
 JDK  jre: 1.4.2
 O.S.: Linux

 ther's anything wrong?

 - Original Message - 
 From: John Najarian [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Sunday, October 03, 2004 8:07 PM
 Subject: RE: Tomcat Compiling Error - Form Based Authentication


 This may be an 'out there' question for your problem but which versions
 Of Tomcat, jdk  jre are you using?  I could be that you've got a
 mismatch.

 -Original Message-
 From: Omar Adobati [mailto:[EMAIL PROTECTED]
 Sent: Sunday, October 03, 2004 10:24 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Compiling Error - Form Based Authentication

 I don't think it was a permission 

RE: 5.0.28 stack overflow?

2004-10-04 Thread Shapira, Yoav

Hi,
99.9% of the time, it's your fault, with a large majority of these cases
being infinite recursion.  How does the CPU behave when leading up to
this error?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Cott Lang [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 4:32 AM
To: Tomcat Users List
Subject: 5.0.28 stack overflow?

Anyone ever seen one like this? :)


ApplicationDispatcher[] Servlet.service() for servlet action threw
exception
java.lang.StackOverflowError
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Applicatio
nHtt
pRequest.java:208)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Applicatio
nHtt
pRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Applicatio
nHtt
pRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Applicatio
nHtt
pRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Applicatio
nHtt
pRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Applicatio
nHtt
pRequest.java:220)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Applicatio
nHtt
pRequest.java:220)

[many thousands of identical lines clipped]

at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Applicatio
nHtt
pRequest.java:220)
at
org.apache.struts.action.ActionServlet.getModuleConfig(ActionServlet.ja
va:8
29)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:157)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat
cher
.java:704)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicati
onDi
spatcher.java:474)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis
patc
her.java:409)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa
tche
r.java:312)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.ja
va:1
069)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestP
roce
ssor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
:279
)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



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




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


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



RE: logging, configuration.

2004-10-04 Thread Shapira, Yoav

Hi,
Comment out the RequestDumperValve (in $CATALINA_HOME/conf/server.xml)
altogether: it's output is not errors, as you noted.  However, it's also
not a Logger per-se and so the Logger congifuration doesn't apply to it.
It's commented out by default, so go back to the default ;)


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Pawson, David [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 4:27 AM
To: Tomcat Users List
Subject: RE:logging, configuration.



-Original Message-
From: Jacob Kjome
Is it the commons-logging that produces
catalina_log.date.txt? Is there
a config file as per log4j?

Even when testing, this file becomes quite significant.
It would be nice to reduce/minimise its output.

Ultimately, Tomcat uses commons-logging for logging, but
uses its own Logger interface which is configured in
context configuration files or server.xml.  Note that this
is no longer the case in 5.5.x.  Read the docs on Tomcat's
Logger's for more info.

tc 5.0.27, server.xml has

   Logger className=org.apache.catalina.logger.FileLogger
 directory=logs
prefix=localhost_log.
suffix=.txt
timestamp=true/

and
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log.
 suffix=.txt
 verbosity=1
  timestamp=true/

The documentation states that verbosity = 1 should log errors only?
(which it states to be the default)

I don't think the log output below constitute errors?
Is there somewhere else that I can restrict the log output
to errors only please?

regards DaveP



2004-10-04 09:22:16 RequestDumperValve[Catalina]:
===
2004-10-04 09:22:20 RequestDumperValve[Catalina]: REQUEST URI
=/repository/getit
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
authType=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
characterEncoding=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
contentLength=692
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
contentType=multipart/form-data; boundary=---
7d4115142050a
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
contextPath=/repository
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
cookie=JSESSIONID=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/xhtml+xml, application/x-shockwave-flash,
application/vnd.ms-
excel, application/vnd.ms-powerpoint, application/msword, */*
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=referer=http://localhost/repository/upload/index.html
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=accept-language=en-gb
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=content-type=multipart/form-data;
boundary=-
--7d4115142050a
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=accept-encoding=gzip, deflate
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=user-
agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MathPlayer
2.0;
.NET CLR 1.1.4322)
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=host=localhost
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=content-length=692
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=connection=Keep-Alive
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=cache-
control=no-cache
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=cookie=JSESSIONID=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
locale=en_GB
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
method=POST
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
pathInfo=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
protocol=HTTP/1.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
queryString=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
remoteAddr=127.0.0.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
remoteHost=127.0.0.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
remoteUser=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
requestedSessionId=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
scheme=http
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
serverName=localhost
2004-10-04 09:22:20 RequestDumperValve[Catalina]: serverPort=80
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
servletPath=/getit
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
isSecure=false
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
-
--
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
-
--
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
authType=FORM
2004-10-04 09:22:20 RequestDumperValve[Catalina]:  

RE: Search engine friendly URLs

2004-10-04 Thread Shapira, Yoav

Hi,
You can also do this with one (or more, if you want, depending on the
exact requirements) Filters.  That prevents the need for a separate
servlet and any associated session overhead, so the performance argument
is even more moot.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Steffen Heil [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 11:18 AM
To: 'Tomcat Users List'
Subject: AW: Search engine friendly URLs

Hi

 If you want to be able to scale your application, you need to be able
to
move the static image handling out of tomcat to a separate web server.
Using
Tomcat to handle both application chores and web serving chores will
limit
the overall scalability of your system.

I strongly disagree.
Tomcat is nearly as fast as apache in serving images.
So, yes, you can save a little time using apache, BUT remeber that the
apache slows tomcat down. You need cpu-cycles for apache, for mod_jk
and
additionally for tomcat. Those cycles for apache and mod_jk are not
nessesary, since tomcat can work standalone.
So the question comes down to decide wether the overhead of handling
apache
and mod_jk for dynamic content is smaller then the difference of apache
and
tomcat in serving images. I guess with current versions of tomcat the
overhead to apache and mod_jk is even bigger.
Hence, tomcat alone will be faster.
(Please also consider, that static content will mostly be taken from
the
browsers cache, whereas dynamic content needs to be received from
tomcat.
That means that the time won by using apache for static content needs
to be
a magnitude higher than the overhead of mod_jk. That's simply not the
case.)

Tomcat cannot do rewriting, that is correct, but it does not need to:
I use url such as:
  /content/pages/test.htm
where content is mapped to my servlet.
The parameter is simply the rest of the url.

You could do:
  http://localhost/site.do/books/architecture
and parse the rest of the url to
  section = books
and
  subsection = architecture

Simply map site.do to your servlet.

Reagrds,
  Steffen



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


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



RE: tomcat 5.x windows installer

2004-10-04 Thread Shapira, Yoav

Hi,

My reason for preferring the installer over the zip is that - when it
works - I can do a faily painless upgrade by uninstalling leaving the
webapps etc alone and reinstalling an upgrade version to the same
directory. This is not so easy using the zip distribution.

Any help would be appreciated.

It's funny -- I prefer using the .zip versions because I think their
upgrade process is much easier than the services'.  Simply install new
zip to different $CATALINA_HOME directory, and copy over webapps.  This
might have to do with me not trusting the Windows registry as much as I
do the filesystem, though ;)

Yoav



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


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



RE: type in twice for basic authentication???

2004-10-04 Thread Shapira, Yoav

Hi,
Does 4.1.30 behave better?  Or 5.0.27?

(5.0.28 has http://issues.apache.org/bugzilla/show_bug.cgi?id=31372
which might affect this use-case)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Stephen Charles Huey [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 1:59 AM
To: Tomcat Users List
Subject: RE: type in twice for basic authentication???

Tomcat 4.1.27 -- please help!


- Original message -
From: Mark Thomas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Date: Sat, 2 Oct 2004 10:03:49 +0100
Subject: RE: type in twice for basic authentication???

What version of tomcat?

 -Original Message-
 From: Stephen Charles Huey [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 01, 2004 11:38 PM
 To: Tomcat Users List
 Subject: Re: type in twice for basic authentication???

 Yeah, I need some major help on this to figure out what's
 going on!  We
 have a Windows version and a Linux version of the database.  I just
 changed my DSN over to the Linux one, and now it pops up 4
 times!!!  No,
 wait...sometimes it still logs you in just after 2 times, and
 sometimes
 it takes as many as 6!  Also, sometimes when browsing the
 site, it makes
 you log in again in places where it didn't used to.

 You see, we have a main database that drives our web app, but
 we've been
 using a MySQL db to authenticate, and we'd like to get rid of
 that so we
 can just deal with one database.  However, our main database
 is behaving
 strangely.  Now, when clicking over to some of the other JSPs in the
 site, it will pop up and ask for the username and password in
 places it
 didn't used to do that (and no, it shouldn't be changing contexts or
 anything like that).



 - Original message -
 From: Stephen Charles Huey [EMAIL PROTECTED]
 To: Tomcat User [EMAIL PROTECTED]
 Date: Fri, 01 Oct 2004 17:10:32 -0500
 Subject: type in twice for basic authentication???

 When my web app pops up a basic authentication box, I type in the
 username and password, and then it bounces back with blank text boxes
 asking for it again.  Every time when I type them in a second time it
 then lets me in!  What's going on?  Here's what I have in my
 server.xml:


 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=sun.jdbc.odbc.JdbcOdbcDriver
 connectionURL=jdbc:odbc:dbname
 userTable=users userNameCol=userid userCredCol=password
 userRoleTable=roles roleNameCol=role /

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


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




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


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




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


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



Howto read files

2004-10-04 Thread dmu2201
Hi ML
I'm having a problem with tomcat because I would like to read a certain 
XML file in a 'data' dir. The problem is that the relative path does not 
work:
 new File(data/questionnaires.xml/);
does not give the file since Tomcat is started from its bin dir and not 
from my /webapps/PROJECT dir.

How do I, in a nice manner access that file with, hopefully, a 
relative path. I need a relative path or some kind of 'property' that 
enables me to access the file, independent of operating system.

I have tried to use a Context path=/PROJECT docBase=PROJECT | 
docBase=webapps/PROJECT / in a context.xml file in a META-INF dir, 
but no luck :-(

My dir structure:
/webapps
--/PROJECT
--/data  ---The dir I want to access
--/WEB-INF/
--/WEB-INF/src
--/WEB-INF/classes
--/displayQuestionnaires/
/*.jsp
Hope someone can help...
Claus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache tuning question

2004-10-04 Thread Randy Paries
Hello,

I thought there was an apache mailing list, but the mailing list page points
to this one(as well as php and some others.)

So hopefully I will not get flamed for this question.

I have a rh9 box with apache 2 and tomcat 5

The apache server gets about  1.2M hits a day

on average i have about 110 httpd running when i do a ps -ef | grep httpd |
wc -l, but on Monday mornings my busiest I have around 225 httpd running

I am trying to determine what are the best setting for my prefork MPM
settings.

I am getting conflicting suggestions on MaxClients 
on the RH pages it says::
However, it is not recommended that the value for MaxClients exceeds 256
when using the prefork MPM. 
BUT on other pages is says that on busy sites i should have MaxClients  512
and ServerLimit set to 1024
Not sure if my server is considered busy. I am tending to think yes.

these are my current settings:
IfModule prefork.c
StartServers 5
MinSpareServers   5
MaxSpareServers  10
ServerLimit   400
MaxClients400
MaxRequestsPerChild  0
/IfModule

Thanks for any suggestions



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



RE: Howto read files

2004-10-04 Thread Shapira, Yoav

Hi,
Use ServletContext#getResource(AsStream) or Class#getResource(AsStream),
as described in the Tomcat FAQ.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: dmu2201 [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 9:34 AM
To: [EMAIL PROTECTED]
Subject: Howto read files

Hi ML

I'm having a problem with tomcat because I would like to read a certain
XML file in a 'data' dir. The problem is that the relative path does
not
work:
  new File(data/questionnaires.xml/);
does not give the file since Tomcat is started from its bin dir and not
from my /webapps/PROJECT dir.

How do I, in a nice manner access that file with, hopefully, a
relative path. I need a relative path or some kind of 'property' that
enables me to access the file, independent of operating system.

I have tried to use a Context path=/PROJECT docBase=PROJECT |
docBase=webapps/PROJECT / in a context.xml file in a META-INF dir,
but no luck :-(

My dir structure:
/webapps
--/PROJECT
--/data  ---The dir I want to access
--/WEB-INF/
--/WEB-INF/src
--/WEB-INF/classes
--/displayQuestionnaires/
/*.jsp

Hope someone can help...

Claus

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




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


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



RE: Apache tuning question

2004-10-04 Thread Shapira, Yoav

Hi,
There IS an Apache mailing list: httpd-user, as described on
http://httpd.apache.org/userslist.html.  Since your question has more to
do with the httpd component and not as much with Tomcat or the
connectors, I'd ask there first if I were you ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 9:38 AM
To: 'Tomcat Users List'
Subject: Apache tuning question

Hello,

I thought there was an apache mailing list, but the mailing list page
points
to this one(as well as php and some others.)

So hopefully I will not get flamed for this question.

I have a rh9 box with apache 2 and tomcat 5

The apache server gets about  1.2M hits a day

on average i have about 110 httpd running when i do a ps -ef | grep
httpd |
wc -l, but on Monday mornings my busiest I have around 225 httpd
running

I am trying to determine what are the best setting for my prefork MPM
settings.

I am getting conflicting suggestions on MaxClients
on the RH pages it says::
However, it is not recommended that the value for MaxClients exceeds
256
when using the prefork MPM. 
BUT on other pages is says that on busy sites i should have MaxClients
512
and ServerLimit set to 1024
Not sure if my server is considered busy. I am tending to think yes.

these are my current settings:
IfModule prefork.c
StartServers 5
MinSpareServers   5
MaxSpareServers  10
ServerLimit   400
MaxClients400
MaxRequestsPerChild  0
/IfModule

Thanks for any suggestions



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




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


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



RE: logging, configuration.

2004-10-04 Thread Pawson, David
 

-Original Message-
From: Shapira, Yoav 
Comment out the RequestDumperValve (in 
$CATALINA_HOME/conf/server.xml)
altogether: it's output is not errors, as you noted.  
However, it's also not a Logger per-se and so the Logger 
congifuration doesn't apply to it.
It's commented out by default, so go back to the default ;)  

Groan :-)
  Lousy choice to uncomment.
Thanks Yoav.
  I can cancel those terabyte club san's now!

regards DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



Re: Tomcat becoming almost completely non-responsive

2004-10-04 Thread Kaleb Pederson
On Friday 01 October 2004 4:29 pm, Kumar, Sunitha wrote:
 What command did you use to generate the thread dump?

I'm in Linux, so I used kill -QUIT pid where pid was the process ID.

--Kaleb

 -sunitha

 -Original Message-
 From: Kaleb Pederson [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 01, 2004 3:08 PM
 To: Tomcat Users List
 Subject: Tomcat becoming almost completely non-responsive


 Hello,

 I have an interesting problem.  After a while, tomcat (5.0.27) becomes
 almost
 completely non-responsive.  If I telnet in to port 8009  (I'm using
 apache
 and mod_jk2), I get no response, at least not within the default
 timeout.  If
 a browse to a page, I will generally, after about 4-5 minutes, see a
 page
 returned.

 To narrow down the slowness, I generated a full thread dump, and found
 the
 following information:

 [ see attachment for more info]
 Total threads: 180
 executeQuery: 2 //  executing a db query
 validateConnection: 0 // trying to validate their connection
 validateObect: 48 // in
 commons.dbcp.PoolableConnectionFactory.validateObject
 socketAccept: 3 // accepting a socket
 socketRead0: 10 // reading a socket
 ReferenceQueue: 1
 ThreadPool$MonitorRunnable: 2
 borrowObject and Object.wait: 85 // trying to get an object from the
 pool
 Object.wait: 20 // threads just waiting around
 Remaining:  9 // misc. threads

 My database connection is setup so that I have 50 allowed connections,
 which
 matches my 48 in validateObject and 2 executing queries.  However, when
 I
 query the database status, I see 2 active threads and the rest are
 'sleeping', just waiting around, as they would be if the connection pool

 hadn't released them yet.

 So, why would there be 48 connections that seemed locked and weren't
 querying
 the DB?  And then the other 85 that were seemingly waiting on the 45?
 Any
 ideas what might be going on?  The DB is ready?  I have log abandoned
 turned
 and an haven't seen a problem yet.  If the load drops sufficiently on
 the
 server, everything eventually returns back to normal, otherwise it takes
 5-10
 minutes to get a response from the server.

 I have attached an abbreviated form of the thread dump which should
 provide
 all the critical information and can provide as much other information
 as is
 necessary.

 Thanks for the help.  *All* suggestions welcome ;)

 --Kaleb

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



realms: authentication against a web service?

2004-10-04 Thread Olve Hansen
Is this possible? 

I have to investigate the possibility of integrating two systems,
where users authenticate themselves against our webapp, and the webapp
checks their credentials against a web service in the background..

Do I have to make my own JAAS realm, which in turn authenticates
against a web service?
Or are there libraries that eases this integration? 

Although I am a fairly competent java-developer, I have never
developed against a web services before, so if this is fairly easy,
please bear with me, and point me in the right direction. :-)

Hope someone can help...
Thanks

-- 
 \ Olve S. Hansen

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



servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Christian Ruediger
Hi folks,

i have deployed a .war file, but Tomcat doesen't execute the servlet.
Instead he provides the deployed war file for download.
I have tried the deployment procedure by ANT task, by startup with war file.
I also tried the manager web frontend.

The manager shows me the option to start the app, but when clicking the link
the page is reloaded but the state of the app is still shown as inactive.

The error.log is empty

The log of tomcat shows the following after depoyment

2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: start:
Starting web application at '/LocasugeGSM-0.1-dev'
2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: list:
Listing contexts for virtual host 'localhost'

Regards
Christian Ruediger

Here is the deployment descriptor:

?xml version=1.0 encoding=ISO-8859-1 ? 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
  
 display-nameTestservlet/display-name 
 servlet
   servlet-nameRpcServlet/servlet-name 
   servlet-classtestserveur.RpcServlet/servlet-class 
 /servlet
 servlet-mapping
   servlet-nameRpcServlet/servlet-name 
   url-pattern/servlet/RpcServlet/url-pattern 
 /servlet-mapping
/web-app

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



RE: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Shapira, Yoav

Hi,
How about starting with the simplest approach: forget the manager,
forget Ant.  Do a clean Tomcat installation.  Copy your webapp into the
webapps folder (not as a WAR file, just the unpacked directory
structure).  Start the server.  That's it.

Your web.xml looks fine.  It's always a good idea to validate it using a
tool like XMLSpy (there are free alternatives online as well) if you're
unsure that it's valid.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Christian Ruediger [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 10:55 AM
To: Tomcat Users List
Subject: servlet deployed, but Tomcat provides .war file for download
only

Hi folks,

i have deployed a .war file, but Tomcat doesen't execute the servlet.
Instead he provides the deployed war file for download.
I have tried the deployment procedure by ANT task, by startup with war
file.
I also tried the manager web frontend.

The manager shows me the option to start the app, but when clicking the
link
the page is reloaded but the state of the app is still shown as
inactive.

The error.log is empty

The log of tomcat shows the following after depoyment

2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: start:
Starting web application at '/LocasugeGSM-0.1-dev'
2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: list:
Listing contexts for virtual host 'localhost'

Regards
Christian Ruediger

Here is the deployment descriptor:

?xml version=1.0 encoding=ISO-8859-1 ?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4

 display-nameTestservlet/display-name
 servlet
   servlet-nameRpcServlet/servlet-name
   servlet-classtestserveur.RpcServlet/servlet-class
 /servlet
 servlet-mapping
   servlet-nameRpcServlet/servlet-name
   url-pattern/servlet/RpcServlet/url-pattern
 /servlet-mapping
/web-app

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




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


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



Re: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread QM
On Mon, Oct 04, 2004 at 04:54:40PM +0200, Christian Ruediger wrote:
: i have deployed a .war file, but Tomcat doesen't execute the servlet.
: Instead he provides the deployed war file for download.

Where, specifically, is the WAR file?

If Tomcat's offering the file for download, then you likely have it one
directory too deep.

What are the contents of server.xml and, if you use it, context.xml?

-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: Tomcat becoming almost completely non-responsive

2004-10-04 Thread Kaleb Pederson
John,

Thanks for the feedback.  My code is actually quite simple and I have 
everything factored out to single function that handles the DB code.  I'll 
paste it below for you, and others to look at.  *Please let me know* if there 
is an exit path that I somehow missed.

I already have tomcat setup to log abandoned connections.  At your 
instigation, I grep'd the logs and found a few instances of it in the logs 
which I was unaware of.  Each one of them corresponds to a time we had high 
load on the server, so I, hopefully not niavely ;), am guesssing that the 
abandoned timeout was shorter (currently 60 seconds) than the time it took 
the server to respond to the request (up to 5 minutes).  I guess I should up 
the abandoned timeout as that could flame the problem.

If I'm interpreting the thread dump and mysqladmin processlist information 
correctly, what I'm seeing is that MySQL considers the DB connection to be 
sleeping, and that 48 of my active db threads were in object.wait() after a 
call to  AbandonedObjectPool.borrowObject() which seems to get called in 
every case after a call to DataSource.getConnection():

// note that I removed the org.apache.commons prefix
48 like TP-Processor312 daemon prio=1 tid=0x70331680 nid=0x5e87 waiting for 
monitor entry [6df79000..6df7a87c] at 
dbcp.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.java:316)
- waiting to lock 0x7b071438 (a dbcp.PoolableConnectionFactory)
at pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:833)
at dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:119)
at dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140)
at dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
// the function in my filter that checks the DB.
at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187)
...

Here's the code that handles the db:

 protected RedirectInfo getUrlMapping(String requestURI) {
 
  RedirectInfo retval = null;
  Connection conn = null;
  Statement statement = null;
  ResultSet result = null;

  try {
conn = ds.getConnection();
   statement = conn.createStatement();
   statement.setEscapeProcessing(true);
   result = statement.executeQuery(QUERY_UNIQUE_MATCH + quote(requestURI));
   
   if (!result.first()) {
result = statement.executeQuery(QUERY_CHILD_MATCH_1 + quote(requestURI) + 
QUERY_CHILD_MATCH_2);
   }
   
   // get the information
   if (result.first()) {
retval = new RedirectInfo(); 
retval.setURL(result.getString(1));
retval.setCode(result.getInt(2));
debug(requestURI +  -  + retval.getURL() +  [ + 
Integer.toString(retval.getCode()) + ]);
   } else {
debug(No matching redirect URL found for  + requestURI);
   }
  } catch(SQLException e) {
   log(SQLException caught:  + e.getMessage(), e);
  } finally {
   try {
// cleanup after myself
if (statement != null) statement.close();
if (conn != null) conn.close();
   } catch (SQLException e) {
log(Error cleaning up connection/statement:  + e.getMessage(),e);
   }
  }
  
  return retval;
 }

Thanks for all the help.

--Kaleb

On Sunday 03 October 2004 1:58 pm, [EMAIL PROTECTED] wrote:
 The most likely reason for your connections not being re-used is that your
 java code isn't explicitly closing connections, statements and result sets
 after use.
 If visiting all your code is too onerous a task, you could add the
 following parameters to your data-source configuration:

 parameter
   nameremoveAbandoned/name
   valuetrue/value
  /parameter
 parameter
   nameremoveAbandonedTimeout/name
   value60/value
  /parameter

 The effect of the above is to mark any data-pool connection as re-usable
 after 60 seconds of inactivity.
 You can add the following to log abandonned connection activity:

 parameter
   namelogAbandoned/name
   valuetrue/value
  /parameter

 John Thompson

 |-+
 |
 | |   Kaleb Pederson   |
 | |   [EMAIL PROTECTED]|
 | |   wu.edu  |
 | |
 | |   02/10/2004 10:07 |
 | |   AM   |
 | |   Please respond to|
 | |   Tomcat Users|
 | |   List|
 |
 |-+
 |
   
   --|
   
   |   To:   Tomcat Users List [EMAIL PROTECTED] 
   |  | cc: 
   |   |
   | Subject:  Tomcat becoming almost completely non-responsive 
   ||
   |
   
   --|

 Hello,

 I have an interesting problem.  After a while, tomcat (5.0.27) becomes

Re: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Christian Ruediger
OK,
i did as you said.
I deinstalled my tomcat, installed a new into a new folder (just to be sure).
After that I copied the extracted app into the webapp folder:
in my case the class file goes here (Just to document the path):
C:\Program Files\Tomcat 5.0\webapps\LocasugeGSM-0.1-dev\WEB-INF\classes

The browser only shows an 404 error

What do I do wrong?

Paths I have tried:
http://localhost:8080/LocasugeGSM-0.1-dev
http://localhost:8080/LocasugeGSM-0.1-dev/
http://localhost:8080/LocasugeGSM-0.1-dev/RpcServlet
http://localhost:8080/LocasugeGSM-0.1-dev/servlet/RpcServlet

I'd do anything to fix this.

Christian


On Mon, 4 Oct 2004 10:57:35 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 How about starting with the simplest approach: forget the manager,
 forget Ant.  Do a clean Tomcat installation.  Copy your webapp into the
 webapps folder (not as a WAR file, just the unpacked directory
 structure).  Start the server.  That's it.
 
 Your web.xml looks fine.  It's always a good idea to validate it using a
 tool like XMLSpy (there are free alternatives online as well) if you're
 unsure that it's valid.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 
 
 -Original Message-
 From: Christian Ruediger [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 04, 2004 10:55 AM
 To: Tomcat Users List
 Subject: servlet deployed, but Tomcat provides .war file for download
 only
 
 Hi folks,
 
 i have deployed a .war file, but Tomcat doesen't execute the servlet.
 Instead he provides the deployed war file for download.
 I have tried the deployment procedure by ANT task, by startup with war
 file.
 I also tried the manager web frontend.
 
 The manager shows me the option to start the app, but when clicking the
 link
 the page is reloaded but the state of the app is still shown as
 inactive.
 
 The error.log is empty
 
 The log of tomcat shows the following after depoyment
 
 2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: start:
 Starting web application at '/LocasugeGSM-0.1-dev'
 2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: list:
 Listing contexts for virtual host 'localhost'
 
 Regards
 Christian Ruediger
 
 Here is the deployment descriptor:
 
 ?xml version=1.0 encoding=ISO-8859-1 ?
  web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
 
  display-nameTestservlet/display-name
  servlet
servlet-nameRpcServlet/servlet-name
servlet-classtestserveur.RpcServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameRpcServlet/servlet-name
url-pattern/servlet/RpcServlet/url-pattern
  /servlet-mapping
 /web-app
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 


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



RE: Tomcat Question - HELP

2004-10-04 Thread Daniel_Salud
go back to formula...

Daniel Salud
(310)665-6583




John Najarian [EMAIL PROTECTED]
10/01/2004 05:05 PM
Please respond to Tomcat Users List

 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat Question - HELP


Can all you people take this bitching contest elsewhere?
My 9 year old knows better than to keep this up.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 4:37 PM
To: Tomcat Users List
Subject: RE: Tomcat Question - HELP

Let me summarise this thread:

1. You hate all those open source stuff
2. You are not a big fan of tomcat
3. You think we are not educated and professional
4. You will trust your web engineer over our judgement
5. You really don't care what your personal views are
6. You seem to know exactly what this forum is for an how we should run
it and behave on it
6. You won't do what you are asked (i.e. post a simple logfile)
7. You seem to think as a Unix admin that killing a process that has
an obvious, documented and non-trivial shutdown sequence is a good idea
(I'm sure DBA's will love you for this)
8. You publicly admitted to mailing Rick Moen directly for help (great
autoreply though ;-) )

What gets me is that everyone who replied to you was civil and helpful.
Really, you guys are the greatest! I'm mostly a lurker and I've totally
lost control (yes I know: YHBT. YHL. HAND.)

Daniel, I just hope for your sake that no potential future employer ever
finds this thread on Google (or that you are wisely using an alias).

Have a good weekend,

Michiel



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




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





RE: Tomcat Question - HELP

2004-10-04 Thread Daniel_Salud
That goes to you too...

Daniel Salud
(310)665-6583




[EMAIL PROTECTED]
10/01/2004 04:37 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat Question - HELP


Let me summarise this thread:

1. You hate all those open source stuff
2. You are not a big fan of tomcat
3. You think we are not educated and professional
4. You will trust your web engineer over our judgement
5. You really don't care what your personal views are
6. You seem to know exactly what this forum is for an how we should run
it and behave on it
6. You won't do what you are asked (i.e. post a simple logfile)
7. You seem to think as a Unix admin that killing a process that has
an obvious, documented and non-trivial shutdown sequence is a good idea
(I'm sure DBA's will love you for this)
8. You publicly admitted to mailing Rick Moen directly for help (great
autoreply though ;-) )

What gets me is that everyone who replied to you was civil and helpful.
Really, you guys are the greatest! I'm mostly a lurker and I've totally
lost control (yes I know: YHBT. YHL. HAND.)

Daniel, I just hope for your sake that no potential future employer ever
finds this thread on Google (or that you are wisely using an alias).

Have a good weekend,

Michiel



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





RE: Tomcat Question - HELP

2004-10-04 Thread Daniel_Salud
Michael,

its better if you just keep your comments to your self. You are so 
pathetic.

Daniel Salud
(310)665-6583




[EMAIL PROTECTED]
10/01/2004 04:37 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat Question - HELP


Let me summarise this thread:

1. You hate all those open source stuff
2. You are not a big fan of tomcat
3. You think we are not educated and professional
4. You will trust your web engineer over our judgement
5. You really don't care what your personal views are
6. You seem to know exactly what this forum is for an how we should run
it and behave on it
6. You won't do what you are asked (i.e. post a simple logfile)
7. You seem to think as a Unix admin that killing a process that has
an obvious, documented and non-trivial shutdown sequence is a good idea
(I'm sure DBA's will love you for this)
8. You publicly admitted to mailing Rick Moen directly for help (great
autoreply though ;-) )

What gets me is that everyone who replied to you was civil and helpful.
Really, you guys are the greatest! I'm mostly a lurker and I've totally
lost control (yes I know: YHBT. YHL. HAND.)

Daniel, I just hope for your sake that no potential future employer ever
finds this thread on Google (or that you are wisely using an alias).

Have a good weekend,

Michiel



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





RE: Tomcat becoming almost completely non-responsive

2004-10-04 Thread Phillip Qin
Post your datasource resource definition. You may miss something like

parameter
nametestOnBorrow/name
valuetrue/value
/parameter
parameter
nametestOnReturn/name
valuetrue/value
/parameter
parameter
nameminEvictableIdleTimeMillis/name
value-1/value
/parameter
parameter
nametimeBetweenEvictionRunsMillis/name
value30/value
/parameter
parameter
namenumTestsPerEvictionRun/name
value1/value
/parameter
parameter
nametestWhileIdle/name
valuetrue/value
/parameter


-Original Message-
From: Kaleb Pederson [mailto:[EMAIL PROTECTED] 
Sent: October 4, 2004 11:19 AM
To: Tomcat Users List
Subject: Re: Tomcat becoming almost completely non-responsive


John,

Thanks for the feedback.  My code is actually quite simple and I have 
everything factored out to single function that handles the DB code.  I'll 
paste it below for you, and others to look at.  *Please let me know* if
there 
is an exit path that I somehow missed.

I already have tomcat setup to log abandoned connections.  At your 
instigation, I grep'd the logs and found a few instances of it in the logs 
which I was unaware of.  Each one of them corresponds to a time we had high 
load on the server, so I, hopefully not niavely ;), am guesssing that the 
abandoned timeout was shorter (currently 60 seconds) than the time it took 
the server to respond to the request (up to 5 minutes).  I guess I should up

the abandoned timeout as that could flame the problem.

If I'm interpreting the thread dump and mysqladmin processlist information 
correctly, what I'm seeing is that MySQL considers the DB connection to be 
sleeping, and that 48 of my active db threads were in object.wait() after a 
call to  AbandonedObjectPool.borrowObject() which seems to get called in 
every case after a call to DataSource.getConnection():

// note that I removed the org.apache.commons prefix
48 like TP-Processor312 daemon prio=1 tid=0x70331680 nid=0x5e87 waiting
for 
monitor entry [6df79000..6df7a87c] at 
dbcp.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.java
:316)
- waiting to lock 0x7b071438 (a dbcp.PoolableConnectionFactory)
at pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:833)
at dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:119)
at dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140)
at dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
// the function in my filter that checks the DB.
at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187)
...

Here's the code that handles the db:

 protected RedirectInfo getUrlMapping(String requestURI) {
 
  RedirectInfo retval = null;
  Connection conn = null;
  Statement statement = null;
  ResultSet result = null;

  try {
conn = ds.getConnection();
   statement = conn.createStatement();
   statement.setEscapeProcessing(true);
   result = statement.executeQuery(QUERY_UNIQUE_MATCH + quote(requestURI));
   
   if (!result.first()) {
result = statement.executeQuery(QUERY_CHILD_MATCH_1 + quote(requestURI)
+ 
QUERY_CHILD_MATCH_2);
   }
   
   // get the information
   if (result.first()) {
retval = new RedirectInfo(); 
retval.setURL(result.getString(1));
retval.setCode(result.getInt(2));
debug(requestURI +  -  + retval.getURL() +  [ + 
Integer.toString(retval.getCode()) + ]);
   } else {
debug(No matching redirect URL found for  + requestURI);
   }
  } catch(SQLException e) {
   log(SQLException caught:  + e.getMessage(), e);
  } finally {
   try {
// cleanup after myself
if (statement != null) statement.close();
if (conn != null) conn.close();
   } catch (SQLException e) {
log(Error cleaning up connection/statement:  + e.getMessage(),e);
   }
  }
  
  return retval;
 }

Thanks for all the help.

--Kaleb

On Sunday 03 October 2004 1:58 pm, [EMAIL PROTECTED] wrote:
 The most likely reason for your connections not being re-used is that 
 your java code isn't explicitly closing connections, statements and 
 result sets after use. If visiting all your code is too onerous a 
 task, you could add the following parameters to your data-source 
 configuration:

 parameter
   nameremoveAbandoned/name
   valuetrue/value
  /parameter
 parameter
   nameremoveAbandonedTimeout/name
   value60/value
  /parameter

 The effect of the above is to mark any data-pool connection as 
 re-usable after 60 seconds of inactivity. You can add the following to 
 log abandonned connection activity:

 parameter
   namelogAbandoned/name
   valuetrue/value
  /parameter

 John Thompson

 |-+
 |
 | |   Kaleb Pederson   |
 | |   [EMAIL PROTECTED]|
 | |

Re: Tomcat Question - HELP

2004-10-04 Thread Mike Fowler
Daniel,
I think the same goes for you. You are attacking the generosity and 
kindness of the people on this list, and I think I speak for most of the 
list when I say that you have crossed a line. Please make your future 
posts constructive and refrain from flaming us.

-Mike Fowler
I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it
[EMAIL PROTECTED] wrote:
Michael,
its better if you just keep your comments to your self. You are so 
pathetic.

Daniel Salud
(310)665-6583

[EMAIL PROTECTED]
10/01/2004 04:37 PM
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat Question - HELP

Let me summarise this thread:
1. You hate all those open source stuff
2. You are not a big fan of tomcat
3. You think we are not educated and professional
4. You will trust your web engineer over our judgement
5. You really don't care what your personal views are
6. You seem to know exactly what this forum is for an how we should run
it and behave on it
6. You won't do what you are asked (i.e. post a simple logfile)
7. You seem to think as a Unix admin that killing a process that has
an obvious, documented and non-trivial shutdown sequence is a good idea
(I'm sure DBA's will love you for this)
8. You publicly admitted to mailing Rick Moen directly for help (great
autoreply though ;-) )
What gets me is that everyone who replied to you was civil and helpful.
Really, you guys are the greatest! I'm mostly a lurker and I've totally
lost control (yes I know: YHBT. YHL. HAND.)
Daniel, I just hope for your sake that no potential future employer ever
finds this thread on Google (or that you are wisely using an alias).
Have a good weekend,
Michiel

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


[OT] Re: Tomcat Question - HELP

2004-10-04 Thread Ben Souther
This needs to stop but if it's to continue, would everyone not mind
putting [OT] at the beginnning of the subject line?

-Thanks





On Mon, 2004-10-04 at 12:04, Mike Fowler wrote:
 Daniel,
 
 I think the same goes for you. You are attacking the generosity and 
 kindness of the people on this list, and I think I speak for most of the 
 list when I say that you have crossed a line. Please make your future 
 posts constructive and refrain from flaming us.
 
 -Mike Fowler
 I could be a genius if I just put my mind to it, and I,
 I could do anything, if only I could get 'round to it
 
 
 [EMAIL PROTECTED] wrote:
  Michael,
  
  its better if you just keep your comments to your self. You are so 
  pathetic.
  
  Daniel Salud
  (310)665-6583
  
  
  
  
  [EMAIL PROTECTED]
  10/01/2004 04:37 PM
  Please respond to Tomcat Users List
  
   
  To: Tomcat Users List [EMAIL PROTECTED]
  cc: 
  Subject:RE: Tomcat Question - HELP
  
  
  Let me summarise this thread:
  
  1. You hate all those open source stuff
  2. You are not a big fan of tomcat
  3. You think we are not educated and professional
  4. You will trust your web engineer over our judgement
  5. You really don't care what your personal views are
  6. You seem to know exactly what this forum is for an how we should run
  it and behave on it
  6. You won't do what you are asked (i.e. post a simple logfile)
  7. You seem to think as a Unix admin that killing a process that has
  an obvious, documented and non-trivial shutdown sequence is a good idea
  (I'm sure DBA's will love you for this)
  8. You publicly admitted to mailing Rick Moen directly for help (great
  autoreply though ;-) )
  
  What gets me is that everyone who replied to you was civil and helpful.
  Really, you guys are the greatest! I'm mostly a lurker and I've totally
  lost control (yes I know: YHBT. YHL. HAND.)
  
  Daniel, I just hope for your sake that no potential future employer ever
  finds this thread on Google (or that you are wisely using an alias).
  
  Have a good weekend,
  
  Michiel
  
  
  
  -
  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: Reducing network traffic for rollover images

2004-10-04 Thread Robert Hunt
Well, thanks to all the advice (and advisors), there are two workable 
solutions.

For me, I'm liking the ease of display/maintenance for now. (Just wrap an 
A around the text and voila!  You have a cool hightlighting link.) 
However, an arsenal of buttons (and the software to manage it) may be 
necessary in the future.

Thanks again! 

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


RE: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Shapira, Yoav

Hi,

Actually i used the launcher, 'cause the .bat script has some errors
while calling javac (I haven't tried to fix this yet).

Address those before going further.  You should be able to launch Tomcat
using startup.bat on Windows out of the box.  If not, something serious
is wrong.

There is, as follows an XML parser error in the stdout.log file

instruction target matching [xX][mM][lL] is not allowed.
org.xml.sax.SAXParseException: The processing instruction target

You have one messed-up configuration ;)  I'm assuming that the examples
and other default web applications that ship with Tomcat are not
working?  It's not just your webapp or just your servlet.

Yoav



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


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



Re: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Christian Ruediger
Thank you so far,

in case i find that the examples dont work on my system,
whom could I anounce the prevent others from serching to long:
Perhaps with a little comment in the Readme.

Or should I see it as it is: a special case.

Bye
Christian


On Mon, 4 Oct 2004 12:19:54 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 Actually i used the launcher, 'cause the .bat script has some errors
 while calling javac (I haven't tried to fix this yet).
 
 Address those before going further.  You should be able to launch Tomcat
 using startup.bat on Windows out of the box.  If not, something serious
 is wrong.
 
 There is, as follows an XML parser error in the stdout.log file
 
 instruction target matching [xX][mM][lL] is not allowed.
 org.xml.sax.SAXParseException: The processing instruction target
 
 You have one messed-up configuration ;)  I'm assuming that the examples
 and other default web applications that ship with Tomcat are not
 working?  It's not just your webapp or just your servlet.
 
 Yoav
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Shapira, Yoav

Hi,
Oh, it's very definitely a special case ;)  If the examples didn't work
for 99.9% of Tomcat users, we'd have heard about it loudly and clearly
by now.  That's based on actual experience, not just hypothesis ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Christian Ruediger [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 12:27 PM
To: Tomcat Users List
Subject: Re: servlet deployed, but Tomcat provides .war file for
download
only

Thank you so far,

in case i find that the examples dont work on my system,
whom could I anounce the prevent others from serching to long:
Perhaps with a little comment in the Readme.

Or should I see it as it is: a special case.

Bye
Christian


On Mon, 4 Oct 2004 12:19:54 -0400, Shapira, Yoav [EMAIL PROTECTED]
wrote:

 Hi,

 Actually i used the launcher, 'cause the .bat script has some errors
 while calling javac (I haven't tried to fix this yet).

 Address those before going further.  You should be able to launch
Tomcat
 using startup.bat on Windows out of the box.  If not, something
serious
 is wrong.

 There is, as follows an XML parser error in the stdout.log file
 
 instruction target matching [xX][mM][lL] is not allowed.
 org.xml.sax.SAXParseException: The processing instruction target

 You have one messed-up configuration ;)  I'm assuming that the
examples
 and other default web applications that ship with Tomcat are not
 working?  It's not just your webapp or just your servlet.

 Yoav

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


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



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




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


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



Re: Tomcat becoming almost completely non-responsive

2004-10-04 Thread Kaleb Pederson
My datasource definition is pretty basic and is as follows:

   !-- the db object for the mapping database --
   Resource name=jdbc/MappingDB auth=Container 
type=javax.sql.DataSource /
   ResourceParams name=jdbc/MappingDB
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter
parameter
  namelogAbandoned/name
  valuetrue/value
/parameter
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  nameusername/name
  valueredirect_user/value
/parameter
parameter
  namepassword/name
  valueredirect_pass/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.jdbc2.optional.MysqlDataSource/value
/parameter
parameter
  nameurl/name
  valuejdbc:mysql://myhost/redirects/value
/parameter
parameter
  namemaxActive/name
  value50/value
/parameter
parameter
  namemaxIdle/name
  value4/value
/parameter
parameter
  namevalidationQuery/name
  valueshow tables/value
/parameter
   /ResourceParams

Thanks for the help.

--Kaleb

On Monday 04 October 2004 8:54 am, Phillip Qin wrote:
 Post your datasource resource definition. You may miss something like

  parameter
   nametestOnBorrow/name
   valuetrue/value
  /parameter
  parameter
   nametestOnReturn/name
   valuetrue/value
  /parameter
  parameter
   nameminEvictableIdleTimeMillis/name
   value-1/value
  /parameter
  parameter
   nametimeBetweenEvictionRunsMillis/name
   value30/value
  /parameter
  parameter
   namenumTestsPerEvictionRun/name
   value1/value
  /parameter
  parameter
   nametestWhileIdle/name
   valuetrue/value
  /parameter


 -Original Message-
 From: Kaleb Pederson [mailto:[EMAIL PROTECTED]
 Sent: October 4, 2004 11:19 AM
 To: Tomcat Users List
 Subject: Re: Tomcat becoming almost completely non-responsive


 John,

 Thanks for the feedback.  My code is actually quite simple and I have
 everything factored out to single function that handles the DB code.  I'll
 paste it below for you, and others to look at.  *Please let me know* if
 there
 is an exit path that I somehow missed.

 I already have tomcat setup to log abandoned connections.  At your
 instigation, I grep'd the logs and found a few instances of it in the logs
 which I was unaware of.  Each one of them corresponds to a time we had high
 load on the server, so I, hopefully not niavely ;), am guesssing that the
 abandoned timeout was shorter (currently 60 seconds) than the time it took
 the server to respond to the request (up to 5 minutes).  I guess I should
 up

 the abandoned timeout as that could flame the problem.

 If I'm interpreting the thread dump and mysqladmin processlist information
 correctly, what I'm seeing is that MySQL considers the DB connection to be
 sleeping, and that 48 of my active db threads were in object.wait() after a
 call to  AbandonedObjectPool.borrowObject() which seems to get called in
 every case after a call to DataSource.getConnection():

 // note that I removed the org.apache.commons prefix
 48 like TP-Processor312 daemon prio=1 tid=0x70331680 nid=0x5e87 waiting
 for
 monitor entry [6df79000..6df7a87c] at
 dbcp.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.jav
a

 :316)

 - waiting to lock 0x7b071438 (a dbcp.PoolableConnectionFactory)
 at pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:833)
 at dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:119)
 at dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140)
 at dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
 // the function in my filter that checks the DB.
 at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187)
 ...

 Here's the code that handles the db:

  protected RedirectInfo getUrlMapping(String requestURI) {

   RedirectInfo retval = null;
   Connection conn = null;
   Statement statement = null;
   ResultSet result = null;

   try {
 conn = ds.getConnection();
statement = conn.createStatement();
statement.setEscapeProcessing(true);
result = statement.executeQuery(QUERY_UNIQUE_MATCH + quote(requestURI));

if (!result.first()) {
 result = statement.executeQuery(QUERY_CHILD_MATCH_1 + quote(requestURI)
 +
 QUERY_CHILD_MATCH_2);
}

// get the information
if (result.first()) {
 retval = new RedirectInfo();
 retval.setURL(result.getString(1));
 retval.setCode(result.getInt(2));
 debug(requestURI +  -  + retval.getURL() +  [ +
 Integer.toString(retval.getCode()) + ]);
} else {
 debug(No matching redirect URL found for  + requestURI);
}
   } catch(SQLException e) {
log(SQLException caught:  + e.getMessage(), e);
   } finally {
try {
 // cleanup after myself
 if (statement != 

help-me

2004-10-04 Thread Levi Oliveira da Silva








Hi,

My
system is Red Hat version
9, and has installed Apache 2.0.40, Tomcat 4.1.27 and the J2SDK 4.2_04, I do
not obtain to compile jakarta-tomcat-connectors-jk-1.2.6-src returns error in
the compilation; I installed mod_jk2-2.0.4-6.rpm and I do not obtain to make
the connection between Tomcat and Apache. 

What
to make to function? 

Levi










RE: help-me

2004-10-04 Thread Shapira, Yoav

Hi,
One question that's good to ask if whether you need Apache, or whether Tomcat by 
itself can meet your requirements.  Tomcat can serve static content such as HTML and 
images.  So on this list, we frequently suggest that new Tomcat users first try Tomcat 
by itself.  You can always add Apache to the mix later, and worry about the connectors 
(mod_jk or whichever one you want) later.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Levi Oliveira da Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 12:42 PM
To: [EMAIL PROTECTED]
Subject: help-me

Hi,
My system is Red Hat version 9, and has installed Apache 2.0.40, Tomcat 4.1.27 and the 
J2SDK 4.2_04, I do not obtain to compile jakarta-tomcat-connectors-jk-1.2.6-src 
returns error in the compilation; I installed mod_jk2-2.0.4-6.rpm and I do not obtain 
to make the connection between Tomcat and Apache.
What to make to function?
Levi
 



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


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



RES: help-me

2004-10-04 Thread Levi Oliveira da Silva
Yes, I need the Apache due security SSL, and the Tomcat as serving of
applications Java Server Pages. Separate the Tomcat functions, the
problem is in the connection with the Apache.

Levi

-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Enviada em: segunda-feira, 4 de outubro de 2004 13:45
Para: Tomcat Users List
Assunto: RE: help-me


Hi,
One question that's good to ask if whether you need Apache, or whether
Tomcat by itself can meet your requirements.  Tomcat can serve static
content such as HTML and images.  So on this list, we frequently suggest
that new Tomcat users first try Tomcat by itself.  You can always add
Apache to the mix later, and worry about the connectors (mod_jk or
whichever one you want) later.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Levi Oliveira da Silva
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 04, 2004 12:42 PM
To: [EMAIL PROTECTED]
Subject: help-me

Hi,
My system is Red Hat version 9, and has installed Apache 2.0.40, Tomcat
4.1.27 and the J2SDK 4.2_04, I do not obtain to compile
jakarta-tomcat-connectors-jk-1.2.6-src returns error in the compilation;
I installed mod_jk2-2.0.4-6.rpm and I do not obtain to make the
connection between Tomcat and Apache. 
What to make to function? 
Levi
 



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


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


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



jk isapi_redirector2.dll @ http://jakarta.apache.org/~mturk/

2004-10-04 Thread Woodchuck
hihi all,

does anyone have more information about this web page:

http://jakarta.apache.org/~mturk/

and the isapi_redirector2.dll found there?

i upgraded from jk 2.0.4's dll to this one and it fixed the uploading
files problem (with commons-fileupload.jar), but we have other web apps
that are running behind this .dll also.

does anyone have any other information about the differences between
this dll and the jk 2.0.4 dll?  i'm wondering how much
retesting/regression testing should be done for the other apps that
were working fine under the jk 2.0.4 dll.  has anyone that had to do
this upgrade experienced any side effects?

any info, suggestions on this is greatly appreciated.

please and thanks,
woodchuck



__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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



inmemory tomcat container is not getting created on Apache[Apache/2.0.48 (Win32) mod_jk2/2.0.4] Server

2004-10-04 Thread Sato
i started apache Apache/2.0.48 (Win32) mod_jk2/2.0.4 Server, Can
anyone suggest me to solve this issue?

THe following error appears:

[Thu Oct 21 14:04:52 2004] [notice] shm.create() Created head 830008 size 8192
[Thu Oct 21 14:04:52 2004] [notice] Child 480: Child process is running
[Thu Oct 21 14:04:52 2004] [notice] jk2_init() Setting scoreboard slot
0 for child 480
[Thu Oct 21 14:04:52 2004] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2re1.4.2_04\bin\client\jvm.dll
[Thu Oct 21 14:04:53 2004] [notice] vm.open2() done
[Thu Oct 21 14:04:53 2004] [error] workerEnv.initChannel() init failed
for channel.jni:jni
[Thu Oct 21 14:04:53 2004] [notice] workerJni.Init() Skipping
initialization for the 480 480
[Thu Oct 21 14:04:53 2004] [error] workerEnv.initWorkers() init failed
for worker.jni:onStartup
[Thu Oct 21 14:04:53 2004] [notice] workerJni.Init() Skipping
initialization for the 480 480
[Thu Oct 21 14:04:53 2004] [error] workerEnv.initWorkers() init failed
for worker.jni:onShutdown
[Thu Oct 21 14:04:53 2004] [notice] workerEnv.init() ok C:/Program
Files/Apache Group/Apache2/conf/workers2.properties
[Thu Oct 21 14:04:53 2004] [notice] mod_jk2 child 480 initialized
[Thu Oct 21 14:04:53 2004] [notice] Child 480: Acquired the start mutex.
[Thu Oct 21 14:04:54 2004] [notice] Child 480: Starting 250 worker threads.


Config files:
workers2.properties location:$APACHE_HOME$/conf

# only at beginnin. In production uncomment it out
[shm]
file=C:/Program Files/Apache Group/Apache2/logs/shm.mem
size=1048576

[logger.apache2]
level=DEBUG
# Define the comunication channel
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

# Define the parameters for the Java Virtual Machine
[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=${TOMCAT_HOME}/server/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/tomcat.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start

#stdout=${serverRoot}/logs/stdout.log
#stderr=/logs/stderr.log
stdout=C:/Program Files/Apache Group/Apache2/logs/stdout.log
stderr=C:/Program Files/Apache Group/Apache2/logs/stderr.log

# JNI worker shutdown handler
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop

# Map the Tomcat examples webapp to the Web server uri space
[uri:/*]
info=Map the whole webapp

jk2.properties location:$TOMCAT_HOME$/conf

# The default port is 8009 but you can use another one
channelSocket.port=8009

# Add the apr and channelJni to the list of handlers
handler.list=apr,request,container,channelJni
# The native libraries will be registered by JK2
apr.jniModeSo=inprocess

-- 
Cheers,
Sato.
+91 98851 47885

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



basic authentication

2004-10-04 Thread Stephen Charles Huey
Anybody have a clue as to why my basic authentication box would keep
coming back at me 2-6 times before letting me in, even though I'm typing
the correct username and password every single time?  This is Tomcat
4.1.27

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



Re: Tomcat becoming almost completely non-responsive

2004-10-04 Thread David Smith
I think I see the problem.  Don't use 
com.mysql.jdbc.jdbc2.optional.MysqlDataSource in your config.  Instead, 
use com.mysql.jdbc.Driver.  I tried using the same one you did at first 
and it never worked with DBCP for me.

--David
Kaleb Pederson wrote:
My datasource definition is pretty basic and is as follows:
  !-- the db object for the mapping database --
  Resource name=jdbc/MappingDB auth=Container 
type=javax.sql.DataSource /
  ResourceParams name=jdbc/MappingDB
   parameter
 nameremoveAbandoned/name
 valuetrue/value
   /parameter
   parameter
 nameremoveAbandonedTimeout/name
 value60/value
   /parameter
   parameter
 namelogAbandoned/name
 valuetrue/value
   /parameter
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 nameusername/name
 valueredirect_user/value
   /parameter
   parameter
 namepassword/name
 valueredirect_pass/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.jdbc2.optional.MysqlDataSource/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:mysql://myhost/redirects/value
   /parameter
   parameter
 namemaxActive/name
 value50/value
   /parameter
   parameter
 namemaxIdle/name
 value4/value
   /parameter
   parameter
 namevalidationQuery/name
 valueshow tables/value
   /parameter
  /ResourceParams

Thanks for the help.
--Kaleb
On Monday 04 October 2004 8:54 am, Phillip Qin wrote:
 

Post your datasource resource definition. You may miss something like
parameter
 nametestOnBorrow/name
 valuetrue/value
/parameter
parameter
 nametestOnReturn/name
 valuetrue/value
/parameter
parameter
 nameminEvictableIdleTimeMillis/name
 value-1/value
/parameter
parameter
 nametimeBetweenEvictionRunsMillis/name
 value30/value
/parameter
parameter
 namenumTestsPerEvictionRun/name
 value1/value
/parameter
parameter
 nametestWhileIdle/name
 valuetrue/value
/parameter
-Original Message-
From: Kaleb Pederson [mailto:[EMAIL PROTECTED]
Sent: October 4, 2004 11:19 AM
To: Tomcat Users List
Subject: Re: Tomcat becoming almost completely non-responsive
John,
Thanks for the feedback.  My code is actually quite simple and I have
everything factored out to single function that handles the DB code.  I'll
paste it below for you, and others to look at.  *Please let me know* if
there
is an exit path that I somehow missed.
I already have tomcat setup to log abandoned connections.  At your
instigation, I grep'd the logs and found a few instances of it in the logs
which I was unaware of.  Each one of them corresponds to a time we had high
load on the server, so I, hopefully not niavely ;), am guesssing that the
abandoned timeout was shorter (currently 60 seconds) than the time it took
the server to respond to the request (up to 5 minutes).  I guess I should
up
the abandoned timeout as that could flame the problem.
If I'm interpreting the thread dump and mysqladmin processlist information
correctly, what I'm seeing is that MySQL considers the DB connection to be
sleeping, and that 48 of my active db threads were in object.wait() after a
call to  AbandonedObjectPool.borrowObject() which seems to get called in
every case after a call to DataSource.getConnection():
// note that I removed the org.apache.commons prefix
48 like TP-Processor312 daemon prio=1 tid=0x70331680 nid=0x5e87 waiting
for
monitor entry [6df79000..6df7a87c] at
dbcp.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.jav
a
:316)
   - waiting to lock 0x7b071438 (a dbcp.PoolableConnectionFactory)
   at pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:833)
   at dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:119)
   at dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140)
   at dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
   // the function in my filter that checks the DB.
   at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187)
   ...
Here's the code that handles the db:
protected RedirectInfo getUrlMapping(String requestURI) {
 RedirectInfo retval = null;
 Connection conn = null;
 Statement statement = null;
 ResultSet result = null;
 try {
   conn = ds.getConnection();
  statement = conn.createStatement();
  statement.setEscapeProcessing(true);
  result = statement.executeQuery(QUERY_UNIQUE_MATCH + quote(requestURI));
  if (!result.first()) {
   result = statement.executeQuery(QUERY_CHILD_MATCH_1 + quote(requestURI)
+
QUERY_CHILD_MATCH_2);
  }
  // get the information
  if (result.first()) {
   retval = new RedirectInfo();
   retval.setURL(result.getString(1));
   retval.setCode(result.getInt(2));
   debug(requestURI +  -  + retval.getURL() +  [ +
Integer.toString(retval.getCode()) + ]);
  } else {
   debug(No matching redirect URL found for  + requestURI);
  }
 } catch(SQLException e) {
  log(SQLException caught:  + e.getMessage(), e);
 } finally {
  try {
   // cleanup 

Re: RES: help-me

2004-10-04 Thread Ben Souther
And you're aware that Tomcat can handle SSL too, right?


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






On Mon, 2004-10-04 at 12:53, Levi Oliveira da Silva wrote:
 Yes, I need the Apache due security SSL, and the Tomcat as serving of
 applications Java Server Pages. Separate the Tomcat functions, the
 problem is in the connection with the Apache.
 
 Levi
 
 -Mensagem original-
 De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Enviada em: segunda-feira, 4 de outubro de 2004 13:45
 Para: Tomcat Users List
 Assunto: RE: help-me
 
 
 Hi,
 One question that's good to ask if whether you need Apache, or whether
 Tomcat by itself can meet your requirements.  Tomcat can serve static
 content such as HTML and images.  So on this list, we frequently suggest
 that new Tomcat users first try Tomcat by itself.  You can always add
 Apache to the mix later, and worry about the connectors (mod_jk or
 whichever one you want) later.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Levi Oliveira da Silva
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 04, 2004 12:42 PM
 To: [EMAIL PROTECTED]
 Subject: help-me
 
 Hi,
 My system is Red Hat version 9, and has installed Apache 2.0.40, Tomcat
 4.1.27 and the J2SDK 4.2_04, I do not obtain to compile
 jakarta-tomcat-connectors-jk-1.2.6-src returns error in the compilation;
 I installed mod_jk2-2.0.4-6.rpm and I do not obtain to make the
 connection between Tomcat and Apache. 
 What to make to function? 
 Levi
  
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Reducing network traffic for rollover images

2004-10-04 Thread Cott Lang
You might want to play with mod_expires to set expiration headers on
images.


On Fri, 2004-10-01 at 10:44, Robert Hunt wrote:
 Is there a way (as in, response header or other HTTPServletResponse setting) 
 that can persuade a
 browser to use a cached version of an GIF/JPG that's used for a rollover 
 effect?
 I'd like to reduce the network traffic (and perhaps improve the browser's 
 response)
 from browsers that attempt to (re)load a rollover image for every tiny 
 mousemove increment --
 only to receive a 304 response anyway.
 
 
 -- RH 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: tomcat 5.x windows installer

2004-10-04 Thread Christopher Watson
Shapira, Yoav wrote:
Hi,
 

My reason for preferring the installer over the zip is that - when it
works - I can do a faily painless upgrade by uninstalling leaving the
webapps etc alone and reinstalling an upgrade version to the same
directory. This is not so easy using the zip distribution.
Any help would be appreciated.
   

It's funny -- I prefer using the .zip versions because I think their
upgrade process is much easier than the services'. 

I'm coming round to you way of thinking, but then why is the .exe 
included in the dist? What's its added value ?

Simply install new
zip to different $CATALINA_HOME directory, and copy over webapps. 

If only ;) And the bits from conf - server.xml bits, tomcat-users, but 
then they have a habit of getting scrunched by the .exe anyhow !

Then I use jk2 for ajp13 redirection from IIS [I have no editorial 
control over choice of IIS :( ], so I'd have to fiddle with the 
redirector registry entries and such like,

but actually, you've just given me an idea ...
...
But really, am I the only sad M$ person who has trouble with the 
installer? As I said, it never used to be a problem around 5.0.19ish. 
Any thoughts?

This
might have to do with me not trusting the Windows registry as much as I
do the filesystem, though ;)
 

To be sure.
Yoav

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


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


RE: How to make Apache direct Servlet to Tomcat

2004-10-04 Thread Daxin Zuo
Bellow is my Apache2/conf/wrokers2.property.
I also wonder if I need to add an listner like
Listener className=org.apache.ajp.tomcat5.config.ApacheConfig / in the
httpd.conf file

wrokers2.property:
[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]
Bellow is the
# Example socket channel, override port and host.
[channel.socket:MyComputerIP:8009]
port=8009
host=MyComputerIP

# define the worker
[ajp13:MyComputerIP:8009]
channel=channel.socket:MyComputerIP:8009
group=lb

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=lb

[uri:/www/*]
group=lb


[uri:/jdbcRowset/*]
group=lb

[status:]
info=Status worker, displays runtime information

[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:

Thank you.

-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 6:22 PM
To: 'Tomcat Users List'
Subject: RE: How to make Apache direct Servlet to Tomcat


I can't see your attachments.  Just paste the relevant parts in the body of
the email.

-Original Message-
From: Daxin Zuo [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 5:15 PM
To: Tomcat Users List
Subject: RE: How to make Apache direct Servlet to Tomcat


Thank you for your attention.
The Apache2/conf/wrokers2.property is attached. The Tomcat/conf/jk2.property
is empty, all lines are commented. in the httpd.conf I added: LoadModule
jk2_module modules/mod_jk2-2.0.43.so the .so files are in apache2/modules

Thanks

-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 1:23 PM
To: 'Tomcat Users List'
Subject: RE: How to make Apache direct Servlet to Tomcat


Hi,

It should be done the same way you redirected jsp requests to tomcat.  It
needs to be mapped in your jk (or jk2) properties file.  Post the relevant
parts of your properties file if you're not sure why it doesn't work.


-Original Message-
From: Daxin Zuo [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 1:38 PM
To: Tomcat Users List
Subject: How to make Apache direct Servlet to Tomcat


On my Apache 2.0.43 + Tomcat5.0.28 on UNIX sparc, I can run the same JSP
files from both Apache and Tomcat, and run servlets on Tomcat, but I cannot
run Servlet from Apache. I register the servlet in
tomcat/webapps/www/WEB-INF/web.xml:
servlet
 servlet-nameServletTest/servlet-name
servlet-classServletTest/servlet-class
/servlet
servlet-mapping
servlet-nameServletTest/servlet-name
url-pattern/ServletTest/url-pattern
/servlet-mapping

/www is the DocBase.
The error message on the screen is: /ServletTest was not found on this
server. From the Apache error log, I see Apache looked for the file in
Apache htdocs folder, instead pass the request to Tomcat.

When I start Tomcat I get some errors. The are probably not related to the
problem above. the errors are:
1) in catalina.out

INFO: Installing web application at context path /balancer from URL
file:/usr/local/apache2/jakarta-tomcat-5.0.28/webapps/balancer
Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
.

2) in localhost_log.2004-10-01.txt
2004-10-01 10:14:50 StandardContext[/balancer]Exception starting filter
BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at
org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:65)
...

Please help me with the servlet problem.


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

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


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


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



Re: Tomcat becoming almost completely non-responsive

2004-10-04 Thread Kaleb Pederson
Has anybody else had success or failures with the  
com.mysql.jdbc.jdbc2.optional.MysqlDataSource driver and DBCP?  Does 
the ...DBCP driver correctly integrate with the com.mysql.Driver class so 
that connection pooling is still valid?

What I seem to remember from my initial research in setting it up (which was 
quite a while ago) was that I needed to use the 
former, ...optional.MysqlDataSource.

Thanks for all the feedback and help.

--Kaleb

On Monday 04 October 2004 10:34 am, David Smith wrote:
 I think I see the problem.  Don't use
 com.mysql.jdbc.jdbc2.optional.MysqlDataSource in your config.  Instead,
 use com.mysql.jdbc.Driver.  I tried using the same one you did at first
 and it never worked with DBCP for me.

 --David

 Kaleb Pederson wrote:
 My datasource definition is pretty basic and is as follows:
 
!-- the db object for the mapping database --
Resource name=jdbc/MappingDB auth=Container
 type=javax.sql.DataSource /
ResourceParams name=jdbc/MappingDB
 parameter
   nameremoveAbandoned/name
   valuetrue/value
 /parameter
 parameter
   nameremoveAbandonedTimeout/name
   value60/value
 /parameter
 parameter
   namelogAbandoned/name
   valuetrue/value
 /parameter
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   nameusername/name
   valueredirect_user/value
 /parameter
 parameter
   namepassword/name
   valueredirect_pass/value
 /parameter
 parameter
   namedriverClassName/name
   valuecom.mysql.jdbc.jdbc2.optional.MysqlDataSource/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:mysql://myhost/redirects/value
 /parameter
 parameter
   namemaxActive/name
   value50/value
 /parameter
 parameter
   namemaxIdle/name
   value4/value
 /parameter
 parameter
   namevalidationQuery/name
   valueshow tables/value
 /parameter
/ResourceParams
 
 Thanks for the help.
 
 --Kaleb
 
 On Monday 04 October 2004 8:54 am, Phillip Qin wrote:
 Post your datasource resource definition. You may miss something like
 
  parameter
   nametestOnBorrow/name
   valuetrue/value
  /parameter
  parameter
   nametestOnReturn/name
   valuetrue/value
  /parameter
  parameter
   nameminEvictableIdleTimeMillis/name
   value-1/value
  /parameter
  parameter
   nametimeBetweenEvictionRunsMillis/name
   value30/value
  /parameter
  parameter
   namenumTestsPerEvictionRun/name
   value1/value
  /parameter
  parameter
   nametestWhileIdle/name
   valuetrue/value
  /parameter
 
 
 -Original Message-
 From: Kaleb Pederson [mailto:[EMAIL PROTECTED]
 Sent: October 4, 2004 11:19 AM
 To: Tomcat Users List
 Subject: Re: Tomcat becoming almost completely non-responsive
 
 
 John,
 
 Thanks for the feedback.  My code is actually quite simple and I have
 everything factored out to single function that handles the DB code. 
  I'll paste it below for you, and others to look at.  *Please let me
  know* if there
 is an exit path that I somehow missed.
 
 I already have tomcat setup to log abandoned connections.  At your
 instigation, I grep'd the logs and found a few instances of it in the
  logs which I was unaware of.  Each one of them corresponds to a time we
  had high load on the server, so I, hopefully not niavely ;), am
  guesssing that the abandoned timeout was shorter (currently 60 seconds)
  than the time it took the server to respond to the request (up to 5
  minutes).  I guess I should up
 
 the abandoned timeout as that could flame the problem.
 
 If I'm interpreting the thread dump and mysqladmin processlist
  information correctly, what I'm seeing is that MySQL considers the DB
  connection to be sleeping, and that 48 of my active db threads were in
  object.wait() after a call to  AbandonedObjectPool.borrowObject() which
  seems to get called in every case after a call to
  DataSource.getConnection():
 
 // note that I removed the org.apache.commons prefix
 48 like TP-Processor312 daemon prio=1 tid=0x70331680 nid=0x5e87 waiting
 for
 monitor entry [6df79000..6df7a87c] at
 dbcp.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.j
 av a
 
 :316)
 
 - waiting to lock 0x7b071438 (a dbcp.PoolableConnectionFactory)
 at
  pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:833) at
  dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:119) at
  dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140) at
  dbcp.BasicDataSource.getConnection(BasicDataSource.java:518) // the
  function in my filter that checks the DB.
 at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187)
 ...
 
 Here's the code that handles the db:
 
  protected RedirectInfo getUrlMapping(String requestURI) {
 
   RedirectInfo retval = null;
   Connection conn = null;
   Statement statement = null;
   ResultSet result = null;

RE: type in twice for basic authentication???

2004-10-04 Thread Mark Thomas
You should definitely try 4.1.30 (or 5.0.27). There were a bunch of fixes
between 4.1.29 and 4.1.30 to the JDBC realm. There is a good chance that the
behaviour you see is related to bug 11929.

Mark

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 04, 2004 2:12 PM
 To: Tomcat Users List
 Subject: RE: type in twice for basic authentication???
 
 
 Hi,
 Does 4.1.30 behave better?  Or 5.0.27?
 
 (5.0.28 has http://issues.apache.org/bugzilla/show_bug.cgi?id=31372
 which might affect this use-case)
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Stephen Charles Huey [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 04, 2004 1:59 AM
 To: Tomcat Users List
 Subject: RE: type in twice for basic authentication???
 
 Tomcat 4.1.27 -- please help!
 
 
 - Original message -
 From: Mark Thomas [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Date: Sat, 2 Oct 2004 10:03:49 +0100
 Subject: RE: type in twice for basic authentication???
 
 What version of tomcat?
 
  -Original Message-
  From: Stephen Charles Huey [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 01, 2004 11:38 PM
  To: Tomcat Users List
  Subject: Re: type in twice for basic authentication???
 
  Yeah, I need some major help on this to figure out what's
  going on!  We
  have a Windows version and a Linux version of the database.  I just
  changed my DSN over to the Linux one, and now it pops up 4
  times!!!  No,
  wait...sometimes it still logs you in just after 2 times, and
  sometimes
  it takes as many as 6!  Also, sometimes when browsing the
  site, it makes
  you log in again in places where it didn't used to.
 
  You see, we have a main database that drives our web app, but
  we've been
  using a MySQL db to authenticate, and we'd like to get rid of
  that so we
  can just deal with one database.  However, our main database
  is behaving
  strangely.  Now, when clicking over to some of the other 
 JSPs in the
  site, it will pop up and ask for the username and password in
  places it
  didn't used to do that (and no, it shouldn't be changing 
 contexts or
  anything like that).
 
 
 
  - Original message -
  From: Stephen Charles Huey [EMAIL PROTECTED]
  To: Tomcat User [EMAIL PROTECTED]
  Date: Fri, 01 Oct 2004 17:10:32 -0500
  Subject: type in twice for basic authentication???
 
  When my web app pops up a basic authentication box, I type in the
  username and password, and then it bounces back with blank 
 text boxes
  asking for it again.  Every time when I type them in a 
 second time it
  then lets me in!  What's going on?  Here's what I have in my
  server.xml:
 
 
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
  connectionURL=jdbc:odbc:dbname
  userTable=users userNameCol=userid userCredCol=password
  userRoleTable=roles roleNameCol=role /
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



RE: Tomcat becoming almost completely non-responsive

2004-10-04 Thread Phillip Qin
Can you add the stuff from my email?

-Original Message-
From: Kaleb Pederson [mailto:[EMAIL PROTECTED] 
Sent: October 4, 2004 12:40 PM
To: Tomcat Users List
Subject: Re: Tomcat becoming almost completely non-responsive


My datasource definition is pretty basic and is as follows:

   !-- the db object for the mapping database --
   Resource name=jdbc/MappingDB auth=Container 
type=javax.sql.DataSource /
   ResourceParams name=jdbc/MappingDB
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter
parameter
  namelogAbandoned/name
  valuetrue/value
/parameter
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  nameusername/name
  valueredirect_user/value
/parameter
parameter
  namepassword/name
  valueredirect_pass/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.jdbc2.optional.MysqlDataSource/value
/parameter
parameter
  nameurl/name
  valuejdbc:mysql://myhost/redirects/value
/parameter
parameter
  namemaxActive/name
  value50/value
/parameter
parameter
  namemaxIdle/name
  value4/value
/parameter
parameter
  namevalidationQuery/name
  valueshow tables/value
/parameter
   /ResourceParams

Thanks for the help.

--Kaleb

On Monday 04 October 2004 8:54 am, Phillip Qin wrote:
 Post your datasource resource definition. You may miss something like

  parameter
   nametestOnBorrow/name
   valuetrue/value
  /parameter
  parameter
   nametestOnReturn/name
   valuetrue/value
  /parameter
  parameter
   nameminEvictableIdleTimeMillis/name
   value-1/value
  /parameter
  parameter
   nametimeBetweenEvictionRunsMillis/name
   value30/value
  /parameter
  parameter
   namenumTestsPerEvictionRun/name
   value1/value
  /parameter
  parameter
   nametestWhileIdle/name
   valuetrue/value
  /parameter


 -Original Message-
 From: Kaleb Pederson [mailto:[EMAIL PROTECTED]
 Sent: October 4, 2004 11:19 AM
 To: Tomcat Users List
 Subject: Re: Tomcat becoming almost completely non-responsive


 John,

 Thanks for the feedback.  My code is actually quite simple and I have 
 everything factored out to single function that handles the DB code.  
 I'll paste it below for you, and others to look at.  *Please let me 
 know* if there is an exit path that I somehow missed.

 I already have tomcat setup to log abandoned connections.  At your 
 instigation, I grep'd the logs and found a few instances of it in the 
 logs which I was unaware of.  Each one of them corresponds to a time 
 we had high load on the server, so I, hopefully not niavely ;), am 
 guesssing that the abandoned timeout was shorter (currently 60 
 seconds) than the time it took the server to respond to the request 
 (up to 5 minutes).  I guess I should up

 the abandoned timeout as that could flame the problem.

 If I'm interpreting the thread dump and mysqladmin processlist 
 information correctly, what I'm seeing is that MySQL considers the DB 
 connection to be sleeping, and that 48 of my active db threads were in 
 object.wait() after a call to  AbandonedObjectPool.borrowObject() 
 which seems to get called in every case after a call to 
 DataSource.getConnection():

 // note that I removed the org.apache.commons prefix
 48 like TP-Processor312 daemon prio=1 tid=0x70331680 nid=0x5e87 
waiting  for  monitor entry [6df79000..6df7a87c] at

dbcp.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.jav
a

 :316)

 - waiting to lock 0x7b071438 (a dbcp.PoolableConnectionFactory)
 at
pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:833)
 at dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:119)
 at dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140)
 at dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
 // the function in my filter that checks the DB.
 at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187)
 ...

 Here's the code that handles the db:

  protected RedirectInfo getUrlMapping(String requestURI) {

   RedirectInfo retval = null;
   Connection conn = null;
   Statement statement = null;
   ResultSet result = null;

   try {
 conn = ds.getConnection();
statement = conn.createStatement();
statement.setEscapeProcessing(true);
result = statement.executeQuery(QUERY_UNIQUE_MATCH + 
 quote(requestURI));

if (!result.first()) {
 result = statement.executeQuery(QUERY_CHILD_MATCH_1 + 
 quote(requestURI)
 +
 QUERY_CHILD_MATCH_2);
}

// get the information
if (result.first()) {
 retval = new RedirectInfo();
 retval.setURL(result.getString(1));
 retval.setCode(result.getInt(2));
 debug(requestURI +  -  + retval.getURL() +  [ +
 

Re: 5.0.28 stack overflow?

2004-10-04 Thread Cott Lang
Good guess, but no... not using anything of the sort. :)

Yoav, I agree, 99.9% of the time, it's my fault. As you can see in the
stack trace, it's being called directly from Struts. I don't really see
how my code could cause this.

It sure looks like ApplicationHttpRequest.getRequest() returned itself a
copy of itself...

I didn't notice the CPU, I caught this fairly quickly. 



On Mon, 2004-10-04 at 04:13, Tim Funk wrote:
 I'm guessing your using an HttpServletRequestWrapper. My guess might be the 
 way your implementation overrode getRequest() might be doing wacky things.
 
 ApplicationHttpRequest extends HttpServletRequestWrapper
 
 -Tim
 
 Cott Lang wrote:
 
  Anyone ever seen one like this? :)
  
  
  ApplicationDispatcher[] Servlet.service() for servlet action threw
  exception
  java.lang.StackOverflowError
  at
  org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:208)
  at
  org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
  at
  org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:220)
  at
 
 
 -
 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]



Problems with jakarta-tomcat-connectors-jk2-2.0.[24]-src/jk/native2/configure and HP-UX 11.0

2004-10-04 Thread HORSTMAN, MARK A \(SBCSI\)
I cannot get the jk/native2/configure script that comes with 
jakarta-tomcat-connectors-jk2-2.0.4-src (or jakarta-tomcat-connectors-jk2-2.0.2-src) 
to work without errors under HP-UX 11.0.  The problems occur when the script does 
something like:

if ${TEST} ${apxs_support} = false ; then

or

if ${TEST} -z $tempval ; then

and the variable being tested has not been previously set.  With 'set -x' turned on to 
assist in debugging, the first test gives an error of:

+ /usr/bin/test  = false
/usr/bin/test[7]: test: Specify a parameter with this command.

while the second ones gives:

+ /usr/bin/test -z
/usr/bin/test[7]: test: Specify a parameter with this command.


This style of variable checking is used extensively throughout the script.  Short of 
hacking each one to be something like:

if ${TEST} ${apxs_support}x = falsex ; then

or

if ${TEST} ${tempval}x = x ; then

does anyone have any ideas how I can get around this?  Is this an autoconf issue?

I've tried re-generating the configure script using buildconf.sh by installing GNU 
autoconf-2.58, automake-1.9.2 and libtool-1.5.8 but I get the same problems.

Mark A. Horstman
SBC Services, Inc.
St. Louis, MO  63101


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



Re: Tomcat becoming almost completely non-responsive

2004-10-04 Thread Kaleb Pederson
On Monday 04 October 2004 1:08 pm, Phillip Qin wrote:
 Can you add the stuff from my email?

I added them to the file and will restart the server when it will cause the 
least trouble (or next time it goes down).

What extra information do you believe this provide that I should be looking 
for?

Thanks again.

--Kaleb

 -Original Message-
 From: Kaleb Pederson [mailto:[EMAIL PROTECTED]
 Sent: October 4, 2004 12:40 PM
 To: Tomcat Users List
 Subject: Re: Tomcat becoming almost completely non-responsive


 My datasource definition is pretty basic and is as follows:

!-- the db object for the mapping database --
Resource name=jdbc/MappingDB auth=Container
 type=javax.sql.DataSource /
ResourceParams name=jdbc/MappingDB
 parameter
   nameremoveAbandoned/name
   valuetrue/value
 /parameter
 parameter
   nameremoveAbandonedTimeout/name
   value60/value
 /parameter
 parameter
   namelogAbandoned/name
   valuetrue/value
 /parameter
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   nameusername/name
   valueredirect_user/value
 /parameter
 parameter
   namepassword/name
   valueredirect_pass/value
 /parameter
 parameter
   namedriverClassName/name
   valuecom.mysql.jdbc.jdbc2.optional.MysqlDataSource/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:mysql://myhost/redirects/value
 /parameter
 parameter
   namemaxActive/name
   value50/value
 /parameter
 parameter
   namemaxIdle/name
   value4/value
 /parameter
 parameter
   namevalidationQuery/name
   valueshow tables/value
 /parameter
/ResourceParams

 Thanks for the help.

 --Kaleb


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



Re: Using XInclude in tomcat's config files

2004-10-04 Thread Shankar Unni
Pawson, David wrote:
Try an entity instead of xinclude? Not many parsers are good
for xinclude as yet (a mainly uninformed statement). Entity
resolution is easier if the parser is setup correctly.
Oh, that's what we are doing now, but entity resolution doesn't have a 
concept of relative paths. I.e. if you have a file called 
/path/to/foo.xml, which does an entity include of 
file:../somewhere/params.dtd, then the path is not interpreted in 
relation to its including file (i.e. as 
/path/to/../somewhere/params.dtd), but instead in relation to $cwd 
(i.e. it's literally opened as ../somewhere/params.dtd).

This makes it nearly useless, as you are *forced* to cd to /path/to 
before you can process the foo.xml file. On the other hand, if you use 
absolute path names, that makes it difficult to move the files around.

All in all, entity includes are inflexible and a terrific pain to work with.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Directories under webapps showing up

2004-10-04 Thread Jeff Faath
Hello,

I have finally figured out how to install my web
application as the default app for Tomcat (thereby
forgoing the standard page under the ROOT directory).

So, to get to welcome page of my app, all you need to
do is access this URL:

http://localhost:8080/

However, what bugs me is the subdirectories under the
webapps directory can still be accessed even though
I can't find the configuration information for them. 
So, for example, I could use this URL:

http://localhost:8080/tomcat-docs

And that will access the index.htm page in the
tomcat-docs directory under webapps.

I know a simple solution is to just delete the
directory, but it bothers me that these directories
can be accessed via a URL when nothing points to them.
 My app's docBase is even in an entirely different
directory then Tomcat's webapps directory.

Can someone give me an explanation as to why these
URLs  of subdirectories beneath webapps are
resolving?

Thanks,

JF



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



Re: Directories under webapps showing up

2004-10-04 Thread QM
On Mon, Oct 04, 2004 at 02:46:39PM -0700, Jeff Faath wrote:
: However, what bugs me is the subdirectories under the
: webapps directory can still be accessed even though
: I can't find the configuration information for them. 

Perhaps they're being automatically deployed on startup?
Please post your server.xml.


: Can someone give me an explanation as to why these
: URLs  of subdirectories beneath webapps are
: resolving?

Related to the above, it's likely a deployOnStartup tag in server.xml.
I believe it's on by default, as a convenience for people who want to
drop a set of apps/WARs into the webapps dir and have the changes picked
up on Tomcat restart.

Another solution -- though admittedly similar to your idea of deleting
the other dirs -- is to use the $CATALINA_HOME vs $CATALINA_BASE setups
to have one set of Tomcat binaries and several independent Tomcat
instances.  That way, the only webapps that exist for that instance are
the ones you put there; any defaults/samples that ship with Tomcat are
out of the picture.

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



Cluster Pure Tomcat with Hardware Load Balancer

2004-10-04 Thread MITCHELL TEIXEIRA
Hello to the group - I am desperately searching for information about
clustering Tomcat 5 in a pure environment without Apache in front of it. I
have a hardware load balancer in front of two Tomcat servers that I want to
join in a cluster in order to avoid/reduce broken shopping cart sessions
experienced by customers coming from so-called megaproxy ISPs like AOL.
Since we can't depend on SSL session ID via the hardware load balancer
(thanks to Microsoft IE5+) we believe that we must make clustering work. The
problem is scarce/non-existent web documentation of Tomcat Clustering.

Any help is appreciated.
MitchellT



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



IIS and Tomcat 4.1 errors

2004-10-04 Thread Terry Milller
I am running IIS 5.0 on Windows 2000 Server against a
Tomcat 4.1 application using JK 1.2.  I have been
getting errors in the Event Log from day one but the
application seems to be running very well until today.
 The messages I am getting are 

Error: [jk_worker_ajp13.c (416)]: ajp13.service()
ajpGetReply recoverable error 12
Error: [jk_workerEnv.c (482)]:
workerEnv.processCallbacks() Error reading reply
Error: [jk_channel_socket.c (557)]:
channelSocket.receive(): Error receiving message body
-1 54
Error: [jk_channel_socket.c (557)]:
channelSocket.receive(): Error receiving message body
-1 53

These messages sometimes occur every minute but can
also skip twenty minutes.  Does anyone know what these
messages mean?  Any help would be appreciated.

Thanks,
Terry



__
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: Search engine friendly URLs

2004-10-04 Thread Ben
Thanks everyone.

I guess I would have to use the Url Rewrite Filter by Paul Tuckey. I
thought there was a better way of doing this.

Cheers,
Ben

On Mon, 4 Oct 2004 09:04:37 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 You can also do this with one (or more, if you want, depending on the
 exact requirements) Filters.  That prevents the need for a separate
 servlet and any associated session overhead, so the performance argument
 is even more moot.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Steffen Heil [mailto:[EMAIL PROTECTED]
 Sent: Sunday, October 03, 2004 11:18 AM
 To: 'Tomcat Users List'
 Subject: AW: Search engine friendly URLs
 
 Hi
 
  If you want to be able to scale your application, you need to be able
 to
 move the static image handling out of tomcat to a separate web server.
 Using
 Tomcat to handle both application chores and web serving chores will
 limit
 the overall scalability of your system.
 
 I strongly disagree.
 Tomcat is nearly as fast as apache in serving images.
 So, yes, you can save a little time using apache, BUT remeber that the
 apache slows tomcat down. You need cpu-cycles for apache, for mod_jk
 and
 additionally for tomcat. Those cycles for apache and mod_jk are not
 nessesary, since tomcat can work standalone.
 So the question comes down to decide wether the overhead of handling
 apache
 and mod_jk for dynamic content is smaller then the difference of apache
 and
 tomcat in serving images. I guess with current versions of tomcat the
 overhead to apache and mod_jk is even bigger.
 Hence, tomcat alone will be faster.
 (Please also consider, that static content will mostly be taken from
 the
 browsers cache, whereas dynamic content needs to be received from
 tomcat.
 That means that the time won by using apache for static content needs
 to be
 a magnitude higher than the overhead of mod_jk. That's simply not the
 case.)
 
 Tomcat cannot do rewriting, that is correct, but it does not need to:
 I use url such as:
   /content/pages/test.htm
 where content is mapped to my servlet.
 The parameter is simply the rest of the url.
 
 You could do:
   http://localhost/site.do/books/architecture
 and parse the rest of the url to
   section = books
 and
   subsection = architecture
 
 Simply map site.do to your servlet.
 
 Reagrds,
   Steffen
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Cluster Pure Tomcat with Hardware Load Balancer

2004-10-04 Thread Justin Ruthenbeck
Mitchell,
Pur Tomcat clustering is most robustly supported in the 5.x branch (a 
backport to 4.1.x was done, but you'll have a harder time getting help 
with that).  Info can be found off of the 5.0.x docs page:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
justin
At 03:09 PM 10/4/2004, you wrote:
Hello to the group - I am desperately searching for information about
clustering Tomcat 5 in a pure environment without Apache in front of 
it. I
have a hardware load balancer in front of two Tomcat servers that I want 
to
join in a cluster in order to avoid/reduce broken shopping cart sessions
experienced by customers coming from so-called megaproxy ISPs like AOL.
Since we can't depend on SSL session ID via the hardware load balancer
(thanks to Microsoft IE5+) we believe that we must make clustering work. 
The
problem is scarce/non-existent web documentation of Tomcat Clustering.

Any help is appreciated.
MitchellT

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

__
Justin Ruthenbeck
Lead Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cluster Pure Tomcat with Hardware Load Balancer

2004-10-04 Thread Ben Souther
I take it you've read this:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/balancer-howto.html

Also...
It's been posted on this list recently that the source to the balancer
app is pretty straight forward and easy to read.






On Mon, 2004-10-04 at 18:09, MITCHELL TEIXEIRA wrote:
 Hello to the group - I am desperately searching for information about
 clustering Tomcat 5 in a pure environment without Apache in front of it. I
 have a hardware load balancer in front of two Tomcat servers that I want to
 join in a cluster in order to avoid/reduce broken shopping cart sessions
 experienced by customers coming from so-called megaproxy ISPs like AOL.
 Since we can't depend on SSL session ID via the hardware load balancer
 (thanks to Microsoft IE5+) we believe that we must make clustering work. The
 problem is scarce/non-existent web documentation of Tomcat Clustering.
 
 Any help is appreciated.
 MitchellT
 
 
 
 -
 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: JK2 2.0.4

2004-10-04 Thread Joseph Shraibman
No, this is a known bug and will not work. See 
http://issues.apache.org/bugzilla/show_bug.cgi?id=28758

Cox, Charlie wrote:
To avoid all confusion, I would remove your [uri: mappings from the
workers2.properties and then specify the mappings in your httpd.conf:
VirtualHost 1.1.1.1:80
Location /
JkUriSet worker ajp13:localhost:8409
/Location
/VirtualHost
VirtualHost 2.2.2.2:80
Location /
JkUriSet worker ajp13:localhost:8209
/Location
/VirtualHost
This gives you a well-defined mapping and will be more useful should you
want to allow Apache to host any of your files/urls
Charlie

-Original Message-
From: Paul D. Hester [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 6:00 PM
To: 'Tomcat Users List'
Subject: RE: JK2 2.0.4
I've attached my workers.properties file below.
Paul


#define the shared memory file
[shm:]
file=/usr/local/apache-2.0.50/logs/jk2.log
size=100
debug=1
# Define the communication channel
[channel.socket:localhost:8409]
[channel.socket:localhost:8209]
#define the worker
[ajp13:localhost:8409]
channel=channel.socket:localhost:8409
[ajp13:localhost:8209]
channel=channel.socket:localhost:8209
[uri:/*]
group=ajp13:localhost:8409
[uri:/*]
group=ajp13:localhost:8209
-
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]


Classes are reloaded automatically even when reloadable is not set

2004-10-04 Thread Kent Tong
Hi,
I'm using Tomcat 5.0.28 on Win98. I've created a very
simple web app consists of just two java files:
public class HelloServlet extends HttpServlet {
protected void doGet(
HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
PrintWriter writer = response.getWriter();
writer.println(Biz.getMsg());
writer.close();
}
}
public class Biz {
public static String getMsg(){
return Hello4!;
}
}
The context is NOT marked as reloadable. But if I change
the string returned by getMsg eg:
public class Biz {
public static String getMsg(){
return Hello5!;
}
}
and then reload the page in a browser, the updated message
is displayed. Any idea why this is happening?
Thanks!
--
Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified
Manager of IT Dept, CPTTM
Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag  RedHat
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]