Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3722

org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.springframework.social.facebook.web.FacebookInitTag for spring-social-facebook 1.0.1

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.CR1b
    • Fix Version/s: 7.1.1.Final
    • Component/s: Class Loading
    • Labels:
      None
    • Environment:

      spring-social-facebook 1.0.1.RELEASE

      Description

      Loading only spring-social-facebook 1.0.1.RELEASE :

      <dependency>
      	<groupId>org.springframework.social</groupId>
      	<artifactId>spring-social-facebook</artifactId>
      	<version>1.0.1.RELEASE</version>
      </dependency>
      

      throws:

      16:44:45,857 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-16) MSC00001: Failed to start service jboss.deployment.unit."satukancinta-web.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."satukancinta-web.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "satukancinta-web.war"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0_147-icedtea]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0_147-icedtea]
      	at java.lang.Thread.run(Thread.java:722) [:1.7.0_147-icedtea]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.springframework.social.facebook.web.FacebookInitTag
      	at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)
      	at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
      	... 5 more
      Caused by: java.lang.ClassNotFoundException: org.springframework.social.facebook.web.FacebookInitTag from [Module "deployment.satukancinta-web.war:main" from Service Module Loader]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.0.CR6]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.0.CR6]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.0.CR6]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.0.CR6]
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.0.CR6]
      	at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)
      	... 7 more
      

      The workaround is to add:

      <dependency>
      	<groupId>org.springframework.social</groupId>
      	<artifactId>spring-social-facebook-web</artifactId>
      	<version>1.0.1.RELEASE</version>
      </dependency>
      

      However in my opinion this should not be needed if the web application does not use the web resources provided by spring-social-facebook-web artifact.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                ceefour Hendy Irawan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: