4 Replies Latest reply: Apr 6, 2012 12:13 AM by abhi0123 RSS

    JBAS011230: Could not load JAX-RS Application class

    abhi0123 Newbie

      JAX-RS Resource and an Application class (both files attached). No web.xml. AS 7.1 throws the following exception when the service is deployed.

      Tried adding a web.xml, not that it helped, though according to Spec I shouldn't have to. Also tried playing with jboss-deployment-structure.xml. And yes, I definitely read this https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7

       

       

       

      14:20:36,333 INFO  (MSC service thread 1-3) JBAS015876: Starting deployment of "jaxrs-basic"

      14:20:36,380 ERROR (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit.jaxrs-basic.POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit.jaxrs-basic.POST_MODULE: Failed to process phase POST_MODULE of deployment "jaxrs-basic"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      at java.lang.Thread.run(Thread.java:662)

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011230: Could not load JAX-RS Application class

      at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scan(JaxrsScanningProcessor.java:221)

      at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:101)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)

      ... 5 more

      Caused by: java.lang.ClassNotFoundException: edu.certification.abhijitsarkar.ocewsd.jaxrs.basic.CarApplication from [Module "deployment.jaxrs-basic:main" from Service Module Loader]

      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

      at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scan(JaxrsScanningProcessor.java:217)

      ... 7 more