Oh yeah, my mistake, I've earlier mentioned to put it into to "lib", it
should be "dropins", thank you Amila for correcting.

Cheers,
Anjana.

On Fri, May 18, 2012 at 10:10 AM, Amila Maha Arachchi <[email protected]>wrote:

> Hi Jorge,
>
> Please try the following steps.
>
> 1. You need to have the Mediator, MediatorFactory and Serializer classes
> (as mentioned in the article which you have already referred)
> 2. You need the following configs
>
> org.apache.synapse.config.xml.MediatorSerializer
> org.apache.synapse.config.xml.MediatorFactory
>
> 3. You need a pom.xml similar to what has been provided by Anjana
> 4. Finally, copy the jar to repository/components/*dropins* (your bundle
> is already an OSGi bundle, therefore no need to copy it to lib, you can
> directly copy it to dropins folder)
>
> I have tried the above steps recently on WSO2 ESB 4.0.3 and was
> successful. Hope this helps.
>
> Regards,
> AmilaM.
>
>
> On Fri, May 18, 2012 at 3:59 AM, Jorge Infante Osorio <[email protected]>wrote:
>
>> Hi Anjana,****
>>
>> ** **
>>
>> *De:* Anjana Fernando [mailto:[email protected]]
>> *Enviado el:* domingo, 13 de mayo de 2012 2:02
>> *Para:* Jorge Infante Osorio
>> *CC:* Nirmal Fernando; [email protected]
>> *Asunto:* Re: [User] Issue with a mediator: Unknown mediator referenced
>> by configuration element****
>>
>> ** **
>>
>> Hi Jorge,****
>>
>> On Sun, May 13, 2012 at 7:56 AM, Jorge Infante Osorio <[email protected]>
>> wrote:****
>>
>> ** **
>>
>> I think that too,  but after a lots of tests it doesn’t work :-(  if I
>> remove the jar from [ESB]/lib I receive this error in console:****
>>
>>
>> You've to put the line "<Fragment-Host>synapse-core</Fragment-Host>" for
>> the bundle plugin in the pom.xml.
>>
>> For example,
>>
>> <plugin>
>>                 <groupId>org.apache.felix</groupId>
>>                 <artifactId>maven-bundle-plugin</artifactId>
>>                 <version>1.4.0</version>
>>                 <extensions>true</extensions>
>>                 <configuration>
>>                     <instructions>
>>
>> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
>>                         <Bundle-Name>${pom.artifactId}</Bundle-Name>
>>                         <Export-Package>
>>                             org.wso2.xxx.*
>>                                                 </Export-Package>
>>                         <Import-Package>
>>                             !javax.xml.namespace,
>>                             javax.xml.namespace;
>>                             version=0.0.0,
>>                             org.apache.commons.logging,
>>                             org.osgi.framework,
>>                             *;
>>                             resolution:=optional
>>                         </Import-Package>
>>                         <DynamicImport-Package>*</DynamicImport-Package>
>>                        * <Fragment-Host>synapse-core</Fragment-Host>*
>>                     </instructions>
>>                 </configuration>
>>             </plugin>
>>
>> This will make this bundle a fragment of synapse-core, and the Java SPI
>> based lookup will work properly, and then you should just be able to put it
>> in /repository/components/lib.****
>>
>> ** **
>>
>> My Mediator Project use this plugin in pom.xml:****
>>
>> ** **
>>
>>         <groupId>org.wso2.maven</groupId>****
>>
>>         <artifactId>maven-synapse-mediator-plugin</artifactId>****
>>
>> ** **
>>
>> I have to do the same?
>>
>> Cheers,
>> Anjana.
>>  ****
>>
>>
>> [2012-05-13 01:51:14,900] ERROR - MediatorFactoryFinder Unknown mediator
>> referenced by configuration element :
>> {http://ws.apache.org/ns/synapse}LdapEnriquecimiento
>> [2012-05-13 01:51:14,903]  WARN - SynapseXMLConfigurationFactory Proxy***
>> *
>>
>> Service configuration: MediadorLDAP cannot be built - Continue in
>> fail-safe****
>>
>> mode org.apache.synapse.SynapseException: Unknown mediator referenced by*
>> ***
>>
>> configuration element : {
>> http://ws.apache.org/ns/synapse}LdapEnriquecimiento
>> at
>>
>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFact
>> oryFinder.java:185)
>>  at
>>
>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(Abstra
>> ctListMediatorFactory.java:41)****
>>
>> If a put the jar again and restart the server it work.****
>>
>>
>>
>> 2. I have to change the way I access the OMElement that represent my
>> mediator xml. Just like in http://wso2.org/library/2936 I´m doing in the
>> wrong way.
>>
>> Thanks a lot.
>>
>> Saludos,
>> Ing. Jorge Infante Osorio.
>> J´Dpto Soluciones SOA.
>> CDAE.
>> Fac. 5.
>> UCI.
>>
>>
>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS
>> INFORMATICAS...
>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>
>> http://www.uci.cu
>> http://www.facebook.com/universidad.uci
>> http://www.flickr.com/photos/universidad_uci
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS
>> INFORMATICAS...
>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>
>> http://www.uci.cu
>> http://www.facebook.com/universidad.uci
>> http://www.flickr.com/photos/universidad_uci****
>>
>> _______________________________________________
>> User mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/user****
>>
>>
>>
>>
>> --
>> *Anjana Fernando*
>> Associate Technical Lead****
>>
>> WSO2 Inc. | http://wso2.com****
>>
>> lean . enterprise . middleware****
>>
>>   <http://www.uci.cu/>
>>
>>
>> _______________________________________________
>> User mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/user
>>
>>
>
>
> --
> *Amila Maharachchi*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
>


-- 
*Anjana Fernando*
Associate Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
_______________________________________________
User mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/user

Reply via email to