it can be alot of factors. if its a fw problem, e.g if you only have
one public ip forwading it to your local host then you should have
something like this in your shorewall/rules
DNAT net loc:192.168.1.5 tcp 8080 - x.x.x.your_public_ip
On Fri, 17 Sep 2004 00:29:55 -0500, Lee Hoffner
[EMAIL
Michael wrote:
Since I just posted such a message let me explain why I am
installing 4.1.x. It is for a third party software the latest release
of which requires Servlet spec 2.3. That is supported by TC 4 only.
The vendor does not take any responsibilty that their product will work
with
Hi,
Wish someone could provide us insight to the following problem that we encounter. We
have been trying for nearly two months now researching the web including this forum
and trying out various suggestions but have been unsuccessful so far.
What we would like to know is that if there is a
-Original Message-
From: Jon Wingfield
The error message tends to imply there is no DOCTYPE (at
all) in one of your web.xml files. The parser fails when
validating the doc with this rather strange error message.
Is a normal XML validation process used? I.e. DTD
-Original Message-
From: juhani
Hi! As curren jk2 has problem with file upload i am asking
does anybody know when next version will be available or is
there any workaround?
Software used:
Windows server 2003
IIS 6
Tomcat 5.0.28
Since I've been watching Tomcat, it has been rapidly changing
version, with some incompatibility.
Are there any plans to stabilise and perhaps even
consider backwards compatibility?
Am I the only one looking at deployment concerns
over a fast moving target?
Regards DaveP.
snip here
apparently in the bugzilla report this has been fixed in the connectors CVS HEAD
ADC
-Original Message-
From: juhani [mailto:[EMAIL PROTECTED]
Sent: 17 September 2004 05:28
To: [EMAIL PROTECTED]
Subject: jk2 and file upload
Hi! As curren jk2 has problem with file upload i am
For a while now, i've been making posts, which for the most part have gone
unanswered. Mostly I believe it's because people that do know the answer
aren't on the list...Anyways, I threw together a few docs about how i
managed to finally get everythign working fine with the above apps.
A lot of
Hi
What I want to know is even if our program has a memory leak, it should
crash the JVM right?
No, your program (better your webapp) should get OutOfMemoryExceptions and
should continue running. Mostly, it will not do sensful things any more, but
it should NEVER crash the JVM.
It should not
yes we are successfully for the most part also but every now and again jk2 causes a
stream terminated unexpectedly error.
we use Commons FileUpload too but that is not the problem, it' JK2 and this is
mentioned is fixed in CVS HEAD (again, because it was fixed before but people
continued to
I tried it again using a 5+ version, it works correctly. Is this a bug
version 4? Anyone else care to comment?
out.write(
tr\r\n);
//a
out.write(td align=\right\ class=\formfield\ valign=\top\
Comment:/td\r\n);
On Fri, 17 Sep 2004 09:15:03 +0530, Antony Paul [EMAIL
Hi,
Is there any particular incompatibility that concerns you? I have been using the same
apps basically from an early version of 4 with no changes required to upgrade other
than small changes to web.xml etc to fall in line with the newer servlet specs which
tomcat has to follow and is not in
Hi Steffen,
Thanks for your reply. What you say confirms my understanding of how the JVM
works.
We start Tomcat from the command prompt as an application.
We have been using various settings for the OPTS. Currently its set as:
set
AVA_OPTS= -server -Xmx512M -XX:MaxNewSize=256M -Xminf.5
Hello
Sorry to drag this issue on but, I still don't get Tomcat 5 to recognize classes in
jar files located in $CATALINA_HOME/shared/lib
I tried my orginal application (which was running fine under Tomcat 4.1.x, both on
Windows and Linux)
with Tomcat 5.0.28 and then with 5.0.16, both under
I'd use Windows 2003 (or .NET Server if you like) and there is no
Garbage Collection to the application. About internal kernel management
I don't know, but applications can't use it. Applications have to use
there own algorithms. It would simply be impossible to redesign this for
the Windows
Hi,
You know, I haven't run a command-line javac in a couple of years, I
think. Ant is such a wonderful tool ;)
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 12:24 AM
To: [EMAIL
Hi,
I think it is because of the way Tomcat classloaders work. Classes in
common\lib or common\classes cannot see classes in WEB-INF\lib. DBCP
looks
for the JDBC Driver class and it cannot read it from WEB-INF\lib. This
is
the answer I got when I had similar problem. For further info on this
you
Hi,
Ditch the super class philosphy. And copy the following 3 lines of
code:
import ... LogFactory;
import ... Log;
private static log = LogFactory.get...(My.class);
Yup, exactly. Tim's message is right on, and if you look at the start
of this thread you see we only started suggesting the
Hi,
Is there any particular incompatibility that concerns you? I have been
using the same apps basically from an early version of 4 with no
changes
required to upgrade other than small changes to web.xml etc to fall in
line
with the newer servlet specs which tomcat has to follow and is not in
if you're forwarding from the ChargeCard directory, you just have to
include only the name of the page in the forward directive (e.g.
something.jsp or ./something.jsp) the trailing backslash is
directly referring the root context of this host
John Villar
Gerente de Proyectos
Computadores
Hi,
First of all, Xeth is the best name I've seen in a long time -- cool!
I have a bizarre issue. Using Tomcat 5.0.12, I have an application in
the directory C:\jakarta-tomcat-5.0.12\webapps called ChargeCard.
After loggin in, I am trying to forward a request to jsp page in that
directory.
LOL it seems shorewall is getting very popular however, the
x.x.x.your_public_ip part is unnecesary, the net part at the beginning
of the rule tells shorewall to use the public ip of the firewall for the
DNAT procedure
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058
shame about the surname lol (sorry xeth just kidding)
ADC
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 17 September 2004 13:17
To: Tomcat Users List; Xeth Waxman
Subject: RE: Traversing up a directory using RequestDispatcher
Hi,
First of all, Xeth is
isn't Xeth a biblic name? i have a friend that is called Seth, he told
me its roots are from the (cristian) bible.
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com
Allistair Crossley escribió:
shame about the surname lol (sorry xeth just kidding)
ADC
Yep there are lots :-D David, as long as you adhere to the
servlet specification, there won't be any problems at all (off course,
there's always a glitch here and there). I think servlets have been
sufficiently backwards compatible until now, however, that's my opinion
(i started using
static variables are not serialized because they are not part of the object
instance being serialized. (Can thing of a better phrasing)
-Tim
Spiegs wrote:
Ok, in a nutshell - using a private static logger in each model object
will not be serialized across the cluster. Use the following 3 lines
Dear List,
I am having a hard time to figure out how I could fulfill a special
requirement in a current project.
I could use either tomcat 4.1.x or tomcat 5.0.x for this project, I
presume it doesn't make much difference in terms of possible solutions.
The project also uses struts (1.2.2) and
Hi,
Why not use an HttpServletResponseWrapper? You can easily wrap whatever
responses you want with a Filter, and then implement the encodeURL
method however you want.
I think the design itself is cruising for a bruising, as is the case any
time you deviate from Servlet Spec mandates on session
I think you might need to use a Valve instead of Http...Wrapper. The
Http...Wrappers can't dig enough into the correct internals to do your
session management. But the Valves (probably) can. (Without me thinking about
the details)
With a valve you should be able to wrap or change the internal
More a question than an answer: Could a servlet filter do the job?
Markus Krogemann [EMAIL PROTECTED] schrieb am
17.09.2004, 14:31:51:
Dear List,
I am having a hard time to figure out how I could fulfill a special
requirement in a current project.
I could use either tomcat 4.1.x or
Hi,
I believe javax.servlet.http.Cookie (as seen in Tomcat 5.0.28 sources,
at jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/Cookie.java)
is invalidly enforcing restrictions on the cookie name.
The constructor does not accept, for example, Domain as a cookie name.
The same goes for other
Hi folks,
I am getting a Null Pointer exception that I am finding hard to pinpoint,
and wonder whether you may have some insight into the matter. Note that the
exception is being handled, but as I am using Eclipse, the nullpointer is
being displayed.
Below is my server.xml, a snippet of debug
Hi,
Contact the expert group for JSR154:
http://www.jcp.org/en/jsr/detail?id=154. They control the code for the
Servlet API. If they agree with you, they will open an enhancement
issue right away for this item, you don't need to worry about that part
;)
Yoav Shapira
Millennium Research
Hi, in tomcat 4.1.29, what is the best approach to replace a deployed war (wich is
expanded) via the manager webapp ?
Also, what's the best choice between 1) automated deployment settings via the host
element e.g. 'liveDeploy' or 2) the manager webapp deploy/install functions ?
Kind regards,
-Original Message-
From: John Villar
Yep there are lots :-D David, as long as you adhere
to the servlet specification, there won't be any problems
at all (off course, there's always a glitch here and
there).
The service provided to customers is
What is OP ? Can you please expand it ?
rgds
Antony Paul
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 17, 2004 5:41 PM
Subject: RE: Serializable Logging implementation
Hi,
Ditch the super class philosphy.
Hi,
OP = Original Poster, the person who started this thread.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 9:31 AM
To: Tomcat Users List
Subject: Re: Serializable Logging implementation
Well my friend, that's the open source way to software, remember
release early, release often is the motto. If you problem is the
mainteinance costs, stick to some stable release.
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com
[EMAIL PROTECTED]
Thanks Yoav, Martin, Tim
You're right, ServletApi's Filter appears to be a simple solution. I
somehow didn't expect that I could just do something like:
response = new ResponseWrapper(response)
in the doFilter method, but of course it works, because the wrapper is
just passed on to the
would it be of any use to anyone for the development of something similar
to phps in php? where you can rename a file to .jsps for instance and it
would show you the code line for line and have pretty colours...
-
To
Hi,
would it be of any use to anyone for the development of something
similar
to phps in php? where you can rename a file to .jsps for instance and
it
would show you the code line for line and have pretty colours...
Something like that is trivial to do already -- just serve the JSP with
Hello!
Tomcat 5.0.24 is used. Context contains ordinary jsp and Axis library.
There is error page, defined in web.xml:
error-page
error-code500/error-code
location/errorpage.jsp/location
/error-page
Everething works fine, but when exception occurs in web services, the
Also, you could do a Servlet that serves all the .jsps files that take
the corresponding jsp file and outputs it on html format, coloured with
graphics, etc
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com
Shapira, Yoav escribió:
Hi,
would it be of
Hi,
IllegalStateExceptions are serious enough that they shouldn't be ignored
by removing them from the logs. You CAN configure tomcat's logging to
not log these, the directions are in the FAQ's section on logging, but
that's a terrible idea. As is the general idea of removing exceptions
from
Expanding a little more the idea, you could enabled the servlet output
to receive modifications to the jsp page and ave it ot the corresponding
jsp *grin* and that way you integrate nice output with editing
capabilities
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058
Hi I've got problem (again) with encoding.
Yes I've read all bugs 23929 25360 etc.
No I didn't read www.anassina.com/struts/i18n/i18n.html because I can't
reach that site don't know why server down or my connection broken???
I've got two jsp pages index.jsp and out.jsp
On index.jsp I have
You probably focused on the rest of your application and didn't notice
that the exception occurs in the error page itself.
ukr.net [EMAIL PROTECTED] schrieb am 17.09.2004, 16:30:25:
Hello!
Tomcat 5.0.24 is used. Context contains ordinary jsp and Axis library.
There is error page, defined
Lee Hoffner wrote:
1) does host/dig/nslookup resolve 'www.mydomain.com' to your address?
I don't have a DNS server here, just a /etc/hosts file. www.mydomain.com is
listed in the hosts file at 192.168.1.5
nslookup finds www.mydomain.com at the public IP provided by my ISP.
So this is broken;
Again (there was a similar problem today), it might help to run tomcat
with -Dfile.encoding=ISO-8859-2
Or better use UTF-8 if applicable...
Krzysztof Cieniuch [EMAIL PROTECTED] schrieb am 17.09.2004, 16:42:36:
Hi I've got problem (again) with encoding.
Yes I've read all bugs 23929 25360
Thanks to all.
The resource link problem has been solve with this recommendations you
gave me, at the end I copied my database .jar to common/lib so all web
application and the server can see it, what seems strange to me is
that it used to work on Tomcat 4 without any copy task, but the
solution
Ok, I'll bite.
Isn't this what IDE's are for? Browser as IDE? no thanks. ;)
-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 9:39 AM
To: Tomcat Users List
Subject: Re: [ot] something similar to phps ?
Expanding a little more the
OK, so apparently I am doing a cross context request dispatcher call,
which is bad. So I shouldn't do that. Assuming my app is under
c:\jakarta\webapps\ChargeCard (context is /ChargeCard), that means my
servlets should be under
c:\jakarta\webapps\ChargeCard\WEB-INF\classes, correct? If that is
Hi guys.
I'm having trouble setting up DIGEST authentication for single webapp in
Tomcat 5.0.27.
does anyone have done it successfully
I'd appreciate some guidance in this area
Alex
It isn't a bad idea at all you could use one of those in-browser
editors to aid in the editing, and the preview would be in another
frame. dumping dreamweaver never sounded so good... LOL...
now, speaking seriously, that could be a good alternative to
noteppading, viing or emacsing
You have to enable the invoker servlet, this question comes up *A LOT*
in this mailing list xeth try the better, cleaner, securer way
do a servlet mapping in your web.xml file
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com
Xeth Waxman
Hi,
I try to do my first steps with the java server platform and have chosen
Tomcat for this.
I wrote a class which is able to Monitor the database pools of a Context
when beeing called out of it.
I only had to use JNDI to iterate over comp/env/jdbc and cast the
DataSource instances to a
I am sorry, I don't think I am explaining well. My english
comprehension is still new, so I am doing a poor job. I have jsp page
login.jsp in CATALINA_HOME/webapps/ChargeCard (let's call it
APP_HOME). I have moved my servlets from
CATALINA_HOME/webapps/ROOT/WEB-INF/classes to
Hi,
login.jsp in CATALINA_HOME/webapps/ChargeCard (let's call it
APP_HOME). I have moved my servlets from
CATALINA_HOME/webapps/ROOT/WEB-INF/classes to
APP_HOME/WEB-INF/classes. So my question is twofold:
1) from my jsp, how do I invoke the servlet in it's new location?
Prior I was using:
A Valve is just like a Servlet Filter but tomcat specific. They are run early
enough in the request lifecycle that you can change different behaviors of
how things work. But a Valve also has access to tomcat's internals, something
servlet filters don't have.
It would like know which companies are utilizing the tomcat in large-scale
systems.
Filipe Giovany
Worked perfectly - tomcat users get soup :)
On Fri, 17 Sep 2004 11:52:48 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
login.jsp in CATALINA_HOME/webapps/ChargeCard (let's call it
APP_HOME). I have moved my servlets from
CATALINA_HOME/webapps/ROOT/WEB-INF/classes to
I'm playing with some code that loads classes at run time.
Some where in the code I think I've messed up a call because the code I'm
invoking is failing. The problem is, the message I'm getting isn't telling
me what I specified wrong. What I'd like to do is have the system tell me
what
Hi,
We have a very very partial list on the FAQ
(http://jakarta.apache.org/tomcat/faq/misc.html#productionStories). As
it says, many production users can't divulge that information due to
company policy.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: [EMAIL
I'm running into a problem with the auto-deploy mechanism (maybe the wrong
term... the mechanism that deploys contexts based on a external context
configuration XML file in $CATALINA_BASE/conf/engine-name/host-name).
I started with an out-of-the-box install of 5.0.27 on SuSE 8.2.
I set
Hi,
As the RUNNING.txt file include with the distribution says, webapps and
several other directories are calculated relative to $CATALINA_BASE, not
$CATALINA_HOME, when the two are different. So you're sort of doing
this backwards.
Check section 4 of the RUNNING.txt file:
On Fri, Sep 17, 2004 at 01:49:51PM -0400, Robert Bateman wrote:
: Some where in the code I think I've messed up a call because the code I'm
: invoking is failing. The problem is, the message I'm getting isn't telling
: me what I specified wrong.
Specifically, what is your code, and what
I have an apache/tomcat environment that is experiencing performance
problems.
My production environment has apache on one win2k box, and the two tomcat
instances on another win 2k box.
When I load test the my application directly against either of the tomcat
instances, I get about 150
Am I wrong to think this should work? Have I left out a
necessary config step?
I forgot to create an empty webapps directory in CATALINA_BASE.
--
Notice: This e-mail message, together with any attachments,
I have a Deployer set up like so:
Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer
tempDir=/home/apache/temp/
deployDir=/usr/local/jakarta-tomcat-5.0.27/webapps/
watchDir=/home/apache/watch/
BTW the web.xml for the war does include the distributable / element
-Original Message-
From: Rob van Oostrum [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 4:51 PM
To: [EMAIL PROTECTED]
Subject: cluster FarmWarDeployer
I have a Deployer set up like so:
yes, all servers should have the deployer element.
the only difference would be watchEnabled would only be true for the admin server.
also, never seen that error, but I will investigate, feel free to open an item in
bugzilla
Filip
- Original Message -
From: Rob van Oostrum [EMAIL
Sometimes we developers have no choice on the version that we
run. We were upgraded from 4.1.12 to 4.1.30 last weekend.
This only happened because IT wanted to upgrade from SLES7 to
SLES8 and 4.1.30 is the version that YAAST had. If it had been
up to my part of the We, we would have been on 5.0
- should the deploy dir point to the webapp directory? I tried using the
out-of-the-box configuration, but that seemed to only copy the war and not actually
deploy it
- where is the warfile supposed to arrive at each of the other 2 nodes? Is that what
the deploy dir property is for in the
I am using Tomcat 5.0 and Struts 1.1. I also use a Filter that zips the
requests and responses. I am running a chat room on port 80 with a
frameset html that auto refreshes in one frame and sends in another
frame. When a user with IE tries to chat with me from her office, she
gets 505
- should the deploy dir point to the webapp directory?
no it should not, cause you would double deploy your app, and that is why you get an
error
but that seemed to only copy the war
no, it deployed it, just didn't expand it, there is no reason to expand it
Filip
- Original Message -
Hmm...
http://www.greenfieldresearch.ca/technical/jk2_config.html
Reading that, look for the one line in red font. Seems there's potential
config problems when apache and tomcat are on separate boxes, as they need
to share a file. You'd think this would prevent operation, rather than
slowing it
Hello all!
How to disable ServerTokens in Tomcat and how to replace
the error pages on custom static pages?
Thank you for any help!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
unsubscribe me!
Unsubscribe me!
I have an app currently running on stand alone Tomcat(with a Win2K OS).
Different 'user-experiences', (text and graphics) are served
depending on the different URL address which are used to reach the
site. What we want is to have SSL certificates to authenticate for
these different domain names.
With Tomcat 5.5.2, JSF, and JSP, I'm serving up pure,
standards-compliant XHTML 1.1 that starts out with:
?xml version=1.0
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
That works just fine with FireFox,
Hello,
I'm having a problem with tomcat server version 5. When I click on
the welcome button from the start/programs/apache tomcat 5.0 the
browser opens and says 'cannot find server'.
I installed it from the install wizard with a full install. I set the
environment variable JAVA_HOME to
On Fri, 2004-09-17 at 17:55, Garret Wilson wrote:
With Tomcat 5.5.2, JSF, and JSP, I'm serving up pure,
standards-compliant XHTML 1.1 that starts out with:
?xml version=1.0
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
html
Hi again! Another question. I have a system language Spanish on my
server. How can I setup error pages (404,413 etc) to use English instead of Spanish?
Thank you for any help!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
No, please, tell me it's all a bad dream...
Doesn't that workaround mean that all browsers, even ones that support
XHTML 1.1 (such as Firefox), will suddenly start applying an XSL
transformation to the entire web page?
Wouldn't it be a much less nasty hack just to tell Tomcat to serve these
Hello!
You probably focused on the rest of your application and didn't notice
that the exception occurs in the error page itself.
Thank you for responses!
May I ask you - how did you conclude that expection occurs on error page
itself? I think, exception does not occur on error page.
I may
According to the JSF and JSTL documentation (and two JSF books),
jstl:import should dynamically import information. I have:
jsf:view
...
jsf:subview id=navigation
jstl:import url=navigation.jsp/
/jsf:subview
...
/jsf:view
However, everything from navigation.jsp is
87 matches
Mail list logo