Hi all. After do this step:
Add http://maven.wso2.org/nexus/content/groups/wso2-public/ repo. Add into project pom file the properties of wso2 carbon framework pom file. mvn compile e throw this: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure D:\DesarrolloWS\codigo_ejemplos\surcharge-stock-quote-mediator-2\src\main\ja va\org\wso2\esb\tutorial\mediators\SurchargeStockQuoteMediatorSerializer.jav a:[32,7] org.wso2.esb.tutori al.mediators.SurchargeStockQuoteMediatorSerializer is not abstract and does not override abstract method serializeSpecificMediator(org.apache.synapse.Mediator) in org.apache.synaps e.config.xml.AbstractMediatorSerializer D:\DesarrolloWS\codigo_ejemplos\surcharge-stock-quote-mediator-2\src\main\ja va\org\wso2\esb\tutorial\mediators\SurchargeStockQuoteMediatorSerializer.jav a:[35,19] serializeMediator( org.apache.axiom.om.OMElement,org.apache.synapse.Mediator) in org.wso2.esb.tutorial.mediators.SurchargeStockQuoteMediatorSerializer cannot override serializeMediator(org.apache.axi om.om.OMElement,org.apache.synapse.Mediator) in org.apache.synapse.config.xml.AbstractMediatorSerializer; overridden method is final D:\DesarrolloWS\codigo_ejemplos\surcharge-stock-quote-mediator-2\src\main\ja va\org\wso2\esb\tutorial\mediators\SurchargeStockQuoteMediatorFactory.java:[ 41,7] org.wso2.esb.tutorial. mediators.SurchargeStockQuoteMediatorFactory is not abstract and does not override abstract method createSpecificMediator(org.apache.axiom.om.OMElement,java.util.Properties) in org .apache.synapse.config.xml.AbstractMediatorFactory Any idea? 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: sábado, 26 de noviembre de 2011 0:19 Para: [email protected] Asunto: Re: [Carbon-dev] Writing a Mediator in WSO2 ESB article Use Synapse 2.1.0-wso2v4 and point to WSO2 Nexus repo at http://maven.wso2.org/nexus/content/groups/wso2-public/. Thanks, Hiranya On Sat, Nov 26, 2011 at 3:16 AM, Jorge Infante Osorio <[email protected]> wrote: Thanks Hiranya. I try to mvn compile this Project but with a lot of missing artifacts [1] around 23. Anyone can send me an working POM file with recent versions for this project? I use this external repositories: http://people.apache.org/repo/m2-incubating-repository http://dist.wso2.org/maven2 http://repo1.maven.org/maven2 http://download.java.net/maven/2/ And I use Archiva as the repository management tool. [1] 6) JLex:JLex:jar:0.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=JLex -DartifactId=JLex -Dversion=0.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=JLex -DartifactId=JLex -Dversion=0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.wso2.esb.tutorial.mediators:surcharge-stock-quote-mediator:jar:SNAPSHOT 2) org.apache.synapse:synapse-core:jar:1.2 3) JLex:JLex:jar:0.0 7) bouncycastle:bcprov-jdk13:jar:132 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=bouncycastle -DartifactId=bcprov-jdk13 -Dversion=132 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=bouncycastle -DartifactId=bcprov-jdk13 -Dversion=132 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.wso2.esb.tutorial.mediators:surcharge-stock-quote-mediator:jar:SNAPSHOT 2) org.apache.synapse:synapse-core:jar:1.2 3) org.apache.rampart:rampart-policy:jar:1.4 4) bouncycastle:bcprov-jdk13:jar:132 8) org.opensymphony:quartz:jar:1.6.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.opensymphony -DartifactId=quartz -Dversion=1.6.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.opensymphony -DartifactId=quartz -Dversion=1.6.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.wso2.esb.tutorial.mediators:surcharge-stock-quote-mediator:jar:SNAPSHOT 2) org.apache.synapse:synapse-core:jar:1.2 3) org.opensymphony:quartz:jar:1.6.0 9) org.apache.commons:commons-vfs:jar:1.1-587797 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.commons -DartifactId=commons-vfs -Dversion=1.1-587797 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.commons -DartifactId=commons-vfs -Dversion=1.1-587797 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.wso2.esb.tutorial.mediators:surcharge-stock-quote-mediator:jar:SNAPSHOT 2) org.apache.synapse:synapse-core:jar:1.2 3) org.apache.commons:commons-vfs:jar:1.1-587797 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: jueves, 24 de noviembre de 2011 9:11 Para: [email protected] Asunto: Re: [Carbon-dev] Writing a Mediator in WSO2 ESB article Try something more recent like 2.1.0-wso2v4 Thanks, Hiranya On Thu, Nov 24, 2011 at 6:50 PM, Jorge Infante Osorio <[email protected]> wrote: 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/W riting+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 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 _______________________________________________ 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.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 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 _______________________________________________ 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 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 -- Hiranya Jayathilaka Associate Technical Lead; WSO2 Inc.; http://wso2.org E-mail: [email protected]; Mobile: +94 77 633 3491 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
