Jk2 is deprecated, so you may want to look at mod_jk 1.2.8 which has all the
jk2 enhancements(but still uses the jk syntax).
If you still need to use jk2, the Location matching works fine with 2.0.49. I
have been using it for quite a while now with multiple vhosts.
Charlie
-Original
Jk2 is deprecated, so you may want to switch to mod_jk 1.2.8 which now
has all the jk2 features. Since that can be rather involved for some
people, you can use PCRE in Apache 2.x.
I haven't tried this, but it should work.
LocationMatch ^/.*\.(?!(jpg|gif|css))
This definitely works for leading
You need to tell Apache about your user directories.
Try this location to send anything starting with ~ to tomcat.
Location /\~.*
JkUriSet worker ajp13:localhost:8009
/Location
Charlie
-Original Message-
From: Casas, Claudia [mailto:[EMAIL PROTECTED]
Sent: Thursday, January
Are you sure Apache is not blocking your request? Enable the AccessLogValve
on tomcat and see if your request is getting through.
Charlie
-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 8:28 AM
To: Tomcat Users List
Subject: Re:
Is there a bugzilla number for this problem? I can't seem to find it. Also
do you know if it is also a problem in 5.5?
Thanks,
Charlie
-Original Message-
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 3:16 PM
To: Tomcat Users List
Subject: Re:
-Original Message-
From: Simone Pierazzini [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 9:37 AM
To: [EMAIL PROTECTED]
Subject: weird tomcat5.0.30 behaviour with jar in WEB-INF/classes
Hi,
I use URLClassLoader to create class loaders that manage jars in WEB-
http://www.tburke.net/info/reskittools/topics/srvany_using.htm
See the paragraph about setting the working directory...
Charlie
-Original Message-
From: hui [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 9:15 AM
To: 'Tomcat Users List'
Subject: RE: Problem With Tomcat
Have you tried location matching and mod_rewrite with Apache to change your
URL before jk2 takes the request?
Location /tomcat1/*
RewriteRule ...
JkUriSet tomcat1
/Location
Location /tomcat2/*
RewriteRule ...
JkUriSet tomcat2
/Location
you would use JkUriSet in
Is your machine swapping? 512MB can go quickly...
-Original Message-
From: Sam Gallant [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 3:40 PM
To: Montz, James C. (James Tower)
Cc: Tomcat Users List
Subject: Re: Tomcat 5 pause (free gmail account for fix :-)
We have
You can do this, but you will have to change your config. Create a new
Service in server.xml that has the same Host definition as your current
one. Your new service will have a new Connector listening on a different
port(i.e. 8010) This new Host will have the Context that your SSL
connections
]
Sent: Monday, October 04, 2004 9:26 PM
To: Tomcat Users List
Subject: Re: JK2 2.0.4
No, this is a known bug and will not work. See
http://issues.apache.org/bugzilla/show_bug.cgi?id=28758
Cox, Charlie wrote:
To avoid all confusion, I would remove your [uri: mappings from the
workers2
To avoid all confusion, I would remove your [uri: mappings from the
workers2.properties and then specify the mappings in your httpd.conf:
VirtualHost 1.1.1.1:80
Location /
JkUriSet worker ajp13:localhost:8409
/Location
/VirtualHost
VirtualHost 2.2.2.2:80
httpd.conf I get the Apache web page saying I've
successfully installed Apache for both virtual hosts.
Thanks,
Paul
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 7:58 AM
To: 'Tomcat Users List'
Subject: RE: JK2 2.0.4
To avoid all
-Original Message-
From: Paul D. Hester [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 10:20 AM
To: 'Tomcat Users List'
Subject: RE: JK2 2.0.4
Thanks Charlie for you help. I tried what you suggested and now
http://orbt.at.ufl.edu is accessing the ORB webapp properly.
You need to separate these into different Service elements in server.xml,
each with the corresponding Connector and Host.
Charlie
-Original Message-
From: Anto Paul [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 10:01 AM
To: Tomcat Users List
Subject: mod_jk configuration
Remove the last 4 lines in workers2.properties. these URI mappings are
duplicating the JkUriSet in httpd.conf. this would explain why it works, but
still reports errors.
Charlie
-Original Message-
From: Paul D. Hester [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 11:27 AM
2.0.4
Wouldn't he then have to get the ports right in httpd.conf?
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: 01 October 2004 16:47
To: 'Tomcat Users List'
Subject: RE: JK2 2.0.4
Remove the last 4 lines in workers2.properties. these URI mappings
Have you verified that they are on the system path and not the user's path?
Check My Computer-Properties-Advanced-Environment Variables
Charlie
-Original Message-
From: John MccLain [mailto:[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 7:32 PM
To: Tomcat user list
Subject:
CAN-2004-0811 (cve.mitre.org)
Charlie
-Original Message-
From: Alex [mailto:[EMAIL PROTECTED]
Sent: Friday, September 24, 2004 4:00 AM
To: Tomcat Users List
Subject: RE: jk2 over non-default port
what type of problems does 2.0.51 have??
On Thu, 23 Sep 2004, Kyle Adams
This is a problem with your htpd.conf configuration(I'm not sure what) and
you will find more people who can help you on the apache httpd users list.
-Original Message-
From: Richard Lewis [mailto:[EMAIL PROTECTED]
Sent: Friday, September 24, 2004 11:38 AM
To: [EMAIL PROTECTED]
-Original Message-
From: Kyle Adams [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 5:49 PM
To: [EMAIL PROTECTED]
Subject: jk2 over non-default port
I've been able to get jk2 running if I use the default port; however, I
get these error messages if I try to switch
Well, that is how I have it configured and it works for me with 2.0.48 and
2.0.49(btw - 2.0.51 was removed due to regressions). One thought is that
your port number may be too high. I'm not sure what port range jk2 supports,
but you may want to try something less than 32767.
Also you can set the
-Original Message-
From: Curles, Michael L [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 21, 2004 11:57 AM
To: Tomcat Users List
Subject: Need To Allow Network Access under Tomcat Service
Hi,
I have the need for servlet access to pull information off a network
drive.
The
Some ideas:
1. your webapp is loaded multiple times(multiple Context, same docBase),
thus loading your class multiple times.
2. your servlet is loaded multiple times(multiple servlet entries in
web.xml)
3. your webapp was reloaded through the manager
From my experience, I found it worked best to
LocationMatch ^/(?!private)
JkUriSet ...
/LocationMatch
this also works for multiple directories:
LocationMatch ^/(?!private|private2|private3)
Charlie
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 8:41 PM
To: [EMAIL
-Original Message-
From: Sean Finkel [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 3:52 PM
To: Tomcat Users List
Subject: Re: Tomcat causes Apache to hang. Any ideas?
Sorry, this is a shared server, and he wants his site available on port
80.
Tomcat
!!!
Thanks.
Lu
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 6:17 AM
To: 'Tomcat Users List'
Subject: RE: Please help with jk2/tomcat5
LocationMatch ^/(?!private)
JkUriSet ...
/LocationMatch
this also works
Instead of including all your mappings in the workers2.properties, you can
use Location and LocationMatch in httpd.conf to set up your mappings.
Charlie
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 8:32 AM
To: [EMAIL PROTECTED]
Use LocationMatch with PCRE in httpd.conf and you can use negative
matches. In this case, do not use the [uri]
Charlie
-Original Message-
From: Thomas Zehetbauer [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 3:12 PM
To: [EMAIL PROTECTED]
Subject: JK2: Override
Have you enabled the Connector in server.xml for port 8009?
-Original Message-
From: Harold Pritchett [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 8:27 PM
To: Tomcat Users List
Subject: Strange problem with Apache2/Tomcat4
Help!
I'm trying to install Apache HTTPD and
Please do not flag messages for follow-up. I would try to help, but your
message flag tells me that I am 222 years late (year=1782) - your project
has probably moved on since then.
I think I'm more amazed that Outlook didn't crash. Wow.
Charlie
-Original Message-
From: Andy Spiegl
Classes in /common and /shared can not see classes in /WEB-INF. A class
loaded by the nth classloader will not see any classes loaded by (n-1)
classloader. However, it will see classes loaded by n+1 loader. This is the
classloader hierarchy. Any classloader only has one parent to which it can
I just saw something similar on apache-user. You can use
LocationMatch
JkUriSet ...
/LocationMatch
as described here:
http://marc.theaimsgroup.com/?l=apache-httpd-usersm=108756469315623w=2
LocationMatch takes perl-compatible regular expression, so you should be
able to do it. However,
Try copying your classes to /common/lib (or /common/classes). This way they
are available to tomcat internal classes also.
Is that the full stack trace? The class hierarchy that invokes Class.forName
will help identify which classloader is trying to load your classes. I
suspect one of tomcat's
I have done this with a filter to capture the user aborting a download on a
static file.
try
{
chain.doFilter(req,resp);
// Success post-processing
}
catch (IOException ioe)
{
// user cancelled download
// Aborted post-processing
}
I am using 4.1.29(it has
I am running Apache 2.0.49 / jk2 2.0.4 / tomcat 4.1.29
I have several ip-based virtual hosts set up through Apache which use jk2 to
get to tomcat. My problem is that I can bypass Apache settings for the
domain by changing the ipaddress used for those domains with a client.
Example configuration:
The web.xml requirement changed between 4.24 and 4.29. Once I upgraded to
4.1.29, I needed to add web.xml to a remote directory that I had mapped as a
context otherwise that context would not start. Normally not a problem,
however I only had read access so I had to get the admin to create a
Did you check permissions for your service user?
-Original Message-
From: David Rush [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 3:36 PM
To: Tomcat Users List
Subject: Re: Can't find classes - Even More Info
Still grasping at straws on this one
I tried stopping
I have the same problem and I am considering modifying jk2 to support such a
feature. Hopefully I will have some time in the next couple of weeks to try
this out.
I need Apache for other apps too, not just tomcat.
Charlie
-Original Message-
From: James Sherwood [mailto:[EMAIL
/
Options All
DirectoryIndex index.cfm
/Location
Charlie
-Original Message-
From: Brett Simpson [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 4:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Directory recursion with mod_jk2.
On Monday 10 May 2004 03:46 pm, Cox, Charlie wrote
-Original Message-
From: Brett Simpson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 8:55 AM
To: [EMAIL PROTECTED]
Cc: Cox, Charlie
Subject: Re: Directory recursion with mod_jk2.
On Tuesday 11 May 2004 08:21 am, Cox, Charlie wrote:
Did you set the welcome-file-list
You are doubling up on your mappings. If you are going to use JkUriSet,
remove the [uri] from workers2.properties. The [uri] would be what is
causing your problem.
Charlie
-Original Message-
From: Duane Winner [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 2:11 PM
To: Tomcat
Remove your [uri] line and use something like this in the httpd.conf:
LocationMatch .*\.cfm$
JkUriSet ...
/LocationMatch
regular expression is your friend. You should then be able to use your
DirectoryIndex.
Charlie
-Original Message-
From: Brett Simpson [mailto:[EMAIL
I haven't done this myself, but here is a link:
http://marc.theaimsgroup.com/?l=tomcat-userm=107373227524598w=2
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 6:33 AM
To: [EMAIL PROTECTED]
Subject: AW: How to limit time for Connector
It needs to be on the windows path(which includes system32). Did you restart
tomcat after moving them?
-Original Message-
From: Annamalai Ramasamy [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 11:01 AM
To: Tomcat Users List
Subject: Re: Accessing Dll's
Hi.,
Again same
I am also receiving these messages. However they do not seem to be causing a
problem and I have been too busy to research it.
-Original Message-
From: Matt Woodings [mailto:[EMAIL PROTECTED]
Sent: Monday, April 19, 2004 11:21 AM
To: Tomcat Users List
Subject: Re: ajp13.service()
The only way I could get rid of these was to comment out the logger lines.
Charlie
-Original Message-
From: Randy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 1:23 AM
To: [EMAIL PROTECTED]
Subject: location of workers2.properties parameters
I can not find the doc that
]
Sent: Tuesday, April 13, 2004 11:39 AM
To: 'Tomcat Users List'
Subject: RE: location of workers2.properties parameters
So was that in one place it the code or through-out?
Thanks
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 8
Try to search for the file from a command prompt. Windows explorer's search
feature will not find all the files depending on your setup.
dir /s hs*
Charlie
-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 10:01 AM
To: Tomcat Users List
You need to implement the Range header.
Charlie
-Original Message-
From: Peter Guyatt [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 12:04 PM
To: Tomcat Users List
Subject: PDF Files
Hi All,
Does anyone know how to jump directly to a specific page in a PDF
I'm not having a problem with tomcat 4.1.29 and jdk 1.4.2_02 on Win2003 as a
service.
Charlie
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Metin Carl
Sent: Saturday, March 13, 2004 3:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat on Windows 2003 Server
I had found the JVM version 1.4.0_02 (as a service) to provide random
crashes, not particularly caused by load, that went away when changing to
1.4.0_04.
This was with tomcat 4.1.24.
I am now using 4.1.29/JDK 1.4.2_02 without a problem.
Do you have any native libraries(db?) that may be the
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 10:34 AM
To: Tomcat Users List
Subject: RE: context configuration file being overwritten
On Wed, 4 Feb 2004, Cox, Charlie wrote:
From: Milt Epstein [mailto:[EMAIL PROTECTED
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 11:46 AM
To: Tomcat Users List
Subject: Re: context configuration file being overwritten
On Sat, 31 Jan 2004, Milt Epstein wrote:
Hi there. I'm using tomcat 5.0.18 basically
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 2:47 PM
To: Tomcat Users List
Subject: RE: context configuration file being overwritten
On Wed, 4 Feb 2004, Cox, Charlie wrote:
-Original Message-
From: Milt Epstein
I use specific words ('tomcat') in the 'to' field and then use keywords to
separate topics. This works fine in outlook 2002. I have at least 30 rules
that work this way for the lists that I am on. I have found the from
someone to NOT be reliable in Outlook(even when they are in my address
book).
You need to specify each path you want to map for each virtual host in your
workers2.properties.
i.e.
[uri:10.1.2.3/jkstatus/*]
Charlie
-Original Message-
From: Brennon Obst [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 7:56 PM
To: 'Tomcat Users List'
Subject: RE: jk2
Try this in your jk2.properties file and see if it fixes it for 4.1.29.
According to Bill Barker(thread: maxProcessors vs maxThreads), this is the
same as the 5.x connector setting for jk2.
container.maxThreads=value
container.maxSpareThreads=value
container.minSpareThreads=value
Unfortunately I
Is there a similar setting for jk2 under 4.1.29?
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Tuesday, January 20, 2004 2:16 AM
To: [EMAIL PROTECTED]
Subject: Re: maxProcessors vs maxThreads
Oh, come on, get real :). The Jk-Coyote docs
You probably have this bug(different than the other one posted)
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22045
The only solution I have found is to map each virtualhost/dir in your
workers2.properties that should go to tomcat. While a PITA(at least for me),
it does work.
See this link
Actually Mozilla and Netscape can open Excel and Powerpoint based upon the
.xls or .ppt extension if the mime-type is not set. However IE only opens
them properly if you add the mime-type to web.xml. Otherwise you get a
browser full of garbled text. I find this most amusing. (They may have fixed
While this is slightly off topic, I wasted enough time on it that I felt it
necessary to share with others.
I am running tomcat 4.1 as a service on windows 2003(requirement) and I was
having a problem with it crashing. Usually it left an hs_err_pid*.log file
which pointed to a JNI library that I
set listings to false in conf/web.xml
Charlie
-Original Message-
From: eric perso [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 11:30 AM
To: tomcat user List
Subject: not see the directory
hi,
i search to:
don't see inside a directory like
-Original Message-
From: Jim Goodspeed [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 8:52 AM
To: Tomcat Users List
Subject: RE: Signal 11 causing Tomcat crash
Unfortunately we have also tried Sun's JVM and are
experiencing the same Signal 11 errors (I've included
Has anyone tried this new Eclipse plugin for profiling?
http://eclipsecolorer.sourceforge.net/index_profiler.html
I realize that it is still beta, but I was wondering how good it is.
Charlie
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21,
tomcat doesn't use the classpath. You can copy your jar into /common/lib and
it will be shared by all your webapps.
see the classloader doc:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
Charlie
-Original Message-
From: Zsolt Koppany [mailto:[EMAIL
you didn't provide your platform, but since *nix has tail, I'm assuming you
have windows.
Under windows I've never had a tomcat log file that I couldn't view, but you
may not be able to use your favorite editor. Notepad has always brought the
file up for me where other editors(including wordpad)
There is a typo in the documentation - you can not override the Xerces
parser used. You can replace the one in /common/endorsed and see if it works
- I don't recall which version tomcat requires. Have you tried your app with
the version that tomcat supplies?
you can't guarantee the order in which
put your library in /common/lib and restart tomcat. Each time you reload or
start/stop your webapp, it creates another instance of the classloader which
is trying to load your library again.
Charlie
-Original Message-
From: Lott, Carey [mailto:[EMAIL PROTECTED]
Sent: Friday, August
You are running into a classloading problem. put your crypto jars in
/common/lib and you can restart your app without any problems.
When you reload(or stop/start), the classloader for your app is destroyed
and all the classes are lost. So when you are using libraries that use
loadlibrary(), they
on windows tomcat?
Charlie,
How do you fix this within apache?
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 10:15 AM
To: 'Tomcat Users List'
Subject: RE: security hole on windows tomcat?
do you have apache
are there any hs_err_pid* files?
-Original Message-
From: Bing Zhang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 10:31 AM
To: '[EMAIL PROTECTED]'
Subject: Again, Problem: Tomcat server went down ...
Can someone out there help on this ? I have posted my
: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 12:07 PM
To: 'Tomcat Users List'
Subject: RE: security hole on windows tomcat?
sorry, I don't know - I don't use Apache. This was just a
thought that I
had.
I do not have this problem 4.1.24 on Win2k
sorry, I overlooked where you mentioned it was the default install.
please post a link
Charlie
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 12:15 PM
To: 'Tomcat Users List'
Subject: RE: security hole on windows tomcat?
did you
on the
unmodified
examples webapp. The only two jars I added in the SDK were the JDBC
drivers for postrgres and mysql.
Paul Sundling
Cox, Charlie wrote:
did you change any mime-mappings in conf/web.xml? could you
have a jsp in
there somewhere defining it as text?
-Original
, but this mime mapping exists.
mime-mapping
extensionjspf/extension
mime-typetext/plain/mime-type
/mime-mapping
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 12:15 PM
To: 'Tomcat Users List'
Subject: RE: security
do you have apache on the front end and are you only mapping *.jsp where
*.jsp%20 is not a match and apache would then serve the file as text?
Charlie
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 9:22 AM
To: Tomcat Users List
Subject:
hole on windows tomcat?
ARGH! This has gone to just being an apache problem. Tomcat seems to
have self corrected. I am very confused but will keep
looking. Apache
still does it though.
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: Monday, August
is there an hs_err_pidsome_id.log file? This can provide the stack trace
of the thread that was running when the crash occurred.
Charlie
-Original Message-
From: Bing Zhang [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 3:48 PM
To: 'Tomcat Users List'
Subject: RE: Problem:
can't you just set up an ant script to (also)copy the files to the tomcat
directory each time they are updated?
-Original Message-
From: Thomas Davis [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 4:47 PM
To: Tomcat Users List
Subject: RE: Classpath Conundrum (2nd try)
remove all whitspace from your jsp before the code.
change
%@ page import=Bid.BidSession%
%
to
%@ page import=Bid.BidSession%%
(one line)
the jsp is writing your whitespace to the outputstream, thus preventing your
forward().
Charlie
-Original Message-
From: Abid Ali Teepo
you can map your filter for only those requests that you want to track. i.e.
/downloads/*
Charlie
-Original Message-
From: Mark F [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 3:55 PM
To: Tomcat Users List
Subject: Re: tracking downloads
I like that idea but it would
put your shared class in /common/lib and each webapp will be able to see it.
Charlie
-Original Message-
From: RANDAD,KAILASH (HP-PaloAlto,ex1) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 3:17 PM
To: 'Tomcat Users List'
Subject: RE: sharing objects betweeen different
, 2003 2:59 AM
To: Tomcat Users List
Subject: RE: url-pattern in filters
Yes i did, thank you
but i can't get the filter to take action on all requests with (/*),
so i need to figure out how the url-pattern works
-Original Message-
From: Cox, Charlie [mailto:[EMAIL
changing the quota is specific to your operating system and has nothing to
do with tomcat. Consult the person who set up your server.
you can look at the logs directory to see if you can delete any log files,
but chances are that it will happen again.
-Original Message-
From: Reis, Tom
last I recall per this list was that this had some problems. I don't
remember when that was, so check the archives and bugzilla for 'loader'
Charlie
-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 2:04 AM
To: [EMAIL PROTECTED]
Subject: Re:
change:
public void init(FilterConfig f) {}
to
public void init(FilterConfig f) {setFilterConfig(f);}
from one of the filter samples for the m_filterConfig:
/**
* The filter configuration object we are associated with. If this value
* is null, this filter instance is not currently
I pass the request around quite a bit as well. Did you compile your classes
against the servlet.jar that is distributed with Tomcat?
at org.apache.jsp.nav_jsp._jspService(nav_jsp.java:61)
what is on line 61 of jsp_nav.java? look in the tomcat\work directory to
find the java file for your
you need to set your classloader's parent to the current classloader. Have
you reviewed Tomcat's classloader document so that you understand how tomcat
works before trying to load your own classes?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
Is there a reason to do
you will probably want to review WebappClassLoader.java in the source. This
is the web app's classloader and contains details of setting and delegating
to the parent. Note that it does not use normal delegation - that is it
looks up the class before delegating to the parent.
Charlie
are you running as a service? if so does the local System user have access
to your share? you will need to use \\server\path since the System account
will not have your mapped drives.
Charlie
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12,
unpack your jar to WEB-INF/classes and remove javax/servlet tree. This will
provide you with your classes without the conflicting servlet classes.
Charlie
-Original Message-
From: Manav Gupta [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 10:58 AM
To: Tomcat (E-mail)
you could put a value in the user's session from your page and then use your
filter to check for it when an image is requested. If it's not there, they
were not at your site/page. Sessions can be set to timeout, so they would
have to had to visit recently to get the image.
Charlie
-Original
actually it is loaded by tomcat's internal classes, to determine if your
webapp should be called. So the tomcat classes need to be able to see it and
they cannot access classes loaded by the Webapp classloader. Therefore it
belongs in /server/lib as you have seen.
See the classloader doc for more
couldn't you set up an error-page that only runs for this exception and then
print out the parameters from that page? Or does the request not get that
far? If not write a valve/responseWrapper that catches response 500 errors
and act upon it.
Alternatively you could create your own
I had this same prob on 4.0.x and the bug I had opened was labelled as a
'worksforme' since they could not reproduce it(bug 4524). It happened on a
clean install of win2k that only had office 2k I think. I think it was a
problem with the JavaService that was used with tomcat since tomcat worked
you can have 2 instances if you have multiple servlet definitions in
web.xml. you can calso have 2 instances if you have a context in your
server.xml and it is autoreloading your context(or you have 2 context
entries with the same docbase).
it sounds like the latter, where you have 2 instances
in conf/web.xml set listings to false
Charlie
-Original Message-
From: Sudhir Kumar [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 11:27 PM
To: 'Tomcat Users List'
Subject: Browser showing the directory structure
Hello,
When i open my jsp
you can also put it in /common/lib(or /common/classes). This will also load
only on tomcat startup.
It is correct that you do not want it in your web app since a library can
only be loaded once. So if you reload your webapp(using manager) it becomes
unavailable since the classloader that loaded
write.lock is part of lucene, not tomcat. If you are sure that nothing is
using the index when when tomcat is shut down, you can delete this file and
that should resolve your problem.
Charlie
-Original Message-
From: jeepee3 [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003
1 - 100 of 444 matches
Mail list logo