Hi Federico, Yeah sure open a public jira mentioning ESB and DSS feature versions you used.
Thanks, On 13 January 2017 at 03:21, Federico Valeri <[email protected]> wrote: > OK it works. > Should I open a bug report? > > 2017-01-12 18:00 GMT+01:00 Rajith Vitharana <[email protected]>: > >> jackson-databind_2.6.1.wso2v1 jar file will be in <ESB_HOME>/repository/ >> components/plugins folder, not lib folder, sorry about the mistake. >> >> Thanks, >> >> On 12 January 2017 at 10:56, Federico Valeri <[email protected]> >> wrote: >> >>> I don't have this JAR in <ESB_HOME>/repository/components/lib. >>> Anyway I can confirm that after installing "Data Service Hosting" >>> feature I have two version of the databind bundle. >>> I need the DSS component for the test but I would prefer to have one >>> single runtime. >>> >>> Still the same error.. >>> >>> 2017-01-12 16:37 GMT+01:00 Rajith Vitharana <[email protected]>: >>> >>>> Hi Federico, >>>> >>>> >>>> >>>> On 12 January 2017 at 09:25, Federico Valeri <[email protected]> >>>> wrote: >>>> >>>>> Hi, I think that I'm missing the import on jackson-databind with the >>>>> same version of jackson-core (I have two versions of the databind): >>>>> >>>>> - jackson-core_2.6.1.wso2v1 [92] >>>>> - jackson-databind_2.6.1.wso2v3 [93] >>>>> - jackson-databind_2.6.1.wso2v1 [94] <-- can't see the filter package >>>>> here >>>>> >>>>> Probably this is due to the DSS feature setup >>>>> Can I install the DSS feature on top of the ESB? >>>>> >>>> Yes you can, but sometimes edge cases like this can happen, I checked >>>> in the latest DSS as well, even in that, DSS uses jackson-databind version >>>> 2.6.1.wso2v1 >>>> So for the time being, can you remove that >>>> jar(jackson-databind_2.6.1.wso2v1) from your >>>> <ESB_HOME>/repository/components/lib folder and try this? >>>> >>>> Note that above suggestion is not recommended if you are using this for >>>> production like situation, because it may affect new fixes etc. >>>> >>>> Thanks, >>>> >>>>> >>>>> -- >>>>> Full output: >>>>> >>>>> jackson-core_2.6.1.wso2v1 [92] >>>>> Id=92, Status=ACTIVE Data Root=D:\programs\wso2\wso2esb- >>>>> 5.0.0\repository\components\default\configuration\org.eclips >>>>> e.osgi\bundles\92\data >>>>> "No registered services." >>>>> No services in use. >>>>> Exported packages >>>>> com.fasterxml.jackson.core; version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.core.base; version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.core.filter; version="2.6.1.wso2v1"[exporte >>>>> d] >>>>> com.fasterxml.jackson.core.format; version="2.6.1.wso2v1"[exporte >>>>> d] >>>>> com.fasterxml.jackson.core.io; version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.core.json; version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.core.sym; version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.core.type; version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.core.util; version="2.6.1.wso2v1"[exported] >>>>> No imported packages >>>>> No fragment bundles >>>>> Named class space >>>>> jackson-core; bundle-version="2.6.1.wso2v1"[provided] >>>>> No required bundles >>>>> >>>>> jackson-databind_2.6.1.wso2v3 [93] >>>>> Id=93, Status=ACTIVE Data Root=D:\programs\wso2\wso2esb- >>>>> 5.0.0\repository\components\default\configuration\org.eclips >>>>> e.osgi\bundles\93\data >>>>> "No registered services." >>>>> No services in use. >>>>> Exported packages >>>>> com.fasterxml.jackson.databind; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.annotation; >>>>> version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.cfg; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.deser; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.deser.impl; >>>>> version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.deser.std; >>>>> version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.exc; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.ext; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.introspect; >>>>> version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.jsonFormatVisitors; >>>>> version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.jsonschema; >>>>> version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.jsontype; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.jsontype.impl; >>>>> version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.module; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.node; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.ser; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.ser.impl; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.ser.std; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.type; version="2.6.1"[exported] >>>>> com.fasterxml.jackson.databind.util; version="2.6.1"[exported] >>>>> Imported packages >>>>> javax.xml.datatype; >>>>> version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> javax.xml.parsers; >>>>> version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> org.w3c.dom.bootstrap; >>>>> version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> org.w3c.dom.ls; version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> com.fasterxml.jackson.core.sym; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> org.w3c.dom; version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> javax.xml.namespace; >>>>> version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> com.fasterxml.jackson.core.filter; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.util; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.type; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.json; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.io; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.format; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.base; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.annotation; >>>>> version="2.6.1.wso2v1"<jackson-annotations_2.6.1.wso2v1 >>>>> [91]> >>>>> No fragment bundles >>>>> Named class space >>>>> jackson-databind; bundle-version="2.6.1.wso2v3"[provided] >>>>> No required bundles >>>>> >>>>> jackson-databind_2.6.1.wso2v1 [94] >>>>> Id=94, Status=ACTIVE Data Root=D:\programs\wso2\wso2esb- >>>>> 5.0.0\repository\components\default\configuration\org.eclips >>>>> e.osgi\bundles\94\data >>>>> "No registered services." >>>>> No services in use. >>>>> Exported packages >>>>> com.fasterxml.jackson.databind; version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.annotation; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.cfg; version="2.6.1.wso2v1"[exporte >>>>> d] >>>>> com.fasterxml.jackson.databind.deser; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.deser.impl; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.deser.std; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.exc; version="2.6.1.wso2v1"[exporte >>>>> d] >>>>> com.fasterxml.jackson.databind.ext; version="2.6.1.wso2v1"[exporte >>>>> d] >>>>> com.fasterxml.jackson.databind.introspect; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.jsonFormatVisitors; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.jsonschema; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.jsontype; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.jsontype.impl; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.module; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.node; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.ser; version="2.6.1.wso2v1"[exporte >>>>> d] >>>>> com.fasterxml.jackson.databind.ser.impl; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.ser.std; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.type; >>>>> version="2.6.1.wso2v1"[exported] >>>>> com.fasterxml.jackson.databind.util; >>>>> version="2.6.1.wso2v1"[exported] >>>>> Imported packages >>>>> javax.xml.datatype; >>>>> version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> javax.xml.parsers; >>>>> version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> org.w3c.dom.bootstrap; >>>>> version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> org.w3c.dom.ls; version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> org.w3c.dom; version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> javax.xml.namespace; >>>>> version="0.0.0"<org.eclipse.osgi_3.9.1.v20130814-1242 >>>>> [0]> >>>>> com.fasterxml.jackson.core.util; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.type; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.json; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.io; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.format; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core.base; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.core; >>>>> version="2.6.1.wso2v1"<jackson-core_2.6.1.wso2v1 >>>>> [92]> >>>>> com.fasterxml.jackson.annotation; >>>>> version="2.6.1.wso2v1"<jackson-annotations_2.6.1.wso2v1 >>>>> [91]> >>>>> No fragment bundles >>>>> Named class space >>>>> jackson-databind; bundle-version="2.6.1.wso2v1"[provided] >>>>> No required bundles >>>>> >>>>> >>>>> 2017-01-12 16:09 GMT+01:00 Rajith Vitharana <[email protected]>: >>>>> >>>>>> Hi Federico, >>>>>> >>>>>> You can see which bundle export which package in OSGI console. To do >>>>>> that follow below instructions. >>>>>> >>>>>> 1) Start the server with command "sh wso2server.sh >>>>>> -DosgiConsole=true" >>>>>> 2) After server started run the command "ss jackson-core" this will >>>>>> show the bundle Id >>>>>> 3) Then run the command "b <bundleId>" ex - b 71 >>>>>> 4) Above command will show the exported packages by that bundle. So >>>>>> you can see whether the "com.fasterxml.jackson.core.filter" package >>>>>> is correctly exported there. >>>>>> >>>>>> And further more seems you have installed DSS features in ESB, so can >>>>>> you try out the same scenario with standalone pack without any feature >>>>>> installation? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> On 12 January 2017 at 08:27, Federico Valeri <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> The same error shows up even with this: >>>>>>> >>>>>>> <validate> >>>>>>> <on-fail/> >>>>>>> </validate> >>>>>>> >>>>>>> 2017-01-12 10:27 GMT+01:00 Federico Valeri <[email protected]>: >>>>>>> >>>>>>>> Hi Rajith, the XSD is also very simple at the moment: >>>>>>>> >>>>>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>>>>> <localEntry key="RicpagInputXSD" xmlns="http://ws.apache.org/ns >>>>>>>> /synapse"> >>>>>>>> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> >>>>>>>> <xs:element name="InputParameters"> >>>>>>>> <xs:complexType> >>>>>>>> <xs:sequence> >>>>>>>> <xs:element minOccurs="1" name="mittente"> >>>>>>>> <xs:simpleType> >>>>>>>> <xs:restriction base="xs:string"> >>>>>>>> <xs:minLength value="4"/> >>>>>>>> </xs:restriction> >>>>>>>> </xs:simpleType> >>>>>>>> </xs:element> >>>>>>>> </xs:sequence> >>>>>>>> </xs:complexType> >>>>>>>> </xs:element> >>>>>>>> </xs:schema> >>>>>>>> </localEntry> >>>>>>>> >>>>>>>> I have the default single node configuration, I only added "Data >>>>>>>> Service" and "Metrics Group" features. >>>>>>>> How can I check the osgi bundles that you reported? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 2017-01-11 18:53 GMT+01:00 Rajith Vitharana <[email protected]>: >>>>>>>> >>>>>>>>> Hi Federico, >>>>>>>>> >>>>>>>>> I tried the same scenario, but it works fine for me, I even >>>>>>>>> checked the osgi bundles, they are exporting and importing correct >>>>>>>>> packages >>>>>>>>> as expected(jackson-core_2.6.1.wso2v1.jar >>>>>>>>> exports com.fasterxml.jackson.core.filter;version="2.6.1.wso2v1"; >>>>>>>>> and jackson-databind_2.6.1.wso2v3.jar >>>>>>>>> imports com.fasterxml.jackson.core.filter;version="[2.6.1,2. >>>>>>>>> 6.2)";resolution:=optional) >>>>>>>>> >>>>>>>>> So I didn't faced any issues with validate mediator. So will you >>>>>>>>> be able to share more details about the Car file you are using and the >>>>>>>>> schema "RicpagInputXSD" as well? >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> >>>>>>>>> On 11 January 2017 at 10:11, Federico Valeri <[email protected] >>>>>>>>> > wrote: >>>>>>>>> >>>>>>>>>> Hi all, I'm using the latest ESB version (5.0.0) and I have a >>>>>>>>>> strange "class not found" error as soon as I deploy a CAR with a >>>>>>>>>> really >>>>>>>>>> simple Validation Mediator (basically it's a cut and paste from the >>>>>>>>>> official doc). If I remove the validate tag, the deploy complete >>>>>>>>>> successfully and it works. >>>>>>>>>> >>>>>>>>>> The error: >>>>>>>>>> >>>>>>>>>> java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/fil >>>>>>>>>> ter/TokenFilter >>>>>>>>>> Caused by: java.lang.ClassNotFoundException: >>>>>>>>>> com.fasterxml.jackson.core.filter.TokenFilter cannot be found by >>>>>>>>>> jackson-databind_2.6.1.wso2v1 >>>>>>>>>> >>>>>>>>>> The code: >>>>>>>>>> >>>>>>>>>> <validate> >>>>>>>>>> <schema key="RicpagInputXSD"/> >>>>>>>>>> <on-fail> >>>>>>>>>> <makefault version="soap11"> >>>>>>>>>> <code value="soap11Env:VersionMismatch" xmlns:soap11Env=" >>>>>>>>>> http://schemas.xmlsoap.org/soap/envelope/"/> >>>>>>>>>> <reason value="Invalid Request!"/> >>>>>>>>>> </makefault> >>>>>>>>>> <property name="RESPONSE" scope="default" type="STRING" >>>>>>>>>> value="true"/> >>>>>>>>>> <header expression="get-property('ReplyTo')" name="To" >>>>>>>>>> scope="default"/> >>>>>>>>>> </on-fail> >>>>>>>>>> </validate> >>>>>>>>>> >>>>>>>>>> What I miss? >>>>>>>>>> Tnx >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> Dev mailing list >>>>>>>>>> [email protected] >>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Rajith Vitharana >>>>>>>>> >>>>>>>>> Senior Software Engineer, >>>>>>>>> WSO2 Inc. : wso2.com >>>>>>>>> Mobile : +94715883223 >>>>>>>>> Blog : http://lankavitharana.blogspot.com/ >>>>>>>>> <http://wso2.com/signature> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Rajith Vitharana >>>>>> >>>>>> Senior Software Engineer, >>>>>> WSO2 Inc. : wso2.com >>>>>> Mobile : +94715883223 >>>>>> Blog : http://lankavitharana.blogspot.com/ >>>>>> <http://wso2.com/signature> >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Rajith Vitharana >>>> >>>> Senior Software Engineer, >>>> WSO2 Inc. : wso2.com >>>> Mobile : +94715883223 >>>> Blog : http://lankavitharana.blogspot.com/ >>>> <http://wso2.com/signature> >>>> >>> >>> >> >> >> -- >> Rajith Vitharana >> >> Senior Software Engineer, >> WSO2 Inc. : wso2.com >> Mobile : +94715883223 >> Blog : http://lankavitharana.blogspot.com/ >> <http://wso2.com/signature> >> > > -- Rajith Vitharana Senior Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
