Re: How to Deploy WAR using a sub-context path?

2007-12-06 Thread Mark Thomas
Scott McClanahan wrote: Is tomcat 5.5 still accepting enhancements? Could we expect to see this capability in a tomcat 5.5 release? Thanks. Yes. Assuming the patch is good (I haven't tested it yet) I'll propose it for backport. Mark

Re: Tomcat 6.0.15 released?

2007-12-07 Thread Mark Thomas
Joe Bohn wrote: Is Tomcat 6.0.15 released and is it stable? I see discussions on the dev list and votes but I didn't find a conclusion. Also, I don't see Tomcat 6.0.15 available for download on the web page. However, I do see a tag for it in svn. There were issues with 6.0.15 so it never

Re: Tomcat 6, JNDI datasource no longer work

2007-12-09 Thread Mark Thomas
jodetek wrote: Tomcat 6 changed (no more common/lib) :-( This is explained in http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html I've put the Oracle driver in WEB-INF/lib That won't be helping. Remove the driver from there. I also put it in $catalina_home/lib (tomcat 6 new

Re: Help with java Lists

2007-12-10 Thread Mark Thomas
David kerber wrote: Any suggestions are welcome, including suggestions for reworking the basic design... Generally for reporting, I'd try and push as much as possible to the database, run a query there that returns exactly what I want and then optimise that query on the database. Mark

Re: Apache cross-site scripting attacks vulnerability solution

2007-12-11 Thread Mark Thomas
Yulius wrote: Hi all, Currently we are having a system that is using Apache Tomcat 4.1.3 Our customer has been asking us to implements some sort of security for 413 error page by adding the 'ErrorDocument 413' statement to the Apache configuration file to disable the default 413 error

Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2007-12-11 Thread Mark Thomas
Delian Krustev wrote: On Wed, 05 Dec 2007 22:13:00 + Mark Thomas wrote: I am beginning to think that http://svn.apache.org/viewvc?view=revrev=505593 introduced a subtle timing issue. If Tomcat internal code causes Constants to be loaded, everything is fine. If the webapp code causes

Re: HttpSessionActivationListener not getting called in the Tomcat 5.5.20 clustered mode.

2007-12-12 Thread Mark Thomas
Jess Holle wrote: The HttpSession activation and passivation listeners in Tomcat are /quite/ broken -- at least last time I checked. I've been in the habit of patching this part of the code. I submitted a patch once, but I mixed in a few other things that were broken in this area and it

Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2007-12-13 Thread Mark Thomas
Delian Krustev wrote: On Tue, 11 Dec 2007 22:35:20 + Mark Thomas wrote: Are you happy to mod the code and build a patched version yourself or do you want some help? I can build a binary with the patch for you to test if you wish. I've not built Tomcat from source before, so I'll take

Re: HttpSessionActivationListener not getting called in the Tomcat 5.5.20 clustered mode.

2007-12-13 Thread Mark Thomas
Jess Holle wrote: I sent the patch quite some time back now, so I'm not sure where it is. Being similarly lazy I'm attaching an excerpt of the patched StandardSession.java (from 5.5.23) with changes embedded in it. Thanks for that. I checked the archives and the patch was e-mailed to dev but

Re: HttpSessionActivationListener not getting called in the Tomcat 5.5.20 clustered mode.

2007-12-13 Thread Mark Thomas
Mark Thomas wrote: Jess Holle wrote: I sent the patch quite some time back now, so I'm not sure where it is. Being similarly lazy I'm attaching an excerpt of the patched StandardSession.java (from 5.5.23) with changes embedded in it. Thanks for that. I checked the archives and the patch

Re: Question about tomcat bugzilla which is resolved but not fixed.

2007-12-14 Thread Mark Thomas
Dan wrote: Hi, I notice that this issue has been marked fixed, but the comments on there indicate that the bug isnt actually fixed, and that the problem remains. Indeed, looking in the source of 5.5.25 it does not seem to contain the code in the patch in this issue. The actual patch

Re: appBase and docBase in VirtualHosting Configuration of TC5.5

2007-12-16 Thread Mark Thomas
Penghui Wang wrote: It seems workable. But i am not sure the configuration right or not. Could someone could pick me up? http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Mark - To start a new topic,

Re: HttpSessionActivationListener not getting called in the Tomcat 5.5.20 clustered mode.

2007-12-16 Thread Mark Thomas
Mark Thomas wrote: There might be a problem in clustered mode. That will take longer to test because I know I don't have a test case ready to go. To summarise: Unclustered - As far as I can see, everything works as per the spec Clustered - This is a little tricky. The spec defines what should

Re: Tomcat 5 SSI crossContext

2007-12-16 Thread Mark Thomas
Shannon Scott wrote: To be clear, if my .shtml lokks like this: html body !--#include virtual=/index.jsp -- !--#include virtual=/myTest/index.jsp -- /body /html The first include works but the second shows this on the page: [an error occurred while processing this directive] I have

Re: Beginner question

2007-12-17 Thread Mark Thomas
Filipe David Manana wrote: 1) Is Tomcat reliable for a production environment, where client requests can be in the order of a few thousands per hour? Easily. 2) I've red the documentation and I was not able to do the following: I created a struts 2 app and I want to access it through

Re: how to distinguish between managers when running multiple instances

2007-12-17 Thread Mark Thomas
morlino wrote: Now I am able to access the 4 managers via 4 different http connectors. However, without looking at the port number in the browser location, or knowing which applications are deployed under which instance it is very difficult to distinguish which manager is which. Is there

Re: Webdav Infinite Depth

2007-12-20 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Is there any parameter (I could not find one in the source of WebdavServlet :-/ ) or possibility to change this? You can just remove the check and compile your own webdav servlet. Mark - To start a

Re: Tomcat 6 getRemoteUser() returns null

2007-12-22 Thread Mark Thomas
Natalie Wang wrote: It does not work either. Tomcat version? Java version? OS and version? LDAP and version? Errors in logs? Extracts from relevant configuration files? Have you tried this with a simple test case? Ie a single html file and a resource constraint? Does the same test work if you

Re: multi-connector capability in Tomcat

2007-12-23 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. This is known as thread hijacking and to many of the list archiving services and mail clients used by list subscribers this makes your new message

[CVE-2007-5342] Apache Tomcat's default security policy is too open

2007-12-23 Thread Mark Thomas
= org.apache.juli.FileHandler org.apache.juli.FileHandler.level = FINE org.apache.juli.FileHandler.directory = ${catalina.base}/logs org.apache.juli.FileHandler.prefix = mylog. Credit: This issue was discovered by Delian Krustev. References: http://tomcat.apache.org/security.html Mark Thomas *** Patch starts

Re: multi-connector capability for HTTPS in Tomcat

2007-12-24 Thread Mark Thomas
Hitesh Raghav wrote: Hi, Does Tomcat support multi-connector capabilities for HTTPS? Yes. Edit The Tomcat Configuration File section in Tomcat's User-Guide (http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html ) gives impression

Re: multi-connector capability for HTTPS in Tomcat

2007-12-24 Thread Mark Thomas
Hitesh Raghav wrote: Hi Mark, I'm little confused about it. Let assume my m/c ip is: 10.212.85.8 SSL connector are configured on ports: 8443 8553 I need to deploy one web app (myapp01.war) on port 8443 and another on web app (myapp02.war) on 8553. Is there any way to configure to

Re: multi-connector capability for HTTPS in Tomcat

2007-12-25 Thread Mark Thomas
Hitesh Raghav wrote: Hi Mark, How it can be configured for each webapp? Is there any documentation about it? Could you please share me appropriate URL about it. http://tomcat.apache.org/tomcat-6.0-doc/config/index.html Mark

Re: set env. variables in tomcat's running JVM

2007-12-25 Thread Mark Thomas
Albretch Mueller wrote: Host name=localhost appBase={$config.webapps.dir} debug=4 unpackWARs=true autoDeploy=true ~ Logger className=org.apache.catalina.logger.FileLogger directory={$config.logs.dir} prefix=localhost_log. suffix=.txt

Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2007-12-27 Thread Mark Thomas
Delian Krustev wrote: Thanks for the build Mark, and sorry for the delay of this reply. No problem. Could you please provide the patch also? I have uploaded it here. http://people.apache.org/~markt/dev/remove-sm-opt.patch I could not afford to move this instance to 6.0-trunk. I'll do the

Re: default 500 error page by tomcat

2007-12-27 Thread Mark Thomas
GF wrote: But I want to know where to find the source code of that error 500 page that tomcat automatically generates. I think that's too a .jsp page. It isn't a JSP. It is generated by an internal Tomcat component (a Valve). Where can I find its source?

Re: NTLM, mod_JK and Internet Explorer

2007-12-27 Thread Mark Thomas
Lucas Blancher wrote: How do I find the sub code in Apache httpd? I am using the common logging format and it already has %s in the logging string, but my logs only have 401 in them, without any subcodes. An example is Personally, I'd ignore the sub code question and look what is going back

Re: RES: how to get rid of the path after the URL

2007-12-28 Thread Mark Thomas
[EMAIL PROTECTED] wrote: In order to do what you want you would have to drag and drop all the files inside 'jiveforums' to the folder on top of it, wich is 'webapps' ( which is NOT recommended). No, no, no. This is completely, totally and utterly wrong. It isn't just not recommended, it won't

Re: Does a static directory now always take precedence to a url-pattern?

2007-12-29 Thread Mark Thomas
Tad Woods wrote: The 5.5.23 version seems to give static directories total precedence over url-patterns defined in the web.xml. For example, in my application root, I had a directory /office which contained static files and in my application's web.xml I mapped a servlet to the url-pattern

Re: Does a static directory now always take precedence to a url-pattern?

2007-12-29 Thread Mark Thomas
Tad Woods wrote: Host name=katchconstructionsupply.com appBase=/home/katch/public_html Context path= docBase=/home/katch/public_html / /Host Thought so. ...this was the same configuration that I ran in 5.5.14. Something that may be related and seems odd to me is that if I go into the

Re: Does a static directory now always take precedence to a url-pattern?

2007-12-30 Thread Mark Thomas
Tad Woods wrote: However, looking at the Tomcat Manager, my web app now appears twice, once under /root and again under /. That makes sense if the directories under the appBase are now automatically added as Contexts. Try using ROOT. Case is important. So, why not just do the following

Re: Confusion between docs and server.xml

2008-01-01 Thread Mark Thomas
gb1071nx wrote: Just got through reading docs and xml comments and thought I'd point out something (minor). Thanks for the feedback. Suggested changes to the documentation (jasper-howto.html) [1] Is 'reloading' a deprecated attribute? If so, it should be removed from the docs. It has

Re: Error when serving large Word doc

2008-01-02 Thread Mark Thomas
syg6 wrote: Is there anywhere in the server.xml (or somewhere else?) where I can increase the maximum file size that Tomcat can serve? There is no such limit. There were some bugs around the 2GB mark but I believe these have all since been resolved. Mark

Re: Problem getting GlobalNamingResources DataSource DBCP from Custom JAAS

2008-01-02 Thread Mark Thomas
Mariano wrote: Please any idea ?. Try looking at how the DataSourceRealm does it. http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/org/apache/catalina/realm/DataSourceRealm.java Mark - To start a new topic, e-mail:

Re: FW: Reading servlet server connector configuration

2008-01-03 Thread Mark Thomas
Asaf Lahav wrote: Hi guys, I didn't get any feedback on this so I'm resending to make sure it got to the mailing list. It arrived the first time. You might want to read this: http://wiki.apache.org/tomcat/FAQ/Tomcat_User Mark

Re: Problems with HTTPS Mutual authentication with big petitions

2008-01-04 Thread Mark Thomas
Nicolás Velásquez O. wrote: Hello, I'm running into problems when I try to configure tomcat to validate the client by its https cert with big requests. I'm using it with forms and when the send the form to the server with big (10-15Kbytes) requests it fails, but when I send small (90 bytes)

Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2008-01-07 Thread Mark Thomas
Delian Krustev wrote: On Thu, 27 Dec 2007 16:04:29 +0200 Delian Krustev wrote: I'll monitor the container for the next several restarts. The problem appeared once again on the next tomcat restart. Any other ideas ? Not right now. Could you provide the full debug stack trace again please.

Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2008-01-08 Thread Mark Thomas
Delian Krustev wrote: On Mon, 07 Jan 2008 20:59:28 + Mark Thomas wrote: Not right now. Could you provide the full debug stack trace again please. We should at least see a different problem now the code has been changed. Here it goes: I'm stumped. This stack trace indicates an issue

Re: Modify JDBC Realm

2008-01-10 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Is there eny smart possibility to modify this method or is there even another solution for my problem? Use a view for the roles table. Mark - To start a new topic, e-mail: users@tomcat.apache.org

Re: Tomcat Shutdown error transport error 202: bind failed

2008-01-10 Thread Mark Thomas
varunsuresh wrote: These are my debug options -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=n How are you setting these? Using JPDA_TRANSPORT etc works for me. Mark -

Re: How to get tomcat to decode %26

2008-01-10 Thread Mark Thomas
Vackar wrote: Hi, Does anyone know how to get tomcat to interpret %26 as an ampersand character () It does. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Tomcat + HttpClient + SSL + tcnative-1.dll issues?

2008-01-10 Thread Mark Thomas
stacjohn wrote: Hi Mark, As Jim mentioned, thanks again for the find! We have tested with the latest source code and the issue is indeed solved. Great. Do you happen to know when the new tcnative-1.dll will be available? Soon... Or is there a mailer I could track or an online release

Re: org.apache.commons.digester.Digester endElement (Q A)

2008-01-13 Thread Mark Thomas
David Smith wrote: Thanks. It's an interesting problem. It does validate against an xml validator, but I can't reproduce your error in my tomcat 5.5 environment. If it's really an error w/ tomcat, it has to be unique to your version of tomcat. Any one on this list still using tomcat 4.1

Re: No Authentication Dialog appears for Tomcat Manager

2008-01-14 Thread Mark Thomas
Mark Riggins wrote: I don't want to put any move effort into it. I'll just avoid the Manager instead if its that hard to set up. The Manager works out of the box on a clean install. If it doesn't work for you then something else is messed up in your configuration which is probably going to

Re: Tomcat Service for 64 bit Hardware and Windows 64 bit

2008-01-14 Thread Mark Thomas
Will Holmes wrote: Does anyone know when the Windows service will be available for Windows 64 bit? http://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/ Mark - To start a new topic, e-mail:

Re: how to configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-15 Thread Mark Thomas
Christopher Schultz wrote: Cuco, cuco2772 wrote: | So it seems to be complaining about my context.xml. The offending line | looks to be : | | Context path=/DBTest docBase=DBTest | debug=5 reloadable=true crossContext=true | | Could the path attribute be incorrect ? I followed the

Re: how to configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-15 Thread Mark Thomas
Christopher Schultz wrote: Cuco, cuco2772 wrote: | So it seems to be complaining about my context.xml. The offending line | looks to be : | | Context path=/DBTest docBase=DBTest | debug=5 reloadable=true crossContext=true | | Could the path attribute be incorrect ? I followed the

Re: Tomcat 6 requires config to run on JSE 5?

2008-01-16 Thread Mark Thomas
Caldarale, Charles R wrote: It's not really incorrect, but is certainly misleading. Chalk it up to programmers not being writers or editors. Now fixed in trunk. I'll get it ported to 6.0.x. Mark - To start a new topic,

Re: Tomcat 4.1 question(viewing html pages)

2008-01-16 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Hi, I have the following question: to view a html page from the webapps directory of Tomcat, what do I need to do? In Tomcat 5.5 all I had to do was create a sub-folder in webapps and put the html page inside it. Then using the right URL, I can access the page...This

Re: life span for Tomcat 5.5.x and 6.0.x ?

2008-01-17 Thread Mark Thomas
Ray Johannsson wrote: I was wondering if there's any sort of planned end-of-life date for when security patches will no longer be provided for Tomcat 5.5.x and 6.0.x ? Nothing is certain since it all depends on how much effort the release managers are able / want to put in. That said, as

Re: thead pool in Tomcat 4.1

2008-01-21 Thread Mark Thomas
madhu sudhan bandari wrote: can any one suggest me how to configure Thread pool in tomcat 4.1. http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html my application users are 500. Concurrent? Total? With what sort of workload? To be perfectly honest the answers to the above questions

Re: Tomcat sources files

2008-01-21 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Hi everybody, which source files tomcat (apache-tomcat-6.0.14-src\java\org\apache) handles the server.xml contents. Precisely, I would like to know which source parses the Connector tag ? It isn't that simple. A re-packaged commons-digester is used so there are many

Re: JDBC connection through JNDI

2008-01-21 Thread Mark Thomas
Hehl, Thomas wrote: I wish to create a JDBC connection and store it in a JNDI tree for use by a spring configuration file that usually runs my tomcat webapp. I'm trying to figure out how tomcat creates the connection pool from my config file and stores it in JNDI, but it is absolutely beyond me.

Re: Question about Tomcat/IIS and NTLM authentication

2008-01-21 Thread Mark Thomas
eborisow wrote: If someone has been able to get this working and could provide some help, that would be great. Haven't tried it but you should be able to create a custom Realm by extending the existing JNDIRealm and manipulating the user name, probably by overriding the authenticate()

Re: Need help - Duplicated session ID problem

2008-01-23 Thread Mark Thomas
Yang Cao wrote: Please let me know if you have seen any similar problems before, and if so, what's the root cause and fix? Could be: - Most likely is application error - are you storing request objects anywhere? - Could be a Tomcat bug. Upgrade to 5.5.25. There is at least one issue in the

Re: Download Dialog inclusing file extention

2008-01-23 Thread Mark Thomas
Kazufumi Arai wrote: Hello, someone gives me information about definishion parameter for download dialog. I have phenomenon that windows download dialog with no file extention when using tomcat 1.4.x. I guess where I can set file extention like .mol in any file in conf folder included in tomcat

Re: Tomcat Windows Service Installer vs Core zip install xml

2008-01-23 Thread Mark Thomas
hoffmandirt wrote: I am having issues with XSLT files depending on which download option of Tomcat 6.0.14 that I choose. If I download the ZIP file under Core, my XSLT files transform with no problems. However if I download and use the Windows Service Installer instead, I am getting the

Re: Did I find a bug?

2008-01-26 Thread Mark Thomas
Jonadan wrote: Hi, I am having a strange JSP compiler problem. The error message is as follows. First, notice that the lines cocerned are commented out! Still compiler compiling! Second, the second argument of the caller is missing in the error message! ??? Yes, this is a bug:

Re: Null pointer in manager web app. Tomcat 6.0.14

2008-01-28 Thread Mark Thomas
Delian Krustev wrote: On Sun, 27 Jan 2008 16:01:28 -0800 Hassan Schroeder wrote: Aside from the fact that putting Context elements in server.xml is strongly discouraged I'm pretty sure there is a functionality which could not be achieved otherwise, although I could not remember which one at

Re: Null pointer in manager web app. Tomcat 6.0.14

2008-01-28 Thread Mark Thomas
Delian Krustev wrote: appBase == docBase is unsupported. Period. The servlet spec allows (might even be requires I don't recall off-hand) any directory to treated as a webapp so as soon as you have an WAR exploded into the appBase you end up with multiple contexts which will cause problems. I

Re: Reg Software

2008-02-02 Thread Mark Thomas
Java Guru wrote: Hi Everyone, Can any one tell me if there is any package in the Apache which can give line number in which the error occurred in JSP rather than line number of servlet to which JSP is converted at run time. The standard error page for JSPs should do exactly what you are

Re: NioEndpoint.getPoller0 throws NPE

2008-02-03 Thread Mark Thomas
Michele Mazzucco wrote: Any idea? Maybe http://issues.apache.org/bugzilla/show_bug.cgi?id=43701 Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: servlet mapping question(I believe)

2008-02-03 Thread Mark Thomas
Terence Kent wrote: Conclusion: My understanding from this configuration is that all requests on port 8010, that end with the extension .ext should be forwarded to the servlet mycompany. From what I've read, any paths created in the ${APP_BASE} directory should be irrelevant in this mapping

Re: Cleanup of org.apache.naming.resources.CacheEntry resources

2008-02-08 Thread Mark Thomas
Diego Rodríguez Martín wrote: I have made a simple webapp with 2 jsp and a taglibrary, and the memory leak is still there, so I guess there is no cleaning of CacheEntry resources at context shutdown. Have I found a memory leak in Tomcat? Quite probably. Is my explanation correct

CVE-2008-0002: Tomcat information disclosure vulnerability

2008-02-08 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2008-0002: Tomcat information disclosure vulnerability Severity: important Vendor: The Apache Software Foundation Versions Affected: Tomcat 6.0.5 to 6.0.15 Description: If an exception occurs during the processing of parameters (eg if the

[SECURITY] CVE-2007-5333: Tomcat Cookie handling vulnerabilities

2008-02-08 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2007-5333: Tomcat Cookie handling vulnerabilities Severity: low - Session hi-jacking Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.1.0 to 4.1.36 Tomcat 5.5.0 to 5.5.25 Tomcat 6.0.0 to 6.0.14 Description: The previous fix

Re: Tomcat SSL, Windows 2003 and Windows-My Provider

2008-02-12 Thread Mark Thomas
Luis Villa wrote: Hello all, I've been looking what the problem could be in the sources, and I've found that the only keystore other than a file that tomcat supports is PKCS11. So, I've modified org.apache.tomcat.util.net.jsse.JSSESocketFactory and it works! It is a simple modification. Now,

Re: Null Pointer In java.lang.Package.isSealed because of Thread Saftey Issue with Webapp Classloader

2008-02-13 Thread Mark Thomas
Edward Costello wrote: Has anyone else encountered this? Does anyone know if this is fixed in a later version of tomcat, or if there is a work around? You obviously have spent some time looking at the code. You may not be aware of the web interface to svn. Take a look at

Re: Configuring the manager application for Tomcat 6

2008-02-13 Thread Mark Thomas
Caldarale, Charles R wrote: The documentation in RUNNING.txt is incorrect for Tomcat 6. In particular, there is no $CATALINA_BASE/lib, as you can tell by looking in the conf/catalina.properties file. The common.loader is defined to use ${catalina.home}/lib. Thanks for the heads up. Trunk has

Re: Sporadic Errors in catalina log

2008-02-14 Thread Mark Thomas
Caldarale, Charles R wrote: From: Steven [mailto:[EMAIL PROTECTED] Subject: Re: Sporadic Errors in catalina log Ok so I've caputured a large amount of data and I always see something like POST ?data=blah... its never blank but its not going to a specific webpage or anything, just to the

Re: naming-factory-dbcp.jar nonsense

2008-02-14 Thread Mark Thomas
Dan Armbrust wrote: So, my real question, is why the heck would anyone do this? What possible purpose could all of this obfuscation serve? All you have done is make debugging and trouble shooting 10 times more difficult than it needs to be. If you insist on refactoring the code for dubious

Re: Tomcat 6; getting logging to work

2008-02-14 Thread Mark Thomas
Peter Hawkins wrote: Basically, I would like to enable logging for my JSP app. How do I do it? Take a look at http://tomcat.apache.org/tomcat-6.0-doc/logging.html You want the java.util.logging section. Replace the examples web app with your own and then just use java.util.logging as per

Re: naming-factory-dbcp.jar nonsense

2008-02-15 Thread Mark Thomas
Dan Armbrust wrote: The only reasons he was given was that it was smaller (and we care why?) and that it _might_ prevent a version conflict issue. Size - don't care that much but as a side effect it isn't going to cause any harm. Version conflicts, however, are a big issue. Many web apps

Re: Particularly problematic Oracle connection problem (Oracle 10g, Tomcat 6, Blojsom 3.2)

2008-02-15 Thread Mark Thomas
Wylie, Kirk wrote: - Putting the .jar files ANYwhere (in order of attempts, webapp's WEB-INF/lib, CATALINA_BASE/lib, CATALINA_HOME/lib) - Results in the following statement occurring in the logs: Cannot create JDBC driver of class 'oracle.jdbc.OracleDriver' for connect URL

[ANN] Apache Tomcat 4.1.37 stable is released

2008-02-18 Thread Mark Thomas
The Apache Tomcat team is proud to announce the immediate availability of Tomcat 4.1.37 stable. This build contains numerous library updates, a small number of bug fixes and two important, one moderate and six low severity security fixes. Apache Tomcat is an implementation of the Java Server

Re: Need help with CGI in a directory OTHER than WEB-INF

2008-02-21 Thread Mark Thomas
JohnSka7 wrote: We've gone ahead and followed all of the instructions to get Tomcat to recognize cgi and execute it, but the problem is that our main application isn't within the Tomcat\webapp\ROOT directory...it's in a directory called PowerSchoolPremiere\Data\custom\webapp\. Can anyone give

Re: NIO connector source code

2008-02-21 Thread Mark Thomas
neil davudo wrote: Where can I find the source code for the NIO connector that uses the CometProcessor? http://tomcat.apache.org Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Re: Tomcat 5.5 security policie read jar content

2008-02-22 Thread Mark Thomas
Filipe David Manana wrote: Hi, How can I specify in catalina.policy (tomcat 5.5) that a webapp can read the contents of any jar file within WEB-INF/lib/ ? (namely, read xml files within jar files) Webapps have this permission by default. Mark

Re: Is there a Connection Pool/Data Source Monitor Tool

2008-02-24 Thread Mark Thomas
Rob Levin wrote: Sorry if this is a silly question but is there a monitor tool specifically for connection pooling/dataSources in tomcat6? I have debug=5: Not specifically for connection pools but I would use the excellent lambdaprobe http://www.lambdaprobe.org/ It does everything you want

Re: Configuring Tomcat for multiple users

2008-02-24 Thread Mark Thomas
Binding Servlet wrote: Hi, Is there a way to configure Tomcat so that servlets can be created by multiple users without having to either place them in the webapps directory and without updating conf/web.xml for every servlet? I know the invoker servlet is available, but I have read that is

Re: Realms and Remote Address

2008-02-25 Thread Mark Thomas
Kerrin Hardy wrote: I'm trying to create a Realm that authenticates a user and logs the IP address they attempted from, but I am having trouble finding how I get the IP address of the request (the Remote IP Address). I know I could get it if I had the Socket object, but I don't see how I get

Re: Open Source Process

2008-02-25 Thread Mark Thomas
Uzma Khawaja wrote: Hi, 1. If someone wants to work on a feature or bug, is he/she required to get permission before working? Is he/she REQUIRED to join the community? No permission required. By very virtue of downloading the software and working on the bug they have joined the community. It

Re: Virtual Hosts: path=/ without using ROOT folder?

2008-02-26 Thread Mark Thomas
ahnf wrote: My question is, is there any way other than making the application's root directory be ROOT or deployed under ROOT/ in order to get it to respond to /? I tried the path attribute but it says that it is only valid when the Context is defined in server.xml and not in

Re: Virtual Hosts: path=/ without using ROOT folder?

2008-02-26 Thread Mark Thomas
Lessie Z. Mitch wrote: If you are using apache, you still need to name your Virtual hosts in the httpd.conf. I am myself having mod_jk issues and awaiting response. ahnf wrote: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Does this work for TC5.5.x??? that is for TC6

Re: Virtual Hosts: path=/ without using ROOT folder?

2008-02-26 Thread Mark Thomas
Lessie Z. Mitch wrote: Sorry.. didn't finish... (hit the damned button) And my application context.xml files would read something like... No - completely wrong. In short (just doing one host) you want something like: /tomcat_home/conf/server.xml !-- virtual host mywebapp1 -- Host

Re: Virtual Hosts: path=/ without using ROOT folder?

2008-02-27 Thread Mark Thomas
Lessie Z. Mitch wrote: /tomcat_home/conf/server.xml !-- ip 123.234.345.1 -- Host name=domain1.com appBase=/home/web/domain1.com/webapps ~~~ no directory after webapps unpackWARs=true autoDeploy=true /Host This now looks good. Note that *any* directory or war under

Re: access Connector Address from within war file

2008-02-27 Thread Mark Thomas
Stephen More wrote: On Wed, Feb 27, 2008 at 12:26 PM, Caldarale, Charles R Chuc...m wrote: From within a war file, I need to access the Connector Address. Why don't you tell us what you're really trying to do, and what Tomcat level you're trying to do it on. It's not at all clear

Re: totally confused! deploy redeploy the ROOT context via manager app and/or ant

2008-02-27 Thread Mark Thomas
AH NF wrote: Hi all, Ok so I have my ROOT.war and / host all working as I would like. I startup tomcat with no application defined, and go to /manager. I upload my ROOT.war file,tomcat places it in myAppBase/ROOT as expected. The application boots up OK. My only problem is that Tomcat

Re: totally confused! deploy redeploy the ROOT context via manager app and/or ant

2008-02-27 Thread Mark Thomas
[EMAIL PROTECTED] wrote: hmm, I had those set = True for both, and I was getting that behavior, only when I set them both to false does it not seem to create the temp directories. maybe something else? Sorry - just did a copy and paste from your config. Setting them true is what causes the

Re: Support and development of versions

2008-02-28 Thread Mark Thomas
Stephen Nelson-Smith wrote: On Thu, Feb 28, 2008 at 2:37 PM, David kerber [EMAIL PROTECTED] wrote: 4.1.37 is probably your best short-term solution, and work toward 6.x in the mid-to-long term. That was my gut feeling. Could you explain why that is? Is 5.5 a wasteland? I'll need to

Re: Virtual-Host issues on Apache-Tomcat

2008-02-28 Thread Mark Thomas
Jonathan Mast wrote: I'm trying to a subdomain to our site but Tomcat is not finding the index page correctly. Here are my entries into httpd.conf and server.xml: VirtualHost * ServerName foo.site.com DocumentRoot /usr/local/apache/htdocs/foo CustomLog

Re: Virtual-Host issues on Apache-Tomcat

2008-02-28 Thread Mark Thomas
Jonathan Mast wrote: sorry Tomcat 5.5.1 Apache 1.3.33 Java 1.4.2 And you are linking httpd and Tomcat how? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Support and development of versions

2008-02-28 Thread Mark Thomas
Jason Pyeron wrote: -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Current status is available from: http://wiki.apache.org/tomcat/TomcatVersions What does RTC, for the process field stand for? Review Then Commit. It means every patch must get at least 3 more

Re: TomCat Does not recognize my servelt

2008-03-02 Thread Mark Thomas
Ash B wrote: But tomcat does not recognize my servlet TestDBTimeExample Any help will be appreciated. As per the servlet spec, your class *must* be in a package. Mark - To start a new topic, e-mail: users@tomcat.apache.org

Re: Configuring DataSourceRealm using Oracle

2008-03-03 Thread Mark Thomas
Jason Ling wrote: What is the the realm-name sub-element of login-config for in the application's web.xml file, when and how is it used? Suppose I configure more than one Realm in server.xml, is that the scenario where I need to use the real-name tag to specify which Realm to use? In that

Re: Overwritten or ignored ContentType by setContentType

2008-03-04 Thread Mark Thomas
André Schulte wrote: Why is the ContentType overwritten or maybe ignored by invoking the setContentType(application/xhtml+xml; charset=ISO-8859-1) ? Looking at the source, there are two possibilities: 1. The response has already been committed 2. The servlet is being included in another

Re: sym link to serve documents within web application.

2008-03-07 Thread Mark Thomas
Christopher Schultz wrote: David, Maffitt, David wrote: | We have a different problem with this. Tomcat will follow the link | and delete the contents of the linked-to directory when the app is | redeployed. We have to be sure that the link is deleted before | redeploying. Not a problem if one

Re: %t in access log valve?

2008-03-07 Thread Mark Thomas
Dan Keeley wrote: Hi all, Just a quick one; It's not clear from the docs. is %t in the accessLogValve the request datetime or the response datetime? It makes a difference to us! thanks, Dan When starting a new thread (ie sending a message to the list about a new topic) please do not reply

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Mark Thomas
David Kramer wrote: I've been trying to find out how to run it as a service, and the only solution I can find is relevant to AMD processors (yes, I tried it anyway). The 32-bit versions of tomcat5.exe doesn't run under 64-bit Windows. The 64bit binaries are here:

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Mark Thomas
Caldarale, Charles R wrote: From: Mark Thomas [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon The 64bit binaries are here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/ I think you want the ia64 ones. No, you definitely do

<    1   2   3   4   5   6   7   8   9   10   >