Re: Windows Service

2003-01-10 Thread Jacob Kjome
Hello Jeffrey, See: http://www.mattkelli.com/tech/tomcat/ntservice.htm Jake Friday, January 10, 2003, 11:32:47 AM, you wrote: JW> Sorry about this question that has apparently been asked and answered JW> innumerable times, but: JW> I'd like to run Tomcat as a Windows 2000 service. Searching,

Re: Why is NodeIterator class not found?

2003-01-10 Thread Jacob Kjome
Hello avitabile, Make sure you have xmlParserAPIs.jar. That is where it exists. Of course, along with this, you will need the XercesImpl.jar. Those should go in CATALINA_HOME/common/endorsed. They could also be put in common/lib or shared/lib, but if you are using j2sdk1.4.x and want to overr

RE: HTTPS to HTTP

2003-01-09 Thread Jacob Kjome
It is my understanding that if Tomcat allowed you use the same session and the session was created under https for a particular user, then once it gets to http the session id is now in clear text. This is what, I believe, Craig is talking about when he says that using SSL in this manner only

RE: GZIP filter problem....

2003-01-07 Thread Jacob Kjome
pressed.size()+" bytes"); } } else { out.write(origBytes); if (logger.isDebugEnabled()) { logger.debug("Bypassed GZIP filtering..."); logger.debug("Orig data size: "+origBytes.length+" bytes");

RE: GZIP filter problem....

2003-01-07 Thread Jacob Kjome
ing or not(i.e. > try getWriter() immediately after getOutputStream() and it will throw an > error) > > Charlie > > > -Original Message- > > From: Jacob Kjome [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 07, 2003 9:19 AM > > To: Tomcat Users List >

RE: GZIP filter problem....

2003-01-07 Thread Jacob Kjome
ionFilter.java that is part of the examples distributed with Tomcat? Charlie > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 8:22 PM > To: Tomcat Users List > Subject: GZIP filter problem > > > > I'm try

GZIP filter problem....

2003-01-06 Thread Jacob Kjome
I'm trying to use a GZIP servlet filter under Tomcat-4.1.18. I am basing this filter on an existing example at Orion ( http://www.orionserver.com/tutorials/filters/5.html ) It GZIPs fine and, in my debugging, I can decompress the data back to what it was originally (more on that below). The pr

Re[2]: Relative paths in servlets?

2003-01-06 Thread Jacob Kjome
Hello Øyvind, I'm not aggravated, I was just pointing out the misconception. Jake Monday, January 06, 2003, 9:30:26 AM, you wrote: ØH> On Mon, 2003-01-06 at 16:31, Jacob Kjome wrote: >> Assuming the .war file is in CATALINA_HOME/webapps >> >> >> Make sure t

RE: java.lang.OutOfMemoryError

2003-01-06 Thread Jacob Kjome
The latest Sun javac compiler has, supposedly, fixed the memory leak. Grab j2sdk1.4.1_01. Unfortunately, for those on Windows, jikes cannot be used to compile jsp's because it doesn't support some encoding options on Windows, only Unix/Linux. Jake At 02:58 PM 1/6/2003 +, you wrote: There

Re: Relative paths in servlets?

2003-01-06 Thread Jacob Kjome
ake At 03:23 PM 1/6/2003 +0100, you wrote: On Mon, 2003-01-06 at 15:22, Jacob Kjome wrote: > Check is that is null before using it as it *will* be null if you serve > your app directly from a .war file rather than from a directory on the file > system. Odd, I do serve mine from a .war fil

Re: reloading webapp from build.xml

2003-01-06 Thread Jacob Kjome
See the example at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/ http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/ It provides examples using the Tomcat Ant manager tasks which is exactly what you need. Jake At 08:04 AM 1/6/2003 -0500, you wrote: Hi, I have an ant scr

Re: Relative paths in servlets?

2003-01-06 Thread Jacob Kjome
/bar is your servlet mapping which has nothing to do with a real path on your system. You want to get the real path from the base of the context: String contextPath = getServletContext.getRealPath("/"); Check is that is null before using it as it *will* be null if you serve your app directly

RE: Loading XML Files - Best Pracitices

2003-01-05 Thread Jacob Kjome
h the ability to prune on read. www.dom4j.org -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Sat 1/4/2003 1:58 PM To: Tomcat Users List Cc: Subject: Re: Loading XML Files - Best Pracitices No, I don

Re: Loading XML Files - Best Pracitices

2003-01-05 Thread Jacob Kjome
day, January 4, 2003, at 08:08 PM, Hookom, Jacob John wrote: I recommend Dom4j, it offers the best overall performance out of the XML libs and it works really well for large files with the ability to prune on read. www.dom4j.org -Original Message- From: Jacob Kjome [mai

Re: Loading XML Files - Best Pracitices

2003-01-04 Thread Jacob Kjome
ndicate that I'm not marrying myself to an obscure API. Do any of you have reservations about JDOM? Thanks, -FB On Saturday, January 4, 2003, at 08:02 AM, Jacob Kjome wrote: Well, There are a number of parsers available. You can use DOM, JDOM, DOM4J, SAX, or, actually, you might want to

Re: Loading XML Files - Best Pracitices

2003-01-04 Thread Jacob Kjome
Well, There are a number of parsers available. You can use DOM, JDOM, DOM4J, SAX, or, actually, you might want to try out XPath using Jaxen. Here is an example of reading in a document using DOMand no specific external package so you don't marry yourself to a particular implementation...

Re: Why a JNDI URL from getServletConfig().getResource() in Tomcat

2003-01-03 Thread Jacob Kjome
Using getServletContext().getResourceAsStream("/WEB-INF/test.xml") should work just fine. I don't see any reason why the inputstream would be empty. I use this technique all the time. Jake At 12:33 PM 1/3/2003 -0800, you wrote: I'm trying to read in a configuration file I have stored in my /

Re: servlet path

2003-01-03 Thread Jacob Kjome
Look into element in the web.xml. If you are not already familiar with this, you really need a good book like Java Servlet Programming from Jason Hunter. This is pretty basic stuff. Jake At 03:06 PM 1/3/2003 -0500, you wrote: for some reason i remember seeing somewhere that i can painless

Re: web.xml format

2003-01-03 Thread Jacob Kjome
Everything should be just fine with your current setup. Are you noticing problems with it? Jake At 01:23 PM 1/3/2003 -0500, you wrote: Just a simple question -- if I want to use an ampersand (or other character that is significant in XML), do I need to escape it with an entity in the web.xml

RE: Two instances of servlet gets created

2003-01-03 Thread Jacob Kjome
Charlie is right. In the response I gave to this thread, I was assuming your were talking about servlets in the same context. Sorry, didn't read carefully. Anyway, my comments still apply when talking about as single context. Jake At 12:03 PM 1/3/2003 -0500, you wrote: > -Original Me

Re: Two instances of servlet gets created

2003-01-03 Thread Jacob Kjome
New instances of any servlet will be created for as many times as the servlet is named differently. For instance, all these refer to the same servlet, but each will be a separate instance MyServletName com.mypackage.MyServlet MyServletName /mymapping h

Re: Parse error in application web.xml

2003-01-03 Thread Jacob Kjome
ck I started getting these exception when I started tomcat and therefore I did fresh installation of tomcat 4.1.18 and still I am getting the same exception. I am working with windows 2000 regards, Keshav - Original Message - From: "Jacob Kjome" <[EMAIL PROTECTED]> To: &

RE: Multiple Instances of Tomcat as a Service

2003-01-03 Thread Jacob Kjome
I think he means something like an NT service. Just follow the instructions here: http://www.mattkelli.com/tech/tomcat/ntservice.htm However, add on thing: Dcatalina.base=[your custom CATALINA_BASE path here] Also, make sure to name the service differently than one you may already have insta

Re: Tomcat 5 and CATALINA_BASE/shared/lib problem...

2003-01-02 Thread Jacob Kjome
Bug reported here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15774 Can someone please explain why the behavior is different and/or confirm that it is a real bug in Tomcat5? Thanks, Jake At 09:26 PM 1/2/2003 -0600, you wrote: Just a little follow-up to what I said below. I had surmis

Re: Parse error in application web.xml

2003-01-02 Thread Jacob Kjome
Tomcat-3.3.x and above completely ignore the system classpath as far as webapps are concerned. All jar files that you want your webapps to see will have to be in either the WEB-INF/lib of your webapp or in the designated library directories. The only exception to this are the Java runtime cl

Re: Tomcat 5 and CATALINA_BASE/shared/lib problem...

2003-01-02 Thread Jacob Kjome
Just a little follow-up to what I said below. I had surmised that maybe CATALINA_HOME/shared/lib libraries where simply getting loaded first and maybe CATALINA_BASE/shared/lib libraries that had the same packages wouldn't be loaded because they would only be loaded once by Tomcat. Well, this

Tomcat 5 and CATALINA_BASE/shared/lib problem...

2003-01-02 Thread Jacob Kjome
Hi all, Using Tomcat-4.1.x, I can have separate instances of Tomcat running which access their own shared/lib folder. In Tomcat-5.0 latest nightly build, that doesn't seem to be the case. For instance, using Tomcat-4.1.18, if I have some jars in CATALINA_HOME/shared/lib and I start up a new

Re[2]: tomcat as service

2002-12-30 Thread Jacob Kjome
Hello Becky, So, you haven't gotten it to work and, therefore, it doesn't? Hmmm..., don't be so quick with your conclusions. Works fine for me with j2sdk1.4.1_01 and Tomcat-4.1.18 on Win2k (sp3). http://www.mattkelli.com/tech/tomcat/ntservice.htm Jake Monday, December 30, 2002, 11:19:34 AM, yo

Re: tomcat as service

2002-12-26 Thread Jacob Kjome
Hello Herwig, Did you uninstall the service and then re-install it with the new JAVA_HOME path? You need to do this after you change any path in your configuration as it relates to the Tomcat NT service. http://www.mattkelli.com/tech/tomcat/ntservice.htm Jake Wednesday, December 25, 2002, 12:0

Re: log4j initialization: Tomcat, Struts Framework, or Application?

2002-12-25 Thread Jacob Kjome
Ug, the first line is confusing. I had two different trains of thought going there. It should read "why put the log4j configuration file in the classpath". Jake At 10:04 PM 12/25/2002 -0600, you wrote: Why put the log4j configuration file in the classpath if you are initializing it in an i

Re: log4j initialization: Tomcat, Struts Framework, or Application?

2002-12-25 Thread Jacob Kjome
Why put the log4j configuration file in the classpath if you are initializing it in an init servlet? Just put it alongside your web.xml file in WEB-INF. Only put it in WEB-INF/classes if you want log4j to perform default initializationand call it log4j.xml or log4j.properties otherwise d

Re[2]: a sure way to work with tomcat under windows NT/2000/XP

2002-12-23 Thread Jacob Kjome
Hello Jason, Monday, December 23, 2002, 12:44:02 PM, you wrote: JP> this list is designed to be 'fool proof'? not efficient. Huh? What are you saying herewhat is your point??? Jake -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Tags

2002-12-23 Thread Jacob Kjome
Hello Lindomar, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html Jake Monday, December 23, 2002, 8:08:10 AM, you wrote: L> I don't know if this question is off-topic...but... L> I'm looking for a simple example of tag in jsp, for example "hello World, today is ..." L> But i ca

RE: a sure way to work with tomcat under windows NT/2000/XP

2002-12-23 Thread Jacob Kjome
You should set up your variables under System instead of User because if you run Tomcat as a service, the User variables will not be read. Also, Tomcat doesn't care about the system classpath. J2EE_HOME is fine to set if you need that for something else. Tomcat doesn't need it. Also, TOMCA

Re: Servlet problem

2002-12-23 Thread Jacob Kjome
You can't do that directly. Set up an html file or a jsp file with a redirect to the servlet you want. I believe this will be possible in Servlet-2.4 (Tomcat 5), but not in Servlet-2.3 (Tomcat 4.x.x). Jake At 02:21 PM 12/23/2002 +0600, you wrote: Hi all Hi new to this group., but i want t

Re: Configuring mod_jk - Again!

2002-12-20 Thread Jacob Kjome
Hello Denise, Looking at your mod_jk.conf, it is pretty apparent why this isn't working for you. You have this: ServerName www.mydomainname.com ... ... ... I'm guessing that "www.mydomainname.com" was just a dummy site someone provided for you in an example. It was meant to

Re: URGENT.. org.apache.jasper.JasperException: Unable to compile class for JSP

2002-12-19 Thread Jacob Kjome
See http://www.mattkelli.com/tech/tomcat/ntservice.htm Jake At 09:59 PM 12/19/2002 -0800, you wrote: Thanks Holger, It did work when I changed the JVM. Now, I have Tomcat 4.1.12 and JDK1.3.1. I want to run Tomcat continuously on Win2k even wen I log off..Please guide me.. Thanks Runu __

RE: Dynamic DataSources

2002-12-19 Thread Jacob Kjome
But to create a new datasource through the code is not likely possible. > -----Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 19, 2002 3:44 PM > To: Tomcat Users List > Subject: Re: Dynamic DataSources > > > Hello Jay, > &g

Re: Dynamic DataSources

2002-12-19 Thread Jacob Kjome
Hello Jay, Theoretically, yes...through the Tomcat Admin application. You are using DBCP datasources, right? Jake Thursday, December 19, 2002, 4:47:48 PM, you wrote: JW> I see in the documentation for Tomcat that all DataSources are defined in JW> server.xml, then made accessible to webapps t

Re: Should not be this hard

2002-12-19 Thread Jacob Kjome
Hello Randy, Uncomment the invoker servlet in Tomcat's conf/web.xml You should not be depending on the invoker servlet on production servers. It is a security risk. jake Thursday, December 19, 2002, 9:50:34 AM, you wrote: RP> Hello, me again RP> This should have been so easy (famous last wor

Re: Connection Pooling - additions to server.xml crashes 4.1.12

2002-12-17 Thread Jacob Kjome
If you name a context in server.xml, your .war file will *not* be expanded automatically. What you will need to do is stop Tomcat, manually expand the .war file to a directory named "shilton" and then restart. alternatively, you can avoid editing the server.xml and put this in a context conf

RE: javac Memory Leak: STATUS request

2002-12-16 Thread Jacob Kjome
It looks like you don't have issues with upgrades since you are now using the latest tomcat version which isn't even an official release. So, you probably won't have any issues upgrading the JDK. As I understand it, as of 1.4.1, the javac memory leaking issues are fixed as well as some major

Re[2]: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Jacob Kjome
new URL("file://D:/apache/tomcat331/lib/container/jasper.jar"), KH> new URL("file://D:/apache/tomcat331/lib/container/tomcat_modules.jar"), KH> new URL("file://D:/apache/tomcat331/lib/container/tomcat_util.jar"), KH&

Re: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Jacob Kjome
The classloader behavior for webapps is specified in the servlet spec to be exactly opposite that of the normal Java2 classloading behavior. So, classes in the WebappClassLoader will *not* as the parent to load classes for it unless it can't find the class to load there first. That's one thi

RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-15 Thread Jacob Kjome
1.  Tomcat is so non-intrusive that it is pretty certainly *not* causing Apache not to work. 2.  jk2.properties has *nothing* to do with mod_jk.  mod_jk.conf and workers.properties are the two files you need to worry about. 3.  ApacheConfig is a helper to auto-generate mod_jk.conf based on setti

Re: ClassCastException when using BasicDataSource

2002-12-15 Thread Jacob Kjome
Unless you modifed things to use DBCP instead of Tyrex, Tomcat-4.0.3 is set up to use Tyrex. You can save yourself a lot of headache and simply upgrade to Tomcat-4.1.12. It officially uses DBCP instead of Tyrex for JNDI DataSource config and you won't be lost in the dark ages with a codebase

Re: Cant find a properties file - and shutdowns Tomcat

2002-12-13 Thread Jacob Kjome
Hello aps, First, don't use File IO if it isn't necessary (and it isn't here). Second, see: http://marc.theaimsgroup.com/?l=tomcat-user&m=103904964313189&w=2 Jake Friday, December 13, 2002, 11:26:08 AM, you wrote: ao> 1) Please help, the support class of my servlet is not able to find the file

Re: InitialContext configuration

2002-12-13 Thread Jacob Kjome
Hello Rod, I think this is a JBoss question. I think that JBoss takes over configuration of Tomcat when Tomcat is embedded in JBoss. So, I would think that the JNDI config would be located within JBoss, not external to the server or under the normal Tomcat standalone configuration. That said, I

Re: Sevlet at startup, not starting

2002-12-12 Thread Jacob Kjome
safe to do? Thanks! On Thursday 12 December 2002 16:19, Jacob Kjome wrote: > Hello Alexander, > > Note that loading on startup only calls the init() method. It does not > call doGet() or anything like that. Just making sure you understood that. > > Jake > > Thursday, Decemb

Re: Sevlet at startup, not starting

2002-12-12 Thread Jacob Kjome
Hello Alexander, Note that loading on startup only calls the init() method. It does not call doGet() or anything like that. Just making sure you understood that. Jake Thursday, December 12, 2002, 4:09:41 PM, you wrote: AW> Hi there... I have 1 servlet to start at startup, but it doesnt. If i

Re: Configuring mod_jk2

2002-12-12 Thread Jacob Kjome
Hello Joseph, Yeah, that is a problem. That line should be output as a relative path, but I've never been able to figure out how to set up the aut-generation in the Listener to do that for me without messing other stuff up. What I do is auto-generate once, make a copy and modify that line to be

Re: loading a properties file from a jar file in /WEB-INF/lib/

2002-12-12 Thread Jacob Kjome
Hello Matt, Where does class p exist? Is it also in WEB-INF/lib or WEB-INF/classes? If so, the only one of your examples that will work is: p.getClass().getResourceAsStream("/net/props/myProps.properties"); If your properties file is in the same package relative to class "p", then you can do: p

Re: DBCP could not obtain an idle db connection, pool exhausted

2002-12-11 Thread Jacob Kjome
re the previous comment or read this synopsis: http://www.tvtome.com/tvtome/servlet/GuidePageServlet/showid-344/epid-213373/ :-) Jake Thanks, I'll try the autoReconnect and am sure it'll work - you've obviously come across this before. Stephen. Jacob Kjome <[EMAIL PROTECTED

Re: Property files located under WEB-INF/

2002-12-11 Thread Jacob Kjome
If your support package require access to properties files, how did you expect to load them outside a servlet container? That's easy, via the in InputStream from the classloader Here are a number of ways to load properties classes that I posted to the list week or so ago http://marc.

Re: DBCP could not obtain an idle db connection, pool exhausted

2002-12-11 Thread Jacob Kjome
By chance are you using MySQL? Then add "?autoReconnect=true" to your url parameter like this url jdbc:mysql://localhost:3306/javatest?autoReconnect=true Jake At 02:54 AM 12/12/2002 +, you wrote: Just wondering how I could have ended up getting "DBCP could not obtain a

Re: Tomcat 4.1.12, Weblogic, and Classloaders -- Oh my!

2002-12-11 Thread Jacob Kjome
I'm not completely clear on what you are doing. You're are running Weblogic specific stuff inside Tomcat? I don't quite get it. However, the classloading issue is probably caused by a class outside WEB-INF/lib (in a parent classloader) trying to reference javax.ejb.EJBObject. The only way

Re: Deny access to directory of a web-app

2002-12-11 Thread Jacob Kjome
Hello Luiz, Why don't you put your "conf" directory under WEB-INF? That is restricted by default. Your app will still have complete programmatic access to it, but it won't be accessible via the web which is exactly what you want. Jake Wednesday, December 11, 2002, 10:12:33 AM, you wrote: LR>

Re: How to access /images?

2002-12-11 Thread Jacob Kjome
Hello Boris, This issue is much more problematic in servlets. Since you know which directory your .jsp file is relative to your images, I would continue using relative paths. This is what you'd need to do for static html files anyway. For servlets, prepending the context path is probably a good

Re: learning filters

2002-12-11 Thread Jacob Kjome
Hello Erik, Filters were introduced in the Servlet 2.3 specification. Your book probably only covers Servlet 2.2. Tomcat-4.x.x supports the Servlet 2.3 spec so, Filters are doable. See the following resources for starters... Essentials of Filters http://java.sun.com/products/servlet/Filters.ht

Re: urgent !!!!problem with availability of port !

2002-12-11 Thread Jacob Kjome
Hello neha, Switch the port that the http connector for Tomcat in server.xml is pointing to. For instance... Notice that I changed the "port" attribute to "8081" where it was "8080" in the default server.xml configuration. Now access your app via: http://localhost:8081/myapp/ If you use SSL

Re[2]: How to get a "File" for a certain folder

2002-12-11 Thread Jacob Kjome
Hello Erik, No, you won't really have write capability...at least not FileIO write capability. You might be able to update some resource the same way as you might update a file in a jar file at runtime, although I haven't looked into that. The only place you are guaranteed write access is to the

Re: IIS webserver and JK2

2002-12-10 Thread Jacob Kjome
Well, you have to map it in your connector configuration just like you would servlet mappings or *.jsp. For instance, for Tomcat's examples webapp with mod_jk configuration I have this: JkMount /examples/jsp/security/protected/j_security_check ajp13 Jake At 10:51 PM 12/10/2002 -0500, you w

Re: war files and context entries

2002-12-10 Thread Jacob Kjome
Try creating a context.xml file and put yoru entry in that. Now put your context.xml in META-INF of your .war file. Remove the context entry from Server.xml. When Tomcat starts up and doesn't see your war there, it will mark the context as disabled and will get confused if you later try to

RE: Tomcat/HTTPD Integration

2002-12-10 Thread Jacob Kjome
Did you put "workers.properties" in Apache's "conf" directory? Because providing a relative path to the conf directory isn't gong to see it in Tomcat's conf directory which is where "workers.properties" normally is. Either move workers.properties to Apache's conf directory or specify the ful

Re: Server.xml

2002-12-10 Thread Jacob Kjome
Hello Hari, That's just a matter of the docs being not quite up-to-date. The Coyote connector is the connector for both http and jk (jk and jk2). The other stuff is deprecated, although it still works just fine. Jake Tuesday, December 10, 2002, 12:24:23 PM, you wrote: HV> Can somebody explai

RE: oracle+tomcat 4.1.x+dbcp = driverClassName is required!

2002-12-10 Thread Jacob Kjome
"user" should be "username". This changed from the old Tyrex config to the newer DBCP config. Jake At 02:25 PM 12/10/2002 +0530, you wrote: My server.xml file now looks like this: type="javax.sql.DataSource"/>

Re: localization recommendation for tomcat

2002-12-10 Thread Jacob Kjome
Hi Micael, Yes, it does involve recompiling. However, you aren't writing any of these classes. I agree, that would be a *huge* pain! With XMLC, you create an HTML template. That's right, you aren't writing java, you are writing HTML. XMLC compiles that into a java object that represents t

Re: localization recommendation for tomcat

2002-12-09 Thread Jacob Kjome
Take a look at the Barracuda project localization. http://barracuda.enhydra.org/cvs_source/Barracuda/docs/comp/tutorial_hello_world4.html It utilizes XMLC ( http://xmlc.enhydra.org/ ) Using one or more properties files which contain localized strings, a localization Ant taskdef creates localize

Re: Tomcat + commons-logging + log4j

2002-12-09 Thread Jacob Kjome
Hello Wendy, Set up your entry to look something like this: Setting the debug flag to higher numbers will give you more and more output...to a point. I just use "5" and it seems to give me all the info I need. Either read the docs to find out more specifics about it or just experiment.

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 w

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,

RE: Tomcat 4.1, DBCP and Oracle

2002-12-08 Thread Jacob Kjome
lly able to hook up tomcat 4.1.12, DBCP and Oracle. Were you able to do it? thank you for your help...it's 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.z

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/200

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.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 (jars

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. -O

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 librari

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-user&m=103904964313189&w=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: 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 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 in server.xml and you put a .war file with the same name as is i

RE: Re[2]: WebApp Classpath

2002-12-05 Thread Jacob Kjome
e- > From: Jacob Kjome [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 04, 2002 11:52 AM > To: Tomcat Users List > Subject: Re[2]: WebApp Classpath > > > Hello Yoav, > > I see a problem with the documentation. It says: > > > xerces.jar - The XML parse

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 ( or

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". For the deploy command, simply include your context confgiuration file in the WAR at "M

Re[2]: WebApp Classpath

2002-12-04 Thread Jacob Kjome
Hello Yoav, I see a problem with the documentation. It says: 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. That is very wron

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 conne

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 or

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: DataSource config problem :(

2002-12-03 Thread Jacob Kjome
bcp .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: Usersa should be usernamesa Also, I'm not sure if the names are case sensitive. I suggest using All lower case just to be sure.

Re: DataSource config problem :(

2002-12-03 Thread Jacob Kjome
Usersa should be usernamesa 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 out the problem, but no luck, anyone with leads pls help! i have followin

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 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 bug if Tomcat 4.

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 PM,

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, min

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 t

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 a

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 -060

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. McCl

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: Hel

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 d

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

2002-11-27 Thread Jacob Kjome
nothing about 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: "

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

2002-11-27 Thread Jacob Kjome
you need to put tomcatAuthentication="false" on your jk connector. Jake At 08:51 AM 11/27/2002 -0500, you wrote: So, I'm working in an University setting, where someone else has set up Tomcat 4.03 and Apache 1.3 together, with the Apache SSL module and the Apache Kerberos 3rd party module ins

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

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