The AccessController and SessionValidator actions are the defaults:
access.control=org.apache.turbine.om.security.DefaultAccessControl
action.accesscontroller=AccessController
action.sessionvalidator=sessionvalidator.DefaultSessionValidator
Here is the actual code in case I've cut and pasted something wrong:
# pwd
/var/local/servlets/com/metricom/modules/screens
# more 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");
}
}
Here is the new and improved error:
Turbine - A Servlet Framework for Building Secure Dynamic Websites.
----------------------------------------------------------------------------
----
There has been an error! Please review the exception below for more
information.
Get/Post Data:
screen = HelloWorld
The exception is:
java.lang.Exception: Requested Screen not found: HelloWorld
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.(Throwable.java:94)
at java.lang.Exception.(Exception.java:42)
at
org.apache.turbine.modules.ScreenLoader.getInstance(ScreenLoader.java:185)
at
org.apache.turbine.modules.pages.DefaultPage.build(DefaultPage.java:91)
at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:115)
at Turbine.doGet(Turbine.java:292)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:485)
java.lang.Exception: Requested Screen not found: HelloWorld
-----Original Message-----
From: John McNally [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 4:19 PM
To: Turbine
Subject: Re: HelloWorld more like GoodByeCruelWorld for me... help?
There is no action defined in the url, so this must be a problem with
AccessController or SessionValidator actions. Make sure these are defined
in TurbineResources, I assume the defaults should work, did you change them?
Also turn off jit, so your stacktraces are more meaningful.
jdk1.1 java -nojit (I think)
jdk1.2 java -Djava.compiler=NONE
John McNally
----- Original Message -----
From: James Conley <[EMAIL PROTECTED]>
To: Turbine (E-mail) <[EMAIL PROTECTED]>
Sent: Thursday, March 09, 2000 3:41 PM
Subject: HelloWorld more like GoodByeCruelWorld for me... help?
> When trying to run the HelloWorld example as
> http://mymachine.metricom.com/servlets/Turbine/screen/HelloWorld I get:
>
> [09/03/2000 15:34:18:684 PST] Turbine: java.lang.Exception: Requested
Action
> not found: null
> 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 org.apache.turbine.modules.ActionLoader.getInstance(Compiled
> Code)
> at Turbine.doGet(Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at org.apache.jserv.JServConnection.processRequest(Compiled Code)
> at org.apache.jserv.JServConnection.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
>
> It looks to me like it is trying to load an action, but as this is just an
> example, I haven't written any. Any ideas?
>
> Cluelessly Yours,
>
> James "Mike" Conley
> Metricom Web Team
> [EMAIL PROTECTED]
>
>
>
> ------------------------------------------------------------
> 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]