looks like there is a problem if we declare both error and failure writers
together inside the same war. If I remove the reference to one of the
plugin from apiman.properties, it works.Should I raise a JIRA ?
apiman-gateway.writers.error=
apiman-gateway.writers.policy-failure=
17:40:40,689 ERROR [stderr] (default task-13)
java.lang.IllegalStateException: zip file closed
17:40:40,690 ERROR [stderr] (default task-13) at
java.util.zip.ZipFile.ensureOpen(ZipFile.java:669
)
17:40:40,691 ERROR [stderr] (default task-13) at
java.util.zip.ZipFile.getEntry(ZipFile.java:309)
17:40:40,691 ERROR [stderr] (default task-13) at
io.apiman.common.plugin.PluginClassLoader.findCla
ssContent(PluginClassLoader.java:202)
17:40:40,691 ERROR [stderr] (default task-13) at
io.apiman.common.plugin.PluginClassLoader.findCla
ss(PluginClassLoader.java:178)
17:40:40,692 ERROR [stderr] (default task-13) at
java.lang.ClassLoader.loadClass(ClassLoader.java:
424)
17:40:40,693 ERROR [stderr] (default task-13) at
java.lang.ClassLoader.loadClass(ClassLoader.java:
357)
17:40:40,693 ERROR [stderr] (default task-13) at
com.fasterxml.jackson.module.jaxb.JaxbAnnotationI
ntrospector.findAutoDetectVisibility(JaxbAnnotationIntrospector.java:533)
17:40:40,694 ERROR [stderr] (default task-13) at
com.fasterxml.jackson.databind.introspect.Annotat
ionIntrospectorPair.findAutoDetectVisibility(AnnotationIntrospectorPair.java:198)
17:40:40,694 ERROR [stderr] (default task-13) at
com.fasterxml.jackson.databind.introspect.POJOPro
pertiesCollector.<init>(POJOPropertiesCollector.java:126)
On Mon, Jan 23, 2017 at 4:14 PM, Eric Wittmann <eric.wittmann(a)redhat.com>
wrote:
It is absolutely possible to declare both implementations in a
single
plugin. They would simply be two classes stored in the same plugin WAR.
-Eric
On Mon, Jan 23, 2017 at 9:04 AM, Balu S <sbalu27(a)gmail.com> wrote:
> Hello Eric,
> Thanks. Is it possible to declare both Error and Failure writer
> implementations in single plugin ? It looks each need its own plugin.json.
> But I find it unnecessary as they both similar purpose and creating
> multiple plugins only makes additional deployment step.
>
> Regards
> Balu
>
> On Mon, Jan 23, 2017 at 2:52 PM, Eric Wittmann <eric.wittmann(a)redhat.com>
> wrote:
>
>> It's definitely just a documentation mistake. I'll get it corrected.
>>
>> Thanks!
>>
>> -Eric
>>
>>
>> On Mon, Jan 23, 2017 at 5:23 AM, Balu Sadhasivam <sbalu27(a)gmail.com>
>> wrote:
>>
>>> Hello,
>>> I can see in the developer guide
>>> <
http://www.apiman.io/latest/developer-guide.html> that to custom
>>> generate IPolicyErrorWriter, one can extend using below option
>>>
>>> 4.5.3.2.6. io.apiman.gateway.engine.IPolicyErrorWriter Example
>>> Configuration
>>>
>>>
apiman-gateway.writers.policy-error=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.FooPolicyErrorWriterImpl
>>>
>>>
>>> But the code base defines the error writer to be loaded from below
>>> property.
>>>
>>> GatewayConfigPropertiesERROR_WRITER_CLASS =
>>> "apiman-gateway.writers.error";
>>>
>>> Is this case of mistake in documentation ? Does there exists more than
>>> one error writer API for policy and separately for other components ?
>>>
>>>
>>> regards
>>> Balu
>>>
>>> _______________________________________________
>>> Apiman-user mailing list
>>> Apiman-user(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/apiman-user
>>>
>>>
>>
>