Re: Log4j logging !!!

2006-05-24 Thread Alexander E Genaud

WARN: ambiguous subject line
TODO: make meaningful subject
LOG: That should help get the answers you are looking for

--
Alex
--

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Context Problem

2006-05-18 Thread Alexander E Genaud

Fretzlaff,

path not patch





Alex
--
55.67N 12.588E
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1
--

-- Videresendt meddelelse --
From: fretzlaff <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Date: Wed, 17 May 2006 11:58:24 -0700 (PDT)
Subject: Context Problem

I created a context for my webapp with a file named teste.xml under the
conf\Catalina\localhost with de content:




In my app I have a jsp that calls the link /servlet/TestServlet that is
mapped in the web.xml:
  
  test.TestServlet
  test.TestServlet
  
  
  test.TestServlet
  /servlet/TestServlet
  

The problem is that I catch an exception when I click this link: The
requested resource (/servlet/TestServlet) is not available.

The servlet was loaded whithin the context
(localhost:8080/test/servlet/TestServlet) but the jsp click doesn't consider
the context path and try to call the servlet at
localhost:8080/servlet/TestServlet.

Is something wrong in this configuration?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AppBase

2006-05-17 Thread Alexander E Genaud

Hej Dirk,

In catalina.base you have a directory called conf which contains a
file server.xml.
Here you have settings for your Host(s). By default you have
"localhost" with an appBase="webapps". By default, the webapps
directory is a sibling of conf. The webapps directory lets you drag
and drop web applications. webapps/ROOT is an expanded web app
representing the / context where you can drop static content with
immediate results.

You may use absolute paths:
appBase="C:\path\to\my\webapps"
appBase="/path/to/my/webapps"

Or relative paths (relative to catalina.base I assume).


Alex
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1
--


-- Forwarded message --
From: "Dirk Moolman"
Date: Tue, 16 May 2006 18:03:46 +0200

I saw this being discussed in a thread, and found this in the
documentation, but still do not understand the variable (apologies for
all these simple questions).

From the name, I assume "AppBase" is the directory where I install my
individual applications (or is this just one central directory ?).

Where do I set this ?I am still trying to set up a Tomcat server on
Linux, but only get as far as the deployment of war files - in short, I
have never worked with Tomcat before, and am still trying to understand
it's structure / layout ...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JRE 1.4.2 without xerces

2006-04-29 Thread Alexander E Genaud

Hej,

I have just started using 5.5.17 Embed and have included the jmx.jar
from tomcat-compat. Though it seems xml-api.jar and xercesImpl.jar are
not required when using Sun's JRE 1.4.2 on Windows XP. I plan to
distribute a product on various platforms with 1.4.2 as the minimum
requirement. What do xml-api and xerces provide that is lacking in
JRE 1.4.2?

Alex
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Context.xml

2006-04-19 Thread Alexander E Genaud
Redux,

Note that I can use the admin/deployer and reference my test.xml
Context fragment, and that works. But I hope to live deploy using the
Context fragment only (no clicking). Is this not possible?

I can stop the server and create a file in conf/Catalina/HOSTNAME to
achieve what I am looking for, but have not seen this mentioned in the
documentation so I am leary about this technique.

Thus:

CATALINA_HOME/webapps/a.xml



after deploying creates:

CATALINA_BASE/conf/Catalina/localhost/b.xml

which can be modified for the next restart

b.xml points to C:\c

and I can see the contents at http://localhost/b

Cheers,
Alex


On 4/19/06, Alexander E Genaud <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am having trouble deploying a webapp residing outside of the webapps
> directory. I've added deployXML="true" to  in an otherwise
> standard conf/server.xml on Windows XP with Tomcat 5.0 and 5.5. I've
> created a file called test.xml in webapps:
>
>path="/test" docBase="C:\mydir" debug="0">
> 
>
> *with and without the ResourceLink found in the documentation.
>
> Restarting the server seems to have no effect. I see nothing in the
> log that indicates either SUCCESS nor FAILURE. Any suggestions?
>
> Thanks,
> Alex
> --
> CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1
>


--
Alex
--
What is the All? Simply the eye & forms, ear & sounds, nose & aromas,
tongue & flavors, body & tactile sensations, intellect & ideas. This,
monks, is called the All. Anyone who would say, 'Repudiating this All,
I will describe another,' if questioned on what exactly might be the
grounds for his statement, would be unable to explain, and
furthermore, would be put to grief. Why? Because it lies beyond range.
SN XXXV.23
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Context.xml

2006-04-19 Thread Alexander E Genaud
Hello,

I am having trouble deploying a webapp residing outside of the webapps
directory. I've added deployXML="true" to  in an otherwise
standard conf/server.xml on Windows XP with Tomcat 5.0 and 5.5. I've
created a file called test.xml in webapps:




*with and without the ResourceLink found in the documentation.

Restarting the server seems to have no effect. I see nothing in the
log that indicates either SUCCESS nor FAILURE. Any suggestions?

Thanks,
Alex
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 1.42 compat package

2006-03-30 Thread Alexander E Genaud
David,

You make a strong and valuable point. One should always try to see if
one's own feet work before expecting the helpful hoards to march on
his behalf.

None the less, perhaps the name of "apache-tomcat-5.5.XX-compat" could
include a blunt hint as to what it really is such as:
"apache-tomcat-5.5.XX-j2se-1.4-compat".

Not so long ago, I had thought Tomcat 5.5 required Java 5. As I was
using JDK 1.4, I downloaded Tomcat 5.0 and was done with it. Why was I
lead to this erroneous conclusion?

http://mirrors.dotsrc.org/apache/tomcat/tomcat-5/v5.5.16/README.html

"Tomcat 5.5 requires JRE 5.0 by default. Read the RELEASE-NOTES and
the RUNNING.txt file in the distribution for more details."

Granted:

http://mirrors.dotsrc.org/apache/tomcat/tomcat-5/v5.5.16/RELEASE-NOTES

Installing the compatibility package will add the following to the
list, which are
needed when running on J2SE 1.4:
* jmx.jar (Java Management Extensions API 1.2 or later)
* xercesImpl.jar (Xerces XML Parser, version 2.6.2 or later)

But these hints are only obvious after one already knows that Tomcat
5.5 can indeed run with JDK 1.4. If one is lead to assume "Tomcat 5.5
requires JRE 5.0", one does not know to look for a compat package.

Just some thoughts from the peanut gallery.

Alex


--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1



> -- Forwarded message --
> From: David Smith <[EMAIL PROTECTED]>
> To: Tomcat Users List 
> Date: Wed, 29 Mar 2006 22:01:26 -0500
> Subject: Re: 1.42 compat package
> *  apache-tomcat-5.5.15-compat.tar.gz
>   
> 
>
> * apache-tomcat-5.5.15-compat.tar.gz.MD5
>   
> 
>
> * apache-tomcat-5.5.15-compat.tar.gz.asc
>   
> 
>
> * apache-tomcat-5.5.15-compat.zip
>   
> 
>
> * apache-tomcat-5.5.15-compat.zip.MD5
>   
> 
>
> * apache-tomcat-5.5.15-compat.zip.asc
>   
> 
>
>
>
> Me thinks you should look a bit closer.  There is a .tar.gz compat
> package and a .zip compat package in the list above.  I'll let you find it.
>
> --David
>
> Martin Gainty wrote:
>
> >Hello David-
> >I could'nt find the compat package anywhere in that page look at
> >http://www.devlib.org/apache/tomcat/tomcat-5/v5.5.15/bin/
> >Bookmark it
> >Martin-
> >- Original Message -
> >From: "David Smith" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" 
> >Sent: Wednesday, March 29, 2006 3:27 PM
> >Subject: Re: 1.42 compat package
> >
> >
> >
> >
> >>Any search engine that has indexed the archives of this list will have
> >>the answer many, many, many times over.  Take a look at where you
> >>downloaded tomcat.  You will find it there.
> >>
> >>--David
> >>
> >>Martin Gainty wrote:
> >>
> >>
> >>
> >>>I know I only asked this a dozen or so times but I need to get ahold of 
> >>>the 1.42 compat package for Tomcat 5.x
> >>>Is there ANY WAY we can ask the kind folks at google to put this into 
> >>>their keyword search??
> >>>
> >>>Thanks,
> >>>Martin-
> >>>


--
Alex
--
What is the All? Simply the eye & forms, ear & sounds, nose & aromas,
tongue & flavors, body & tactile sensations, intellect & ideas. This,
monks, is called the All. Anyone who would say, 'Repudiating this All,
I will describe another,' if questioned on what exactly might be the
grounds for his statement, would be unable to explain, and
furthermore, would be put to grief. Why? Because it lies beyond range.
SN XXXV.23
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat on CDROM (it works!) Vicaya 0.1

2006-03-06 Thread Alexander E Genaud
Mikolaj,

Thanks a lot for the code. I had to run through the ant code manually
because I downloaded the latest Tomcat 5.5.16, and merged the 1.4.2
compatibility patch. I was unable to get the exe to work, so I wrote a
.bat based on your .sh (which I will soon make more generic). How did
you create the EXE, by the way? You might be interested to see the
Vicaya project. The intent is to run off ANY platform with no
installation. It handles some very strange Windows drive
configurations, loads the appropriate JRE, etc.

Thanks again,
Alex


A NON GENERIC batch file is here:

mkdir C:\Temp\tomcattemp
set tmpfile="C:\Temp\tomcattemp"
mkdir C:\Temp\tomcattemp\work
set workdir="C:\Temp\tomcattemp\work"
set curodir=%cd%
set CATALINA_HOME=%curodir%/tomcat5516
set CATALINA_BASE=%curodir%/tomcat5516
set CATALINA_TMPDIR=%workdir%
set JAVA_HOME=C:\j2sdk1.4.2_11
call "%CATALINA_HOME%/bin/startup.bat"




From: Mikolaj Rydzewski <[EMAIL PROTECTED]>
To: Tomcat Users List 
Date: Mon, 06 Mar 2006 14:45:04 +0100
Subject: Re: Tomcat on CDROM (it works!) Vicaya 0.1
Alexander E Genaud wrote:
> I am running Tomcat 5.0 from a CDROM. In order for this to work on
> different platforms I've tweaked the configurations and create a small
> (100 KB) temp space on the user's hard drive for logs, work, java.io,
> and tomcat-users.xml. I've precompiled the JSPs and configured Tomcat
> to run with a JRE (classpath includes bootstrap.jar only).
>
I have similiar setup. Our production webapp with hsqldb works well
directly from CD. I have slightly modified Tomcat 5.5.12 to accomplish
this. You can find the 'magic' ant buildfile here:
http://www.ceti.pl/~miki/komputery/tomcat_demo/


--
Mikolaj Rydzewski  <[EMAIL PROTECTED]>
Becomo S.A.
tel. (12) 2927104


From: "Alexander E Genaud" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Date: Mon, 6 Mar 2006 13:13:45 +0100
Subject: Tomcat on CDROM (it works!) Vicaya 0.1
Hello,

I am running Tomcat 5.0 from a CDROM. In order for this to work on
different platforms I've tweaked the configurations and create a small
(100 KB) temp space on the user's hard drive for logs, work, java.io,
and tomcat-users.xml. I've precompiled the JSPs and configured Tomcat
to run with a JRE (classpath includes bootstrap.jar only).

Whenever I set CATALINA_HOME and CATALINA_BASE to different values,
Tomcat 5.0 will not start. As long as they are exactly the same, all
works well. I presume I am doing something incorrect. None the less, I
have gotten around this by creating several CATALINA_HOME's which
differ only in "conf/". In each server.xml I hard code the paths to
workDir, logs, etc. My start script locates an acceptable temp
location and starts the appropriate CATALINE_HOME.

For example if I can write to C:\Temp\mytemp, I set CATALINA_HOME to
servers/win_nt_c which contains a conf/server.xml pointing to C:\Temp.
On the other hand, if I can write to /tmp/mytemp, I set CATALINA_HOME
to servers/unix which contains a conf/server.xml pointing to
/tmp/mytemp. I also have another called servers/relative which uses
relative paths.

This hack actually works quite well, albeit resource wasteful:

http://sf.net/projects/vicaya

But this seems completely backward. Can anyone offer a better suggestion?

Also, I have been using Tomcat 5.0 because I am most familiar with it.
Does Tomcat 5.5 support Java 1.4.2 well? Some notes seem to imply that
Tomcat 5.5 has been designed for Java 5. Might Tomcat 5.5 offer a
better solution?

Thanks,
Alex

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat on CDROM (it works!) Vicaya 0.1

2006-03-06 Thread Alexander E Genaud
Hello,

I am running Tomcat 5.0 from a CDROM. In order for this to work on
different platforms I've tweaked the configurations and create a small
(100 KB) temp space on the user's hard drive for logs, work, java.io,
and tomcat-users.xml. I've precompiled the JSPs and configured Tomcat
to run with a JRE (classpath includes bootstrap.jar only).

Whenever I set CATALINA_HOME and CATALINA_BASE to different values,
Tomcat 5.0 will not start. As long as they are exactly the same, all
works well. I presume I am doing something incorrect. None the less, I
have gotten around this by creating several CATALINA_HOME's which
differ only in "conf/". In each server.xml I hard code the paths to
workDir, logs, etc. My start script locates an acceptable temp
location and starts the appropriate CATALINE_HOME.

For example if I can write to C:\Temp\mytemp, I set CATALINA_HOME to
servers/win_nt_c which contains a conf/server.xml pointing to C:\Temp.
On the other hand, if I can write to /tmp/mytemp, I set CATALINA_HOME
to servers/unix which contains a conf/server.xml pointing to
/tmp/mytemp. I also have another called servers/relative which uses
relative paths.

This hack actually works quite well, albeit resource wasteful:

http://sf.net/projects/vicaya

But this seems completely backward. Can anyone offer a better suggestion?

Also, I have been using Tomcat 5.0 because I am most familiar with it.
Does Tomcat 5.5 support Java 1.4.2 well? Some notes seem to imply that
Tomcat 5.5 has been designed for Java 5. Might Tomcat 5.5 offer a
better solution?

Thanks,
Alex

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Precompiling JSPs with Tomcat 5.5.12

2006-03-01 Thread Alexander E Genaud
I am using Tomcat 5.0 and have added the JSPs to the WEB-INF/web.xml
file as follows:

  
MyJsp
/MyWebApp/MyJsp.jsp
1
  

While I learned about this feature from BEA's website, it seems to
pre-compile the JSP's in Tomcat as well.

http://edocs.bea.com/wls/docs81/webapp/web_xml.html

about halfway down in servlet, search for "jsp-file".

This precompiles when you deploy the webapplication, so you will not
get compilation or parsing error reporting, but we never make errors,
right?

Alex
--
Those who can make you believe absurdities can make you commit atrocities
-- Fran=E7ois Marie Arouet (Voltaire)
http://cph.blogsome.com
http://genaud.org/alex/key.asc
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1


--
Alex
--
Those who can make you believe absurdities can make you commit atrocities
-- François Marie Arouet (Voltaire)
http://cph.blogsome.com
http://genaud.org/alex/key.asc
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: users Digest 20 Feb 2006 20:29:12 -0000 Issue 6230

2006-02-21 Thread Alexander E Genaud
Thanks for the reply George,

Scratch directories are not a problem. I am able to set the
workDir="C:\mywork". However, this is not generic enough. I've tried
workDir="~/mywork", but that simply places a directory named "~" in
CATALINA_HOME.

You suggest creating a CatalinaBase directory. And that makes sense to cover
all the output (work, logs, etc). But the question remains; Can I set
CATALINA_BASE to a generic location (such as the user home directory or the
OS temp space)?

Thanks in advance,
Alex

- Forwarded message --
From: "George Sexton" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" 
Date: Mon, 20 Feb 2006 11:24:46 -0700
Subject: RE: Tomcat running from CDROM
Since the spec requires some directories (work, tmp) be writable this won't
work. The best solution would be to create a stub "CatalinaBase" directory
and put on the workstation in the temp directory, and then set CatalinaHome
to the CDROM and run it that way.



George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585


> -Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Alexander E Genaud
> Sent: Monday, February 20, 2006 3:07 AM
> To: users@tomcat.apache.org
> Subject: Tomcat running from CDROM
>
> Hello,
>
> I am attempting to place a web application on a CDROM,
> without requiring further installations by the end user.
> Does anyone have experience doing this?
>
> I have been playing with Tomcat and Jetty,
> but have been most satisfied with Tomcat.
>
> Is it possible to make Tomcat run readonly
> (disable temporary files, scratch directories, or logs),
> or to redirect those written files to the
> operating system's default temp/scrath area?
>
> I have tried to create a Context,
> but fail to understand where to put the Context node
> (filename nor directory).
>
> Modifying the system.xml Host (line 216) was successful:
>
> ...
>unpackWARs="true" or_rather_unpackWARs="false"
>   autoDeploy="true"
>   xmlValidation="false" xmlNamespaceAware="false"
> workDir="myworkdir" or_workDir="C:\myworkdir">
> ...
>
> However, I would need to set something more generic
> (for Unix, Mac OS X, and Windows)
> such as workDir="$SYSTEM_TEMP_DIR/myworkdir".
> Is that possible?
> I expect the same can be done for the Logger(s).
> Is there anything else that gets written during runtime?
>
> Thanks in advance,
> Alex
>
> Please send your reply to:
> ( lx at pobox point com )
>
> ===
>
> For completeness and posterity:
>
> I've converted all JSP's to Servlets,
> removed all but my webapp, balancer, and static pages, and
> run Tomcat from an alternate JRE (rather than JDK) on disk.
>
> I have placed a Context in server.xml (line 144) to no effect:
>
> ...
> 
> 
> ...
>
> Anywhere else and Tomcat may fail to start.
>
>
>
> --
> Alex
> --
> Those who can make you believe absurdities can make you
> commit atrocities
> -- François Marie Arouet (Voltaire)
> http://cph.blogsome.com
> http://genaud.org/alex/key.asc
> --
> CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Tomcat running from CDROM

2006-02-20 Thread Alexander E Genaud
Hello,

I am attempting to place a web application on a CDROM,
without requiring further installations by the end user.
Does anyone have experience doing this?

I have been playing with Tomcat and Jetty,
but have been most satisfied with Tomcat.

Is it possible to make Tomcat run readonly
(disable temporary files, scratch directories, or logs),
or to redirect those written files to the
operating system's default temp/scrath area?

I have tried to create a Context,
but fail to understand where to put the Context node
(filename nor directory).

Modifying the system.xml Host (line 216) was successful:

...

...

However, I would need to set something more generic
(for Unix, Mac OS X, and Windows)
such as workDir="$SYSTEM_TEMP_DIR/myworkdir".
Is that possible?
I expect the same can be done for the Logger(s).
Is there anything else that gets written during runtime?

Thanks in advance,
Alex

Please send your reply to:
( lx at pobox point com )

===

For completeness and posterity:

I've converted all JSP's to Servlets,
removed all but my webapp, balancer, and static pages, and
run Tomcat from an alternate JRE (rather than JDK) on disk.

I have placed a Context in server.xml (line 144) to no effect:

...


...

Anywhere else and Tomcat may fail to start.



--
Alex
--
Those who can make you believe absurdities can make you commit atrocities
-- François Marie Arouet (Voltaire)
http://cph.blogsome.com
http://genaud.org/alex/key.asc
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]