|
When I deploy my WAR which contains DeltaSpike I get the following stacktrace. When I switch off Probe in web.xml, the issue is gone.
ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss.deployment.unit."shop.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."shop.war".WeldStartService: Failed to start service
|
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
|
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
at java.lang.Thread.run(Thread.java:745)
|
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001436: Normal scoped bean class org.apache.deltaspike.core.util.ExceptionUtils$ExceptionHelper is not proxyable because it has a private constructor [EnhancedAnnotatedConstructorImpl] private org.apache.deltaspike.core.util.ExceptionUtils$ExceptionHelper() - class org.apache.deltaspike.core.util.ExceptionUtils$ExceptionHelper.
|
at org.jboss.weld.injection.producer.InterceptionModelInitializer.init(InterceptionModelInitializer.java:113)
|
at org.jboss.weld.injection.producer.BeanInjectionTarget.buildInterceptionModel(BeanInjectionTarget.java:92)
|
at org.jboss.weld.injection.producer.BeanInjectionTarget.initializeInterceptionModel(BeanInjectionTarget.java:87)
|
at org.jboss.weld.injection.producer.BeanInjectionTarget.initializeAfterBeanDiscovery(BeanInjectionTarget.java:97)
|
at org.jboss.weld.injection.producer.InjectionTargetInitializationContext.initialize(InjectionTargetInitializationContext.java:42)
|
at org.jboss.weld.injection.producer.InjectionTargetService.initialize(InjectionTargetService.java:63)
|
at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:429)
|
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
|
at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)
|
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
|
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
|
... 3 more
|
This is the relevant part of DeltaSpike's ExceptionUtil:
@Typed()
|
public abstract class ExceptionUtils
|
{
|
private ExceptionUtils()
|
{
|
// prevent instantiation
|
}
|
The inner class ExceptionUtils.ExceptionHelper is "private static" and has just 1 private method.
|