qcri-social / AIDR

Artificial Intelligence for Digital Response
http://aidr.qcri.org/
GNU Affero General Public License v3.0
98 stars 37 forks source link

Issues deploying aidr-manager #24

Closed jmgtan closed 9 years ago

jmgtan commented 9 years ago

I encountered the following error while trying to deploy aidr-manager:

[2015-05-01T07:44:36.958+0000] [glassfish 4.1] [SEVERE] [AS-WEB-GLUE-00192] [javax.enterprise.web] [tid: _ThreadID=44 _ThreadName=admin-listener(5)] [timeMillis: 1430466276958] [levelValue: 1000] [[
  Undeployment failed for context /AIDRFetchManager]]

[2015-05-01T07:44:36.996+0000] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=44 _ThreadName=admin-listener(5)] [timeMillis: 1430466276996] [levelValue: 1000] [[
  Exception while loading the app : CDI deployment failure:WELD-001408: Unsatisfied dependencies for type Set<Service> with qualifiers @Default
  at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject com.google.common.util.concurrent.ServiceManager(Set<Service>)
  at com.google.common.util.concurrent.ServiceManager.<init>(ServiceManager.java:0)

org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Set<Service> with qualifiers @Default
  at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject com.google.common.util.concurrent.ServiceManager(Set<Service>)
  at com.google.common.util.concurrent.ServiceManager.<init>(ServiceManager.java:0)

Any advice on how to proceed?

koushiksinha commented 9 years ago

Hi,

We normally deploy aidr-manager to tomcat and the pom.xml dependency parameters have been set accordingly. Can u please attempt a deployment on tomcat?

Otherwise, you will have to experiment with 'compile' and 'provided' options for the jersey and glassfish dependencies.

Regards, Koushik On 1 May 2015 11:01, "jmgtan" notifications@github.com wrote:

I encountered the following error while trying to deploy aidr-manager:

[2015-05-01T07:44:36.958+0000] [glassfish 4.1] [SEVERE] [AS-WEB-GLUE-00192] [javax.enterprise.web] [tid: _ThreadID=44 _ThreadName=admin-listener(5)] [timeMillis: 1430466276958] [levelValue: 1000] [[ Undeployment failed for context /AIDRFetchManager]]

[2015-05-01T07:44:36.996+0000] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=44 _ThreadName=admin-listener(5)] [timeMillis: 1430466276996] [levelValue: 1000] [[ Exception while loading the app : CDI deployment failure:WELD-001408: Unsatisfied dependencies for type Set with qualifiers @Default at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject com.google.common.util.concurrent.ServiceManager(Set) at com.google.common.util.concurrent.ServiceManager.(ServiceManager.java:0)

org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Set with qualifiers @Default at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject com.google.common.util.concurrent.ServiceManager(Set) at com.google.common.util.concurrent.ServiceManager.(ServiceManager.java:0)

Any advice on how to proceed?

— Reply to this email directly or view it on GitHub https://github.com/qcri-social/AIDR/issues/24.

kushalkantgoyal commented 9 years ago

You can deploy aidr-manager by simply uncheck "Implicit CDI Enabled" while deploying on GF4.1

jmgtan commented 9 years ago

Managed to get it to work by disabling CDI:

asadmin set configs.config.server-config.cdi-service.enable-implicit-cdi=false