TomCat 4.0.x and Apache 2

2002-07-04 Thread John Wadkin
All, Java 1.2 Solaris 8 I'm considering upgrading from Apache 1.x and TomCat 4.0.1, to Apache 2.x and TomCat 4.0.4 There aren't any binaries for the mod_wepApp connector so I'm preparing to compile my own. So far, I've gathered various readme's and websites and searched mail archives. I

Building mod_jk on Solaris - Apache 2 Tomcat 4.0.x

2002-08-14 Thread John Wadkin
All I'm trying to integrate Apache 2 and Tomcat 4.0.4 on Solaris, JDK 1.3. I've been trying on and off for the past few months. Having given up on building mod_webapp (despite help from the list) I'm now trying to build mod_jk The build-unix.sh script in /jk/native/apache-2.0 doesn't work. The

RE: NullPointerException: causes?

2002-02-04 Thread John Wadkin
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 31 January 2002 20:31 To: Tomcat Users List Subject: Re: NullPointerException: causes? I think DB_URL string making should be jdbc:oracle:thin: @111.22.333.44:1521:SID looks like yor are missing '@' symbol. -Chinni. John

RE: TOMCAT 4.X - mod_jk

2002-02-06 Thread John Wadkin
I've quickly read the howto and I'm not sure that I agree with everything! I haven't defined a virtual host in httpd.conf and everything works fine. The author also makes this curious statement: !-- Replace localhost with what your Apache ServerName is set to -- !-- # This line

RE: TOMCAT 4.X - mod_jk

2002-02-06 Thread John Wadkin
://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/engine.html) I think your interpretation is right. (As I'm not using tomcat, I can't verify that) -Ursprüngliche Nachricht- Von: John Wadkin [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 6. Februar 2002 13:50 An: 'Tomcat Users List

RE: SendMailServlet.class

2002-02-06 Thread John Wadkin
A quick rummage on the net turned this up... http://java.sun.com/products/javamail/FAQ.html#securityManager Just type the exception javax.mail.NoSuchProviderException into Google and it turns up loads of stuff! John Quote for the week: Experience is not what happens to a man; it is what a

RE: Is Apache -warp- Tomcat a Myth?

2002-02-07 Thread John Wadkin
Ken, You said: My httpd.conf file has: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp js1.atomic-interactive.com:8008 WebAppDeploy sample warpConnection /sample/ Where? And what about: AddModule mod_webapp.c The LoadModule directive must be at the end

RE: problem with WebAppConnection at boot time

2002-02-07 Thread John Wadkin
The error Web-application not yet deployed is a weird and wacky one. It seems to come and go. If you restart rather than stop and start Apache at the command line, it seems to manifest itself. It sometimes disappears of its own accord with no intervention from me! As I understand it, it's caused

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

2002-02-07 Thread John Wadkin
If I understood your question correctly, you're asking why Apache doesn't like the WebApp directives? My guess would be that the directives for WebAppConnection and Deploy need to come last after the ServerName directive. You also need to change localhost:8008 to jakarta.domain.com:8008 or

RE: problem with WebAppConnection at boot time

2002-02-07 Thread John Wadkin
feel about mod_webapp? Is it stable enough to be used in a production environment? Thanks again! Cindy At 07:47 PM 2/7/02 -, John Wadkin wrote: The error Web-application not yet deployed is a weird and wacky one. It seems to come and go. If you restart rather than stop

RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-11 Thread John Wadkin
Your server.xml needs a host - something like this: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10

RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread John Wadkin
AFAIK, in TomCat 4, every engine needs at least one host. Set engine's defaultHost attribute to match the name attribute of the host element. I assume that earlier versions of TomCat will follow the same logic. Have a read of the TomCat documentation on the engine and host elements. John

Progress?

2002-02-13 Thread John Wadkin
I think this is the first time that I've been threatened by a machine :) Is this progress indicative of a modern information society? Or is it a worrying trend? Quite funny really :) AFAIK, all email servers should bounce a message that doesn't have a from, so the problem is more at the sender's

RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread John Wadkin
the host element is doing is relating an ip address to a name. So it makes sense to me if you don't use domain names (say on a test server), you don't need hosts. However, I'd like to hear other people's thoughts on this and learn more. Mike -Original Message- From: John Wadkin [mailto:[EMAIL

RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread John Wadkin
is doing is relating an ip address to a name. So it makes sense to me if you don't use domain names (say on a test server), you don't need hosts. However, I'd like to hear other people's thoughts on this and learn more. Mike -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED

RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread John Wadkin
guessing and would appreciate any further clarification on this. Mike -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 8:14 AM To: 'Tomcat Users List' Subject: RE: tomcat 4 + apache 1.3 + WarpConnection It would be nice if the developers

RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread John Wadkin
change the Engine name to Bob and it will still work, at least if you don't use host names and access via IP address. From reading the documentation, I get the impression the Engine name property is only used for errors and logging id. Mike -Original Message- From: John Wadkin

RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread John Wadkin
names and access via IP address. From reading the documentation, I get the impression the Engine name property is only used for errors and logging id. Mike -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 9:06 AM To: 'Tomcat Users List

Unjar a war??

2002-02-13 Thread John Wadkin
All, Is it possible to unjar a war file using something like jar -x? I've tried and nothing happens! TomCat obviously does it but how? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]

Deploying wars using Manager

2002-02-14 Thread John Wadkin
All, Is it possible for me to deploy a Web App stored on my Windows NT machine to TomCat running under Unix using the Manager Web App? The docs (as ever) aren't clear on if this can be done and how. If not, then what's the point of the Manager app? Thanks, John -- To unsubscribe:

TomCat's XML parser

2002-02-18 Thread John Wadkin
All, I'm in the process of setting up a (Unix) system ready for a servlet. I'm told by the person who wrote the servlet that it needs a XML parser. He recommends Xerces and (apparently) I'll also need SAX. I know that TomCat uses Xerces but which version? And does that include SAX? If so, which

RE: TomCat's XML parser

2002-02-19 Thread John Wadkin
: TomCat's XML parser Hi, I have the same issue. I would like to use another parser instead of Xerces. Did you get a reply to this question? If yes, could you let me know? thank you -Mehjabin -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Monday

RE: Tomcat + Solaris = ??

2002-02-20 Thread John Wadkin
If I log in as root and start TomCat, then TomCat's user will be root. Ditto if I log in as fred or bert. If, for example, root owns all TC files (i.e. everything under TomCatHome) then you will run into problems trying to run TC as anybody other than root. Change the ownership of TomCat to the

RE: Manager options...

2002-02-20 Thread John Wadkin
Works fine on my Solaris 8, TC 4.0.1, Apache 1.3 system. httpd.conf: WebAppConnection warpConnection warp servername:8008 WebAppDeploy manager warpConnection /manager server.xml !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ One

RE: Manager options...

2002-02-20 Thread John Wadkin
-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 16:26 To: Tomcat Users List Subject: Re: Manager options... Thank yu for the answer, john. I verified again and again, but... John Wadkin a icrit : Works fine on my Solaris 8, TC 4.0.1, Apache 1.3 system. I'm actually runnin

RE: Manager options...

2002-02-20 Thread John Wadkin
- is it there and complete? Thanks, John -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 17:03 To: Tomcat Users List Subject: Re: Manager options... John Wadkin a icrit : The only differences I can see are: You use Manger and /managerstuff whereas I use

RE: Manager options...

2002-02-20 Thread John Wadkin
: Manager options... John Wadkin a icrit : The only differences I can see are: You use Manger and /managerstuff whereas I use manager and /manager - could this have something to do with it? Not sure! You use localhost I use the actual server name - again, not sure if this has anything to do

RE: Manager options...

2002-02-20 Thread John Wadkin
Craig, Very true - but Manager can still be used to redeploy and stop/start Web App's. I found it easier to manually install App's than use Manager. Looking at the larger issues, this thread raises questions about the clarity of documentation and the ease (or not) of the TomCat-Apache

TomCat 4 and XML parsers

2002-02-21 Thread John Wadkin
Just discovered (by chance) that the on-line docs are missing this bit from the class-loader howto... This is the sort of info I wanted a while ago - I thought that the on-line docs contained the latest info?? == TomCat 4 and XML parsers Tomcat 4 itself utilizes XML parsing for three

RE: TomCat 4 and XML parsers

2002-02-21 Thread John Wadkin
Er, none of the documentation on parsers make sense! The only parser I can find is in common/lib *not* server/lib. This means that (if the docs on class loading are correct) the XML parser xerces.jar is visible to TC and all Web Apps, which might cause problems if you where to use a parser in a

Servlet POST results in 404 error

2002-02-26 Thread John Wadkin
All, TomCat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I have a servlet that returns a 404 error whenever a POST is sent. GET works fine. The servlet uses sessions - not sure if this has anything to do with it. My server.xml just defines a context and a logger. The web.xml has a servlet name and

RE: Servlet POST results in 404 error

2002-02-26 Thread John Wadkin
Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 16:11 To: Tomcat Users List (E-mail) Subject: Servlet POST results in 404 error All, TomCat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I have a servlet that returns a 404 error whenever a POST is sent. GET works fine

RE: Servlet POST results in 404 error

2002-02-26 Thread John Wadkin
: Ken Martin [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 19:08 To: Tomcat Users List Subject: Re: Servlet POST results in 404 error On Tuesday, February 26, 2002, at 12:25 PM, John Wadkin wrote: I'd give you the URL but I'd have to give passwords and stuff... It goes like

RE: Servlet POST results in 404 error

2002-02-26 Thread John Wadkin
with servletname is called for that servlet. Randy -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 2:44 PM To: 'Tomcat Users List' Subject: RE: Servlet POST results in 404 error The servlet is an application that has numerous

RE: Servlet POST results in 404 error

2002-02-26 Thread John Wadkin
method implemention for us to see. Is tat post method even invoked? -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 12:11 AM To: Tomcat Users List (E-mail) Subject: Servlet POST results in 404 error All, TomCat 4.0.1 Apache

RE: Tomcat x Apache

2002-02-27 Thread John Wadkin
Your interpretation of the problem seems accurate. catalina.out and apache's error log should tell you more. Does engine in Service name=Tomcat_Apache in server.xml have a host nested within it and the examples context defined within the host? John -Original Message- From: Cleber

RE: file creation

2002-03-05 Thread John Wadkin
#!/sbin/sh # case $1 in start) echo Starting TomCat 4... su - nocat -c /usr/local/tomcat/bin/startup.sh sleep 10 /usr/local/apache/bin/apachectl start ;; restart) ;; stop) /usr/local/apache/bin/apachectl stop echo Stoping TomCat

RE: Problems with SendMailServlet

2002-03-06 Thread John Wadkin
I came across the same problem and worked out why - miracle :) Despite having all the correct jars and setting the classpath properly, the servlet wouldn't compile. I downloaded the .class from one of the tomcat zips that did have it. That didn't work - weird error about the date. I downloaded

Problems using own XML parser

2002-03-09 Thread John Wadkin
All, Tomcat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I'm trying to use the aelfred parser in a servlet. I've read the docs on class loaders and XML but no luck so far. I moved xerces.jar from common/lib to server/lib and re-started TomCat. A couple of errors appeared in catalina.out relating to

RE: Tomcat changing file ownership

2002-03-11 Thread John Wadkin
Ted, If I understand your question correctly, you want to find a way to alter the default file permissions for the TomCat user? The only thing I can think of is umask, which sets the default permissions. In Solaris (C shell): umask 000 Sets (I think!) read and write for all (user, group,

RE: Tomcat changing file ownership

2002-03-11 Thread John Wadkin
. That will definitely solve the problem, but why does tomcat change the files to its ownership? As long as it can read the files, I wouldn't think tomcat would need to own the files to run them? Ted -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 9

RE: AW: How to Unsubscribe?

2002-03-11 Thread John Wadkin
Just a thought.. The mail thingy had a go at me when an email from the list to my email account bounced. It threatened to withdraw me from the list if further mails bounced and a probe was unsuccessful. If you can re-configure your mail server to reject TC emails or take your account off-line

RE: Problems using own XML parser

2002-03-12 Thread John Wadkin
! The docs give the impression that it's a simple case of moving xerces.jar and putting your own parser in /WEB-INF/lib, but this just doesn't work. Thanks, John -Original Message- From: John Wadkin Sent: 09 March 2002 03:04 To: Tomcat Users List (E-mail) Subject: Problems using own XML parser

RE: Problems using own XML parser

2002-03-12 Thread John Wadkin
this in the comments portion of server.xml. I have not tried this, but would like to know if you found a way to use another parser with Tomcat. I assume you don't use JAXP API's but call alphred's classes directly. Ev -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent

RE: Problems using own XML parser

2002-03-12 Thread John Wadkin
see the archives or bugzilla as this was addressed in 4.0.3 or 4.0.4b1(I don't remember which one) Charlie -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 10:59 AM To: 'Tomcat Users List' Subject: RE: Problems using own XML parser I'm

RE: Problems using own XML parser

2002-03-13 Thread John Wadkin
: Rick K [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 06:09 To: Tomcat Users List Subject: RE: Problems using own XML parser Maybe you covered this before, but: Why doesn't Xerces meet your needs? I'm not much of an XML expert, I'm just curious. --- John Wadkin [EMAIL PROTECTED] wrote: Charlie

XML curiosities

2002-03-19 Thread John Wadkin
All, A few XML issues. Firstly, I wrongly put this in server.xml: Valve classname=org.apache.catalina.valves.RemoteAddrValve allow=ip address, ip address / Instead of seeing a SAX parse exception or similar, this appeared in catalina.out: ERROR reading /usr/local/tomcat/conf/server.xml At

RE: XML curiosities

2002-03-19 Thread John Wadkin
20:48 To: Tomcat Users List Subject: Re: XML curiosities On Tue, 19 Mar 2002, John Wadkin wrote: Date: Tue, 19 Mar 2002 17:22:47 - From: John Wadkin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Subject: XML

RE: XML curiosities

2002-03-19 Thread John Wadkin
that LUSID uses, use the DTD and the entity files. I've not found *anywhere* where it says that this is valid or possible. It does work with Xerces 1 but not 2. Thanks, John -Original Message- From: Dr A.C. Marshall [mailto:[EMAIL PROTECTED]] Sent: 19 March 2002 17:33 To: John Wadkin Cc

RE: Web-application not yet deployed

2002-03-20 Thread John Wadkin
I've only seen this error when: I've tried starting Apache before TomCat TomCat hasn't started - Apache can't communicate with it I've tried starting Apache too soon after starting TomCat Hope it helps! John -Original Message- From: William Crook [mailto:[EMAIL PROTECTED]] Sent: 20

WARP connector and TomCat 4.0.1 - bug?

2002-03-27 Thread John Wadkin
All, A Servlet I look after uses Eteks PJA ToolKit for fonts. I tried accessing a HTML page generated by the Servlet that uses the fonts: HTTP/1.1 200 OK Date: Wed, 27 Mar 2002 16:39:53 GMT Server: Apache/1.3.22 (Unix) Content-Type: text/html Keep-Alive: timeout=15, max=97 Connection:

RE: WARP connector and TomCat 4.0.1 - bug?

2002-03-27 Thread John Wadkin
Forgot to mention: Solaris 8 JDK 1.2 Apache 1.3 TomCat 4.0.1 Warp connector Thanks, John -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: 27 March 2002 16:53 To: Tomcat Users List (E-mail) Subject: WARP connector and TomCat 4.0.1 - bug? All, A Servlet I look

Help with ClassLoading

2002-04-03 Thread John Wadkin
All, Tomcat 4.0.1 Apache 1.3 mod_WebApp Java 1.2 I've got a servlet that uses Eteks PJA ToolKit. I've set CATALINA_OPTS to include the environment variables: -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment -Djava.awt.fonts=font directory

TomCat crashes using PJA

2002-04-04 Thread John Wadkin
All, TomCat 4.0.1 Apache 1.3 WARP connector JDK 1.2 [If you read nothing else, look at the stack trace at the end of this mail - pretty bad!] I've had numerous problems trying to get the PJA ToolKit to work with my servlet. I set CATALINA_OPTS: -Dawt.toolkit=com.eteks.awt.PJAToolkit

TomCat crashes using PJA

2002-04-04 Thread John Wadkin
All, TomCat 4.0.1 Apache 1.3 WARP connector JDK 1.2 [If you read nothing else, look at the stack trace at the end of this mail - pretty bad!] I've had numerous problems trying to get the PJA ToolKit to work with my servlet. I set CATALINA_OPTS: -Dawt.toolkit=com.eteks.awt.PJAToolkit

TomCat crashes using PJA

2002-04-05 Thread John Wadkin
with servlets? I was thinking that others might have had similar problems but I've not found anything in any archive I've searched. Thanks, John -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: 04 April 2002 17:07 To: Tomcat Users List (E-mail) Subject: TomCat

Character encoding problem: strange rash

2002-04-15 Thread John Wadkin
All, Tomcat 4.0.1 Apache 1.3 WARP Solaris 8 JDK 1.2/1.3 Does anyone know why a servlet would suddenly start displaying non-breaking spaces (#160;) as question marks (?) when the JDK/SDK is upgraded from 1.2 to 1.3? Very odd behaviour! Like a rash - question marks all over the place :) The

RE: List Down?

2002-05-09 Thread John Wadkin
...and self aware, Terminator-style. It chooses which messages to send, and which to submit to the ether. It chooses how many copies of a message to send - anything from one to half-a-dozen. It also threatens me on a regular basis with removal from the list because people (who I have no control

TomCat 4, Servlets Oracle JDBC

2002-01-17 Thread John Wadkin
I'm charged with the task of getting a servlet working using Apache 1.3, TomCat 4 and Oracle on a Unix platform. The servlet parses xml documents into HTML pages with content taken from an Oracle database via jbdc (thin) drivers. My question relates to the jdbc drivers bit - as I understand it,

Re: Tomcat does not shutdown with script

2002-01-17 Thread John Wadkin
Yeah - seen this before. I've (we've) just managed to get TomCat working. I wasn't entirely certain as to where the two environment variables JAVA_HOME and CATALINA_HOME should go, so I stuck them at the top of the catalina.sh script (not necessarily the best place to put them but it works).

RE: Tomcat does not shutdown with script

2002-01-18 Thread John Wadkin
, Paul John Wadkin [EMAIL PROTECTED] 01/16/2002 07:24 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: Tomcat does not shutdown with script Yeah - seen this before. I've (we've) just managed to get TomCat

RE: web.xml Question

2002-01-22 Thread John Wadkin
I'm no expert on XML, but I do write documents in XML which are then parsed/interpreted by a servlet (which I didn't write). As far as I know, any XML document will parse without a DTD. A DTD just provides the syntax - e.g. tag names, tag attributes, tag structures (list of tags that a tag can

JDBC drivers

2002-01-24 Thread John Wadkin
All, The JDBC drivers provided by Oracle are zipped but as I understand it, only jar files are recognised. Is this correct? If so, I guess I'll have to unzip and then jar? I'm using TC 4 on Solaris 8. Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the

RE: Prevent TC from serving documents

2002-01-24 Thread John Wadkin
Wouldn't a Remote Host or Address Filter come in handy here? Has deny and allow like Apache. Just a guess! Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know when to stop raking the muck. Theodore

RE: INSTALLING TOMCAT - PART II

2002-01-28 Thread John Wadkin
on unix: ps -ef and look for java. ps -ef is also handy for checking any variables passed to the JVM. Not sure of the Linux format for this command! Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know

Exception explanation

2002-01-29 Thread John Wadkin
Apologies is this has been asked before... What does this error mean - java.net.SocketException: socket closed: Bad file number - in the apache_log.date.txt file? Had a look on the net but couldn't find anything useful. I don't write servlets, so socket exceptions have no meaning to me! Seems

RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST...

2002-01-31 Thread John Wadkin
Lasse When you say list signature do you mean this: To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] If so, then I think the real issue is, Why's the signature there in the first place?. Mailing list

NullPointerException: causes?

2002-01-31 Thread John Wadkin
Can anyone offer any suggestions about the cause of the attached NullPointerException trace? I've managed to setup and integrate Apache 1.3 and Tomcat 4.1 using mod_WebApp on Solaris 8 (JDK 1.3). I ran the attached servlet (which I didn't write) with the hope of testing that everything was

RE: NullPointerException: causes?

2002-01-31 Thread John Wadkin
dbCcon is null. (line 217). So probably something is wrong in setting up the connection. Mvgr, Martin -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 18:41 To: Tomcat Users List (E-mail) Subject: NullPointerException: causes? Can