I'm interested with it,but i don't know how to do.
On Mon, 18 Jun 2007 18:49:03 -0300
"Paulo Alvim" <[EMAIL PROTECTED]> wrote:
> Hi!
>
> We're using TC Cluster with Apache connector as dispatcher.
>
> We'd like to improve performance by caching images served by servlets(DBMS),
> in the dispatc
If you really need space sometimes,you can use
On Mon, 18 Jun 2007 09:47:39 -0700 (PDT)
LiuYan_刘研 <[EMAIL PROTECTED]> wrote:
>
> Thank you Leon, the 'trimSpaces' servlet parameter works fine except some
> little issues:
> 1. The span it trimmed is a little wider, it even trimmed the continuo
The program's default classpath is app/WEB-INF/classes
so,you need to put the property files under this folder.
That means that when you developping,you should put property files under
the src folder.
On Mon, 18 Jun 2007 07:46:19 -0700 (PDT)
nformosa <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
>
You don't need to copy the jar-file to your webapps/lib in Eclipse.
Instead,you can add a external jar-file(which has been copied to
tomcat/lib) for the project in Eclipse.
On Mon, 18 Jun 2007 15:58:55 +0200
"Kevin Wilhelm" <[EMAIL PROTECTED]> wrote:
> It works! Thanks!
>
> The problem has be
We are working with the following configuration:
Windows 2000 Server - 8CPU
jdk 1.3.1_06
Tomcat 4.1.18 - 2 separate instances (separate jvms)
- Tomcat1 is used as a container for our own socket server application
- Tomcat2 is used for Web application (jsp/jdbc)
Note that both instances have exact
Both will perform good enough. Odds are linux will perform better but
the difference wont be good enough if your admins can't support linux
servers and they are all MS certified.
Personally - I loathe admin'ing windows machines since I need to use a
GUI (and mouse) to typically accomplish anyt
yes - you could do this as a filter. (Google for examples)
If using apache 2.x - apache might be able to do the caching for you too
via mod_mem_cache or similar. (Again ... google)
-Tim
Paulo Alvim wrote:
Hi!
We're using TC Cluster with Apache connector as dispatcher.
We'd like to improv
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
CVE-2007-1358: Apache Tomcat XSS vulnerability in Accept-Language
header processing
Severity:
Low (cross-site scripting)
Vendor:
The Apache Software Foundation
Versions Affected:
Tomcat 4.0.0 to 4.0.6
Tomcat 4.1.0 to 4.1.34
Tomcat 5.0.0 to 5.0.30
To
Is there a way in tomcat to re-negotiate client certificate after the http
session has been invalidated (it had been successfully authenticated once
before) in the app. i.e. without closing and starting a new client browser.
I tried accessing request attributes javax.servlet.request.X509Certifica
Hi!
We're using TC Cluster with Apache connector as dispatcher.
We'd like to improve performance by caching images served by servlets(DBMS),
in the dispatcher level (apache connector)... is it as simple as configure a
'filter'? Any advice about that?
Thanks in advance!
Paulo Alvim
Brazil
( +55
Thanks very much for the troubleshooting Chuck. This completely solved
the problem and shaved a couple dozen bytes off my war file :)
Caldarale, Charles R wrote:
From: Mark Hawkes [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat 5.5.23: Cannot Deploy hello-world.war
$ cat META-INF/context.xml
r
Look at current tomcat docs
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
http://tomcat.apache.org/connectors-doc/reference/workers.html
http://tomcat.apache.org/connectors-doc/generic_howto/workers.html
Peter
Am 18.06.2007 um 17:45 schrieb shiva sha:
Hi
I try to implement Ses
Rainer Jung <[EMAIL PROTECTED]> writes:
> I agree with Mark, two of those look like coming from the Java 2D
> disposer thread, and the other two - as you already observed - come from
> OutOfMemory related to growableArray. A quick look into the bug database
> shows, that both areas unfortunatel
Hi,
Which auth method and realm config you use at your webapp?
Which auth method you use at your apache config?
The AJP protocoll transfer all auth information from apache to tomcat.
With ajp connector attribute tomcatAuthentication="true" (default)
tomcat reauth the request.
regards
Peter
> From: David Smith [mailto:[EMAIL PROTECTED]
> Subject: Re: ! Tomcat 500 error NEED HELP!
>
> Two bits of advice:
And a third:
> >CLASSPATH = d:\Servlets+JSP;d:\java\jdk1.5.0_12
Get rid of the CLASSPATH variable; the second part is certainly wrong,
and the first part may be causing the duplic
Two bits of advice:
1. Be very careful there is only one copy of a jar file in either the
webapp's WEB-INF/lib folder or tomat's lib folder. You'll get all sorts
of wonderfully horrible experiences if you have multiple copies laying
around where tomcat can find them. Hopefully you aren't add
Ha, life is easy same answer again you see because the server allows you
to change JSP pages, they are only compiled when needed, by tomcat itself,
so if a jsp has an error, it only crashed when its first used.
So, to force a compile, right click on each JSP page and compile it, now if
the
I've installed apache-tomcat-6.0.10 and jdk1.5.0_12
I've set the ENV variables:
_RUNJAVA = %JAVA_HOME%\bin\java
_RUNJAVAC = %JAVA_HOME%\bin\javac
_RUNJAVAW = %JAVA_HOME%\bin\javaw
_RUNJDB = %JAVA_HOME%\bin\jdb
CATALINA_HOME = d:\apache-tomcat-6.0.10
CLASSPATH = d:\Servlets+JSP;d:\java\jdk1.5.0_
| From: Kevin Wilhelm [mailto:[EMAIL PROTECTED]
| Sent: Monday, 18 June, 2007 08:59
|
| Should I use Ant for deploying then? But I won't be able to debug
| the webapps from within my IDE anymore since I am avoiding Eclipse's
| deployment mechanisms.
You should still be able to use Eclipse, just m
Ilja S. wrote:
I don't know exactly what random source is used by APR, it was compiled
with only one switch " --with-apr". Is this possible to find out?
What you compiled (configured) using --with-apr is propably not APR but
rather the Tomcat Native Library (libtcnative-1.so) which uses the AP
Ooops... my fault. I was thinking of getRealPath().
thanks
Caldarale, Charles R wrote:
From: David Smith [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat / WAR File; Classpath not recognised for
properties file
The only achilles heal [sic] here is the
ServletContext.getResource() method won'
Thank you Leon, the 'trimSpaces' servlet parameter works fine except some
little issues:
1. The span it trimmed is a little wider, it even trimmed the continuous
empty lines and the leading white spaces of the first line after directives.
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECT
You configured 404 as an http status code, which results in taking
workers offline. I think usually this is not a good idea. Think about
users sending you URLs like
http://youserver/trash
and thus taking your backends offline :(
Even without bad things in mind, users might use old bookmarks a
http://marc.info/?l=tomcat-user&m=118117027608411&w=2
Unrelated, but: you should consider upgrading mod_jk. 1.2.20 is very
outdated and misses a lot of new features. At the moment we are at 1.2.23...
[EMAIL PROTECTED] wrote:
Hi,
I have a webapp running in Tomcat which authenticates the user
> From: David Smith [mailto:[EMAIL PROTECTED]
> Subject: Re: Tomcat / WAR File; Classpath not recognised for
> properties file
>
> The only achilles heal [sic] here is the
> ServletContext.getResource() method won't work
> from a .war archive. The webapp has to be an
> expanded folder.
Not acc
Martin --
The only exception mentioned so far is an NPE. Nothing has indicated a
SecurityException.
--David
Martin Gainty wrote:
yes..All of this should work
it sounds as if perhaps someone has been changing the security
permissions without your knowledge?
try wrapping each executable s
yes..All of this should work
it sounds as if perhaps someone has been changing the security permissions
without your knowledge?
try wrapping each executable statement with try/catch
try {
this.getClass().getClassLoader().getResource("resources/myfile.xml").getPath().toString());
}
catch(Securit
If JibxManager is a class you wrote, couldn't you have the servlet
resolve the path to resources using ServletContext.getResource(
"/webapp-relative/path/to/my/resources" ).getPath() and then pass that
in on the JibxManager constructor? The only achilles heal here is the
ServletContext.getReso
Kevin, I dont know Eclipse,
But it sound very much the same as what Netbeans does.
ie it will also give every web app its own library.
Being able to share, is sometimes handy, its an alternative to context
sharing, and JNDI, for instance if you want to set up your own dB pool
BUT as a r
Then I suspect your resource isn't in a place where your webapp's
classloaders can find it.
--David
nformosa wrote:
This gives me a null exception!
David Smith-2 wrote:
BTW,
this.getClass().getClassLoader().getResource("resources/myfile.xml").getPath().toString());
should work a
Then how does the resource get into the webapp?? Yes, make sure the jar
files you generate have the resource files. The other option is to
create a WEB-INF/classes/resources folder with your resource files in it.
--David
nformosa wrote:
Neither,
I didn't compile the resources with the jar
Hi
I try to implement Session replication in Tomcat5.5.17 using Apache
HttpServer2.0.5.
I had downloaded mod_jk.dll and placed this dll into apache/modules/.
I had configured both server.xml in Tomcat1 and Tomcat2 and
workers.properties in Apache in Windows 2000 environment.
But no luck bcoz tomc
I agree with Mark, two of those look like coming from the Java 2D
disposer thread, and the other two - as you already observed - come from
OutOfMemory related to growableArray. A quick look into the bug database
shows, that both areas unfortunately seem to be notorious for JVM
crashes. There se
If you don't start Tomcat as a service, but from the command line, don't output
too much. The command line of Windows is very slow.
Ronald.
On Mon Jun 18 14:01:55 CEST 2007 Tomcat Users List
wrote:
I have no hard stats to back me up, but I doubt you'll see a significant
difference in perform
> From: nformosa [mailto:[EMAIL PROTECTED]
> Subject: Re: Tomcat / WAR File; Classpath not recognised for
> properties file
>
> I didn't compile the resources with the jar file! should i?
You don't compiler resources, but the properties file can be placed in
the jar.
> if so how would i then
Hi
I try to implement Session replication in Tomcat5.5.17 using Apache
HttpServer2.0.5.
I had downloaded mod_jk.dll and placed this dll into apache/modules/.
I had configured both server.xml in Tomcat1 and Tomcat2 and
workers.properties in Apache in Windows 2000 environment.
But no luck bcoz tomc
This gives me a null exception!
David Smith-2 wrote:
>
> BTW,
>
> this.getClass().getClassLoader().getResource("resources/myfile.xml").getPath().toString());
>
>
>
> should work as
>
> this.getClass().getResource( "/resources/myfile.xml" ).getPath() ;
>
> No need for all the extra noi
So, this is my layout..
I've got a servlet which handles the requests.
The servlet than instantiates another class. This class called JibxManager
(using jibx), then handles the requests and Marshals the xml request. The
JibxManager also handles xsd verification, so it has to load the xsd. This
Neither,
I didn't compile the resources with the jar file! should i?
if so how would i then access it?
Also i don;t have a classes directory since my code is compiled and jarred
and forms part of the WEB-INF/lib
Thanks
David Smith-2 wrote:
>
> So where exactly is your "resources/myFile.xml
BTW,
this.getClass().getClassLoader().getResource("resources/myfile.xml").getPath().toString());
should work as
this.getClass().getResource( "/resources/myfile.xml" ).getPath() ;
No need for all the extra noise.
--David
David Smith wrote:
So where exactly is your "resources/myFile.xm
> From: nformosa [mailto:[EMAIL PROTECTED]
> Subject: Re: Tomcat / WAR File; Classpath not recognised for
> properties file
>
> Though i'm still having trouble..since the file is being
> accessed from a class not the servlet
What does that mean (servlets are classes, after all)? What class, a
So where exactly is your "resources/myFile.xml"? Is it in the
WEB-INF/classes directory of your webapp or a jar file in WEB-INF/lib?
Your method of access requires it be in one of those two places.
--David
nformosa wrote:
David Smith-2 wrote:
nformosa wrote:
Hi All,
I'm having
David Smith-2 wrote:
>
> nformosa wrote:
>> Hi All,
>>
>> I'm having trouble when deploying my WAR application. The War file
>> contains
>> mainly the WEB.xml, and index.html file and a number of required
>> libraries,
>> incudling the compiled src code i've written, All libraries are stored
>>
nformosa wrote:
> Hi All,
>
> I'm having trouble when deploying my WAR application. The War file contains
> mainly the WEB.xml, and index.html file and a number of required libraries,
> incudling the compiled src code i've written, All libraries are stored
> within the WEB-INF/libs which is correct
> From: nformosa [mailto:[EMAIL PROTECTED]
> Subject: Tomcat / WAR File; Classpath not recognised for
> properties file
>
> How can i fix this problem? any ideas would really be appreciated!
It's in the FAQ:
http://wiki.apache.org/tomcat/HowTo#head-45c3314139cb900ddd43dde2ff67153
2e6e844bc
-
> From: nformosa [mailto:[EMAIL PROTECTED]
> I'm accesing these files using relative paths ie:
> /resources/config.xml
What code are you using to locate these files? Hopefully something to
do with the servlet spec? See, for example,
ServletContext.getResource(String).
- Peter
Hi All,
I'm having trouble when deploying my WAR application. The War file contains
mainly the WEB.xml, and index.html file and a number of required libraries,
incudling the compiled src code i've written, All libraries are stored
within the WEB-INF/libs which is correct. Along the libraries i ha
Yes! Thankyou very much!
When using /console the Thread Dump nicely dumped all threads into
jakarta_service.log ;-)
Henrik
-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: den 18 juni 2007 13:42
To: Tomcat Users List
Subject: Re: Tomcat thread dump: unable to open t
Hi,
thanks for your advice. I knew the plugin page before. This should be the
first-choice when searching for Eclipse add ons.
Currently I am happy about having solved the problem. It's possible to include
other JAVA-projects into the build path of an Eclipse-Web-Project. So far so
good.
Taki
Good Morning Kevin
Glad to hear that worked for you
What I found is that Eclipse has it's own plugins for virtually every major
system/subsystem as illustrated here
http://www.eclipseplugincentral.com/Web_Links+main.html
When exporting your build file to build.xml you will need to determine w
It works! Thanks!
The problem has been that each webapp had its own shared-lib jar-file, because
I am developing in Eclipse. So Eclipse needs to know which classes I am
accessing :/ At the end there were 3 times the same jar-file: 1st webapp, 2nd
webapp, tomcat/lib.
Removing the jars from the
Mark Thomas <[EMAIL PROTECTED]> writes:
> Jacob Bunk Nielsen wrote:
>> Rainer Jung <[EMAIL PROTECTED]> writes:
>>
>>> Give us a look at your hotspot error files.
>>
>> I have put a few online at http://flof.dk/~jbn/hs_err/ [...]
>
> The first 2 are Java2D problems, not Tomcat issues. Sun need to
The typical form is like this
public class SingletonObject
{
private SingletonObject(){}
public static SingletonObject getSingletonObject()
{
if (ref == null)
// it's ok, we can call this constructor
ref = new SingletonObject();
return ref;
}
private
> From: Kevin Wilhelm [mailto:[EMAIL PROTECTED]
> Subject: Share one singleton across webapps
>
> There has to be a way to let the first webapp instantiate the
> singleton and set some property so that the second webapp can
> use the singleton and read the property. How do I achieve this?
The c
I managed to get a jar file shared across two webapps in my Tomcat 6.
Inside there is a class that represents a Singleton.
The problem: the singleton class is instantiated by the first webapp and
then again instantiated in the second webapp. So there are 2
representations of the class and it is n
Hi All,
I set the jk logging level to debug and noticed that the jsp page was
trying to get an image from from tomcat that didnt exist. This lead
the jk mod to set both tomcat workers to an error state. Im guessing
that the next request I tried got sent to a tomcat and then a new
session was crea
Something to think about: licensing. If you're running Windows 2003 or
above, and you have *any* kind of authentication on your webapp, you
need CALs (or, in this case, an Internet connection license) on the
Windows server. The Web edition has different restrictions, but read
the license agreemen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Linux with a 2.6 kernel should perform better.
I would be a little worried placing a Windows Server at a service
provider without some sort of firewall/ packet filter protecting from
the big bad Internet.
But as you are asking this question, yo
I have no hard stats to back me up, but I doubt you'll see a significant
difference in performance as long as the hardware spec is the same. Our
Tomcat app on Windows 2000 runs for months between restarts, and even
then the restarts are for OS or application updates, not for Tomcat
problems.
Jacob Bunk Nielsen wrote:
> Rainer Jung <[EMAIL PROTECTED]> writes:
>
>> Give us a look at your hotspot error files.
>
> I have put a few online at http://flof.dk/~jbn/hs_err/ - now that I
> look at it two of them are OutOfMemory-errors.
The first 2 are Java2D problems, not Tomcat issues. Sun nee
[EMAIL PROTECTED] wrote:
> Yes, I did log on to the server using remote desktop. This is
> unfortunately the only way I can can access our production servers. If
> remote desktop is the problem I really hope that the Tomcat people can
> get the thread dump feature working over a remote desktop conn
its not a filter, its a parameter to the jsp servlet, which is in the
web.xml of tomcat (located under conf in 5.5) either way.
regards
Leon
On 6/18/07, 吴熊敏 <[EMAIL PROTECTED]> wrote:
Thanks very much in advance!!!
But i think it's not a good way to do this in web.xml.
Is there any way t
Rob Kirkbride wrote:
Just to close this down the problem was traced to having the same server
name in the jvmRoute in the server.xml in JBoss.
The load balancer is now behaving correctly.
Sorry to waste your time!
Not at all. You actually gave us a valuable information
that will probably hel
Hi All,
I'm trying to setup session clustering between two Tomcat 6.0.13
instances with Apache 2.2 and Mod JK 1.2.23.
The problem I'm having is that every request returns me a new session
so the users state is not kept, So i assume that the clustering is not
configured correctly.
Looking at the
Thanks for the reply. When I said lib folder within webapp, I meant not in
the webapp folder itself but the 'lib' folder present at
'webapp/appName/WEB-INF/lib'
Subbu.
-- Forwarded message --
From: 吴熊敏 <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Date: Mon, 18 Jun 2007 13:28:21
Hi
Thanks for reply!
I don't know exactly what random source is used by APR, it was compiled
with only one switch " --with-apr". Is this possible to find out?
I use tomcat with apache 2.2x and mod_jk.
The only connectors I have in server xml is:
---
Welcome ... Cheers!!
Regards
Guru
-Original Message-
From: Rob Kirkbride [mailto:[EMAIL PROTECTED]
Sent: 18 June 2007 11:43
To: Tomcat Users List
Subject: Re: Further Issues with mod_jk when using 4 app servers
Hi Gurumoorthy,
Excellent! Thank you very much. That was indeed the issue.
Just to close this down the problem was traced to having the same server
name in the jvmRoute in the server.xml in JBoss.
The load balancer is now behaving correctly.
Sorry to waste your time!
Rob
On 17/06/07, Rob Kirkbride <[EMAIL PROTECTED]> wrote:
Hi Rainer,
We're using the stock Apache
Hi Gurumoorthy,
Excellent! Thank you very much. That was indeed the issue. The config for
app104 had been copied from the config for app101. Hence the jvmroute on
app104 was set to to app101. This obviously confuses the heck out of mod_jk
as you'd expect.
Fixing this corrected the session issue
The memory issue is something that will probably occur on either OS... if
you have the source code of the web-apps tell the programmer to stick them
back into the dev environment and profile them.
Its very unlikely that its tomcat, its probably a badly written web-app.
Alternately get something
Thanks very much in advance!!!
But i think it's not a good way to do this in web.xml.
Is there any way to trim spaces when compile the jsp/servlet files but
not use the filter?
On Mon, 18 Jun 2007 11:56:01 +0200
"Leon Rosenberg" <[EMAIL PROTECTED]> wrote:
> trimSpaces was once a setting in the
trimSpaces was once a setting in the declaration of the jsp servlet in
the web.xml
jsp
org.apache.jasper.servlet.JspServlet
trimSpaces
true
...
regards
Leon
On 6/18/07, 吴熊敏 <[EMAIL PROTECTED]> wrote:
YES,IT'S a good idea,is there anyone w
YES,IT'S a good idea,is there anyone who knows how to solve this issue?
Thank you for the first!!
On Mon, 18 Jun 2007 02:17:24 -0700 (PDT)
LiuYan_刘研 <[EMAIL PROTECTED]> wrote:
>
> Is there a config for JSP compiler to ignore all white space characters which
> out of <%...%> in JSP and/or tag di
maybe you should remove the corresponding servlet mapping for /index.jsp, or
simply delete everything under ROOT folder, or you can try Tomcat 6.
Rob Tanner wrote:
>
> Hi,
>
> I installed Tomcat 5.5.23 stand-alone and then replaced the default
> index.jsp home page (webapps/ROOT/index.jsp) wi
Hi
We are considering running Tomcat 6 together in Java EE 5 jre. Is ok to do this
or is it likely to create a bunch problems because of conflicting Java EE
implementations? (As I understand it, tomcat has parts of Java EE implemented
internally, like JSP and servlet API's and more).
In pract
Is there a config for JSP compiler to ignore all white space characters which
out of <%...%> in JSP and/or tag directive lines?
Suppose the following code in JSP file:
<%@ page contentType="text/html; charset=utf-8"
Have you put the correct "jvmroute" value in the worker and engine ?
From: Rob Kirkbride [mailto:[EMAIL PROTECTED]
Sent: 18 June 2007 09:53
To: Tomcat Users List
Subject: Further Issues with mod_jk when using 4 app servers
Hi,
There definitely seems to
Hi,
I have a webapp running in Tomcat which authenticates the user logged on
the windows box against a active directory domain. Everything workes fine
when using tomcat directly, using Apache 2.0.49 with AJP 1.2.10 I get an
"401 Authentication required" error from the webapp.
It seems Apache do
Hi,
There definitely seems to be an issue with 4 app servers. Initially I
thought the problem was one of load balancing. I have definitely confirmed
that the load balancing fails with 4 app servers (this is covered in a
separate email thread)
However, this morning we've been getting a lot of comp
You'd better use linux.
Windows is too bad to run Tomcat!!!
On Mon, 18 Jun 2007 10:08:15 +0200
Roger <[EMAIL PROTECTED]> wrote:
> - What are your experiences?
> - We see that Tomcat uses more and more memory over time on our Windows
> servers. Is that the same on Linux?
> - Do you have (links to
Hello there!
At our office we use Windows 2003 as Tomcat server. For several clients we
need to install new servers at an ISP, and we have the choice of using Linux
or Windows. As performance is more and more of an issue, we are wondering
whether Tomcat will perform better on Linux.
- What are y
Rainer Jung <[EMAIL PROTECTED]> writes:
> Give us a look at your hotspot error files.
I have put a few online at http://flof.dk/~jbn/hs_err/ - now that I
look at it two of them are OutOfMemory-errors. I newer had those with
Java5, but Sun has accepted a bugreport about it, and we are
communicatin
Ok, thanks for your reply.
Yes, I did log on to the server using remote desktop. This is
unfortunately the only way I can can access our production servers. If
remote desktop is the problem I really hope that the Tomcat people can
get the thread dump feature working over a remote desktop connectio
83 matches
Mail list logo