Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Peng Tuck Kwok
Just to check are your precompiling the jsp page? On 5/28/05, Kevin Burton [EMAIL PROTECTED] wrote: I've been tuning our application trying to get the maximum performance out if the system as possible. I've been throwing the system at jprofiler and allowing it to tell me where to

Re: Tomcat banner

2005-05-16 Thread Peng Tuck Kwok
Don't recall seeing any headers appearing in the pages..which pages are you refering to ? On 5/16/05, André Cruz [EMAIL PROTECTED] wrote: Hello! Is there anyway to remove the tomcat banner that appears in the header of all pages served by tomcat? I don't want to disclose that

Re: [OT]Internal Netbeans Tomcat server

2004-12-10 Thread Peng Tuck Kwok
It says you have attempted to forward after a response has been commited. Can you post some code related to this error ? On Thu, 9 Dec 2004 12:15:12 -0700, Chris Cherrett [EMAIL PROTECTED] wrote: java.lang.IllegalStateException: Cannot forward after response has been committed is the error

Re: Are all TC-managed DataSources pooled?

2004-11-10 Thread Peng Tuck Kwok
For JDBC if it's not pooled in a container, it would be of little use to any application. Specifically the tomcat docs do say that connection pool is provided right here :

Re: About Japanese Mobile container(AU)

2004-10-14 Thread Peng Tuck Kwok
Quite possibly because you have % % in your audio file. I think % % only works in jsp files so your variables never get substituted. If you want to do this, get a servlet to generate it instead, see if it works. On Thu, 14 Oct 2004 17:02:42 +0800, Maneesh sharma [EMAIL PROTECTED] wrote: Hi

Re: mod_jk2 Ready/Recommended For Production?

2004-10-12 Thread Peng Tuck Kwok
Do you really need to put apache in front of tomcat ? Standalone tomcat (since ver 4.x) has always been pretty good in terms of performance On Tue, 12 Oct 2004 22:07:34 -0400, Mike Millson [EMAIL PROTECTED] wrote: The Tomcat FAQ page still says that mod_jk is great and should be used for

Re: [OFF TPOIC] System.out.println in JAVAbeans

2004-09-29 Thread Peng Tuck Kwok
Well it should appear on the console, unless you do a redirect (I think you can do that in windows as well) . On Wed, 29 Sep 2004 08:00:27 +, Atishay Kumar [EMAIL PROTECTED] wrote: hi, If i give System.out.println in JavaBeans it is displayed on the command prompt in Windows. How do it

Re: Suggestion: A dedicated TOMCAT forum!

2004-09-20 Thread Peng Tuck Kwok
You mean like the one here : http://nagoya.apache.org/jive/index.jsp ? Activity seems low if you ask me. Don't know what the plans are for the forum. On Mon, 20 Sep 2004 16:14:23 -0500, QM [EMAIL PROTECTED] wrote: On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote: : I believe that

Re: Tomcat Connection Pool Configuration Problem (Cannot Establish the Connection)

2004-09-14 Thread Peng Tuck Kwok
On Tue, 14 Sep 2004 13:56:48 -0700 (PDT), Caroline Jen [EMAIL PROTECTED] wrote: When I configured the Tomcat 5.0.27, I did put the driver and URL in the C:\jakarta-tomcat-5.0.27\conf\server.xml file (The That's great, but did you actually put the driver in a location that tomcat could find it

Re: Using JDBC Data source from a business class

2004-09-06 Thread Peng Tuck Kwok
On Mon, 6 Sep 2004 09:12:51 +0300, muhammed soyer [EMAIL PROTECTED] wrote: My servlets are using the ds without a problem ..But I have some classes which are POJO classes to make my job easier whie accessing the DB ..these classes couldnt use my JDBC definition ..As I guess its from context

Re: Using JDBC Data source from a business class

2004-09-06 Thread Peng Tuck Kwok
e ) { if ( log.isEnabledFor(Level.ERROR) ) log.error(sm.getString(DAO.creation), e); } Hope that helps. Keith -Original Message- From: muhammed soyer [mailto:[EMAIL PROTECTED] Sent: Monday, September 06, 2004 5:06 AM To: Peng Tuck Kwok; Tomcat Users List Subject: Re: Using JDBC

Re: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

2004-09-03 Thread Peng Tuck Kwok
Perhaps you could also read this here http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html to get more details. On Fri, 3 Sep 2004 13:07:59 -0700 (PDT), Caroline Jen [EMAIL PROTECTED] wrote: Thanks for replying. I am building only one webapp. What does create a proper

Re: Tomcat deployment issue

2004-08-24 Thread Peng Tuck Kwok
Maybe you want to automate the build process so you don't depend on your expanded directory to store your data ? Say in ant just generate the war file along with your data (from your build directory) then deploy it.Then you never really worry what tomcat does to your war file or the directory it

Re: [OT]CVS Tag in source code

2004-08-20 Thread Peng Tuck Kwok
Or $Id$ anywhere in the file (gives a whole bunch of things actually) . so on the same line as @version you add that after it. On Fri, 20 Aug 2004 08:39:03 -0500, QM [EMAIL PROTECTED] wrote: On Fri, Aug 20, 2004 at 12:06:36PM +0530, Antony Paul wrote: : How to add @version $Revision: 1.3

Re: Configuring Tomcat 5 to not display null value as word null

2004-08-20 Thread Peng Tuck Kwok
Maybe he could check that in the jsp as well. Then maybe it's a little simpler to do. say (roughly) : . if (request.getParameter(blah)==null) { print something meaningful instead. On Fri, 20 Aug 2004 18:15:48 -0700, Justin Ruthenbeck [EMAIL PROTECTED] wrote: There is no Tomcat

Re: Ingres and JdbcRealm problems

2004-08-17 Thread Peng Tuck Kwok
Looks like something went wrong with the sql statement. Can your jdbc driver provide more output through some configuration ? Maybe then the root cause can be seen. On Tue, 17 Aug 2004 10:00:50 +0100 (BST), Ben Stokes [EMAIL PROTECTED] wrote: Hi, I'm currently developing a web application on

Re: JDBC connectivityfor ORACLE !!!

2003-02-27 Thread Peng Tuck Kwok
Unfortunately Swapneel, I know nuts about oracle :) .I'm more of a SAP DB person. Connecting tomcat and oracle using jndi should be ok I guess, there is a example in the tomcat docs. Swapneel Dange wrote: hi MIKE, PENG , CHONG !! guys, there seems to be a problem here for me with the

Re: JNDI DataSource problems..

2003-02-27 Thread Peng Tuck Kwok
It doesn't provide the JNDI resource outside the container as far as I can tell. I don't know enough about JNDI to work this out. I would have thought that a resource which is set up by the servlet container ( tomcat ) would be available outside the container?

Re: Mac os x and class files

2003-02-26 Thread Peng Tuck Kwok
This is a long shot; shouldn't your classes be in a package ? for examples your import statement : %@ page import=Plans021103% try putting it into package like org.mypackage . Putting your jars or classes under /{webapp name}/WEB-INF/lib or /{webapp name}/WEB-INF/classes should work .

Re: how to access the server from another computer

2003-02-25 Thread Peng Tuck Kwok
You need a public ip for that machine you are running tomcat on. So after you have got the public ip (assuming everything is setup properly) the url can be accessed at http://[ip that you just got]:8081/index.jsp You can change the port of tomcat to 80 (assuming nothing else is on 80)so you can

Re: access is denied from 4.1.18-LE-jdk14 on win98se

2003-02-25 Thread Peng Tuck Kwok
what is the permission for tomcat in that directory ? I mean is the user who is running tomcat allowed to read n write to the directory ? do a 'ls -al' and let's have a look at the output. Ray Tayek wrote: hi, just tried 4.1.18-LE-jdk14 and tried to startup. he gets as far as mumbling

Re: Can't run servlet under own project directly

2003-02-25 Thread Peng Tuck Kwok
I think you need to add a context for it first. You can use the admin interface to do it or make use of tomcat's autodeploy feature from a .war file. You could also manually enter the context on your own in server.xml . There are plenty of examples in there. Cora wrote: I use tomcat 4.1.8 and

Re: JNDI Database Connection does not work under XP

2003-02-25 Thread Peng Tuck Kwok
JNDI does work for sapdb, tried it out myself. Post the relevant bits for server.xml . chris weber wrote: Hello, i try since tree week to run a jndi datasource with tomcat. But it does not work in any way. Perhaps it is better, to go to .net. My equipment: Jkd 1.4.1 and Tomcat4.1.12 and

Re: Mac os x and class files

2003-02-24 Thread Peng Tuck Kwok
Hi Warren, classes can go into two places in a webapp, let's say I have a myapp as an example myapp |WEB-INF |-classes |-lib You can put all your classes (if they are not in jar in classes, follow whatever package structure you need) in

Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Peng Tuck Kwok
Uhm michael, you need to decide where you want to put the jars in the first place, if you want the driver available to all webapps then you put it there. If you just want it for your webapp then you can put it into the lib directory. I'm not sure if it will cause major problems but it's best

Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Peng Tuck Kwok
- From: Peng Tuck Kwok [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 24, 2003 10:31 PM Subject: Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue Uhm michael, you need to decide where you want to put the jars in the first place, if you want the driver

Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Peng Tuck Kwok
From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue Date: Tue, 25 Feb 2003 11:57:15 +0800 Ok, good to hear you got it to work but I'm curious, what was exact

Re: JDBC ORACLE implementation !

2003-02-24 Thread Peng Tuck Kwok
If you have already started on a filesystem and if it does what you want it to do at a reasonable speed then stick with it :) . Swapneel Dange wrote: hey CHONG , PENG ! i think i have really given up the idea of putting up ORACKLE for my support. after all this discussion, i just think that

Re: having trouble using tomcat

2003-02-23 Thread Peng Tuck Kwok
Michael, what do you mean by it doesn't look like it works? You get errors on the page or just a blank screen, plus what version of tomcat are you using ? Michael Ni wrote: hi im new to tomcat. im having trouble using jsp pages to query my microsoft sql server 2000. does anyone know how to

Re: having trouble using tomcat

2003-02-23 Thread Peng Tuck Kwok
Isn't that exactly the same as before ? ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat querry

2003-02-18 Thread Peng Tuck Kwok
In the tomcat directory, look for another directory called conf. Edit tomcat-users.xml with your fav linux editor and modify the users for your purposes. Jayanshu Gandhi wrote: Dear Sir, I have installed tomcat-4.1.18 on red hat linux-8.0 My problem is how to set password and username for

Re: WAR FILE NOT WORKING

2003-02-18 Thread Peng Tuck Kwok
If you have already defined a context in server.xml before a war file is created, then the directory for that context should exist. Otherwise if you run tomcat from the command line it will just quit. Try this : remove the reference to the context called apps from your server.xml and remove (or

Re: WAR FILE NOT WORKING

2003-02-18 Thread Peng Tuck Kwok
it Yes you can. Look here http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html -Original Message- From: Peng Tuck Kwok [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 10:05 AM To: Tomcat Users List Subject: Re: WAR FILE NOT WORKING If you have already defined

Re: A problem with Tomcat and port 8080

2003-02-17 Thread Peng Tuck Kwok
Something is running on port 8080, it looks like the old tomcat is running. You could try and kill all java processes in your machine to be sure then start up your new copy. Michael Harrison wrote: I'm running (or trying to) Tomcat 4.0.6 on RedHat 8.0 for PC. I installed Tomcat from a binary

Reading large log files with a servlet.

2003-02-17 Thread Peng Tuck Kwok
I've noticed that app servers like Sun One allows a administrator to view the contents of the log file in the administrative interface. Has anyone have any experience in doing that with a servlet in tomcat ? Could you share you experience please ? Thanks.

Re: webpage servlets !

2003-02-17 Thread Peng Tuck Kwok
In line 148 of your source code (I assume you haven't change or added anything to servlet) you write : output.write (frame name=\frame\ src=\http://128.123.130.247:8080/webapps/ROOT/dange/frame0.html\;); Try changing it to : output.write (frame name=\frame\

Re: Urgent. pls help me out

2003-02-17 Thread Peng Tuck Kwok
Tomcat comes with documentation which is relevant to developers about deployment . You can look in the directory of tomcat to find it, or just point your browser to http://localhost:8080/tomcat-docs zafar ahsan wrote: I have already installed tomcat and its working . ok now can anyone help me

Re: webpage servlets !

2003-02-16 Thread Peng Tuck Kwok
How are you referring to the link in your html or jsp page? Swapneel Dange wrote: hi there ! i am running a servlet, which takes the username and then the password and opens another webpage in the browser , my servlet is under the webapps/ROOT/WEB-INF/classes but my .txt file for running the

Re: webpage servlets !

2003-02-16 Thread Peng Tuck Kwok
.txt page, but the .txt page is then made into a .html page. And there is no link as such on nay page for the webpage i am trying to access. i am accessing them through the html tags inside the servlet itself. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok

Re: Change Password od ADMIN

2003-02-13 Thread Peng Tuck Kwok
You can find the xml file tomcat-users.xml in the conf directory, edit the password attribute for the admin user. Alberto A C A S Magalhães wrote: Hi, where i can change the password of ADMIN. Thanks - To unsubscribe,

Re: NEW POST: How do I view this jsp???

2003-02-13 Thread Peng Tuck Kwok
I'm also stumped about your problem but it is due to the fact that you haven't included it. Post your code and lets see what you are up to. Steve Burrus wrote: *hi, I need help/assistance right now with viewing this particular jsp, a rather simple one, which displays the current date and time!

Re: index.html and ipaddress ?

2003-02-13 Thread Peng Tuck Kwok
If you are running windows you can use your machine name to access the url but I doubt that'll work from outside. As for not using the port number 8080, you can configure tomcat to use port 80. Most browsers understand that webservers listen at port 80, so if you configure tomcat to listen on

Re: Question relating to Apache Tomcat/4.1.18-LE-jdk14

2003-02-10 Thread Peng Tuck Kwok
You can include the necessary libraries in the jsp itself. Use this : %@ page import=[put library name here] % kam leung wrote: Dear Sir/Madam, I have installed the Apache Tomcat/4.4.18-LE-jdk14 server. It is having error compiling a jsp file that I have got. The error said cannot resolve

Re: Status 404 - resource not available

2003-02-10 Thread Peng Tuck Kwok
I think the servlet invoker (/servlet/myservlet) is off. Either turn it back on or make a servlet mapping on your own. And yes you will need the web.xml for the servlet mapping. Kenny G. Dubuisson, Jr. wrote: I don't have a web.xml defined. In my old Tomcat 4.0.5 I didn't need one; do I need

Re: MY ATTITUDE

2003-02-10 Thread Peng Tuck Kwok
First off, try and split your rant into several lines. I don't have a monitor that large to see everything in one line, I doubt everyone does. Steve Burrus wrote: I don't really care! I just had to get off of my chest a thing or two, and that is that just about all of you people out there in

Re: exception after several hours idle

2003-02-09 Thread Peng Tuck Kwok
Could you check and see if your database terminates connections after a certain amount of inactivity ? If so you can try and increase the duration. Might be worth a shot. Vladimir Kirillov wrote: Why do you suspect that it is a problem with the database connection? First there was an

Re: JNDI jdbc resources

2003-01-27 Thread Peng Tuck Kwok
-ref-name res-type javax.sql.DataSource /res-type res-auth Container /res-auth /resource-ref Thanks Paul On Monday, January 27, 2003, at 09:21 AM, Peng Tuck Kwok wrote: Let's have a look at your web.xml as well. Might

Re: JNDI jdbc resources

2003-01-26 Thread Peng Tuck Kwok
Let's have a look at your web.xml as well. Might be helpful. Paul Carpenter wrote: Hi All I've scoured the list and got so close, yet so far from making the jdbc stuff work. With some help from Manav and other postings, this is what i see. can anyone solve the riddle? Please see the

Re: Connection pooling for MS Sql server

2003-01-26 Thread Peng Tuck Kwok
My problem is i have to specify username and password for MS Sql server. Password i can specify Here parameter namepassword/name value/value /parameter But Where to specify the user name? You can specify the username as another parameter. parameter nameusername/name

Re: Difficulties with Windows 2000 Installation of Tomcat 4.1

2003-01-22 Thread Peng Tuck Kwok
First, the little bit of not being able to stop the server, yeah you can stop it, but the tomcate (according to what I read from your email) implies that it is running as a service. If you want to stop it you need to open the win2k service and stop it. Set it to manual so that it doesn't run on

Re: Apache Version

2003-01-21 Thread Peng Tuck Kwok
Tammer Salem wrote: Hi, Does anyone know what version of Apache Webserver comes with Tomcat 4.1.18? None. Apache is available as a seperate download. thanks, Tammer Salem -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Connection pooling

2003-01-21 Thread Peng Tuck Kwok
Venkat wrote: Hi, How to set up a connection poll and use the connection pool from jsp in tomcat4.0? Any url or doc will help's me. Look up the tomcat docs , go to the section that says jndi datasources. There is a copy of the docs that come with each distribution of tomcat. That should set

Re: Apache Version

2003-01-21 Thread Peng Tuck Kwok
Tammer Salem wrote: Then Tomcat has it's own web server? Can anyone point me to any reference documentation that shows how this works? Tomcat can serve html pages, if you'd poke around in the ROOT webapp you will see plenty of html pages in there. Basically if your webapp needs to have html

Re: Apache Tomcat Virtual Host

2003-01-19 Thread Peng Tuck Kwok
Seems like the mime type is not set properly. Check and see if you have set it, tomcat should have it set ok, you may need to configure your web server to do the same if it hasn't already. Chris Schild wrote: Hi all, I am a newbie to Tomcat. I'm having a problem with configuring the virtual

Re: Name jdbc:comp is not bound in this context

2003-01-14 Thread Peng Tuck Kwok
Nicole Hibbard wrote: I resolved my own problem, and should have caught it along time ago. I needed to install the standard 4.1.18 to access JNDI resources. Hope that this might help someone else in the future. I'm using 4.1.12 and jndi resources work fine :) . -Original Message-

Re: Name jdbc:comp is not bound in this context

2003-01-14 Thread Peng Tuck Kwok
resources.:) -Original Message- From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:18 PM To: Tomcat Users List Subject: Re: Name jdbc:comp is not bound in this context Nicole Hibbard wrote: I resolved my own problem, and should have caught it along time

Jasper error

2003-01-14 Thread Peng Tuck Kwok
Has anyone encountered an error like this? org.apache.jasper.JasperException: connect: Address is invalid on local machine, or port is not valid on remote machine at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248) at

Re: javax.naming.NameNotFoundException: Name admin is not bound inthis Context

2003-01-13 Thread Peng Tuck Kwok
The name is not defined correctly in that context. What kind of a resource is it ? David Durst wrote: Does anyone know what this is caused by? I have admin/larco defined as a resource in server.xml and I am using the resource under admin. Why is this causing a problem -- To

Re: javax.naming.NameNotFoundException: Name admin is not bound inthis Context

2003-01-13 Thread Peng Tuck Kwok
The server.xml looks right . What about the web.xml in your webapp ? How does it look like ? David Durst wrote: The name is not defined correctly in that context. What kind of a resource is it ? Context path=/admin docBase=sfadmin debug=1 Resource name=jdbc/larco

Re: javax.naming.NameNotFoundException: Name admin is not bound inthis Context

2003-01-13 Thread Peng Tuck Kwok
Sure it won't work. Check out the res-ref-name. Here you claim it is admin/larco , but in server.xml you tell tomcat it is jdbc/larco. So if you do a lookup for jdbc/larco or admin/larco the name is not bound to the context. admin/larco should be jdbc/larco. Make the changes and see if it

Re: javax.naming.NameNotFoundException: Name admin is not bound inthis Context

2003-01-13 Thread Peng Tuck Kwok
Sounds like you don't have the appropiate driver loaded or you have incorrectly specified your pgsql driver in server.xml. Double check the values. I make that mistake alot. David Durst wrote: Sure it won't work. Check out the res-ref-name. Here you claim it is admin/larco , but in server.xml

Re: javax.naming.NameNotFoundException: Name admin is not bound inthis Context

2003-01-13 Thread Peng Tuck Kwok
David Durst wrote: Sounds like you don't have the appropiate driver loaded or you have incorrectly specified your pgsql driver in server.xml. Double check the values. I make that mistake alot. I have gotten that answer like 10 times now :( I have the correct driver specified :) I must have

Re: javax.naming.NameNotFoundException: Name admin is not bound inthis Context

2003-01-13 Thread Peng Tuck Kwok
I've used DBCP on 4.1.12 and 4.0.X David Durst wrote: David Durst wrote: Sounds like you don't have the appropiate driver loaded or you have incorrectly specified your pgsql driver in server.xml. Double check the values. I make that mistake alot. I have gotten that answer like 10 times now

Re: javax.naming.NameNotFoundException: Name admin is not bound inthis Context

2003-01-13 Thread Peng Tuck Kwok
David Durst wrote: I've used DBCP on 4.1.12 and 4.0.X well, its now working. Strangely enough haveing the driver in WEB-INF/lib causes a problem, somone should document that on the page (Specifically telling people where to put the jar) Strangely enough they did. If you have some time and go

Re: javax.naming.NameNotFoundException: Name admin is not bound inthis Context

2003-01-13 Thread Peng Tuck Kwok
print out the connection object. See what it says. For example in this code fragment : datafinder = new JNDIFinder(java:comp/env/jdbc/AthenaDB) ; ds = datafinder.ReturnDataSource() ; if(ds!=null){ Connection conn = ds.getConnection() ; System.out.println(conn.toString()) ; Should result

Re: ldap library for tomcat

2003-01-12 Thread Peng Tuck Kwok
Martin Smith wrote: I don't think he needs an LDAP library: I think he needs to use JNDIRealm authentication . Haven't checked lately, but I have the impression that's in the standard Tomcat distribution now. Yes it is in the standard Tomcat distribution now. I think it has been included

Re: Cannot load JDBC driver class 'null'

2003-01-10 Thread Peng Tuck Kwok
I have experience that before, but that was my fault rather than tomcat. I put the source jar instead of the driver binary. Other than that DBCP worked as described in the tomcat documents. Cannot load JDBC driver class null usually means that it couldn't find the jdbc driver that you

Re: Help with Tomcat 4.1 installation please?

2003-01-08 Thread Peng Tuck Kwok
Are you installing tomcat from a exe ? If so you may have already started tomcat from the service, in this case it is already started, you can test by going to port 8080 on your own machine using the web browser. If you prefer to run from a batch file, either stop the current service and

Re: tomcat 4.1.12 just stopped working, help !

2003-01-07 Thread Peng Tuck Kwok
Hmm, it looks like an error in the web.xml of a certain app. Did you by any chance change the web.xml of any of your web applications ? [EMAIL PROTECTED] wrote: Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This

Re: SV: tomcat 4.1.12 just stopped working, help !

2003-01-07 Thread Peng Tuck Kwok
If you are sure that is the xml in question, can you forward it to the list so we can have a look? [EMAIL PROTECTED] wrote: I checked the .../webapps/examples/WEB-INF/web.xml and I checked line 115 as suggested in the log, I found some servlets that I had added and removed these lines just to

Re: Tomcat-4-1-12 Connection Pool problem JNDI Datasource

2003-01-06 Thread Peng Tuck Kwok
Paul Carpenter wrote: Now I just checked my machine, and I'm running JDK 1.3.1. However, checking the API documents on the Sun site, 1.3.1 has no javax.sql.* package implemented - it doesn't appear until JDK 1.4. Which may explain the 'null' me thinks? The javax.sql package is

Re: changing the jndi datasource example

2003-01-06 Thread Peng Tuck Kwok
Looks like the driver you asked it to load cannot be found. Are you sure you have placed the driver(if it is the correct one) in the right place ? Nick Torenvliet wrote: Hi, so I managed to get the jndi data example on the tomcat site working locally. What I want to do is use the resource

Re: Server Hangs Up when lookup for jndi name is made. (URGENT)

2002-12-23 Thread Peng Tuck Kwok
Check out the parameter name validationQuery, either remove it or provide it a sql select statement. so that it looks like: parameter namevalidationQuery/name valueselect * from dummytable/value /parameter The table has to be valid and (apparently) cannot return zero rows according to

Re: DataSource error (DBCP)

2002-12-23 Thread Peng Tuck Kwok
Could you post your source code for the java code? Sounds like you are missing javax.sql.* , but can't be sure until someone has a look at it. [EMAIL PROTECTED] wrote: i've already done that somehow i compiled :) DBTest.java and where should i place the DBTest.class file. EVERYWHERE I TRIED

Re: DataSource error (DBCP)

2002-12-23 Thread Peng Tuck Kwok
-- Peng Tuck Kwok pengtuck@makm To: Tomcat Users List [EMAIL PROTECTED] al.net cc

Re: Directory for classes

2002-12-22 Thread Peng Tuck Kwok
Classes for your webapps go into the /{webapp directory}/WEB-INF/{lib or classes} . Ryuji Yokoyama wrote: Hello All! I just upgraded Tomcat 4.0.6 to 4.1.18, but I can't figure out where I should put my class files. I tried following directories. $CATALINA_HOME\common\classes

Re: How do you get a C:\ prompt in Windows XP?

2002-12-18 Thread Peng Tuck Kwok
This works as well if your home path is C:\ cd %HOMEPATH% Ronin Quigley wrote: Thanks for your tips. When I type C:\ I get the following message 'C:\' is not recognised as an internal or external command, operable program or batch file. Any other suggestions? Rocket - Original Message

Re: Tomcat setup question.

2002-12-16 Thread Peng Tuck Kwok
So do I need to add an environmental variable to let my compiler find these? Or do I just need to move the .jar files to the right location? How do I know which .jar files are the correct ones to use (as I mentioned, there are a number of them that seem to have what I'm looking for)? You can

Re: Tomcat setup question.

2002-12-16 Thread Peng Tuck Kwok
appreciative if anyone could help! -Original Message- From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 4:41 PM To: Tomcat Users List Subject: Re: Tomcat setup question. So do I need to add an environmental variable to let my compiler find these? Or do

Re: Tomcat setup question.

2002-12-16 Thread Peng Tuck Kwok
, clearly, something needs to be done so that the java compiler can find these packages. Exactly what that is I do not know and would be very appreciative if anyone could help! -Original Message- From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 4:41 PM

Re: Tomcat setup question.

2002-12-16 Thread Peng Tuck Kwok
); out.println(HEADTITLETest/TITLE/HEAD); out.println(BODY); out.println(test); out.println(/BODY); out.println(/HTML); } } -Original Message- From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 5:10 PM To: Tomcat Users List Subject: Re

Re: Connection pooling with sql server

2002-12-15 Thread Peng Tuck Kwok
I've never managed to get tomcat to hang on a mis-configured db-pool, just got it to throw exceptions. Post your server.xml and web.xml and let the mailling list have a look. Your jsp or servlet if you are using any would be helpful. Ashruf Hussain wrote: Hi all, I am new user of tomcat 4.1,

Re: where do i find the jar to be downloaded

2002-12-15 Thread Peng Tuck Kwok
Hmm, the jar files can be found with your copy of tomcat. Look under $CATALINA_HOME\server\lib or if you have the source you could build it yourself. Santosh Kulkarni wrote: Which jar contains the following packages: 1. org.apache.tomcat.core.* 2. org.apache.tomcat.util.* 3.

Re: Tomcat for Enterprise Applications

2002-12-13 Thread Peng Tuck Kwok
Tomcat only does jsp/servlets, so if you are after EJB's then you need something like Jboss, which also bundles tomcat for jsp/servlets or jetty. Apparently Jboss is pretty good and a lot of people are happy with it so you might want to look into it. You need to pay for the docs though. G.

Re: Off Topic: SAP DB

2002-12-10 Thread Peng Tuck Kwok
Yes. working fine for me. Works ok with sun app server as well. Fabio Mengue wrote: Hello, Does anyone here has tested or uses SAP DB (www.sapdb.org) ? I am willing to try it, but the setup is a little complicated. Thanks, Fabio. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

Re: I don´t understand the objective of this open list !

2002-12-09 Thread Peng Tuck Kwok
The documentation sure does need some work in certain areas, but it is hardly in the sad state that you claim it is in. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: I don´t understand the objective of this open list !

2002-12-09 Thread Peng Tuck Kwok
Mike DiChiappari wrote: The documentation sure does need some work in certain areas, but it is hardly in the sad state that you claim it is in. Ok so I manage to get you to describe some of the problems you are having. I consider that an improvement from all the other mails I have seen so far

Re: Run Tomcat without JDK

2002-12-04 Thread Peng Tuck Kwok
I don't really see how they can raise a issue with this. Even if the use some other app server, all of them insist that you install a jdk first in order to use it. I can think of Sun One Application Server as a prime example of this, although it allows you to pick a existing installation of

Re: problem with mod_webapp

2002-12-03 Thread Peng Tuck Kwok
Means the entry you added in the web.xml is wrong. It follows a certain order which is described in the error. (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file), init-param*,load-on-startup?,run-as?,security-role-ref*). Leong Hong Wai wrote: Hi all, Anyone has any idea

Re: Can't start tomcat

2002-12-03 Thread Peng Tuck Kwok
Can't remmember the exact command but if you do a google search for Out of environment space should bring a lot of relevant hits. That's how I found the solution. Don't forget to restart your machine. Aleks Kleyn wrote: I also followed this recommendation because I had similar problem. When I

Re: Retrieving username and password from url??

2002-12-02 Thread Peng Tuck Kwok
You could use a regular expression to get the items you want or Tokenize the string until you get what you want. There are several regular expression packages that you can use, which is available under the jakarta project or if you are so inclined you can use the one that comes with jdk1.4

Datasource and Web.xml

2002-12-02 Thread Peng Tuck Kwok
If a web application uses a jndi datasource, should the web.xml contain the definition for the datasource before deployment (that is in the war file) or after deployment (that is after the war file has been deployed) ? This sounds strange as I was having problems with this in tomcat 4.1.12 ,

Re: Datasource and Web.xml

2002-12-02 Thread Peng Tuck Kwok
Thanks craig. I'll look up the ResourceLink element. Craig R. McClanahan wrote: On Tue, 3 Dec 2002, Peng Tuck Kwok wrote: Date: Tue, 03 Dec 2002 12:09:42 +0800 From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject

Re: tomcat 4.1.12 log of pages hit

2002-12-01 Thread Peng Tuck Kwok
Most log files are in the logs directory, one for each context. I'm not sure if it is compulsory to define a logfile for a context, but if you don't then that's probably why you don't have a log file. Hanasaki JiJi wrote: I dont seem to find the web hit logs? The ones that can be run through

Re: HELP!! Tomcat crashes on me!

2002-12-01 Thread Peng Tuck Kwok
As far as I can tell, the zipped version is identical to the exe distro for each identical version, save the fact that the exe lets you start tomcat as a service, create shell extensions and create the admin user for the tomcat administration. Jacob's suggestion is useful, try and run the

Re: HELP!! Tomcat crashes on me!

2002-12-01 Thread Peng Tuck Kwok
Try a different JDK ? Sorry earlier on about asking you to use start.bat should have been catalina.bat I'm using j2sdk1.4.0_02 btw. Steve R Burrus wrote: Bill, I am about to go to bed, but I couldn't help but displaying the screen dump to u from executing the catalina run command: