I'm working on one right now actually. Give me a week to clean it up.
If you want I'll email you an advanced copy.

Cheers,
  Tyler

On 4/13/06, j w <[EMAIL PROTECTED]> wrote:
> Hi Geert (and all)
>
> Is there a walkthru for the RIFE "helloworld"
> application that is "end-to-end" complete, for
> beginners?
>
> I think this would be invaluable as a "quickstart" to
> understanding the framework for RIFE newbies...like
> myself.
>
> When I tried following the partial "helloworld"
> walkthru in the "Installing RIFE"(LiveGuide)
> instructions, I was bummed to find that it did not
> "walk" all the way thru to executing the application
> in the browser.
>
> My experience with trying new tools/frameworks/etc is
> that most time is spent figuring out how to get a demo
> application just to work the first time.
> --And, it seems the success/failure rate is typically
> a function of the completeness of a given "demo"
> tutorial.
>
> In any case, not surprisingly, my attempt at
> re-creating the helloworld app failed.  waaaah!....
>
>
> I am running in Tomcat 5.5.1.6 on port 8084.  (I
> downloaded a fresh copy of same)
> --Would this pose an issue?
>
>
> I named the project folder/context: "rifeapp"
>     and
> I used the following URL to run the app in my
> browser(IE) is: http://localhost:8084/rifeapp/
> --Is this be incorrect?
>
>
> My "rifeapp" application's (deployed) file structure
> is as follows:
>
> [rifeapp]
>     |
>     +---[META-INF]
>     |
>     +---[WEB-INF]
>             |
>             +---[classes]
>             |      |
>             |      +---[helloworld]
>             |      |     |
>             |      |     +---HelloWorld.class
>             |      |
>             |      +---[rep]
>             |      |     |
>             |      |     +---participants.xml
>             |      |
>             |      +---[sites]
>             |      |     |
>             |      |     +---helloworld.xml
>             |      |
>             |      +---[templates]
>             |            |
>             |            +---[helloworld]
>             |                   |
>             |                   +---helloworld.html
>             |
>             +---[lib]
>             |      |
>             |      +---rife-1.4.-jdk15.jar
>             |
>             +---web.xml
>
> ---Is there something missing from what you can see in
> the above structure?
>
>
> My "rifeapp" key files are as follows:
>
> ***HelloWorld.java***
> package helloworld;
>
> import com.uwyn.rife.engine.Element;
> import com.uwyn.rife.template.Template;
>
> public class HelloWorld extends Element
> {
>     public void processElement()
>     {
>         Template template =
> getHtmlTemplate("helloworld");
>         template.setValue("hello", "Hello world.");
>         print(template);
>     }
> }
>
> ***participants.xml***
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE rep SYSTEM "/dtd/rep.dtd">
> <rep>
>   <participant
> param="sites/helloworld.xml">ParticipantSite</participant>
> </rep>
>
> ***helloworld.xml***
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE site SYSTEM "/dtd/site.dtd">
> <site>
>     <element id="HelloWorld"
> implementation="helloworld.HelloWorld" url="/home"/>
> </site>
>
> --NOTE:  what does  'url="/home"'   do???...
>
>
> ***helloworld.html***
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";
> xml:lang="en" lang="en">
> <head>
>     <title>${v hello/}</title>
> </head>
> <body>${v hello/}</body>
> </html>
>
>
> ***web.xml***
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee";
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>      version="2.4">
>     <filter>
>         <filter-name>RIFE</filter-name>
>
> <filter-class>com.uwyn.rife.servlet.RifeFilter</filter-class>
>         <init-param>
>             <param-name>rep.path</param-name>
>
> <param-value>rep/participants.xml</param-value>
>         </init-param>
>     </filter>
>     <filter-mapping>
>         <filter-name>RIFE</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
> </web-app>
>
> ---Can you see any errors/etc  in the code/xml/schema
> above?
>
>
> ***ERROR MESSAGE IN TOMCAT LOG***
> -
> -
> -
> Apr 13, 2006 4:29:07 PM
> org.apache.catalina.core.ApplicationContext log
> INFO: org.apache.webapp.balancer.BalancerFilter:
> init(): ruleChain:
> [org.apache.webapp.balancer.RuleChain:
> [org.apache.webapp.balancer.rules.URLStringMatchRule:
> Target string: News / Redirect URL:
> http://www.cnn.com],
> [org.apache.webapp.balancer.rules.RequestParameterRule:
> Target param name: paramName / Target param value:
> paramValue / Redirect URL: http://www.yahoo.com],
> [org.apache.webapp.balancer.rules.AcceptEverythingRule:
> Redirect URL: http://jakarta.apache.org]]
> Apr 13, 2006 4:29:07 PM
> org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Apr 13, 2006 4:29:07 PM
> org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> Apr 13, 2006 4:29:08 PM
> org.apache.catalina.core.StandardContext filterStart
> SEVERE: Exception starting filter RIFE
> javax.servlet.ServletException: An error occurred
> during the initialization of the repository.
>     at
> com.uwyn.rife.servlet.RifeFilter.init(RifeFilter.java:74)
>     at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
>     at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
>     at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
>     at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
>     at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4189)
>     at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>     at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>     at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>     at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
>     at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
>     at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
>     at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
>     at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
>     at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>     at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>     at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>     at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
>     at
> org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at
> java.lang.reflect.Method.invoke(Method.java:585)
>     at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>     at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Apr 13, 2006 4:29:08 PM
> org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Apr 13, 2006 4:29:08 PM
> org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> -
> -
> -
>
>
>
> Thanks for any help!!!
>
> sd
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> Rife-users mailing list
> [email protected]
> http://lists.uwyn.com/mailman/listinfo/rife-users
>
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to