[Carbon-dev] Making a service call through XMPP chat message to WSO2 ESB
Hi, By following this guide i managed to integrate esb with the openfire. http://rangasiriwardena.blogspot.com/2011/01/configure-wso2-esb-with-xmpp-transport.html As the $subject indicated i tried to invoke a web service hosted on the ESB like echo through an XMPP chat message by using Pidgin. Message body is the soap envelope: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:echo="http://echo.services.core.carbon.wso2.org";> test As a result on the esb i get the following: Exception in thread "XMPPWorker-1" java.lang.StringIndexOutOfBoundsException: String index out of range: -11 at java.lang.String.substring(String.java:1937) at org.apache.axis2.transport.xmpp.util.XMPPPacketListener.createSOAPEnvelopeForRawMessage(XMPPPacketListener.java:249) at org.apache.axis2.transport.xmpp.util.XMPPPacketListener.buildSOAPEnvelope(XMPPPacketListener.java:192) at org.apache.axis2.transport.xmpp.util.XMPPPacketListener.createMessageContext(XMPPPacketListener.java:154) at org.apache.axis2.transport.xmpp.util.XMPPPacketListener.access$000(XMPPPacketListener.java:58) at org.apache.axis2.transport.xmpp.util.XMPPPacketListener$Worker.run(XMPPPacketListener.java:315) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) I can see i am sending the message in the wrong way. So how can i invoke a web service by XMPP chat message or based on the SOAP over XMPP what kind of client api can i use to send the SOAP envelope as a message body? Fatih Güçlü Akkaya Software Development Engineer ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Generic Storage Solution working on Carbon Servers
Hi all, My aim is to implement as file storage solution, which saves the files with the relation of user and tenant. For this module i want to use the Carbon servers since our other modules uses the Carbon servers for integrity. Can you give any advice what route can i take or which carbon server type can be used for extension in order to implement a file storage solution? 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 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] The setting for GC in Carbon Server
Hi, I came across this useful article about GC. http://techfeast-hiranya.blogspot.com/2010/11/taming-java-garbage-collector.html What is the default setting for GC in Carbon servers and which type of GC do you recommend in a Carbon Server(especialy GREG) in case of load of requests with high network throughput? 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 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] State replication for governance registry session
Hi, During search for answers i come across the state replication sample from here: http://docs.wso2.org/display/AS/Session+State+Replication The sample web service save a value to the org.apache.axis2.context.ServiceGroupContext and in the axis2.xml there is this section related to StateManagement. As i understand(correct me if i am wrong) since the ServiceGroupContext is included. Every updated stated in this Context is replicated to other nodes in clustering. Now in my application i am using AuthenticationAdmin and i want to share the state. However when i looked at its source there is no an implementation of a Context class mentioned in the configuration. So what should i do in the axis2.xml to make the host with AuthenticationAdmin to share its state with other nodes or is there another configuration step for this? Note: All of my greg are clustered and fronted by an esb. With my client i make web service requests to the proxy service hosted by esb which directs my messages to the greg cluster with load balancing. 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: carbon-dev-boun...@wso2.org on behalf of Güçlü Akkaya Sent: Mon 1/16/2012 14:24 To: carbon-dev@wso2.org Subject: [Carbon-dev] State replication for governance registry session Hi, In my implementation i extended the governance registry to be used as a storage server. After authentication my own WSStorage web service is invoked which takes the UserRegistry from the RootRegistry of the current session. I can externally access to the AuthenticationAdmin web service with wsdl2java generated client. This setup works fine for a standalone server. I want to make a cluster of the extended governance registry server, which share the current session upun invokation of the AuthenticationAdmin. However i could not managed to make the replication. I have enabled clustering in the servers. While the communication server always send the message "Duplicate message received from 10.1.1.214:4001(arcsp.storage.domain) {org.apache.axis2.clustering.tribes.AtMostOnceInterceptor}" . For testing the state replication i do the following: Call the AuthenticationAdmin web service of node1: Call the WSStorageService of node2: I expected that the this code snippet in the node2 would return the userregistry of node 1 session. org.wso2.carbon.registry.common.services.RegistryAbstractAdmin.getRootRegistry() 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 <>___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] IOException on the MTOM web service client side
I see. So should i synchronize the initiliazation part which calls a new instance of stub? Also the method call of the stub instance like stub.getId() should also be synchronized? Thanks >Please note that by design, Axis2 clients & stubs are not thread safe. You will have to handle the synchronization in your code. 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: carbon-dev-boun...@wso2.org on behalf of Afkham Azeez Sent: Thu 1/19/2012 07:37 To: carbon-dev@wso2.org Subject: Re: [Carbon-dev] IOException on the MTOM web service client side Please note that by design, Axis2 clients & stubs are not thread safe. You will have to handle the synchronization in your code. 2012/1/9 Güçlü Akkaya > ** > > > Hi again, > > Again for the MTOM web service load test i am facing this exception on the > client side: > > Failed to perform get operation. > {com.ardic.arcsp.update.wsclient.WSStorageServiceClient} > org.apache.axis2.AxisFault: org.apache.axiom.ext.io.StreamCopyException: > Error reading from source > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) > at > com.ardic.arcsp.carbon.registry.ws.stub.WSStorageServiceStub.fromOM(WSStorageServiceStub.java:16706) > at > com.ardic.arcsp.carbon.registry.ws.stub.WSStorageServiceStub.wSgetById(WSStorageServiceStub.java:6659) > at > com.ardic.arcsp.update.wsclient.WSStorageServiceClient.getResourceById(WSStorageServiceClient.java:171) > at > com.ardic.arcsp.update.wsclient.OTAUpdateTestServlet.downloadResource(OTAUpdateTestServlet.java:139) > at > com.ardic.arcsp.update.wsclient.OTAUpdateTestServlet.doGet(OTAUpdateTestServlet.java:91) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) > at > org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:241) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399) > at > org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396) > at > org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356) > at > org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) > Caused by: org.apache.axiom.om.OMException: > org.apache.axiom.ext.io.StreamCopyException: Error reading from source > at > org.apache.axiom.attachments.impl.PartFactory.createPart(PartFactory.java:172) > at > org.apache.axiom.attachments.Attachments.getPart(Attachments.java:705) > at > org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachments.java:623) > at > org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:350) > at > org.apache.axiom.om.impl.builder.OMAttachmentAccessorMimePartProvider.getDataHandler(OMAttachmentAccessorMimePartProvider.java:45) > at > org.apache.axiom.util.stax.xop.XOPDecodingStreamReader$DataHandlerProviderImpl.getDataHandler(XOPDecodingStreamReader.java:81) > at > org.apache.axiom.util.stax.xop.XOPDecodingStreamReader.getDataHandler(XOPDecodingStreamReader.java:472) > at > org.apache.axiom.om.impl.SwitchingWrapper.getDataHandler(SwitchingWrapper.java:1360) > at > org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement(XMLStreamReaderUtil
[Carbon-dev] State replication for governance registry session
Hi, In my implementation i extended the governance registry to be used as a storage server. After authentication my own WSStorage web service is invoked which takes the UserRegistry from the RootRegistry of the current session. I can externally access to the AuthenticationAdmin web service with wsdl2java generated client. This setup works fine for a standalone server. I want to make a cluster of the extended governance registry server, which share the current session upun invokation of the AuthenticationAdmin. However i could not managed to make the replication. I have enabled clustering in the servers. While the communication server always send the message "Duplicate message received from 10.1.1.214:4001(arcsp.storage.domain) {org.apache.axis2.clustering.tribes.AtMostOnceInterceptor}" . For testing the state replication i do the following: Call the AuthenticationAdmin web service of node1: Call the WSStorageService of node2: I expected that the this code snippet in the node2 would return the userregistry of node 1 session. org.wso2.carbon.registry.common.services.RegistryAbstractAdmin.getRootRegistry() 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 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Dynamic Load Balancing to a Cluster via ESB
As you said if clustering is turned off there is no problem. 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: carbon-dev-boun...@wso2.org on behalf of Hiranya Jayathilaka Sent: Fri 1/13/2012 18:58 To: carbon-dev@wso2.org Subject: Re: [Carbon-dev] Dynamic Load Balancing to a Cluster via ESB This is probably a bug in the WSDiscoveryRegistryExtension. IIRC it doesn't set a name on the endpoints returned. But when you enable clustering, it expects all endpoints to have unique names. Can you try with clustering turned off and see if that works? Thanks, Hiranya 2012/1/13 Güçlü Akkaya > ** > > > Hi, > > i have a web service an the wso2 as and want requests to this service to > be distributed in a stateful manner and i do not want to give the name of > the endpoints hard coded. So my only choice is load balancing. > Here is my synapse configuration: > > > > http://ws.apache.org/ns/synapse";> > > name="extensions">org.wso2.carbon.discovery.mediation.ext.WSDiscoveryRegistryExtension > > https://discovery-governance-arcsp.ardich.com:9443/services/DiscoveryProxy > > 15000 > > trace="disable"> > endpoint="wsdd://urn:uuid:5552ccce-b0e7-4aef-96ee-dcd254b31c84/https"> > > > > > key="conf:/repository/axis2/service-groups/DynamicWSStorageService/services/DynamicWSStorageService/policies/WSO2CachingPolicy"/> > > trace="disable"> > endpoint="wsdd://urn:uuid:e84bfadf-beb3-4412-b908-b8b9f6e411f1/https"> > > > > > > > > > expression="get-property('ERROR_CODE')"/> > expression="get-property('ERROR_MESSAGE')"/> > > > > > > > > > algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> > class="org.apache.synapse.core.axis2.Axis2LoadBalanceMembershipHandler"> > value="arcsp.storage.domain"/> > > > > > > > > > > > > > I can successfully save the configuration on the ESB. But when i try to > make a request to the proxy web services (DynamicAuthenticationAdmin and > DynamicWSStorage) ESB gives following error: > > TID: [] [WSO2 Stratos Internal Enterprise Service Bus] [2012-01-13 > 14:51:29,604] > ERROR {org.apache.synapse.endpoints.EndpointContext} - For proper > clustered mode operation, all endpoints should be uniquely named > {org.apache.synapse.endpoints.EndpointContext} > > > What have done wrong on the synapse configuration? > > Thanks > > > Fatih Güçlü Akkaya > > Software Development Engineer > > > > > > > > ___ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Hiranya Jayathilaka Associate Technical Lead; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com <>___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Dynamic Load Balancing to a Cluster via ESB
Hi, i have a web service an the wso2 as and want requests to this service to be distributed in a stateful manner and i do not want to give the name of the endpoints hard coded. So my only choice is load balancing. Here is my synapse configuration: http://ws.apache.org/ns/synapse";> org.wso2.carbon.discovery.mediation.ext.WSDiscoveryRegistryExtension https://discovery-governance-arcsp.ardich.com:9443/services/DiscoveryProxy 15000 I can successfully save the configuration on the ESB. But when i try to make a request to the proxy web services (DynamicAuthenticationAdmin and DynamicWSStorage) ESB gives following error: TID: [] [WSO2 Stratos Internal Enterprise Service Bus] [2012-01-13 14:51:29,604] ERROR {org.apache.synapse.endpoints.EndpointContext} - For proper clustered mode operation, all endpoints should be uniquely named {org.apache.synapse.endpoints.EndpointContext} What have done wrong on the synapse configuration? Thanks Fatih Güçlü Akkaya Software Development Engineer ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] IOException on the MTOM web service client side
) at java.io.FilterInputStream.read(FilterInputStream.java:116) at org.apache.axiom.om.util.DetachableInputStream.read(DetachableInputStream.java:147) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.PushbackInputStream.read(PushbackInputStream.java:169) at org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(BoundaryPushbackInputStream.java:114) at org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPushbackInputStream.java:248) at org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:87) at org.apache.axiom.attachments.utils.BAAOutputStream.readFrom(BAAOutputStream.java:112) ... 36 more The client side for the web service WSStorageService consists of a servlet which used WSStorageClient referenced from the org.wso2.carbon.registry.ws.client.WSRegistryServiceClient. In the get request the servlet request the resorce file from the web service and the end user can download the file. In the attachment you can find both the servlet and web service client code. This exception occurs in some cases during my load test on the web service. What is the cause of this exception? If this related to my code, what do i have to do the avoid this error in my code? Fatih Güçlü Akkaya Software Development Engineer /* * Copyright (c) WSO2 Inc. (http://www.wso2.com) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.ardic.arcsp.update.wsclient; import java.util.Map; import javax.activation.DataHandler; import org.apache.axis2.AxisFault; import org.apache.axis2.Constants; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.transport.http.HTTPConstants; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.authenticator.stub.AuthenticationAdminStub; import com.ardic.arcsp.carbon.registry.ws.stub.WSStorageServiceStub; import com.ardic.arcsp.carbon.registry.ws.stub.WSgetByIdRegistryExceptionException; import com.ardic.arcsp.carbon.registry.ws.stub.xsd.WSResource; public class WSStorageServiceClient { private static final Log log = LogFactory .getLog(WSStorageServiceClient.class); private WSStorageServiceStub storageStub; private AuthenticationAdminStub authStub; private String cookie; private String epr; public WSStorageServiceClient(String backendServerURL, String cookie) throws Exception { epr = backendServerURL + WSStorageClientConstants.WS_STORAGE_SERVICE; /* * Since user provided the cookie no need to authenticate with username * and password */ setCookie(cookie); try { storageStub = new WSStorageServiceStub(epr); ServiceClient client = storageStub._getServiceClient(); Options options = client.getOptions(); options.setManageSession(true); options.setProperty( org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); storageStub._getServiceClient() .getOptions() .setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); // Increase the time out when sending large attachments storageStub._getServiceClient().getOptions() .setTimeOutInMilliSeconds(100); } catch (Exception axisFault) { String msg = "Failed to initiate WSStorage Service client. " + axisFault.getMessage(); log.error(msg, axisFault); throw new Exception(msg, axisFault); } } public WSStorageServiceClient(String serverURL, String username, String password,ConfigurationContext configContext) throws Exception { epr = serverURL + WSStorageClientConstants.WS_STORAGE_SERVICE; try { authenticate( serverURL, username, password); storageStub = new WSStorageServiceStub( epr); //stub = new WSStorageServiceStub(epr); ServiceClient client = storageStub._getServiceClient(); Options options = client.getOptions(); options.setManageSession(true); options.setProperty( org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); storageStub._getServiceClient() .getOptions() .setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); // Increase the time out when sending large attachments storageStub._getServiceClient().getOptions()
[Carbon-dev] XMLStreamException at the request for MTOM web service
Hi, As i mentioned before i am using a MTOM web service as backend service referenced from wso2.carbon.registry.ws.api.WSRegistry. Currently i am doing same load test for getContent function. Generally the result of the requests are fine. However in some cases before entering the web service class i am getting this Exception: RROR {org.apache.axis2.transport.http.CommonsHTTPTransportSender} - {org.apache.axis2.transport.http.CommonsHTTPTransportSender} org.apache.axis2.AxisFault at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:409) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:286) at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:526) at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433) at org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:206) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:155) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:241) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399) at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: javax.xml.stream.XMLStreamException at org.apache.axiom.om.impl.MTOMXMLStreamWriter.(MTOMXMLStreamWriter.java:117) at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:191) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74) IMO at some point the load on the service causes this exception. Is there a configuration on the axis2 side or server side which can increase the size of requests the web service can accept? If i am wrong in my assumption, what can be the cause of this exception? 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 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] External Authentication API in Carbon
Thank you for the answer. As you said i managed to used this api for implementing authentication client in the non carbon servers. However in some instance when i do not use the login client for a long time. I get the following error. ERROR {org.wso2.carbon.core.services.authentication.AuthenticationAdmin} - System error while Authenticating/Authorizing User : null {org.wso2.carbon.core.services.authentication.AuthenticationAdmin}java.lang.NullPointerException at org.wso2.carbon.utils.multitenancy.MultitenantUtils.getTenantAwareUsername(MultitenantUtils.java:40) at org.wso2.carbon.utils.multitenancy.CarbonContextHolder.setUsername(CarbonContextHolder.java:506) at org.wso2.carbon.core.multitenancy.SuperTenantCarbonContext.setUsername(SuperTenantCarbonContext.java:193) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onFailedAdminLogin(CarbonAuthenticationUtil.java:52) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onFailedAdminLogin(CarbonAuthenticationUtil.java:44) at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:66) 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:206) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:155) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:241) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399) at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) However i after i tried to access one more time the login is successful and the consecutive request are also successful. When i try to make the request after i while like 10 min the error occur again. What causes this NPE ? 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: carbon-dev-boun...@wso2.org on behalf of Amila Jayasekara Sent: Wed 1/4/2012 17:18 To: carbon-dev@wso2.org Subject: Re: [Carbon-dev] External Authentication API in Carbon 2012/1/3 Güçlü Akkaya : > > > Hi, > > We want to use the user-store database of the Carbon server
[Carbon-dev] External Authentication API in Carbon
Hi, We want to use the user-store database of the Carbon servers for providing authentication to a non-carbon server. In the wso2 carbon is there an api providing authentication module for non-carbon servers, which uses user-store database schema of carbon servers? Fatih Güçlü Akkaya Software Development Engineer ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] General wso2 carbon server standalone and stratos configurations
Hi all, For our production environment consisting of wso2 servers, we are trying to determine os, jvm confgurations for carbon stanalone and stratos servers. Generally for wso2statros 1.5.2 and for carbon 3.2.2 What do you recommend: 1- JVM setting -Xms, -Xmx, MaxPermsize etc. 2- OS specific configuration (Ubuntu server 10.04) 3- Physical server specs 4- Server on Virtual Machine or native physical server: in case of VM we are using VMWare 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 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Error on closing JDBC MYSQL transactions
the copy of the org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCTransactionManager. Since i did not want to original code with log i replicated the class and bind my dataacess layer. After i google i ecounter similar exception related to misconfiguration for sharing registry, but i am not sharing registry. So this a JDBC related matter. Can you tell me why this exception is thrown and recommend me some kind of workaround solution for this. Thanks in advance for the answers 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 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Increase of RAM usage by MTOM web service
Hi, Thank you for the valuable answer. The problem was that instances of my web service increases every time i make a request. Eventhough as the time passes the GC cleans the unused instances it was still a problem. After i change the session scope of the web service to request the problem is solved. The memory goes back to normal level after each request ends. 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: carbon-dev-boun...@wso2.org on behalf of Afkham Azeez Sent: Wed 12/21/2011 15:08 To: carbon-dev@wso2.org Subject: Re: [Carbon-dev] Increase of RAM usage by MTOM web service 2011/12/21 Güçlü Akkaya > ** > > Hi all, > > I have written a web service for uploading and downloading files as MTOM > attachments.(By setting MTOM true in the configuration of the web service.) > Currently i am trying to make some load tests. However each time i use the > download function of the web service the RAM usage increases. For possible > memory leaks i was checking the host wso2 server with jconsole. *The heap > usage drops to normal after the function terminates*. > If the used memory increases while a certain task is performed, and returns to the original memory level after the task is completed, by definition, it is NOT a memory leak. > In the attachment you can find the heap histogram before the function is > used and the function used after 10 times downloading a file of 70mb. > > 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 > > > ___ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>** email: **az...@wso2.com* * cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* <>___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Memory usage increase in WSO2 GREG
Use the JMX URL shown when the server starts up. You don't have to set those values. Login to jconsole with admin/admin. Thanks i managed to monitor with jconsole after a little search. If the used memory increases while a certain task is performed, and returns to the original memory level after the task is completed, by definition, it is NOT a memory leak. Yes you are right. However in our case the memory level increases even though the task is completed. I will send some screen shots taken with the jconsole about heap usage. 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: carbon-dev-boun...@wso2.org on behalf of Afkham Azeez Sent: Wed 12/21/2011 15:07 To: carbon-dev@wso2.org Subject: Re: [Carbon-dev] Memory usage increase in WSO2 GREG 2011/12/21 Güçlü Akkaya > > > > Can you let us know the sizes of the resources that you have > uploaded/downloaded in G-Reg, and if possible a profiled view of your heap > usage? > > > I have been trying to use jconsole for profiling heap usage on the server. > However with jconsole i cannot connect by receiving connection refused > error, even though i disable security and authentication options for jmx > remote monitoring. For modification i added the following under JAVA_OPTS > section of wso2server.sh startup script like this. > > -Dcom.sun.management.jmxremote.port=8083 \ > -Dcom.sun.management.jmxremote.authenticate=false \ > -Dcom.sun.management.jmxremote.ssl=false \ > Use the JMX URL shown when the server starts up. You don't have to set those values. Login to jconsole with admin/admin. If the used memory increases while a certain task is performed, and returns to the original memory level after the task is completed, by definition, it is NOT a memory leak. > > > 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: carbon-dev-boun...@wso2.org on behalf of Senaka Fernando > Sent: Wed 12/21/2011 11:52 > To: carbon-dev@wso2.org > Subject: Re: [Carbon-dev] Memory usage increase in WSO2 GREG > > Hi Güçlü, > > Can you let us know the sizes of the resources that you have > uploaded/downloaded in G-Reg, and if possible a profiled view of your heap > usage? > > Thanks, > Senaka. > > 2011/12/21 Güçlü Akkaya > > > ** > > > > By extending the wso2 GREG i have designed a storage server with saves > the > > metadata to database and binary data to a file server with user registry > > implementation used in the WSO2 GREG. For data storage i used a backend > web > > service access the data layer of my application. Both download upload > > function works fine. However each time i make a request for either upload > > or download the RAM usage on the host server increases. For java heap > > arguments are this: -Xms1024m -Xmx8192m -XX:MaxPermSize=256m (My host has > > RAM of 8GB). I am using WSO2 GREG 4.0.0 . What can be the cause of the > > memory consumption increase? Thanks in advance > > > > 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 > > > > > > ___ > > Carbon-dev mailing list > > Carbon-dev@wso2.org > > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > -- > *Senaka Fernando* > Product Manager - WSO2 Governance Registry; > Associate Technical Lead; WSO2 Inc.; http://wso2.com* > Member; Apache Software Foundation; http://apache.org > > E-mail: senaka AT wso2.com > **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 > Linked-In: http://linkedin.com/in/senakafernando > > *Lean . Enterprise . Middleware > > > ___ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>** email: **az...@wso2.com* * cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* <>___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Memory usage increase in WSO2 GREG
Can you let us know the sizes of the resources that you have uploaded/downloaded in G-Reg, and if possible a profiled view of your heap usage? I have been trying to use jconsole for profiling heap usage on the server. However with jconsole i cannot connect by receiving connection refused error, even though i disable security and authentication options for jmx remote monitoring. For modification i added the following under JAVA_OPTS section of wso2server.sh startup script like this. -Dcom.sun.management.jmxremote.port=8083 \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false \ 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: carbon-dev-boun...@wso2.org on behalf of Senaka Fernando Sent: Wed 12/21/2011 11:52 To: carbon-dev@wso2.org Subject: Re: [Carbon-dev] Memory usage increase in WSO2 GREG Hi Güçlü, Can you let us know the sizes of the resources that you have uploaded/downloaded in G-Reg, and if possible a profiled view of your heap usage? Thanks, Senaka. 2011/12/21 Güçlü Akkaya > ** > > By extending the wso2 GREG i have designed a storage server with saves the > metadata to database and binary data to a file server with user registry > implementation used in the WSO2 GREG. For data storage i used a backend web > service access the data layer of my application. Both download upload > function works fine. However each time i make a request for either upload > or download the RAM usage on the host server increases. For java heap > arguments are this: -Xms1024m -Xmx8192m -XX:MaxPermSize=256m (My host has > RAM of 8GB). I am using WSO2 GREG 4.0.0 . What can be the cause of the > memory consumption increase? Thanks in advance > > 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 > > > ___ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware <>___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Memory usage increase in WSO2 GREG
By extending the wso2 GREG i have designed a storage server with saves the metadata to database and binary data to a file server with user registry implementation used in the WSO2 GREG. For data storage i used a backend web service access the data layer of my application. Both download upload function works fine. However each time i make a request for either upload or download the RAM usage on the host server increases. For java heap arguments are this: -Xms1024m -Xmx8192m -XX:MaxPermSize=256m (My host has RAM of 8GB). I am using WSO2 GREG 4.0.0 . What can be the cause of the memory consumption increase? Thanks in advance 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 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] ESB WS Discovery Extension does not recognize service uuid
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:hira...@wso2.com] Sent: Thu 11/24/2011 11:22 To: Güçlü Akkaya Cc: carbon-dev@wso2.org Subject: Re: [Carbon-dev] ESB WS Discovery Extension does not recognize service uuid 2011/11/24 Güçlü Akkaya > ** > > 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 " 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:hira...@wso2.com ] > Sent: Thu 11/24/2011 10:00 > To: carbon-dev@wso2.org > 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 > > > ** > > > > > 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.cons
Re: [Carbon-dev] ESB WS Discovery Extension does not recognize service uuid
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: carbon-dev@wso2.org 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: carbon-dev-boun...@wso2.org on behalf of Hiranya Jayathilaka Sent: Tue 11/22/2011 16:54 To: carbon-dev@wso2.org 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 > ** > > 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: > > " > http://ws.apache.org/ns/synapse";> > > name="extensions">org.wso2.carbon.discovery.mediation.ext.WSDiscoveryRegistryExtension > > https://discovery-governance-arcsp.ardich.com:9443/services/DiscoveryProxy > > 15000 > > trace="disable"> > endpoint="wsdd://urn:uuid:65013b0a-1858-48d3-9a31-c5938a7b589a/https"> > > > > > > http://ws.arcsp.ardic.com/storage > > > trace="disable"> > endpoint="wsdd://urn:uuid:651e0822-24d8-4e07
[Carbon-dev] ESB WS Discovery Extension does not recognize service uuid
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: " http://ws.apache.org/ns/synapse";> org.wso2.carbon.discovery.mediation.ext.WSDiscoveryRegistryExtension https://discovery-governance-arcsp.ardich.com:9443/services/DiscoveryProxy 15000 http://ws.arcsp.ardic.com/storage http://ws.arcsp.ardic.com/auth https://manager-storage-arcsp.ardich.com:9443/services/WSStorageService"/> true https://manager-storage-arcsp.ardich.com:9443/services/AuthenticationAdmin"/> http://public.ims.traderpauls.com/sales/pricing http://localhost:9000.*";> " 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 Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] WS Discovery for the Service Stubs
Hi, I have deployed a Governance Registry server and made its web services discoverable with the use of a Discovery Greg and ESB Proxy just as described here http://charithaka.blogspot.com/2010/04/ws-discovery-with-wso2-carbon.html Now 3 web services on the Governance Registry are discoverable, however i want also the WS Discovery to discover the service stub on the Greg. For instance i want to use WSRegistryService in the org.wso2.carbon.registry.ws.stub and AuthenticationAdmin in org.wso2.carbon.authenticator.stub. How can i make these web services discoverable? 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 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev