>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;

...

>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.

I haven't heard you mention setting the "module.packages" variable...
Referring again to the Turbine "Getting Started" document at

   http://java.apache.org/turbine/getting_started.html

I read

   Again, please refer to the FSD for more information about what each module 
   is used for. You can then tell Turbine to recognize this directory
structure 
   by modifying the TurbineResources.properties file to reference your
structure. 
   This is done by setting the module.packages to include your package. 

      module.packages=com.mycompany.modules

   The effect of this property setting is that it becomes the classpath for 
   modules within the framework. Within your code it is possible to load
other 
   modules and execute them directly. Examples of this will be shown later. 

When you get the error you described...

   The exception is:
   java.lang.Exception: Requested Screen not found: HelloWorld

it means that you are finding Turbine OK, but Turbine is not finding your
screen.
In order for Turbine to find your screen, it must be in a subpackage called
"screens" off of one of the packages mentioned in the "module.packages" line
of TurbineResources.properties.

Try that.

Stephen

P.S. as Jon mentioned, please make sure that your HelloWorld.java is compiled
     into a HelloWorld.class file in the same directory.





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

Reply via email to