Hi Jorge,
As waruna mentioned this has been fixed in *trunk* with [1] and [2] for *BPS
*.
Please refer the
[3]<http://thiliniishaka.blogspot.com/2011/07/datasources-jndi-provider-port.html>for
further information.
The post off-setting (made available with [2] fixes) can
also be used with BPS in this regard.
[1] https://wso2.org/jira/browse/CARBON-10955
[2] https://wso2.org/jira/browse/CARBON-10569
[3]
http://thiliniishaka.blogspot.com/2011/07/datasources-jndi-provider-port.html
<http://thiliniishaka.blogspot.com/2011/07/datasources-jndi-provider-port.html>
Thanks
Thilini
On Thu, Aug 11, 2011 at 1:17 PM, Waruna Ranasinghe <[email protected]> wrote:
> Hi Jorge,
>
>
>
> On Thu, Aug 11, 2011 at 7:26 PM, Jorge Infante Osorio <[email protected]>wrote:
>
>> Hi all.
>>
>> If I have running BPS 2.1.0 (offset = 9) and BAM 1.3.0 (offset = 7) the
>> last
>> one in start throw $subject. I change the offset in both server without
>> any
>> result.
>>
> This is because, neither BPS nor BAM change the RMI port for datasources..
> regardless of setting the offset.
> This issue [1] is fixed in trunk for BPS.
> But for now, you have to manually change the ports in BPS.
> In BPS_HOME/repository/conf directory, open the bps.xml and update the port
> of "providerURL" then open the datasources.properties file and change the
> "synapse.datasources.providerPort" to the same port.
>
> [1] - https://wso2.org/jira/browse/CARBON-10955
>
>
> Thanks,
> Waruna
>
>>
>> When I stop the first running server I see this line in console:
>> [2011-08-11 03:15:02,692] INFO
>> {org.apache.synapse.commons.util.RMIRegistryController} - Removing the
>> RMI
>> registry bound to port : 2199
>>
>>
>>
>> The full error:
>>
>> [2011-08-11 03:08:43,551] INFO
>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL
>> :
>> https://127.0.0.1:9452/carbon/
>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent}
>> [2011-08-11 03:08:43,567] INFO
>> {org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS} -
>> Successfully registered the event broker
>> {org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS}
>> [2011-08-11 03:08:43,582] ERROR
>> {org.apache.synapse.commons.util.RMIRegistryController} - Couldn't create
>> a
>> local registry(RMI) : port 2199 already in use.
>> {org.apache.synapse.commons.util.RMIRegistryController}
>> java.rmi.server.ExportException: Port already in use: 2199; nested
>> exception
>> is:
>> java.net.BindException: Address already in use: JVM_Bind
>> at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
>> at
>> sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
>> at
>> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
>> at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
>> at
>> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
>> at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
>> at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
>> at
>> java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
>> at
>>
>> org.apache.synapse.commons.util.RMIRegistryController.createLocalRegistry(RM
>> IRegistryController.java:72)
>> at
>>
>> org.apache.synapse.commons.datasource.JNDIBasedDataSourceRepository.createJN
>> DIEnvironment(JNDIBasedDataSourceRepository.java:490)
>> at
>>
>> org.apache.synapse.commons.datasource.JNDIBasedDataSourceRepository.init(JND
>> IBasedDataSourceRepository.java:64)
>> at
>>
>> org.apache.synapse.commons.datasource.DataSourceRepositoryManager.reConfigur
>> e(DataSourceRepositoryManager.java:126)
>> at
>>
>> org.apache.synapse.commons.datasource.DataSourceInformationRepository.config
>> ure(DataSourceInformationRepository.java:58)
>> at
>>
>> org.apache.synapse.commons.datasource.factory.DataSourceInformationRepositor
>>
>> yFactory.setupDataSourceInformationRepository(DataSourceInformationRepositor
>> yFactory.java:85)
>> at
>>
>> org.apache.synapse.commons.datasource.factory.DataSourceInformationRepositor
>>
>> yFactory.createDataSourceInformationRepository(DataSourceInformationReposito
>> ryFactory.java:67)
>> at
>>
>> org.apache.synapse.commons.datasource.factory.DataSourceInformationRepositor
>>
>> yFactory.createDataSourceInformationRepository(DataSourceInformationReposito
>> ryFactory.java:44)
>> at
>>
>> org.wso2.carbon.datasource.internal.DataSourceServiceComponent.getDSFromCarb
>> onDSConfig(DataSourceServiceComponent.java:162)
>> at
>>
>> org.wso2.carbon.datasource.internal.DataSourceServiceComponent.activate(Data
>> SourceServiceComponent.java:107)
>> 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.equinox.internal.ds.model.ServiceComponent.activate(ServiceCompo
>> nent.java:230)
>> at
>>
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceC
>> omponentProp.java:140)
>> at
>>
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComp
>> onentProp.java:330)
>> at
>>
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProce
>> ss.java:560)
>> at
>>
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProc
>> ess.java:182)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:292)
>> at
>>
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:22
>> 6)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceCha
>> nged(FilteredServiceListener.java:124)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(Bun
>> dleContextImpl.java:930)
>> at
>>
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
>> java:220)
>> at
>>
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(L
>> istenerQueue.java:149)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
>> tPrivileged(ServiceRegistry.java:757)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
>> t(ServiceRegistry.java:712)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(S
>> erviceRegistrationImpl.java:129)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(Se
>> rviceRegistry.java:206)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
>> undleContextImpl.java:506)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
>> undleContextImpl.java:524)
>> at
>>
>> org.wso2.carbon.core.services.internal.CarbonServicesServiceComponent.activa
>> te(CarbonServicesServiceComponent.java:72)
>> 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.equinox.internal.ds.model.ServiceComponent.activate(ServiceCompo
>> nent.java:230)
>> at
>>
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceC
>> omponentProp.java:140)
>> at
>>
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComp
>> onentProp.java:330)
>> at
>>
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProce
>> ss.java:560)
>> at
>>
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProc
>> ess.java:182)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:292)
>> at
>>
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:22
>> 6)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceCha
>> nged(FilteredServiceListener.java:124)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(Bun
>> dleContextImpl.java:930)
>> at
>>
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
>> java:220)
>> at
>>
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(L
>> istenerQueue.java:149)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
>> tPrivileged(ServiceRegistry.java:757)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
>> t(ServiceRegistry.java:712)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(S
>> erviceRegistrationImpl.java:129)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(Se
>> rviceRegistry.java:206)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
>> undleContextImpl.java:506)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
>> undleContextImpl.java:524)
>> at
>>
>> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeIniti
>> alization(StartupFinalizerServiceComponent.java:192)
>> at
>>
>> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.activate(Star
>> tupFinalizerServiceComponent.java:89)
>> 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.equinox.internal.ds.model.ServiceComponent.activate(ServiceCompo
>> nent.java:230)
>> at
>>
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceC
>> omponentProp.java:140)
>> at
>>
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComp
>> onentProp.java:330)
>> at
>>
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProce
>> ss.java:560)
>> at
>>
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProc
>> ess.java:182)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:292)
>> at
>>
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:22
>> 6)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceCha
>> nged(FilteredServiceListener.java:124)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(Bun
>> dleContextImpl.java:930)
>> at
>>
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
>> java:220)
>> at
>>
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(L
>> istenerQueue.java:149)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
>> tPrivileged(ServiceRegistry.java:757)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEven
>> t(ServiceRegistry.java:712)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(S
>> erviceRegistrationImpl.java:129)
>> at
>>
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(Se
>> rviceRegistry.java:206)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
>> undleContextImpl.java:506)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(B
>> undleContextImpl.java:524)
>> at
>>
>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerM
>> anager.java:461)
>> at
>>
>> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServer
>> Manager.java:264)
>> at
>>
>> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2C
>> onfigItemListener.java:117)
>> at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(Bun
>> dleContextImpl.java:916)
>> at
>>
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
>> java:220)
>> at
>>
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManage
>> r.java:330)
>> Caused by: java.net.BindException: Address already in use: JVM_Bind
>> at java.net.PlainSocketImpl.socketBind(Native Method)
>> at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>> at java.net.ServerSocket.bind(ServerSocket.java:319)
>> at java.net.ServerSocket.<init>(ServerSocket.java:185)
>> at java.net.ServerSocket.<init>(ServerSocket.java:97)
>> at
>>
>> sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectS
>> ocketFactory.java:27)
>> at
>>
>> sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterS
>> ocketFactory.java:333)
>> at
>> sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
>> at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
>> ... 89 more
>>
>> 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
>>
>
>
>
> --
> -------------------------------------------------------------------------
> Waruna Ranasinghe
> Senior Software Engineer, WSO2
>
> Mobile: NZ +64 221 563026
> SL +94 724 318285
> BLOG: http://warunapw.blogspot.com
>
> www.wso2.com - "Lean . Enterprise . Middleware"
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
--
Regards
Thilini Ishaka
WSO2 Inc
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev