Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: web-development digest, Vol 1 #652 - 2 msgs



Tom,

Grab the files from here:

http://roblef.sytes.net/Torv/

They're individual and one big archive, whichever works better for you. have a great trip!

Rob


On Jun 21, 2004, at 9:01 PM, email@hidden wrote:


Send web-development mailing list submissions to
	email@hidden

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.lists.apple.com/mailman/listinfo/web-development
or, via email, send a message with subject or body 'help' to
	email@hidden

You can reach the person managing the list at
	email@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of web-development digest..."


Today's Topics:

1. RE: Apache / Tomcat / Panther (Dean Matsueda)
2. Re: Apache / Tomcat / Panther (=?ISO-8859-1?Q?Joachim_Haagen_B=F8e?=)


--__--__--

Message: 1
Subject: RE: Apache / Tomcat / Panther
Date: Mon, 21 Jun 2004 15:00:18 -0700
From: "Dean Matsueda" <email@hidden>
To: "Lotsa Cabo" <email@hidden>, "Web Development"
  <email@hidden>

Apache is the web server that ships with Panther.  I know that.  I'm
just curious about other Apache modules; Tomcat, to be
specific.  Do I
install them pursuant to the instructions as if this was a standard
Apache installation?  Are there any differences?  Is there native
support for JSP in Panther?

Well, technically speaking, Tomcat is not really an Apache module
(although, I believe there is an Apache module to run Apache and Tomcat
together). Tomcat is an application server for running Java servlets
(like JSP) and is housed under the Jakarta project umbrella of the
Apache Foundation. It's also a not-too-shabby (from what I've read) web
server, too.


Is your question about installing an Apache mod to get it running w/
Tomcat?  Or installing Tomcat as a stand-alone application server?

--__--__--

Message: 2
To: email@hidden, Lotsa Cabo
  <email@hidden>
From: =?ISO-8859-1?Q?Joachim_Haagen_B=F8e?= <email@hidden>
Subject: Re: Apache / Tomcat / Panther
Date: Tue, 22 Jun 2004 14:29:28 +1000

Another newbie question... sorry. ={

Apache is the web server that ships with Panther.  I know that.  I'm
just curious about other Apache modules; Tomcat, to be specific.  Do I
install them pursuant to the instructions as if this was a standard
Apache installation?  Are there any differences?  Is there native
support for JSP in Panther?

Thanx,
Ryan

Do you need to run Tomcat as an apache add-on, or will running tomcat as a standalone configuration do fine ?

I have compiled a list of how to do both, and how I have successfully
done this on my local system. The information is gathered from
different websites and books on the subject, and is a summary of how I
configured my system.

Here are the instructions for tomcat:

There are a few ways to install and configure Tomcat for you system.
The easiest way is to download a copy of Tomcat from
jakarta.apache.org/tomcat. From there, follow apples guidelines for
installing tomcat as a standalone webserver, running on port 8080
(tomcats default port):
http://developer.apple.com/internet/java/tomcat1.html

The instructions are for tomcat 4.0.12, but they are very similar to
the newest tomcat installation, 5.0.24 I think is the current one.

Another way of getting tomcat to work on you system is to install
Apples "Application Servers Developer" (ASD), that comes on the XCode
CD, and can also be downloaded separately if you are an Apple Developer
Connection member (either one) from connect.apple.com (you need to
login). ASD installs both JBoss and Tomcat (version 4.1.24) on your
system in the directories /Library/JBoss and Library/Tomcat. The
installation is a simple "double click and install" package.




Integrating Tomcat with Apache is another beast to overcome, but there are successful methods of doing this. This is what I have done on my localhost to get Apache working with Tomcat over port 80 (it might not be the safest and the most proper way of doing so, since im not an apache expert). I do wish there were an easier way...

To integrate apache and tomcat, you need to install the mod_jk module.
Usually you have to compile your own mod_jk for your system, since
there are no readily available binaries. Also, before the mod_jk module
can be compiled, an additional library needs to be installed
(dlcompat), which is available from the Fink project.

That being said, MacDevCenter has a binary pre-compiled of the mod_jk
module: http://www.macdevcenter.com/mac/2002/08/20/examples/osx-jk.zip
Its compiled in 2002, so if it works on your system, great for you. if
not... well you have to compile mod_jk yourself...

There are binaries of the mod_jk module (v.1.2) for macosx at
http://apache.planetmirror.com.au/dist/jakarta/tomcat-connectors/jk/
binaries/macosx/ but there are no macosx binaries for version 2. For
information on the jk2 module, you can have a look here:
http://apache.planetmirror.com.au/dist/jakarta/tomcat-connectors/jk2/
and also, for the source distribution:
http://apache.planetmirror.com.au/dist/jakarta/tomcat-connectors/jk2/
source/.

Now, once the jk module is downloaded or compiled (into mod_jk.so), it
needs to go in the /usr/libexec/httpd/ directory, and some lines needs
to be added to /etc/httpd/httpd.conf:

LoadModule jk_module libexec/httpd/mod_jk.so
AddModule mod_jk.c

Also inside Tomcats conf/ direcotory you need to put the following
lines in the worker.properties file:

workers.tomcat_home=/usr/local/jakarta-tomcat-5.0.19
workers.java_home=/System/Library/Frameworks/JavaVM.framework/Versions/
1.4.2/Home

  ps=/
worker.list=ajp12, ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=127.0.0.1
worker.ajp13.type=ajp13

Also, this information needs to go inside httpd.conf

JkWorkersFile /usr/local/tomcat/conf/hj/workers.properties JkLogFile
/usr/local/tomcat/logs/mod_jk.log JkLogLevel debug

Also, you need to add a virtual host to your httpd.conf file

<VirtualHost 127.0.0.1> DocumentRoot
/usr/local/tomcat/webapps JkMount /*.jsp ajp12 JkMount /
</VirtualHost>

The above should instruct mod_jk to use a predefined worker in the
worker.properties file.

This is how I have configures my system. Since this is just my local
testing environment, and I host my websites elsewhere, I havent worried
about security or speed... It does work however.

Let me know if you have any questions

Very Best Regards
Joachim Haagen Bxe

webmaster
	http://devsiden.info
	http://nettnyheter.net


--__--__--

_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.




End of web-development Digest
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.