[JBoss JIRA] Created: (SEAMJMS-15) Support automatic resource management for a few closeable types
by John Ament (JIRA)
Support automatic resource management for a few closeable types
---------------------------------------------------------------
Key: SEAMJMS-15
URL: https://issues.jboss.org/browse/SEAMJMS-15
Project: Seam JMS
Issue Type: Feature Request
Components: Injection
Reporter: John Ament
Assignee: John Ament
Fix For: 3.0.0.Alpha2
Add Automatic Resource Management (ARM) for most closeable types. Must include at a minimum QueueReceiver, TopicSubscriber (and producer versions for both), MessageConsumer/Receiver, connections, etc.
To do this, a new qualifier Closeable will be used. App developers will be able to fire an event with the closeable object in it. An application scoped bean will have methods to support observing each and a predestroy that shuts down all of the closeable objects in a valid order.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[JBoss JIRA] Created: (SEAMJMS-3) Event Mapping Observer Method Interfaces - Egress
by Jordan Ganoff (JIRA)
Event Mapping Observer Method Interfaces - Egress
-------------------------------------------------
Key: SEAMJMS-3
URL: https://jira.jboss.org/browse/SEAMJMS-3
Project: Seam JMS
Issue Type: Feature Request
Reporter: Jordan Ganoff
Priority: Blocker
Implement the egress routing (forwarding CDI events to a JMS destination) as per the spec.
>From JSR-299-20090521.pdf:
10.7. JMS event mappings
An event type may be mapped to JMS topic.
An event mapping is a special kind of observer method that is declared by an interface, for example:
interface EventMappings {
void mapLoggedInEvent(@Observes LoggedInEvent event, @Events Topic eventTopic);
}
Where the parameter of type Topic resolves to the following message destination:
@Resource(name="java:global/env/jms/Events")
@Produces @Events Topic eventTopic;
The event parameter specifies the mapped event type and bindings. Every message destination representing a topic that
any injected parameter resolves to is a mapped topic.
An event mapping may be specified as a member of any interface.
All observers of mapped event types must be asynchronous observer methods. If an observer for a mapped event type is
not an asynchronous observer method, the container automatically detects the problem and treats it as a deployment prob-
lem, as defined in Section 12.4, "Problems detected automatically by the container".
For every event mapping, the container must:
• send a message containing the serialized event and its event bindings to every mapped topic whenever an event with
the mapped event type and bindings is fired, and
• monitor every mapped topic for messages containing events of that mapped event type and bindings and notify all loc-
al observers whenever a message containing an event is received.
Thus, events with the mapped event type and bindings are distributed to other processes which have the same event map-
ping.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[JBoss JIRA] Created: (SEAMJMS-4) Event Mapping Observer Method Interfaces - Ingress
by Jordan Ganoff (JIRA)
Event Mapping Observer Method Interfaces - Ingress
--------------------------------------------------
Key: SEAMJMS-4
URL: https://jira.jboss.org/browse/SEAMJMS-4
Project: Seam JMS
Issue Type: Feature Request
Components: Event Bridging
Reporter: Jordan Ganoff
Priority: Blocker
Implement the ingress routing (receive JMS messages from a destination should produce CDI events) as per the spec.
>From JSR-299-20090521.pdf:
10.7. JMS event mappings
An event type may be mapped to JMS topic.
An event mapping is a special kind of observer method that is declared by an interface, for example:
interface EventMappings {
void mapLoggedInEvent(@Observes LoggedInEvent event, @Events Topic eventTopic);
}
Where the parameter of type Topic resolves to the following message destination:
@Resource(name="java:global/env/jms/Events")
@Produces @Events Topic eventTopic;
The event parameter specifies the mapped event type and bindings. Every message destination representing a topic that
any injected parameter resolves to is a mapped topic.
An event mapping may be specified as a member of any interface.
All observers of mapped event types must be asynchronous observer methods. If an observer for a mapped event type is
not an asynchronous observer method, the container automatically detects the problem and treats it as a deployment prob-
lem, as defined in Section 12.4, "Problems detected automatically by the container".
For every event mapping, the container must:
• send a message containing the serialized event and its event bindings to every mapped topic whenever an event with
the mapped event type and bindings is fired, and
• monitor every mapped topic for messages containing events of that mapped event type and bindings and notify all loc-
al observers whenever a message containing an event is received.
Thus, events with the mapped event type and bindings are distributed to other processes which have the same event map-
ping.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[JBoss JIRA] Created: (SEAMREST-34) seam-tasks example not working properly in Glassfish
by Martin Gencur (JIRA)
seam-tasks example not working properly in Glassfish
----------------------------------------------------
Key: SEAMREST-34
URL: https://issues.jboss.org/browse/SEAMREST-34
Project: Seam REST
Issue Type: Bug
Affects Versions: 3.0.0.CR1
Reporter: Martin Gencur
Fix For: 3.0.0.Final
Using "mvn clean package -Pglassfish" it is NOT possible to deploy the resulting seam-tasks.war into the running Glassfish
Error log:
[#|2011-02-28T14:55:06.182+0100|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=63;_ThreadName=Thread-1;|Exception while invoking class com.sun.enterprise.web.WebApplication start method
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001324 Argument bean must not be null
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:130)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:143)
at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:406)
at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:100)
at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:76)
at org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
at javax.faces.component.UICommand.broadcast(UICommand.java:300)
at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:223)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[JBoss JIRA] Created: (SEAMVALIDATE-4) Helloworld example throwing "java.lang.LinkageError: loader constraint violation" when deployed into JBossAS 6
by Martin Gencur (JIRA)
Helloworld example throwing "java.lang.LinkageError: loader constraint violation" when deployed into JBossAS 6
--------------------------------------------------------------------------------------------------------------
Key: SEAMVALIDATE-4
URL: https://issues.jboss.org/browse/SEAMVALIDATE-4
Project: Seam Validation
Issue Type: Bug
Affects Versions: 3.0.0.CR1
Reporter: Martin Gencur
Assignee: Martin Gencur
Fix For: 3.0.0.Final
The problem is including of slf4j libraries into the resulting war. I used the "jee" maven profile.
The solution here is to mark the slf4j dependency as "provided" in the jee profile:
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
The Error Stack Trace:
13:21:15,211 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/validation-helloworld].[Seam Validation Example Servlet]] Servlet.service() for servlet Seam Validation Example Servlet threw exception: java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:280) [:1.5.6]
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248) [:1.5.6]
at org.hibernate.validator.util.LoggerFactory.make(LoggerFactory.java:29) [:4.1.0.Final]
at org.hibernate.validator.util.Version.<clinit>(Version.java:24) [:4.1.0.Final]
at org.hibernate.validator.engine.ConfigurationImpl.<clinit>(ConfigurationImpl.java:58) [:4.1.0.Final]
at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:42) [:4.0.2.GA]
at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:269) [:6.0.0.Final]
at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111) [:6.0.0.Final]
at org.jboss.seam.validation.ValidationExtension$1.create(ValidationExtension.java:170) [:]
at org.jboss.seam.validation.ValidationExtension$1.create(ValidationExtension.java:86) [:]
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:121) [:6.0.0.Final]
at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99) [:6.0.0.Final]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:124) [:6.0.0.Final]
at org.jboss.weld.proxies.org$jboss$weld$serialization$ContextualStoreImpl2_$$_WeldClientProxy.getValidator(org$jboss$weld$serialization$ContextualStoreImpl2_$$_WeldClientProxy.java)
at org.jboss.seam.validation.ValidationExtension$2.create(ValidationExtension.java:285) [:]
at org.jboss.seam.validation.ValidationExtension$2.create(ValidationExtension.java:198) [:]
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:121) [:6.0.0.Final]
at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99) [:6.0.0.Final]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:124) [:6.0.0.Final]
at org.jboss.weld.proxies.org$jboss$weld$serialization$ContextualStoreImpl1_$$_WeldClientProxy.unwrap(org$jboss$weld$serialization$ContextualStoreImpl1_$$_WeldClientProxy.java)
at org.jboss.seam.validation.ValidationInterceptor.validateMethodInvocation(ValidationInterceptor.java:48) [:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_21]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_21]
at org.jboss.interceptor.proxy.InterceptorInvocation$InterceptorMethodInvocation.invoke(InterceptorInvocation.java:72) [:2.0.0.CR1]
at org.jboss.interceptor.proxy.SimpleInterceptionChain.invokeNextInterceptor(SimpleInterceptionChain.java:82) [:2.0.0.CR1]
at org.jboss.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:133) [:2.0.0.CR1]
at org.jboss.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:112) [:2.0.0.CR1]
at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:66) [:6.0.0.Final]
at org.jboss.seam.validation.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$mgencur$Java$jboss6$jboss6final$jboss-6$0$0$Final$server$default$deploy$validation-helloworld$war"-ManagedBean-class_org$jboss$seam$validation$HelloWorldService_$$_WeldSubclass.sayHello(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$mgencur$Java$jboss6$jboss6final$jboss-6$0$0$Final$server$default$deploy$validation-helloworld$war"-ManagedBean-class_org$jboss$seam$validation$HelloWorldService_$$_WeldSubclass.java)
at org.jboss.seam.validation.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$mgencur$Java$jboss6$jboss6final$jboss-6$0$0$Final$server$default$deploy$validation-helloworld$war"-ManagedBean-class_org$jboss$seam$validation$HelloWorldService_$$_WeldClientProxy.sayHello(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$mgencur$Java$jboss6$jboss6final$jboss-6$0$0$Final$server$default$deploy$validation-helloworld$war"-ManagedBean-class_org$jboss$seam$validation$HelloWorldService_$$_WeldClientProxy.java)
at org.jboss.seam.validation.HelloWorldServlet.doGet(HelloWorldServlet.java:47) [:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month