 |
 |
Tomcat 4 & Apache on X 10.1.1
|
 |
|
 |
|
Junior Member
Join Date: Apr 2001
Status:
Offline
|
|
I'm trying to install Tomcat 4.01 on my powerbook running 10.1.1 with apache 1.3.19 (I think or whatever is the std. install). I've followed the lousy instructions relating to the connector installation, but I'm getting 404 errors when I try to run the examples. Can any one help or tell me where I can get info on how to install Tomcat 4 on X that's up to date?
Thanks in advance.
|
|
Some men see things as they are and say why?
I dream things that never were and say why not?
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status:
Offline
|
|
did you set the CATALINA_HOME in your environment? that's the only thing you really have to do.
do you connect on port 8080 or whatever you set it to? ("http://localhost:8080")
tomcat 4.01 works fine on my powerbook with 10.1.1.
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Apr 2001
Status:
Offline
|
|
I've done that. When I access the examples, I get a 404 error. I think its something to do with the apache connector? Does anyone else get this?

|
|
Some men see things as they are and say why?
I dream things that never were and say why not?
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Apr 2001
Status:
Offline
|
|
I think the root of my problem is the unorthodox java config in OS X
It wants there to be /lib and /bin directories
any one any ideas?
|
|
Some men see things as they are and say why?
I dream things that never were and say why not?
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Aug 2001
Location: Vienna, Austria
Status:
Offline
|
|
There's a /bin and /lib in /Library/Java/Home (which is a symlink to some directory of JavaVM.framework).
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Oct 2000
Location: Washington, DC
Status:
Offline
|
|
might be pratical to test out tomcat 4 as a standalone first, be sure that its displaying pages correctly. (over port 8080). once youre sure its working, you can go ahead and set up the apache connector.
trying to get it working like this is introducing a whole lotta variables in your question about why its not working. bite off what you can chew.
-tim
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Apr 2001
Status:
Offline
|
|
I know, I discovered the /Home thing and set it, but I'm still getting class not found errors in catalina.out
|
|
Some men see things as they are and say why?
I dream things that never were and say why not?
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2001
Status:
Offline
|
|
Originally posted by inquisito:
<STRONG>I know, I discovered the /Home thing and set it, but I'm still getting class not found errors in catalina.out</STRONG>
I was getting the the class not found error too. I ended up commenting out the following lines from webapps/examples/WEB-INF/web.xml
<!-- For some reason this prevents examples from loading
<filter>
<filter-name>Set Character Encoding</filter-name>
<filter-class>filters.SetCharacterEncodingFilter&am p;lt;/filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>EUC_JP</param-value>
</init-param>
</filter>
-->
The examples seem to run fine now.
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Apr 2001
Status:
Offline
|
|
Thanks Cobra! It worked!!!
I think I have the apache connector working, but I'm not sure, any ideas about how you test it?

|
|
Some men see things as they are and say why?
I dream things that never were and say why not?
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status:
Offline
|
|
Originally posted by Cobra Commander:
<STRONG>
I was getting the the class not found error too. I ended up commenting out the following lines from webapps/examples/WEB-INF/web.xml
[snip]
<filter-class>filters.SetCharacterEncodingFilter&am p;lt;/filter-class>
[snip]
</STRONG>
had the same problem and even got help here on the fora. you probably unzipped your tomcat with stuffit expander. this is a classic app and therefor only supports 32 characters filenames. the "setcharacterencodingfilter.class" gets renamed to "...clas" (one "s" missing in the end) renaming it to "...class" does the trick.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2001
Status:
Offline
|
|
Originally posted by seb2:
<STRONG>
had the same problem and even got help here on the fora. you probably unzipped your tomcat with stuffit expander. this is a classic app and therefor only supports 32 characters filenames. the "setcharacterencodingfilter.class" gets renamed to "...clas" (one "s" missing in the end) renaming it to "...class" does the trick.</STRONG>
Wow I can't believe I missed that! I must have looked at that filename half a dozen times. Thanks for pointing that out.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2001
Status:
Offline
|
|
OK, now I'm tring to get Apache and Tomcat working together. I added the following lines to the httpd.conf file...
LoadModule webapp_module libexec/httpd/mod_webapp.so
AddModule mod_webapp.c
Alias /examples /Library/Tomcat/webapps/examples
<Directory /Library/Tomcat/webapps/examples>
Options Indexes FollowSymLinks
</Directory>
WebAppConnection warpConnection warp localhost:8080
WebAppDeploy examples warpConnection /examples
When I run apachectl configtest I get the following error...
Syntax error on line 9 of /Library/Tomcat/conf/mod_webapp.conf:
Invalid virtual host name
What am I doing wrong?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2001
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status:
Offline
|
|
Originally posted by Cobra Commander:
<STRONG>Apple just posted a great article on Tomcat on Mac OS X. Check it out.</STRONG>
though i've had tomcat running before, one of the most useful links i've seen in a while. thanks a lot!
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|