Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Load Balancing ECF Remote Services Examples Fail(Running the examples fails)
Load Balancing ECF Remote Services Examples Fail [message #1100800] Tue, 03 September 2013 15:58 Go to next message
Jerry Dowdy is currently offline Jerry Dowdy
Messages: 2
Registered: September 2013
Junior Member
When attempting to run the Load Balancing ECF Remote Services examples, I receive errors when trying to run the service server(s). I am able to start and configure ActiveMQ 5.8 appropriately.

When attempting the following:

Starting the Service Server(s)
1. In the org.eclipse.ecf.examples.loadbalancing.server project, open the product config by double clicking on the products/Data Processor Server (activemq).product file in the Eclipse package explorer or the navigator. This should open the Eclipse product configuration editor.
2. In the lower left of the Overview tab, click on the Launch an Eclipse application or the Launch an Eclipse application in Debug mode links. This should launch the data processor server. Note you can start multiple server instances, but you should have at least one running before starting the service host.

On startup, the service server should produce output to the console like this
LB Server: Data Processor Registered queue=tcp://localhost:61616/exampleQueue

I receive the following:

!SESSION 2013-09-03 11:53:36.354 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -application org.eclipse.ecf.examples.loadbalancing.server.DataProcessorServer
Command-line arguments: -application org.eclipse.ecf.examples.loadbalancing.server.DataProcessorServer -data C:\Development\WorkSpace/../runtime-DataProcessorServer(activemq).product -dev file:C:/Development/WorkSpace/.metadata/.plugins/org.eclipse.pde.core/Data Processor Server (activemq).product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.osgi 2 0 2013-09-03 11:53:37.072
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-03 11:53:37.072
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.core.runtime.compatibility.registry_3.5.200.v20130514-1256/ was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime.compatibility.registry 2 0 2013-09-03 11:53:37.072
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-03 11:53:37.072
!MESSAGE Bundle initial@reference:file:../../WorkSpace/org.eclipse.ecf.provider.jms/ was not resolved.
!SUBENTRY 2 org.eclipse.ecf.provider.jms 2 0 2013-09-03 11:53:37.072
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.1))(&(osgi.ee=JavaSE)(version=1.4)))".
!SUBENTRY 2 org.eclipse.ecf.provider.jms 2 0 2013-09-03 11:53:37.072
!MESSAGE Missing imported package javax.jms_1.1.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-03 11:53:37.072
!MESSAGE Bundle initial@reference:file:../../WorkSpace/org.eclipse.ecf.provider.jms.activemq/ was not resolved.
!SUBENTRY 2 org.eclipse.ecf.provider.jms.activemq 2 0 2013-09-03 11:53:37.072
!MESSAGE Missing imported package javax.jms_1.1.0.

!ENTRY org.eclipse.osgi 2 0 2013-09-03 11:53:37.103
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-03 11:53:37.103
!MESSAGE Bundle org.eclipse.ecf.provider.jms_1.5.0.qualifier [69] was not resolved.
!SUBENTRY 2 org.eclipse.ecf.provider.jms 2 0 2013-09-03 11:53:37.103
!MESSAGE Missing imported package javax.jms_1.1.0.
!SUBENTRY 2 org.eclipse.ecf.provider.jms 2 0 2013-09-03 11:53:37.103
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.1))(&(osgi.ee=JavaSE)(version=1.4)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-03 11:53:37.103
!MESSAGE Bundle org.eclipse.ecf.provider.jms.activemq_5.8.0.qualifier [70] was not resolved.
!SUBENTRY 2 org.eclipse.ecf.provider.jms.activemq 2 0 2013-09-03 11:53:37.103
!MESSAGE Missing required bundle org.eclipse.ecf.provider.jms_1.3.0.
!SUBENTRY 2 org.eclipse.ecf.provider.jms.activemq 2 0 2013-09-03 11:53:37.103
!MESSAGE Missing imported package javax.jms_1.1.0.
!SUBENTRY 2 org.eclipse.ecf.provider.jms.activemq 2 0 2013-09-03 11:53:37.103
!MESSAGE Missing imported package org.eclipse.ecf.provider.jms.channel_0.0.0.
!SUBENTRY 2 org.eclipse.ecf.provider.jms.activemq 2 0 2013-09-03 11:53:37.103
!MESSAGE Missing imported package org.eclipse.ecf.provider.jms.container_0.0.0.
!SUBENTRY 2 org.eclipse.ecf.provider.jms.activemq 2 0 2013-09-03 11:53:37.103
!MESSAGE Missing imported package org.eclipse.ecf.provider.jms.identity_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-03 11:53:37.103
!MESSAGE Bundle org.eclipse.ecf.ssl_1.1.0.v20130605-1748 [72] was not resolved.
!SUBENTRY 2 org.eclipse.ecf.ssl 2 0 2013-09-03 11:53:37.103
!MESSAGE Constraints from the fragment conflict with the host: Import-Package: javax.net; version="0.0.0"
!SUBENTRY 2 org.eclipse.ecf.ssl 2 0 2013-09-03 11:53:37.103
!MESSAGE Constraints from the fragment conflict with the host: Import-Package: javax.net.ssl; version="0.0.0"
!SUBENTRY 2 org.eclipse.ecf.ssl 2 0 2013-09-03 11:53:37.103
!MESSAGE Constraints from the fragment conflict with the host: Import-Package: org.eclipse.osgi.service.security; version="0.0.0"
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-03 11:53:37.103
!MESSAGE Bundle org.eclipse.core.runtime.compatibility.registry_3.5.200.v20130514-1256 [73] was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime.compatibility.registry 2 0 2013-09-03 11:53:37.103
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".

!ENTRY org.eclipse.equinox.app 4 0 2013-09-03 11:53:37.134
!MESSAGE Container type description with name=ecf.jms.activemq.tcp.lb.server not found. This may indicate that the desired provider is not available or not startable within runtime.
!STACK 0
org.eclipse.ecf.core.ContainerCreateException: Container type description with name=ecf.jms.activemq.tcp.lb.server not found. This may indicate that the desired provider is not available or not startable within runtime.
at org.eclipse.ecf.core.ContainerFactory.getDescriptionByNameWithException(ContainerFactory.java:269)
at org.eclipse.ecf.core.ContainerFactory.createContainer(ContainerFactory.java:315)
at org.eclipse.ecf.internal.examples.loadbalancing.server.DataProcessorServerApplication.start(DataProcessorServerApplication.java:53)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
at java.lang.Thread.run(Unknown Source)
Re: Load Balancing ECF Remote Services Examples Fail [message #1100990 is a reply to message #1100800] Tue, 03 September 2013 22:14 Go to previous messageGo to next message
Scott Lewis is currently offline Scott Lewis
Messages: 971
Registered: July 2009
Senior Member
Hi Jerry,

The primary reason this is not working is that you don't seem to currently have the ECF ActiveMQ provider working in your environment. This message appears to indicate this:

!MESSAGE Container type description with name=ecf.jms.activemq.tcp.lb.server not found. This may indicate that the desired provider is not available or not startable within runtime.
!STACK 0
org.eclipse.ecf.core.ContainerCreateException: Container type description with name=ecf.jms.activemq.tcp.lb.server not found. This may indicate that the desired provider is not available or not startable within runtime.

[Scott] From the messages earlier in your log, it appears that you do have the ECF ActiveMQ provider bundles present, but it seems you do not have one of their dependencies (javax.jms). Last year, one of the changes that we made was to move the javax.jms bundle out of the ActiveMQ provider.

Can you reach our build machine here:

https://build.ecf-project.org/jenkins/job/C-HEAD-jms.feature/

There is a p2 repo available at that location...that includes the necessary javax.jms bundle (from the Eclipse Orbit project). You may not be able to reach it, however, because we've recently needed to make our build system more private because of commitment to the OSGi consortium.

The reason we don't distribute the ActiveMQ provider with the rest of ECF releases is because of ActiveMQ licensing. We can't distribute it under the EPL...which we are bound to use. Unfortunately, this makes things somewhat inconvenient (i.e. the need to have the ActiveMQ provider available as a separate release).

In any event, we/I will help you get the necessary bundles to run the ActiveMQ provider (and these examples...which are based upon them)...in your environment.


Re: Load Balancing ECF Remote Services Examples Fail [message #1101548 is a reply to message #1100990] Wed, 04 September 2013 15:54 Go to previous messageGo to next message
Jerry Dowdy is currently offline Jerry Dowdy
Messages: 2
Registered: September 2013
Junior Member
Thank you for a prompt answer.

Upon more review, I have found the jmsapi folder which contains geronimo-jms_1.1_spec-1.1.1.jar - Once I added this reference to the build path for both org.eclipse.ecf.provider.jms and org.eclipse.ecf.provider.jms.activemq I am able to get a little further.

The error I receive now deals with the activemq package > public class ActiveMQJMSQueueConsumerContainer. The issue reported by Eclipse is :

The type ActiveMQJMSQueueConsumerContainer must implement the inherited abstract method IRemoteServiceContainerAdapter.setRemoteServiceCallPolicy(IRemoteServiceCallPolicy)

Of the 2 quick fixes to resolve this:

1) Add unimplemented methods
2) Make type 'ActiveMQJMSQueueConsumerContainer' abstract

I have chosen (1) Add unimplemented methods.

Now when I try to Launch the Eclipse Application, I receive:

!SESSION 2013-09-04 11:51:11.661 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -application org.eclipse.ecf.examples.loadbalancing.server.DataProcessorServer
Command-line arguments: -application org.eclipse.ecf.examples.loadbalancing.server.DataProcessorServer -data C:\Development\WorkSpace/../runtime-DataProcessorServer(activemq).product -dev file:C:/Development/WorkSpace/.metadata/.plugins/org.eclipse.pde.core/Data Processor Server (activemq).product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.equinox.app 4 0 2013-09-04 11:51:12.332
!MESSAGE org/eclipse/ecf/remoteservice/events/IRemoteServiceEvent
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/ecf/remoteservice/events/IRemoteServiceEvent
at org.eclipse.ecf.provider.jms.container.AbstractJMSQueueConsumerContainer.<init>(AbstractJMSQueueConsumerContainer.java:46)
at org.eclipse.ecf.provider.jms.activemq.container.ActiveMQJMSQueueConsumerContainer.<init>(ActiveMQJMSQueueConsumerContainer.java:29)
at org.eclipse.ecf.internal.provider.jms.activemq.ActiveMQJMSQueueConsumerContainerInstantiator.createInstance(ActiveMQJMSQueueConsumerContainerInstantiator.java:58)
at org.eclipse.ecf.core.ContainerFactory.createContainer(ContainerFactory.java:296)
at org.eclipse.ecf.core.ContainerFactory.createContainer(ContainerFactory.java:315)
at org.eclipse.ecf.internal.examples.loadbalancing.server.DataProcessorServerApplication.start(DataProcessorServerApplication.java:53)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.eclipse.ecf.remoteservice.events.IRemoteServiceEvent cannot be found by org.eclipse.ecf.provider.jms_1.3.0.qualifier
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 9 more

Is there more up-to-date examples which have been validated to run? I would like to have a proof of concept which can demonstrate the capabilities of load balancing for my project.
Re: Load Balancing ECF Remote Services Examples Fail [message #1106771 is a reply to message #1101548] Wed, 11 September 2013 14:26 Go to previous messageGo to next message
Scott Lewis is currently offline Scott Lewis
Messages: 971
Registered: July 2009
Senior Member
Hi Jerry

Quote:
!ENTRY org.eclipse.equinox.app 4 0 2013-09-03 11:53:37.134
!MESSAGE Container type description with name=ecf.jms.activemq.tcp.lb.server not found. This may indicate that the desired provider is not available or not startable within runtime.
!STACK 0
org.eclipse.ecf.core.ContainerCreateException: Container type description with name=ecf.jms.activemq.tcp.lb.server not found. This may indicate that the desired provider is not available or not startable within runtime.
at org.eclipse.ecf.core.ContainerFactory.getDescriptionByNameWithException(ContainerFactory.java:269)
at org.eclipse.ecf.core.ContainerFactory.createContainer(ContainerFactory.java:315)
at org.eclipse.ecf.internal.examples.loadbalancing.server.DataProcessorServerApplication.start(DataProcessorServerApplication.java:53)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
at java.lang.Thread.run(Unknown Source)


There are some stale pointers in the example product configuration. I've opened bug

https://bugs.eclipse.org/bugs/show_bug.cgi?id=417013
Re: Load Balancing ECF Remote Services Examples Fail [message #1106912 is a reply to message #1106771] Wed, 11 September 2013 18:13 Go to previous message
Scott Lewis is currently offline Scott Lewis
Messages: 971
Registered: July 2009
Senior Member
The product configuration file problems have been fixed. See here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=417013#c1
Previous Topic:new file with specification template for PyDev
Next Topic:ECF 3.7 Released
Goto Forum:
  


Current Time: Wed Oct 22 03:15:46 GMT 2014

Powered by FUDForum. Page generated in 0.01737 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software