Maybe you have a configuration issue with the annotation processing
set up in your Eclipse settings. Do all your source files live in the
path defined by the "web.source.roots" key setting for your annotation
processing?

Also, have you looked at the directory that you use for the annotation
processing generated source? From your example files, if you set the
generated source directory to "build/apt/src" then it should contain
the following files...

ControllerClientInitializer.java
HelloWorldBean.java
HelloWorldBeanBeanInfo.java
HelloWorldImplInitializer.java

Finally, your "Java Build Path" should have this generated source
directory listed as a source directory in the build path. In the build
path order, It should follow after the  directory containing your own
source files ("web.source.roots").

Carlin

On 1/3/07, arockiasamy <[EMAIL PROTECTED]> wrote:

Hi,

   I am now working in apache\'s beehive. while working on Controls, i could
not get  output, i am following the
beehive tutorial examples.eventhough i couldn\'t get.

  I have one interface and implementation class. then controller class. i am
passing value/data from  one jsp to another jsp throug Controller class
using controls. i should get \"helloworld\" with jsp data. but i couldn\'t.
here i have given details program. i am getting nullpointer exception with
servlet exception..error in the browser and in the console \"SEVERE: Parsing
error processing resource path /WEB-INF/classes/_pageflow/struts-config.xml
Throwable: java.lang.LinkageError: Class
org/apache/commons/digester/Digester violates loader constraints
Stack Trace: java.lang.LinkageError: Class
org/apache/commons/digester/Digester violates loader constraints \" error i
am getting.

  For control manifest file is generated, but ControlBean class is not auto
generated, why?.....

kindly give some tips..

Here is the program

HelloWorld .java //interface
  @ControlInterface
public interface HelloWorld {

    public String hello();
    public String helloParam(String name);
}

2) HelloWorldImpl.java //Implementation file

 @ControlImplementation(isTransient = true)
public class HelloWorldImpl
implements HelloWorld {

    /**
     * @see controls.HelloWorld#hello()
     */
    public String hello() {

       return \"hello World\";
    }

    /**
     * @see controls.HelloWorld#helloParam(java.lang.String)
     */
    public String helloParam(String name) {

        return \"Hello\" + name;
    }

}

Controller.java //controller class

@Jpf.Controller(
      simpleActions = {
          @Jpf.SimpleAction(name=\"begin\", path=\"/pageflow/index.jsp\"),
          @Jpf.SimpleAction(name=\"login\", path=\"/pageflow/login.jsp\" )
      }
)
public class Controller
extends PageFlowController {

    @Control
    private HelloWorld helloWorld;

    @Jpf.Action (
         forwards= {
             @Jpf.Forward(name=\"success\", path =\"/pageflow/display.jsp\")
         }
    )

    public Forward processLogin(LoginForm loginForm) {

        log(\"UserName    : \" + loginForm.getUserName());
        log(\"Designation : \" + loginForm.getDesignation());

        Forward fwd = new Forward(\"success\");
        fwd.addActionOutput(\"userName\", loginForm.getUserName());
        fwd.addActionOutput(\"designation\", loginForm.getDesignation());
        fwd.addActionOutput(\"controlMsg\", helloWorld.hello());
        return fwd;
    }

    }

//jspfile

netui:html>
        <netui:body>
        <p>
                Your submitted data
        </p>
        <p>
                Name                    :<netui:span 
value=\"${pageInput.userName}\"></netui:span>
        </p>
        <p>
                Designation     :<netui:span 
value=\"${pageInput.designation}\"></netui:span>
        </p>
        <p>
                ControlMessage  :<netui:span
value=\"${pageInput.controlMsg}\"></netui:span>
        </p>

        </netui:body>
</netui:html>

Note:  i am not using  ant tool rather i am using Eclipse 3.2 and to
generate pageflow i am using annotationprocessing tool plugin..

kindly help and if possible give some reference for controls

Thanks in advance
Arockiasamy A




--
View this message in context: 
http://www.nabble.com/Error-on-apache%5C%27s-beehive-Controls-tf2915351.html#a8146617
Sent from the Beehive - User mailing list archive at Nabble.com.


Reply via email to