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
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
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
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
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
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
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.
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
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
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,
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
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.
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
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:
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.
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
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
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
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
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
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
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
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
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]
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
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:
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
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:
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
-
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
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
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
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
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
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
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 =
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
;;
*)
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
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
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
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
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
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
(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
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
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
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
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
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
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
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,
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.
52 matches
Mail list logo