I had:

repositories=/usr/local/apache/servlets,/usr/local/servlets

in my zone.properties before.  I tried adding the wrapper.classpath after it
was failing (and it didn't help).  The HelloWorld.java file is located in
/usr/local/servlets/com/metricom/screens and has package
com.metricom.modules.screens; as the first line:

# more /usr/local/servlets/com/metricom/modules/screens/HelloWorld.java
package com.metricom.modules.screens;

// Turbine Modules
import org.apache.turbine.modules.*;
import org.apache.turbine.util.*;

// ECS Classes
import org.apache.ecs.*;
import org.apache.ecs.html.*;

public class HelloWorld extends Screen
{
    public ConcreteElement build( RunData data ) throws Exception
    {
        // set the title of the page
        data.setTitle ("Hello World");

        return new StringElement ( "Hello World");
    }
}

So, I think I covered the stuff you mentioned before except for the messed
up classpath in jserv.properties.

I'm sure it is something completely stupid, I just haven't found it yet.



-----Original Message-----
From: jon * [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 12, 2000 5:00 PM
To: Turbine
Subject: Re: HelloWorld more like GoodByeCruelWorld for me... help?


on 3/12/00 4:41 PM, James Conley <[EMAIL PROTECTED]> wrote:

> Nope.  At least the error is different now though.  I'm not 100% sure I
> should be using /usr/local/servlets/com/metricom/modules as the classpath
> here, though.  That directory contains screens which contains
> HelloWorld.java.
> 
> wrapper.classpath=/usr/local/servlets/com/metricom/modules


Ok, this is wrong...you should have this line above in the repositories=
instead. 

Please read the FAQ:

<http://java.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action
/SetAll/project_id/1/faq_id/2/topic_id/69/question_id/322>

Also, you should not specify that long of a path...it should be just this:

/usr/local/servlets

The com/metricom/modules/screens portion is what is filled in by the package
name. So, HelloWorld.java (which is placed into
/usr/local/servlets/com/metricom/modules/screens) should have a package like
like this at the top of the file:

package com.metricom.modules;

Make sense? This is just basic java package formatting.

So, to restate:

put HelloWorld.java into: /usr/local/servlets/com/metricom/modules/screens

At the top of HelloWorld.java, make the package this: package
com.metricom.modules.screens;

In zone.properties, make the repositories line look like this:

repositories=/usr/local/servlets

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to