Can you run the comet code-example "chat" success?
I tried many times ,it don't work in tomcat6.0.13
I just try straight the url
http://localhost:8080/examples/jsp/chat/login.jsp
and also modify the server.xml ,change the protocol by "
org.apache.coyote.http11.Http11NioProtocol"
Are there other wo
I have recently changed a lot of my old perceptions on this matter after
reading this excellent article:
http://www.ibm.com/developerworks/java/library/j-jtp01274.html
If you change your mindset when you write your apps to consider how the
garbage collector actually operates, then those memory
> From: Susan Richards [mailto:[EMAIL PROTECTED]
> Subject: Tomcat 5.5 configuration
>
> In Tomcat 5.0.28, I had this in my server.xml:
> appBase="/www/apps/tomcat/webapps">
>
>
The above - having docBase equal to appBase - was never intended to
work; that it ever did anything useful at all
you might wnna take a look at this http://quercus.caucho.com/
i havent use it, but maybe its is useful for you.
On 8/1/07, Mike Duffy <[EMAIL PROTECTED]> wrote:
>
> Does anyone have a good reference for installing PHP on Tomcat 6.0?
>
> There is no good info at php.net and the instructions I've fo
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Subject: Re: Recovery from OutOfMemoryError?
(Sorry for not responding sooner. Went out to dinner and to see the
Spider Pig movie :-)
> Actually, my past experience has been that it's the GC
> thread that OOMEs, not a worker thread.
Assum
Thanks for clarifying this Bill.
As it turns out service.bat creates the service to use the server version of
jvm.dll by default; the Jvm arguement is pointing to
D:\Java\jdk1.5.0_09\jre\bin\server\jvm.dll. Should have noticed that :)
Do you know of any other JVM tuning arguement odities when s
Another alternative to Apache httpd,
and this is my personal preference,
I'm running this server (.php enabled)
on two windows box's and they work flawlessly..
Abyss X1 web server (freeware version)
More info. > http://www.aprelium.com/
And to install .php support for that server:
> http://www.a
"Mike Duffy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does anyone have a good reference for installing PHP on Tomcat 6.0?
>
> There is no good info at php.net and the instructions I've found through
> Google talk about
> modifying an httpd.conf file that is not in Tomcat.
>
"rmiller" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I can start Tomcat with the HotSpot VM using the -server JVM option in
> startup.bat. But when I try to start Tomcat as a service with the -server
> option in the registry key HKEY_LOCAL_MACHINE->Software->Apache Software
I can start Tomcat with the HotSpot VM using the -server JVM option in
startup.bat. But when I try to start Tomcat as a service with the -server
option in the registry key HKEY_LOCAL_MACHINE->Software->Apache Software
Foundation->Procrun 2.0->PortalServer->Parmeters->Java->Options it won't
start.
On 7/31/07, Mike Duffy <[EMAIL PROTECTED]> wrote:
> Does anyone have a good reference for installing PHP on Tomcat 6.0?
Probably not; AFAIK it doesn't exist :-)
> There is no good info at php.net and the instructions I've found through
> Google talk about modifying an httpd.conf file that is not
In Tomcat 5.0.28, I had this in my server.xml:
and in the webapps directory I had an index.html page that redirected to the
servlet:
http://test-infonline.matc.edu/test-infonline/test-infonline";>
This probably wasn't the correct way, but it was the only way I could direct
the dns to the
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Subject: Re: Recovery from OutOfMemoryError?
>
> Are you suggesting that all methods should be written as a
> loops around attempts to do real work, catching OOME and
> re-trying until the work gets done?
Sort of, but not at the method le
On 8/1/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> ... but these often aren't learned until
> something catastrophic happens.
>
great sentence :-)
Leon
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubsc
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
Caldarale, Charles R wrote:
>> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
>> Subject: Re: Recovery from OutOfMemoryError?
>>
>> Thats however strongly depend on where it happened... if for example
>> the code in question was a middleware s
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
>> Subject: Re: Recovery from OutOfMemoryError?
>>
>> A thread that suffers an OOME is pretty much hosed, anyway, so
>> counting on it to do any kind of recover
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Subject: Re: Recovery from OutOfMemoryError?
>
> Thats however strongly depend on where it happened... if for example
> the code in question was a middleware stub which is left in
> unpredictable state, or the orb itself, or any kind of stack
> s
On 7/31/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> > From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> > Subject: Re: Recovery from OutOfMemoryError?
> >
> > A thread that suffers an OOME is pretty much hosed, anyway, so
> > counting on it to do any kind of recovery is difficult.
>
>
How about using SoftReference to store _large_ or some session data?
It must add additional overhead due to data re-retrieval needed in
case it has been collected, but at least its guaranteed that you will
never get an oome, and chances are good, that you will loose inactive
sessions earlier.
rega
Does anyone have a good reference for installing PHP on Tomcat 6.0?
There is no good info at php.net and the instructions I've found through Google
talk about
modifying an httpd.conf file that is not in Tomcat.
I have a feeling these instructions are for older versions of Tomcat (Google is
star
On 7/31/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
>
> Look here for details:
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h
> tml
Heh, II was wondering about that. I just gleamed that and found this gem:
Drivers for older Oracle versions may be distributed
> From: Brian Munroe [mailto:[EMAIL PROTECTED]
> Subject: Re: Classloading Question
>
> I did, and it works, but from my understanding of the classloading
> documentation, you should technically place application level jars in
> $CATALINA_HOME/shared/lib, in which it does not work.
Depends on wh
On 7/31/07, Propes, Barry L <[EMAIL PROTECTED]> wrote:
> What version of TC are you using? I wouldn't put the jar file there, no!
>
I am using 5.5.23. Wouldn't put it where? shared/lib?
> Try in %TC HOME%\common\lib, whereever that is.
>
I did, and it works, but from my understanding of the c
What version of TC are you using? I wouldn't put the jar file there, no!
Try in %TC HOME%\common\lib, whereever that is.
-Original Message-
From: Brian Munroe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 31, 2007 3:50 PM
To: Tomcat Users List
Subject: Classloading Question
I am conne
I am connecting my application to a Oracle XE database and I am having
a weird issue with classloading.
According to the classloading documentation [1] I should be placing
the Oracle JDBC jar file ojdbc14.jar in $CATALINA_HOME/shared/lib, but
when I do that, my application throws a Cannot load JDB
Buddy, you should not have such servlet-.jar inside the WEB INF/lib,
print me a list of fiels inside yoru web-inf
Pls, write to the list.
tks
-Original Message-
From: Lenny Wintfeld [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 31, 2007 2:55 PM
To: Asensio, Rodrigo
Subject: Question on
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Subject: Re: Recovery from OutOfMemoryError?
>
> A thread that suffers an OOME is pretty much hosed, anyway, so
> counting on it to do any kind of recovery is difficult.
Why do you say that? The only thing that failed is the allocation of
How about keeping track of how many of these big operations are
running (using a synchronized counter) and returning a 503 status for
"big" requests that come in when the system is busy? Only the
servlet(s) or page(s) that handle these big requests would be limited,
the rest of the webapp would kee
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Craig,
Craig Berry wrote:
> Fixing the bug would be cool, but the "bug" is actually just too many
> users contending for the same heap space, so that's going to be tough.
Too many users logged-in, or too many simultaneous connections? If the
latter,
Ooops... Yes, definitely... But I still need the port 80 for my purely
static (unencrypted) content. The connections to my webapp will be encrypted
from end-to-end using its context name, but all the content accessible
within the default context will be static.
Pierre
2007/7/31, David Smith <[
Port 80 is for unencrypted traffic. The default port for SSL (https
protocol) is 443.
--David
Pierre Goupil wrote:
I have some static HTML content. But I will handle it with Tomcat too, in
order to ease things regarding my present need.
So I will stick to Tomcat for SSL management and won't
I have some static HTML content. But I will handle it with Tomcat too, in
order to ease things regarding my present need.
So I will stick to Tomcat for SSL management and won't use Apache *Httpd*
;-) any more... Easy. As easy as my need in fact. Actually, my only
"sensitive" need is to have SSL co
> From: Pierre Goupil [mailto:[EMAIL PROTECTED]
> Subject: Re: secured authentication / connection
>
> But I still need Apache in front of it, in order
> to be able to use the port 80 & this sort of things.
Tomcat can quite happily use port 80; what else do you need httpd for?
(We'll assume you
SSL as a protocol is not designed to allow for this sort of
man-in-the-middle configuration. Either tomcat handles the ssl and
listens on port 443 or Apache httpd handles the ssl and listens on 443.
--David
Pierre Goupil wrote:
Quote from the Tomcat doc :
***
It is important to note that
Quote from the Tomcat doc :
***
It is important to note that configuring Tomcat to take advantage of secure
sockets is usually only necessary when running it as a stand-alone web
server. When running Tomcat primarily as a Servlet/JSP container behind
another web server, such as Apache or Microsoft
Hi, Marco,
Yes, our memory allocation sizes are carefully selected, and set near
the maximum available in 32-bit Java. We're investigating running under
a 64-bit JVM to enable the use of additional heap space.
-Original Message-
From: Marco [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July
On 31/07/2007, at 7:39 PM, Marco wrote:
Dear Craig,
You are familiar with, even with enough systemmemory, JVM uses limited
memory?
I your application consumes much memory, you could change settings
in the
tomcat6.conf file:
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
JAVA_OPTS="-Xmx1024M -Xms512M"
Dear Craig,
You are familiar with, even with enough systemmemory, JVM uses limited
memory?
I your application consumes much memory, you could change settings in the
tomcat6.conf file:
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
JAVA_OPTS="-Xmx1024M -Xms512M"
Or higher, depending on your systemconfiguration
On 31/07/2007, at 7:19 PM, Caldarale, Charles R wrote:
From: Craig Berry [mailto:[EMAIL PROTECTED]
Subject: RE: Recovery from OutOfMemoryError?
It depends on what the user chooses to do during
the session.
Again, try another point of view. It's what the webapps choose to
do in
response to
hi Craig,
if you get OutOfMemoryError reliably in your log, you might consider the
tanukisoftware Java Service Wrapper as an intermediate "solution". It
can watch the output and automatically restart Tomcat. I would not
combine it with an app, that has a very high volume of log output
though.
> From: Craig Berry [mailto:[EMAIL PROTECTED]
> Subject: RE: Recovery from OutOfMemoryError?
>
> It depends on what the user chooses to do during
> the session.
Again, try another point of view. It's what the webapps choose to do in
response to user requests that provoke the problem. Is there
There can be hidden dependencies on native code. For example, JDBC
drivers (OCI, ...). Fortunately there are usually corresponding 64 bit
libraries available - you just need to update PATH or LD_LIBRARY_PATH.
- Alexey.
Andrew Miehs wrote:
On 31/07/2007, at 2:04 PM, Mohan2005 wrote:
so no
The trouble is that our memory demand per user session is unpredictable.
Some user sessions do things that barely touch the heap; other sessions
can make huge demands. It depends on what the user chooses to do during
the session. So throttling user count down to make it utterly safe
would be impr
Oh, I'm not "blaming" either one. Normally, our server is quite
adequate to handle the expected user load. Every now and then we get a
"perfect storm" of too many users asking for too many large-memory
requests, and an OOME happens. We're investigating ways to increase
capacity, but in the mean
On 31/07/2007, at 6:52 PM, Craig Berry wrote:
Fixing the bug would be cool, but the "bug" is actually just too many
users contending for the same heap space, so that's going to be tough.
I'd thought of the log watcher, but that seems a rather blunt
instrument; I was thinking there might be some
> From: Craig Berry [mailto:[EMAIL PROTECTED]
> Subject: RE: Recovery from OutOfMemoryError?
>
> Fixing the bug would be cool, but the "bug" is actually just too many
> users contending for the same heap space
Let's put it another way: your webapp and/or JVM configuration aren't
set up properly
Erf... It wasn't especially out of my reach. But (as many, I presume), when
I'm looking for info, I tend to google around, where there is info fresh
from the source...
Thanks to both of you and I will try to use more the official documentation,
in the future.
Cheers,
Pierre
2007/7/31, Caldara
1. you may have a memory leak in your code... do some profiling
2. check out abandoned sessions that are "due to expire" perhaps you can
lower the session timeout and that will make some memory available earlier.
Craig Berry wrote:
> Our Tomcat-based app suffers from occasional OutOfMemoryErrors.
Fixing the bug would be cool, but the "bug" is actually just too many
users contending for the same heap space, so that's going to be tough.
I'd thought of the log watcher, but that seems a rather blunt
instrument; I was thinking there might be some kind of Tomcat (or JVM)
intrinsic mechanism for t
variant 1: a log watcher that checks for OOMe and restarts tomcat
variant 2: fix the bug :-)
regards
Leon
On 7/31/07, Craig Berry <[EMAIL PROTECTED]> wrote:
> Our Tomcat-based app suffers from occasional OutOfMemoryErrors. We have
> found that we need to manually restart Tomcat when these happen
Our Tomcat-based app suffers from occasional OutOfMemoryErrors. We have
found that we need to manually restart Tomcat when these happen;
frequently the Tomcat process appears to be working after the error, but
is actually crippled in one way or another by the loss of some key
thread.
We would
>> Is length 1090 correct?`So does the full body have that length?
Yes firefox reports that the page is 1k in size, via the web
developer's tool bar. I have seen it happen in IE 6 and 7 also.
Would it be possible for me to email you directly the output of
wireshark for both one bad and one good a
ben short wrote:
Ok I have used wireshark and see that the request is sent to the
apache httpd. The next first packet i get back contains the
following...
HTTP/1.1 200 OK
Date: Tue, 31 Jul 2007 14:57:25 GMT
Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a mod_jk/1.2.23
Content-Length: 10
Ok I have used wireshark and see that the request is sent to the
apache httpd. The next first packet i get back contains the
following...
HTTP/1.1 200 OK
Date: Tue, 31 Jul 2007 14:57:25 GMT
Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a mod_jk/1.2.23
Content-Length: 1090 ***NOTE every
This test page results are shown:
Latin Character input Capital A with Circumflex ^: Â
Greek Character input Omega: Ù
without decode=Latin%3A+%C3%82+Greek%3A+%C3%99
with decode=Latin: Â Greek: Ù
It appears the encoding is set to IS0 8859-1 since the character encoding maps
correctly to that cha
> From: Fabbris Pierluigi [mailto:[EMAIL PROTECTED]
> Subject: Problem to configure servelet on Tomcat6
>
> java.lang.NumberFormatException: For input string: ""
>java.lang.NumberFormatException.forInputString(Unknown Source)
>java.lang.Integer.parseInt(Unknown Source)
>java.lang.Inte
catch the NumberFormatException
check the given parameter:
if your parameter is empty or is different that a number, set it to a
default value
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/NumberFormatException.html
it is more a servlet problem than a tomcat problem
F.
> Hi,
> I've configur
Hi,
I've configured Tomacat 6 for Servlet but I've this error:
*message*
*description* _The server encountered an internal error () that
prevented it from fulfilling this request._
*exception*
javax.servlet.ServletException: Servlet.init() for servlet default threw
exception
org.apache.c
I think what we're seeing here is the reason for the oft-heard,
seldom-heeded advice that the only benchmark which means anything is
*your application*. Once you see how the code you care about
performs, *then* you can bum a few cycles here and there to tune it
up. Generalities such as "64-bit ma
On Fri, Jul 27, 2007 at 07:25:26PM -0400, Christopher Schultz wrote:
> The reverse is true. First of all, no home user ever bought an 8-bit
> machine.
Um, ask the owner of an Apple ][ about that. Likewise my Synertek
SYM-1 used an 8-bit 6502 processor, as did designs by Atari,
Commodore, etc. Th
> From: Pierre Goupil [mailto:[EMAIL PROTECTED]
> Subject: secured authentication / connection
>
> Can anyone point me to a relevant tutorial ?
Besides configuring SSL as Mark T pointed out, you need to read section
12 of the servlet spec:
http://jcp.org/aboutJava/communityprocess/mrel/jsr154/in
Pierre Goupil wrote:
> Hello all,
>
> On my webapp, I'm currently using a Tomcat-based form authentication. But I
> would like to switch to an encrypted authentication. And the long-term goal
> would be to have my users browse my webapp entirely with an https
> connection.
>
> Can anyone point me
On Tue, 2007-07-31 at 05:28 -0400, Matthew Whittaker-Williams wrote:
> On Tuesday 31 July 2007 11:02, ben short wrote:
> > Hi,
> >
> > Is it possible to configure tomcat to not start a specific webapp when
> > it starts up?
> >
> > Ben
> >
> > ---
You could dig deeper into two different directions:
- protocol: is the content-length in the response headers correct? Or
does it use chunked transfer, and is this OK?
- sniff the network in front of the apache: do the packets actually get
send back to the browser?
Regards,
Rainer
ben sh
Hi Hugh,
jk autoconf is broken for quite some time now. You can use mod_jk
without autoconf, but you will need a little time to setup the config.
There are a couple of descriptions concerning configuration in the JK docs.
We might repair autoconf some time, but you shouldn't really use it at
Obviously you should try to figure out who is using that file.
But if you want to do it like old days.. Do this in your ANT
If is linux you will do a service start tomcatd or service stop tomcatd
regards
-
I'm not getting anywhere with this :(
I have set the logging to trace for mod_jk and I can see all the
response packets. I have also turned on our applications response
logging and can see that the running webapp writes the full page to
the response. I can then see it all in the mod_jk logs. But t
Hello all,
On my webapp, I'm currently using a Tomcat-based form authentication. But I
would like to switch to an encrypted authentication. And the long-term goal
would be to have my users browse my webapp entirely with an https
connection.
Can anyone point me to a relevant tutorial ? I have foun
On 31/07/2007, at 2:04 PM, Mohan2005 wrote:
so now we have to identify if our application is 64bit compatible
or 32bit
compatible.
If your application is only JAVA, then no porting is required.
Andrew
-
To start a new t
Found it in some location in netbeans installation. I deleted the file. I
still see the same message. Now neither MS or google desktop search lead to
any results, I still see the same message when I visit the administration
page. This is a nightmare!
Caldarale, Charles R wrote:
>
>> From: Soph
From: Willett, Jr., Edward W. (Contractor)
Sent: Tuesday, July 31, 2007 8:13 AM
To: 'users@tomcat.apache.org'
Subject: Latest MS patches
Does anyone know of any problem with Tomcat 6.0.1 and the latest MS patches.
Eddie
so now we have to identify if our application is 64bit compatible or 32bit
compatible.
would not this be a very difficult situation as far as porting to 64bit is
concerned?
Andrew Miehs wrote:
>
>
> On 29/07/2007, at 9:08 PM, David Smith wrote:
>
>> "...but people advice that 64bit are 20 - 30
Thanks Rainer,
I have done some more reading and have deduced that I need to use Tomcat to
generate the auto/mod_jk.conf file by starting tomcat with the -jkconf
option.
This doesn't work as I get:
C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin>tomcat5 jkconf
[2007-07-31 12:37:35] [41
Hi Hugh,
- jk2 has been deprecated a long time ago. Please use jk, which is fully
supported and now contains most of the features, that were created for jk2
- the *.so files in the download directory for win32/win64 are actually
windows libraries. You can use them. Only there name is a little
ben short wrote:
I have altered the code to write out which webapp generated the page
to the html, so i can see where the partial responses are comming
from.
What I see is
I stop the webapp on box 2. I make a request and I see part of the
page. The html shows that the partial page was gener
Hi,
I am hosting multiple sites on one Windows 2003 box using Apache 2.2.4 The
sites are all built on Joomla 1.4 and therefore I have PHP 5.2.1 and MySql
installed. Everything works fine.
I also have Tomcat 5.5 installed and running happily on port 8080. I now
have need to build a site using JSP/
The Apache Tomcat team is pleased to announce the immediate availability
of version 1.2.24 of the Apache Tomcat Connectors.
It contains connectors, which allow a web server such as Apache HTTPD,
Microsoft IIS and Sun Web Server to act as a front end to the Tomcat web
application server.
This ver
I have altered the code to write out which webapp generated the page
to the html, so i can see where the partial responses are comming
from.
What I see is
I stop the webapp on box 2. I make a request and I see part of the
page. The html shows that the partial page was generated by the
running
On Tuesday 31 July 2007 11:02, ben short wrote:
> Hi,
>
> Is it possible to configure tomcat to not start a specific webapp when
> it starts up?
>
> Ben
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe
Hi,
Is it possible to configure tomcat to not start a specific webapp when
it starts up?
Ben
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
Rainer,
Thanks for that. Yes we are going for a mix of both really. But I'll
run some bench marks against both sticky and none sticky to see how it
gets on.
Yes in production if we want to stop/undeploy/deploy a webapp we will
set the worker status to stopped. This issue came up as more of a what
81 matches
Mail list logo