tomcat 3.x virtual hosts

2002-04-22 Thread Phillip Morelock
Hi everybody, usual list-newbie disclaimer I have searched the archives to no avail for this particular answer...i think my problem may or may not be subtly unique from others' problems. I have been using tomcat 3.x for a long time but have never encountered this self-inflicted problem. If I

Re: How to logout for the browser based authentication?

2002-04-22 Thread Phillip Morelock
i know that IE on the Mac (any version) doesn't actually dump session data until you've QUIT the browser, not just closed the window. IE on windows displays the behavior indicated in the previous responseit's based on parent-child relationships between windows. IE on win32: 1. File--New

Re: How to logout for the browser based authentication?

2002-04-22 Thread Phillip Morelock
the write access to the username/password stored in the browser? Thanks! -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 5:06 PM To: Tomcat Users List Subject: Re: How to logout for the browser based authentication? i know that IE

Re: servlet mapping

2002-04-23 Thread Phillip Morelock
hi -- i had this problem a while back -- i don't know that you've explained it clearly, but it sounds like the same problem i had. The limitation is in the servlet specification itself. Mapping is not designed to work this way...I remember being really disappointed when I read the servlet

Re: Map network drive automatically

2002-04-23 Thread Phillip Morelock
check out the net use command -- you can just use a batch file (.bat) On 4/23/02 12:21 PM, Jack Li [EMAIL PROTECTED] wrote: Hello All, Does anybody know how to map a network drive by writing a java program or other program languages? My OS is w2k and web server is IIS and Tomcat 4.

answer: HTTP authentication headers behavior expectations

2002-04-23 Thread Phillip Morelock
this is HTTP AFAIK the only way a browser can send BASIC authentication credentials is: 1) you send them a 401 and the browser prompts the user 2) you format all your links as http://user:[EMAIL PROTECTED]/ but i am not even sure if all browsers will correctly use this, at least in the fashion

Re: JSP compile fails to find class

2002-04-24 Thread Phillip Morelock
why don't you just put your classes in packages? did you think about that? this should give you your biggest clue: org.apache.jsp.TrackerStateBean not found it's assuming a default package of org.apache.jsp for unqualified class names. phillip On 4/24/02 9:38 AM, Steve D George [EMAIL

Re: Servlet killing tracking

2002-04-24 Thread Phillip Morelock
i sent you one email already, but i will tell you this again, i have experienced many oddities in the servlet lifecycle with tomcat 3. 2.x. I strongly suggest you try (at least in a test environment) 3.3 or 4.x as in my experience these are much cleaner WRT the life cycle problems you're

Re: Servlet killing tracking

2002-04-24 Thread Phillip Morelock
fair enough. some response questions in light of the new information you've provided: 1) what exactly does your servlet depend on in int() and destroy() that is so vital? 2) i asked this before but it probably wasn't clear: does Tomcat never re-init the servlet once it's been destroyed? if it

Re: tomcat 3.x virtual hosts

2002-04-25 Thread Phillip Morelock
is Redhat 7.2. On 4/22/02 12:19 PM, Phillip Morelock [EMAIL PROTECTED] wrote: I am using virtual hosting on Tomcat 3.x standalone but I can't seem to make my scenario work: www.xxx.com/memphis and www.xxx.net/memphis Basically the only difference between the two (they're literally the same

Re: Transparent Redirection

2002-04-25 Thread Phillip Morelock
my polite suggestion is: use servelts for these kinds of tasks -- it's much easier to control and visualize how things should flow -- just use JSP to display information they need, use the Servlet as its meant to be used, as a controller. just IMHO, good luck. cheers fillup On 4/25/02 6:38

Re: Tomcat 4 jsp compiler error. Class in imported package notfound.

2002-04-25 Thread Phillip Morelock
try using a WEB-INF directory in your app. On 4/25/02 7:10 PM, pducuron (kgb) [EMAIL PROTECTED] wrote: I'm upgrating to tomcat 4.0.3 from 3.2.1, I placed my application into /webapps but when tomcat compiles my jsp pages it can't find classes I have imported in my jsp page. error: ===

Re: tomcat 3.x virtual hosts

2002-04-25 Thread Phillip Morelock
on that should have been turned off? Thanks everybody for your patience and for not flaming me too badly. This was a very important and interesting problem to me. ;) cheers Phillip P.S. My precise tomcat version is 3.2.4, my environment is Redhat 7.2. On 4/22/02 12:19 PM, Phillip

Re: tomcat doesn't see javabean inside .jar

2002-04-26 Thread Phillip Morelock
HI, FYI: IllegalAccessExceptions generally mean you're improperly using public/private/protected/package private, etc., modifiers in your code. (Generally, that is...could be something else). It looks like your default constructor is marked as package private, change it to public and see

careful with -Xms etc.?

2002-04-29 Thread Phillip Morelock
I just noticed something quite by accident because I accidentally mistyped my TOMCAT_OPTS inside of the tomcat.sh file. (3.2.4, standalone, linux, jdk 1.3). I don't know if this is common knowledge or not, but I thought I would share with the group: the TOMCAT_OPTS affects not only the VM that

RE: server.xml question

2002-04-30 Thread Phillip Morelock
At Tuesday, 30 April 2002, you wrote: Here are some suggestions: - Are the log files being written ANYWHERE? Or not at all? - What if you use a relative path (such as logs)? - Are the permissions set correctly for your directory? - What if you DON'T use the trailing / on the directory name?

Re: Linux-Tomcat looking for Windows files!!! HELP!!

2002-05-02 Thread Phillip Morelock
nothing to worry about. those are code red (or maybe Nimda?) requests. it's a virus trying to propagate or take advantage of itself. if you had an upatched IIS on Windows you should be worried. I get 50 of these before lunch. cheers fillup On 5/2/02 6:10 PM, Jakarta Tomcat Newsgroup

Re: plz help

2002-05-03 Thread Phillip Morelock
AFAIK you can't do this. with HTTP file uploads you have to store the data immediately or it is lost. You have to store the file part to a temp file, then do all your work, then come back and move the file and give it your new name, or delete it if your transaction didn't go through. On

Re: java.lang.NoClassDefFoundError-Con't find the Class in thesame p ackage?

2002-05-03 Thread Phillip Morelock
import com.fis.Controller.*; should read: import com.fis.controller.*; in Composer.java, package com.fis.Controller; should read: package com.fis.controller; EVERYthing needs to be case-sensitive. cheers fillup On 5/3/02 2:52 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've put a

Re: ?? Class Loaders, Static Initializers, Open Files ??

2002-05-07 Thread Phillip Morelock
Unfortunately I believe that's what static initialization is. It's not totally clear whether this will help you, but here's a link that describes the order things are done in: http://www.javaworld.com/javaworld/jw-11-2001/jw-1102-java101.html cheers fillup At Tuesday, 7 May 2002, you wrote:

Re: starting from jar vs. bat

2002-05-09 Thread Phillip Morelock
environment? os? are you on windows with a tomcat path that has spaces in it? or for that matter on any system with tomcat path that has spaces in it? On 5/9/02 10:49 AM, Robert Priest [EMAIL PROTECTED] wrote: I am having a problem whenever I start tomcat with the startup script and I

Re: please help:Apache Tomcat/4.0.3 - HTTP Status 500 - InternalServer Error

2002-05-09 Thread Phillip Morelock
are trailing semicolons necessary? sorry, been a while since i used windows, but i didn't know the traililng semis were required. and the classpath one is completely unnecessary. rt.jar and tools.jar will be found if JAVA_HOME is properly set, and tomcat/bin is not a classpath location. let

Re: Tomcat on Win98

2002-05-09 Thread Phillip Morelock
not only that, but98 just can't handle 100 users anyway. it's not a multi-user operating system. it's not made for that. good luck fillup On 5/9/02 1:04 PM, Wagoner, Mark [EMAIL PROTECTED] wrote: I doubt Win98 can handle it. I know NT workstation places a limit on 10 simultaneous

Re: Loading a connection pool class on tomcat startup

2002-05-09 Thread Phillip Morelock
Make a http servlet. Override the init() method. Do your setup inside init. In your web-xml, in that servlet's definition, make a load-on-startup tag to see examples, search google for load-on-startup web.xml cheers fillup On 5/9/02 1:46 PM, Soomar, Muki (R.) [EMAIL PROTECTED] wrote:

Re: tomcat ..(latest)

2002-05-10 Thread Phillip Morelock
http://jakarta.apache.org/tomcat On 5/10/02 11:30 AM, puneet sachar [EMAIL PROTECTED] wrote: Guys i just lost my Cd in whicg i have tomcat Can anyone tell form where i get the latest version of tomcat and process how to install it Its very urgent frinz. I need ur help Puneet

Re: VM size increases.

2002-05-14 Thread Phillip Morelock
Hi Toru, I'm using jdbc-odbc driver to connect to SQL server. Regards Rajesh That's your problem This is NOT a production quality driver, it's a JDBC type 1 hack. It's got known problems and Sun specifically tells you to use it for testing only. I recommend MS's beta SQL Server driver

Re: Servlet doesn't return after init()

2002-05-14 Thread Phillip Morelock
turned on the RequestValueDumper... but no luck. I have absolutely no idea why I can't map http://localhost:8080/bookie to my servlet. servlet-mapping servlet-nameBookieServlet/servlet-name url-pattern/bookie/url-pattern /servlet-mapping is it as simple as it should be??

Re: Heap Size for Tomcat

2002-05-16 Thread Phillip Morelock
The official way to do it is to set a TOMCAT_OPTS or CATALINA_OPTS variable with the string that you would normally feed the VM. (like -Xms or whatever). TOMCAT is for 3.x, CATALINA is for 4.x cheers fillup On 5/16/02 3:57 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: my understanding

Re: Heap Size for Tomcat

2002-05-16 Thread Phillip Morelock
Phillip Morelock subscriptions@phillipmo To: Tomcat Users List [EMAIL PROTECTED] relock.com cc: Subject: Re: Heap Size for Tomcat 05/16

Re: Heap Size for Tomcat

2002-05-16 Thread Phillip Morelock
fillup On 5/16/02 6:45 PM, Jacob Hookom [EMAIL PROTECTED] wrote: So the correct solution is to modify the startup/shutdown command line or to setup TOMCAT_OPTS/CATALINA_OPTS? Thanks again for the replies! Jake Hookom -Original Message- From: Phillip Morelock [mailto:[EMAIL

Re: exception management with beans and Jsps

2002-05-17 Thread Phillip Morelock
generally you should be using as few exceptions as possible...because they are very expensive. But if the API's you are using throw exceptions, and such, you should definitely catch them at the bean level, and return negative or false values to the jsp or whatever, and just use simple

Re: powerpoint

2002-05-17 Thread Phillip Morelock
you need to set your mime-types appropriately. On 5/17/02 3:37 PM, Hoang C. Truong [EMAIL PROTECTED] wrote: Hi, I save a powerpoint document under one of a webapp. When I tried to access this document, binaries stream was displayed instead of the powerpoint document. Does anyone have any

Re: powerpoint

2002-05-17 Thread Phillip Morelock
config files) cheers fillup On 5/17/02 4:25 PM, Hoang C. Truong [EMAIL PROTECTED] wrote: Hi, How do I do that? Is it in server config file? I am running tomcat4.0.1. I dont't have this problem on Apache web server. Thanks for your quick response. -Hoang --- Phillip Morelock [EMAIL

Re: web.xml

2002-05-20 Thread Phillip Morelock
that should work without any web.xml involvement. The web.xml maps ONLY what you map, everything else is resolved with your static content if it's not found in the servlet-mappings. On 5/20/02 5:11 PM, Vladimir [EMAIL PROTECTED] wrote: Is there any way to make a servlet-mapping that

Re: web.xml

2002-05-20 Thread Phillip Morelock
that redirects or forwards to what you want / to be. When / is requested, if nothing is mapped, it will look for index.jsp -- just use the RequestDispatcher to forward to what you want to process the request. fillup -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent

Re: ***Please reply as no one on this list has offered ANY help***

2002-05-21 Thread Phillip Morelock
alright. leaving aside the issue of your subject line... I, too, am not reading all that code until I get a better idea of what you're actually asking. For instance, do you know the following? only ONE instance of a servlet is created in the servlet container. That means that every request

Re: strange shut down problem

2002-05-21 Thread Phillip Morelock
this might get you started... run the following commands and send your output: netstat -a lsof | grep java although that second one might have a lot of outputin which case look over that to see which files, devices, and ports the JVM has open. fillup On 5/21/02 4:58 PM, Cindy Ballreich

Re: Very strange session problem on localhost only (trying again)

2002-05-22 Thread Phillip Morelock
Hi Let me guess -- IE 5/6 on win32??? Yep, you're running into a little friend we call Security Zones. Just another MS thing, man. Ignore this unless localhost functionality is critical, in which case you might be screwed. You're on the local intranet zone i think or maybe even the local

Re: jikes as JSP compiler in Jasper/Tomcat 4.0.3

2002-05-22 Thread Phillip Morelock
weird... download the tomcat sources and check out the class org.apache.jasper.compiler.JikesJavaCompiler See the method compile() and note the comment on line 193, and 203 -- //XXX - add encoding once Jikes supports it odd -- i would advise you check out the sources in this package

Re: jikes as JSP compiler in Jasper/Tomcat 4.0.3

2002-05-22 Thread Phillip Morelock
so is it working and giving the debug message, or is it not working at all? if you're looking for a starting point i would recommend org.apache.jasper.compiler.Compiler also if you're looking for source spots. On 5/22/02 12:17 PM, Phillip Morelock [EMAIL PROTECTED] wrote: weird

Re: Unique dir for Virtual Host

2002-05-22 Thread Phillip Morelock
!--DefaultContext cookies = true crossContext = true override = true / /Host this starts a comment -- you probably forgot to remove the comment tag. this comment does not end until: !-- A HTTP Connector on port 8080 -- Connector className = On 5/22/02 12:41 PM, Joe

Re: os x/unix

2002-05-22 Thread Phillip Morelock
sudo rm -r jakarta-tomcat-4.0.3-src then provide your account password. when you're logged in as an administrator. On 5/22/02 1:56 PM, daniel bleich [EMAIL PROTECTED] wrote: I am trying to find help online on installing Tomcat on Mac OS X. I must have made a mistake in trying to

Re: A optimizing problem, need your help.

2002-05-22 Thread Phillip Morelock
you might consider using tomcat 3 instead then -- a lot less overhead for non-2.3 apps. i use it for that purpose explicitly. fillup On 5/22/02 6:40 PM, Zhidong Yu [EMAIL PROTECTED] wrote: Following call stack is dumped from Tomcat server. You can see it is so deep. What's all these

Re: A optimizing problem, need your help.

2002-05-22 Thread Phillip Morelock
On 5/22/02 9:45 PM, kelly, Burrowa [EMAIL PROTECTED] wrote: you might consider using tomcat 3 instead then -- a lot less overhead for non-2.3 apps. i use it for that purpose explicitly. Just curious, what are non-2.3 apps? Meaning apps that don't take advantage of the latest and

Re: A optimizing problem, need your help.

2002-05-22 Thread Phillip Morelock
special reasons so I have to use Tomcat 4. Is there any better idea? -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 9:55 AM To: Tomcat Users List Subject: Re: A optimizing problem, need your help. you might consider using tomcat 3

Re: SIGSEGV 11* segmentation violation

2002-05-23 Thread Phillip Morelock
which version of the C++ libraries do you have? freebsd 4.5 is the newest-greatest, right? (forgive me, been a while) On 5/23/02 1:33 AM, Joseph G. Mercado [EMAIL PROTECTED] wrote: Hi, Im trying to run tomcat 3.3 on a freebsd 4.5 box with jdk1.2.2 running. When i run sh tomcat.shs start

Re: DataSources and JNDI

2002-05-23 Thread Phillip Morelock
are you following microsoft's directions? they worked for me on jboss at least. On 5/23/02 8:04 AM, Adam Greene [EMAIL PROTECTED] wrote: I'm trying to get the Microsoft SQL Driver to work in doing DataSources. It has a class called

Re: Session variables RAM vs. DB Queries

2002-05-23 Thread Phillip Morelock
you should absolutely minimize the amount of things you keep in the session, IMHO. The database is made for scaling like this, session objects are not. Basically the database will be able to handle concurrent uses better than cramming data into the session. I store very little information in

Re: mime-types?

2002-05-23 Thread Phillip Morelock
your browser needs to be mime-typed AND your tomcat application needs to be mime-typed you can set tomcat's mime-types in your web.xml file. search google for tomcat web.xml mime types As far as your browser -- many browsers are not preconfigured to view png images alone -- this happens to me

Re: increase performance dual processor board

2002-05-23 Thread Phillip Morelock
only if it's got 2 processors ;-^) funny! but in case the original person isn't sure what you meant -- YES since tomcat is highly multithreaded (or multi-lightweight-processed on linux that would be ;) and can run threads in parallel, and the threads are implemented at the C++ level in

Re: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Phillip Morelock
request.getHeader() see the documentation for HttpServletRequest On 5/23/02 12:27 PM, Donie Kelly [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL

Re: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Phillip Morelock
to base64 decode the result. I was hoping there was a nice way ;) Donie -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent:23 May 2002 20:38 To:Tomcat Users List Subject:Re: Getting USERNAME/PASSWORD from HTTP headers request.getHeader

Re: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Phillip Morelock
to base64 decode the result. I was hoping there was a nice way ;) Donie -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent:23 May 2002 20:38 To:Tomcat Users List Subject:Re: Getting USERNAME/PASSWORD from HTTP headers request.getHeader

Re: index.jsp not getting sent via mod_jk to tomcat??

2002-05-23 Thread Phillip Morelock
i've got a ghetto-fabulous solution -- just put an index.html there with a 0-delay refresh or a javascript refresh. I actually do it with a php script that sends a redirect header instead, because for some reason apache's default index.php thing will still work (if you have PHP installed, that

Re: JDBC trouble

2002-05-23 Thread Phillip Morelock
chances are you have a syntax error in your jsp it's calling this an attribute -- which means you probably forgot to close a tag or something, maybe a semicolon. fillup On 5/23/02 1:57 PM, Mauricio Tia Ni Gong Lin [EMAIL PROTECTED] wrote: Hi everybody, When I try to access the

Re: index.jsp not getting sent via mod_jk to tomcat??

2002-05-23 Thread Phillip Morelock
: Alias / e:/mycodebase/index.jsp But it just returned my index.jsp, unprocessed, to the browser... bummer -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:47 PM To: Tomcat Users List Subject: Re: index.jsp not getting sent via

Re: serving servlets from jar files

2002-05-23 Thread Phillip Morelock
servlet servlet-nameDateServlet/servlet-name servlet-classcom.test.date.DateServlet.class/servlet-class /servlet take off .class fillup On 5/23/02 2:07 PM, Young Neil [EMAIL PROTECTED] wrote: I'm using Tomcat 4.0.3 and I'm having a problem getting it to find servlets that are in jar

Re: Linux - high cpu usage/seg faults

2002-05-23 Thread Phillip Morelock
try the sun jdk and find if there's a difference, would be the first thing on my list. Should be an easy sniff test or whatever. fillup On 5/23/02 3:09 PM, Joakim Ryden [EMAIL PROTECTED] wrote: Hey guys - I just installed tomcat 4.0.3 on two identical (software wise) spanking new

Re: Can't Find JavaBean

2002-05-23 Thread Phillip Morelock
Hey there, Don't worry about this at all -- have seen this question probably ten times in the last month. You seem to be doing everything correctly. I don't remember any of the solutions, but here's what **I** do and it never fails. ALWAYS always always (in my opinion) jar your classes, and

Re: clean-up when stoping tomcat

2002-05-24 Thread Phillip Morelock
does using a servlet's destroy method not guarantee enough finality? a hack might be to have a servlet's destroy method wait for a time period and then do your cleanup (if you want to ensure your other servlets have been destroyed). It's a hack, but it might work. If there's a better answer, I

Re: Tomcat won't pick up my classes

2002-05-24 Thread Phillip Morelock
you need to import the bean before you can use it - finally remembered this. it's been discussed a lot on this list. i think -- or maybe i'm remembering something else. try making a line at the top of your jsp that says: %@ page language=java contentType=text/html import=LogonData % If you put

Re: Tomcat won't pick up my classes

2002-05-24 Thread Phillip Morelock
From the error message, your class LogonData is part of the org.apache.jsp packages. If that is right, you will need to put the class file LogonData.class in c: \tomcat\webapps\ROOT\WEB_INF\classes\org\apache\jsp Sorry to be a pedant, but this is not true. Tomcat looks for classes that

Re: how can I put my classes in packages?

2002-05-24 Thread Phillip Morelock
I'm going to post this to the list because a few people have asked off-list about how to make packages for their classes. Once you learn to do this, and put all your classes in packages, it clears up a lot of basic problems, such as the mysterious why can't my JSP find my class? problem. It's

Re: Antwort: AW: Help! Need connection pooling for tc4.

2002-05-24 Thread Phillip Morelock
http://examples.oreilly.com/jserverpages/ There is a GREAT SQL abstraction package that gives the appearance of a DataSource. This package rocks. fillup On 5/24/02 9:02 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hallo Ralph, thanks for your hint, but I haven't found any reference

Re: JavaBeans

2002-05-24 Thread Phillip Morelock
On 5/24/02 7:39 AM, Eric Everman [EMAIL PROTECTED] wrote: Could this be a package issue as well (see Tomcat can't find my classes)? Classes places in the /classes folder must be in nested folders matching the package name. When you reference this class, you must use the package name, for

Re: JSP Session

2002-05-24 Thread Phillip Morelock
Putting a database connection into each session is a very bad idea. If you get 10 users with open sessions, this means you'll have 10 open, idle database connections most of the time. If you have 20 sessions...I'll put it this way -- I have an application that has been running for months with

Re: [Proposal] Tomcat and Cactus (Repost)

2002-05-24 Thread Phillip Morelock
I'm not familiar with Cactus, but integrated testing/debugging of any official kind would be quite nice. fillup On 5/24/02 10:15 AM, Vincent Massol [EMAIL PROTECTED] wrote: I'm reposting in the secret hope that I got no response to this email I sent last week because no one saw it in the

Re: Sessions how to use?

2002-05-24 Thread Phillip Morelock
please provide source code, or maybe at least the relevant lines. what is the fully qualified class name of your servlet? also if you send source code please include any import or package statement lines. fillup On 5/24/02 11:03 AM, Scott C Strecker [EMAIL PROTECTED] wrote: I am trying to

Re: loading application scope variables ?

2002-05-24 Thread Phillip Morelock
search google for tomcat load-on-startup web.xml hit I'm feeling lucky...then Find (ctrl-f or cmd-f) the phrase load-on-startup on that page. the rest of it is not relevant. fillup On 5/24/02 11:13 AM, Richard Diaz [EMAIL PROTECTED] wrote: where/how do I run my servlet that loads my

Re: Sessions how to use?

2002-05-24 Thread Phillip Morelock
(name) + br); } out.println(/body/html); } } --- END OF CODE Phillip Morelock wrote: please provide source code, or maybe at least the relevant lines. what is the fully qualified class name of your servlet? also if you send

Re: Apache2 + Tomcat 4.x Virtual Hosts NOT working.

2002-05-24 Thread Phillip Morelock
I have a hunch that you're serving one of these out of the default webapps directory. If so, read on: remove the default context -- put nothing under webapps. Then make separate document base contexts for each (like firstdomainwebapps and seconddomainwebapps) and configure these in server.xml

Re: tomcat 4.0.3 and Null datasource

2002-05-24 Thread Phillip Morelock
just reading your email, i think you should look at how you spell each instance of this word: setsDatasource in some places it's setsDataSource cheers fillup -- Hi, I am having trouble obtain datasource to get a connection, I've looked over the mailing archives and followed the

Re: Tomcat refusing jsessionid's

2002-05-25 Thread Phillip Morelock
HTTP sessionsbrowsers are configured to associate cookies with domain names. They will not transmit a cookie to a domain other than the originating domain (at least they shouldn't). It has nothing to do with IP address, only domain name. I am not sure I understand your question, but if I

Re: how does tomcat store session objects?

2002-05-25 Thread Phillip Morelock
On 5/25/02 6:20 AM, jfc100 [EMAIL PROTECTED] wrote: Can someone tell me how tomcat stores session objects or at least where I could find out this info without looking at the src? without looking at the source? why not? it's Free, and it's the most authoritative answer you can get.

Re: Tomcat refusing jsessionid's

2002-05-26 Thread Phillip Morelock
user jump between two domains(though they are in reality same machine same tomcat) without his knowlege. -Jiger From: Phillip Morelock [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat refusing jsessionid's Date

Re: how does tomcat store session objects?

2002-05-26 Thread Phillip Morelock
Have you built the Tomcat source javadoc tree? Maybe you don't want to wade knee-deep in source...understandable, I guess. But at least build yourself the javadoc from the sources and read that stuff. Also see the high-level architecture image (or maybe pdf?) on the jakarta site. fillup

Re: how does tomcat store session objects?

2002-05-26 Thread Phillip Morelock
I just quickly checked the site and there are also a couple of tomcat internals articles and the full javadoc for Tomcat 4 is already posted there as well. /f/ -- Have you built the Tomcat source javadoc tree? Maybe you don't want to wade knee-deep in source...understandable, I guess. But at

Re: how does tomcat store session objects?

2002-05-26 Thread Phillip Morelock
. Sounds like you are already familiar with all this, though. cheers and good luck fillup On 5/26/02 1:23 PM, jfc100 [EMAIL PROTECTED] wrote: Phillip Morelock wrote: On the TC 3 documentation page there is an excellent tomcat internals documentbut maybe you already saw that? I myself am

Re: Tomcat newbie: multiuser installation

2002-05-26 Thread Phillip Morelock
I don't know about the ~ stuff but I do know the probable reason you have to be root to do what you're doing: To bind to a port 1024 on linux you must be root. If you've bound tomcat to a port lower than 1024, you'll have to be root to start it. As far as being able to load new classes, have

Re: Listing all currently logged users

2002-05-28 Thread Phillip Morelock
You should really use the lifecycle listener approach and roll your own hashtable- or list-based implementation, depending on your needs. Going for the internals is cool, but it is a non-portable hack. HttpSessionListener is the way to go, IMHO. fillup On 5/27/02 3:13 PM, Mats Nyberg [EMAIL

Re: Sessions how to use?

2002-05-28 Thread Phillip Morelock
there is someone out there the has a more definitive answer. Thanks Scott Phillip Morelock wrote: java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/ServerCookie at org.apache.tomcat.util.http.Cookies.addCookie(Cookies.java:180, Compiled Code) That's odd -- I can't

Re: document that covers JSP app configuration and related

2002-05-28 Thread Phillip Morelock
1. Follow the documentation on the website to get tomcat running in standalone mode (the main install document). 2. Go to http://localhost:8080/ 3. Click on the documentation link. You'll see. Of course, all of this stuff is on the jakarta website anyway... fillup #1 is available at:

Re: Cannot retrieve session after visiting a different servletcontex t

2002-05-28 Thread Phillip Morelock
This is happening because browsers associate cookies with the name of the server, whereas Session ID's among tomcat contexts do not cross over. Since the cookie / identifier for the session is something like JSESSIONID and is associated in the client browser with your server, this property gets

Re: Cannot retrieve session after visiting a different servletcontex t

2002-05-28 Thread Phillip Morelock
:02 PM, James Williamson [EMAIL PROTECTED] wrote: - Original Message - From: Phillip Morelock [EMAIL PROTECTED] It's a feature of the Servlet specification if you will...actually it's somewhat of an accident of nature, given the way browsers are specified to work WRT cookies

Re: Tomcat 4 install / config

2002-05-29 Thread Phillip Morelock
Although if you are new to Tomcat I would suggest you work with it in stand-alone mode for a while. Several people have reported that Tomcat by itself is a fairly robust web server. You can always add Apache later without effecting your app. No sense making things more complicated from

Re: Memory Leak?

2002-05-29 Thread Phillip Morelock
You are using the same name for the parameter to the constructor and the instance variable for your inner class. fillup On 5/29/02 10:55 AM, Mark Shurgot [EMAIL PROTECTED] wrote: I am having the strangest problem with Tomcat and inner classes. In a few JSP pages, we use inner classes

Re: global resources

2002-05-29 Thread Phillip Morelock
Just for your edification, FYI the other ones you are currently using are for TOMCAT's classes, not yours. This previous reply is correct. fillup On 5/29/02 11:06 AM, Mark Shurgot [EMAIL PROTECTED] wrote: You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib

Re: Can someone crack into server.xml?

2002-05-29 Thread Phillip Morelock
In theory at least, no, nobody can view your files. Tomcat protects its config files and anything under WEB-INF . Does this mean it's 100% impossible? Certainly not. On the internet, nothing is impossible. Mostly, don't make some stupid configuration mistake (like mapping your TOMCAT/conf

Re: Memory Leak?

2002-05-29 Thread Phillip Morelock
variable is identified by this. -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 11:02 AM To: Tomcat Users List Subject: Re: Memory Leak? You are using the same name for the parameter to the constructor and the instance variable

Re: global resources

2002-05-29 Thread Phillip Morelock
It might help if you described what you're doing in a little more detail. What are these classes you want commonly accessible? Are they in jars? Packed correctly, etc.? Please elaborate. fillup On 5/29/02 11:07 AM, Christian J. Dechery [EMAIL PROTECTED] wrote: I tried that too... if I do

Re: global resources (2)

2002-05-29 Thread Phillip Morelock
Ha! Looks like i had it backwards... Thank goodness for documentation ;) fillup On 5/29/02 11:51 AM, Christian J. Dechery [EMAIL PROTECTED] wrote: According to Tomcat's config, I should places classes and packages in /classes and /lib, not /common/classes and /common/lib. Altough

Re: global resources (better explained)

2002-05-29 Thread Phillip Morelock
pay attention to the order of classloaders -- i would jar your classes and put them with the oracle classes, to ensure they're loaded in the same space. I have said this till I'm blue in the face, but so many problems mysteriously go away when you use jars instead of just throwing class files in

Re: please fix my stupid classpath

2002-05-29 Thread Phillip Morelock
the way to pass things in is -d this is how you can have the same build.xml on several systems...just use -d to pass in specific env vars. fillup On 5/29/02 3:49 PM, Martin van den Bemt [EMAIL PROTECTED] wrote: !-- Note: this is a kludge until we figure out how to pass this value in --

Re: Tomcat Hangs-UP...

2002-05-29 Thread Phillip Morelock
Two comments below. fillup Are you closing your Oracle connections? Are there too many open connections? I am using an Oracle implementation of connection pool. Every user that log on system get an connection from that pool. The connection will not br released until this user close the

Re: please fix my stupid classpath

2002-05-29 Thread Phillip Morelock
Get one of the jars you packed yourself. Type jar tf myjar.jar and send your output. fillup On 5/29/02 4:28 PM, Richard Diaz [EMAIL PROTECTED] wrote: All I am trying to do is eliminate the Servlet Exception wrong name error I am getting ever since I moved my class files into a jar

Re: Request Reader

2002-05-29 Thread Phillip Morelock
what happens if you directly use the input stream instead? req.getInputStream( ) cheers fillup On 5/29/02 1:57 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Can someone tell me why I get a reader time out when I try to get the body of a request and that body is empty? Why wouldn't the

Re: STATUS 500 - Unable to compile class for JSPNote

2002-05-29 Thread Phillip Morelock
import the class by making this the top line in your jsp: %@ page language=java contentType=text/html import=ListMessagesTag % The real answer is that you should take some time to learn about packages and jars, but for just getting started, etc., the above *should* fix your current problem.

Re: What's the name of the tomcat process in task manager???????

2002-05-30 Thread Phillip Morelock
java On 5/29/02 11:56 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: name of the process of tomcat?? thanks jc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

Re: Starting threads on tomcat startup

2002-05-30 Thread Phillip Morelock
Use a servlet's init() method and have it load at startup. search google: tomcat web.xml load-on-startup fillup On 5/30/02 1:05 AM, rob [EMAIL PROTECTED] wrote: I have a number of threads that I would like to launch when tomcat loads. until recently I was just using the first request to

Re: STATUS 500 - Unable to compile class for JSPNote

2002-05-30 Thread Phillip Morelock
add the taglib above... PARSE error at line 1 column 1 org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed. I do use packages/jars/wars. -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: May 29

  1   2   >