Re: Tomcat within custom application

2003-09-17 Thread Xtremebytes Webmaster
Thanks Remy. I have managed to run the embedded Tomcat 4x. However, I still
have a bit of a problem with context configuration. Suppose I install a WAR
directory containing a XSLT servlet. The output from this XSLT servlet is
XHTML, which contains relative references to images and CSS files. If I
place all these relative reference files (in a proper directory structure)
in the root directory of the WAR, these are inaccessible. I cannot place
them in a different directory and get it from there either. Looks like there
is a problem with the contexts configuration.

Suppose my servlet is called as
http://localhost:8182/xsltservlet/xslTransform?xml=xmlfile.xmlxsl=xslfile.xsl
then any reference like http://localhost:8182/xsltservlet/images/myimage.gif
is not available even if it is in the directory path. It does not also let
me browse the virtual directory http://localhost:8182/xsltservlet/. How do I
go about solving this problem?

Thanks again.

- Original Message - 
From: Remy Maucherat
To: Tomcat Developers List
Sent: Tuesday, September 16, 2003 3:23 PM
Subject: Re: Tomcat within custom application


Xtremebytes Webmaster wrote:
 I am wondering how I can run the Tomcat JSP/Servlet container within
 another process, which is not a HTTP server but a custom Java
 application. This is to mean that I have some JSP or Servlets for
 example. I need to run them on a client machine (Windows NT/UNIX
 platform), which doesn't have a web server or the standalone Tomcat
 container installed. I do not want to install that either. I just
 want to launch the Tomcat container as one thread within one custom
 Java application while some other threads will do other unrelated
 work. The purpose is to deploy the Servlets or JSP making the Tomcat
 container transparent to the client.

You can look at the Tomcat 5 embedded distribution (basically, you get
an Ant script replacing server.xml). The included example Ant script
just makes some basic JMX calls to create an embedded Tomcat, so you
don't have to use Ant (but, for an example, it's obviously easier to
understand and more readable) or have any dependencies on the Tomcat APIs.

The old Tomcat 4.x Embedded class is also supported (except it has been
rewritten to use the standard behavior rather than being a special case).

I believe some real docs on embedding would be useful, including:
- embedding Coyote
- embedding Tomcat using Embedded
- embedding Tomcat with JMX

Remy


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



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



Re: Tomcat within custom application

2003-09-16 Thread Henri Gomez
Xtremebytes Webmaster a écrit :

Hi,

I am wondering how I can run the Tomcat JSP/Servlet container within another process, which is not a HTTP server but a custom Java application. This is to mean that I have some JSP or Servlets for example. I need to run them on a client machine (Windows NT/UNIX platform), which doesn't have a web server or the standalone Tomcat container installed. I do not want to install that either. I just want to launch the Tomcat container as one thread within one custom Java application while some other threads will do other unrelated work. The purpose is to deploy the Servlets or JSP making the Tomcat container transparent to the client.


Do you want tomcat handle some HTTP requests ?



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


RE: Tomcat within custom application

2003-09-16 Thread Shapira, Yoav

Howdy,
You use Embedded:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/ap
ache/catalina/startup/Embedded.html

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Xtremebytes Webmaster [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 10:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat within custom application

Hi,

I am wondering how I can run the Tomcat JSP/Servlet container within
another process, which is not a HTTP server but a custom Java
application.
This is to mean that I have some JSP or Servlets for example. I need to
run
them on a client machine (Windows NT/UNIX platform), which doesn't have
a
web server or the standalone Tomcat container installed. I do not want
to
install that either. I just want to launch the Tomcat container as one
thread within one custom Java application while some other threads will
do
other unrelated work. The purpose is to deploy the Servlets or JSP
making
the Tomcat container transparent to the client.

Thanks in advance.

Xtremebytes Webmaster



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat within custom application

2003-09-16 Thread Remy Maucherat
Xtremebytes Webmaster wrote:
I am wondering how I can run the Tomcat JSP/Servlet container within
another process, which is not a HTTP server but a custom Java
application. This is to mean that I have some JSP or Servlets for
example. I need to run them on a client machine (Windows NT/UNIX
platform), which doesn't have a web server or the standalone Tomcat
container installed. I do not want to install that either. I just
want to launch the Tomcat container as one thread within one custom
Java application while some other threads will do other unrelated
work. The purpose is to deploy the Servlets or JSP making the Tomcat
container transparent to the client.
You can look at the Tomcat 5 embedded distribution (basically, you get 
an Ant script replacing server.xml). The included example Ant script 
just makes some basic JMX calls to create an embedded Tomcat, so you 
don't have to use Ant (but, for an example, it's obviously easier to 
understand and more readable) or have any dependencies on the Tomcat APIs.

The old Tomcat 4.x Embedded class is also supported (except it has been 
rewritten to use the standard behavior rather than being a special case).

I believe some real docs on embedding would be useful, including:
- embedding Coyote
- embedding Tomcat using Embedded
- embedding Tomcat with JMX
Remy

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