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 > Cocoon on MacOS X

Cocoon on MacOS X
Thread Tools
GarbugM
Guest
Status:
Reply With Quote
Dec 25, 2000, 03:49 AM
 
Hi,

Has any body tried to get Cocoon runing under MacOS X? I know the web site states it needs Java 1.3, (which OS X has a mix of 1.2.2 and 1.3). I have Cocoon running on a Solaris machine and it will work with Java 1.2.2_06 or 1.3. To build it you need TOMCAT_CAT and JAVA_HOME set. I have not modified the build.sh yet to see it will work compile without them. Jakarta-tomcat 3.2 works like a charm under MacOS X. As on most UNIX systems which use PATH for the bin and CLASSPATH for jar files, MacOS X does not use and I have not been able to find the standard jar files like tools.jar and rt.jar.

I was thinking of taking the Linux version of 1.3 to see it I could get it to work, but it may not be worth. For everything to work under Solaris you need the latest release which is 1.3.01.

Any one tried the above?


------------------
Tony
     
Fresh-Faced Recruit
Join Date: Jan 2001
Location: Virginia, USA
Status: Offline
Reply With Quote
Jan 15, 2001, 08:52 PM
 
I have Cocoon running on MacOS X.

I can't believe more people aren't interested in this. Anyone running Tomcat on MacOS X should give it a try. Check out http://xml.apache.org.

Add some buzzwords to your resume: xml, xsl, xslt, xsp, svg...

I followed the Cocoon install directions. I had issues until I set the JAVA_HOME like below.

Add the following lines to tomcat.sh:
#
setenv TOMCAT_HOME /Library/Webserver/jakarta-tomcat-3.2.1
setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/1.2/Commands/java
#

Replace "/Library/Webserver/jakarta-tomcat-3.2.1" with your Tomcat Home

cd to TOMCAT_HOME/bin
start with # sh startup.sh

Issues:

SVG and FO won't work. I don't have plug-ins. Do they exist for the OS X version of IE? Does Omni have pdf and svg plug-ins for their browser? What about iCab?

     
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Mar 29, 2001, 05:15 PM
 
Brendan Deasy,

How exactly did you manage that? 'tomcat.sh' is a 'sh' (not 'tcsh') script file and the JAVA_HOME you mention doesn't even exist.

Specifically I was able to get cocoon up and running (under tomcat 3.2.1 only) but it did parse or show any xml file. It seems that cocoon's DOM parser is conflicting with Apple's...

Any ideas? Thanks in advance.


Daniel Giribet
     
Professional Poster
Join Date: Dec 2000
Location: Staffs, UK
Status: Offline
Reply With Quote
Mar 30, 2001, 04:08 AM
 
I might try and get AxKit running - it's a mod_perl module that handles XML-XSLT transformation and serving (and cacheing). Works pretty well, and no need for Java
     
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Mar 30, 2001, 11:32 AM
 
Ooops typo:


"it did parse..." I made a typo there. Cocoon on tomcat 3.2.1 *dosen't* parse or display any xml files at all. It seems Apple has got a parser that is in conflict with the one provided in cocoon...

Gee4rce, please post any developments compiling any apache modules...


dani++
     
Junior Member
Join Date: Mar 2001
Location: Rochester, NY, USA
Status: Offline
Reply With Quote
Apr 1, 2001, 12:27 AM
 
Im one of the people who are interested in setting up Cocoon on my X. Of course, I need TomCat to work. I have followed the instruction in the documentation but I can't get it (Tomcat) to start.

Allow me to dump the output I received after attempting to start the Tomcat:

[localhost:local/tomcat321/bin] root# ./startup.sh
Using classpath: /usr/local/tomcat321//lib/ant.jar:/usr/local/tomcat321//lib/jasper.jar:/usr/local/tomcat321//lib/jaxp.jar:/usr/local/tomcat321//lib/parser.jar:/usr/local/tomcat321//lib/servlet.jar :/usr/local/tomcat321//lib/test:/usr/local/tomcat321//lib/webserver.jar
[localhost:local/tomcat321/bin] root# 2001-04-01 01:24:45 - ContextManager: Adding context Ctx( /examples )
2001-04-01 01:24:45 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-04-01 01:24:45 - ContextManager: Adding context Ctx( )
2001-04-01 01:24:45 - ContextManager: Adding context Ctx( /test )
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java :397)
at java.net.ServerSocket.<init>(ServerS ocket.java:170)
at java.net.ServerSocket.<init>(ServerS ocket.java:121)
at org.apache.tomcat.net.DefaultServerSocketFactory.c reateSocket(DefaultServerSocketFactory.java:97)
at org.apache.tomcat.service.PoolTcpEndpoint.startEnd point(PoolTcpEndpoint.java:239)
at org.apache.tomcat.service.PoolTcpConnector.start(P oolTcpConnector.java:188)
at org.apache.tomcat.core.ContextManager.start(Contex tManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.ja va:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java: 235)

-------

As you can see that the error begins with a BindException error, indicating that "Address already in use".

Would anybody know about it?

Many thanks in advance,
Chad Taylor
Chad Taylor
     
Junior Member
Join Date: Feb 2000
Location: Chicago, IL
Status: Offline
Reply With Quote
May 25, 2001, 11:53 PM
 
I'm having the same problem as daniel++. I'm running Cocoon 1.8.2 with Tomcat 3.2.1. I've made the modifications to the config files as recommended and moved the .jars to their new locations. Tomcat seems to start up just fine loading the new jars and adding the new context for the xml file directory. However, when directed to a .xml file to parse and deliver, it returns a (404) File Not Found error. However, other files in the same directory can be delivered (again unparsed), but at least they are found, so my context isn't wrong.

Any thoughts?
     
   
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:21 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