While debugging the server WSDiscoveryRegistryExtension only init method is invoked. During sending a web service request lookup method is never invoked. Due to this it never tries to match uuid with the address. What can cause this problem? I installed the feature over and over again, for different versions of esb (4.0.0 , 4.0.2 and stratos 1.5.2) from the wso2 repo.
Fatih Güçlü Akkaya Software Development Engineer ARDIC ARGE BILGI VE TEKNOLOJI ÇÖZÜMLERI APPLIED RESEARCH DEVELOPMENT INNOVATION CENTER Tel: + 90 262 642 42 52 GSM: + 90 554 542 48 50 -----Original Message----- From: Hiranya Jayathilaka [mailto:[email protected]] Sent: Thu 11/24/2011 11:22 To: Güçlü Akkaya Cc: [email protected] Subject: Re: [Carbon-dev] ESB WS Discovery Extension does not recognize service uuid 2011/11/24 Güçlü Akkaya <[email protected]> > ** > > This problem appears for all the services with dynamic proxy > configuration. As you suggested i tried to use tcpmon but i cannot trace > the message. Is there something i have done wrong in the configuration? > It works in my local setup. The sample described in the article was tested on the same setup. It uses ESB 4.0.0 with the mediation extension kit installed through the Carbon feature manager. If you're not seeing anything on TCPMon, then chances are resolve operation is not invoked by the plugin for some reason. Your best bet is to do a remote debug. You can start the ESB with the "--debug <port>" flag and then do a remote debug using Eclipse or Idea. > > > > > Fatih Güçlü Akkaya > > Software Development Engineer > > > > > > > ARDIC ARGE BILGI VE TEKNOLOJI ÇÖZÜMLERI > > APPLIED RESEARCH DEVELOPMENT INNOVATION CENTER > > Tel: + 90 262 642 42 52 > > GSM: + 90 554 542 48 50 > > > > -----Original Message----- > From: Hiranya Jayathilaka [mailto:[email protected] <[email protected]>] > Sent: Thu 11/24/2011 10:00 > To: [email protected] > Cc: Güçlü Akkaya > Subject: Re: [Carbon-dev] ESB WS Discovery Extension does not recognize > service uuid > > You are already able to discover the service by executing a probe. That's > why it shows up on the UI. But for some reason the resolve doesn't seem to > be working. Does this happen for other services as well, or is it specific > to the AuthenticationAdmin service? > > You can try doing a remote debug on the WSDiscoveryRegistryExtension class > and see what happens. Or better yet try executing a direct WS-Discovery > resolve on the the discovery proxy service. You can write a simple Java > program to do this. Another way to trace the activities is to use TCPMon > between ESB and the discovery proxy. You can change the discoveryProxy > parameter in the ESB registry config to send the discovery control messages > through TCPMon. > > Thanks, > Hiranya > > 2011/11/24 Güçlü Akkaya <[email protected]> > > > ** > > > > > When i start the esb server with osgi console i discoverd > > org.wso2.carbon.discovery.mediation.ext bundle state is resolved. > > When i try to start this bundle i get the following exception: > > > > org.osgi.framework.BundleException: The activator > > org.wso2.carbon.discovery.activator.DiscoveryActivator for bundle > > org.wso2.carbon.discovery.mediation.ext is invalid > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157) > > at > > > org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:750) > > at > > > org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224) > > at java.lang.Thread.run(Thread.java:662) > > Caused by: java.lang.ClassNotFoundException: > > org.wso2.carbon.discovery.activator.DiscoveryActivator > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489) > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405) > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393) > > at > > > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:321) > > at > > > org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231) > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150) > > ... 14 more > > Nested Exception: > > java.lang.ClassNotFoundException: > > org.wso2.carbon.discovery.activator.DiscoveryActivator > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489) > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405) > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393) > > at > > > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:321) > > at > > > org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231) > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150) > > at > > > org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:750) > > at > > > org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224) > > at java.lang.Thread.run(Thread.java:662) > > Nested Exception: > > java.lang.ClassNotFoundException: > > org.wso2.carbon.discovery.activator.DiscoveryActivator > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489) > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405) > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393) > > at > > > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > at > > > org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:321) > > at > > > org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231) > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150) > > at > > > org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:750) > > at > > > org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) > > at > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288) > > at > > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224) > > at java.lang.Thread.run(Thread.java:662) > > > > I looked for this activator and i my build i could not find it. Maybe > this > > is related to my problem in the $subject > > > > > > > > Fatih Güçlü Akkaya > > > > Software Development Engineer > > > > > > > > > > > > > > ARDIC ARGE BILGI VE TEKNOLOJI ÇÖZÜMLERI > > > > APPLIED RESEARCH DEVELOPMENT INNOVATION CENTER > > > > Tel: + 90 262 642 42 52 > > > > GSM: + 90 554 542 48 50 > > > > > > > > -----Original Message----- > > From: Güçlü Akkaya > > Sent: Wed 11/23/2011 08:23 > > To: [email protected] > > Subject: RE: [Carbon-dev] ESB WS Discovery Extension does not recognize > > service uuid > > > > > > Hi > > > > In order to make AutenhenticationService discoverable i made changes in > > the corresponding services.xml. In the atttachment you can find both the > > services.xml configuration file and the screenshot from the ESB WS > > Discovery GUI. > > > > Thanks > > > > Fatih Güçlü Akkaya > > > > Software Development Engineer > > > > > > > > > > > > > > ARDIC ARGE BILGI VE TEKNOLOJI ÇÖZÜMLERI > > > > APPLIED RESEARCH DEVELOPMENT INNOVATION CENTER > > > > Tel: + 90 262 642 42 52 > > > > GSM: + 90 554 542 48 50 > > > > > > > > -----Original Message----- > > From: [email protected] on behalf of Hiranya Jayathilaka > > Sent: Tue 11/22/2011 16:54 > > To: [email protected] > > Subject: Re: [Carbon-dev] ESB WS Discovery Extension does not recognize > > service uuid > > > > AuthenticationAdmin is a hidden admin service and they are not > > discoverable. How did you manage to get it to show up in the WS-Discovery > > UI? Can you please send a screenshot which shows the service and the > > endpoints? > > > > Thanks, > > Hiranya > > > > 2011/11/22 Güçlü Akkaya <[email protected]> > > > > > ** > > > > > > Hi, > > > > > > I have posted this to the ESB forum.But just to be safe i will post it > > > here too. > > > > > > Following this guide i managed to make my services discoverable. > > > > > > > > > > > > http://wso2.org/library/articles/2011/08/rediscover-soa-wso2-carbon-wsdiscovery#wsdsupport > > > > > > One of my Services was AuthenticationAdmin, which originaly is a web > > > service from the carbon core. I wanted to use this service with a proxy > > > service DynamicAuthenticationAdmin to send authentication request. > > > > > > So far AuthenticationAdmin has an uuid and epr on WS Discovery GUI and > i > > > added the WS-Discovery Mediation Extensions plug-in. Here is the > source > > > for the proxy services configuration: > > > > > > "<?xml version="1.0" encoding="UTF-8"?> > > > <definitions xmlns="http://ws.apache.org/ns/synapse"> > > > <registry > provider="org.wso2.carbon.mediation.registry.WSO2Registry"> > > > <parameter > > > > > > name="extensions">org.wso2.carbon.discovery.mediation.ext.WSDiscoveryRegistryExtension</parameter> > > > <parameter name="discoveryProxy"> > > > > > > https://discovery-governance-arcsp.ardich.com:9443/services/DiscoveryProxy > > > </parameter> > > > <parameter name="cachableDuration">15000</parameter> > > > </registry> > > > <proxy name="DynamicWSStorageService" startOnLoad="true" > > > trace="disable"> > > > <target > > > endpoint="wsdd://urn:uuid:65013b0a-1858-48d3-9a31-c5938a7b589a/https"> > > > <outSequence> > > > <send/> > > > </outSequence> > > > </target> > > > <parameter name="wsDiscoveryParams"> > > > <Scopes>http://ws.arcsp.ardic.com/storage</Scopes> > > > </parameter> > > > </proxy> > > > <proxy name="DynamicAuthenticationAdmin" startOnLoad="true" > > > trace="disable"> > > > <target > > > endpoint="wsdd://urn:uuid:651e0822-24d8-4e07-90d8-dfbd5e78b53a/https"> > > > <outSequence> > > > <send/> > > > </outSequence> > > > </target> > > > <publishWSDL key="local:AuthenticationAdmin.wsdl"/> > > > <parameter name="wsDiscoveryParams"> > > > <Scopes>http://ws.arcsp.ardic.com/auth</Scopes> > > > </parameter> > > > </proxy> > > > <proxy name="WSStorageProxy" transports="https" startOnLoad="true" > > > trace="disable"> > > > <target> > > > <endpoint> > > > <address uri=" > > > > https://manager-storage-arcsp.ardich.com:9443/services/WSStorageService > > "/> > > > </endpoint> > > > <outSequence> > > > <send/> > > > </outSequence> > > > </target> > > > <policy > > > > > > key="conf:/repository/axis2/service-groups/WSStorageProxy/services/WSStorageProxy/policies/UTOverTransport"/> > > > <parameter name="enableMTOM">true</parameter> > > > <enableSec/> > > > </proxy> > > > <proxy name="AuthenticationAdminProxy" startOnLoad="true" > > > trace="disable"> > > > <target> > > > <endpoint> > > > <address uri=" > > > > > > https://manager-storage-arcsp.ardich.com:9443/services/AuthenticationAdmin > > > "/> > > > </endpoint> > > > <outSequence> > > > <send/> > > > </outSequence> > > > </target> > > > <parameter name="wsDiscoveryParams"> > > > <Scopes>http://public.ims.traderpauls.com/sales/pricing > > > </Scopes> > > > </parameter> > > > </proxy> > > > <sequence name="fault"> > > > <log level="full"> > > > <property name="MESSAGE" value="Executing default 'fault' > > > sequence"/> > > > <property name="ERROR_CODE" > > > expression="get-property('ERROR_CODE')"/> > > > <property name="ERROR_MESSAGE" > > > expression="get-property('ERROR_MESSAGE')"/> > > > </log> > > > <drop/> > > > </sequence> > > > <sequence name="main"> > > > <in> > > > <log level="full"/> > > > <filter source="get-property('To')" regex=" > > > http://localhost:9000.*"> > > > <send/> > > > </filter> > > > </in> > > > <out> > > > <send/> > > > </out> > > > </sequence> > > > </definitions> " > > > > > > > > > When i try to access to the AuthenticationAdmin with the > > > DynamicAuthenticationAdmin i receive following error: > > > > > > "TID: [] [WSO2 Stratos Internal Enterprise Service Bus] [2011-11-21 > > > 16:38:57,903] ERROR > > > {org.apache.synapse.core.axis2.ProxyServiceMessageReceiver} - Unable to > > > find the endpoint specified : > > > wsdd://urn:uuid:651e0822-24d8-4e07-90d8-dfbd5e78b53a/https > > > {org.apache.synapse.core.axis2.ProxyServiceMessageReceiver}" > > > > > > As i understand the plugin does not work properly or it cannot > recognized > > > the uuid for the AuthenticationService,which needs to be mapped with > the > > > EPR. > > > > > > > > > > > > > > > > > > > > > ARDIC ARGE BILGI VE TEKNOLOJI ÇÖZÜMLERI > > > > > > APPLIED RESEARCH DEVELOPMENT INNOVATION CENTER > > > > > > Tel: + 90 262 642 42 52 > > > > > > GSM: + 90 554 542 48 50 > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > -- > 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 > > -- 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
