Re: debugging servlets?

2002-10-23 Thread Jacob Kjome
http://www.sysdeo.com/eclipse/tomcatPlugin.html Jake At 02:51 PM 10/23/2002 -0400, you wrote: On Wed, 23 Oct 2002, Cédric Viaud wrote: Try using Eclipse with the Tomcat plug-in. You can run your web application and use the debugger at the same time. Very very convenient !!!

RE: Help with log4j and log4j.propereties under Tomcat 4.1.2

2002-10-23 Thread Jacob Kjome
See the following for hints on how to set up intelligent Log4j configuration: http://barracuda.enhydra.org/software/cvs/cvsweb.cgi/Projects/EnhydraOrg/toolsTech/Barracuda/WEB-INF/sample.web.xml?rev=1.3content-type=text/x-cvsweb-markup

Re: 4.1.12 won't stop

2002-10-18 Thread Jacob Kjome
Hello ex2), Ahhh if you are running the NT service, you need to use the services applet to start/stop Tomcat or you need to use the command line net start [servicename] or net stop [servicename]. Using the batch files will not shut down Tomcat unless you started tomcat via a batch file.

Re: JNDI Data Source

2002-10-18 Thread Jacob Kjome
Hello Jens, There are two problems that are immediately apparent: 1. user should be username 2. you should append ?autoReconnect=true to your url value when using MySQL which sweeps stale connections. Jake Thursday, October 17, 2002, 3:27:42 AM, you wrote: JK Hi, JK I got a problem

Re: expression ALWAYS evaluates to if... NEVER to else

2002-10-18 Thread Jacob Kjome
Hello Z.BEAT, If these are both java String objects then all you are comparing is if the memory location of string object #1 is the same as that of String object #2. This is probably not true. You need to compare like this. if (paramPassword.equals(secretCode)) { } else { } You can only

Re: NT Service src

2002-10-18 Thread Jacob Kjome
Right click Tomcat.exe and check it's properties. You'll find out it is just version 1.1.0.0 of JavaService which is not an Apache project. You'll find info about JavaService + source code here: http://www.alexandriasc.com/software/JavaService/ Note that the version include in Tomat is not

Re: servlets stoped working but jsp works

2002-10-20 Thread Jacob Kjome
You need to pay attention to the security notices: http://jakarta.apache.org/site/news.html#0924.1 The invoker servlet has been disabled by default to close a security hole. Basically, the source of your JSP page could be revealed via a specially crafted URL. If you *really* need to enable

Re: multiple servlet instances?

2002-10-22 Thread Jacob Kjome
Well, there still can be multiple instances. For instance, if you access the servlet in different ways. Every mapping of the servlet will beget a new instance. If you have a servlet class com.mycompany.MyServlet that you've given the name myservlet, then the following will beget two

Re: log4j stability and compatibility ???

2002-10-22 Thread Jacob Kjome
Well, Apache2 is native code and Log4j is for debugging in Java, so Apache2 is pretty irrelevant. It should work fine in Tomcat as long as you put log4j in the WEB-INF/lib of each webapp that you want debugging in. Log4j needs to log in its own universe. Putting it in a global classloader

Re: Please Help: Any tomcat/3rd party class that can do this?

2002-10-22 Thread Jacob Kjome
Check out conversion patterns in pattern layout. Here is a sample from my log4j config file: layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/ /layout You can define any layout you want using the PatternLayout.

Re[2]: multiple servlet instances?

2002-10-22 Thread Jacob Kjome
Hello Craig, Thanks for clearing up my partial disinformation :-) Jake Tuesday, October 22, 2002, 11:30:15 AM, you wrote: CRM On Tue, 22 Oct 2002, Jacob Kjome wrote: Date: Tue, 22 Oct 2002 08:32:18 -0500 From: Jacob Kjome [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED

Re: Tomcat/log4j Question

2002-10-22 Thread Jacob Kjome
Log4j requires its own logging universe in the default setup. The easiest way to do this in a servlet container is to put the log4j jar in WEB-INF/lib of each web application you have. You can put a log4j.properties or a log4j.xml in WEB-INF/classes for default configuration initialization.

Re: multiple servlet instances?

2002-10-24 Thread Jacob Kjome
See comments below At 10:59 AM 10/24/2002 +0400, you wrote: Craig R. McClanahan wrote: A have to implement some functionality that related to multiple instances. I need a servlet which accepts common http requests from client-side applets. When a next request arrives, servlet must register

Re: New context in server.xml prevents war unpacking (TC 4.1.12)

2002-10-24 Thread Jacob Kjome
Unfortunately, this is expected behavior. There is a bug about it at http://nagoya.apache.org/bugzilla/ if you want to search for it. The docs mention this as the expected behavior, but don't give a reason why it should be that way. Basically, if you name a Context element, you will

Re: error while trying net start tomcat

2002-10-28 Thread Jacob Kjome
You should install Tomcat to a directory without spaces or use the Windows DOS compatible naming scheme of: C:\Progra~1\Apache~1\Tomcat which is short for: C:\Program Files\Apache Group\Tomcat Then use the instructions here to re-install your tomcat service:

Re: Web Services using Tomcat 4.1.11 and IBM wstk 3.2.2

2002-10-28 Thread Jacob Kjome
You set things up in the standard way you set up any servlet.HelloWorld is a servlet, right? From the URL you gave, you deployed your webapp under the context path /tests. Now you just need to make sure you have servlet and servlet-mapping entries for the HelloWorld servlet in your

DBCP speed of lookup -vs- stored reference to Datasource?

2002-10-28 Thread Jacob Kjome
I'm wondering what kind of performance penalty there is, if any, when doing a full lookup of the Datasource object each and every time through JNDI calls? Basically, does it make sense to do one lookup and store a local copy for future use? The one problem I see with doing that is that if

Re[2]: DBCP speed of lookup -vs- stored reference to Datasource?

2002-10-28 Thread Jacob Kjome
Hello Craig, seem comments inline below Monday, October 28, 2002, 12:14:05 PM, you wrote: CRM On Mon, 28 Oct 2002, Jacob Kjome wrote: Date: Mon, 28 Oct 2002 08:08:09 -0600 From: Jacob Kjome [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL

Re[2]: DBCP speed of lookup -vs- stored reference to Datasource?

2002-10-28 Thread Jacob Kjome
Hi Craig, See comments inline below... At 11:23 AM 10/28/2002 -0800, Craig R. McClanahan wrote: On Mon, 28 Oct 2002, Jacob Kjome wrote: Date: Mon, 28 Oct 2002 13:04:18 -0600 From: Jacob Kjome [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], Jacob Kjome [EMAIL

Re: Ant Deploy Task

2002-10-29 Thread Jacob Kjome
Yep, target name=deploy depends=compile,manager.init description=Deploy web-app war deploy url=${manager.url} username=${manager.username} password=${manager.password} config=${app.ccf} path=${app.path} / /target

Re[4]: DBCP speed of lookup -vs- stored reference to Datasource?

2002-10-29 Thread Jacob Kjome
) -Original Message- From: Jacob Kjome [mailto:hoju;visi.com] Sent: Tuesday, October 29, 2002 5:12 AM To: Tomcat Users List Cc: Craig R. McClanahan Subject: Re[2]: DBCP speed of lookup -vs- stored reference to Datasource? I was just making an attempt to avoid the Double-Checked Locking

Re[5]: DBCP speed of lookup -vs- stored reference to Datasource?

2002-10-29 Thread Jacob Kjome
slower RE before JDK 1.4) -Original Message- From: Jacob Kjome [mailto:hoju;visi.com] Sent: Tuesday, October 29, 2002 5:12 AM To: Tomcat Users List Cc: Craig R. McClanahan Subject: Re[2]: DBCP speed of lookup -vs- stored reference to Datasource? I was just making an attempt

Re: Removing Response Headers

2002-10-29 Thread Jacob Kjome
You can probably use a filter + a ResponseWrapper to modify the original content. Jake At 10:39 PM 10/29/2002 -0500, you wrote: Hi, I'm trying to find a way to remove response headers from the default set of response headers that Tomcat sends back to the browser with each request. From my

RE: DBCP Woes! Ahaa!

2002-10-29 Thread Jacob Kjome
You should be able to set it up in a DefaultContext ... element or you can use GlobalNamingResources ... and then in your context use a ResourceLink. The Tomcat docs for 4.1 talk all about this. Jake At 06:48 PM 10/29/2002 -0800, you wrote: AHAAA! I figured it out ... well ... sort of. My

RE: Session start

2002-10-30 Thread Jacob Kjome
only under certain circumstances. If the browser was opened via a ctrl+n or via a javascript:window.open() or a target=_blank then the session will definitely be the same as the parent window. If you re-double-click the icon on the desktop to open IE then you start the browser in a new

Re: Problems with HTML Manager?

2002-10-31 Thread Jacob Kjome
If you are usign a recent version of Tomcat like Tomcat-4.1.12, just go to the following URL: http://localhost:8080/manager/html Jake At 12:34 PM 10/31/2002 +, you wrote: Anyone got the HTML interface to the Manager app to work? I cannot work out what to put where! The Manager-HOWTO

Re: [Win32] Tomcat 5.0 -- JavaSDK problem

2002-11-01 Thread Jacob Kjome
This is a known bug. Search for it at http://nagoya.apache.org/bugzilla/ The issue is Digester's compatibility with the latest Xerces version. Try using the previous version of Xerces and the issue will likely go away. Jake At 03:11 PM 11/1/2002 +0100, you wrote: Ralph Einfeldt wrote: Can

Re: The disappearing classpath

2002-11-01 Thread Jacob Kjome
Hello Eric, What you are probably seeing is an issue where the library in shared/lib or common/lib requires access to a library you have in WEB-INF/lib. This will not work. It does work the other way around, though. Basically, in WEB-INF/lib, you can reference libraries in parent classloaders,

Re: client vs server

2002-11-01 Thread Jacob Kjome
You mean to run Tomcat? put -server in the CATALINA_OPTS environment variable. -server will tell the java command to use the virtual machine optimized for non-gui applications which is exactly what you want for running Tomcat. If you don't supply -server, then you will be using the client VM

Re: Can't solve SAXParseException: The string -- is not permitted within comments

2002-11-04 Thread Jacob Kjome
Yep, known issue. Try using the previous version of Xerces-2.x.x. The newest one doesn't seem to play well with Digester. Jake At 02:36 PM 11/4/2002 +0100, you wrote: Hi, I'm trying to connect Tomcat-4.1.12 with Apache 2.0.43 (mod_jk), my JDK is 1.3.1_02 (latest stable version on my

Re: Can't solve SAXParseException: The string -- is not permitted within comments

2002-11-05 Thread Jacob Kjome
Hi Nix, The best I can do is point you to the following: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13241 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13282 Jake At 07:06 AM 11/5/2002 +0100, you wrote: Jacob Kjome wrote: Yep, known issue. Try using the previous version

RE: digest authentication or auth-methodDIGEST/auth-method

2002-11-05 Thread Jacob Kjome
Am I missing something? If you use BASIC auth, wouldn't your password now be completely plain textor are you sending your MD5 hashed password instead of password. I guess if that is the case then your password would be safe, but who can remember a password such as

Re: filter doesn't work at Tomcat4.1.12!?

2002-11-11 Thread Jacob Kjome
Hi Johnny, Based on the limited info you provided, I can't point to your exact problem, but there are a few general things to check to make sure you have configured properly. Make sure that you have your filter defined and provide a mapping for it such as this: filter filter-nameMy

Re: WAR fails to auto expand ?

2002-11-11 Thread Jacob Kjome
You probably have the context defined in server.xml, right? If so, you have to expand the directory yourself before Tomcat starts. The auto-deploy will only work if you *don't* have a Context defined with a docBase attribute that matches the name of the .war file (minus .war). For

Re: Tomcat 4.x as NT service

2002-11-12 Thread Jacob Kjome
Hello Richard, See http://www.mattkelli.com/tech/tomcat/ntservice.htm Jake Tuesday, November 12, 2002, 9:53:01 AM, you wrote: RH Hi RH Is it possible to set up jakarta-tomcat-4.0.5 as a windows service? RH There is documentation detailing how to do this for Tomcat 3.x, but not RH it seems for

Re: Problem with xsl transformation in tomcat 3.3.1 and tomcat 4.0.* on Linux

2002-11-12 Thread Jacob Kjome
Hello Chris, Try putting xalan-2.4.0.jar in JAVA_HOME/jre/lib/endorsed. Make sure you stop all java processes before doing this. Then restart Tomcat. Jake Tuesday, November 12, 2002, 10:43:29 AM, you wrote: CH I've got a strange problem with tomcat transforming an xml document with CH xsl

Re: Cannot create Oracle driver not matter what I do!

2002-11-12 Thread Jacob Kjome
The oracle driver works just dandy for me. I renamed classes12.zip to classes12.jar and put it in common/lib. Make absolutely sure that you don't include the oracle driver in your WEB-INF/lib. You will just confuse the classloaders. Put it in common/lib and that is it, end of story. Then

Re: Cannot create Oracle driver not matter what I do!

2002-11-13 Thread Jacob Kjome
. -- |-+ | || | | Jacob Kjome| | | [EMAIL PROTECTED]| | || | | 13-11-2002 | | | 06:30 | | | Please respond | | | to Tomcat

Re: tomcat as a service

2002-11-13 Thread Jacob Kjome
Hello Chris, See http://www.mattkelli.com/tech/tomcat/ntservice.htm Also, you really should search the list. I have posted messages like this in response to NT Service questions like this at least 15 times. The answers are there in the archives. Look there before you post.

Re[2]: Cannot create Oracle driver not matter what I do!

2002-11-13 Thread Jacob Kjome
' errors. Can you tell me where exactly you put this code? TM Thanks, TM Tom TM Jacob Kjome wrote: The oracle driver works just dandy for me. I renamed classes12.zip to classes12.jar and put it in common/lib. Make absolutely sure that you don't include the oracle driver in your WEB-INF/lib

Re: [CONFIG] Apache2.0.40 + Tomcat4.1.12 + mod_jk

2002-11-14 Thread Jacob Kjome
Hello Jaimes, I use Windows rather than Unix, but I think the same issue still applies. When the ApacheConfig writes out my automatic file it writes the mod_jk.dll include like this: IfModule !mod_jk.c LoadModule jk_module c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll /IfModule I always

Re: ManagedBean is not found with Ajp13Connector

2002-11-14 Thread Jacob Kjome
Hello M., The Ajp13Connector doesn't support MBeans. You need to set up your AJP configuration with the CoyoteConnector instead. Or, just comment out the MBeans that are causing the exception. See Tomcat-4.1.12's default server.xml for reference. Jake Thursday, November 14, 2002, 2:12:41 PM,

Re: build file for ant

2002-11-15 Thread Jacob Kjome
That would be ignoring the fact that there exists an Application Developer's Guide in the Tomcat documentation. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html Jake At 05:22 PM 11/15/2002 +0800, you wrote: That would be a question for the ant group. But I've attached a

Re: JDBC Policy connection problem

2002-11-15 Thread Jacob Kjome
Can you connect to your MySQL server via a basic application started with the java command rather than trying to do it within the container? You should do this to make sure it works first. Jake At 12:21 AM 11/15/2002 -0800, you wrote: I am having some issues with trying to use my JDBC driver

Re: Using Tomcat 4.1.12 with Jikes

2002-11-15 Thread Jacob Kjome
First, if you are running Tomcat under Windows you can quit thinking about using Jikes right now because of a number of bugs (search the list). If you are running under Linux, keep reading. First, install Jikes and put it in the path for you shell. Also put tools.jar, rt.jar and dt.jar in

Re: newbie question creating and serving a context

2002-11-17 Thread Jacob Kjome
I you are serving out of Tomcat's webapps directory, try changing docBase to docBase=jsp_public instead of the full path from the root of the filesystem. Jake At 02:02 AM 11/18/2002 +, you wrote: Hi, I'm having a really frustrating problem just creating a simple context using Tomcat 4

RE: how many tomcat in a machine?

2002-11-17 Thread Jacob Kjome
Also if you had one Tomcat Instances and 3 apps would they all share the one instance of Log4j and its static methods or would there be three instances of Log4j?? If you put Log4j in one of the parent classloaders that Tomcat makes available to webapps ( shared/lib, common/lib ) then

Re: Tomcat as NT Service

2002-11-18 Thread Jacob Kjome
See http://www.mattkelli.com/tech/tomcat/ntservice.htm Please search for this kind of stuff on the list, though. I've answered this question dozens of times. Jake At 11:20 AM 11/18/2002 +, you wrote: Hello, When I install tomcat 4.1.12 in my w2k system, I didn't choose to install as

Re[2]: [CONFIG] Apache2.0.40 + Tomcat4.1.12 + mod_jk - STILL HAVING PROBLEMS

2002-11-18 Thread Jacob Kjome
Hello Jaimes, Change the following line: LoadModule jk_module /usr/local/apache2/modules/mod_jk.so to: LoadModule jk_module modules/mod_jk.so Now just include the mod_jk.conf file in your httpd.conf file. BTW, when using the listeners to auto-generate the mod_jk.conf file, I've noticed that

Re: update text file under WEB-INF

2002-11-18 Thread Jacob Kjome
Well, you can access it in a portable way but note that you cannot count of File IO in servlets. If the webapp is served from a .war file then File IO will be impossible. Not sure if you can updated it in other ways. I suppose there are ways. Here is how you load it: InputStream

Re[2]: XML parser

2002-11-20 Thread Jacob Kjome
Hello Charlie, There is actually more to it. Putting XML or DOM libraries in WEB-INF/lib violates the Sun classloading spec which Tomcat has been enforcing since the 4.0.2 release. Now, don't ask me why the Sun classloading spec says what it says. Just know that you are prohibited from putting

Re[4]: XML parser

2002-11-20 Thread Jacob Kjome
of the light edition. CV Regards, CV Cédric CV - Original Message - CV From: Jacob Kjome [EMAIL PROTECTED] CV To: Tomcat Users List [EMAIL PROTECTED] CV Sent: Wednesday, November 20, 2002 5:25 PM CV Subject: Re[2]: XML parser Hello Charlie, There is actually more to it. Putting XML or DOM

Re: problem in compilation in Tomcat 4.0

2002-11-20 Thread Jacob Kjome
Did you install the JRE or JDK? You *have* to have the JDK installed and set JAVA_HOME to where the JDK is installed. Also, at least on Windows, you should put JAVA_HOME/bin at the beginning of your PATH variable to avoid having Microsoft's VM fire up instead of Sun's. Jake At 11:54 AM

Re: problem in compilation in Tomcat 4.0

2002-11-20 Thread Jacob Kjome
- Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 12:42 PM Subject: Re: problem in compilation in Tomcat 4.0 Did you install the JRE or JDK? You *have* to have the JDK installed and set JAVA_HOME to where

Note: recent Xerces and Tomcat compatibility issues fixed....

2002-11-22 Thread Jacob Kjome
Just thought I'd mention that the Xerces bug that has been plaguing Tomcat users for a while has been fixed. Maybe the Tomcat developer want to hold off on Tomcat-4.1.15 and release Tomcat-4.1.16 with a bug-fixed Xerces? See the following for details:

RE: Tomcat Windows installer reports wrong JAVA_HOME variable

2002-11-22 Thread Jacob Kjome
If you environment variable is HOME_JAVA, then it makes complete sense that Tomcat is reporting that the java environment isn't set up correctly. It is supposed to be JAVA_HOME and should point to the based directory of your java install such as: c:\j2sdk1.4.1_01 Jake At 12:37 AM

Re: Tomcat NT Service Runtime.exec()

2002-11-24 Thread Jacob Kjome
For each NT service, there is an option called Allow service to interact with desktop under Properties / Log On. Check that option and what you ask for should work just fine. Jake At 09:03 PM 11/22/2002 -0800, you wrote: Hi, Through much trial and error, I finally determined that using

Re[2]: Admin Webapp Problems (WAS: MBean server?)

2002-11-26 Thread Jacob Kjome
Hi Shawn, I'd recommend installing the full non-RPM version that includes all necessary jars. In that version, you will see the following files in common/endorsed: xercesImpl.jar xmlParserAPIs.jar What Bill says it correct, though. The Xerces version that come with Tomcat causes problems with

Re[2]: WAR files not expanding.

2002-11-26 Thread Jacob Kjome
Hello David, If you define a Context ... for a particular app where the path matches the name of the .war file, the .war will not be unpacked by Tomcat under any circumstances. I imagine you have something like this in server.xml or in a context configuration file: Context docBase=myapp

Re: Response.ContentType - not always setting contentType in Header

2002-11-26 Thread Jacob Kjome
Hello neal, I've notice that in a filter I have that the content length is sometimes zero. This never happens the first time a browser requests a particular page but will happen each time after that if the user hits reload. The browser just seems to reload from its own cache. The browser sends

Re: Apache + tomcat - request.getRemoteUser() = null?

2002-11-27 Thread Jacob Kjome
mod_webapp configuration so I can't help you much there. Jake At 09:31 AM 11/27/2002 -0500, you wrote: Oh yes, I left out relevent information... using the modwebapp (warp) connector. Don't know if that changes anything... Mike - Original Message - From: Jacob Kjome [EMAIL PROTECTED

Re: JNDI Datasource question

2002-12-01 Thread Jacob Kjome
Hi Ron, That is referring to a context configuration file. You *always* need to set up your DataSources through the proprietary server configuration. The stuff in the web.xml only defines the interface. For instance, if you set up DBCP specific stuff in the web.xml file, your app would be

Re: HELP!! Tomcat crashes on me!

2002-12-01 Thread Jacob Kjome
Steve, again, you need to provide more info with your questions if you expect help from people. Tomcat is crashing on me with no more info is totally useless. What are the symptoms? What stacktraces do you see? Any info in the log files? Jake At 01:42 PM 12/1/2002 -0800, you wrote:

Re: Bezerk - tomcat calls JSP twice ?

2002-12-01 Thread Jacob Kjome
At 03:53 AM 12/2/2002 +, you wrote: If a Filter makes a call to a page using for example RequestDispatcher.forward(/Products/index.jsp), will that request dispatcher bypass any filters, or will it still be subject to all filter rules ? The filters will be bypassed. Quoting Craig R.

Re: HELP!! Tomcat crashes on me!

2002-12-01 Thread Jacob Kjome
Steve, I assume you are just double clicking on one of the Tomcat .bat files to run Tomcat. Instead, open up a command prompt, cd to the directory where the .bat files are and type the name of the .bat file you want to run. Now you will see the error output. Jake At 11:01 PM 12/1/2002

Re: Can I use Type4 Driver in Tomcat 4.1.12

2002-12-01 Thread Jacob Kjome
A Type4 driver is all you should use. If you use the driver directly (if you don't use the Jakarta commons DBCP JNDI connection pooling) you can put the driver jar file in WEB-INF/lib or shared/lib or common/lib. If you use commons DBCP, then you *must* put the driver jar file in common/lib

Re[2]: Tomcat 4.0.3 getResourceAsStream

2002-12-02 Thread Jacob Kjome
Hello Esteban, It won't work with p.getClass... unless the resource you are trying to load is in the classpath...meaning it must be within WEB-INF/classes or WEB-INF/lib/somejar.jar and you wouldn't reference WEB-INF. The classloader knows absolutely nothing about it. If your resoruce was in

Re[2]: Help with auto-generating Apache config files for mod_jk

2002-12-02 Thread Jacob Kjome
Hello Wendy, The CoyoteConnector still supports the jk connector in addition to its support for jk2. You can still use your listeners to create the mod_jk.conf auto-generated files for jk. Jake Monday, December 02, 2002, 4:00:33 PM, you wrote: WS John wrote: You need two Listener tags,

Re: jk2 in process w/ Apache 2.0.43 and DOMParser problem - Can't find child

2002-12-02 Thread Jacob Kjome
Hello David, Make sure the browser isn't doing a head request, in which case the request is 0 bytes since the browser is just checking whether it can just re-show the document stored in cache or whether it needs to re-grab the document from the server. Jake Monday, December 02, 2002, 4:22:52

Re: Filters don't affect request dispatcher forward

2002-12-03 Thread Jacob Kjome
At 11:50 PM 12/2/2002 -0800, you wrote: You can use a security constraint with a transport-guarantee element to require that certain accesses be performed only on SSL connections. Then, the container will do the necessary redirect for you. Urm, on my reading of the 2.3 spec, this would be a

Re: DataSource config problem :(

2002-12-03 Thread Jacob Kjome
parameternameUser/namevaluesa/value/parameter should be parameternameusername/namevaluesa/value/parameter Also, I'm not sure if the names are case sensitive. I suggest using All lower case just to be sure. Jake At 05:23 AM 12/3/2002 -0800, you wrote: Hi i spent 7 hours trying to figure

Re: DataSource config problem :(

2002-12-03 Thread Jacob Kjome
specific to dbcp .BasicDataSourceFactory ? I am using SQLServerDataSource and according the docs they specify a param called User whose value should be a user name. Jacob Kjome wrote: parameternameUser/namevaluesa/value/parameter should be parameternameusername/namevaluesa/value

Re: tomcat + eclipse

2002-12-04 Thread Jacob Kjome
http://www.sysdeo.com/eclipse/tomcatPlugin.html Jake At 12:27 PM 12/4/2002 +0200, you wrote: Hi I'm using Eclipse as my IDE is there a way to integrate Tomcat with Eclipse? thanx

Re: Problem going from 4.0.6 to 4.1.16b

2002-12-04 Thread Jacob Kjome
Remove all XML/DOM libraries from WEB-INF/lib. They belong in a parent classloader. This includes xalan.jar, xercesImpl.jar, and xmlParserAPIs.jar. It violates the Sun classloading spec to load the XML parser and W3C DOM libraries from a child classloader. They belong in common/endorsed

Re: Tomcat as Win2k service vs ModJk

2002-12-04 Thread Jacob Kjome
See: http://www.mattkelli.com/tech/tomcat/ntservice.htm And mod_webapp is deprecated and not being developed anymore. The recommendation is to use mod_jk or mod_jk2 Jake At 08:31 AM 12/4/2002 -0500, you wrote: I recently installed Tomcat 4.1.16 behind Apache HTTPD 2.0.42 using mod_jk to

Re[2]: WebApp Classpath

2002-12-04 Thread Jacob Kjome
Hello Yoav, I see a problem with the documentation. It says: quote xerces.jar - The XML parser that is visible by default to Tomcat internal classes and to web applications. This can be overridden, for a particular web application, by including your desired parser in /WEB-INF/lib. /quote That

Re[2]: exception loading sessions from persistent storage?

2002-12-04 Thread Jacob Kjome
Hello Paul, That's not quite true. You can put a context configuration file in the META-INF of the .war file and Tomcat will pick that up as the context configuration file upon ant ant manager task deploy. quote For the deploy command, simply include your context confgiuration file in the WAR

RE: Loading Properties Files

2002-12-04 Thread Jacob Kjome
No, that's not true at all. The examples already given will find properties files for you just fine whether the file is in a directory structure or inside an archive. How do you think Java loads classes? It works out of archives, no? here are some various was to access a properties file (

RE: Re[2]: WebApp Classpath

2002-12-05 Thread Jacob Kjome
Done: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15115 Jake At 09:52 AM 12/5/2002 -0500, you wrote: open an enhancement in bugzilla for this update to ensure that is doesn't get lost. I'm sure its just a carryover from the 4.0 release. Charlie -Original Message- From: Jacob

Re: Hot (re-)deployment with .war files

2002-12-05 Thread Jacob Kjome
Tomcat probably has a memory of the first time it deployed the app. It is as if you had written a Context ... for that app in server.xml. It is already known behavior that Tomcat won't expand your app to a new directory if you defined a Context in server.xml and you put a .war file

Re: How to connect to a Data-File above the WEB-INF-Folder from a servlet????

2002-12-05 Thread Jacob Kjome
See this discussion: http://marc.theaimsgroup.com/?l=tomcat-userm=103904964313189w=2 Jake At 07:33 AM 12/5/2002 -0800, you wrote: You can place your data file under WEB-INF/lib as a jar file, or as far as i know, anything under WEB-INF cannot be accessed by direct client request. So you

Re: Tomcat 4 class loader precedence order?

2002-12-06 Thread Jacob Kjome
Hello Will, The way webapps work with classloaders is opposite that of the normal classloader precedence. The WebappClassloader looks in its own classloader for libraries first before looking at parent classloaders. What normally happens is that the parent classloader is queried first for

RE: DataSource problem.

2002-12-07 Thread Jacob Kjome
What does your configuration look like? Have you read the docs? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Jake At 01:21 PM 12/7/2002 +0530, you wrote: *deep breath. I'm lost about this... would anyone take a shot at helping me? Thanks Manav.

RE: Tomcat 4.1, DBCP and Oracle

2002-12-07 Thread Jacob Kjome
1. Rename classes12.zip to classes12.jar. You don't have to repackage the classes, simply rename the file. 2. Put classes12.jar in CATALINA_HOME/common/lib. That is the *only* place it can go because both the server and the application require access to it. Libraries under the common

Re: getRealPath is null

2002-12-07 Thread Jacob Kjome
Yep, because JBoss serves the app directly from a .war file rather than expanding the directory as is the default behavior of the Tomcat standalone. Remember one thing about webapps. You can *never* assume that you have access to the filesystem except to the servlet spec defined tmp directory

Re: Tomcat 4.0.4 and DataSource problem

2002-12-08 Thread Jacob Kjome
I believe the 4.0.x versions of Tomcat used Tyrex to implement the JNDI DataSource functionality. I have no experience with that. However, if you move to using Tomcat-4.1.12, I can assure you that things will work for you as long as you change user to username. Jake At 12:59 PM 12/7/2002

RE: Tomcat 4.1, DBCP and Oracle

2002-12-08 Thread Jacob Kjome
greatly appreciated. ~ Troy Campano ~ -Original Message- From: Jacob Kjome To: Tomcat Users List Sent: 12/7/02 2:57 PM Subject: RE: Tomcat 4.1, DBCP and Oracle 1. Rename classes12.zip to classes12.jar. You don't have to repackage the classes, simply rename the file. 2. Put classes12.jar

Re: TC 4.1.16 : java.lang.ClassNotFoundException: compressionFilters.CompressionFilter

2002-12-08 Thread Jacob Kjome
So, install from the .zip file to see if that makes a difference. jake At 02:04 PM 12/8/2002 +0100, you wrote: I had installed not from the zip file, but from the tar.gz file ! Dom - Original Message - From: Dom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 08, 2002

Re: remote logging

2002-12-08 Thread Jacob Kjome
Log4j provides everything you need for remote or any sort of logging you want. http://jakarta.apache/org/log4j/ Jake At 11:23 AM 12/8/2002 -0500, you wrote: At 12/8/2002 03:56 PM, you wrote: Hello, I just got around to using logging. Although *really* simple to use, it would be even better

Re[2]: TC 4.1.3: JK2 connector dies? cant get isapi_redirector to t alkto tomcat

2002-06-27 Thread Jacob Kjome
Hello Ignacio, I don't think yours statement that jk2.properties is on port 8019 by default. If you comment all the stuff out in jk2.properties, Tomcat just generates a jk2.properties.save which has the following for me: #AUTOMATICALLY GENERATED #Tue Jun 25 11:09:03 CDT 2002 maxThreads=75

Re: Tomcat Classpath

2002-06-28 Thread Jacob Kjome
Hi Jack, Tomcat ignores your classpath. Believe me, this solves a *ton* of problems. If you want to use the classpath, go back to using Tomcat 2.x.x. I wouldn't give it the time of day now that 3.3.x and 4.x.x are out. Seriously, do yourself a favor and just copy the jar into

Re: Need help with Tomcat on Apache on Windows 2000

2002-06-29 Thread Jacob Kjome
You can grab the binary for mod_jk for Apache 2.0.39 from here: http://www.acg-gmbh.de/mod_jk/ just grab mod_jk.dll, put it in your Apache2/modules directory, configure everything else like it says on the flashguides page, and you should be up and running. Jake At 01:24 PM 6/29/2002 +,

Re: Need help with Tomcat on Apache on Windows 2000

2002-06-29 Thread Jacob Kjome
how do I enter this? Maybe Im putting it in wrong.. where do I put this?. and do I just copy and paste it? Include c:/apps/jakarta-tomcat-4.0.3/conf/auto/mod_jk.conf can you have a look pls From: Jacob Kjome [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List

Re: [Offtopic] Setting the directory where IO occurs in a servlet?

2002-06-30 Thread Jacob Kjome
first of all, if WEB-INF/files is where you *always* want to write stuff, why not do something more portable like this: servlet servlet-nameparts/servlet-name servlet-classPartsDepotServlet/servlet-class init-param param-namephysicalFilePath/param-name

Re: apache2.0.39 + tomcat4.1.x + mod_jk2.so

2002-06-30 Thread Jacob Kjome
That error happens when you define the following for JMX beans support: in server.xml. Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ and you

Re: commons-dbcp support in Tomcat 4.1?

2002-07-01 Thread Jacob Kjome
Hello rory, Yes, Follow the instructions in the following archived message and you will be up and running: http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 I also wrote a snippet of code here: http://marc.theaimsgroup.com/?l=tomcat-userm=102230398708809w=2 Jake Monday, July

Re[2]: apache2.0.39 + tomcat4.1.x + mod_jk2.so

2002-07-01 Thread Jacob Kjome
Hello Luminous, Works fine for me using Tomcat-4.1.6, Apache-2.0.39, and j2sdk1.4.0_01 on Win2k. Jake Monday, July 01, 2002, 2:28:22 PM, you wrote: LH I am using new directory for each version of tomcat. LH But the problem, that I noticed is that tomcat4.1.x LH does not like JDK1.4. Is it

Tomcat-4.1.6 and DBCP issue?

2002-07-01 Thread Jacob Kjome
Hi, I'm just checking to confirm whether others that used DBCP connection pooling successfully in Tomcat-4.1.3 are running into problems when using Tomcat-4.1.6? That is the case for me. I'll check again tomorrow to see if I did anything stupid, but the only difference seems to be the

Re[2]: Tomcat-4.1.6 and DBCP issue?

2002-07-02 Thread Jacob Kjome
Hello Remy, Cool, that did it! Just by replacing the 4.1.6 version of commons-dbcp.jar with the 4.1.3 version made everything work again. I guess this definitely means a regression was introduced into commons-dbcp in 4.1.6. Jake Tuesday, July 02, 2002, 2:09:40 AM, you wrote: RM Jacob Kjome

Re: Connection Pooling

2002-07-02 Thread Jacob Kjome
Hello Kevin, See this: http://marc.theaimsgroup.com/?l=tomcat-userm=102348915728231w=2 and this: http://marc.theaimsgroup.com/?l=tomcat-userm=102383138524775w=2 also this: http://marc.theaimsgroup.com/?l=tomcat-userm=101631189730747w=2 They might be what you are looking for. Jake

  1   2   3   4   5   6   7   8   9   10   >