Re: How to deploy a web application under Tomcat 5

2004-03-24 Thread Henry Martin
Use Ant to build it!!! I can't say that loudly enough. This tutorial is 
one that helped me get started.
http://www.developer.com/open/article.php/989631

I skipped the test section in the beginning, and didn't do everything 
as specified. I am leaving for an appointment right now and will pass 
along other helpful parts later.

Henry Martin
Little Planet Learning, Inc.
On Wednesday, March 24, 2004, at 02:23 PM, Bachler, Elisabeth 
(Elisabeth) wrote:

I don't quite understand what you are saying. My problem is that I 
don't
know how to create a WAR file with the basic structure in it. I have 
to do
it manually but I don't know how.
COuld you tell me where to find the information?.
Once I have this WAR file, I suppose I only have to put it under 
webapps and
restart TOmcat, right?
THanks for your patience.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: miercoles, 24 de marzo de 2004 21:15
To: Tomcat Users List
Subject: RE: How to deploy a web application under Tomcat 5


Hi,

THanks for your response, the problem is that I don't have a clue 
about
how
to create a WAR application.
A WAR file is a type of jar file (which in turn is a type of zip file).
You can create a WAR file using java's jar command or Ant's war task.
files. I only need Tomcat to recognize the structure
MyApp
 |
 --- WEB-INF
   |
classes
lib
  web.xml
Tomcat will recognize this structure: create a directory called MyApp 
in
your webapps directory, and create the above directories/files under 
it.
Restart tomcat, and you'll be able to access
http://localhost:8080/MyApp.  There won't be anything there, of course.
Create a simple test.html page and try
http://localhost:8080/MyApp/test.html.

DO you happen to know where to find this information. I could not find
it
anywhere.
What information?  How to create directories?  How to create WAR files?
How to write web applications?  The things I've described above are
trivial, easily accessible via Google for example.  The specifics of 
the
WAR file format are in the Servlet Specification (http://java.sun.com).

Yoav Shapira



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]
-
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: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Henry Martin
On Tuesday, March 23, 2004, at 09:55 AM, Hari Om wrote:

My MOD_JK.CONF file is AUTOGENERATED on my AppServer. I start my App 
Server FIRST which AUTOGENERATES mod_jk.conf file. So, how can I 
reference this file on my HTTPD.CONF (Include conf/mod_jk.conf) - 
which is indeed located on a different machine?
I am still new to Tomcat and learning way too much every day. I have 
spent a lot of time studying the documentation recently. I don't know 
how to do all the setup, but remembered that the documentation says you 
cannot use auto configuration when the web server and app server are on 
different machines.

In tomcat-docs/jk2/jk/aphowto.html:
Custom mod_jk configuration

You should use custom configuration when :

 You couldn't use mod_jk.conf-auto  since Tomcat engine isn't on the 
same machine that your Apache WebServer,  ie when you have an Apache 
in front of a Tomcat Farm.

Another case for custom configuration is when your Apache is in front 
of many differents Tomcat engines, each one having it's own 
configuration, a general case in ISP hosting
Henry Martin
Little Planet Learning, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]