8 Replies Latest reply on Nov 3, 2006 4:08 PM by John

    Deploy error

    John Newbie

      I've taken the Booking app and modified the build script for my project. When I deploy to the server, I get the following exception:

      11:34:26,208 INFO [EJB3Deployer] Deployed: file:/C:/jboss_installs/jboss-4.0.5.GA/server/default/tmp/deploy/tmp59681wfp.ear-contents/wfp.jar
      11:34:26,218 INFO [TomcatDeployer] deploy, ctxPath=/workforce-planning, warUrl=.../tmp/deploy/tmp59681wfp.ear-contents/wfp-exp.war/
      11:34:26,369 INFO [ServletContextListener] Welcome to Seam 1.0.0.CR3
      11:34:26,379 INFO [Initialization] reading components.xml
      11:34:26,499 INFO [Initialization] reading properties from: /seam.properties
      11:34:26,499 INFO [Initialization] reading properties from: /jndi.properties
      11:34:26,509 INFO [Initialization] initializing Seam
      11:34:26,539 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      11:34:26,729 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
      11:34:26,739 ERROR [[/workforce-planning]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.IllegalArgumentException: no property for configuration setting: org.jboss.seam.core.pages.noConversationViewId
       at org.jboss.seam.Component.initInitializers(Component.java:288)
       at org.jboss.seam.Component.<init>(Component.java:200)
       at org.jboss.seam.Component.<init>(Component.java:156)


      web.xml has this entry:
      <!-- Seam -->
      
       <listener>
       <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
       </listener>

      faces-config.xml has this entry:
      <lifecycle>
       <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
       </lifecycle>

      components.xml has this entry:
      <component name="org.jboss.seam.core.pages">
       <property name="noConversationViewId">/main.xhtml</property>
       </component>

      Any idea why I get the error on deployment? Also, why does the server output say 'Welcome to Seam 1.0.0.CR3'? I deployed Seam 1.1.0.BETA1.

      John

        • 1. Re: Deploy error
          John Newbie

          I fixed the version of Seam, but I'm still getting an exception. Not the original one in my last post, but similar. Any ideas?

          14:21:54,188 INFO [ServletContextListener] Welcome to Seam 1.1.0.BETA1
          14:21:54,198 INFO [Initialization] reading components.xml
          14:21:54,198 INFO [Initialization] reading properties from: /seam.properties
          14:21:54,198 INFO [Initialization] reading properties from: /jndi.properties
          14:21:54,198 INFO [Initialization] initializing Seam
          14:21:54,229 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
          14:21:54,239 ERROR [[/workforce-planning]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
           java.lang.NullPointerException
           at org.jboss.seam.util.Conversions$FlatPropertyValue.isExpression(Conversions.java:240)
           at org.jboss.seam.Component.getInitialValue(Component.java:357)
           at org.jboss.seam.Component.initInitializers(Component.java:341)
          


          • 2. Re: Deploy error
            Gavin King Master

            What does your components.xml look like?

            • 3. Re: Deploy error
              John Newbie

              Okay, I've found a bunch of posts about this. I'll follow those. Please ignore this thread.

              • 4. Re: Deploy error
                John Newbie

                Yes. I found ur post about the @jndiPattern@ and ant. What should I replace it with?

                • 5. Re: Deploy error
                  John Newbie

                  I used #{ejbName}/local. lol...now I'm getting more errors. Let me try to fix them before I keep wasting y'all's time.

                  • 6. Re: Deploy error
                    Gavin King Master

                    Try *reading the documentation* about jndiPattern!

                    • 7. Re: Deploy error
                      John Newbie

                      You got me there. :) Now I'm trying to figure out where ajax4jsf.jar is and getting it in my build. I saw y'all's jira issue. reading... ;)

                      • 8. Re: Deploy error
                        John Newbie

                        I got it all working. Modifying build.xml and copying some jars around did the trick. I love u guys. ;)