Tomcat 5.0.x, Log4J, Commons Logging, and Digester Hell (Need Best Practices)

2005-03-16 Thread Lukas Bradley
I need some best practices advice regarding the use of Log4J, Commons Logging, Tomcat 5.0.x, Digester, multiple third party support applications (such as Jakarta Struts, Hibernate 3 (http://www.hibernate.org), Spring Framework (http://www.springframework.org), and others. For the past 2 years,

Re: Apache 2.0.51, Tomcat 5.0.x, mod_jk (not supported?!)

2004-10-19 Thread Lukas Bradley
Ive also read somewhere that mod_jk2 isnt suitable for multiple jvm hosting. mod_jk2 is so devious, it isn't suitable for torturing your worst enemy. I don't want too much of my geekdom to show, but this bad boy is going to be one of the horrendous programs uploaded to the Monolith in 3001 whe

Re: Apache 2.0.51, Tomcat 5.0.x, mod_jk (not supported?!)

2004-10-19 Thread Lukas Bradley
[EMAIL PROTECTED] wrote: How many instances are your running? 1 or multiple? dealing with one is very easy. If by instances, do you mean root processes- then 1 of each. I am running multiple connector threads for httpd and java, but everything is running on the same machine. This should be a ver

Apache 2.0.51, Tomcat 5.0.x, mod_jk (not supported?!)

2004-10-19 Thread Lukas Bradley
Running Red Hat Fed Core 2, Apache 2.0.51, Tomcat 5.0.x. I'm trying to configure Apache and Tomcat like I have countless times before. The only mod_jk source or binary I can find is for Apache 2.0.50. If I try to use it with 2.0.51 it's a no-go. Since the documentation on mod_jk2 is horrendous

Re: Customizing Tomcat error page

2004-10-16 Thread Lukas Bradley
Unfortunately, the does not catch return code. I already have one java.lang.Exception which is a good umbrella for all exception an alike. However, it does not catch 404, for example. Try this in your web.xml 400 /400.jsp 401 and 403 ar

Re: JspC on Tomcat5 vs Tomcat4 - Java Source Generation

2004-10-15 Thread Lukas Bradley
Yes, Yoav, everything you wrote is correct. I have read all those things, and the source is being created *for those files that do not have dependencies with my other java source.* In short, I was wondering why the older JSP Java generation in ANT didn't need those class dependencies, but the

JspC on Tomcat5 vs Tomcat4 - Java Source Generation

2004-10-15 Thread Lukas Bradley
On old Tomcat 4 projects, the Manager used Ant to generate Java source from my JSPs, which could then be compiled directly with my other Java source, and all was good. The Manager saw that it was good, and it was good. In the great migration to Tomcat 5, the Ant script proclaimed: "this task d

Tomcat 5 Session Replication and ServletContext

2004-06-21 Thread Lukas Bradley
I'm looking for a clarification on the functionality of the Session Replication within Tomcat 5. Is the only data replicated across servers that which is placed in the HttpSession? In other words, is any data placed within the ServletContext (application layer) object replicated? Thanks

RE: [ANN] Apache Tomcat 5.0.16 Stable released

2003-12-07 Thread Lukas Bradley
Congratulations to all those involved. This is a huge release, in my book. Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: HttpSessionListener in Tomcat 4.1.27 (or HttpSessionListener in general)

2003-11-27 Thread Lukas Bradley
ou will be notified when an attribute is > removed and you will be able to access its value. > > Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: Lukas Bradley [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, November 26, 2003 1:

HttpSessionListener in Tomcat 4.1.27 (or HttpSessionListener in general)

2003-11-26 Thread Lukas Bradley
All, When I attempt to access the HttpSession object within the sessionDestroyed(), I get the following error. DEBUG [StandardManager[]] (SessionListener.java:40) - sessionDestroyed() StandardManager[] Session event listener threw exception java.lang.IllegalStateException: getAttribute: Session a

Re: Tomcat 4.1 Runaway Java Procs on Debian LINUX

2003-11-13 Thread Lukas Bradley
-- the memory/CPU reported by each thread is actually shared among all threads. -A] "Lukas Bradley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What determines the number of Java procs running catalina upon startup? > The OS is Debian Linux, and it's

Tomcat 4.1 Runaway Java Procs on Debian LINUX

2003-11-13 Thread Lukas Bradley
What determines the number of Java procs running catalina upon startup? The OS is Debian Linux, and it's Tomcat 4.1. If you look closely below, between ids 268 and 317 was full of java instances. That's 49 java instances running the bootstrap. What would make this happen? Is this normal? Is th

Re: HttpsURLConnection, Tomcat 4.1.27, and jsse.jar

2003-10-14 Thread Lukas Bradley
A good guess, and only if the JSSE functions REQUIRED 1.3. But I'm trying to access the JSSE classes included with 1.4. Lukas "Yuriy Stul" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > May be problem is that Tomcat 4.1.27 was compiled under Java 1.4... and > JSSE under Java 1.3

HttpsURLConnection, Tomcat 4.1.27, and jsse.jar

2003-10-12 Thread Lukas Bradley
I'm having a strange problem with Tomcat and javax.net.ssl.HttpsURLConnection. I'm using Tomcat 4.1.27, JDK 1.4.1_04, and the jsse.jar containing the javax.net.ssl and other fine classes. I've read about certain bugs located here http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuid

Re: Tag Lifecycle

2003-10-01 Thread Lukas Bradley
You're a rock star, Tim. Thanks. Lukas "Tim Funk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > All the detail you need ... > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16001 > > -Tim > > Lukas Bradley wrote: > > > Wha

Tag Lifecycle

2003-09-30 Thread Lukas Bradley
What is the lifecycle of custom tags? Are tag objects reused throughout a page? It seems as if my tags are not always being created. They are not *always* reused however. Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: Tomcat 4.1 MIME Type from web.xml

2003-09-16 Thread Lukas Bradley
> Is there a corresponding method within the Tomcat 4.1 framework? I would > like to determine a file's MIME type as specified within the web.xml > document. I'm an idiot, please don't bombard me Servlet Context java.lang.String getMimeType(java.lang.String file) Retu

Tomcat 4.1 MIME Type from web.xml

2003-09-16 Thread Lukas Bradley
In Tomcat 5.0 beta, there is a class MimeMap offering the following method: public String getContentType(String extn) {...} Is there a corresponding method within the Tomcat 4.1 framework? I would like to determine a file's MIME type as specified within the web.xml document. Thanks Lukas

Re: Servlet/JSP Lifecycle and Performance

2003-09-07 Thread Lukas Bradley
> AFAIK, no such benchmarks have been made. > Once tomcat loads a servlet, it is loaded. Tomcat currently does not unload > servlets due to lack of use. Is this the case with Tomcat 5? Lukas - To unsubscribe, e-mail: [EMAIL P

Servlet/JSP Lifecycle and Performance

2003-09-05 Thread Lukas Bradley
All, Where can I get a description of how Tomcat handles a Servlet lifecycle from init() to removal from memory? I'm interested in how long a Servlet is held in memory, and how long it remains inactive before it is removed from the Servlet pool. Also, are there performance statistics of the maxi

Failed Authentication: 401 error-page strange behavior

2003-08-14 Thread Lukas Bradley
I'm attempting to use a combination of an error-page for 401 codes and BASIC authentication. My version is Tomcat 4.1.27 on Windows XP. Without the error-page, the authentication works fine. A username/password dialog is presented when attempting to enter the /sponsor, /webmaster, or /admin dire

Re: Failed Authentication: 401 error-page strange behavior

2003-08-14 Thread Lukas Bradley
In Bugzilla with a really bad hack fix. I'm trying to reopen the ticket. http://nagoya.apache.org/bugzilla/buglist.cgi?email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue

Re: Running Tomcat as Non-Root

2003-07-19 Thread Lukas Bradley
> > Because then ANYONE with a user account could bind a service to those > > ports. > ... unless there are proper access privileges on ports as on files. > I consider the start-as-root pattern as a hack (not a bad one though ;-) I was going to let a sleeping dog lie, but that's exactly what I thi

Re: Running Tomcat as Non-Root

2003-07-18 Thread Lukas Bradley
Yes, but is this a Java problem, or is this an OS related problem/feature? IMHO, since UNIX/LINUX is doing the restricting of port traffic, the problem resides with the OS, not with Java. Adding an API to shift the native security model is out of scope. Why don't particular flavors of the OS all

Re: JSP Precompilation / JSPC / JSP servlet mapping

2003-07-18 Thread Lukas Bradley
"Then, the declarations and mappings for the servlets which were generated during the precompilation must be added to the web application deployment descriptor. Insert the ${webapp.path}/WEB-INF/generated_web.xml at the right place inside the ${webapp.path}/WEB-INF/web.xml file. Restart the web ap

Re: Tomcat Using Log4J ?

2003-07-17 Thread Lukas Bradley
B-INF/lib/struts.jar /WEB-INF/lib/xalan.jar Log4J is being loaded by a plugin detailed in Stuts. Lukas "Jacob Kjome" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Quoting Lukas Bradley <[EMAIL PROTECTED]>: > > > > Does Tomcat 4.1.24 initialize a

Re: Tomcat Using Log4J ?

2003-07-16 Thread Lukas Bradley
> Does Tomcat 4.1.24 initialize a Log4J instance? It seems as if something is > stepping on my Log4J properties, and I don't know where it is. The first > thing my application does is start the plugin, but here is my log: It's actually Commons Digester. When I set it to a DEBUG level, it goes C

Tomcat Using Log4J ?

2003-07-16 Thread Lukas Bradley
Does Tomcat 4.1.24 initialize a Log4J instance? It seems as if something is stepping on my Log4J properties, and I don't know where it is. The first thing my application does is start the plugin, but here is my log: WebappLoader[]: Deploy JAR /WEB-INF/lib/xerces.jar to c:\dev\myapp\html\WEB-INF\

Re: JSP Pre-compile and Deployment

2003-07-16 Thread Lukas Bradley
> You place the class files in /WEB-INF/classes, then hand-code servlet mappings in web.xml pointing from each xxx.jsp name to the corresponding class. This seems pretty convoluted. How does Tomcat handle the mappings? Is there not an automatic way to do this? Lukas

JSP Pre-compile and Deployment

2003-07-12 Thread Lukas Bradley
Double part question: First, when I pre-compile JSPs, what directory are the JSP class files placed? In WEB-INF/jsp or WEB-INF/classes? Second, without the actual JSP on the server, can the files be reached as normally? Will //localhost/myfile.jsp still map correctly to the class in Tomcat? Th

Re: Anyone seen this error before?

2003-07-08 Thread Lukas Bradley
I think the problem is much simpler. Sounds like a JSP is attempting to access something (like myHashMap.get(null) ) and the NPE is being thrown up to Tomcat. How about some code? This only happening in one spot? Lukas "Eric J. Pinnell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

Deploying WAR: Possible to automatically compile JSPs?

2003-07-02 Thread Lukas Bradley
When deploying a WAR file, is it possible to have Tomcat automatically compile all the included JSP files? Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat web.xml web-app/error-page support

2003-06-23 Thread Lukas Bradley
> > Does Tomcat support the web.xml DTD web-app/error-page option? It > > is parsed in the org.apache.catalina.startup.WebRuleSet, but I've > > never seen any documentation on it. > http://jakarta.apache.org/tomcat/faq/misc.html#error Thanks for the quick response, Jason. I apologize for not se

Tomcat web.xml web-app/error-page support

2003-06-23 Thread Lukas Bradley
Does Tomcat support the web.xml DTD web-app/error-page option? It is parsed in the org.apache.catalina.startup.WebRuleSet, but I've never seen any documentation on it. Anything out there? Lukas - To unsubscribe, e-mail: [EMA

SSL and Non-Browser Traffic

2003-05-30 Thread Lukas Bradley
For non-browser based traffic, like foreign applications that POST to a Servlet over HTTPS, where do I place the trusted client certificate? Since there is no user-based authentication acceptance window, it seems our connections are failing. The end user has sent me the certificate, I just don't