Using the pom file in
http://docs.wso2.org/display/ESB/Writing+a+WSO2+ESB+Mediator I have this
error:

 

Missing:

----------

1)      org.apache.synapse:synapse-core:jar:1.3.0.wso2v1

 

Which is the right version for this artifact?

 

 

Saludos,

Ing. Jorge Infante Osorio.

J´Dpto Soluciones SOA.

CDAE.

Fac. 5.

UCI.

 

De: [email protected] [mailto:[email protected]] En
nombre de Sadeep Jayasumana
Enviado el: jueves, 24 de noviembre de 2011 2:36
Para: [email protected]
Asunto: Re: [Carbon-dev] Writing a Mediator in WSO2 ESB article

 

Hi,

However, there was another error in the same page.
"repository/component/mediators" should be corrected as
"repository/components/lib". Nirdesha will correct this.

Thanks,
Sadeep

On Thu, Nov 24, 2011 at 12:13 PM, Hiranya Jayathilaka <[email protected]>
wrote:

 

On Thu, Nov 24, 2011 at 12:03 PM, Samisa Abeysinghe <[email protected]> wrote:

 

On Wed, Nov 23, 2011 at 11:21 AM, Sadeep Jayasumana <[email protected]> wrote:

Hi Jorge,

On Wed, Nov 23, 2011 at 9:37 AM, Jorge Infante Osorio <[email protected]>
wrote:

Hi Hiranya, thanks.  I will try it them.

I ask because in the same article another user post this issue:

Hi Upal,
Nice article. I have taken the attached zip , created a jar of it using
maven and tried placing the jar in ESB-HOME/lib folder.


Please note that as Hiranya mentioned, JAR has to be put into
<ESB_HOME>/repository/components/lib.

 

In that case, the doc is buggy, as it mentioned ' {ESB
HOME}\repository\components\dropins" see:
http://docs.wso2.org/display/ESB/Writing+a+WSO2+ESB+Mediator

 

This is actually correct. The article does mention that jar should be an
OSGi bundle:

In this case it is necessary to make the mediator an OSGI fragment of the
synapse-core bundler. To achieve this, use the
<Fragment-Host>synapse-core</Fragment-Host>.

After you created the mediator, drop the JAR file in to the {ESB
HOME}\repository\components\dropins folder.

 

 

Please fix.

 


Thanks,
Sadeep
 

On starting ESB, I
see an exception as below
Start Level Event Dispatcher] ERROR Activator Failed to start Carbon UI
java.lang.Exception: ConfigurationContext Service is not available
at org.wso2.carbon.ui.internal.Activator.start(Activator.java:108)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleConte
xtImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
ndleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleConte
xtImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
ava:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundl
e.java:350)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.ja
va:1118)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(Sta
rtLevelManager.java:634)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLeve
lManager.java:508)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(S
tartLevelManager.java:282)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(Sta
rtLevelManager.java:468)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
java:195)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManage
r.java:297)

and this is the author´s response:

This article applies to ESB versions prior to 2.x. The current releases are
based on OSGi modular framework for Java, thus it the process is bit
different. We are on the process of documenting articles related with the
current releases of ESB.


Any way I will reproduce the steps and see.


Saludos,
Ing. Jorge Infante Osorio.
J´Dpto Soluciones SOA.
CDAE.
Fac. 5.
UCI.

De: [email protected] [mailto:[email protected]] En
nombre de Hiranya Jayathilaka
Enviado el: martes, 22 de noviembre de 2011 23:03
Para: [email protected]
Asunto: Re: [Carbon-dev] Writing a Mediator in WSO2 ESB article


Hi Jorge,

The API and the development procedure hasn't changed. So you can write a
class extending the AbstractMediator class of Synapse, compile it into a jar
file and drop it into repository/components/lib directory.

I don't think we have any recent articles on this topic.

Thanks,
Hiranya
2011/11/23 Jorge Infante Osorio <[email protected]>
Hi all.
 
I want to know if exits an update of $subject, because it was written for
ESB versions prior to 2.x.
 
Thanks,
Saludos,
Ing. Jorge Infante Osorio.
J´Dpto Soluciones SOA.
CDAE.
Fac. 5.
UCI.
 





_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




--
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
<tel:%2B94%2077%20633%203491> 
Blog: http://techfeast-hiranya.blogspot.com




Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE
ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com

_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




-- 
Sadeep Jayasumana

Software Engineer
WSO2 Inc.
Email - [email protected]
Mobile - +94 77 22 66 507 <tel:%2B94%2077%2022%2066%20507> 

_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc. 
 <http://wso2.com/> http://wso2.com
 <http://wso2.org/> http://wso2.org



_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev





 

-- 
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
<tel:%2B94%2077%20633%203491> 
Blog: http://techfeast-hiranya.blogspot.com


_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




-- 
Sadeep Jayasumana

Software Engineer
WSO2 Inc.
Email - [email protected]
Mobile - +94 77 22 66 507




Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE 
ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com

_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to