Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wildfly 8.2: component.CREATE is missing

I just updated my Wildfly-8.1.0.Final installation to 8.2.0.Final and deployed my WAR application and ran into deployment error. It said

ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) 
      JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "MYAPPNAME.war")]) -
      failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [

and then listed all my EJBs in the following manner:

"jboss.deployment.unit.\"MYAPPNAME.war\".component.EJBNAME.CREATE is missing [jboss.security.security-domain.java:/jaas/MYSECURITYDOMAIN]"

When I rolled back to 8.1.0.Final everything worked as expected again.

All my EJBs are declared with @Stateless and there exists an empty beans.xml for CDI there aren't any other special configurations for EJB or CDI except compontents.xml with the following content:

<components>
    <component name="org.jboss.seam.core.init">
        <!-- JNDI name pattern for JBoss EJB 3.0 -->
        <property name="jndiPattern">#{ejbName}/local</property>
    </component>
</components>

Has anyone encountered this case and could give me a hint how to resolve it?

like image 514
Zhedar Avatar asked Nov 30 '14 17:11

Zhedar


1 Answers

Take a look at this Wildfly issue;

https://issues.jboss.org/browse/WFLY-4116

This issue relates to;

"WAR deployment fails on missing security domain dependency"

and contains error traces in the log output that are similar in nature to the ones reported.

Specifically, constructs like;

<jboss-web>
    <security-domain>java:/jaas/haa-portal</security-domain>
</jboss-web>

should be replaced with;

<jboss-web>
    <security-domain>haa-portal</security-domain>
</jboss-web>

I had a similar issue and the advice in this issue rectified it for me.

like image 154
Paul Keogh Avatar answered Jan 03 '23 18:01

Paul Keogh