Re: connection pooling basic help please

2005-04-04 Thread Kwok Peng Tuck
Krishnakant Mane wrote: hello, I refered to the docs in tomcat 5 for connection pooling. the document is pritty comprehencive and I understood the server.xml part of it. but now I want to know how exactly can I use a connection from the pool in my servlet. the example in tomcat documentation is

Re: FW: My very first servlet cannot be run

2005-01-28 Thread Kwok Peng Tuck
Hi Patrick, You use should use the servlet name you specified rather than the class name. Do you need the servlet-mapping as well ? Here's a example from tomcat: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/admin/WEB-INF/web.xml?view=markup Van

Re: How to release connections in connection pool during reload?

2005-01-07 Thread Kwok Peng Tuck
You need to release connections when you are done with them, con.close() ; This is similar to using a direct connection to the jdbc except this time the only difference is where you got the connection object from. Calling con.close() ; will release the driver back to the connection pool. Lucie

Re: Tomcat/Java and SMP

2004-12-03 Thread Kwok Peng Tuck
Dan, U have 10 application servers on one machine or 10 application on 10 distinct machines ? Dan Foreman wrote: Hi, I have a setup of 10 application servers using Tomcat 4/5, jsdk 1.4.2_02, SMP, win2k. In watching the performance under load I am concerned that only one CPU is being

Re: EJB Compliance

2003-12-18 Thread Kwok Peng Tuck
Tony Colson wrote: This might be a re-post...sorry if it is... Is Tomcat 4.1 (or even 5.0) EJB Compliant? If so, is it compliant with the EJB 1.1 or 2.0 specification? No it is not EJB Compliant. There's no need for it to be. I can't seem to find appropriate documentation. Also, in the

Re: Maximum page size before JasperException

2003-12-17 Thread Kwok Peng Tuck
What are you displaying in a JSP page that takes up 4 megs ? Peter Guyatt wrote: Hi There, Can anyone possibly tell me what the maximum page size allowed when compiling/presenting JSP page. The question arises when I try and display a 4meg file. If there is a limit is there any way to

Re: Maximum page size before JasperException

2003-12-17 Thread Kwok Peng Tuck
Hmm maybe you can just write out the file to the response body in a servlet ? Or do you need to do something in the jsp ? Peter Guyatt wrote: Hi there, Its an XML file Pete -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: 17 December 2003 11:12 To: Tomcat

Re: UserDatabaseRealm 5.0.16 - immediately available for use by the Realm??

2003-12-17 Thread Kwok Peng Tuck
I think that is refering to a RDBMS realm. Last time I checked, tomcat-users.xml was only read on startup. Ron Andersen wrote: 1) I configured the default authentication realm - UserDatabaseRealm, which is setup to use conf/tomcat-users.xml. However, I am confused about the following statement:

Security Policy

2003-12-16 Thread Kwok Peng Tuck
Hi list , With regards to the security manager in tomcat, is it possible to ship a policy file with each webapp ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5.0.16 DBCP Connection Pool Exhausted Error

2003-12-15 Thread Kwok Peng Tuck
Hmm maybe you are not returning connections after using them ? In the tomcat docs they do give a pattern you could use in your code, like try { }catch(SQLException e) { }finally { try { //Perform your close statements here. }catch(SQLException e) { } } HIH .

Re: Tomcat 5.0.16 DBCP Connection Pool Exhausted Error

2003-12-15 Thread Kwok Peng Tuck
Isn't removeAbandoned deprecated ? If so is it still usable ? Hmm... are you getting the error right away or only after a few requests? Hard to say anything without further information. It is always a good idea to make sure you properly close all Statements, ResultSets anc Connections

Re: Tomcat 5.0.16 DBCP Connection Pool Exhausted Error

2003-12-15 Thread Kwok Peng Tuck
This is where I saw it : http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/AbandonedConfig.html But I think the code is still in there, just marked as deprecated :D Philipp Taprogge wrote: Hi! Kwok Peng Tuck wrote: Isn't removeAbandoned deprecated ? If so is it still

Re: Web App Undeployment

2003-12-09 Thread Kwok Peng Tuck
Dunno if this helps, but could you try stopping the webapp first ? Pundalik Kudapkar wrote: I am using Tomcat 4.1.27 to deploy my web application. I am using the manager application for deployment and undeployment. The deployment is working just fine, however, the undeployment is not deleting

Re: Not even close to on topic: smake n cdrecord for linux

2003-12-07 Thread Kwok Peng Tuck
So his 'Out of topic' is in fact out of topic ? :) Achana, maybe you can have a look at many of the linux mailling list out there ? Might be better help than the tomcat list. Oscar Carrillo wrote: You are waay off topic here. A google search is the way to go here. Regards, Oscar On Mon,

Re: Lock on database file not being released...

2003-12-07 Thread Kwok Peng Tuck
Chaikin, Yaakov Y (US SSA) wrote: Ok, I don't know why, but it's not letting me attach it. I think the list discards attachments . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Lock on database file not being released...

2003-12-07 Thread Kwok Peng Tuck
PROTECTED] -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: Sunday, December 07, 2003 9:53 PM To: Tomcat Users List Subject: Re: Lock on database file not being released... Chaikin, Yaakov Y (US SSA) wrote: Ok, I don't know why, but it's not letting me attach

Re: trouble with servelts

2003-12-04 Thread Kwok Peng Tuck
You are missing the servlet.jar file, which contains the neccesary classes for your servlet to compile. Just make sure your compiler can find the jar file in your classpath. If you have a IDE like netbeans than you have it easy, just mount the jar file, and you will be able to compile without

Re: Servlets with JDBC connectivity

2003-12-03 Thread Kwok Peng Tuck
But this means I still have to get a connection, create a statement, and execute a query or update on the statement in every servlet where I want to use the connection. Yes, it locates the connection details (i.e., the JDBC connection method, the database name, user and password) somewhere

Re: Servlets with JDBC connectivity

2003-12-02 Thread Kwok Peng Tuck
I think this link over here, might give you a hand. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html There are samples there for databases like mysql, but I think you should be ok. Todd O'Bryan wrote: This may not be the right place to ask this, but if you

Re: putting application war file not in webapps.

2003-12-01 Thread Kwok Peng Tuck
You can deploy your war file or unpacked app else where, just provide a context file for your application and in it specify the location of your web app. You can see that the manager app does this, just check out manager.xml , should get you started. sanjay paithankar wrote: Hello , I'm new

Re: OutOfMemoryError

2003-12-01 Thread Kwok Peng Tuck
What apps are you running ? Maybe you are running something that consumes a lot of ram. Dhruva B. Reddy wrote: We get OutOfMemoryError's on Tomcat 4.1.27, running on RH 7.3, Sun JDK 1.4.1_02 (with 512MB allocated to it) The box has 1GB of RAM, 2GB of swap space, and four Xeon processors. This

Re: Connection connection

2003-11-20 Thread Kwok Peng Tuck
It looks like getUser is actually passed a Connection object from somewhere, otherwise why pass it a Connection object. vic banta wrote: in the getUser() method below, it has the parameter Connection connection, is the connection to the database established in this line or is a

Re: Installation problem (For Harry and the rest....)

2003-11-19 Thread Kwok Peng Tuck
Maybe the server.xml is malformed ? You can check by running catalina.bat instead of using the icon. That way it will run in the current window instead of disappearing. Try 'catalina run' [EMAIL PROTECTED] wrote: Harry, i follow through this problem... but if i am not wrong, sancha start from

Re: Servlets -- help needed

2003-11-14 Thread Kwok Peng Tuck
Fire up your text editor and edit away. If you are on a penguin box, you can use 'vi' or if you are on windows, just use notepad or wordpad. Navanee wrote: I don't have any idea of how to edit the web.xml file. Any pointers would be helpful. [EMAIL PROTECTED] wrote: Navanee, Please check and

Re: Start Tomcat

2003-11-13 Thread Kwok Peng Tuck
Hello Simon, Run the catalina batch file, passing in the argument run like this(without the quotes of course): catalina.bat run This will run tomcat in the current window, from there you should be able to see the errors that tomcat throws out. Simon Allen

Re: Problem with ConnectionPool on Linux

2003-11-12 Thread Kwok Peng Tuck
The new version of DBCP should be able to cope with this as well. I tested it with MaxDB and it works ok. Veselin Kovacevic wrote: Now, everything working fine. :) Thanks Jon. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 4:50 PM

Re: Problem with ConnectionPool on Linux

2003-11-12 Thread Kwok Peng Tuck
settings? -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 9:13 AM To: Tomcat Users List Subject: Re: Problem with ConnectionPool on Linux The new version of DBCP should be able to cope with this as well. I tested it with MaxDB and it works

Re: Tomcat Caching

2003-11-11 Thread Kwok Peng Tuck
If I remember correctly, you probably need to provide a servlet mapping for your servlet. Adam Dear wrote: Schalk, I added the following line to the server.xml file and restarted tomcat. context path=/servlet docBase=servlet debug=0 reloadable=true / That didn't work. Can you tell what is

Re: WinNT service problem

2003-11-11 Thread Kwok Peng Tuck
Putting the sql driver every where at once makes life that much difficult. Here's a document that points you in the right direction : http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html HIH :) ArcherDaPunk wrote: Sorry if this is the second one, not sure if the

Re: Strange behavior of runtime.exec(...)

2003-11-10 Thread Kwok Peng Tuck
If I'm not mistaken, the security manager is turned off by default. Stefan Frank wrote: I tried to tweak the security manager of tomcat(using no restrictions at all) - with no effect. And I have absolutely no idea how to set the security-settings for the Webapp: And if i knew, does anyone know

Re: Réf. : RE: Réf. : RE: dbcp pool size

2003-11-07 Thread Kwok Peng Tuck
Hello, meissa, please have a look at the email I sent to the commons-list. [EMAIL PROTECTED] wrote: I'm currently using the version which is shipped with tomcat 4.18 distrib I'm correctly closing all of my ressouces(connection,resulsets and statement) I'm still having the problem. Meissa

Re: need help

2003-11-03 Thread Kwok Peng Tuck
Make sure you have a JDK in your machine and that JAVA_HOME env variable points to it. Then click on the startup script to run tomcat. Should be able to run. S.Gokul wrote: Hi, I have installed tomcat 5 in my machine running windows 98. Is it compatible with 98 or do I have to do anything else

Re: need help

2003-11-03 Thread Kwok Peng Tuck
to run it. It starts up and then after a few seconds it closes the tomcat window. I think its throwing some java exception. Can u help me out. Regards, S.Gokul - Original Message - From: Kwok Peng Tuck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 03, 2003 1

Re: need help

2003-11-03 Thread Kwok Peng Tuck
Heh, you are quick dude. So maybe he does need JDK 1.4 :D Basavaraju P. Banakar wrote: correct me if I'm wrong Tomcat 5 requires JDK 1.4 I remember reading that java.nio packages are used from JDK1.4 - Basu.. - Original Message - From: Kwok Peng Tuck [EMAIL PROTECTED

Re: Windows freeze...

2003-10-28 Thread Kwok Peng Tuck
Run as service instead :D Leo Larraquy wrote: It ´s a good idea, and but my client is Microsoft-mind-ahead - Original Message - From: Dov Rosenberg [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 7:22 PM Subject: Re: Windows freeze... Fdisk

Re: Servlet and Beans.

2003-10-10 Thread Kwok Peng Tuck
Yes, as long as you import the classes and make them available in your webapp. anunay ashish wrote: If my bean and servlet are as package com.scheduler, then can I use make an object of the bean class in the servlet? - To

Re: Problem Compiling JSP Servlet

2003-10-02 Thread Kwok Peng Tuck
Did you by any chance import the class in the first place ? Like import javax.servlet.ServletException ; Billy Aplin wrote: Greetings, I am new to JSP development and I am trying to compile a simple servlet from the More Servlets and JavaServer Pages. I am getting the error cannot resolve

Re: Problem Compiling JSP Servlet

2003-10-02 Thread Kwok Peng Tuck
This works: javac HelloServlet.java -classpath c:\Tomcat\common\lib\servlet.jar This doesn't: javac HelloServlet.java Billy, the second line implies that you did not include the classpath to servlet.jar, so that's why it is having problems with javax.servlet.ServletException. If you find it

Re: Problem Compiling JSP Servlet

2003-10-02 Thread Kwok Peng Tuck
attempt to compile, otherwise why create the CLASSPATH variable in the first place? Thanks Billy From: Kwok Peng Tuck [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Problem Compiling JSP Servlet Date: Fri, 03 Oct 2003 09:47:43

Re: Problem Compiling JSP Servlet

2003-10-02 Thread Kwok Peng Tuck
You can set the classpath variable in the system environment. Settings-Control Panel - System - Advance(tab) - Environment Variables I don't think you need to reboot for this to take effect. Billy Aplin wrote: Windows 2000. Thanks Billy

Re: DBCP API reference

2003-10-01 Thread Kwok Peng Tuck
Here: http://jakarta.apache.org/commons/dbcp/apidocs/index.html It's from the link on the left navigation bar. Or you can just download the nightly release and generate the docs on your own. Josh G wrote: Can somebody point me to a mirror of the DBCP API javadocs? All I get when looking

Re: innocuous Servlet kills Tomcat

2003-09-25 Thread Kwok Peng Tuck
Hard to tell from a small snippet like that , but if I had to guess, it doesn't appear to meet the dtd specified by the web.xml. Try sending us the entire web.xml in your email. Paul Wallace wrote: Hi All, After implementing my simple Servlet under Tomcat thus: servlet

Re: innocuous Servlet kills Tomcat

2003-09-25 Thread Kwok Peng Tuck
The digester error actually provides you more info than you think : org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,

Re: Fwd: Delivery problems: Catalina.stop: java.net.ConnectException: Connection refused

2003-09-21 Thread Kwok Peng Tuck
It's not complaining about you, just about some address registered on the list. It looks like the tomcat list tried to forward a email to a user at chiinc.com but was unable to do so for the reason listed below. I get that from time to time as well. Ilja wrote: Why do I always get this

Re: ClassPath with Tomcat 4.1

2003-09-11 Thread Kwok Peng Tuck
Classes for your webapp are looked for in either : WEB-INF/lib; as a jar file or WEB-INF/classes; non jar files So for example if you have a jar file that you want to use in your web app, put them in your webapp's WEB-INF/lib. You should be able to use them. David LAFAY wrote: Hello, Tomcat

[OT]Re: Mobile phone on serial port - Howto send sms?

2003-09-10 Thread Kwok Peng Tuck
Another option is available to you John-Paul, specifically, http://www.kannel.org which is a wap and sms gateway. This gateway is based on linux although you can use cygwin to compile and run it, far from ideal but it does work and is usable enough for testing. The gateway does support most GSM

Re: HeadlessException: The chickens come home to roost!

2003-09-09 Thread Kwok Peng Tuck
Perhaps this might also ease the pain: http://cewolf.sourceforge.net/ Bill Barker wrote: Running headless means using awt-light. In particular, one of the things you are forbidden from doing is creating heavy-weight components like Frames. If you want to run headless, you will need to

Re: Connetion between Tomcat MySQL

2003-09-09 Thread Kwok Peng Tuck
Any JDBC driver for mysql (that works for you) will do. Amy Cheung wrote: so what kind of connection is best? using the J/Connector or the OCBC one? --- Bill Barker [EMAIL PROTECTED] wrote: Assuming that you aren't using JDBCRealm, then it should be enough to put the jar file in

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread Kwok Peng Tuck
In the servlet or jsp you could do : String text = request.getParameter(subject) ; Then do whatever you want with it. engp0510 wrote: Thanks I know maybe I should use session, but when I choose select box, the jsp page will be reloaded. How do I save the value of INPUT tabIndex=1

Re: dbtags and tomcat 4.1

2003-09-04 Thread Kwok Peng Tuck
If you poke around in the mailling list for the taglib project you will find a mail or two about this, if I remember correctly had something to do with the tag not confrming to the taglib specification that tomcat provides. You could use jstl instead, but from my experience SQL in the jsp is

Re: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread Kwok Peng Tuck
Have a look a the source code for the Admin Webapp for tomcat. It uses JMX. s p wrote: I am using JMX technology to get information of Tomcat server. I am unable to get the reference of the MBeanServer in Tomcat. Has any one worked on this before. I am able get the information for other

Re: Folder Permissions taken over by Tomcat 4

2003-08-22 Thread Kwok Peng Tuck
Is there a specific need to make that directory a smb share directory ? Hertenstein Alain wrote: Hello, We have a Red Hat Linux 7.2 Server with Tomcat v4.0.3 installed, and a web application configured, let's say myApps. In this webapps/myApps folder, there are folders which we have shared

Re: Tomcat 4.1 DefaultContext Bug?

2003-08-20 Thread Kwok Peng Tuck
Specifically what problems do you have when running the app as a war file ? Peter Harrison wrote: I have spent the last three days trying everything to move from 4.0 to 4.1. The problem is with the datasources. When the resource is in a specific Context everything works, but when its in the

Re: maxProcessors problem

2003-08-19 Thread Kwok Peng Tuck
If I may ask how much physical memory do you have in the first place ? Do you really have that much to give to the for the max heap size ? Mike Cherichetti (Renegade Internet) wrote: I've set CATALINA_OPTS to use -Xmx896m and -Xms384m. That works fine with maxProcessors set to 384. Problem is,

Re: Cannot Solve jdbc is not bound is this Context problem

2003-08-17 Thread Kwok Peng Tuck
If you copy the DB2 driver into $CATALINA_HOME/common/lib , then it should be a jar rather than a zip or a tar file. I think you should also change driverName to url. Alan Nesbitt wrote: We have been trying for over a week to solve this problem. It doesn't help that we haven't used tomcat

Re: Run Windows' command in Java method

2003-08-15 Thread Kwok Peng Tuck
Beware of the pitfalls that can come from using Runtime.exec() Have a look at this article first : http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html Cui Xiaojing-a13339 wrote: Hello, Thanks so much for the help. Now I only want to execute a SQL Server's import/export utility

Re: Tomcat Conn Pooling in 4.0.4 - Last queston...!

2003-08-14 Thread Kwok Peng Tuck
I think it has to be javax.sql.DataSource Andoni wrote: One last question: Do you all use: Resource name=jdbc/animo auth=Container type=javax.sql.DataSource/ Or do you call a different type. Such as javax.sql.PooledDataSource Andoni. - Original Message - From: Shapira, Yoav

Re: [OT] Some one executing windows commands in Tomcat 4.1.18.

2003-08-14 Thread Kwok Peng Tuck
It's in the intranet right ? Should be easy to track down :) Antony paul wrote: Hello, I have Tomcat standalone running on a local Intranet. The server is windows 2000 SP2. Today while checking the access log files I found the following lines xx.xx.xx.xx - - [11/Aug/2003:09:47:38 5050] GET

Re: security hole on windows tomcat?

2003-08-14 Thread Kwok Peng Tuck
Can't replicate your problem, tried both linux and win2k Version of tomcat is the same as yours. Paul Sundling(Webdaddy) wrote: I came across what appears to be a security hole when running tomcat. I'm not sure how widespread it is, but my linux server is safe, yet my windows XP, tomcat

Re: Configuration Error?

2003-08-04 Thread Kwok Peng Tuck
Pedro, unjar-ed classes go under WEB-INF/classes/{SOME PACKAGENAME}, jar files go under WEB-INF/lib Your java beans will never be found if they just reside under WEB-INF . Pedro Silva wrote: I am really having a bad time using Apache Tomcat for the first time... But I won't give up... Just

Re: Configuration Error?

2003-08-04 Thread Kwok Peng Tuck
] -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 4 de Agosto de 2003 8:15 To: Tomcat Users List Subject: Re: Configuration Error? Pedro, unjar-ed classes go under WEB-INF/classes/{SOME PACKAGENAME}, jar files go under WEB-INF/lib Your java beans will never

Re: Checking for invalidated session

2003-08-01 Thread Kwok Peng Tuck
How about: if(session.getAttribute(myattrib)==null) { } Tim Davidson wrote: But surely theres a better way? Whould I be better off replacing session.invalidate() with session = null? -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 6:44

Re: [Q] Is it safe to create threads in Tomcat web-apps?

2003-07-30 Thread Kwok Peng Tuck
jcrontab works ok, it is modeled after the unix crontab entries. Best bet is to try it and see if it meets ones needs :) Anton Tagunov wrote: So, what John is speaking about - spending less effort on thread coding and using an existing solution (native Unix crontab) may also be pushing you to

Re: [newbie] Executing class files

2003-07-28 Thread Kwok Peng Tuck
You don't map class files to your folder in tomcat. You should pack everything into your own webapp directory and deploy it into the $TOMCAT_HOME/webapps directory. Here's a short article that might help you out : http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html For more info

Re: [Q] Is it safe to create threads in Tomcat web-apps?

2003-07-28 Thread Kwok Peng Tuck
Hello Riaan, you might want to check out jcrontab. http://jcrontab.sourceforge.net Riaan Oberholzer wrote: Well, that was part of my question if I cannot/don't implement daemon threads to do e.g. automatic daily tasks, what else? E.g, at the end of the day send an e-mail to a (real life)

Re: Production server tuning

2003-07-28 Thread Kwok Peng Tuck
I'm no expert in load balancing and stuff like that, but shouldn't you load balance tomcat as well ? Antonio Fiol Bonnín wrote: Hello, We have already gone live, and we actually spend too much time dead. I hope some of you can help me a bit about the problems we have. Architecture: 3 Apache

Re: configuring an ODBC database with JNDI

2003-07-24 Thread Kwok Peng Tuck
It's up to the database vendor to provide a JDBC driver, not tomcat. You will have to figure out if inicio has a JDBC driver, and what kind of JDBC support provided by that driver, whether it is Type 1, 2, 3 or 4. dein_metzger wrote: hi. I was thinking that tomcat comes with a native jdbc

Re: Scheduling within Tomcat

2003-07-21 Thread Kwok Peng Tuck
How about this : http://jcrontab.sourceforge.net ? Works for me. Tim Shaw wrote: Linux RH8, TC 4.1.24 I have an app I want to run regularly, so I've exposed the URI, and used wget to trigger it from a cron job. I also want to run this (or sub-set) at a particular point in time (e.g. 3:27mins

Using JMX in a webapp

2003-07-17 Thread Kwok Peng Tuck
If I wish to use JMX in my own webapp, is it necessary for me to write my own implementation of ServerLifecycleListener in the webapp's Context ? Say for example : Context .. Listener classname=com.company.mbean.ServerLifeCycleListener debug=0 descriptor=some

Re: [OFF-TOPIC] possible virus No Valid Command Found

2003-07-11 Thread Kwok Peng Tuck
Are you using mozilla ? Works for me. Thomas, Kevin wrote: Yip. I can't even get them to filter. -Original Message- From: Tim Davidson [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 09:22 To: [EMAIL PROTECTED] Subject: [OFF-TOPIC] possible virus No Valid Command Found Has anyone else

Re: [OFF-TOPIC] possible virus No Valid Command Found

2003-07-11 Thread Kwok Peng Tuck
: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 11:01 To: Tomcat Users List Subject: Re: [OFF-TOPIC] possible virus No Valid Command Found Are you using mozilla ? Works for me. Thomas, Kevin wrote: Yip. I can't even get them to filter. -Original Message- From: Tim Davidson

Re: Log Rotation (4.1.24)

2003-07-09 Thread Kwok Peng Tuck
Why not use logrotate ? Tim Funk wrote: Nope - you need an external script. Here is a quick possible one in perl that might do the trick (just wrote, never tested - may be totally wrong due to type) === #!perl use strict; my @files; my $oldest; readdir(DIR, $TOMCAT_HOME/logs); @files =

Re: how to create servlet?

2003-07-09 Thread Kwok Peng Tuck
.java is the source file, the one you use to compose your program. It is like any other text file, you can use any text editor to create a .java source file. The .class file is a compiled version of the .java file, ready for execution by the servlet container. For your second question, you

Re: Anonymous posting

2003-07-08 Thread Kwok Peng Tuck
Sounds like you are after some sort of filter. harsh wrote: Can i restrict domains of the forms posting to my form handling scripts.i.e only all the html or jsps inside http://www.mysite.com/ can post to my jsps,and noone writes his own HTML forms and post to my site .. i hope i m clear in

Re: Number of Processes

2003-07-07 Thread Kwok Peng Tuck
Try 'ps -elfm' ; the 'm' will show the other threads. You can also achieve the same thing with top by using the 'H' command. Shannon Scott wrote: Hello, I have noticed that tomcat uses only one process on my new redhat 8.0 machine. ( ps -elf | grep tomcat ) There is an interesting explanation

Re: persistent problem

2003-07-02 Thread Kwok Peng Tuck
I think it is fairly self-explanatory: http://[your ip]:8080/manager/ If you have installed the rpm copy of tomcat then you may need to download another file to get the manager webapp. The windows installer has it by default. The document which describes this is over here :

Re: persistent problem

2003-07-01 Thread Kwok Peng Tuck
What do you mean by persisting? Session issue? Or is it the case where you changed the code in your servlet and the changes are not showing up ? If it is then just use the webapp manager to reload the context the servlet resides in. Paul Wallace wrote: Hello, Can someone please tell

Re: How I can slove this problem??

2003-06-25 Thread Kwok Peng Tuck
For the connector you can specify a new attribute : |'disableUploadTimeout=true' which apparently allows the servlet container to use a different longer connection timeout while a servlet is being executed (well that's what the docs say). I'm not sure where we can actually specify the

Re: TomCat Daemon on Linux

2003-06-20 Thread Kwok Peng Tuck
The rpm installation of tomcat includes a start up script that is placed in /etc/rc.d/init.d/ which allows tomcat to be started up on reboot. However, the service is not added by default. Tomcat can be made to start up by using chkconfig It's possible to write your own script, if you want to

Re: Tomcat and javascript files

2003-06-17 Thread Kwok Peng Tuck
If you tried src=/$WEB-APP/Hestia/coolmenus.js does it work ? MARTIN Franck wrote: Hi all, I am using Tomcat 3.2.1 and i have created a sub-directory in the webapps directory. It is named Hestia. In this sub-directory i placed my home page with the following source code. html head titleALTA -

Re: Tomcat classpath not set at boot

2003-06-15 Thread Kwok Peng Tuck
It's something about running tomcat headless I think. http://sourceforge.net/forum/forum.php?thread_id=859094forum_id=192228 Try adding this to the tomcat startup scripts : -Djava.awt.headless=true (which you can only do with JDK1.4 or higher) . Tim Funk wrote: Ouch! wacky issues between

Re: stalling servlets/jsps with wait/notify?

2003-06-06 Thread Kwok Peng Tuck
Why would the client stall in the first place ? If you can figure out that problem, the webapp could probably scale higher than 5 clients. Richard Heintze wrote: I had an interview with a prospective client today who has problems with a current web application (written in lotus notes?). He

Re: DataSource configuration in web.xml instead of server.xml

2003-06-04 Thread Kwok Peng Tuck
You can have a context for your application defined in a seperate xml file but not in the web.xml. If you read the dtd for the web.xml you'll see that this is not allowed. Simply copy your context that works and paste into a new xml file, which has the same name as your webapp. So if you had

Re: Counting Threads

2003-06-04 Thread Kwok Peng Tuck
how many threads did your app launch? Billy Ng wrote: Hi folks, Would anybody tell me how to monitor the count of the exisitng threads in my java app because I get the All Threads are busy, waiting error from tomcat. Billy Ng

Re: Need help w. Tomcat

2003-06-03 Thread Kwok Peng Tuck
Any other stuff get printed besides that ? Steve Burrus wrote: Hello all, I need help with not using the Tomcat server, but with actually getting it set up correctly. Every single time that I try to run it, it seems to be going good for a while, but then I always get a Fatal Parse Error, and it

Re: Need help w. Tomcat

2003-06-03 Thread Kwok Peng Tuck
*,env-entry*,ejb-ref*,ejb-local-re f*). What could be wrong anyway? Kwok Peng Tuck wrote: Any other stuff get printed besides that ? Steve Burrus wrote: Hello all, I

Re: IOException: failed to communicate with MySQL

2003-06-03 Thread Kwok Peng Tuck
Write a dbkeep-alive, schedule it to run say every 15 minutes. Works for me. I use jcrontab.sourceforge.net to schedule this. I think DBCP also does something like this, you might want to look at their docs as well. Mindaugas Genutis wrote: a couple of days ago a post went by talking about

Re: Database setup? - SOLVED

2003-06-02 Thread Kwok Peng Tuck
Yes it does have to be in order :) . Check the dtd that it references. Terje Hopsø wrote: Thanks!! It was out of order. Now it start without errors. I was not aware of that it had to be in a spesific order. - Terje -Original Message- From: Brian Buchanan [mailto:[EMAIL PROTECTED]

Re: faulty fix for (javax.servlet does not exist)

2003-06-02 Thread Kwok Peng Tuck
That's because it's javac -classpath. Jonathan Michael Nowacki wrote: I'm compiling with root, $ javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java javac: invalid flag: -cp Usage: javac options source files and if I change my classpath to: $ echo $CLASSPATH

Re: faulty fix for (javax.servlet does not exist)

2003-06-02 Thread Kwok Peng Tuck
. Jonathan Michael Nowacki wrote: Holy cow!!! It worked. Thank you very much Kwok Peng Tuck It's still puzzles me why javac -classpath /var/tomcat4/common/lib/servlet.jar MultiServlet.java works yet javac doesn't when I set my class path variable. $ echo $CLASSPATH /var/tomcat4/common/lib/servlet.jar

Re: /admin

2003-06-02 Thread Kwok Peng Tuck
No. You may use it even if it is connected to apache or some other webserver Dominic Parry wrote: Hi I'm I right to assume that the /admin app is only needed to configure the Tomcat if it is used as a standalone web server. Thanks Dom

Re: Session Replication/Clustering 4.1.x JDK NIO Bug fixes

2003-04-03 Thread Kwok Peng Tuck
Just curious Filip, but is any of this going to make it's way into a future version of Tomcat as a standard feature (the clustering and session replication, not the bugs.) ? Filip Hanik wrote: hey ya'all, Running today on Solaris I discovered a bug in the way java.nio is implemented on

Re: DriverManager.getConnection(jdbc:jtds:sqlserver://127.0.0.1:1443/Services.....Failured... Please, help me!

2003-04-03 Thread Kwok Peng Tuck
Check and see if the password and username is correct for the database you setup. Victor Gonzalez wrote: The message is... java.sql.SQLException: Connection refused: connect at net.sourceforge.jtds.jdbc.TdsConnection.allocateTds(Unknown Source) at

Re: jtds and connection examples.

2003-04-02 Thread Kwok Peng Tuck
Fortunately there is documentation for what you want and it is in the link listed below. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Included are sample configurations and a small class example. What's jtds by the way ? Hope it helps you out. Victor

Re: win 98 :displaying a simple servlet

2003-03-31 Thread Kwok Peng Tuck
For servlet development you don't need the whole package, you can just make do with a servlet/jsp container. Tomcat fits the bill perfectly. To compile the servlet, get yourself a java jdk (1.2 or higher) and compile the source servlet with javac. I *think* there is a tutorial on Sun's

Re: win 98 :displaying a simple servlet

2003-03-31 Thread Kwok Peng Tuck
just download those from sun. i think that will fix my problem. Jonathan Schachter [EMAIL PROTECTED] cell: 917 912-1079 - Original Message - From: Kwok Peng Tuck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 Subject: Re: win 98 :displaying a simple

Re: ?? Trying Again: Newbie Question about Root Context ??

2003-03-31 Thread Kwok Peng Tuck
Send a copy of your server.xml file, I don't see that commented out in mine. I'm pretty sure it isn't though. Tony LaPaso wrote: Hi all, I posted this question over the weekend but nobody really seemed to know the answer. Several people speculated but nobody knew. Altough I'm sincerely hoping

Re: status 404 when migrating from 4.0.4 to 4.1.24

2003-03-26 Thread Kwok Peng Tuck
If you put this : servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping in your web.xml then you can use this to load your own servlets without defining them. If remember correctly ; then the class that would be loaded in this example :

Re: status 404 when migrating from 4.0.4 to 4.1.24

2003-03-25 Thread Kwok Peng Tuck
The servlet invoker lets you call your servlet in the webapp without actually mapping one in the web.xml So you can do this in the browser: http://localhost/myapp/servlet/stuff You're not really missing much. Don't know if the other containers do that. Sven Köhler wrote: servlet-mapping

Re: MYSQL and TOMCAT

2003-03-24 Thread Kwok Peng Tuck
java.sql.SQLException: Update failed, possible duplicate entry Let's see you have a table info with one field and that field is a primary key right? If I remember correctly, primary keys in a table have to be unique, so maybe you are calling your method with the same data again and again ?

  1   2   3   >