Uploaded image for project: 'Seam Faces'
  1. Seam Faces
  2. SEAMFACES-164

Unable to deploy short.ly example to glassfish 3.1 and JBossAS 6

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Out of Date
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1.0.Beta4
    • Component/s: Build & Distribution
    • Labels:
      None
    • Environment:

      Glassfish 3.1 or JBoss AS 6

      Description

      Build the faces-short.ly using netbeans to generate the faces-short.ly.war file.

      When deployed to JBoss AS6 using the JBoss admin console we get the following error:

      java.lang.RuntimeException: Error instantiating class org.jboss.seam.faces.context.FacesAnnotationsAdapterExtension
      at org.jboss.weld.util.ServiceLoader.prepareInstance(ServiceLoader.java:282) [:6.0.0.Final]
      at org.jboss.weld.util.ServiceLoader.loadService(ServiceLoader.java:238) [:6.0.0.Final]
      at org.jboss.weld.util.ServiceLoader.loadServiceFile(ServiceLoader.java:194) [:6.0.0.Final]
      at org.jboss.weld.util.ServiceLoader.reload(ServiceLoader.java:157) [:6.0.0.Final]
      at org.jboss.weld.util.ServiceLoader.iterator(ServiceLoader.java:346) [:6.0.0.Final]
      ...
      Caused by: java.lang.NoClassDefFoundError: javax/faces/bean/RequestScoped
      at org.jboss.seam.faces.context.FacesAnnotationsAdapterExtension.<init>(FacesAnnotationsAdapterExtension.java:39)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_24]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_24]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_24]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_24]
      at org.jboss.weld.util.ServiceLoader.prepareInstance(ServiceLoader.java:273) [:6.0.0.Final]
      ... 70 more
      Caused by: java.lang.ClassNotFoundException: javax.faces.bean.RequestScoped from BaseClassLoader@3d989dea

      {vfs:///Users/asermelj/Applications/jboss-6.0.0.Final/server/default/deploy/blah.war}

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:480) [jboss-classloader.jar:2.2.0.GA]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [:1.6.0_24]
      ... 76 more

      When we deploy the application to Glassfish 3.1, with the update 1.1.1 version of weld, we get the error:

      WARNING: Failed to locate BeanManager using any of these providers:
      org.jboss.seam.solder.beanManager.BeanManagerUnavailableException: Failed to locate BeanManager using any of these providers:
      at org.jboss.seam.solder.beanManager.BeanManagerLocator.getBeanManager(BeanManagerLocator.java:91)
      at org.jboss.seam.faces.event.SeamPreNavigationHandler.handleNavigation(SeamPreNavigationHandler.java:37)
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)

      A interesting point is that the application will run fine in Glassfish if it is run though netbeans.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                asermej John Asermely
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: