Multi module maven problem

621 views
Skip to first unread message

mill

unread,
Jul 6, 2017, 1:26:56 PM7/6/17
to WildFly Swarm
Hi

I'm trying to implement a basic application to learn swarm.
The app is made of three module:

_ REST_module
_ EJB_CLIENT_module
_ EJB_module


When I start application with maven plugin (wildfly-swarm:run) all work as expected,but when I try to start app with the command java -jar it doesnt't start!!

This is my REST entry point:

import javax.ejb.EJB;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;


@Path("/getUser")
public class UserResource
{


    @EJB
    private UserServiceLocal userService;

    @GET
    @Produces("text/plain")
    public Response doGet()
    {
        Response result = null;
        try
        {
            result = Response.ok("User with id: "+userService.getUser(12345)).build();
        }
        catch (Exception ex)
        {
            ex.printStackTrace();
            result = Response.serverError().build();
        }
        return result;
    }

and this is my simpe EJB with its client:

public interface IUserService
{
    public int getUser(int id) throws Exception;
}


import javax.ejb.Local;

@Local
public interface UserServiceLocal extends IUserService{
}

import javax.ejb.Remote;

@Remote
public interface UserServiceRemote extends IUserService{
}

Inserisci qui il codice...

import it.millosft.wf.ejb.client.api.UserServiceLocal;
import it.millosft.wf.ejb.client.api.UserServiceRemote;

import javax.ejb.EJB;
import javax.ejb.Stateless;

@Stateless
@EJB(name = "java:global/UserServiceBean", beanInterface = UserServiceRemote.class)
public class UserServiceBean implements UserServiceLocal,UserServiceRemote
{
@Override
public int getUser(int id) throws Exception {
return 123456;
}
}

This is the stack trace of error when I try to execute java -jar:

2017-07-06 18:26:57,291 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."wf-rest.war".WeldStartService: org.jboss
.msc.service.StartException in service jboss.deployment.unit."wf-rest.war".WeldStartService: Failed to start service
        at org
.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1919)
        at java
.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java
.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java
.lang.Thread.run(Unknown Source)
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SecurityFraction with qualifiers @Default
  at injection point
[BackedAnnotatedField] @Inject private org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security
  at org
.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security(EJBSecurityCustomizer.java:0)

        at org
.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:359)
        at org
.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)
        at org
.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:134)
        at org
.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org
.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org
.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org
.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org
.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org
.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        at java
.util.concurrent.FutureTask.run(Unknown Source)
        at java
.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java
.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java
.lang.Thread.run(Unknown Source)
        at org
.jboss.threads.JBossThread.run(JBossThread.java:320)

2017-07-06 18:26:57,296 ERROR [org.jboss.as.controller.management-operation] (main) WFLYCTL0013: Operation ("add") failed - address: (("deployment" => "wf-rest.war")) - failure descr
iption
: {
   
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wf-rest.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wf-rest.wa
r\".WeldStartService: Failed to start service
    Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SecurityFraction with qualifiers @Default
  at injection point [BackedAnnotatedField] @Inject private org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security
  at org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security(EJBSecurityCustomizer.java:0)
"
},
   
"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"wf-rest.war\".WeldStartService"],
   
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
2017-07-06 18:26:57,298 ERROR [org.jboss.as.server] (main) WFLYSRV0021: Deploy of deployment "wf-rest.war" was rolled back with the following failure message:
{
   
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wf-rest.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wf-rest.wa
r\".WeldStartService: Failed to start service
    Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SecurityFraction with qualifiers @Default
  at injection point [BackedAnnotatedField] @Inject private org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security
  at org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security(EJBSecurityCustomizer.java:0)
"
},
   
"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"wf-rest.war\".WeldStartService"],
   
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
2017-07-06 18:26:57,327 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0019: Host default-host stopping
2017-07-06 18:26:57,377 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment wf-rest.war (runtime-name: wf-rest.war) in 78ms
2017-07-06 18:26:57,379 INFO  [org.jboss.as.controller] (main) WFLYCTL0183: Service status report
WFLYCTL0184
:    New missing/unsatisfied dependencies:
      service jboss
.deployment.unit."wf-rest.war".WeldBootstrapService (missing) dependents: [service jboss.deployment.unit."wf-rest.war".component.UserServiceBean.WeldInterceptorBin
dingsService
]
      service jboss
.deployment.unit."wf-rest.war".WeldStartService (missing) dependents: [service jboss.deployment.unit."wf-rest.war".component.UserServiceBean.WeldInterceptorBinding
sService
]
      service jboss
.deployment.unit."wf-rest.war".component.UserServiceBean.CREATE (missing) dependents: [service jboss.deployment.unit."wf-rest.war".component.UserServiceBean.START]

      service jboss
.deployment.unit."wf-rest.war".component.UserServiceBean.START (missing) dependents: [service jboss.deployment.unit."wf-rest.war".deploymentCompleteService, servic
e jboss
.deployment.unit."wf-rest.war".moduleDeploymentRuntimeInformationStart]
      service jboss
.deployment.unit."wf-rest.war".component.UserServiceBean.VIEW."it.millosft.wf.ejb.client.api.UserServiceRemote".REMOTE (missing) dependents: [service jboss.deploym
ent
.unit."wf-rest.war".component.UserServiceBean.START]
      service jboss
.deployment.unit."wf-rest.war".component.UserServiceBean.WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wf-rest.war".component.UserServiceB
ean
.START]
      service jboss
.deployment.unit."wf-rest.war".component.UserServiceBean.ejb.non-functional-timerservice (missing) dependents: [service jboss.deployment.unit."wf-rest.war".compone
nt
.UserServiceBean.START]
      service jboss
.deployment.unit."wf-rest.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (missing) dependents: [service jboss.deployment.unit."wf-rest.war"
.component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]
      service jboss
.deployment.unit."wf-rest.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.deployment.unit."wf-rest.war".
deploymentCompleteService
]
      service jboss
.deployment.unit."wf-rest.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wf
-rest.war"
.component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]
      service jboss
.deployment.unit."wf-rest.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".CREATE (missing) dependents: [service jboss.deployment.unit."wf-rest.war".compo
nent
."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]
      service jboss
.deployment.unit."wf-rest.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."wf-rest.war".deploy
mentCompleteService
]
      service jboss
.deployment.unit."wf-rest.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wf-rest.
war"
.component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]
      service jboss
.deployment.unit."wf-rest.war".component."org.jboss.weld.servlet.WeldInitialListener".CREATE (missing) dependents: [service jboss.deployment.unit."wf-rest.war".com
ponent
."org.jboss.weld.servlet.WeldInitialListener".START]
      service jboss
.deployment.unit."wf-rest.war".component."org.jboss.weld.servlet.WeldInitialListener".START (missing) dependents: [service jboss.deployment.unit."wf-rest.war".depl
oymentCompleteService
]
      service jboss
.deployment.unit."wf-rest.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wf-res
t.war"
.component."org.jboss.weld.servlet.WeldInitialListener".START]
      service jboss
.deployment.unit."wf-rest.war".component."org.jboss.weld.servlet.WeldTerminalListener".CREATE (missing) dependents: [service jboss.deployment.unit."wf-rest.war".co
mponent
."org.jboss.weld.servlet.WeldTerminalListener".START]
      service jboss
.deployment.unit."wf-rest.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (missing) dependents: [service jboss.deployment.unit."wf-rest.war".dep
loymentCompleteService
]
      service jboss
.deployment.unit."wf-rest.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."wf-re
st.war"
.component."org.jboss.weld.servlet.WeldTerminalListener".START]
      service jboss
.deployment.unit."wf-rest.war".ee.ComponentRegistry (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoSe
rvice
]
      service jboss
.deployment.unit."wf-rest.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."wf-rest.war".component."javax.servlet.jsp.jstl.tlv.Scrip
tFreeTLV"
.START, service jboss.deployment.unit."wf-rest.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START, service jboss.deployment.unit."wf-rest.war".component."
org.jboss.weld.servlet.WeldInitialListener"
.START, service jboss.deployment.unit."wf-rest.war".component.UserServiceBean.START]
      service jboss
.deployment.unit."wf-rest.war".moduleDeploymentRuntimeInformation (missing) dependents: [service jboss.deployment.unit."wf-rest.war".moduleDeploymentRuntimeInforma
tionStart
]
      service jboss
.undertow.deployment.default-server.default-host./ (missing) dependents: [service jboss.deployment.unit."wf-rest.war".deploymentCompleteService]
      service jboss
.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService (missing) dependents: [service jboss.undertow.deployment.default-server.default-ho
st
./]
WFLYCTL0186
:   Services which failed to start:      service jboss.deployment.unit."wf-rest.war".WeldStartService

2017-07-06 18:26:57,404 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0008: Undertow HTTP listener default suspending
2017-07-06 18:26:57,408 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0007: Undertow HTTP listener default stopped, was bound to [0:0:0:0:0:0:0:0]:8080
2017-07-06 18:26:57,409 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0004: Undertow 1.4.11.Final stopping
2017-07-06 18:26:57,431 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: WildFly Swarm 2017.6.1 (WildFly Core 2.2.1.Final) stopped in 37ms
2017-07-06 18:26:57,459 INFO  [org.jboss.weld.Bootstrap] (main) WELD-ENV-002001: Weld SE container internal shut down
2017-07-06 18:26:57,460 ERROR [stderr] (main) java.lang.reflect.InvocationTargetException
2017-07-06 18:26:57,460 ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-07-06 18:26:57,460 ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-07-06 18:26:57,460 ERROR [stderr] (main)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-07-06 18:26:57,461 ERROR [stderr] (main)   at java.lang.reflect.Method.invoke(Unknown Source)
2017-07-06 18:26:57,461 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
2017-07-06 18:26:57,461 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.run(Main.java:46)
2017-07-06 18:26:57,461 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.main(Main.java:37)
2017-07-06 18:26:57,462 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment fai
led
: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wf-rest.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wf-rest.
war\".WeldStartService: Failed to start service
2017-07-06 18:26:57,463 ERROR [stderr] (main)     Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SecurityFraction with quali
fiers @Default
2017-07-06 18:26:57,463 ERROR [stderr] (main)   at injection point [BackedAnnotatedField] @Inject private org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security
2017-07-06 18:26:57,463 ERROR [stderr] (main)   at org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security(EJBSecurityCustomizer.java:0)
2017-07-06 18:26:57,463 ERROR [stderr] (main) "
},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"wf-rest.war\".WeldStartService"],"WFLYCTL0180:
Services with missing/unavailable dependencies"
=> undefined}
2017-07-06 18:26:57,464 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:278)
2017-07-06 18:26:57,464 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:163)
2017-07-06 18:26:57,464 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:96)
2017-07-06 18:26:57,465 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2017-07-06 18:26:57,465 ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.deploy(Swarm.java:443)
2017-07-06 18:26:57,465 ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.main(Swarm.java:625)
2017-07-06 18:26:57,466 ERROR [stderr] (main)   ... 7 more
2017-07-06 18:26:57,466 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.d
eployment.unit.\"wf-rest.war\".WeldStartService"
=> "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wf-rest.war\".WeldStartService: Failed to start service
2017-07-06 18:26:57,466 ERROR [stderr] (main)     Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SecurityFraction with quali
fiers @Default
2017-07-06 18:26:57,466 ERROR [stderr] (main)   at injection point [BackedAnnotatedField] @Inject private org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security
2017-07-06 18:26:57,466 ERROR [stderr] (main)   at org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security(EJBSecurityCustomizer.java:0)
2017-07-06 18:26:57,467 ERROR [stderr] (main) "
},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"wf-rest.war\".WeldStartService"],"WFLYCTL0180:
Services with missing/unavailable dependencies"
=> undefined}
2017-07-06 18:26:57,467 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:273)
2017-07-06 18:26:57,467 ERROR [stderr] (main)   ... 12 more
2017-07-06 18:26:57,468 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
2017-07-06 18:26:57,468 ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-07-06 18:26:57,468 ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-07-06 18:26:57,469 ERROR [stderr] (main)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-07-06 18:26:57,469 ERROR [stderr] (main)   at java.lang.reflect.Method.invoke(Unknown Source)
2017-07-06 18:26:57,469 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
2017-07-06 18:26:57,469 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.run(Main.java:46)
2017-07-06 18:26:57,469 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.main(Main.java:37)
2017-07-06 18:26:57,470 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment fai
led
: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wf-rest.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wf-rest.
war\".WeldStartService: Failed to start service
2017-07-06 18:26:57,470 ERROR [stderr] (main)     Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SecurityFraction with quali
fiers @Default
2017-07-06 18:26:57,470 ERROR [stderr] (main)   at injection point [BackedAnnotatedField] @Inject private org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security
2017-07-06 18:26:57,470 ERROR [stderr] (main)   at org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security(EJBSecurityCustomizer.java:0)
2017-07-06 18:26:57,470 ERROR [stderr] (main) "
},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"wf-rest.war\".WeldStartService"],"WFLYCTL0180:
Services with missing/unavailable dependencies"
=> undefined}
2017-07-06 18:26:57,471 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:278)
2017-07-06 18:26:57,471 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:163)
2017-07-06 18:26:57,471 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:96)
2017-07-06 18:26:57,471 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2017-07-06 18:26:57,472 ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.deploy(Swarm.java:443)
2017-07-06 18:26:57,472 ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.main(Swarm.java:625)
2017-07-06 18:26:57,472 ERROR [stderr] (main)   ... 7 more
2017-07-06 18:26:57,472 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.d
eployment.unit.\"wf-rest.war\".WeldStartService"
=> "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wf-rest.war\".WeldStartService: Failed to start service
2017-07-06 18:26:57,473 ERROR [stderr] (main)     Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SecurityFraction with quali
fiers @Default
2017-07-06 18:26:57,473 ERROR [stderr] (main)   at injection point [BackedAnnotatedField] @Inject private org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security
2017-07-06 18:26:57,473 ERROR [stderr] (main)   at org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security(EJBSecurityCustomizer.java:0)
2017-07-06 18:26:57,473 ERROR [stderr] (main) "
},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"wf-rest.war\".WeldStartService"],"WFLYCTL0180:
Services with missing/unavailable dependencies"
=> undefined}
2017-07-06 18:26:57,473 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:273)
2017-07-06 18:26:57,473 ERROR [stderr] (main)   ... 12 more




Any suggestions to solve?

Thank you










Ken Finnigan

unread,
Jul 7, 2017, 3:15:58 AM7/7/17
to WildFly Swarm
Is this the problem that I saw being discussed on IRC yesterday?

If so, did the suggestions help?

Ken

rafaelszp

unread,
Aug 24, 2017, 7:43:37 AM8/24/17
to WildFly Swarm
How did you solve? This is happening with me too

bagas

unread,
Aug 25, 2017, 4:29:30 AM8/25/17
to WildFly Swarm
Just a wild guess,

is it not looking for Security Fraction dependency?

WELD-001408: Unsatisfied dependencies for type SecurityFraction with qualifiers @Default
  at injection point [BackedAnnotatedField] @Inject private org.wildfly.swarm.ejb.runtime.EJBSecurityCustomizer.security


Maybe explicitly adding this:
<dependency>
  <groupId>org.wildfly.swarm</groupId>
  <artifactId>security</artifactId>
</dependency>


and forcing bundle package would help?

<plugins>
<plugin>
<groupId>org.wildfly.swarm</groupId>
<artifactId>wildfly-swarm-plugin</artifactId>
<version>${version.wildfly-swarm}</version>
<executions>
<execution>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
<configuration>
<bundleDependencies>true</bundleDependencies>
</configuration>
</plugin>
</plugins>

Michael

unread,
Jan 9, 2018, 11:31:41 AM1/9/18
to WildFly Swarm
@mill: Have you been able to solve your issue? I'm having the exact same problem...
Message has been deleted

Luigi

unread,
Feb 20, 2018, 12:28:55 PM2/20/18
to WildFly Swarm
@mill


Same here :)
On a multi-module project the same error occurred. 
Also adding security fraction didn't help.
For an unexpected reason application started fine only one time, without changing code or pom.xml.
On the next run application start failed.

Thx

Allen

unread,
Apr 25, 2018, 12:36:27 PM4/25/18
to WildFly Swarm
I am also having the same exact issue when running from the command line...  "java -jar bla-swarm.jar"

When I run this same project from within Netbeans, it works just fine. 

Matheus Mohr

unread,
Mar 12, 2019, 8:45:55 AM3/12/19
to Thorntail


Em quarta-feira, 25 de abril de 2018 13:36:27 UTC-3, Allen escreveu:
I am also having the same exact issue when running from the command line...  "java -jar bla-swarm.jar"

When I run this same project from within Netbeans, it works just fine. 

Hey there, for anyone that runs into the same problem and ends up in this thread, if you're running a multi-module project, make sure that your fractions are declared in your main module and all the others use "<scope>provided</scope>" on them. In my case, declaring the "EJB" fraction in 2 modules caused this particular problem (which is weird, since it should cause some kind of ambiguous dependency problem, not an unsatisfied one), so watch out for that.

Paulo Zanco

unread,
Sep 3, 2019, 2:18:32 AM9/3/19
to Thorntail
Adding <scope>provided</scope> to dependencies for a multi-module project worked.
Reply all
Reply to author
Forward
0 new messages