play2war / play2-war-plugin

WAR Plugin for Play framework 2.x
Apache License 2.0
443 stars 71 forks source link

Play 2.4.x with Glassfish 4 Deployment Exception: WELD-001408 #296

Closed BobbyT closed 9 years ago

BobbyT commented 9 years ago

Hi there,

I'm trying to deploy my Play 2.4.3 App to Glassfish v4.1.1 and I'm getting this Exception:

    Command succeeded with Warning
"http://localhost:4848/management/domain/applications/application/app-1.0-SNAPSHOT" created successfully. 
Warning: Command _deploy did not complete successfully on server instance dashboard: remote failure: Failed to load the application on instance dashboard. 
The application will not run properly. Please fix your application and redeploy. 
Exception while loading the app : CDI deployment failure:Exception List with 6 exceptions: 

Exception 0 : org.jboss.weld.exceptions.DeploymentException: WELD-001408: 
Unsatisfied dependencies for type DBApi with qualifiers @Default at injection point [BackedAnnotatedParameter] 
Parameter 5 of [BackedAnnotatedConstructor] @Inject public play.api.db.evolutions.ApplicationEvolutions(EvolutionsConfig, EvolutionsReader, EvolutionsApi, DynamicEvolutions, DBApi, Environment, WebCommands)

at play.api.db.evolutions.ApplicationEvolutions.<init>(ApplicationEvolutions.java:0)
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymen .... msg.seeServerLog

I also have another app with Play 2.3.8 which deployment works fine. Does anybody know what issue is?

best regards bobbyt

BobbyT commented 9 years ago

I found a solution: https://java.net/jira/browse/GLASSFISH-20579

Simply deactivate implicit CDI discovery.