We're updating the issue view to help you get more done.Learn more

Unable to start Zanata if email log is enabled

Imported external database, with email log is enabled.
Try to startup Zanata with postfix enabled, stack trace

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 12:32:54,079 INFO [org.zanata.ApplicationConfiguration] (ServerService Thread Pool -- 66) Reloading configuration 12:32:54,234 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 66) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./zanata: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./zanata: java.lang.RuntimeException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.zanata.ApplicationConfiguration.load() on org.zanata.ApplicationConfiguration@129c7d71 at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_111] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_111] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_111] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_111] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_111] at org.jboss.threads.JBossThread.run(JBossThread.java:320) [jboss-threads-2.2.1.Final-redhat-1.jar:2.2.1.Final-redhat-1] Caused by: java.lang.RuntimeException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.zanata.ApplicationConfiguration.load() on org.zanata.ApplicationConfiguration@129c7d71 at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:231) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82) ... 6 more Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.zanata.ApplicationConfiguration.load() on org.zanata.ApplicationConfiguration@129c7d71 at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:126) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:171) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:141) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.zanata.ApplicationConfiguration$Proxy$_$$_WeldClientProxy.setVersion(Unknown Source) at org.zanata.ZanataInit.initZanata(ZanataInit.java:130) at org.zanata.ZanataInit.onCreate(ZanataInit.java:110) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_111] at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:309) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:287) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:265) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:271) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:260) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:136) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:673) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.jboss.weld.util.ForwardingBeanManager.fireEvent(ForwardingBeanManager.java:101) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] at org.apache.deltaspike.servlet.impl.event.EventBroadcaster.fireEvent(EventBroadcaster.java:47) at org.apache.deltaspike.servlet.impl.event.EventBridgeContextListener.contextInitialized(EventBridgeContextListener.java:38) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:198) ... 8 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_111] at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:98) [weld-core-impl-2.3.3.Final-redhat-1.jar:2.3.3.Final-redhat-1] ... 40 more Caused by: java.lang.IllegalStateException: Could not find beans for Type=class javax.mail.Session and qualifiers:[] at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:154) at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:121) at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:100) at org.zanata.util.ServiceLocator.getInstance(ServiceLocator.java:77) at org.zanata.log4j.ZanataSMTPAppender.activateOptions(ZanataSMTPAppender.java:55) at org.zanata.ApplicationConfiguration.applyLoggingConfiguration(ApplicationConfiguration.java:199) at org.zanata.ApplicationConfiguration.load(ApplicationConfiguration.java:156) ... 45 more 12:32:54,245 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "zanata.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./zanata" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./zanata: java.lang.RuntimeException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.zanata.ApplicationConfiguration.load() on org.zanata.ApplicationConfiguration@129c7d71 Caused by: java.lang.RuntimeException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.zanata.ApplicationConfiguration.load() on org.zanata.ApplicationConfiguration@129c7d71 Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.zanata.ApplicationConfiguration.load() on org.zanata.ApplicationConfiguration@129c7d71 Caused by: java.lang.reflect.InvocationTargetException Caused by: java.lang.IllegalStateException: Could not find beans for Type=class javax.mail.Session and qualifiers:[]"}} 12:32:54,274 INFO [org.jboss.as.server] (ServerService Thread Pool -- 36) WFLYSRV0010: Deployed "zanata.war" (runtime-name : "zanata.war") 12:32:54,274 INFO [org.jboss.as.server] (ServerService Thread Pool -- 36) WFLYSRV0010: Deployed "mysql-connector-java.jar" (runtime-name : "mysql-connector-java.jar") 12:32:54,283 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report WFLYCTL0186: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./zanata: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./zanata: java.lang.RuntimeException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.zanata.ApplicationConfiguration.load() on org.zanata.ApplicationConfiguration@129c7d71 12:32:54,519 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management 12:32:54,520 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990 12:32:54,520 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: JBoss EAP 7.0.1.GA (WildFly Core 2.1.6.Final-redhat-1) started (with errors) in 23282ms - Started 690 of 1015 services (2 services failed or missing dependencies, 461 services are lazy, passive or on-demand) 12:32:54,677 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) WFL

Status

Assignee

Patrick Huang

Reporter

Alex Eng

Tested Version/s

None

Sprint

None

Fix versions

Priority

High