cleegt wrote:
Dear All,
Because of the security reason imposed by my company, I disabled http
DELETE, PUT methods from the tomcat based on some suggested method mentioned
on the internet. Now, I need to test whether the fix is working or not. So,
I am looking for a sample testing program to test
Say I am running the NIO connector and using Comet by my servlet
implementing CometProcessor... What is the relationship between my
servlet, threading and what is blocking vs. non-blocking? I am trying
to understand this better so I can see where I might want to use my
own threads or not. If I hit
> From: m zyzy [mailto:myz...@gmail.com]
> Subject: Re: tomcat maximum thread settings
>
> can I increase the maximum threads value from 200 to something
> larger like perhaps 400 or 500 for each webapp ?
The maxThreads value is for a (or perhaps executor, if you're using
that), not a webapp.
can I increase the maximum threads value from 200 to something larger
like perhaps 400 or 500 for each webapp ?
Thanks.
On Thu, Jun 18, 2009 at 7:59 PM, Caldarale, Charles
R wrote:
>> From: m zyzy [mailto:myz...@gmail.com]
>> Subject: tomcat maximum thread settings
>>
>> Whenever I see to the serv
Dear All,
Because of the security reason imposed by my company, I disabled http
DELETE, PUT methods from the tomcat based on some suggested method mentioned
on the internet. Now, I need to test whether the fix is working or not. So,
I am looking for a sample testing program to test the DELETE and
> From: Bruce Edge [mailto:bruce.e...@gmail.com]
> Subject: Custom valve, how to change role?
>
> ...or am I completely off in left field and should scrap
> this before someone gets hurt and just use securityfilter?
If you really insist on differentiating internal and external requests, then
qu
In an attempt, possibly misguided, to try avoid using securityfilter, I'm
trying to write a valve to bypass the ssl authentication requirements of a
service based on remote host addr.
I've implemented a LocalValve that extends ValveBase and implements Valve.
Given that I must implement this:
Bruce Edge wrote:
Securityfilter seems like overkill. I'd like to try the custom Valve first.
Any idea how I can get at the Role from the Valve invoke method?
Sorry, that's beyond my league. But persist a little, there's a a lot
here who could tell you.
Securityfilter seems like overkill. I'd like to try the custom Valve first.
Any idea how I can get at the Role from the Valve invoke method?
public void invoke(Request arg0, Response arg1) throws IOException,
ServletException {
Can I drill down into the Request and find the role?
-Bruce
O
Bruce Edge wrote:
André,
thanks for your help.
Well actually, forget all I said, it turns out that it was mostly
nonsense. The problem is, that if you use the container (Tomcat) based
authentication, then the authentication will happen anyway, before it
even gets to the servlet filter.
On Thu, Jun 18, 2009 at 2:10 PM, André Warnier wrote:
> André Warnier wrote:
>
> Ooops. I forgot to add this : in the /thewebapp-internal, you should also
> have a filter, this time which /blocks/ the request if it does /not/ come
> from 127.0.0.1. Otherwise people not from 127.0.0.1 would be ab
André Warnier wrote:
Ooops. I forgot to add this : in the /thewebapp-internal, you should
also have a filter, this time which /blocks/ the request if it does
/not/ come from 127.0.0.1. Otherwise people not from 127.0.0.1 would be
able to hit it directly, just by knowing the /thewebapp-interna
André Warnier wrote:
and he's back.
Browsing the documentation of urlrewritefilter, at
http://tuckey.org/urlrewrite/manual/2.6/
In the element, one of the conditions is :
remote-addr The IP address of the host making the request, e.g.
123.123.123.12 i.e. request.getRemoteAddr()
So you can def
André Warnier wrote:
Bruce Edge wrote:
...
Since I don't really feel like doing what I should really be doing
tonight, let me elaborate a bit.
The Request comes "into" your webapp, and first hits the filter.
The filter checks if the IP origin of the request is 127.0.0.1.
If it is, it "authen
Bruce Edge wrote:
...
I can do this:
but does that really do anything if I'm already accepting connections from
127.*?
You're right (and perceptive). /That/ Valve does not help.
Chuck meant that you'd need to write one.
Which for him I'm sure is a piece of cake. ;-)
What do you
On Wed, Jun 17, 2009 at 9:37 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:
> > From: Bruce Edge [mailto:bruce.e...@gmail.com]
> > Subject: Re: Mix http and https on one tomcat server?
>
<...snip...>
>
> > but can it be setup to _not_ require a password for localhost access?
>
>
Susan G. Conger wrote:
All that is controlled by the tool app (Not written by me). That is why I
have to play nice. :-) Here is my web.xml for the tool app.
-
etc..
While not being in any way the expert here, the more I see and hear
about this webapp, (or is it "webapp embedded in ano
> From: Matt Sullivan [mailto:mjdsulli...@hotmail.com]
> Subject: RE: net stop tomcat6 service hangs on Windows 2008 (64-bit)
>
> Charles, indeed the net stop will fail even with latest version
> 1.6.0_14 as Tomcat's JVM.
Ok, rules that out. Do any of your webapps make use of JNI? Might want to
No need to reply-to-all. I'm on the mailing list, I don't need to get
the mail twice.
If you're sending the data like this you're responsible for setting all
of the various headers. If the client can handle cached content it will
send headers indicating that it can.
Try adding some code to chec
Hi PID:
Say the object from the servlet contains the string "Hi the date is : Jun 18,
2009 12:30:19 PM"
When I call the first time
URL urlobj = new URL(servletURL);
HttpURLConnection con = (HttpURLConnection)
urlobj.openConnection();
The object returned from the requ
Paul M wrote:
> I have a "web service" that writes the following out from a servlet.
> ObjectOutputStream outToCaller;
> response.setContentType("application/octet-stream");
> response.setHeader("Cache-Control","public");
> response.setHeader("Cache-Control","max
Susan G. Conger wrote:
> Andre,
>
> I actually was thinking about doing it that way. But I was wondering about
> the overhead. I wish I knew how they were serving up the .html files in the
> class package.
Pull apart the *generated* 'yourapp.war' file.
It's just a zip file, so you could rename
Hi Patrick - Im wondering if you ever resolved this problem - Im seeing
exactly the same thing on Tomcat 5.5.27, http and ajp connectors, JDK1.6
with a lot of XML and XSL processing. Like you Ive spent weeks and weeks
:-( looking at this, so any insights you have would be gratefully received.
Charles, indeed the net stop will fail even with latest version 1.6.0_14 as
Tomcat's JVM.
To Marty's q. re: sc query, answer:
SERVICE_NAME: tomcat6
TYPE : 10 WIN32_OWN_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSA
I have a "web service" that writes the following out from a servlet.
ObjectOutputStream outToCaller;
response.setContentType("application/octet-stream");
response.setHeader("Cache-Control","public");
response.setHeader("Cache-Control","max-age=10");
Andre,
I actually was thinking about doing it that way. But I was wondering about
the overhead. I wish I knew how they were serving up the .html files in the
class package.
Thanks,
Susan
-Original Message-
From: Andre-John Mas [mailto:aj...@sympatico.ca]
Sent: Thursday, June 18, 2009
Caldarale, Charles R wrote:
>> From: Susan G. Conger [mailto:sus...@bfcassociates.com]
>> Subject: RE: Serving images from classes directory
>>
>> Sorry, it is a treated as a package with .xml, .html, .class files, and
>> .java files. So it is serving up the .html files that are in there
>> just f
All that is controlled by the tool app (Not written by me). That is why I
have to play nice. :-) Here is my web.xml for the tool app.
-
tool_app application
toolapp
-
-
-
servletToJsp
servletToJsp
-
invoker
org.apache.catalina.servlets.InvokerServlet
-
debug
Thanks. Looking at the dump I can see there is an issue with a DB
manager we wrote (Blocking). I'll investigate further.
This is what I needed! It has helped quite a bit.
Pete
Caldarale, Charles R wrote:
From: Pete Helgren [mailto:p...@valadd.com]
Subject: Re: Pointers on diagnosing sessio
> From: Susan G. Conger [mailto:sus...@bfcassociates.com]
> Subject: RE: Serving images from classes directory
>
> Sorry, it is a treated as a package with .xml, .html, .class files, and
> .java files. So it is serving up the .html files that are in there
> just fine.
You're saying that you alre
That is the rub. I don't control this process. The tool app is the one
that builds/deploys my application. It is its own web application that
actually generates my application and deploys it. So I have to play nice
with the tool app in order to have everything work correctly.
Thanks,
Susan
--
Sorry, it is a treated as a package with .xml, .html, .class files, and
.java files. So it is serving up the .html files that are in there just
fine. So I put an images directory under there and tried to serve up my
images and tomcat can't find them. Maybe the images directory needs to be
added
The tool app is the third party development tool that is used to generate my
web application.
-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: Thursday, June 18, 2009 8:47 AM
To: Tomcat Users List
Subject: Re: Serving images from classes directory
Susan G. Conger wrote:
> -->
> From: Pete Helgren [mailto:p...@valadd.com]
> Subject: Re: Pointers on diagnosing session and thread hangs
>
> when a thread dump is run, by either method, does Tomcat
> stop running at that point?
Nope, keeps on ticking. When you have a hang situation, you usually want to
take several threa
Hi everybody,
recently i've reported a problem, which wasn't a new one, related to the
encoding base64 within cookies ("=" separator ... only at reading :
request.getCookies) .
I was responded that this problem will probably be corrected with Tomcat
6.0.19 or 6.0.20 and 5.5.28. The last one is
Thanks again. One follow up question, when a thread dump is run, by
either method, does Tomcat stop running at that point? I guess I have
always associated a stack trace or a dump with a failed application so
does "dumping" the thread at this point halt the web application?
Pete
Caldarale,
> From: Pete Helgren [mailto:p...@valadd.com]
> Subject: Re: Pointers on diagnosing session and thread hangs
>
> Not sure how much change to the environment we want to make
> before we track down the issue but going to 1.6 is something
> we'll consider.
For JDK 1.5, you can try these:
If you're
> From: Andre-John Mas [mailto:aj...@sympatico.ca]
> Subject: Re: Serving images from classes directory
>
> The only way to serve images from the classes directory would be for
> you to write a servlet that reads the files and then serves them up.
> While you can do this, don't be surprised by the
Susan G. Conger wrote:
> --> What is 'it', precisely?
> It is server images from the classes directory.
>
> I realize the correct place to put my scripts and graphics. However the
> tool app deploys the app it makes for me as a class under it's classes
> directory. So I want to put all of my cus
Thanks. We'll take a look at that as well. Not sure how much change to
the environment we want to make before we track down the issue but going
to 1.6 is something we'll consider.
Pete
Caldarale, Charles R wrote:
From: Pete Helgren [mailto:p...@valadd.com]
Subject: Re: Pointers on diagnosi
On 18-Jun-2009, at 08:26, Susan G. Conger wrote:
--> What is 'it', precisely?
It is server images from the classes directory.
I realize the correct place to put my scripts and graphics. However
the
tool app deploys the app it makes for me as a class under it's classes
directory. So I want
> From: Pete Helgren [mailto:p...@valadd.com]
> Subject: Re: Pointers on diagnosing session and thread hangs
>
> "jstack is not currently available on Windows platforms"
Move to a 1.6 JDK; your performance will improve, and you have access to more
tools, including jstack.
- Chuck
THIS COMMUN
> From: Susan G. Conger [mailto:sus...@bfcassociates.com]
> Subject: RE: Serving images from classes directory
>
> So I want to put all of my custom scripts and graphics in
> that class package that it creates. I then want to be able
> to access my custom content by editing the html and putting
>
Felix,
Thanks for the tip. You are spot on.. the weblogic.jar is not loaded and it
is mentioned in an INFO level log that the jar was not loaded. Removing the
servlet-api and jsp-api classes from the weblogic.jar did the trick.
Thanks!
Pankaj
Felix Schumacher wrote:
>
> Hi,
> On Wed, June 17,
Thanks Chuck,
A quick read of the documentation says this:
"jstack is not currently available on Windows platforms"
And poking around in the bin folder reveals nothing. Typing the command
results in a "not found" error. Tomcat is running on two Windows
servers that have this problem, on of
> From: Susan G. Conger [mailto:sus...@bfcassociates.com]
> Subject: RE: Serving images from classes directory
>
> But from a maintenance/source control stand point it sure
> would make things a lot easier if I didn't have to pick
> and choose what directories to move when deploying on the
> users
--> What is 'it', precisely?
It is server images from the classes directory.
I realize the correct place to put my scripts and graphics. However the
tool app deploys the app it makes for me as a class under it's classes
directory. So I want to put all of my custom scripts and graphics in that
cl
Andre,
Thanks. I know serving images from the classes directory is not the best
way to do stuff. But from a maintenance/source control stand point it sure
would make things a lot easier if I didn't have to pick and choose what
directories to move when deploying on the users machines. Because th
> From: m zyzy [mailto:myz...@gmail.com]
> Subject: tomcat maximum thread settings
>
> Whenever I see to the server status page in the manager webapp I
> always see the maximum threads were set to 200 , can I increase the
> thread quantity , as I noticed with 3 users sessions at once for one
> we
Hi Chris,
On 17.06.2009 19:15, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Rainer,
>
> On 6/17/2009 3:45 AM, Rainer Jung wrote:
>> Thanks, added as r785498 in a slightly different wording. Will be part
>> of 1.2.29.
>
> Does that mean that the website has to
Have a look at 'autodeploy':
http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server
Timo
Am 18.06.2009 um 11:16 schrieb Tokajac:
I added this to META-INF/context.xml:
( former: )
just overwrite webapps/appname.war and it seems to work!
I added this to META-INF/context.xml:
( former: )
just overwrite webapps/appname.war and it seems to work!
Any experiences with this approach?
Regards
Tokajac wrote:
>
> Hello,
>
>
> Whenever i want to deploy new version of application (that's VERY often),
> have to:
> stop t
Whenever I see to the server status page in the manager webapp I
always see the maximum threads were set to 200 , can I increase the
thread quantity , as I noticed with 3 users sessions at once for one
webapp, the threads count usually between 2 or 3 . as I plan to have
more than 200 users by the
Hello,
the manager overview shows a max processing time of 92912 ms for my http
connector. There is only one servlet running which has a max processing time
of 165 ms. How is the max processing time of connector defined, so where is
all those time spent? I checked the response time externally and
Hi Tokajac,
you can create an ANT script like the following:
timeoutproperty="server.missing">
55 matches
Mail list logo