[ 
https://issues.apache.org/jira/browse/MARMOTTA-491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergio Fernández resolved MARMOTTA-491.
---------------------------------------

       Resolution: Not a Problem
    Fix Version/s: 3.3.0
         Assignee: Sergio Fernández

JBoss EAP 6.2 is not one of our typical deployments scenarios, so it's very 
good that users can test it there.

It looks an api incompatibility with 
org.jboss.weld.context.AbstractUnboundContext, which does not provide a 
constructor AbstractBoundContext(String):

http://grepcode.com/file/repo1.maven.org/maven2/org.jboss.weld/weld-core/2.1.0.Final/org/jboss/weld/context/AbstractBoundContext.java?av=f#26

Current release of Marmotta uses Weld API 2.1.Final (Weld Core 2.1.2.Final). It 
looks that JBoss EAP already provides the version 1.x:

https://access.redhat.com/site/articles/112673

It's a bit weird, because JBoss EAP 6.2 was release in Dec 2013, and Weld 2.x 
is out there for quite a long of time. But doing a quick search, it looks that 
those libraries are so deeply integrated in EAP that more modern versions are 
not compatible:

https://community.jboss.org/thread/227958

In that thread they recommend to migrated to Wildfly (http://wildfly.org), but 
I'm not sure it it's an option for you.

Again, thanks for the report. It helps to have a better overview about our 
suitable deployment scenarios.

> Deployment in Jboss
> -------------------
>
>                 Key: MARMOTTA-491
>                 URL: https://issues.apache.org/jira/browse/MARMOTTA-491
>             Project: Marmotta
>          Issue Type: Bug
>          Components: Platform
>    Affects Versions: 3.2.0
>         Environment: JBOSS EAP 6.2
>            Reporter: Maxime Poitevineau-Millin 
>            Assignee: Sergio Fernández
>              Labels: jboss
>             Fix For: 3.3.0
>
>
> There is an issue when we try to deploy in Jboss EAP 6.2
> 21:53:14,906 ERROR [org.jboss.as.server] (HttpManagementService-threads - 9) 
> JBAS015870: Le déploiement "marmotta.war" a été annulé avec le message d'échec
> {"JBAS014671: Les services ont échoué" => 
> {"jboss.deployment.unit.\"marmotta.war\".WeldStartService" => 
> "org.jboss.msc.service.StartException in service 
> jboss.deployment.unit.\"marmotta.war\".WeldStartService: Failed to start 
> service
>     Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List 
> with 1 exceptions:
> Exception 0 :
> javax.enterprise.event.ObserverException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>         at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>         at java.lang.Class.newInstance(Class.java:374)
>         at 
> org.jboss.weld.util.reflection.SecureReflections$16.work(SecureReflections.java:344)
>         at 
> org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
>         at 
> org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInstantiation(SecureReflectionAccess.java:173)
>         at 
> org.jboss.weld.util.reflection.SecureReflections.newInstance(SecureReflections.java:341)
>         at 
> org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:33)
>         at 
> org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:73)
>         at 
> org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:162)
>         at 
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)
>         at 
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)
>         at 
> org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)
>         at 
> org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)
>         at 
> org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)
>         at 
> org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:42)
>         at 
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:359)
>         at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:63)
>         at 
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
>         at 
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:724)
> Caused by: java.lang.NoSuchMethodError: 
> org.jboss.weld.context.AbstractUnboundContext.<init>(Ljava/lang/String;Z)V
>         at 
> org.jboss.weld.environment.se.contexts.ThreadContext.<init>(ThreadContext.java:40)
>         at 
> org.jboss.weld.environment.se.WeldSEBeanRegistrant.registerWeldSEContexts(WeldSEBeanRegistrant.java:57)
>         at 
> org.jboss.weld.environment.se.WeldSEBeanRegistrant$Proxy$_$$_WeldClientProxy.registerWeldSEContexts(WeldSEBeanRegistrant$Proxy$_$$_WeldClientProxy.java)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at 
> org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)
>         at 
> org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
>         at 
> org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
>         at 
> org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)
>         at 
> org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:164)
>         at 
> org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)
>         at 
> org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)
>         ... 13 more
> "}}
> Regards



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to