1 Reply Latest reply on Feb 16, 2006 6:38 PM by Jaco Joubert

    Marginally changed registration example won't work

    Peter Goetz Newbie

      Hi there!

      I'm trying to get the registration example to work - but with my source package and config-files. But it won't work, although in my opinion I have made nothing different than the example.
      I have the three classes Register, RegisterAction and User, none of which I have changed. Then I have index.htm (copied index.html and removed the 'l'), register.jsp and registered.jsp, where I have changed nothing. Then my config-files:
      application.xml: I have changed the war and jar name to the names of my archives and the context-root.
      faces-config: nothing changed
      MANIFEST.MF: changed nothing for the war and the jar-file, the ear gets an automatically generated MANIFEST (from ant)
      persistence.xml: nothing changed
      web.xml: changed the value for org.jboss.seam.core.init.jndiPattern, removed "jboss-seam-registration" and added the name of my ear (without ".ear"
      I removed the jboss-app.xml, because it made no sense for me.
      I package the files in the following archives:
      practiceejb.jar, practiceweb.war and these into practice.ear.
      The content of these archives corresponds to the content of the registration .ear.

      Now the problem: I can call my application in the browser and get the registration form like I want it. But if I insert data in the form and press "Register", it seems the register method gets not executed, and I get three times "Conversion Error" in the messages pane.

      What do I have to do to get this example to work and get the register method executed?

      Thank you very much for your help!


        • 1. Re: Marginally changed registration example won't work
          Jaco Joubert Newbie

          I had exactly the same problem, although I built my example application with Maven.

          In my case, when I looked at the server.log debug statements, it pointed out that Seam cannot find my components:

          2006-02-16 16:36:28,312 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
          2006-02-16 16:36:28,312 DEBUG [org.jboss.seam.Component] seam component not found: user

          In my case, I had to do 2 things to solve this problem (haven't investigated fully why I needed to do this):

          1. Add a seam.properties file in the root of your beans jar. Even if it is empty!
          2. In my case, because of my Maven configuration, my war had the jboss-seam.jar in WEB-INF/lib as well. I removed this, only adding an entry in the Class-Path: header of the war's manifest file, and put the jboss-seam.jar in the root of the ear (exactly like the example).

          This worked for me.