[JBoss JIRA] Updated: (WELDINT-3) Support reporting wrapping exception to TCK
by Pete Muir (JIRA)
[ https://jira.jboss.org/jira/browse/WELDINT-3?page=com.atlassian.jira.plug... ]
Pete Muir updated WELDINT-3:
----------------------------
Fix Version/s: (was: 6.0.0.Beta7)
> Support reporting wrapping exception to TCK
> -------------------------------------------
>
> Key: WELDINT-3
> URL: https://jira.jboss.org/jira/browse/WELDINT-3
> Project: Weld Integration
> Issue Type: Bug
> Reporter: Pete Muir
>
> org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.addDefinitionError.AddDefinitionErrorTest.testObserverDefinitionErrorTreatedAsDefinitionError()
> org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.addDeploymentProblem.AddDeploymentProblemTest.testObserverDeploymentProblemTreatedAsDeploymentError()
> org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.beanDiscoveryMethodThrowsException.BeforeBeanDiscoveryThrowsExceptionTest.testThrowsException()
> org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.exceptionInAfterBeanDiscoveryObserver.AfterBeanDiscoveryObserverExecutionFailureTest.testObserverFailureTreatedAsDefinitionError()
> org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.exceptionInAfterBeanValidationObserver.AfterDeploymentValidationObserverExecutionFailureTest.testObserverFailureTreatedAsDeploymentError()
> org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.passivatingScope.AddingPassivatingScopeTest.testAddingScopeType()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 3 months
[JBoss JIRA] Created: (WELD-419) Producers defined on Interceptors and Decorators not detected as definition errors
by Jozef Hartinger (JIRA)
Producers defined on Interceptors and Decorators not detected as definition errors
----------------------------------------------------------------------------------
Key: WELD-419
URL: https://jira.jboss.org/jira/browse/WELD-419
Project: Weld
Issue Type: Bug
Components: Interceptors and Decorators, Producers (Methods, Fields and Disposers)
Affects Versions: 1.0.1.CR2
Reporter: Jozef Hartinger
Fix For: 1.0.1.GA
Interceptors and decorators may not declare producer methods. If an interceptor or decorator has a method annotated @Produces, the container automatically detects the problem and treats it as a definition error.
org.jboss.jsr299.tck.tests.implementation.producer.field.definition.broken.interceptor.ProducerFieldOnInterceptorTest
org.jboss.jsr299.tck.tests.implementation.producer.field.definition.broken.decorator.ProducerFieldOnDecoratorTest
org.jboss.jsr299.tck.tests.implementation.producer.method.broken.decorator.ProducerMethodOnDecoratorTest
org.jboss.jsr299.tck.tests.implementation.producer.method.broken.interceptor.ProducerMethodOnInterceptorTest
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 3 months
[JBoss JIRA] Updated: (WELDX-23) Support servlet injection on Jetty
by Matija Mazi (JIRA)
[ https://jira.jboss.org/jira/browse/WELDX-23?page=com.atlassian.jira.plugi... ]
Matija Mazi updated WELDX-23:
-----------------------------
Attachment: jetty-injection.patch
myapp-context.xml
I've done some work on injection into servlets and filters for Jetty 6. Here's what I've come up with so far - the patch (to be applied to weld/servlet/trunk) is attached.
This includes injection into Servlets and Filters, but not Listeners. It adds a sub-module weld-jetty-support to the weld-servlet module and changes some stuff in the weld-servlet-int module. To use it you need to:
- add weld-jetty-support.jar to JETTY_HOME/lib
- package the new weld-servlet.jar with your war/WEB-INF/lib (as normally)
- deploy your web app into Jetty
- change the attached myapp-context.xml to refer to your web app and deploy it into JETTY_HOME/contexts
Here are some open issues that remain and need some discussion.
1. Injection into Listeners. As far as I could see, this isn't yet supported even in Tomcat? I've done some work on this for Jetty 6 (not yet included in the attached patch) and I think it can be done (using javassist to add the injection code into the first lifecycle method called on the listener).
2. I don't like the fact that you need to deploy two files into Jetty, the war and the contexts/*.xml, but I don't think there's another way since the jetty example for using annotation injection does the same.
3. I haven't provided any tests for Jetty integration. There is a jboss-test-harness-tomcat but nothing similar for Jetty. Maybe I could create a jboss-test-harness-jetty and use it to create Weld-Jetty integration tests.
4. This works for Jetty 6; I haven't tried Jetty 7.
5. I didn't do for Jetty anything similar to JspInitialization (supposed to replace the el.ExpressionFactory) in tomcat-support; how is this used?
6. Servlet injection doesn't work in Tomcat 7 (https://jira.jboss.org/jira/browse/WELDX-45); I think I should be able to fix this easily now.
> Support servlet injection on Jetty
> ----------------------------------
>
> Key: WELDX-23
> URL: https://jira.jboss.org/jira/browse/WELDX-23
> Project: Weld Extensions
> Issue Type: Feature Request
> Components: Servlet Containers
> Reporter: Pete Muir
> Assignee: Matija Mazi
> Attachments: jetty-injection.patch, myapp-context.xml
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 3 months