Sporadic NoClassDefFoundError

2004-02-23 Thread Brett Knights
Hi, I am running TC 4.1.29 on Linux with jdk 1.4.2. I have two machines that are set up to be quite similar. Occasionally when I start tomcat my log contains such things as: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener (from one machine) or

RE: Possible bug with isSecure()/getScheme() methods in tomcat 4.1

2002-10-15 Thread Brett Knights
IIRC there is a bug in the coyote connector in TC 4.1.10. You have to use the org.apache.ajp.tomcat4.Ajp13Connector connector and set an attribute tomcatAuthentication=false to achieve the result you desire. -Original Message- From: George Hart [mailto:[EMAIL PROTECTED]] Sent:

RE: Building mod_jk.so for Linux

2002-10-15 Thread Brett Knights
and mod_jk works. Can anyone tell me where this is documented? HTH -Original Message- From: Brett Knights [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 12, 2002 9:53 AM To: 'Tomcat Users List' Subject: Building mod_jk.so for Linux Hi, I have a RH Linux 7.2 system with Apache

RE: Building mod_jk.so for Linux

2002-10-15 Thread Brett Knights
That's pretty strange. Mod_jk is the last module loaded for me, at the very end of httpd.conf, and it works perfectly. John -Original Message- From: Brett Knights [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 2:22 PM To: 'Tomcat Users List' Subject

Building mod_jk.so for Linux

2002-10-13 Thread Brett Knights
Hi, I have a RH Linux 7.2 system with Apache 2.0.42 installed. I am trying to compile mod_jk.so for this system. I have the jakarta-tomcat-connectors-4.0.6-src files and run the following to make the .so from jk/native ./configure --with-apxs=/usr/local/apache2/bin/apxs make this process runs

Apache 2, Win32, TC 4.0.4, mod JK and two servers

2002-07-25 Thread Brett Knights
Hi, I am attempting to transition to Apache2 under Windows NT. I have two servers. Server1 is running Apache with several virtual hosts. Server2 is running Apache2 and Tomcat 4.0.4 final. One of the virtual hosts on Server1 needs to forward some requests to a webapp on Server2. Under Apache

RE: Apache 2, Win32, TC 4.0.4, mod JK and two servers

2002-07-25 Thread Brett Knights
/contact.html.var' [Thu Jul 25 14:07:27 2002] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match -Original Message- From: Brett Knights [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 2:27 PM To: 'Tomcat Users List' Subject: Apache 2

RE: Garbage in Context Attributes

2002-07-05 Thread Brett Knights
Actually the enum is on the attribute names which is always an enum of String: Enumeration enum = context.getAttributeNames(); while(enum.hasMoreElements()){ String name = (String) enum.nextElement(); Object attribute = context.getAttribute(name); ... } Enumeration enum =

RE: tc 4.0.4 + apache 2.0.36: mod_jk vs mod_proxy

2002-07-02 Thread Brett Knights
This sounds intriguing as I am currently screwing around with trying to get TC 4.04 working with Apache 2.039 under Win32. What happens when a web app needs authentication? Do 401 responses work through a proxy? Can requests still be authenticated by Apache and if so does the current user pass

Apache and TC on different machines

2001-12-21 Thread Brett Knights
references to my mod_jk.conf file or not. My apache machine has neither java nor tomcat installation. TIA ^^^ Brett KnightsTanner Research, Inc. MIS Analyst 2650 E

RE: Responding to a disconnected client

2001-11-15 Thread Brett Knights
Check out the long running servlet example in the Jason Hunter book. Wrap the result holder/processor in a Session listener. If the browser requests the result then get it from the session and return it. If they eventually log off or their session expires you can reclaim the result memory. HTH

RE: Mod_Jk and Multiple Tomcats

2001-11-15 Thread Brett Knights
(terse response) for each tomcat create a different worker (listening on different ports or from different servers). Map the urls to workers as appropriate. remember to modify server.xml to listen on the correct ports. HTH -Original Message- From: David Wilson [mailto:[EMAIL

Win32, TC4 and server

2001-11-14 Thread Brett Knights
setting those parameters. ^^^ Brett KnightsTanner Research, Inc. MIS Analyst 2650 E. Foothill Blvd. [EMAIL PROTECTED] Pasadena, CA 91107 voice 626-432

RE: Driver fails to load on two webapps

2001-10-04 Thread Brett Knights
Are all the sql related class files for each webapp in the respective webapps lib or classes directories? If not you might try that. (And if it works please report back.) HTH -Original Message- From: Brian Richards [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 9:54 PM

RE: Driver fails to load on two webapps

2001-10-04 Thread Brett Knights
that it tries to load for each getConnection request. That may help. -Original Message- From: Brett Knights [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 6:13 AM To: [EMAIL PROTECTED] Subject: RE: Driver fails to load on two webapps Are all the sql related class files

RE: Driver fails to load on two webapps

2001-10-04 Thread Brett Knights
Might i try moving the jar to WEB-INF\classes instead of WEB-INF\lib ? Wouldn't work. Jars are only loaded from the lib directory. As you did I ended up with my driver jar file in a common directory (lib/common for tc3.3) I have a connection pool manager (bitmechanic) and I keep its jar in

RE: Cannot Use Basic Authentication With Tomcat Redirecter

2001-09-26 Thread Brett Knights
I'm not quite sure what a redirector is but I had better success with ajp13 than ajp12 wrt non-tomcat managed authorization credentials. HTH -Original Message- From: Crane, David [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 8:15 AM To: '[EMAIL PROTECTED]' Subject:

RE: how to integrate mod_jk into Tomcat 4.0

2001-09-25 Thread Brett Knights
Go to the jakarta.apache.org website and follow the documentation links for TC3.3 with respect to integrating Tomcat with Apache. For building and installing the ajp connector for TC4 go to http://jakarta.apache.org/site/cvsindex.html and follow the instructions for checking out the cvs module

Re: Has anyone configured tomcat 4.0 with IIS???

2001-09-24 Thread Brett Knights
/servlet.jar/ property name=junit.jar location=${env.JUNIT_HOME}/junit.jar/ and to the target build-main's javac task I added exclude name=org/apache/ajp/tomcat33/** if=tomcat3.skip/ HTH *** Brett Knights

RE: Beans and Forms

2001-09-24 Thread Brett Knights
This way lies madness. The web is not a VB App. :-) Try having the second form submitted by an onload javascript function in the page returned by the first servlet call. HTH -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 6:32

RE: Limits of Web

2001-09-24 Thread Brett Knights
The web is not that complicated a paradigm and trying to shoehorn it into a rich GUI environment can be a real headache. (At least that's my experience) Furthermore people using a web app aren't necessarily used to having to navigate that rich GUI. IMO part of the web's success is that it has a

RE: Has anyone configured tomcat 4.0 with IIS???

2001-09-24 Thread Brett Knights
There are instructions in the readme.txt file that you will find in the jk directory under the connectors module. you can then configure IIS the same as described in the docs for Tomcat 3.3. HTH -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: Beans and Forms

2001-09-24 Thread Brett Knights
This way lies madness. The web is not a VB App. :-) I know! I did not choose this application but was given it. Try having the second form submitted by an onload javascript function in the page returned by the first servlet call. Tried this. We are using Netscape 4.x and the unload

RE: IIS4 with Tomcat 4.0

2001-09-24 Thread Brett Knights
-Original Message- From: Jeff Annable [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 5:22 PM To: [EMAIL PROTECTED] Subject: IIS4 with Tomcat 4.0 I have seen a few reports that you can configure Tomcat 4.0 with the redirects used in 3.3? Has anyone successfully

RE: IIS4 with Tomcat 4.0

2001-09-24 Thread Brett Knights
Tomcat is running as a service and seems to be o.k. but I want to integrate with IIS. Surely you mean you need to integrate with IIS? :-)

TC4 and Send Error

2001-09-23 Thread Brett Knights
^^^ Brett KnightsTanner Research, Inc. MIS Analyst 2650 E. Foothill Blvd. [EMAIL PROTECTED] Pasadena, CA 91107 voice 626-432-5767 fax 626-792-0300 ^^^

RE: TC4 and Send Error

2001-09-23 Thread Brett Knights
Message- From: Brett Knights [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 23, 2001 1:22 PM To: '[EMAIL PROTECTED]' Subject: TC4 and Send Error I have installed TC4 and have it working. I am moving an app that worked fine under TC3.3. My problem is that when I call

RE: Using Tomcat with MSAccess

2001-08-09 Thread Brett Knights
in your InsertIntoDB method and would no longer need to worry about synchronization. The pool should manage re-getting the connection after an access restart. HTH *** Brett Knights 250-338-3509 work [EMAIL PROTECTED

Re: authentifikation at tomcat/apache through a Windows NT

2001-07-09 Thread Brett Knights
I just use mod_ntlm and let apache handle it. http://members.ozemail.com.au/~timcostello/mod_ntlm/ v 1.2 has been rock solid. There's another one (that I haven't used) at sourceforge: http://modntlm.sourceforge.net/ Date: Mon, 9 Jul 2001 09:25:16 +0100 To: [EMAIL PROTECTED] From: [EMAIL

Re: Jakarta NT service

2001-07-06 Thread Brett Knights
You can use jdk 1.3.1 to overcome this problem. I am running TC as a service on NT4 no problem. Note you have to add -Xrs on the command line (in the wrapper.properties file) to overcome the stop on logout problem. See

Tomcat 3.3 vs Tomcat 4.0

2001-06-20 Thread Brett Knights
Is development on TC 3.3 proceeding or is most effort going into TC 4.0? Is there still a plan to have a release build of TC 3.3? TIA *** Brett Knights 250-338-3509 work [EMAIL PROTECTED] 250

jakarta_nt_service and Class Not Found

2001-06-14 Thread Brett Knights
as wrapper.class_path properties. In order to make TC work like it does from the startup scripts I needed to change the startup class to be: wrapper.startup_class=org.apache.tomcat.startup.Main HTH *** Brett Knights

RE: Question: Tomcat 3.2.1 servlet and dynamically loading JAR files

2001-06-04 Thread Brett Knights
Barry, Tomcat 3.3 resolves this issue by letting you isolate a web-app's jar files from the container's jar files. I don't know if the change is available in 3.2.2 but you might save yourself some work if it is. The issue in general seems to be an ugly one. From a development point of view it

RE: Question: Tomcat 3.2.1 servlet and dynamically loading JAR files

2001-06-03 Thread Brett Knights
*** Brett Knights 250-338-3509 work [EMAIL PROTECTED] 250-334-8309 home *** -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday

Can't add a context to Tomcat 3.3

2001-05-30 Thread Brett Knights
file not found error. If I request http://localhost/reports/servlet/SnoopServlet I get the same. Any insight or suggestions would be appreciated. I believe I once had this working with Tomcat 3.2 (on another machine) *** Brett Knights

RE: Can't add a context to Tomcat 3.3

2001-05-30 Thread Brett Knights
Sh*t!!! Thanks very much. -Original Message- From: Boris Niyazov [mailto:[EMAIL PROTECTED]] I put SnoopServlet.class in webapps/reports/classes It should be in webapps/reports/WEB-INF/classes

RE: FATAL: configuration error

2001-05-25 Thread Brett Knights
There isn't much else I can tell you besides to check the notes on the sun website so you understand what the problem is and can figure out how you might go about fixing it. You might find the attached class useful in identifying which jar files have potential conflicts though I haven't made

RE: FATAL: configuration error

2001-05-24 Thread Brett Knights
sealing violation is new in jdk 1.3 and addresses a potential security problem. The java web site has notes on this. What I found is that certain xml related jar files each includes the class files for dom, sax, jaxp etc. You can mess with the order of the jar files on your class path to work

RE:Determining NT login name

2001-05-16 Thread Brett Knights
support for NTLM than MS's own product. HTH *** Brett Knights 250-338-3509 work [EMAIL PROTECTED] 250-334-8309 home ***

RE: Determining NT login name

2001-05-16 Thread Brett Knights
Re ... Apache has cleaner support for NTLM than MS's own product ...: Cleaner how? Disallowing Anonymous is all it takes in IIS. To get the user name passed through for use with a Basic Authentication scheme managed from your server app yes I have done that many times. Probably you can

Re: Wierd Casting Problem. Tomocat Bug?

2001-04-30 Thread Brett Knights
? *** Brett Knights 250-338-3509 work [EMAIL PROTECTED] 250-334-8309 home ***

RE: Did you get any answers?

2001-04-09 Thread Brett Knights
I had a similar error recently when I compiled a servlet with the jsdk2.0 classes on my classpath. Recompiling with the current servlet classes fixed it. Hi, I try to run Servlet from TOMCAT, but it has error. Please give me some help! The Servlet is to access Oracle DB. V8i. from the

RE: simple question for servlet-configuration of tomcat

2001-04-06 Thread Brett Knights
What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which

RE: simple question for servlet-configuration of tomcat

2001-04-06 Thread Brett Knights
\uriworkermap.properties-auto HTH BTW In my example below it looks like Tomcat is serving my static content. :-( -Original Message- From: Brett Knights [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 10:16 AM To: '[EMAIL PROTECTED]' Subject: RE: simple question for servlet-configuration

Re: Tomcat equivalent of JServ's LogWriter?

2001-04-05 Thread Brett Knights
I have done the following: Using Log4J create a singleton ServletAppender that pipes output to Log4J all my servlets check to see if this is initialized and if not they init it with the ServletContext. Servlet logging works normally. Log4J logging methods (called from my non-servlet

RE: JDBC Driver

2001-03-21 Thread Brett Knights
I use the una driver from www.inetsoftware.de They have a range of drivers, responsive tech support and decent prices. I can't comment on your problems really. The failure to reload servlets may be configuration related or NT related. One of my clients uses ServletExec which sometimes reflects

RE: IE caching again

2001-03-19 Thread Brett Knights
I think that the caching settings on IE only affect files written to disk. You might try including something like this in the head section of the page's html: meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" meta http-equiv="pragma" content="no-cache" It shouldn't make any

Re: JDBC Driver

2001-03-18 Thread Brett Knights
Try FreeTDS (www.freetds.org, I think). I've used their straight TDS driver with excellent results. They also have a Type 4 JDBC driver as well. I haven't had occasion to use it, but if it performs as well as the straight TDS driver, I'm sure you'll be pleased. Unfortunately it looks

Re: Database Pooling

2001-03-15 Thread Brett Knights
I am doing some servlet programming and I would like to setup a Database pool. Can someone please email me back any help [EMAIL PROTECTED] I have been using the bitmechanic pool for a couple of years. For an easy way to set this up I have a wrapper for it at

Re: Cache problem with IE

2001-03-13 Thread Brett Knights
r or not to cache a page (aside from get vs post, presence of cookies etc etc) I believe that pragma and cache-control are only used by the browser. hth ******* Brett Knights 250-338-3509 work [EMAIL PROT

Re: Tomcat security.

2001-03-09 Thread Brett Knights
Date: Fri, 09 Mar 2001 16:21:43 To: [EMAIL PROTECTED] From: "Thomas O' Connor" [EMAIL PROTECTED] Subject: Tomcat security. Message-ID: [EMAIL PROTECTED] Does anyone know a simple way to encrypt information sent from a jsp page hosted on tomcat and then decrypt the info when it reaches

RE: TomCat - IIS - Security

2001-03-05 Thread Brett Knights
for that. OTOH you should be able to use that with Apache and use Location tags in the .conf file to achieve your aims. Restricted users can be shut out and req.getRemoteUser() can be used to see who has been authenticated. (note username will be "domain\user") HTH Brett Knights -Origin

RE: global init param context-param

2001-02-26 Thread Brett Knights
oamFileProps.load(config.getInitParameter("bw.client.configDir") + System.getProperty("file.separator") + "SystemPref.properties"); Context.getInitParameter for globals - To

RE: Secure MessageDigest Login using JSP

2001-02-25 Thread Brett Knights
And IE5 and Mozilla6 are supposed to support digest authentication so you mightonly need to implement something as a fallback (or if it is an intranet/extranet project specify only those browsers) Reading the rfc (rfc 2617) on digest authentication is a good idea if you are thinking of

RE: url-pattern question

2001-02-25 Thread Brett Knights
-Original Message- My work aroudn was to url-map jsps to a particular folder in this web application, for example a url-mapping of /templates/* so a call to localhost/content/templates/test.jsp will process the jsp at that location. It's not working. I'm forced to url-map my

RE: JSPs still not working

2001-02-24 Thread Brett Knights
What about CLASSPATH? --- ")ason" [EMAIL PROTECTED] wrote: In my c:\autoexec.bat I have SET JAVA_HOME=c:\jdk1.3 SET TOMCAT_HOME=c:\tomcat2 SET PATH=c:\jdk1.3\bin;%PATH% and in my tomcat.bat I also have set JAVA_HOME=c:\jdk1.3 set PATH=c:\jdk1.3\bin;%PATH% In the command

RE: best way to handle Servlets+JSPs+multiple Frames?

2001-02-21 Thread Brett Knights
You can target any frame for the result to go to in your form tag e.g. form target="frameName".. then for any other frames that need refreshing have a javascript function that refreshes them when the form's target frame is done loading. e.g. in the html returned to "frameName" body

RE: Tomcat,Apache,Linux,Oracle 8i,JDBC connectivity

2001-02-20 Thread Brett Knights
If you don't HAVE to, I would recommend: 1. Use FreeBSD, not linux. 2. Use mSQL or mySQL, there's less processing overhead. 3. Tomcat 3.2.1 has performance improvements over 3.1. (3.3 is cleaner still, but I'm guesing you won't want to use a milestone build) Mike, I don't want to start

RE: Load balancing for Tomcat with mod_jk

2001-02-20 Thread Brett Knights
You might want to check this out: http://www.javaworld.com/javaworld/jw-11-2000/jw-1122-servlets.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 7:53 AM To: [EMAIL PROTECTED] Subject: Load balancing for Tomcat with mod_jk

RE: *** Referring to a file or a directory from inside a jsp/servlet or bean ???? ***

2001-02-20 Thread Brett Knights
Make the output path a parameter. It would then be configured by whoever is setting up the web application. ServletContext.getResourceAsStream() is perfect for reading a file. But what about writing a file ? - To

RE: How to measure Apache-Tomcat performance?

2001-02-20 Thread Brett Knights
I can't help with the performance measurement but I'd say just go ahead and develop :-) The servlet API is meant to be portable. You can develop, test with Apache JMeter (http://java.apache.org) and if Tomcat won't work for you then you should be able to re-deploy to Resin with very little