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.
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
_______________________________________________
User mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/user