Recap:
repositories=/usr/local/servlets
TurbineResources module.packages=com.metricom.modules, ...
and you have a HelloWorld.class file in the directory:
/usr/local/servlets/com/metricom/modules/screens
You say you get the Login and DefaultScreen. Are they located in:
/usr/local/servlets/org/apache/turbine/modules/screens ?
----- Original Message -----
From: James Conley <[EMAIL PROTECTED]>
To: 'Turbine' <[EMAIL PROTECTED]>
Sent: Sunday, March 12, 2000 5:49 PM
Subject: RE: HelloWorld more like GoodByeCruelWorld for me... help?
> 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]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]