Hello!
Could somebody please advice what is a best way to implement a valve class,
which will just add custom authorization header if request matches some
conditions?
I looked at org.apache.catalina.Request interface and found there is a method
/**
* Set the authorization credentials sent
Hi there,
I'm running tc-5.5.16 and am having a problem with certain clients
consuming large numbers of ajp threads which are never released. I can
see from the httpd logs that these clients are all Windows machines and
each thread is being used to return a 16-64Kb portion of the files they
From: Vamshidhar Palkonda [mailto:[EMAIL PROTECTED]
Today, all the embedded devices like VPN, Firewall devices
have a cli, httpd and configd daemons. These are all control
pane daemons. They are all in C/C++.
Now I want to use tomcat in place of httpd and confid. First
is it a good way
Thank you for the reply. I already created the LoginApplet.html and embed the
LoginApplet.class. Where should I put the files in the tomcat directory? Where
should I put the JSP files? How about the WEB-INF file? Please help me! I'm
really short of time! Thank you so much.
Yours
I think you are really after this.class.getResourceAsStream(
org/coffeebreak/config/attributes-config.xml ) ; which would use the
classloader to locate your xml file in WEB-INF/classes or your jar file
and return an InputStream to it.
--David
James Dekker wrote:
Robert,
The problem with the
First thing to realize is this is not like setting up PHP. JSPs aren't
meant to live on their own like what you've setup below.
Consider pointing your tomcat virtual host to /home/username/webapps.
Then create a folder /home/username named ROOT (case is important here)
and place your .jsp file
Yes, you are correct Mr. David Smith, I was just about to tell this matter. I
did not put the LoginApplet.class in the WEB-INF. I choose to use html in the
servlet because I would like to upgrade the previous system that was written in
cgi. For the moment, I plan to use servlet and will upgrade
Just an FYI: Sent the laptop with the user last night and talked to him this
morning and he hasn't had any issues with it since correcting the URL issue,
so that appears to have fixed the issue in its entirety...
I just did a quick test on my desktop and changed the URL on some of the
icons in
Hi, Tomcatters -
I have a working application to which I need to add a new function,
where I need to watch a networked directory (not on the local tomcat
server machine) for newly-appearing files, which I will then process. I
need to have this done at intervals not exceeding about two
on the servers that is running tomcat you need to match Receiver port
with Member port
so for the member that listens to 51077, you need to configure the
port=51077
also to avoid conflict, you might want to turn on the membership, which
I think I forgot to add in a flag for, I'll do that
even with this method, you are not managing the sessions, you're just
making sure that everything gets replicated, so doing this, you are not
changing the session manager.
remember, the code below would be inserted into a filter or a valve
Filip
[EMAIL PROTECTED] wrote:
Hi Filip,
Thanks for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kim,
Kim Albee wrote:
We are not doing URL rewriting with sessionid, it's saving as a
cookie.
Okay.
Not sure how the sessionid is determined ... by Tomcat or Apache
Tomcat generates the sessions and therefore their ids as well.
we have
If you run two tomcat instances, from same location, at same time you
will run into various troubles
1) The second VM will have problems binding to ports, as the first one
will already have claimed the port. You can argue to use different
config, but then it's 2 different installations.
2)
Hello list,
I'm unsing Tomcat 5.5 in a intranet environment. Is it possible to shut out
special IP adresses or subnets by Tomcat configuration? A Address specified
on this 'blacklist' should not get ANY response from Tomcat.
Is this possible and if, how?
Thanks,
Jan
You can implement a filter to check all request to your app before
processing. But if you don't want an IP address to access your app then I
assume you don't want that IP address accessing anything on the OS you're
running. If you have access to the OS running your app in this case it
better to
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Is it possible to shut out
special IP adresses or subnets by Tomcat configuration?
Yes, using a filter. But...
A Address specified
on this 'blacklist' should not get ANY response from Tomcat.
Is this possible and if, how?
That is *not*
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David,
David Delbecq wrote:
If you run two tomcat instances, from same location, at same time you
will run into various troubles
I think Peter Crowther hit the nail on the head: we are being imprecise
in our terminology.
I've been talking about a
David Kerber wrote:
Thanks for the suggestion. One question about this technique: can I
run the directory check loop directly in the contextInitialized event
of the Listener, or is it mandatory to create a new thread?
You can't make an infinite (almost) loop during processing an event.
Using
From: Tim Funk [mailto:[EMAIL PROTECTED]
Subject: Re: Watching a directory for new files
Various operating system allow hooks to do be notified when
items in the filesystem change. But since we're using java
- thats not the case here
Tomcat does have the capability of specifying one or
En l'instant précis du 01/16/07 16:26, Christopher Schultz s'exprimait
dans toute sa noblesse:
I think Peter Crowther hit the nail on the head: we are being imprecise
in our terminology.
I've been talking about a single installation (i.e. only one binary copy
of Tomcat) but using several
On 1/16/07, Christopher Schultz [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David,
David Delbecq wrote:
If you run two tomcat instances, from same location, at same time you
will run into various troubles
I think Peter Crowther hit the nail on the head: we are
Caldarale, Charles R wrote:
From: Tim Funk [mailto:[EMAIL PROTECTED]
Subject: Re: Watching a directory for new files
Various operating system allow hooks to do be notified when
items in the filesystem change. But since we're using java
- thats not the case here
Tomcat does have the
Mikolaj Rydzewski wrote:
David Kerber wrote:
Thanks for the suggestion. One question about this technique: can I
run the directory check loop directly in the contextInitialized event
of the Listener, or is it mandatory to create a new thread?
You can't make an infinite (almost) loop
Hi,
I have a JNDI connection to a MySQL database, a new thread is started
every n seconds which queries a web service and then returns with the
response time or a timeout. Each of these threads has a connection to
the database. If the server is responding very slowly or indeed not
responding at
Please , I need help !
Problem running tomcat with war file, deployed with eclipse and spring
( additional INFO:
JAVA_HOME = C:\Program Files\Java\jre1.5.0_09
CLASSPATH = C:\Program Files\EasyEclipse Desktop Java
1.0.2\jre\lib;C:\Program Files\EasyEclipse Desktop Java
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Subject: Re: [OT] different version of java
I think you are running two different installations which
share server/libs :-)
The procedure Chris describes is documented in RUNNING.txt under
Advanced Configuration - Multiple Tomcat Instances as
have you read this and follow all the steps:
http://tomcat.apache.org/connectors-doc/reference/iis.html
I'm not trying to be a spammer but nobody has responded yet.
Has anyone got JK-1.2.20 to work with IIS 6?
I went back to version 1.2.15 and it works now but the developers tell
me it's
http://tomcat.apache.org/faq/security.html#restrict
-Tim
[EMAIL PROTECTED] wrote:
Hello list,
I'm unsing Tomcat 5.5 in a intranet environment. Is it possible to shut out
special IP adresses or subnets by Tomcat configuration? A Address specified
on this 'blacklist' should not get ANY response
Yes, I've read those and followed the instructions.
It works fine when I went back to JK-1.2.15 but I could not get it to
work with JK-1.2.20.
The only difference is I replaced the 1.2.20 isapi_redirect.dll with the
JK-1.2.15 dll version.
Shawn
-Original Message-
From: reno
Note: forwarded message attached.
lekan
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.---BeginMessage---
Hi!
In Swing, to create and populate a JTable is simple:
new JTable(Object[][] data,
Try seeing if you can find an old copy of the ISAPI redirect installer. If
you can't find one by google, let me know. I had a heck of a time with
getting IIS 5 and the redirect to work. The installer for whatever reason
seemed to do the trick for me.
Also, make sure that you physically restart
Hi All,
in Tomcat 5.x I had my context-file in directory conf/catalina/localhost
and in my server.xml autoDeploy=false deployOnStartup=false.
My context-file ((for example uleashed.xml for unleashed-web-application):
Context path=/unleashed docBase=unleashed debug=1 reloadable=true
Resource
thanks for the response.
Space is not a problem on the device. The device will be running Linux.
One other reason is why I am thinking of tomcat is I am familiar with Java but
not C,C++.
We are starting from the scratch. And there are not many developers right now.
Since the infrastructure that
From: Wojtek Kusch [mailto:[EMAIL PROTECTED]
Subject: context.xml in Tomcat 6
in Tomcat 5.x I had my context-file in directory
conf/catalina/localhost
The same location is also correct for Tomcat 6, except it's Catalina,
not catalina (case sensitive).
Context path=/unleashed
The javax.management.Timer class was rather more complex than I liked
for the simple stuff I needed, but while digging into it, I discovered
the java.util.Timer class, which works great and is easy to implement,
so thanks for putting me on the Timer track!
Dave
David Kerber wrote:
Mikolaj
@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__ NOD32 1982 (20070116) Information __
This message was checked by NOD32 antivirus system.
http://www.eset.com
and its attachments from all computers.
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__ NOD32 1982 (20070116
If you are using java 5 or higher, consider using
ScheduledThreadPoolExecutor which is generally considered a
replacement for Timer.
Robert
On 1/16/07, David Kerber [EMAIL PROTECTED] wrote:
The javax.management.Timer class was rather more complex than I liked
for the simple stuff I needed, but
Thanks for the suggestion. I don't need the extra capabilities or
multiple threads for this app because of its simplicity and relatively
low traffic rate, but I'll keep it in mind if I need to handle more
traffic later on.
Dave
robert lazarski wrote:
If you are using java 5 or higher,
You can use just one thread just fine. Timer does have some drawbacks.
Here's an example:
ScheduledExecutorService ses = Executors.newSingleThreadScheduledExecutor();
// Do pings, starting now, with a 2 second delay
ScheduledFuture ? ping = ses.scheduleWithFixedDelay(new
I have beat my head against this one long enough. I am hoping someone can
help.
I cant get past the error message
SQLException: Cannot create JDBC driver of class ' ' for connect url 'null'
I am using tomcat 5.5.17 and I am attempting to get a JDBC connection in a
servlet using the instructions
PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__ NOD32 1982 (20070116) Information __
This message was checked by NOD32 antivirus system.
http://www.eset.com
-
To start a new topic, e-mail
We are running an Apache 2.0.54 , mod_jk 1.2.10 and Tomcat 5.5.17 on a
Windows 2003 server box, average web traffic to Tomcat is about 10 to 20
concurrent HTTP sessions (idle session timeout 15 minutes). After a weekend
of sudden heavy web traffic with up to 150 simultaneous HTTP sessions we
An interesting twist to the situation is that if I delete the war file in
webapps the Exception does not occur and the application works. Also, the
context.xml is not copied, so I suspect it doesn't need to be.
What causes the application to operate differently when the war file is
present then
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Subject: RE: Cannot create JDBC driver
An interesting twist to the situation is that if I delete
the war file in webapps the Exception does not occur and
the application works.
What war file? You did not mention any in the first message.
Hello there,
I am creating a configurable errors file which gets loaded as a
properties file from an init servlet:
import java.io.IOException;
import java.util.Properties;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
public class ErrorInitServlet extends
It looks like it is looking for it in the root of either the machine or
CATALINA_HOME. Resolve the path correctly and you'll probably find your
problem. You didn't provide the path so the loader assumes the root.
Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600
Does anyone have any ideas on this? This whole thing is basically not usable
for real work if exceptions are silently dropped, which is what is happening.
Surely someone has implemented some kind of log system that works in Tomcat?
Or at least there's a way to dump exceptions to System.out
In my servlet, I load a properties file that is in my [context_path]/classes
directory with the following line of code
m_resource = ResourceBundle.getBundle( ctimpact, Locale.getDefault() );
This works fine for me. You could try removing the .properties part of the
file name. The API may be
Hi All!
If I include tomahawk 1.1.3.jar in my application library (add external
jar to my app), then start tomcat 6, I get following error:
Error listenerStart
17.01.2007 00:03:50 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/JSFMyApp] startup failed due to
On 1/16/07, Vacuum Joe [EMAIL PROTECTED] wrote:
Does anyone have any ideas on this? This whole thing is basically not usable
for real work if exceptions are silently dropped, which is what is happening.
Surely someone has implemented some kind of log system that works in Tomcat?
When will
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
James,
James Dekker wrote:
m_resource = ResourceBundle.getBundle(error.properties);
When you use ResourceBundle.getBundle, you don't put the .properties
extension on the file. You need to change this line of code to this:
m_resource =
When will you get the idea to take this to a JBoss list??? Logging in
Tomcat works absolutely fine with virtual hosts in standalone mode,
right out of the box.
I also asked on a JBoss forum and they thought it's Tomcat. Right now I'm
going through the JBoss deployer code, and will set up test
Eugeny N Dzhurinsky wrote:
Hello!
Could somebody please advice what is a best way to implement a valve class,
which will just add custom authorization header if request matches some
conditions?
If you want to add a header then something like this should work but I
haven't tested it at all.
Specifying the location of the log4j.xml file in CATALINA_OPTS is ignored.
It will only pick it up from the classes/ directory. Ideally I would like
to put it under the conf/ directory but am having no such luck.
I got it to work sort of. I can not get fileappenders to work. I am trying
to
Well,
I have to apologize, I was unsure of how much information on the setup
environment was needed?
I deploy the application from a war file. When I delete the war file from
the webapps directory and leave only the previously extracted directory the
servlet can create the DataSource. If I
On 1/16/07, Vacuum Joe [EMAIL PROTECTED] wrote:
I also asked on a JBoss forum and they thought it's Tomcat.
heh. :-)
... will set up test cases and trace the whole thing,
You might want to install the same version of Tomcat standalone, and
create a comparable virtual host configuration
There are 2 bugs (40401 and 38485 ) both dealt with Tomcat ignoring
server parameter set in server.xml. Both are marked as either fixed
or duplicate of the other one. They are bugged in version 5.5.14 and
5.5.15.
Any idea which version of TC those are fixed in? I am using 5.5.17
and am still
Ray-
You will need to supply JDBC parameters as in this example Realm specification
in server.xml
Realm className=org.apache.catalina.realm.JDBCRealm
driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost/authority
connectionName=D
Toadie wrote:
Any idea which version of TC those are fixed in?
http://tomcat.apache.org/tomcat-5.5-doc/changelog.html
Mark
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
From: Wojtek Kusch [mailto:[EMAIL PROTECTED]
Subject: tomahawk and Error listenerStart
SCHWERWIEGEND: Context [/JSFMyApp] startup failed due to
previous errors
17.01.2007 00:03:50 org.apache.catalina.startup.HostConfig
deployDescriptor
What can I do?
Find out what the previous
From: Vacuum Joe [mailto:[EMAIL PROTECTED]
Subject: Re: No logging (or System.out) when I activate virtual hosts
Does anyone have any ideas on this? This whole thing is
basically not usable for real work if exceptions are silently
dropped, which is what is happening. Surely someone has
ResourceBundle.getResource(errors) will get errors.properties
language and country is self-explanatory..
variant is either
WIN for Windows, MAC for Macintosh, and POSIX for POSIX
The order to locate the resources properties file on your classpath is ..
a.. baseName + _ + language1 + _ +
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Subject: Re: Configurable Errors
ResourceBundle.getResource(errors) will get errors.properties
language and country is self-explanatory..
variant is either
WIN for Windows, MAC for Macintosh, and POSIX for POSIX
The order to locate the
Chris!
You hit the nail on the head!
Removing the .properties extension made it work!
Thank you so much! You rock!
-James
On Jan 16, 2007, at 3:25 PM, Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
James,
James Dekker wrote:
m_resource =
From: Wojtek Kusch [mailto:[EMAIL PROTECTED]
Subject: Re: context.xml in Tomcat 6
If I choose this app (unleashed) I get - 404 _The
requested resource (/unleashed/) is not available.
You have no welcome file in the app's directory, nor is there any
servlet-mapping in your WEB-INF/web.xml
Hi, Could anyone here explain to me about the use of the working path in
Tomcat? I already tried searching in google but still could not find a good
answer. In MS Windows, this working path can be set by using the GUI, but how
to set this path in Linux? Thanks. :)
Hi All,
I have a OS X server, running Tomcat 5.0.19.
There are already three applications running but I will need one more
application which is memory intensive.
I wanted to know how can I specify/increase the memroy requirements for my
application or Tomcat application?
My new application may
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ayusman,
Ayusman Dikshit wrote:
I wanted to know how can I specify/increase the memroy requirements for my
application or Tomcat application?
If you want to give this particular application more resources than you
want to share with the others,
Hi,
Can We configure tomcat server to allow clients who have certificates to access
a particular URL, but allow all clients to access the rest of the server?
Restrict the URL based on client certificate. If Yes, please send me one
example configuration file.
Thanks,
Ambuj Jain
This strange thing is happening in Internet Explorer 6
I use a simple JavaScript like this to read a cookie and set it back.
Ideally, it shouldn't alter the cookie value.
function setCookie()
{
document.cookie=frmCookie.cookieString.value
alert('Cookie: ' +
You might want to install the same version of Tomcat standalone, and
create a comparable virtual host configuration just to see how logging
works normally. Then transfer that test case to your JBoss environment
and see what happens.
And it turns out that one of the webapps was stomping on global
Hi
I posted this unsuccessfully a week ago under
'Tomcat 4.1.30/5.0.28 empty responses - return code 200 -',
so I rephrase and shorten my question.
OS: Solaris Debian, Tomcat version 4.1.30 and 5.0.28.
In the access logs, there are a number of entries with the HTTP
status code 200 -. So the
Hi,
I already solve the problem of loading my applet in the web browser. Thank
you to all. Now, I'm having the problem to send request from the applet to the
servlet. Attached is the AppletLogin.java (the servlet which I put in package
myapp) and LoginApplet.java (the applet which I put
74 matches
Mail list logo