Hi,
I have a clustered environment which have 4 machines that are in the
same private switch. I have configured the clustering element of
server.xml as shown below :
|
manager.className="org.apache.catalina.cluster.session.DeltaManager"
manager.expireSessionsOnShutdown
The NioEndpoint seems to close a connection during the timeout handling.
My client reacts to a connection failure with a resubmit of the last
request,
and I see this in the log:
07.05.2007 22:08:14 comettest.CometServlet event
WARNUNG: BEGIN(16) POST /comettest/comet/request?action=poll&count=1
07
Hello,
This didn't worked out, I tried to write in my server.xml to let Jfig work.
But the output was:
May 8, 2007 10:37:05 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet DestinationSearchServlet
org.igfay.jfig
Manca Davide wrote:
This didn't worked out, I tried to write in my server.xml to let Jfig work.
This does not set system property. Please read
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html to
know how to read such variables / parameters.
--
M
Reich, Matthias wrote:
The NioEndpoint seems to close a connection during the timeout handling.
My client reacts to a connection failure with a resubmit of the last
request,
and I see this in the log:
07.05.2007 22:08:14 comettest.CometServlet event
WARNUNG: BEGIN(16) POST /comettest/comet/reque
it comes down to multicasting working properly on your system.
that is where your troubleshooting efforts need to go. Sometimes
removing mcastBindAddr helps.
Filip
Vinu Varghese wrote:
Hi,
I have a clustered environment which have 4 machines that are in
the same private switch. I have conf
Folks
I have an odd problem that occurs on TC6 running on fedora core 6.
Apache in fronting TC.
When I try to pass an HTML parameter from a JSP it is not in present in the request object for the
receiving JSP. I get the following in catalina.out:
WARNING: Parameters: Character decoding failed
send us a small test app please
Filip
Adam Lipscombe wrote:
Folks
I have an odd problem that occurs on TC6 running on fedora core 6.
Apache in fronting TC.
When I try to pass an HTML parameter from a JSP it is not in present
in the request object for the receiving JSP. I get the following in
Scott Dunbar wrote:
> Thanks, I checked that and my I don't set a docBase in my context:
>
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>
>
And there is the problem. If it isn't absolute, docBase is relative to
ap
> -Original Message-
> From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 08, 2007 11:00 AM
> >
> > However, the Javadoc of enum EventSubType says:
> >
> > TIMEOUT - the connection timed out (sub type of ERROR);
> note that this
> > ERROR type is not fata
Adam Lipscombe wrote:
Folks
I have an odd problem that occurs on TC6 running on fedora core 6.
Apache in fronting TC.
When I try to pass an HTML parameter from a JSP it is not in present
in the request object for the receiving JSP. I get the following in
catalina.out:
WARNING: Parameters: C
Hi all,
I am running Tomcat 5.5.23 on a Win32 platform as an NT Service, with the
native DLL.
I am experiencing the CPU spinning at 100% in our production environment,
which is not something I have seen in our dev or staging env. In order to
determine the problem area, I have tried running Tomc
We have a medical program that runs on two tomcat servers behind an LVS
load balancer. Everything works fine except for one particular function
that apparently relies on data in the tomcat5/work directory. If the
load balancer directs a request to a tomcat server that has different
cache data, the
Reich, Matthias wrote:
-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 11:00 AM
However, the Javadoc of enum EventSubType says:
TIMEOUT - the connection timed out (sub type of ERROR);
note that this
ERR
maybe try to run it under another service manager, like the Java Service
Wrapper
http://people.apache.org/~fhanik/wrapper.html
to rule out the case, that its a win service problem
Filip
Jason Polites wrote:
Hi all,
I am running Tomcat 5.5.23 on a Win32 platform as an NT Service, with the
nati
Hi Bill,
Many thanks for your reply.
I will try to fix this with Entrust.
Very Best
Valery.
-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Bill Barker
Gesendet: Dienstag, 8. Mai 2007 05:05
An: users@tomcat.apache.org
Betreff: Re: Cookie's value and double q
Robinson, Eric wrote:
We have a medical program that runs on two tomcat servers behind an LVS
load balancer. Everything works fine except for one particular function
that apparently relies on data in the tomcat5/work directory. If the
load balancer directs a request to a tomcat server that has di
My web application generates a list of links for a user to click on.
The URL looks like this: showCa.jsp?id=2345
The showCa.jsp page uses the id to populate a form on the page.
The problem I am have is when a user clicks the link showCa.jsp?id=2345
The request.getParameter("id") is returning
> From: Richard Sayre [mailto:[EMAIL PROTECTED]
> Subject: request.getParameter is returning the wrong value
>
> The problem I am have is when a user clicks the link
> showCa.jsp?id=2345
>
> The request.getParameter("id") is returning the wrong id!
This is usually caused by application code st
On 5/8/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> From: Richard Sayre [mailto:[EMAIL PROTECTED]
> Subject: request.getParameter is returning the wrong value
>
> The problem I am have is when a user clicks the link
> showCa.jsp?id=2345
>
> The request.getParameter("id") is returning the
you are calling js function named 'showCa'
but your javascript function name is 'showCap'
When/Where do you actually pass these values to servlet?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message
The OS is RHEL4. Tomcat is 5.0.28.
The 'particular function' is a little hard to explain. It's just an area
of the program where you configure certain parameters that control
workflow in your medical practice, such as how long a default patient
visit lasts. This area has a different look and feel
I posted this on comp.lang.java.security yesterday, but haven't gotten a
single answer, so I'm hoping you people can help:
I'm trying to implement ACL's in my Tomcat-based webapp, and am having
trouble applying what I read in the docs and in my googling to my
real-life application. Could some
Sorry about that. When I copied and pasted I missed the function name
and I typed it in manually. I double checked and the function name is
spelled correctly. This code works normally until multiple users
login.
I pass these values the JSP page when the following JavaScript executes:
top.loca
Hi,
Sorry to bother again, but there is still something I can't understand.
The changelog of Tomcat indicates that the changes you've reported happened
with tomcat version 5.5.14.
(It says "Strip quotes when parsing Cookie values, even for v0 Cookies".)
However, the integrated Tomcat delivered
Hi,
I am running Tomcat 5.5 on a Windows 2003 server box, using Sun JRE 1.5.0_11.
Since I want to have SSL support on my server, I followed the instructions
on
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
first creating a self-signed certificate and then uncommenting the SSL
Connector
First, I'd just make sure you are passing the right value from the form.
alert() the (editFlag=" + document.theForm.editFlag.value + "&activeTab=" +
document.theForm.activeTab.value + "&id=" + vId;) string before you do the
location.href to be sure.
Given that you are saying it works until multi
Good Morning Dave...
I would start by referencing this link
http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html
either
setup security in %JAVA_HOME%/lib/security/java.policy and start java with
security manager enabled e.g.
JAVA -Djava.security.policy=java.policy %CATALINA_HOME%\bin\bootstr
Yes the right values are passed. Th eonly one of those variable that
really efects the data on the page is vId, which is hard coded into
the
I started to look in the _jspService and I noticed the the variable
which I assign the request.getParameter("id") to is not in that
method.
The variable
Also, If you have any information about declaring a variable with !
I would like to know. I am having trouble finding any on google and
my JSP book.
On 5/8/07, Richard Sayre <[EMAIL PROTECTED]> wrote:
Yes the right values are passed. Th eonly one of those variable that
really efects the data
I have set my all files with UTF-8 format,so I set URIEncoding parameter in
server.xml,like follows:
Then I write a JSP file like follows:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
In test.do action,I get the value of Name f
Give us the .jsp and the jasper generated .java file, it will be faster
to solve :)
En l'instant précis du 08/05/07 17:22, Richard Sayre s'exprimait en ces
termes:
> Also, If you have any information about declaring a variable with !
> I would like to know. I am having trouble finding any on goo
might be breaking at your xml file with the space, although seems like you get
a SaxParse error if that happens -- usually.
I guess it depends on which version of TC you have.
-Original Message-
From: Riyaz Shaikh [mailto:[EMAIL PROTECTED]
Sent: Monday, May 07, 2007 6:08 PM
To: users@tomc
Marcus Johansson wrote:
> I am running Tomcat 5.5 on a Windows 2003 server box, using Sun JRE 1.5.0_11.
> Since I want to have SSL support on my server, I followed the instructions
> on
>
> http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
>
> first creating a self-signed certificate and th
Hi everybody,
I have a server with Windows 2003 Server, with one Ethernet. I have set two
ips to the same eth card.
The first 172.21.10.1 is linked to IIS server with port 80, the second is
172.21.10.2 and I would like to link to Apache Tomcat still using port 80.
Now the problem is that Tomcat
I know you don't want to hear this but I'm not sure about what I can
release due to company restrictions. I wouldn't want to get fired for
posting out source. I will ask the right people if I can post a few
pages of the source but it may take a while for them to get back to
me.
I haven't found
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Richard,
Richard Sayre wrote:
> I started to look in the _jspService and I noticed the the variable
> which I assign the request.getParameter("id") to is not in that
> method.
Note that JSP authors these days almost never actually call
request.getP
Cesare Vairetti wrote:
> I have a server with Windows 2003 Server, with one Ethernet. I have set two
> ips to the same eth card.
>
> The first 172.21.10.1 is linked to IIS server with port 80, the second is
> 172.21.10.2 and I would like to link to Apache Tomcat still using port 80.
>
> Now the
That's really strange. If that's in the generated .java file then I'm
amazed it actually compiles. It's syntactically incorrect. Are you sure
it's not just the editor you are using to view the file interpreting an
unknown character? (I doubt it).
As a first step I'd delete the compiled JSP an
too late.. looks like Mr Schultz has the correct answer.
On 5/9/07, Jason Polites <[EMAIL PROTECTED]> wrote:
That's really strange. If that's in the generated .java file then I'm
amazed it actually compiles. It's syntactically incorrect. Are you sure
it's not just the editor you are using to
I've never seen that either and I use the same environment you do.
Seems as if users' sessions are somehow crossing/getting overlapped, but not
sure how.
Are you using some lookup for an id? Like SSO or something?
-Original Message-
From: Richard Sayre [mailto:[EMAIL PROTECTED]
Sent: Tue
Yes you have right, IIS, even if I impose to use only that particular IP, in
net stat I see 0.0.0.0:80 further the 172.21.10.1:80.
And 0.0.0.0:80 is linked to a PID process that is System process.
Then I switch off IIS and 0.0.0.0:80 disappear.
I have no idea now how to solve the problem.
Thanks a
> queryString : ?id=2345
> id : 2226
One thought that comes to mind is if you are getting the "id" parameter
from the request, but assigning it to a member, or even static variable,
as opposed to a method variable on the stack, then you lose thread safety,
and this could happen.
I apologize fo
> From: Riyaz Shaikh [mailto:[EMAIL PROTECTED]
> Subject: "Error allocating a servlet instance" after editing web.xml.
>
> Problem: If I make any change to my application's web.xml (even as
> small as a single space), I can't access any of Tomcat's
> pages/servlets.
Is your editor generating UTF-
Cesare Vairetti wrote:
> Yes you have right, IIS, even if I impose to use only that particular IP, in
> net stat I see 0.0.0.0:80 further the 172.21.10.1:80.
> And 0.0.0.0:80 is linked to a PID process that is System process.
> Then I switch off IIS and 0.0.0.0:80 disappear.
> I have no idea now ho
On 5/8/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Richard,
Richard Sayre wrote:
> I started to look in the _jspService and I noticed the the variable
> which I assign the request.getParameter("id") to is not in that
> method.
Note that JSP
Thanks for the response, but I don't think either of these are what I
need. My application involves users who need access to the inventory
data for stores throughout the country, and those locations and users
are all stored in a back-end database. All this is managed by java
classes; tomcat a
Hello,
I'm starting the process of migrating some of our server from 5.0.29 to
5.5.23, and I've found that the 'nice' useful stacktraces with
linenumbers are back, and working beautifully in 5.5.23.
But I do find the following issues as well:
I have the following test page:
<%
if (true
Can someone assist me with getting a war file to start on Tomcat 5.x? I've
followed the how-to docs for deploying a war file, but still get an error when
attemptin gto start it. A snippet of the error file:
May 8, 2007 12:19:58 PM org.apache.catalina.startup.ContextConfig
applicationConfig
SEVE
> From: Allison, Clemon [mailto:[EMAIL PROTECTED]
> Subject: Need help getting application to work on Tomcat 5.x
>
> SEVERE: Parse error in application web.xml
> java.lang.IllegalArgumentException: Invalid
> ConsolidatedInvoiceController in servlet mapping
The above seems pretty self-explanato
Thanks. I'll give it a shot.
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 12:49 PM
To: Tomcat Users List
Subject: RE: Need help getting application to work on Tomcat 5.x
> From: Allison, Clemon [mailto:[EMAIL PROTECTED]
> Subject: N
Robinson, Eric wrote:
The OS is RHEL4. Tomcat is 5.0.28.
The 'particular function' is a little hard to explain. It's just an area
of the program where you configure certain parameters that control
workflow in your medical practice, such as how long a default patient
visit lasts. This area has a
I have Tomcat 5.5 running on a Windows 2000 machine having 4GB of RAM
(recently upgraded from 2GB). The JVM in place is 1.4.2_12.
Using the "Configure tomcat" widget, I attempted to increase the
maximum memory pool from 1280MB that had been working to 2560MB. At
this point, Tomcat fails to star
David Kerber wrote:
Thanks for the response, but I don't think either of these are what I
need. My application involves users who need access to the inventory
data for stores throughout the country, and those locations and users
are all stored in a back-end database. All this is managed by ja
> From: Ian H [mailto:[EMAIL PROTECTED]
> Subject: Error when increasing Tomcat's maximum memory pool
>
> I have Tomcat 5.5 running on a Windows 2000 machine having 4GB of RAM
> (recently upgraded from 2GB). The JVM in place is 1.4.2_12.
>
> That being said, with its current configuration, Tomc
Authentication is done in the java code, checking against the back-end
database, and I'm trying to build the ACL's for a site as I read the
site and user information from the db. The only thing tomcat is doing
is serving up data; no authentication or access controls are set up in
tomcat itself
Awesome, thank you again Chuck!
- Ian
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
David Kerber wrote:
Authentication is done in the java code, checking against the back-end
database, and I'm trying to build the ACL's for a site as I read the
site and user information from the db. The only thing tomcat is doing
is serving up data; no authentication or access controls are set
I'm just adding to this:
When I remove the mapping for the error-code 500, then I get the
standard tc5.5 error page. So my exception-type error-page directive is
being ignored.
So it does appear that
http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 isn't fixed.
And won't be fixed?
Try printing out the URL / URI + query string and printing a loop of all
request parameters to see what you are actually posing and if the
request is still the correct one.
The next thing to check would be whether you request is redirected /
forwarded as this can have cause problems.
Kind regards
Hello all,
Is there a way to programmatically determine (using Java) the port numbers that
have been set up (in server.xml) for use by the SSL and Non/SSL connectors? By
default they are 8080 and 8443 but I need to be able to determine it
programmatically as well.
Thanks.
Av.
_
Thanks for the input. However, I guess I'm still missing something.
I want a directory to be the root directory of a virtual host. That
directory is itself a webapp and may have other directories within it
that are webapps (with explicit Context elements). To this point I have
never had to
We have installed tomcat 5.5.9 on centOS with cpanel but we're having some
problem setting custom options.
For example we wish to set the maximum memory with -Xmx, so we open catalina.sh
and we add it to JAVA_OPTS variable.
We then restart tomcat but it doesn't take the changes since "ps aux | gr
Looks like you'll have to use an embedded container e.g.
http://fisheye5.cenqua.com/browse/glassfish/appserv-core/src/java/com/sun/enterprise/web/WebContainer.java?r1=1.74&r2=1.75
int[] ports= _embedded.getEngines().vsArray[0].getPorts()
M--
This email message and any files transmitted with it co
I am using CentOS 4.4 but I don't think that this is specific to Linux
per se.
I've modified startup.sh to have:
CATALINA_OPTS="-Djava.awt.headless=true -Xmx512m"
export CATALINA_OPTS
after the comments at the top and it works fine. I also hard code my
JAVA_HOME in much the same way so that t
On 5/8/07, webzo <[EMAIL PROTECTED]> wrote:
Is there a way to programmatically determine (using Java) the port numbers that
have been set up (in server.xml) for use by the SSL and Non/SSL connectors?
You can get them from the ServletRequest object, a more portable
approach than extracting the
32 bit limitations, the entire process heap is around 2GB, leaving you
with the number you found for the java heap
Filip
Ian H wrote:
I have Tomcat 5.5 running on a Windows 2000 machine having 4GB of RAM
(recently upgraded from 2GB). The JVM in place is 1.4.2_12.
Using the "Configure tomcat"
Thanks again, both Filip & Chuck,
Is this interpretation of the information out there correct:
- the maximum memory available for allocation for the pool will depend
on the amount of contiguous memory that's available to be allocated
- on a W2K box with 4GB of RAM, we will likely have, by default
The organization of webapps isn't tree oriented on disk. It's a flat
list of webapps on disk with the "default" webapp being named the
special name ROOT (defined by the servlet spec). If you need webapps
organized deeper than the top level (ie /myWeb/path/app), then you use
the pound symbol a
Scott Dunbar wrote:
> I want a directory to be the root directory of a virtual host. That
> directory is itself a webapp and may have other directories within it
> that are webapps (with explicit Context elements).
You simply can't do this. Tomcat was never intended to work this way.
As I said be
red phoenix wrote:
> Anybody could tell me how to do it? Would you give me some code?
The following index.jsp works for me:
<%@ page contentType="text/html; charset=UTF-8" %>
Character encoding test page
Data posted to this form was:
<%
request.setCharacterEncod
No need to apologize - learning requires making mistakes and I
appreciate the responses that you and David Smith gave in pointing me in
the right direction. I've got some work to do but I now understand much
better that I was getting away with something for quite some time and
shouldn't have b
> From: Ian H [mailto:[EMAIL PROTECTED]
> Subject: Re: Error when increasing Tomcat's maximum memory pool
>
> - the maximum memory available for allocation for the pool will depend
> on the amount of contiguous memory that's available to be allocated
It's the amount of contiguous virtual memory
Thanks for the response.
Thats what I figured, that it would be available via ServletRequest or
ServletContext. But I don't see any methods to get it. Maybe it is set as an
attribute within one of these classes? Any ideas which method would help me?
Av.
- Original Message
From: Hassan
On 5/8/07, webzo <[EMAIL PROTECTED]> wrote:
Thats what I figured, that it would be available via ServletRequest or
ServletContext. But I don't see any methods to get it.
In the Servlet 2.4 API doc -- the one I happened to have open :-) --
ServletRequest.getServerPort()
HTH,
--
Hassan Schroe
Hi there,
We have recently switched to tomcat-5.5, on SuSE 9.3, and I ran into a
strange problem that was not there before.
I am using a custom script from catalina.out rotation. It works much the
same way as cronolog, except it is much simpler and does more (if anyone
wants to see/use it,
This is a correction of the Subject: which I failed to set properly in my
original message. Sorry...
Hi there,
We have recently switched to tomcat-5.5, on SuSE 9.3, and I ran into a
strange problem that was not there before.
I am using a custom script from catalina.out rotation. It works m
Andy-
in your startup file $CATALINA_HOME/bin/catalina.bat please confirm
java.util.logging.config.file as in this example
set
JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
then
Hmm, come to think of it, I saw that one. However, that kind of doesn't solve
my problem. I am in a class that is loaded earlier than the webapps
(Bootstrapper kind of class which is loaded when the webapp is being loaded
first time). I am trying to get BOTH the Non-SSL and SSL ports at that poi
Martin,
This is from catalina.sh, since it is Unix:
JAVA_OPTS="$JAVA_OPTS
"-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
"-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"
As you see, it is functionally identical to your settings.
Regards,
Andy
change
| /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 &
to
2>&1 | /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 &
ie, redirect stderr into stdout before passing it into the logger
Filip
Andy wrote:
This is a correction of the Subject: which I failed to set
Filip,
This works, thanks, although I am still not sure why the original failed.
Too many players in a single command...
Regards,
Andy
On Wed, 9 May 2007, Filip Hanik - Dev Lists wrote:
change
| /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 &
to
2>&1 | /u00/tomcat/bi
I think I "may" have found the cause of the problem with HPROF. A
CTRL+BREAK (on win32) is what triggers the dump of the hprof data to a text
file, but when running Tomcat as a win32 service it automatically sets the
-Xrs JVM option which causes the JVM to ignore these signals from the OS
(this i
On 5/8/07, webzo <[EMAIL PROTECTED]> wrote:
Hmm, come to think of it, I saw that one. However, that kind of
doesn't solve my problem.
OK, since you didn't describe that problem before...
I am in a class that is loaded earlier than the webapps (Bootstrapper
kind of class which is loaded when t
> From: webzo [mailto:[EMAIL PROTECTED]
> Subject: Re: How to programatically determine connector's
> port numbers?
>
> I am in a class that is loaded earlier than the webapps
> (Bootstrapper kind of class which is loaded when the
> webapp is being loaded first time). I am trying to get
> BOTH
Andy wrote:
Filip,
This works, thanks, although I am still not sure why the original
failed. Too many players in a single command...
the original failed cause | only pipes stdout, while tomcat is writing a
bunch of crap to stderr
Filip
Regards,
Andy
On Wed, 9 May 2007, Filip Hanik - Dev
Has anyone setup JavaMail in NetBeans 5.5 with Tomcat 5.5.23? I'm trying to
register the NetBeans Server Resource and it won't let me and tells me to
set to Sun's Java System Application Server.
Any ideas, suggestions, steps or tutorial available?
On 5/8/07, David Short <[EMAIL PROTECTED]> wrote:
Has anyone setup JavaMail in NetBeans 5.5 with Tomcat 5.5.23? I'm trying to
register the NetBeans Server Resource and it won't let me and tells me to
set to Sun's Java System Application Server.
Any ideas, suggestions, steps or tutorial availab
I haven't gotten that far yet. The message is in the NetBeans 5.5 IDE. It
won't let me register a JavaMail resource with Tomcat 5.5.23 because it says
5.5.23 is not J2EE 1.4 compliant. I may need to upgrade to NetBeans 6 and
Tomcat 6.x. However, NetBeans 6 is in Milestone release at this time a
89 matches
Mail list logo