Re: Compile ??

2001-06-19 Thread Luba Powell
servlet and JavaBean .java files are to be compiled and placed into: \webapps\yourapp\WEB-INF\classes\ The engine will find necessary classes if you made correct entry into \webapps\yourapp\WEB-INF\web.xml (if not familiar with .xml - just follow their examples .jsp files are not to

Re: multithreaded beans, struts, doing it right...

2001-06-19 Thread Luba Powell
user accidentally double clicks one of the links and the same business object gets two requests, where the first isn't finished before it recieves the second. This probably better be intercepted, even if the logic is thread safe. Too confusion to the client. You can watch user activity thread

Re: multithreaded beans, struts, doing it right...

2001-06-19 Thread Luba Powell
- Original Message - From: Luba Powell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 12:04 AM Subject: Re: multithreaded beans, struts, doing it right... user accidentally double clicks one of the links and the same business object gets two requests, where

Re: OutOfMem

2001-06-18 Thread Luba Powell
2 possibilities here. you ran out of memory in which case decrease number of connectors in conf/server.xml for the context Or there is a buglet in their ThreadPool program. I doubt this, primarily because there haven't been many postings on this subject r/luba - Original Message -

Re: socket write and Connection reset by peer

2001-06-18 Thread Luba Powell
Network programmers! I also frequently get code=10053 error although not w/Tomcat. I learned to work around it, but would be nice to know the origins of this code. thanks, luba - Original Message - From: Venkatesh T [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001

Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Luba Powell
Try this: Driver driver = (Driver) Class.forName("driver URL").newInstance(); if (driver == null) { System.out.println("no driver found"); } - Original Message - From: "Ryszard Lach" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 6:40 AM Subject: Problem

Re: Help on: ThreadPool: pool exhausted with 100 threads

2001-06-18 Thread Luba Powell
Ooh! Shai is getting similar error. Although in his case he runs out of memory. But both of your errors occur in their ThreadPool program. I wonder if threads are not being returned to the pool, in which case you would need to report it as a bug. Json, how many connectors did you configure for

Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Luba Powell
It is .newInstance() that will actually create and instance of Driver class. Also make sure your URL is correct. - Original Message - From: "Luba Powell" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 10:46 AM Subject: Re: Problem with Postgresql JDBC drive

Re: installing tomkat under linux: please help!

2001-06-18 Thread Luba Powell
What are error messages? Can look in the log? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 11:08 AM Subject: installing tomkat under linux: please help! I have RedHat 7.1 I download file jakarta-tomcat-3.2.1.tar which create the

Re: What are EJB

2001-06-18 Thread Luba Powell
but a real mess of a database You are right here. Because of it I stopped using Entity beans all together... - Original Message - From: Sam Newman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 9:26 AM Subject: Re: What are EJB The only real similarity

Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Luba Powell
you need to add the shutdown-hooks permission Yes, this too. You can either update policy file directly or via GUI jdk1.3\bin\policytool you need to add the shutdown-hooks permission. - Original Message - From: "David Wall" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June

Re: What are EJB

2001-06-18 Thread Luba Powell
. sam - Original Message - From: Luba Powell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 5:31 PM Subject: Re: What are EJB You think so? I will give in another chance. Can you send to me configurations for Tomcat/EJB? thank you.

Re: How can I make tomcat to instantiate a class

2001-06-18 Thread Luba Powell
Thank you ! - Original Message - From: Boris Niyazov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 5:53 PM Subject: Re: How can I make tomcat to instantiate a class We use a database connection pool class which is a servlet that we start on tomcat boot using

Re: Using an earlier version of JSP/JSDK with Tomcat/JServ

2001-06-17 Thread Luba Powell
Derek: Why don't you try and let us know. Change TOMCAT_HOME to point to jdk1.1 or jdk1.2. Place earlier release of JSDK: servlet.jar under \common\lib\ Let us know if this works. - Original Message - From: Derek Doerr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: session error after recompile a java class....BUG?

2001-06-17 Thread Luba Powell
Hello Dmitri-- - you cant expect it to automatically migrate old objects to new versions of the same type. My understanding is that dynamically loaded Class definition are subject to gc just like regular objects. For this to happen Class definition has to be nullified. For this to happen the

Re: access log for Tomcat

2001-06-17 Thread Luba Powell
David: There is a global entry: !-- Global logger unless overridden at lower levels -- Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/ Are yousaying that this doesn't work? - Original Message - From: David

Re: access log for Tomcat

2001-06-17 Thread Luba Powell
. Right now there are three standard log streams, "tc_log", "servlet_log", and "JASPER_LOG". - Original Message ----- From: Luba Powell To: [EMAIL PROTECTED] Sent: Sunday, June 17, 2001 8:50 AM Subject: Re: access log for Tomcat Da

Re: session error after recompile a java class....BUG?

2001-06-17 Thread Luba Powell
before I go any further, I'm assuming that if I'm saying something that isn't right someone Not to worry - we are all techies... I thought, and I want someone to correct me here if I'm wrong, that Classloaders dont unload class definitions. The reasoning behind this is to prevent some

Re: newbie: Sample autoexec.bat, pls?

2001-06-17 Thread Luba Powell
Not a problem. Here it is. Essential DOS Commands and Concepts Backup Files Change the Default Drive CHDIR (CD) Change Directory Command COPY Command DIR (Directory) Command ERASE Command File-Naming Conventions FORMAT Command MKDIR (MD) Make Directory Command Rebooting the computer

Re: session error after recompile a java class....BUG?

2001-06-17 Thread Luba Powell
One more thing: The reasoning behind this is to prevent some malicious program from replacing a class definition with their own This is generally correct. Although - there is a way to tell (if one is bold enough to extend ClassLoader properties) which ClassLoader this or that ClassDefinition

Re: newbie: Sample autoexec.bat, pls?

2001-06-17 Thread Luba Powell
- From: Luba Powell [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 9:07 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: newbie: Sample autoexec.bat, pls? Not a problem. ... .

Re: Xss

2001-06-17 Thread Luba Powell
If you do: java -X you will see all extended options. Xms and Xmx are for heap. The only way that I know how to set stack size is in JVM Assembler. It is normally done in the method: .method .limit stack 3 .limit locals 4 After all each thread must have it's own stack. So I

Re: Xss

2001-06-17 Thread Luba Powell
Also, lookup up java.util.Stack. It contains some limited stack manipulation methods. R/luba - Original Message - From: Luba Powell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 17, 2001 11:59 AM Subject: Re: Xss If you do: java -X you will see all extended

Re: Xss

2001-06-17 Thread Luba Powell
Sorry, Shai: is 10x some new option? R/luba - Original Message - From: Shai Deljo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 17, 2001 12:37 PM Subject: RE: Xss 10x -Original Message- From: Luba Powell [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001

Re: Xss

2001-06-17 Thread Luba Powell
what is the deafult stack size in Java(TM) 2 SDK, Standard Edition Version 1.3.0 for Linux ?? + i tested the Xss before and it didn't seem to work ?! Shai -Original Message- From: Luba Powell [mailto:[EMAIL PROTECTED]] Sent: Sunday

Re: Xss

2001-06-17 Thread Luba Powell
SDK, Standard Edition Version 1.3.0 for Linux ?? + i tested the Xss before and it didn't seem to work ?! Shai -Original Message- From: Luba Powell [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 6:59 PM To: [EMAIL PROTECTED] Subject: Re: Xss

Re: What are EJB

2001-06-17 Thread Luba Powell
putting Tomcat in your message was smart. this way we won't get in trouble with our colleagues. From were I stand the only thing that EJB and JavaBeans have in common is the presence of bean work in the name. I am sure that you know what is the advantage of JavaBeans since you wrote some. EJB

Re: session error after recompile a java class....BUG?

2001-06-17 Thread Luba Powell
Hello, Itsvan-- I think there is a bug in their Class loaders, or the strategy has not been thought out thru. There have been numerous postings on this subject. But I guess nothing will happen unless the community start to document and report those bugs instead of working around them, of which I

Re: session error after recompile a java class....BUG?

2001-06-17 Thread Luba Powell
- Original Message - From: istvan bereti [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 1:18 AM Subject: RE: session error after recompile a java classBUG? Well I put it as Serializable the object bound to session. It was a GOOD point but even this did not

Re: session error after recompile a java class....BUG?

2001-06-17 Thread Luba Powell
Ok. This is my 2 cents. Jini works predictably, save for Remote Exception. Obvious reason - network is inherently unreliable. See if you are more comfortable with this API, meaning not that you don't know better, but that it suites you precision requirement better. It seems that you are more

Re: session error after recompile a java class....BUG?

2001-06-17 Thread Luba Powell
Note: Jini API although can do more - is not for the faint of heart. One has to do lot of configuration work with little to none samples. But for the demanding audience - this will be a solution to the ClassLoader woes. r/luba - Original Message - From: Luba Powell [EMAIL PROTECTED

Re: session error after recompile a java class....BUG?

2001-06-17 Thread Luba Powell
? Well I stop here... I restart TOMCAT... THX -Original Message- From: Luba Powell [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 12:30 PM To: [EMAIL PROTECTED] Subject: Re: session error after recompile a java classBUG? Note: Jini API although can do more

Re: What are EJB

2001-06-17 Thread Luba Powell
bean work in the name Correction. *bean* word (not work) - Original Message - From: Luba Powell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 17, 2001 1:17 PM Subject: Re: What are EJB putting Tomcat in your message was smart. this way we won't get in trouble with our

Re: Can't happen - classname is null, who added this

2001-06-16 Thread Luba Powell
Venkatesh-- This message is generated by Tomcat ServletWrapper program. It is trying to load the servlet, but finds that it's class (note: Class not same as Object) is NULL. I sincerely doubt that there is a bug in their program - I would start looking at your CLASSPATH and other ENV

Re: Tomcat starting problem

2001-06-16 Thread Luba Powell
it is the command i used to start the tomcat. the following Using classpath: /user/staff/wapteam/tomcat=/lib/*:/user/staff/wapteam/tomcat/./tomcat.sh: usr/java1.2=/bin/java: not found is the error message. any help ? thanks - Original Message - From: Luba

Re: Can't happen - classname is null, who added this

2001-06-16 Thread Luba Powell
It is actually a flaw class loading. Every time a class is recompiled it generates a new id based on the class loading Mike, would you recommend to use our own ClassLoaders until this problem is fixed. Does it exist in version 4? R/Luba - Original Message - From: Michael Wentzel

Re: TomCat with win2000 and IIS....help...urgent

2001-06-16 Thread Luba Powell
Although, I don't work with IIS - I noticed there wer lots of posting on the subject of your interest. If you go to:http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ and search on IIS, filters, etc. I am sure you can find something to begin with... - Original Message -

Re: I write a simple servlet and now!?! how can run it? under tomkat?

2001-06-16 Thread Luba Powell
To quick-test your servlet - put it under \webapps\examples\WEB-INF\classes\ while html will go under \webapps\examples\servlets\ Update webapps\examples\WEB-INF\web.xml with you servlet entry - the same way the examples do. Use URL similar to what they have on the example page. R/Luba -

Re: Virtual Hosts

2001-06-16 Thread Luba Powell
Jason: Scott Tatum has a page on virtual hosting. I think it is very informative. http://www.worldcom.com/main.phtml?grph=1 I am not sure if he still can be reached at: [EMAIL PROTECTED] These are the subjects that he addressed at one time: 1. Introduction 2. Virtual Hosting Options 2.1

Re: about auto-reloading of TC4.0-b5

2001-06-16 Thread Luba Powell
Thank you. I'll try it on Monday. - Original Message - From: Bo Xu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 16, 2001 5:57 PM Subject: about auto-reloading of TC4.0-b5 Hi :-) * I use the foolowing symbol to try to explain my question :-) MyServlet(0): a

Re: Virtual Hosts

2001-06-16 Thread Luba Powell
-example : Apache-static configuration-example : per-context JVM : 1 configuration-example : per-context JVM : 2 configuration-example : VHosts Hope this page will help. R/Luba - Original Message - From: Luba Powell [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Jason Koeninger [EMAIL

Re: jsp help

2001-06-16 Thread Luba Powell
Hello, Jeremy: If you are familiar with servlets - there isn't much more to know about JSP. JSP is a short-hand for generating servlets. Just few tags to learn. The advantage of writing JSP tags is that (in our case) apache programs: parser, compilers, loaders parse these tags, generate servlets,

Re: jsp help

2001-06-16 Thread Luba Powell
Correction: tomcat (not apache) programs.. - Original Message - From: Luba Powell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 16, 2001 9:51 PM Subject: Re: jsp help Hello, Jeremy: If you are familiar with servlets - there isn't much more to know about JSP. JSP

Re: newbie: Starting Tomcat

2001-06-15 Thread Luba Powell
Look under logs directory for more messages. - Original Message - From: LeRoi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 5:11 AM Subject: FW: newbie: Starting Tomcat Hello, I'm new to java and was coming to grips with it until I got to the chapter on

Re: tomcat work with mozilla but not with IE

2001-06-15 Thread Luba Powell
Doesn't look that tomcat is running - Original Message - From: Christoph Brunner To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 9:48 AM Subject: tomcat work with mozilla but not with IE Hi, I had installed Tomcat as a stand-alone servlet container!

Re: Running secure tomcat

2001-06-15 Thread Luba Powell
Go to DOS prompt and type: policytool This will guide you thru the syntax - Original Message - From: Pernica, Jan [EMAIL PROTECTED] To: Tomcat-User (E-mail) [EMAIL PROTECTED] Sent: Friday, June 15, 2001 1:17 AM Subject: Running secure tomcat If I run tomcat 4.0b5 in the secure more

Re: IllegalAccessError when run from Tomcat

2001-06-15 Thread Luba Powell
Put: System.out.println(System.getSecurityManager()) into your program. Let us know what it says. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 11:20 AM Subject: IllegalAccessError when run from Tomcat When running a servlet from within

Re: I need help!!

2001-06-15 Thread Luba Powell
Could it be that those packages have incompatible classes: jakarta-tomcat-4.0-b5.zipjakarta-servletapi-4.0-b5.zip Why do you need jakarta-servletapi? tomcat supports servlets. - Original Message - From: Marc-andre Thibodeau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday,

Re: I need help!!

2001-06-15 Thread Luba Powell
! Thanks a lot! MA Luba Powell wrote: Could it be that those packages have incompatible classes: jakarta-tomcat-4.0-b5.zipjakarta-servletapi-4.0-b5.zip Why do you need jakarta-servletapi? tomcat supports servlets. - Original Message - From: Marc-andre Thibodeau

Re: executing the servlet

2001-06-15 Thread Luba Powell
Look at tomcat example, dude: . http://localhost:8080/example/servlets/index.html - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 2:13 PM Subject: executing the servlet What do I put in the url to execute a servlet on a localhost machine.

Re: web.xml

2001-06-15 Thread Luba Powell
leave it there. otherwise you would need to make an entry for your own app. just learn what they are doing first. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 2:47 PM Subject: web.xml Hi, in the directory ~webapps\examples\Web-inf

Re: Default web.xml

2001-06-15 Thread Luba Powell
What is the error message you are getting? - Original Message - From: cathy moffatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 4:09 PM Subject: RE: Default web.xml After much difficulty I did manage to get Tomcat3.2.2 to run servlets jsp, but only with

Re: jsp

2001-06-15 Thread Luba Powell
Cool question. JSP like a servlet has to have an entry. Luckily we don't have to worry about it since tomcat's JspC.java program not only dynamically creates the context but also loads the generated servlet. if (servletout != null) {

Re: IllegalAccessError when run from Tomcat

2001-06-15 Thread Luba Powell
I have some wierd conflict between different versions of classes with the same name? It seems that way. This is linkage error, meaning, it went thru compiler fine, but at run time the field definition changed. R/Luba - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]

mail return

2001-06-15 Thread Luba Powell
Sometimes I get weird message: The original message was received at Fri, 15 Jun 2001 13:35:56 -0700 (PDT) from localhost [127.0.0.1] Does anyone else receiving these?

Re: JSP Examples Error 500

2001-06-15 Thread Luba Powell
Why are you pointing to Enterprise version of JDK: $JAVA_HOME /usr/j2se shouldn't it be /usr/jdk1.3? - Original Message - From: Baker, Gary [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 4:33 PM Subject: JSP Examples Error 500 Hi, I've installed tomcat

Re: jvm.stder jvm.stdout

2001-06-15 Thread Luba Powell
tomcat.sh start logfile 21 - Original Message - From: Gary Rather [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 4:58 PM Subject: jvm.stder jvm.stdout I am running tomcat on a solaris box. Everything seems to be working correctly but I do not get a jvm.stderr or

weird messages

2001-06-15 Thread Luba Powell
Tim-- ([EMAIL PROTECTED]) I hope that WebDav doesn't mind if we learn something from you. If some of us is on the wrong track - please correct and point to the right direction. Thanks in advance for your constructive input.

Re: problem with mod_jk and Tomcat

2001-06-15 Thread Luba Powell
On 1. Invoke servlet will go where you tell it to go. Examine URL-PATTERN under \conf\web.xml: !-- The mapping for the invoker servlet -- !-- Comment this out if you do not want invoker service -- servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern

Re: Starting tomcat with existing network

2001-06-15 Thread Luba Powell
window for tomcat does not remain open. I assume this means that tomcat does not keep running. I think there is an error in the script. Try this: if you are running tomcat4 - do: \bin\catalina start if tomcat3 - do: \bin\tomcat start Examine logs. Make sure ENV Variables are

Re: session object

2001-06-14 Thread Luba Powell
Sounds like a pilot error. Works fine: % session.setAttribute(request,request); session.getAttribute(request); out.println(request: + request); % Outputs: request: org.apache.catalina.connector.HttpRequestFacade@649dcd - Original Message - From: [EMAIL PROTECTED] To: [EMAIL

Re: Using JSP to Save file

2001-06-14 Thread Luba Powell
Here is the example that works: html body center %@ page import=java.util.*, java.io.* % % Properties props = (Properties) application.getAttribute(PROPERTIES); if (props == null) { props = new Properties(); props.load(new

Re: Using JSP to Save file

2001-06-14 Thread Luba Powell
Sorry - send you the wrong example. replacd file name with the complete path. Don't forget to flush. - Original Message - From: Foo Shi Hao [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 8:45 AM Subject: Using JSP to Save file Hey all~! Got something to ask.

JSP/Jini

2001-06-14 Thread Luba Powell
Any suggestions on the best way to hook JSP and Jini? Thanks.

Re: installation of tomcat on windows 98

2001-06-14 Thread Luba Powell
From: TOMCAT_HOME\bin type: tomcat start - Original Message - From: Prasad Medepalli To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 11:02 PM Subject: installation of tomcat on windows 98 Hi, I downloaded JDK 1.3 and

Re: How can I make tomcat to instantiate a class

2001-06-14 Thread Luba Powell
JSP will do it for you. Example: html body %@ page language=java % %@ page import=javabean.Counter % !-- page, request, session, application -- jsp:useBean id=counter scope=page class=javabean.Counter / % out.println(Count from scriplet = + counter.getCount()); % br Count from

Re: MultiThreadModel-Problem?

2001-06-14 Thread Luba Powell
HttpServlet is not thread safe. Synchronize your code where needed - Original Message - From: Sebastian Schulz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 11:08 AM Subject: MultiThreadModel-Problem? hi, i use a servlet in MultiThreadModel-mode (default).

Re: Bug or feature

2001-06-14 Thread Luba Powell
Stupid question on my part, but you certainly called super.init(config)? - Original Message - From: Zsolt Koppany [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 10:28 AM Subject: Bug or feature Hi, I want a servlet executed when tomcat is started, thus I

Re: MultiThreadModel-Problem?

2001-06-14 Thread Luba Powell
Message- From: Luba Powell [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 14, 2001 8:20 AM To: [EMAIL PROTECTED] Subject: Re: MultiThreadModel-Problem? HttpServlet is not thread safe. Synchronize your code where needed - Original Message - From: Sebastian Schulz [EMAIL

Re: Where can I tune the Server-load ?

2001-06-14 Thread Luba Powell
\conf\server.xml For each connector: !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className="org.apache.catalina.connector.http.HttpConnector" port="8080" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0"

Re: MultiThreadModel-Problem?

2001-06-14 Thread Luba Powell
OK to use, but only in certain context: protected Map clientList = Collections.synchronizedMap( new HashMap()); Notice the reference to the static method... - Original Message - From: Bo Xu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 1:11 PM Subject: Re:

Re: Graceful Shutdown

2001-06-14 Thread Luba Powell
tomcat stop should work fine if the tomcat.bat is working correctly. It just executes org.apache.tomcat.startup.Tomcat -stop program that hopefully does everything gracefully and then resets ENV variables - Original Message - From: Tim O'Neil [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: Forwarding JSP and Browser Options

2001-06-14 Thread Luba Powell
Popup windows are best left to JavaScript. I suppose one could create JavaScript code via out.println within % tag , but too much work for nothing. R/L - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 1:07 PM Subject: Forwarding JSP and

Re: memory allocation

2001-06-14 Thread Luba Powell
Not to worry. The only time that I know you need to set objects to null is when you write servers and inside you (while (true).. eternal loop. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 1:41 PM Subject: memory allocation hi all , i

Re: How can I make tomcat to instantiate a class

2001-06-14 Thread Luba Powell
This is what I suggest you do: Create Gateway class (login class) that metes out Session objects to callers via getMySession() method. Inside this method I would deserialize the bean object from the file and added it as an attribute inside the session. It is a common

Re: Does Tomcat support Server Side Includes

2001-06-14 Thread Luba Powell
Under Tomcat4 they are in: CATALINA_HOME\webapps\examples\jsp\ I surpose that under Tomcat3 there would be in the same directory but under TOMCAT_HOME... - Original Message - From: kevin ritter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 2:46 PM Subject: Re:

Re: Forward and Inclide

2001-06-14 Thread Luba Powell
My understanding is that JSP:FORWARD is translated by into pageContext.forward(String url, String parm) So it is just a JSP specific implementation of javax.servlet.ServletContext interface that provides javax.servlet.RequestDispatcher where you can imlement forward(ServletRequest req,

Re: Graceful Shutdown

2001-06-14 Thread Luba Powell
To avoid confusion - let's step thru \bin\tomcat.bat script: bin\tomcat.bat stop if %1 == start goto startServer .. :stopServer rem Stopping the Tomcat Server %_RUNJAVA% %TOMCAT_OPTS% -Dtomcat.home=%TOMCAT_HOME% org.apache.tomcat.startup.Tomcat -stop %2 %3 %4 %5 %6 %7 %8 %9 ... where

Re: Graceful Shutdown

2001-06-14 Thread Luba Powell
org.apache.tomcat.startup.Tomcat is a program ... that actually executes shutdown or calls another java program goto cleanup . - Original Message - From: Luba Powell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 4:42 PM Subject: Re: Graceful Shutdown To avoid confusion - let's step thru

Re: How can I make tomcat to instantiate a class

2001-06-14 Thread Luba Powell
This is OK. But I surpose that the writer wanted to create session specific JavaBean. He probably wants to make it a plug-n-play object that servlet tends not to be. Further, to make it session specific - that is preserving session data integrity in the multi-threaded environment - he might

setting vars to null

2001-06-14 Thread Luba Powell
I apologize but I earlier deleted the message that contained the message that one doesn't have to ever ever setlocal variables to null... Well, it is almost true. In the "for ever" loop (in servers) large arrays are referenced until method returns. When the method does not return - it

Re: How can I make tomcat to instantiate a class

2001-06-14 Thread Luba Powell
This awfully good... - Original Message - From: Bo Xu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 5:15 PM Subject: Re: How can I make tomcat to instantiate a class ...But actually my problem was to instantiate a class when tomcat boots up...so that i can

JSP and JINI

2001-06-14 Thread Luba Powell
My apology for posting it twice. Did anyone got the mechanics to fuse JSP and JINI? If yes - please send some code and configuration files. No point to reinvent the wheel... R/L

Re: running examples in Tomcat 4.0 b5

2001-06-14 Thread Luba Powell
This is where you start. Under \conf\server.xml find !-- Tomcat Examples Context -- Context path=/examples docBase=examples debug=2 bumpup debug level to 99 or higher than 2. Then examine your logs. - Original Message - From: Marc-andre Thibodeau [EMAIL PROTECTED] To:

Re: Tomcat hangs if I refer to a context that doesn't exist

2001-06-13 Thread Luba Powell
Bump up the LogLevel to DEBUG in httpd.conf file and look in the log for detail messages - Original Message - From: Amos Shapira To: '[EMAIL PROTECTED]' Sent: Wednesday, June 13, 2001 4:58 AM Subject: RE: Tomcat hangs if I refer to a context that doesn't

reloading JSP

2001-06-13 Thread Luba Powell
What do I need to do to have Tomcat4 automatically reload JSP pages that contain beans and other classes. Right now I am just deleting stuff from work directory, thus forcing recompilation. There must be a better way. And I dutifully put reload flag into server.xml file: Context

Re: tomcat-3.3-m3 startup problems + some mod_webapp weirdness

2001-06-13 Thread Luba Powell
Someone had this problem earlier today. As in NoClassDefError NoSuchMethodError occurs at link time. In earlier case it was incorrect or overshadowed path. May be that person will be more specific as which environment variable was causing the loss of reference to the class - Original

Re: Tomcat as Service Crashing.

2001-06-13 Thread Luba Powell
Randy-- Will System.exit(0) inside the servlet crash the JVM? - Original Message - From: Randy Layman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 4:42 PM Subject: RE: Tomcat as Service Crashing. I don't think that this is the problem that is typically found

Re: Tomcat as Service Crashing.

2001-06-13 Thread Luba Powell
Yap! As sad as it is - I could crash THE JVM started by Tomcat by merely putting System.exit(-9) in my servlet. How can webmasters protect themselves from such code? - Original Message - From: Luba Powell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 5:27 PM

Re: Tomcat as Service Crashing.

2001-06-13 Thread Luba Powell
Yes, o'course in production. In my mind - there is no place for this method in HttpServlet - it should throw the Exception. OK for GenericServlet, but this is Javasoft problem. R - Original Message - From: David Wall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13,

Re: Tomcat as Service Crashing.

2001-06-13 Thread Luba Powell
What you say - is all correct. But some basic security policy protecting the integrity of the JVM could be embedded as part of tomcat distribution. Because how many questions are we getting on the system - JVM unexpectedly crash. And in real life many companies *should* but really *do* have one

Re: Need some info about jsp/jscript

2001-06-12 Thread Luba Powell
Attached is JDBC/ODBC code. - Original Message - From: Marcel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 9:41 AM Subject: Need some info about jsp/jscript Ok, tomcat works! Cool. Now i want to do some jsp and jscript programming. Do i need a book? Or

Re: the name of the page you are at

2001-06-12 Thread Luba Powell
Did somebody ask for JDBC/ODBC JSP sample? I sent it earlier, but the mail bounced back because .jsp type attachments not allowed! :) html titleSelect SQL JSP/title body center %@ page language=java import=java.sql.* % % Connection con = null;

Re: Parsing error on the web.xml file on Tomcat 4.0b5

2001-06-12 Thread Luba Powell
no /description tag terminator: display-name/display-name description servlet servlet-nameControllerServlet/servlet-name display-nameCentralServlet/display-name servlet-classControllerServlet/servlet-class /servlet - Original Message - From: Vernon Wu To:

Re: Java Question

2001-06-12 Thread Luba Powell
Yes. Monitor lock need to be put on code (preferred) or method wherever they care accessed by more than one thread. Example: static void doSort (int [] arr) { .. synchronized(arr) { // sensitive code } } .method static doSort([I)V aload_0 monitorenter ;

Re: Java Question

2001-06-12 Thread Luba Powell
Actually the outcome is predictable: monitorenter will obtain objectref on this (aload_0) * if no other thread has locked the object * if the object is currently locked by another thread (monitorenter instruction) * if the current thread already owns a lock - the lock is released when the counter

Re: Java Question

2001-06-12 Thread Luba Powell
You are right. In one case the outcome between native and classic implementation on locking the class can be different, specifically: in classic model there is a so tiny chance of missed notification of monitorenter since it takes dy/dx time to transfer from the wait to the ready queue. In all

Re: Java Question

2001-06-12 Thread Luba Powell
that, but is that all that is needed to synchronize something? Brandon -Original Message- From: Luba Powell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 1:52 PM To: [EMAIL PROTECTED] Subject: Re: Java Question Actually the outcome is predictable: monitorenter

Re: static,synchronized and classloaders(was:Java Question)

2001-06-12 Thread Luba Powell
Title: RE: static,synchronized and classloaders(was:Java Question) If your context points to another virtual machine - yes. On the same virtual machine static is static - Original Message - From: Cox, Charlie To: '[EMAIL PROTECTED]' Sent: Tuesday, June 12, 2001

Re: static,synchronized and classloaders(was:Java Question)

2001-06-12 Thread Luba Powell
Title: RE: static,synchronized and classloaders(was:Java Question) Also, look ifidentical files are generated based on 2 different context: abc.MyClass is not the same as xyx.MyClass. If 2 class loaders load from identical class files - JVM verifier should throw the exception before a

  1   2   >