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