Re: Creating threads from a servlet

2002-03-19 Thread Bo Xu
- Original Message - From: Anthony Eden [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 12:45 PM Subject: RE: Creating threads from a servlet -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent:

Re: image manipulating via servlets on tomcat4

2002-03-12 Thread Bo Xu
- Original Message - From: yilmaz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 9:54 AM Subject: image manipulating via servlets on tomcat4 Hi everybody, I am using tomcat4 on win 2000. I have searched all the archives and almost all

Re: Can a servlet exit?

2002-02-07 Thread Bo Xu
- Original Message - From: Gary Lawrence Murphy [EMAIL PROTECTED] To: Tomcat Users [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 1:55 AM Subject: Can a servlet exit? can a servlet remove itself? I have a situation where a servlet's configuration file may require on-the-fly

Re: !!!VIRUS SENT THRU THE MAILING LIST: new photos from my party!

2002-01-29 Thread Bo Xu
... Imagine there's no Virus :-) It isn't hard to do ... A brotherhood of man ... Imagine all the people Living life in peace... You may say I'm a dreamer But I'm not the only one I hope someday you'll join us And the world will be as one ... J. L. :-) Jan292002 -- To unsubscribe:

Re: problem compiling a servlet

2002-01-24 Thread Bo Xu
- Original Message - From: graghavan [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 2:04 PM Subject: problem compiling a servlet i have problem compiling a servlet; pls help out. i have j2sdk1.3.1 in my 'path' and is installed alright. i

Re: About persistent

2002-01-23 Thread Bo Xu
- Original Message - From: Bo Xu [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 1:41 PM Subject: Re: About persistent - Original Message - From: Vjeran Marcinko [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent

Re: Tomcat, Threads and IllegalAccessError

2002-01-23 Thread Bo Xu
- Original Message - From: Michael Engelhart [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 2:17 PM Subject: Re: Tomcat, Threads and IllegalAccessError Oh and for your other question I have the 3rd party library stored in the Tomcat

Re: Asynchronous messages from servlets

2002-01-22 Thread Bo Xu
- Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 22, 2002 1:04 PM Subject: Re: Asynchronous messages from servlets On Tue, 22 Jan 2002, Ronald Wildenberg wrote: Date: Tue, 22 Jan 2002 09:50:14 +0100

Re: multiple instance of tomcat4.0

2002-01-22 Thread Bo Xu
- Original Message - From: Ashish kulkarni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 22, 2002 2:37 PM Subject: multiple instance of tomcat4.0 Hi, I want to create multiple instance of tomcat, so how can i do it??? i have read the RUNNING.txt in the

about Timeout

2002-01-21 Thread Bo Xu
I have a client developed by VC++6.0, this client sends a long byte[] http stream to IIS + connector + TOMCAT3.3(which is running on JDK1.4 SUN RI), but I often got java.net.SocketTimeOutException. Could anybody tell me how I can set the TimeOut value into the underlying socket? Thanks

Re: Anybody know why tomcat 4.0.1 does not look in the classes directory for resources?

2002-01-18 Thread Bo Xu
- Original Message - From: Christopher Chan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 18, 2002 6:00 AM Subject: Anybody know why tomcat 4.0.1 does not look in the classes directory for resources? I have a problem. I have two webapps running on Tomcat. The first one

my question about Java GC-performence

2002-01-09 Thread Bo Xu
Dear friends, I found some info about Java GC-performence, they said Java GC-performence has some problems(for ex., they said for a long living-period object, before this object is GCed, sometiomes all objects made inside that object(by new) will not be GCed, even if the programmers already set

Re: NoClassDefFound

2002-01-09 Thread Bo Xu
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 2:08 PM Subject: NoClassDefFound Hi all, I am trying to run a stand alone class using the java + classname.class command and I got the NoClassDefFoundError exception. Could

Re: McClanahan Hints

2001-12-20 Thread Bo Xu
- Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 20, 2001 3:26 PM Subject: Re: McClanahan Hints On Wed, 19 Dec 2001, Micael Padraig Og mac Grene wrote: Date: Wed, 19 Dec 2001 22:53:05 -0800 From:

Re: How to find a file from a class with Tomcat

2001-12-19 Thread Bo Xu
- Original Message - From: Stephan Wiesner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001 9:36 AM Subject: How to find a file from a class with Tomcat I have a Servlet S.java which uses a class C.java (not a servlet itself, could make it

Re: AW: Classloader question

2001-12-17 Thread Bo Xu
- Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 17, 2001 1:51 PM Subject: Re: AW: Classloader question On Mon, 17 Dec 2001, Lauer, Oliver wrote: But why wasn't the class found in myapp/WEB-INF/lib ?

Re: CPU utilization on NT with 2 processors

2001-12-06 Thread Bo Xu
- Original Message - From: "Tomasz Janyska" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 9:54 AM Subject: CPU utilization on NT with 2 processors Hi Does anybody know the reason why on 2 CPU my Tomcat is after few hours running like crazy, utilizing 50% of

Re: Setting the alocated memory to Tomcat 4.0.1

2001-12-06 Thread Bo Xu
- Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:52 PM Subject: Setting the alocated memory to Tomcat 4.0.1 Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does

Re: Setting the alocated memory to Tomcat 4.0.1

2001-12-06 Thread Bo Xu
-Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:10 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December

Re: Double check idiom broken - Tomcat uses it ?

2001-12-06 Thread Bo Xu
I have already forward your 2 emails to TOMCAT-developer, haha :-) Bo Dec.06, 2001 - Original Message - From: Jeff Kilbride [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 2:41 PM Subject: Re: Double check idiom broken - Tomcat uses it ?

Re: java.lang.OutOfMemory error

2001-12-05 Thread Bo Xu
using tomcat, running servlet and jsp. Where should I specify these options? in environment variable? Susan - Original Message - From: Bo Xu [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 4:31 PM Subject: Re: java.lang.OutOfMemory error

Re: HTTP method POST is not supported by this URL

2001-12-04 Thread Bo Xu
- Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 3:18 PM Subject: Re: HTTP method POST is not supported by this URL Larry Isaacs wrote: If you POST to a servlet which extends HttpServlet and that

Re: HTTP method POST is not supported by this URL

2001-12-04 Thread Bo Xu
- Original Message - From: Jim Urban [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 4:07 PM Subject: RE: HTTP method POST is not supported by this URL So, doPost calls itself in an endless loop, sending the servlet into oblivion... Or

Re: HTTP method POST is not supported by this URL

2001-12-04 Thread Bo Xu
- Original Message - From: Bo Xu [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 6:41 PM Subject: Re: HTTP method POST is not supported by this URL - Original Message - From: Jim Urban [EMAIL PROTECTED] To: Tomcat Users List [EMAIL

Re: How to create global variables wich could be accessed by alljsp sites and servlet's?

2001-12-03 Thread Bo Xu
-Original Message- From: Sebastian Hagenbrock [mailto:[EMAIL PROTECTED]] Sent: 03 December 2001 14:36 To: Tomcat Maillist Subject: How to create global variables wich could be accessed by all jsp sites and servlet's? Hi, I've found nothing about how to save Variables wich are

Re: Quick Servlet Question

2001-11-29 Thread Bo Xu
- Original Message - From: Brandon Cruz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 4:06 PM Subject: Quick Servlet Question Is there a way to use the request object or anything else to get the real path to a folder that the servlet

Re: Basic servlet question

2001-11-29 Thread Bo Xu
- Original Message - From: Hawkins, Keith (Keith) [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 5:54 PM Subject: Basic servlet question How many instances of a given servlet class will be loaded by Tomcat. Just 1 or can many instances be

Re: [repost] loading class files

2001-11-19 Thread Bo Xu
- Original Message - From: Yiu Wing [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 19, 2001 1:58 AM Subject: Re: [repost] loading class files I suggest you put YourApplet.class together with your html/image or other static contents), for ex. :

Re: [repost] loading class files

2001-11-18 Thread Bo Xu
I suggest you put YourApplet.class together with your html/image or other static contents), for ex. : webapps/yourapp0/staticContent/ (staticContent is a folder made by you) reference email :-) In which directory of the

Re: Caching of Classes

2001-11-13 Thread Bo Xu
- Original Message - From: Ken M. Mevand [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 12, 2001 11:54 PM Subject: Caching of Classes hi, this question has probably been asked a lot, but i can't seem to find the answer. how do i get tomcat to reload the classes

Re: cryptography - slow starting????

2001-11-13 Thread Bo Xu
- Original Message - From: Gerry Duhig [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; David Wall [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 1:36 PM Subject: Re: cryptography - slow starting I guessed as much! How do I force it to happen at startup? Gerry [...]

Re: ClassNotFoundException when using war file (Tomcat 3.2.3)

2001-10-31 Thread Bo Xu
WEB-INF is case sensitive, it can not be Web-inf or other... Bo Oct.31, 2001 [EMAIL PROTECTED] wrote: I'm new to tomcat but shouldn't it bet WEB-INF? isn't it case sensitive? Scott Archer [EMAIL PROTECTED] [...] Hi, I am trying to use a war which has some jar files in it for my web

Re: servlet upload

2001-10-24 Thread Bo Xu
E B wrote: In my webapp under tomcat, I am using oreilly's cos.jar for uploading files. I observe that repeated uploading of same file fails. ie., when I upload a file for second time(different content, same file name), in my servlet I am getting the old file only. It is probably due to

Re: OffTopic: sign-off from the list

2001-10-23 Thread Bo Xu
simon wrote: To remove your address from the list, send a message to: [EMAIL PROTECTED] While we're off topic, anyone fancy going for a beer? I've had an awful day! [...] sorry off-topic :-) haha :-) I've had many awful days :-) too much presure and problem :-) I am trying

Re: InitParameters

2001-10-01 Thread Bo Xu
I suggest you need to use your servlet-name to invoke your Servlet if you want to use your init-param, it will force your init-param to be included, for example: http://xxx.xxx.xxx.xxx:8080/myapp/servlet/remoteServlet if you use your Servlet class name to invoke your Servlet, for example:

Re: How to Instaniate Bean from Servlet?

2001-09-22 Thread Bo Xu
[EMAIL PROTECTED] wrote: Hello, Please note: This email was submitted twice because of an error in the SQL statement in the first email. I am having a problem instaniating a Javabean from a Servlet. When compiling the Servlet the following error occurs: 'cannot resolve symbol: Linkbean

Re: optimal SUN JVM config

2001-09-06 Thread Bo Xu
[EMAIL PROTECTED] wrote: Hi there the subject of my posting was a bit inacurate ;( I know this question is a bit general. but I am very interested in which Sun Hotspot jvm options you are using to start up tomcat. (like -server -Xincgc ...) And what impact they had/have on

Re: Connection pooling Question

2001-08-22 Thread Bo Xu
A.L. wrote: I have created a servlet class (using DBConenctionbroker from javaexchange) which upon initialization creates a number of database conenctions. The init method is the only method defined. My plan now is to create a number of servlets which extend this class by defining

Re: Version

2001-08-16 Thread Bo Xu
Barnabas Yohannes wrote: Folks, How do I know what version of tomcat I have on my apache server? This dude who installed tomcat for us, I think, he installed only the beta release of tomcat. Now, he is asking $10,000 to fix it. Oh holly cow! was my bosses reaction.:) I used the

Re: Session of Tomcat.

2001-08-16 Thread Bo Xu
Harden ZHU wrote: Hi, Can I catch the event when a session is created from tomcat? Thx Harden in: http://www.javaworld.com/javaworld/jw-01-2001/jw-0126-servletapi_p.html ... The session listener model is similar to the context listener model. In the session model, there's an

Re: auto-reload classes

2001-08-15 Thread Bo Xu
Mills, Theo wrote: Where is the option to toggle the auto-reload classes capability? In other words, i make a change to a class in my WEB-INF/classes directory. Don't I normally need to restart tomcat? Is there an option that avoids a restart? -Theo the auto-reloading of TC4.0-b6/b7 works

Re: Tomcat 4.0 Status

2001-08-13 Thread Bo Xu
Jim Urban wrote: I just got back from a 2 week vacation, and was wondering what the status of Tomcat 4.0 was. When will it be ready for prime time (production)? [...] TC4.0-b7 is available :-) Bo Aug.13, 2001

Re: URL rewriting

2001-08-09 Thread Bo Xu
YueMa wrote: Hi there, How can I config Tomcat to use URL rewriting as session tracking mechanism? Thanks! good email for you :-) http://mikal.org/interests/java/tomcat/archive/view?mesg=35357 http://mikal.org/interests/java/tomcat/archive/view?mesg=35358 Bo Aug.09, 2001

Re: Class reloading

2001-07-19 Thread Bo Xu
Reynir Hübner wrote: does anyone know how this(note: Class-reloading) is in tomcat 4 ? thanx -r [...] Hi :-) * Servlet-auto-reloading in TC4.0b5 from my work, Servlet-auto-reloading works well, but just from my testing, if I put MyServlet in both: - WEB-INF/classes (unpacked

Re: Class reloading

2001-07-19 Thread Bo Xu
wrote: Miscellaneous updates embedded below, related to Tomcat 4. On Thu, 19 Jul 2001, Bo Xu wrote: Reynir Hübner wrote: does anyone know how this(note: Class-reloading) is in tomcat 4 ? thanx -r [...] Hi :-) * Servlet-auto-reloading in TC4.0b5 from my work

Re: URL vs. cookies

2001-07-16 Thread Bo Xu
Georges Boutros wrote: hi, i'd like to know where can i set tomcat to send the JSESSIONID on the URL instead of using the cookies? thanks Georges Hi :-) good email for you //haha :-) * n Sun, 20 May 2001, Robert Nicholson wrote:

Re: How can I get Tomcat Code?

2001-07-13 Thread Bo Xu
Sunil Chandurkar wrote: Hello all.. How can I get source code for Tomcat? I want to try to build this code for VxWorks? If anybody can help me to build it for VxWorks please let me know. Please provide me link to get code if possible? [...] Hi :-) for example, the source code of

Re: creating a instance of a servlet: takes too long!!

2001-07-06 Thread Bo Xu
pedro salazar wrote: Greetings, why is that my servlet when the first time is invoked, it takes about 30 seconds or more to start when the servlets that came in tomcat are instantaneous? After the servlet container instantiated and initialized my servlet, all the following requests are

Re: creating a instance of a servlet: takes too long!!

2001-07-06 Thread Bo Xu
Bo Xu wrote: pedro salazar wrote: Greetings, why is that my servlet when the first time is invoked, it takes about 30 seconds or more to start when the servlets that came in tomcat are instantaneous? After the servlet container instantiated and initialized my servlet, all

Re: [tomcat-user] how to use generic servlets

2001-07-02 Thread Bo Xu
Hi :-) I found a email in Servlet-List about this topic: *** Gokul Singh wrote: Servlets were orignally envisaged to be a server side programming API for almost all protocols and as a special case, support was provided in the API for HTTP.

Re: [Tomcat Documentation Redactors To Hire] - WAS: TOMCAT SUCKS

2001-06-29 Thread Bo Xu
GOMEZ Henri wrote: [...] We all know that tomcat documentation is incomplete and we need help in that area. Tomcat IS AN OPENSOURCE project with a big user community, Jon Stevens recently reported more than 50-100k downloads / month. Everybody could be involved in the project, and not

Re: Progmatically retriving files in WEB-INF

2001-06-29 Thread Bo Xu
Christopher Kirk wrote: [...] InputStream inputStream = getServletConfig().getServletContext().getResourceAsStream(me.txt); if (inputStream == null) { System.out.println(NULL); } else { System.out.println(NOT NULL); } } } However, inputStream is

Re: AW......

2001-06-29 Thread Bo Xu
T wrote: Friday, June 29, 2001, 9:22:48 AM, you wrote: NW i notified her company to fix their server and/or disable her vacation message before weekend. hope they do. :) NW -nico Well, since it's herold.at I hope that it's not a small enough outfit so everyone went on vacation together :)

Re: una pregunta

2001-06-27 Thread Bo Xu
Milt Epstein wrote: On Wed, 27 Jun 2001, Martin Mauri wrote: Ni hao ma? :) Hen hao! [...] hahahahaha :-) Ge Wei Di Xiong Men, Jin Tie Fa Gong Zi! every brother, today get salary! null null null, null

Re: Relative file path

2001-06-27 Thread Bo Xu
Julia Kuznetsov wrote: Is there a way to use relative file path (ex. examples/docs/test.xml) when accessing(reading etc.) it from servlet rather then absolute (ex. D:\smthg\app\docs\test.xml) path. Ex. : I have web app examples that mapped to d:\smthg\app. My file test.xml is in

Re: tomcat tutorial

2001-06-25 Thread Bo Xu
alex chang wrote: anyone know of any good tomcat tutorials? to be honest the user guide doesn't really help. [...] Hi :-) please see the following WEB sites: - http://www.filip.net/tomcatbook/ - http://tomcat.mslinn.com/ Bo June 25, 2001

Re: session timeout handling

2001-06-23 Thread Bo Xu
Bo Xu wrote: [EMAIL PROTECTED] wrote: When a Tomcat session times out does it send you to a preset error page? What is the mechanism there? What is the best way to handle timed out users? Hi :-) I suggest you make a object witch implements

Re: User IP Address

2001-06-22 Thread Bo Xu
Mark Muffett wrote: Anyone know if it's possible to use JSP / Tomcat to get user IP addresses (for logging)? - or any other user info that might go to the server (like referrer)? Ideas and sample code would be very welcome... Thanks Mark Hi :-) I suggest you try: -

Re: session timeout handling

2001-06-22 Thread Bo Xu
[EMAIL PROTECTED] wrote: When a Tomcat session times out does it send you to a preset error page? What is the mechanism there? What is the best way to handle timed out users? Hi :-) I suggest you make a object witch implements javax.servlet.http.HttpSessionBindingListener, and put object

Re: flushing

2001-06-20 Thread Bo Xu
[...] How can I flush Tomcat? Nothing from the PrintWriter reaches the browser until the servlet completes. flush() does nothing. Has anybody altered the facade classes to enable flushing? Why is Tomcat set up that way? Thanks. [...] Hi :-) you can use ServletResponse.flushBuffer(),

Re: flushing

2001-06-20 Thread Bo Xu
T wrote: Wednesday, June 20, 2001, 8:16:23 AM, Brett M. Bergquist [EMAIL PROTECTED] wrote: BMB Which version of Tomcat are you refering to? If Tomcat 3.2.X, try the BMB HttpServletResponse.flushBuffer() method. This works for me in Tomcat 3.2.2. Perfect! Thanks. It looks like this also

how to make a war file?

2001-06-19 Thread Bo Xu
Hi :-) could anybody tell me how to put a myapp/Servlet-context into a war file? I can do something similar with J2EERI, but I don't know how to do it by myself: - is war-file a jar-file? - which command/tool can I use to do it? thanks in advance! Bo June 19, 2001

Re: Regarding loading a class on startup

2001-06-19 Thread Bo Xu
Pankaj Chhaparwal wrote: Hi, I want to load a class in the memory when the tomcat server starts. Basically this class has some static data which I want the application to use. I want to keep the data at application level. Regards, Pankaj Hi :-) - in Servlet spec2.3, there is a new

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

2001-06-17 Thread Bo Xu
istvan bereti wrote: Hi, I don't know what is wrong but it might be a Tomcat bug... My session handling is working fine as long as I don't reload a class. Than the object bound to the session is very ugly. I got the object from the session and the getClass() says that it's my BoundObject

about auto-reloading of TC4.0-b5

2001-06-16 Thread Bo Xu
Hi :-) * I use the foolowing symbol to try to explain my question :-) MyServlet(0): a old version of MyServlet MyServlet(1): a new version of MyServlet MyServlet(2): a newer(more) version of MyServlet MyServlet(3): a newer(more more...) version of MyServlet ... but: as a

Re: How can I make tomcat to instantiate a class

2001-06-14 Thread Bo Xu
...But actually my problem was to instantiate a class when tomcat boots up...so that i can use that object across sessions.Can u suggest something towarsd this. [...] Hi :-) I find the following is from servlet-2_3-pfd2-spec.pdf(for Servlet containers which supports Servlet spec2.3): * ...

Re: static,synchronized and classloaders

2001-06-13 Thread Bo Xu
Hi :-) I did a test with TC4.0-b5(standalone, J2SE1.3, winnt40): * cases: - % put the Same MyServlet.class in WEB-INF/classes in Different Context path which has Different Context docBase % put the Same MyServlet.class in the Same MyJar.jar file in WEB-INF/lib in Different

Re: static,synchronized and classloaders

2001-06-13 Thread Bo Xu
June 13, 2001 - Original Message - From: Bo Xu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 11:10 AM Subject: Re: static,synchronized and classloaders Hi :-) I did a test with TC4.0-b5(standalone, J2SE1.3, winnt40): * cases: - % put

Re: /lib /WEB-INF/lib

2001-06-08 Thread Bo Xu
eric ng wrote: Hi, In tomcat or other servlet engine implements the spec. there are 2 place to put JAR files: 1) d:/tomcat/lib 2) d:/tomcat/webapps/abc/WEB-INF/lib I wonder what's the difference putting JAR in the 2 directory? any performance difference? Should I always put JAR into

Re: Questions about Tomcat Cookies

2001-06-06 Thread Bo Xu
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 4:25 AM To: [EMAIL PROTECTED] Subject: Questions about Tomcat Cookies Hi, I have used tomcat as standalone and w/ apache also. In my applications , session tracking is working

Re: a newbie question...

2001-06-02 Thread Bo Xu
Gilson do N. D'Elrei wrote: hello all,I have made a simple servlet (HelloWorldServlet2) and added it on my WEB-INF/Classes context. When I try to execute it using the url below: http://server:8080/mycontext/servlets/HelloWorldServlet2 i received not found (404) error. I tried also:

Re: Classloader, JNI and already loaded in another classloader

2001-06-01 Thread Bo Xu
[...] I have a webapp running under Tomcat 3.2.1 that needs to make JNI calls in order to access data and methods in legacy C++ code. A servlet is loaded on startup of the webapp that, as part if its init method, causes a data set specific to that webapp instance to be loaded into the C++

Re: archives

2001-05-31 Thread Bo Xu
[EMAIL PROTECTED] wrote: hi, i'd like to know where i can view the archives ? thanks [...] Hi :-) - http://jakarta.apache.org/site/mail2.html - click Tomcat-User Archives - http://mikal.org/interests/java/tomcat/index.jsp Bo may.31, 2001

Re: Servlets and relative paths

2001-05-30 Thread Bo Xu
Chris McNeilly wrote: Thanks Bo. This is certainly a step in the right direction. I can now include the xml file and xsl file using relative paths. My only problem now is that there are xsl includes inside the xsl files and they are still being loaded incorrectly (using the tomcat/bin

Re: Signed certificate and tomcat

2001-05-29 Thread Bo Xu
François Andromaque wrote: I'm using tomcat on stand-alone (without apache), i want to configure tomcat to work with SSL by self signing my server certificate. The documentation TOMCAT and SSL (SSL direct) suggest to import a cert with openssl :[...] Hi :-) could anybody tell me where I

Re: Servlets and relative paths

2001-05-29 Thread Bo Xu
Chris McNeilly wrote: I've got a servlet and am trying to open files. The problem is that its defaulting to the tomcat/bin directory whenever I attempt to refer to them. How can I change this? Hardcoding the path isn't such a good idea as my dev environment is different from production.

Re: CookieServlet giving a NullPointerException

2001-05-19 Thread Bo Xu
John Sisk wrote: Hi, This is the start of the stacktrace I get when I try the Tomcat (v 4.0-b-5)CookieExample servlet. Worked fine on Tomcat 3.2 win98/win2k, broke when I upgraded to 4.0. Has anyone else seen/fixed this before I start digging? A Servlet Exception Has Occurred

Re: Bean Choices (code question)

2001-05-18 Thread Bo Xu
Jeff Kilbride wrote: Hi Charlie, [...] On the same subject, are class constructors called when static methods are accessed? Right now, in my all static method classes, I'm doing my initialization in static blocks. I'm wondering if I can move that initialization into the class constructor,

Re: servlet chaining, session null

2001-05-17 Thread Bo Xu
[EMAIL PROTECTED] wrote: Hi, i'm trying to use Servlet chaining with three servlets. In the first one i create a cession (if it doesn't exist), in the second one i put some attributes in the cession. But when i arrive in the third servlet, my session is null? As anybody already had this

Re: servlet chaining, session null

2001-05-17 Thread Bo Xu
[EMAIL PROTECTED] wrote: Well, all my servlets are on the same webapps. I don't use the url rewriting, but the HttpSession. for example in the first servlet: HttpSession session = request.getSession(false); if (session == null) session = request.getSession(true);

Re: Add logic to session tracking?

2001-05-16 Thread Bo Xu
David M. Rosner wrote: Hello All, As a developer using Tomcat, is there anyway to override or add logic to parts of Tomcat's session tracking/setting mechanisms? Or do I need to get my hands on the source code, make changes, and then recompile? Basically I want to add my own session

Re: Webapp initialization (tomcat 4)

2001-05-16 Thread Bo Xu
Peter Mutsaers wrote: Jon == Jon Stevens [EMAIL PROTECTED] writes: Jon You could implement a Singleton based Service. This is what Jon Turbine did. It has an entire Service framework for dealing Jon with exactly this problem. It takes care of startup and That's a good idea. I

Re: Help: init parameters fail.

2001-05-14 Thread Bo Xu
jackling wrote: I was trying an example of java servlet book. In the example, the prog. (see excerpt below) should read the parameter values from web.xml and use the values accordingly. However, it seems it is unable to read the values thus only able to give me default values the prog. use.

Re: How tomulti thread a servlet

2001-05-14 Thread Bo Xu
Bob Smith wrote: Hi, I have migrated a TCP based server to a servlet and cannot figure out how to get multi-threading working. The TCP server works like this; Listen for Request: read command code from the accepted socket; find a free thread containing a slave server who can handle the

Re: Posting multipart/form-data

2001-05-11 Thread Bo Xu
Frans Verhoef wrote: One good API for dealing with multipart/form-data is the com.oreilly.servlet package. http://www.servlets.com/cos/index.html I used it myself, and it works really great. And if you want to use it commercially, you just need to buy the book of oreilly. Frans On 10

Re: Auto reload

2001-05-10 Thread Bo Xu
From: Erik Dybdahl [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Auto reload Date: Thu, 10 May 2001 08:48:07 +0200 [...] In other words: can I change my web-application without affecting (by doing stop/start Tomcat) other web-applications on the same Tomcat-server?

Re: session object problem with cookies disabled

2001-05-10 Thread Bo Xu
Filippo Munafò wrote: I've a problem running Tomcat + IIS 5.0 on Win2K. I've tried Tomcat 3.2.1, 3.2.2, 3.3-m2. Everything works fine unless the session example: a new session is created everytime I add a new item in my cart so it contains always only one item! All is OK with Tomcat as

Re: destroy/init sequence

2001-05-09 Thread Bo Xu
From: Bo Xu [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: destroy/init sequence Date: Sun, 06 May 2001 23:13:58 - From: Michael Bergknoff [EMAIL PROTECTED] Does the container maintain session state across a destroy/init sequence? If so is it up to each

Re: destroy/init sequence

2001-05-06 Thread Bo Xu
From: Michael Bergknoff [EMAIL PROTECTED] Does the container maintain session state across a destroy/init sequence? If so is it up to each servlet to serialize or delete any objects stored in the session? For debugging, is it possible to control when the destroy method is called? Thanks, Mike

Re: [Off topic] WAP JSP

2001-04-26 Thread Bo Xu
Paul Yoon wrote: Hello, I would like to learn more about WML JSP such as how to handle forms session things in case of WML. Is there any site providing examples? Thank you Paul Hi :-) //haha :-) http://www.wirelessdevnet.com/ http://www.wirelessdevnet.com/channels/wap/training/

Re: Servlet -- SingleThreadModel

2001-04-13 Thread Bo Xu
yServlet in webapp classloader, with TOMCAT, and if omitting the auto-reloading, it is Only-One) - ServletContext, with TC, it is Only-One within webapp. - MyHelper class % its instance(SingleTon or Non-SingleTon) % its Class object % its instance/static field *3 the following are good emai

Re: A couple of questions

2001-04-13 Thread Bo Xu
"Lu, Spencer" wrote: OK, I have just read the Servlet Specification 2.2, and it does not answer my first question, which was: When I go to the Servlet Examples page (http://localhost:8080/examples/servlets/index.html), there is a link that executes the Hello World servlet. This link is

Re: Good book

2001-04-12 Thread Bo Xu
[EMAIL PROTECTED] wrote: Hi, Being a newbie to TOMCAT and Java. Is there a good book or some other type of reading material for TOMCAT. I work as a system administrator and will not be developing JAVA servlet applications. But, I do need to understand the ins and outs of TOMCAT for

Re: problems with wml pages

2001-04-09 Thread Bo Xu
[EMAIL PROTECTED] wrote: HI. I am trying to open a simple wml file. But I get the content-type error: " Content-Type Error ...found Content-type: text / plain. No translator for Content-type: text/plain." I believe there is nothing wrong with my wml file since I can run it through my

Re: put an object in the application

2001-04-09 Thread Bo Xu
[EMAIL PROTECTED] wrote: what is the equivalent to session.setAttribute("aName", anObject) but whith an application scope thanks Hi :-) I am not sure, I suggest the following: in the following three kinds of "setAttribute/getAttribute": -0 ServletContext.setAttribute/getAttribute -1

Re: ??? Does Tomcat 4 b3 Support Reloading ???

2001-04-06 Thread Bo Xu
Tony LaPaso wrote: Hello, By reading the documentation, it seems Tomcat 4 b3 should support servlet reloading but this does not seem to be the case. After a fresh install of Tomcat 4 b3 I modified the SnoopServlet and the change was *not* picked up even though the examples Context has

Re: J2EE?

2001-04-06 Thread Bo Xu
Mark Arroyo wrote: Hi, I am new to Tomcat. I want to develop J2EE applications. Does tomcat support J2EE? If so how do I configure it to use J2EE? Thanks in advance! Mark Hi :-) I remember: - J2EE RI 1.3beta uses TC4.0 as "built-in" Servlet container - jboss can auto-start and

Re: how to unsubscribe this list?

2001-04-05 Thread Bo Xu
"Trakhtenberg, Victor" wrote: Hello! Does anyone how to unsubscribe this list? I've tried to send email to : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] but this didn't work I still get those mails. Thank you in advans. Hi :-) I am not sure, from a email, I suggest you check that if you

Re: Servlet Chaining...

2001-04-05 Thread Bo Xu
Gal Oberson wrote: [Gal Oberson] I think HttpServletRequest inherits getRequestDispatcher(..) from ServletRequest class and does implement it. [Gal Oberson] You can also get the RequestDispatcher object from ServletContext Yes, you're right, but it's not what I

about the auto-reloading of jakarta-tomcat-4.0-b2(3)

2001-04-05 Thread Bo Xu
Hi :-) when I use jakarta-tomcat-4.0-b1, I can use the auto-reloading , but when I use jakarta-tomcat-4.0-b2 and jakarta-tomcat-4.0-b3, just from my work, I find I can not use auto-reloading. I have already set reloadable="true" in server.xml, and other setting is similar with TC4.0-b1, and I

  1   2   >