[JBoss JIRA] (WFLY-10319) NameBinding annotations on resources are ignored in subresources
by Javier Estevez Sanchez (JIRA)
Javier Estevez Sanchez created WFLY-10319:
---------------------------------------------
Summary: NameBinding annotations on resources are ignored in subresources
Key: WFLY-10319
URL: https://issues.jboss.org/browse/WFLY-10319
Project: WildFly
Issue Type: Bug
Affects Versions: 12.0.0.Final
Reporter: Javier Estevez Sanchez
Assignee: Jason Greene
The following JAX-RS resource exposes two resources via a GET operation: /demo and /demo/subresource. The first one via a sub-resource method, the latter via a sub-resource locator. Additionally, a response filter is binded to the JAX-RS resource class to modify the response. From the JAX-RS 2.0 spec, §6.5.2 Name Binding:
{quote}
Binding annotations that decorate resource classes apply to all resource methods defined in them.
{quote}
However, the binding annotation is not applying to the sub-resource locator method. This happens when the name binding annotation is on the resource class or on the sub-resource locator method. Annotating the sub-resource class or the method within works as expected, though.
Below is the code needed to reproduce this issue:
{code:java|title=The resource and subresource}
@DemoNameBinding
@Produces(MediaType.APPLICATION_JSON)
@Path("/demo")
public class DemoResource {
@GET
public String getDemoValue() {
return "A value";
}
@Path("/subresource")
public DemoSubResource getSubResource() {
return new DemoSubResource();
}
public class DemoSubResource {
@GET
public String getDemoValue() {
return "A value";
}
}
}
{code}
{code:java|title=The filter}
@Provider
@DemoNameBinding
public class SomeFilter implements ContainerResponseFilter {
@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) {
responseContext.setEntity("A filtered value");
}
}
{code}
{code:java|title=The binding}
@NameBinding
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DemoNameBinding {
}
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (DROOLS-1199) Memory leak in KieScanner
by Joni Niemi (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1199?page=com.atlassian.jira.plugi... ]
Joni Niemi commented on DROOLS-1199:
------------------------------------
> Is this issue fixed in version 6.5.0.Final?
No.
> Memory leak in KieScanner
> -------------------------
>
> Key: DROOLS-1199
> URL: https://issues.jboss.org/browse/DROOLS-1199
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.4.0.Final
> Reporter: Viacheslav Krot
> Assignee: Mario Fusco
> Fix For: 7.0.0.Beta1
>
>
> I'm not sure, but it seems there is a memory leak in KieScanner, not in scanner directly, but somewhere in plexus used internally.
> If you start KieScanner with version = LATEST, start it with interval say 1 second and sample memory with visualvm (or any other), you can watch number of instances org.eclipse.sisu.plexus.* growing over time. And they cannot be garbage collected - memory root is timer thread. This happens in drools 6.4.0, in 6.3.0 this issue was absent.
> Eventually application fails with OOM.
> As a workaround we call KieScanner#scan manually in a separate thread pool that is recreated from time to time.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-10318) Use Galleon to build WildFly full distributions
by Alexey Loubyansky (JIRA)
[ https://issues.jboss.org/browse/WFLY-10318?page=com.atlassian.jira.plugin... ]
Alexey Loubyansky updated WFLY-10318:
-------------------------------------
Summary: Use Galleon to build WildFly full distributions (was: Use Galleon to build Wild full distributions)
> Use Galleon to build WildFly full distributions
> -----------------------------------------------
>
> Key: WFLY-10318
> URL: https://issues.jboss.org/browse/WFLY-10318
> Project: WildFly
> Issue Type: Task
> Components: Server
> Reporter: Alexey Loubyansky
> Assignee: Alexey Loubyansky
>
> Switch from the current feature-pack-based provisioning to Galleon and WildFly Galleon plugins.
> Create galleon feature packs as Maven artifacts and use them to produce the thin and fat servlet, full and other testsuite distributions.
> The legacy servlet and full feature-packs should still be built. They could still be used to produce the legacy builds and distributions by activating Maven profiles.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months