Daniel,
 
    Thanks for the note!  The is MUCH appreciated.  My mistake was an attempt to create a jetspeed directory inside <jakarta-home>/webapps called jetspeed, sort of trying to mirror the examples directory.  This didn't work for me.  I don't really understand why, or if it even should have worked or why I read the installation document that way.  The email below is a much improved installation document with details that are left out of the documentation on the site.  However may I suggest one possible change to the install document (http://java.apache.org./jetspeed/site/install.html)?  and possibly more in the future?  I think I have quite the novice install perspective. :)
 
instead of
 
  • Configure your Servlet init parameters. Add the property "properties" to point to Jetspeed to the file "./src/config/TurbineResources.properties" that ships with the Jetspeed distribution. This can be done by setting an init parameter in your Servlet Engine (under Jakarta this is defined in WEB-INF/web.xml). You should give the Servlet an alias to something like "jetspeed".
  •  
    how bout: (difference around the "WEB-INF/web.xml" section.
     
  • Configure your Servlet init parameters. Add the property "properties" to point to Jetspeed to the file "./src/config/TurbineResources.properties" that ships with the Jetspeed distribution. This can be done by setting an init parameter in your Servlet Engine (under Jakarta this is defined in <jakarta-home>/webapps/ROOT/WEB-INF/web.xml). You should give the Servlet an alias to something like "jetspeed".
  •  
    Finally, thanks for the very polite  and HELPFUL response.  I'm used to the responses from freebsd-* mailinglists, which can be quite rude.  It's nice to see helpful people.  Thanks again.
     
    Geff
     
     
    ----- Original Message -----
    Sent: Wednesday, June 14, 2000 10:29 PM
    Subject: Re: jetspeed install in RH 6.1

    hiya,
     
    ok, i'm doin' my best to help solving your problem ;-)
     
    btw - cause you're using outlook express 5.0 I used styles in this mail ...
     
    first of a listing of what i'm currently using:
    • Apache 1.3.12 source distribution
    • Tomcat 3.2 nightly src release (dev snapshot)
    • mod_jserv which ships with Tomcat dev snapshot
    • Cocoon nightly src release
    • ECS nightly src release
    • Turbine nighly src release
    • Jetspeed nightly src release
    so my system is almost based on dev snapshots and runs just fine.
     
    I build apache with the following configuration options:
     
    OPTIM="-DHARD_SERVER_LIMIT=512 -DDOCUMENT_LOCATION=\\\\"\"/usr/local/share/apache/data/\\\\"\" -DDEFAULT_PATH=\\\\"\"/bin:/usr
    /bin:/usr/local/bin\\\\"\" -DBUFFERED_LOGS -DFD_SETSIZE=1024" \
    CFLAGS="-O6 -fomit-frame-pointer -DUSE_PARSE_FORM -DUSE_RANDOM_SSI -funroll-loops -fstrength-reduce -fexpensive-optimizations
    -ffast-math" \
    SSL_BASE=../mod_ssl/openssl-0.9.5a \
    EAPI_MM=../mod_ssl/mm-1.1.2 \
    ./configure \
    --prefix=/usr/local \
    --sysconfdir=/usr/local/etc/apache \
    --logfiledir=/var/log/apache \
    --proxycachedir=/var/spool/apache \
    --target=apache \
    --server-uid=www-data \
    --server-gid=www-data \
    --with-perl=/usr/bin/perl \
    --with-layout=/usr/ports/www/apache13/files/FreeBSD.layout:FreeBSD \
    --without-confadjust \
    --suexec-docroot=/usr/local/share/apache/data \
    --libexecdir=/usr/local/libexec/apache \
    --datadir=/usr/local/share/apache \
    --includedir=/usr/local/include/apache \
    --localstatedir=/var \
    --runtimedir=/var/run \
    --enable-module=most \
    --enable-module=auth_db \
    --disable-module=auth_dbm \
    --disable-module=include \
    --add-module=src/modules/hotwired/mod_include.c \
    --enable-shared=include \
    --enable-module=ssl \
    --enable-module=define \
    --enable-module=rewrite \
    --enable-module=expires \
    --enable-module=unique_id \
    --enable-shared=remain \
    --enable-shared=ssl \
    --enable-shared=max
     
    you can find this in the file 'apache_configure.sh' which comes with this mail.
    if you want to build apache exacly this way you'll also need mod_ssl and
    HotWired's mod_include, but this is not necessary for Jetspeed.
    use GNU as layout
    user and group www-data must exist
    for tomcat i used ...
    ant dev snapshot
    servlet-api dev snapshot
    tomcat dev snapshot
    first build ant than servlet-api and finally tomcat via 'sh build.sh dist'.
    this leads to a directory containing the tomcat binary distribution.
     
    finally execute 'apxs -c -o mod_jserv.so *.c' in <tomcat src dir>/native/apache/jserv.
    this builds the required mod_serv.so module for apache.
     
    btw - I copied the tomcat distribution to '/usr/local/tomcat'.
     
    finally i added the following lines to apache.conf
     
    LoadModule jserv_module       libexec/apache/mod_jserv.so
    .
    .
    .
    AddModule mod_jserv.c
    .
    .
    .
    <IfModule mod_jserv.c>
    ApJServLogFile /var/log/apache/jserv.log
    Include /usr/local/tomcat/conf/tomcat.conf
    </IfModule>
     
    i also include tomcat.conf in this mail.
     
    finally I start tomcat directly through a modified tomcat.sh script.
     
    if you look at this script you'll realize that I have put all my jar files to
    '/usr/local/share/java' which is my java repository.
     
    below a listing of this directory:
     
    bash-2.03$ ls /usr/local/share/java/
    Jetspeed.jar                    jaxp.jar                        stylebook-1.0-b2.jar
    activation-1.0.1.jar            jdbc-se2.0.jar                  turbine-2.0.jar
    ant.jar                         jndi-1.2.1.jar                  village-1.2.jar
    castor-0.8.2.jar                jta1.0.1.jar                    webmacro-jdk1.2-CVS.jar
    cocoon-ext-servlet2.2.jar       jyve-2.0.jar                    webserver.jar
    cocoon.jar                      ldap1_2_2.zip                   xalan_1_0_1.jar
    ecs-1.3.2.jar                   mail-1.1.3.jar                  xerces-1.1.0.jar
    fop_0_12_1.jar                  parser.jar                      xml.jar
    freemarker-jdk1.2.jar           postgresql-2_0.jar              xmlrpc.jar
    jasper.jar                      servlet.jar
     
    if tomcat is up and running you could build Jetspeed. make sure
    build.sh fits you system requirements. finally copy jetspeed.jar to
    '/usr/local/share/java'. now copy 'JetspeedResources.properties',
    'TurbineResources.properties' and 'cocoon.properties' to
    '/usr/local/tomcat/webapps/ROOT'. edit them as necessary!
     
    I also provided those files with this mail. it's very important that you
    created the following files/directories:

    • /var/tmp/JetspeedDocumentCache
    • /usr/local/tomcat/webapps/ROOT/jetspeed-cache
    • /var/log/apache/turbine.log
    • /usr/local/tomcat/webapps/ROOT/content
    • /usr/local/share/turbine/examples
    '/usr/local/tomcat/webapps/ROOT/content' is a exact copy of the content
    directory which comes with the Jetspeed src distribution.
    '/usr/local/tomcat/webapps/ROOT/content' is a exact copy of the examples
    directory which comes with the Turbine src distribution.
    the directory 'jetspeed-cache' must be world writeable!
     
    finally create a file in '/usr/local/tomcat/webapps/ROOT/WEB-INF/' called
    'web.xml'. this file should contain at least the following lines ...
     
    <?xml version="1.0" encoding="ISO-8859-1"?>
     
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
        "
    http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
     
    <web-app>
     <servlet>
        <servlet-name>jetspeed</servlet-name>
        <servlet-class>Turbine</servlet-class>
        <init-param>
            <param-name>properties</param-name>
            <param-value>/TurbineResources.properties</param-value>
        </init-param>
     </servlet>
    </web-app>
     
    to come back to your mail - my Jetspeed.jar file event don't contains a
    jetspeed class file so I guess this is just ok.
     
    I hope this mail helped you in some way.
     
    regards
     
    daniel haischt
    --
    ----- Original Message -----
    Sent: Thursday, June 15, 2000 1:43 AM
    Subject: Re: jetspeed install in RH 6.1

    Help!!!  Please ...
     
    I saw your post from 4/11/2000 regarding installation of Jetspeed and I was hoping you could help me out.
     
    I'm a complete newbie to java, but I'm pretty much a UNIX/C/C++ nut.
     
    When I do
     
    jar -tf Jetspeed.jar I don't see a jetspeed.class file.  ALso when I look through the src/java/org.... structure I don't see that either.
     
    tomcat.log:
     
    Context log: path="" Class Not Found in init
     java.lang.ClassNotFoundException: jetspeed
            at java.lang.Throwable.fillInStackTrace(Native Method)
            at java.lang.Throwable.fillInStackTrace(Compiled Code)
            at java.lang.Throwable.<init>(Compiled Code)
            at java.lang.Exception.<init>(Compiled Code)
            at java.lang.ClassNotFoundException.<init>(Compiled Code)
            at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Compiled Code)
            at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Compiled Code)
            at org.apache.tomcat.core.ServletWrapper.initServlet(Compiled Code)
            at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
            at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
            at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
            at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
            at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Compiled Code)
            at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
            at java.lang.Thread.run(Compiled Code)
    I have even tried to set the class path explicitly but the output from startup IS specifying the proper class path including jetspeed.jar.  I'm really confused.
     
    # more bin/startup.sh
    #! /bin/sh
    #
    # $Id: startup.sh,v 1.2 1999/12/05 17:02:42 harishp Exp $
     
    # Shell script to startup the server
     
    # There are other, simpler commands to startup the runner. The two
    # commented commands good replacements. The first works well with
    # Java Platform 1.1 based runtimes. The second works well with
    # Java2 Platform based runtimes.
     
    #jre -cp runner.jar:servlet.jar:classes org.apache.tomcat.shell.Startup $*
    #java -cp runner.jar:servlet.jar:classes org.apache.tomcat.shell.Startup $*
     
    #added by Geff Hanoian on 6/8
    JAVA_HOME="/usr/java1.2"
    export JAVA_HOME
    CLASSPATH="/usr/local/jetspeed/Jetspeed.jar"
    export CLASSPATH
    #end
     
    BASEDIR=`dirname $0`
     
    $BASEDIR/tomcat.sh start "$@"
     
    help???  !!!  I've been through the installation doc, and I have some suggestions about restructuring it just a tad.  I would be happy to contribute them for possible acceptance as well.  But I don't have it working yet, so my submitting anything at all is QUITE pre-mature! :)
     
    Geff

    Reply via email to