Just to flesh out the backstory on this... Apache Isis' support for dependency injection actually predates CDI and other such initiatives, and so we currently implement dependency injection - both between singleton/request-scoped services and also injection into entity/view models - ourselves. But the plan is to throw out this code and adopt CDI at some point in the future and have it do all our dependency injection needs.
With this in mind, we've adopted the CDI @javax.inject.Inject annotation with the hope that when we change this internal detail there will be no impact on anyone's application. At the moment, though, we haven't started any of that work, so it's no surprise to me that a CDI-enabled server that discovers our use of @Inject might trip up. Cheers Dan On 16 December 2015 at 14:26, Tobias Poswistak <[email protected]> wrote: > Hey, > > Thank you very much. This fixed the error in an instant! > > With best thanks > > Tobias Poswistak > > > Am 16.12.2015 um 14:56 schrieb Martin Grigorov: > >> Hi, >> >> The error says that WildFly tries to do CDI work. >> Jetty is just a web server and doesn't support Java EE stuff like CDI. >> Try to disable CDI support for this application (I have no idea how >> exactly). >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Wed, Dec 16, 2015 at 1:49 PM, Tobias Poswistak <[email protected]> wrote: >> >> I also asked this question on Stack Overflow [1] >>> >>> I'm trying to deploy an Apache Isis project on a WildFly server. >>> >>> The project is just the/simpleapp-archetype-1.10.0/and it starts and >>> works >>> well with*mvn antrun:run -P self-host*and*mvn jetty:run-war*. >>> >>> For the jetty part, I added configuration to the org.eclipse.jetty plugin >>> of the parent pom.xml >>> >>> |<plugin> <groupId>org.eclipse.jetty</groupId> >>> <artifactId>jetty-maven-plugin</artifactId> >>> <version>9.3.2.v20150730</version> <configuration> >>> <war>${project.basedir}/webapp/target/simpleapp.war</war> >>> </configuration> >>> </plugin> | >>> >>> Now I wanted to deploy this on a WildFly server, but I get the following >>> error: >>> >>> Cannot upload deployment: {"WFLYCTL0080: Failed services" => >>> {"jboss.deployment.unit.\"simpleapp.war\".WeldStartService" => >>> "org.jboss.msc.service.StartException in service >>> jboss.deployment.unit.\"simpleapp.war\".WeldStartService: Failed to >>> start service Caused by: >>> org.jboss.weld.exceptions.DeploymentException: WELD-001408: >>> Unsatisfied dependencies for type IsisJdoSupport with qualifiers >>> @Default at injection point [BackedAnnotatedField] @Inject >>> >>> >>> org.apache.isis.objectstore.jdo.datanucleus.service.support.TimestampService.isisJdoSupport >>> at >>> >>> >>> org.apache.isis.objectstore.jdo.datanucleus.service.support.TimestampService.isisJdoSupport(TimestampService.java:0) >>> "}} >>> >>> How can I fix this error, and why does jetty bypass this error ? >>> >>> Regards >>> >>> ------------------------------------------------------------------------ >>> [1] >>> >>> http://stackoverflow.com/questions/34311775/deploying-apache-isis-on-wildfly >>> >>> >>> >>> >
