Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Tomcat 4 & Apache on X 10.1.1

Tomcat 4 & Apache on X 10.1.1
Thread Tools
Junior Member
Join Date: Apr 2001
Status: Offline
Reply With Quote
Nov 22, 2001, 04:19 PM
 
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
Reply With Quote
Nov 22, 2001, 06:27 PM
 
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
Reply With Quote
Nov 23, 2001, 05:56 AM
 
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
Reply With Quote
Nov 23, 2001, 09:59 AM
 
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
Reply With Quote
Nov 23, 2001, 10:31 AM
 
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
Reply With Quote
Nov 23, 2001, 10:42 PM
 
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
Reply With Quote
Nov 24, 2001, 05:45 AM
 
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
Reply With Quote
Nov 25, 2001, 09:06 AM
 
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

&lt;!-- For some reason this prevents examples from loading
&lt;filter&gt;
&lt;filter-name&gt;Set Character Encoding&lt;/filter-name&gt;
&lt;filter-class&gt;filters.SetCharacterEncodingFilter&am p;lt;/filter-class&gt;
&lt;init-param&gt;
&lt;param-name&gt;encoding&lt;/param-name&gt;
&lt;param-value&gt;EUC_JP&lt;/param-value&gt;
&lt;/init-param&gt;
&lt;/filter&gt;
--&gt;

The examples seem to run fine now.
     
Junior Member
Join Date: Apr 2001
Status: Offline
Reply With Quote
Nov 25, 2001, 03:55 PM
 
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
Reply With Quote
Nov 25, 2001, 06:11 PM
 
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]
&lt;filter-class&gt;filters.SetCharacterEncodingFilter&am p;lt;/filter-class&gt;
[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
Reply With Quote
Nov 25, 2001, 07:48 PM
 
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
Reply With Quote
Nov 25, 2001, 07:54 PM
 
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
&lt;Directory /Library/Tomcat/webapps/examples&gt;
Options Indexes FollowSymLinks
&lt;/Directory&gt;
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
Reply With Quote
Dec 1, 2001, 06:24 AM
 
Apple just posted a great article on Tomcat on Mac OS X. Check it out.
     
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status: Offline
Reply With Quote
Dec 1, 2001, 09:06 AM
 
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!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2