You can also place the jar's from jetspeed/lib in "YourContext/WEB-INF/lib"
if you create a new context for your servlet in Tomcat. Here is my web.xml
from "tomcat/webapps/MyContext":

<web-app>
  <servlet>
    <servlet-name>s_turbine</servlet-name>
    <servlet-class>Turbine</servlet-class>
    <init-param>
      <param-name>properties</param-name>
      <param-value>TurbineResources.properties</param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>
      s_turbine
    </servlet-name>
    <url-pattern>
      /turbine/*
    </url-pattern>
  </servlet-mapping>
</web-app>

Frank Conradie
Opticode Software, South Africa


----- Original Message -----
From: Steve B.
To: JetSpeed
Sent: Sunday, May 21, 2000 9:50 PM
Subject: Re: Problems out of the gate


Pardon the basics here:
Is Tomcat installed correctly? If you enter simply http://localhost/, do you
get the Tomcat Home page? Can you run both Servlet examples and JSP examples
using the links there?

I'm looking at your classpath. I'm guessing that in your Jetspeed/lib folder
there are a bunch of Jar files. You need (or is it changed in JDK1.3) to add
the individual .jar files to the classpath. For example, my classpath is:

D:\CLASSPATH;D:\classpath\tools.jar;D:\classpath\activation.jar;D:\classpath
\ant.jar;D:\classpath\ecs.jar;
D:\classpath\jasper.jar;D:\classpath\jndi.jar;D:\classpath\mail.jar;D:\class
path\servlet.jar;
D:\classpath\Turbine.jar;D:\classpath\village.jar;D:\classpath\webserver.jar
;D:\classpath\xml.jar;
D:\classpath\jetspeed.jar

note that the servlet.jar is from the Tomcat distribution and is not
included in Jetspeed.

BTW - your web.xml is in the right place if you made no changes in
Tomcat/conf/server.xml.

Steve B.
----- Original Message -----
From: Steve B.
To: JetSpeed
Sent: Sunday, May 21, 2000 9:31 AM
Subject: Re: Problems out of the gate


Try http://localhost:8080/servlet/jetspeed

Also, I do not know if it makes any difference, but in web.xml I use
standard DOS paths, ie.
      d:\Jetspeed-1.1\src\config\TurbineResources.properties

Let me know if I can help as I am using basically the same setup (though I
use JDK1.2)

Steve B.
----- Original Message -----
From: GregPreston
To: [EMAIL PROTECTED]
Sent: Saturday, May 20, 2000 6:46 AM
Subject: Problems out of the gate


First of all I'm very excited about the project!!!

<disclaimer>
I expect my problem is my lack of understanding of the Jetspeed and Tomcat
architecture.
</disclaimer>

I'm unable to get the Jetspeed servlet to respond, I've tried several
configurations and still come up empty.  I try to run
"http://localhost/servlet/jetspeed" and I get a "404".  I can run other
servlets under Tomcat but I expect that I've missed steps for properly
configuring Jetspeed.

Below is my configuration and many thanks go to the kind soul that points
out the error in my ways.  Thanks in advance.  --Greg

Configuration:
WIN98
TOMCAT v3.1 (release build); installed d:\jakarta-tomcat
JDK v1.3 ; installed d:\jdk1.3
Jetspeed v1.0 ; installed d:\jetspeed-1.1

My Class path:
CLASSPATH=D:\jdk1.3\bin;D:\jdk1.3\lib;d:\jakarta-tomcat\lib;D:\jdk1.3\lib\to
ols.
jar;d:\prac;d:\jakarta-tomcat\src;d:\Jetspeed-1.1\Jetspeed.jar;d:\Jetspeed-1
.1\lib;

tomcat directory (relivant) structure:
D:\jakarta-tomcat\webapps\ROOT\
                                                 \content          --added
per instructions
                                                 \META-INF
                                                 \WEB-INF       -- location
of web.xml (below)


web.xml; located in d:\jakarta-tomcat\webapps\ROOT\WEB-INF\

<?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>
                d:/Jetspeed-1.1/src/config/TurbineResources.properties
            </param-value>
        </init-param>
    </servlet>
</web-app>



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to