Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

JBoss EAP 6 における JBAS011054: Could not find default constructor for class エラー

Solution Verified - Updated -

Issue

  • JBoss EAP 6 に JAX-WS web サービスを含む war をデプロイすると、以下の例外が出力されます。

    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException:JBAS011030:Could not configure component com.jboss.examples.webservice.impl.ExampleWebServiceImpl
            at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:94)
            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
            ...5 more
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException:JBAS011054:Could not find default constructor for class com.jboss.examples.webservice.impl.ExampleWebServiceImpl
            at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
            at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:83)
            ...6 more
    

    com.jboss.examples.webservice.impl.ExampleWebServiceImpl は以下のようになります。

    package com.jboss.examples.webservice.impl;
    
    @WebService
    public class ExampleWebServiceImpl {
    
      public ExampleWebServiceImpl(Example example) {
        this.example = example;
      }
    
      ...
    }
    
  • Spring Framework 3.2 を含む web アプリケーションをデプロイすると、以下の例外が出力されます。

    09:20:18,847 WARN  [org.jboss.as.ee] (MSC service thread 1-5) JBAS011006:Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException:JBAS011054:Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest
            at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:607) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
            at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)
            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.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09]
            at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0.x
    • 6.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.