java startup option trouble

2004-02-09 Thread John-Paul Delaney
Hello List... I have a requirement to startup java with a -noverify option. I've put this is /etc/profile as a JAVA_OPTS value. My probem is on system startup, Tomcat starts ok but the classes that need the -noverify parameter don't work until I login as root, shutdown Tomcat then start it

alias directive/Virtual host problem

2003-11-24 Thread john-paul delaney
Hello List... In order that a virtual host respond correctly to urls: http://mydomain.com http://www.mydomain.com I've had to add two host entries in server.xml (one for mydomain.com, the other for www.mydomain.com). I thought it would have been enough to add the alias directive for the

RE: alias directive/Virtual host problem

2003-11-24 Thread john-paul delaney
Thanks Patrick... then as suspected, I must have a misconfiguration: Host name=mydomain.com debug=0 appBase=webapps/mdom unpackWARs=true autoDeploy=true Context path= docBase= debug=0 reloadable=true crossContext=true Aliaswww.mydomain.com/Alias ... Now

RE: alias directive/Virtual host problem

2003-11-24 Thread john-paul delaney
to see an error message in such case). Patrick -Original Message- From: john-paul delaney [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:33 AM To: Tomcat Users List Subject: RE: alias directive/Virtual host problem Thanks Patrick... then as suspected, I must have

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

2003-11-19 Thread john-paul delaney
as send? cause if all you need to do is send, why don't you just dispatch it as an email? Sai. On Wed, 10 Sep 2003 23:34:51 -0100 (GMT+1), john-paul delaney wrote Hello List... this is a tricky one I believe, Serial port-connected mobile phone - I'd like to find out how to send sms messages

[OT] Upload 2 images with one jdbc INSERT?

2003-11-07 Thread john-paul delaney
Hello List... Apologies if this is off-topic, I posted to the jdbc forum on sun with little response. I insert an image into a postgres db using the following code: URL urlImage = getServletContext().getResource( /images/ + imageFilename); URLConnection

Re: [OT] Upload 2 images with one jdbc INSERT?

2003-11-07 Thread john-paul delaney
Thanks for the advice(s) Chris... I ignorantly hadn't realized I could open more than one stream, using only one stream returned a negativearray exception (?), while the second stream appears to have worked nicely. And yes, as you guessed - I hadn't closed the streams and URLConnections.

OT: db pool problems - jdbc connection count?

2003-10-30 Thread john-paul delaney
Hello List... Sorry if this is off-topic. Although I think I'm following the jndi-resources-howto fairly well, I find I'm running out of connections and I have to restart tomcat to free them up. I'd like to know how many jdbc connections are in use at any given time with the intention of

Re: OT: db pool problems - jdbc connection count?

2003-10-30 Thread john-paul delaney
Thanks Oscar... I ran some servlets and observed the postgres processes going over the maxActive (33 to 30) limit set in server.xml and also those processes marked idle topped the maxIdle value (21 to 15). The number of processes then dropped to 25, and I don't experience any problems with db

RE: OT: db pool problems - jdbc connection count?

2003-10-30 Thread john-paul delaney
Thanks Yoav... sorry it's a wee bit above my immediate understanding (e.g lookup my connection pool by JNDI name - I could do with an example of what this means) plese be patient and point me to a resource that will give me some lead to catch up with you. regards /j-p. On Thu, 30 Oct 2003,

RE: OT: db pool problems - jdbc connection count?

2003-10-30 Thread john-paul delaney
Oscar... I'll keep a close lookout for when you publish your HOWTO. In the meantime, I'll try to follow Yoav's instructions, and get back to the list with any eventual errors I make. thanks again to you both, /j-p. On Thu, 30 Oct 2003, Oscar Carrillo wrote: Thanks for a more complete

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

2003-09-11 Thread john-paul delaney
Ok sorry List... it came into my head last thing before going to bed, and I didn't even bother to think it out before firing off the message. Stupid me. As suggested, I'll do some research and take it up to a more appropriate venue. Thanks for the replies however. /j-p.

Mobile phone on serial port - Howto send sms?

2003-09-10 Thread john-paul delaney
Hello List... this is a tricky one I believe, Serial port-connected mobile phone - I'd like to find out how to send sms messages using tomcat on linux. Anyone got any leads? I'd appreciate any help. thanks, /j-p. - To

JNDI DataSource - need to synchronize?

2003-09-07 Thread john-paul delaney
Hello List... Some coding help please. Following earlier advice on this list and the TC datasource how-to, I've now got a working test servlet. Basically I declare the Context(s) and DataSource as instance variables, and initialize them in init:

[OT] Can't find Commons-Pool jarfile

2003-09-06 Thread john-paul delaney
Hello List... I'm trying to setup a jndi datasource connection (following the tc docs) but I can't find the commons-pool 1.0.1 jarfile on the jakarta download site. Anyone point me to a download link for Pool please? Thanks /j-p.

Re: [OT] Can't find Commons-Pool jarfile

2003-09-06 Thread john-paul delaney
Thanks but... http://jakarta.apache.org/commons/pool/downloads.html ... links to the jakarta binary download page but there's no reference to Pool there. /j-p. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

[OT] JDBC confusion

2003-08-14 Thread john-paul delaney
Hello List... newbie question coming up: If I set up a jdbc connection object in one servlet, do I have to close it each time or can the same connection be re-utilized by other servlets each using a different sql statement (perhaps storing the connection as a session attribute?). Is there a

[Fileupload](java newbie):cannot resolve symbol

2003-07-28 Thread john-paul delaney
I had posted the following to the jakarta commons list but maybe it has more to do with Tomcat administration (or my bad programming). Any advice is much appreciated. /j-p. ** Hello List... My plan is to to stream uploaded files directly into a database. This may be a bit

Re: [Fileupload](java newbie):cannot resolve symbol

2003-07-28 Thread john-paul delaney
On Mon, 28 Jul 2003, john-paul delaney wrote: The compile chokes at the first assignment: boolean isMultipart = FileUpload.isMultipartContent(req); with a cannot resolve symbol on the FileUpload object. btw the context log shows the jar being loaded: 2003-07-28 17:05:43 ContextConfig

Re: [Fileupload](java newbie):cannot resolve symbol

2003-07-28 Thread john-paul delaney
Thanks Brian... I had tried removing the package line but the compiler complained the package couldn't be found. Is it overkill to have a package statement and an import statement for the same? In the end I just added the jar to the classpath... but I don't understand why it failed when the

Re: [Fileupload](java newbie):cannot resolve symbol

2003-07-28 Thread john-paul delaney
On Mon, 28 Jul 2003, John Turner wrote: Build != Run. Tomcat is not involved in the build process, only the run process. When your servlet is running, Tomcat ignores CLASSPATH so you will need to make sure your JAR files are in the appropriate location according to the ClassLoader

TC on port 80: run as root?

2003-07-28 Thread john-paul delaney
Hello List... I'm just using the latest release 4.1.24 as my webserver (no apache) with the intention of generating all (or nearly all) content from a back-end db. However I'm worried about starting the server and running as root - security issues. How does the apache server use it's own

web.xml:session-timeout error

2003-07-27 Thread john-paul delaney
Hello List... I've upgraded to 4.1.24 (from a 4.1.x earlier version) and now the following error reported in my catalina.out log. (it's caused by this timeout setting in web.xml: session-config session-timeout 30 /session-timeout /session-config ) however, I didn't

tomcat5: Where's webdav?

2003-07-21 Thread john-paul delaney
Hello List... webdav doesn't appear to be available by default in tc5 - how do I go about setting it up? /j-p. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

catalina.out: Unable to open config

2002-11-15 Thread John-Paul Delaney
Hello List... this is the output of the catalina.out file in CATALINA_HOME/logs directory. What config file is he unable to open (see lines 3 6 of output)? thanks /j-p. == Nov 15, 2002 10:41:30 PM org.apache.coyote.http11.Http11Protocol init

Compile jk2: make breaks

2002-10-15 Thread john-paul delaney
Hello List... I'm trying to setup (compile from source) mod_jk2 with apache2 tomcat 4.1.12-LE. Following the instructions on the mod_jk howto on the jakarta website, I've run into a problem. When I run make from the connectors jk/native2 directory, I get the following error: /usr/bin/ld:

RE: Solved! Dumb Question com.justatest.test.MyServlet error

2002-09-21 Thread john-paul delaney
maps to the package stucture of your servlet and other java classes deployed in the webapp. Change the package name to the right one, recompile the class, redeploy and that should be it. Your servlet mapings are otherwise ok. Jon -Original Message- From: john-paul delaney

Dumb Question ../servlet/com.justatest.test.MyServlet error

2002-09-20 Thread John-Paul Delaney
Hello List... I've created the directory path: tomcat-rootwebapps/jat/WEB-INF/classes/com/justatest/test/ but I get an error when I try to run the oreilly servlet from URL: http://localhost:8080/jat/servlet/com.justatest.test.InitSnoop The same servlet will run ok from URL:

RE: Dumb Question ../servlet/com.justatest.test.MyServlet error

2002-09-20 Thread john-paul delaney
Then what is the URL I should be using to invoke the InitSnoop servlet if the file system location is: tomcat-rootwebapps/jat/WEB-INF/classes/com/justatest/test/InitSnoop? thanks /j-p. On Fri, 20 Sep 2002, Miguel Angel Mulero Martinez wrote: Maybe the InitSnoop.java don't start with

RE: Dumb Question com.justatest.test.MyServlet error

2002-09-20 Thread John-Paul Delaney
- De: John-Paul Delaney [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 20 de septiembre de 2002 12:43 Para: [EMAIL PROTECTED] Asunto: Dumb Question ../servlet/com.justatest.test.MyServlet error Hello List... I've created the directory path: tomcat-rootwebapps/jat/WEB-INF/classes/com

Re: Re[2]: Dumb Question ../servlet/com.justatest.test.MyServleterror

2002-09-20 Thread john-paul delaney
Thanks for confirming that Jacob... I was beginning to doubt that I had understood the web app. deployment strategy. Nevertheless, an internal server error is returned when I use the url you suggested: Cannot allocate servlet instance for path /jat/servlet/com.justatest.test.InitSnoop. And

RE: Re[2]: Dumb Question ../servlet/com.justatest.test.MyServleterror

2002-09-20 Thread john-paul delaney
Are you saying that your directory structure (where the servlet .class file resides) looks like the following: TOMCAT_HOME/webapps/your-app-name/WEB-INF/classes/com/justatest/test /InitSnoop.class Yes. Firstly, I needed to know if I was reading the docs correctly - it works for

RE: Dumb Question com.justatest.test.MyServlet error

2002-09-20 Thread john-paul delaney
Thanks Andreas... at first I didn't want to use any web.xml entries as this was just a test directory to run the examples of the oreilly book. I just wanted to compile the examples and run them without messing with web.xml. Nevertheless, I took your advice but I get the same server exceptions

Re: Can servlet write to file in /WEB-INF?

2002-06-22 Thread john-paul delaney
Thanks Milt... yes I'm reading servlet programming by the same author, he'd written a servlet example that reads and writes a counter to an external file resource but it seems the file location varies depending on the container implementation - I was trying to understand how to determine an

Servlet reloading not working.

2002-06-22 Thread john-paul delaney
Hello List... Running tomcat 4.01 and apache 1.3.24 (with mod_webapp and virtual hosts) , when modifying and recompiling any servlet, I need to restart the tomcat for my changes to take effect. A simpler tomcat test install on xp reloads the changes as advertised. I've tried to add a

Can servlet write to file in /WEB-INF?

2002-06-21 Thread john-paul delaney
I was trying to see if I could write to a file in the /WEB-INF directory but I couldn't get it to work - is there a problem with a servlet writing to this directory or is it just me (again ;( ) ? thanks /j-p. URL url = context.getResource(/contextTest.txt); URLConnection con =

SysV init script RH7.0

2002-05-03 Thread john-paul delaney
Hello list... I've setup tomcat4.01 on RH7.0, on jdk1.3. In order to load tomcat successfully, I need to run the following command: ulimit -s 2048. I'd also like to load Tomcat as user tc. Does anyone have a suitable script that I can run in /etc/rc.d/init.d/ on startup - or at least send

Re: SysV init script RH7.0

2002-05-03 Thread john-paul delaney
;; *) echo Usage: $0 {start|stop|restart} exit 1 ;; esac -chad ps. don't forget to link it in rc3.d and rc6.d On Fri, 3 May 2002 13:35:24 -0200 (CEST) john-paul delaney [EMAIL PROTECTED] wrote: Hello list... I've setup tomcat4.01 on RH7.0, on jdk1.3

Re: Html/jpg from db to client?

2002-04-22 Thread john-paul delaney
the image info somewhere in a context so you can access it in the JSP page). Make sense? jeff john-paul delaney wrote: On Mon, 22 Apr 2002, Nikola Milutinovic wrote: Thanks Nix... then I'm thinking I need three servlets to handle for each page sent to the client... 1. Write

Html/jpg from db to client?

2002-04-21 Thread john-paul delaney
Hello List... Using a servlet, I retrieve an image from a database, but I want to send it in a formatted html page to the client... any suggestions on how to approach this (combining html and streaming images) appreciated. thanks /j-p. --- JUSTATEST Art Online

Re: Html/jpg from db to client?

2002-04-21 Thread john-paul delaney
On Sun, 21 Apr 2002, Jeffrey Bonevich wrote: Thanks Jeff... I'll try this out - following your suggestion, I was thinking to put the dimensions of the image (jpg) in the database too and to retrieve it along with the image - the html will be a combination of includes and dynamic written by the

Re: Html/jpg from db to client?

2002-04-21 Thread john-paul delaney
On Mon, 22 Apr 2002, Nikola Milutinovic wrote: Thanks Nix... then I'm thinking I need three servlets to handle for each page sent to the client... 1. Write the html header, 2. Get image from db and send the image, 3.Add in dimensions to img tag add the footer. Is this correct? regards

NewB/Default Servlet:Can't find .gif

2002-02-18 Thread john-paul delaney
Hello List... NEWBIE: I want to generate the welcome page for my domain so I mapped a test servlet to / in the web.xml for my context. PROBLEM: A test.gif image is not rendered by the servlet - as it appears the path is not found. OBSERVED: If I map the servlet instead to /intro then

Re: NewB/Default Servlet:..rethink...

2002-02-18 Thread john-paul delaney
(Subject Was: NewB/Default Servlet:Can't find .gif) On second thoughts.. with regard to this (my previous post) it may have been smarter to simply ask what is the best way to generate a welcome page for a domain using a servlet...? thanks/j-p. NEWBIE: I want to generate the welcome page

RE: NewB/Default Servlet:Can't find .gif

2002-02-18 Thread john-paul delaney
On Mon, 18 Feb 2002, Justin Rowles wrote: PROBLEM: A test.gif image is not rendered by the servlet - as it appears the path is not found. Are you trying to return html including an image link (such as img src=test.gif) or trying to stream an image via the servlet? If the

RE: NewB/Default Servlet:Can't find .gif

2002-02-18 Thread john-paul delaney
Thanks Justin... excerpt from web.xml servlet servlet-name intro /servlet-name servlet-class intro /servlet-class /servlet servlet-mapping servlet-nameintro/servlet-name url-pattern/intro/url-pattern

RE: NewB/Default Servlet:Can't find .gif

2002-02-18 Thread john-paul delaney
Is there a way then, to automatically invoke a servlet by pointing to the url www.mydomain.com (Or am I obliged to use .jsps)? thanks/j-p. On Mon, 18 Feb 2002, Larry Isaacs wrote: The default servlet handles requests that don't map to some other serlvet. This usually includes all static

NuB:javac:cannot resolve symbol

2002-02-13 Thread john-paul delaney
Hello List... I'm trying to compile sample code from Jason Hunter's book 'About Servlet Programming' from O'Reilly. The code is for reusing database connections, and it refers to an external class which had been created on a previous exercise. Although the class from the previous exercise

RE: problem with WebAppConnection at boot time

2002-02-07 Thread john-paul delaney
FWIW, I've noticed that the Tomcat-Apache sequence works when the text: Starting service Tomcat-Apache Apache Tomcat/4.0.1 is written to the $CATALINA_HOME/logs/catalina.out log. Would it be possible to check in the daemon script for this/or whatever process triggers it - in order to

TC4-Warp-Apache:Removed TC-Standalone Service

2002-02-07 Thread john-paul delaney
Hello List, newb question... I've setup virtual hosts with tc-warp-apache by moving all my host elements into the Tomcat-Apache Connector Service element. I then removed the Tomcat-Standalone Connector Service as I want Apache to be the webserver (i.e I don't need TC for that). It appears

Re: I'm stuck. Apache-tom4.0 virtual hosts

2002-02-07 Thread john-paul delaney
I'm a newbie with this but here's what I got... The jakarta documentation says the Host element represents a Virtual Host. One or more Host elements are nested inside an Engine element. ..and on an Engine element it says, Exactly one Engine element must be nested inside a Service element,

Using Warp Connector only: remove http from server.xml?

2002-01-26 Thread john-paul delaney
Hello List... Newbie question. Setting up Redhat7.0/TC4.0.1/Apache1.3.20 and after some ironing out, all now appears to work as expected. My question is: do I still need the standalone http connector (configured in server.xml) when I'm using Warp with Apache? thanks /j-p.