Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » deployment problem(swing client)
deployment problem [message #1012928] Fri, 22 February 2013 08:22 Go to next message
Bertin Kiekebosch is currently offline Bertin Kiekebosch
Messages: 300
Registered: August 2011
Senior Member
Hi,

I can run the client (swing client, production and development version) from inside eclipse against the production server and then it works fine. But as soon as I deploy it, I get the error like below. I'll guess something is missing but I can't figure out what.

Regards Bertin


!ENTRY org.eclipse.scout.service 4 0 2013-02-22 12:15:12.532
!MESSAGE org.eclipse.scout.service.internal.ServicesExtensionManager.added(ServicesExtensionManager.java:183) register service: bundle=org.eclipse.scout.rt.client, service=org.eclipse.scout.rt.shared.services.lookup.DefaultCodeLookupCallFactoryService
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.scout.rt.shared.services.lookup.DefaultCodeLookupCallFactoryService
	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)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
	at org.eclipse.scout.service.internal.ServicesExtensionManager.added(ServicesExtensionManager.java:96)
	at org.eclipse.scout.service.internal.ExtensionPointTracker.open(ExtensionPointTracker.java:109)
	at org.eclipse.scout.service.internal.ServicesExtensionManager.start(ServicesExtensionManager.java:73)
	at org.eclipse.scout.service.internal.Activator$1$1.run(Activator.java:63)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.scout.rt.client 4 0 2013-02-22 12:15:35.143
!MESSAGE org.eclipse.scout.rt.client.AbstractClientSession.startSession(AbstractClientSession.java:257) load session
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.scout.commons.ConfigurationUtility.sortByOrder(Ljava/util/Collection;)Ljava/util/Collection;
	at org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop.initConfig(AbstractDesktop.java:423)
	at org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop.<init>(AbstractDesktop.java:143)
	at nl.rid.connect.client.ui.desktop.Desktop.<init>(Desktop.java:47)
	at nl.rid.connect.client.ClientSession.execLoadSession(ClientSession.java:50)
	at org.eclipse.scout.rt.client.AbstractClientSession.startSession(AbstractClientSession.java:252)
	at org.eclipse.scout.rt.client.services.common.session.internal.ClientSessionRegistryService$1.runVoid(ClientSessionRegistryService.java:70)
	at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:177)
	at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:161)
	at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:149)
	at org.eclipse.scout.commons.job.JobEx.runNow(JobEx.java:50)
	at org.eclipse.scout.rt.client.services.common.session.internal.ClientSessionRegistryService.createAndStartClientSession(ClientSessionRegistryService.java:74)
	at org.eclipse.scout.rt.client.services.common.session.internal.ClientSessionRegistryService.newClientSession(ClientSessionRegistryService.java:45)
	at nl.rid.connect.ui.swing.SwingApplication.getClientSession(SwingApplication.java:62)
	at org.eclipse.scout.rt.ui.swing.AbstractSwingApplication.startInSubject(AbstractSwingApplication.java:179)
	at org.eclipse.scout.rt.ui.swing.AbstractSwingApplication.start(AbstractSwingApplication.java:141)
	at nl.rid.connect.ui.swing.SwingApplication.startSecure(SwingApplication.java:57)
	at nl.rid.connect.ui.swing.SwingApplication.access$0(SwingApplication.java:49)
	at nl.rid.connect.ui.swing.SwingApplication$1.run(SwingApplication.java:39)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Unknown Source)
	at nl.rid.connect.ui.swing.SwingApplication.start(SwingApplication.java:36)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

!ENTRY org.eclipse.osgi 4 0 2013-02-22 12:15:35.179
!MESSAGE Application error
!STACK 1
java.lang.NoSuchMethodError: org.eclipse.scout.commons.StringUtility.join(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
	at org.eclipse.scout.rt.ui.swing.AbstractSwingApplication.showLoadError(AbstractSwingApplication.java:224)
	at org.eclipse.scout.rt.ui.swing.AbstractSwingApplication.startInSubject(AbstractSwingApplication.java:181)
	at org.eclipse.scout.rt.ui.swing.AbstractSwingApplication.start(AbstractSwingApplication.java:141)
	at nl.rid.connect.ui.swing.SwingApplication.startSecure(SwingApplication.java:57)
	at nl.rid.connect.ui.swing.SwingApplication.access$0(SwingApplication.java:49)
	at nl.rid.connect.ui.swing.SwingApplication$1.run(SwingApplication.java:39)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Unknown Source)
	at nl.rid.connect.ui.swing.SwingApplication.start(SwingApplication.java:36)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

Re: deployment problem [message #1013363 is a reply to message #1012928] Sat, 23 February 2013 08:01 Go to previous messageGo to next message
Lukas Huser is currently offline Lukas Huser
Messages: 41
Registered: March 2010
Member
Hi Bertin

I think you get these errors because you are mixing bundles of different Scout versions. From a quick look at the sources, it seems that the methods and classes that cause your errors have been introduced with Scout version 3.8.1.
It seems that bundle scout.rt.client uses these new API methods from the scout.commons and scout.rt.shared bundles. Scout seems not to guarantee compatibility between its core bundles between different service releases.

So if you decide to use Scout 3.8.1, you should upgrade all involved bundles to version 3.8.1 (client, shared, server, commons etc.).

I assume that you have both versions 3.8.1 and 3.8.0 installed in your eclipse? When starting the client from within eclipse, I think it will use the most recent version if a bundle is present in multiple versions.

But I'm not sure how this is handled when exporting your client application. It might be sufficient to specify a minimum version for the bundles in your product configuration.
Alternatively you can try to uninstall the old Scout version (3.8.0), this way you are guaranteed that you have a single set of compatible Scout bundles, which then should also be used during export.

Re: deployment problem [message #1014153 is a reply to message #1013363] Mon, 25 February 2013 04:11 Go to previous messageGo to next message
Bertin Kiekebosch is currently offline Bertin Kiekebosch
Messages: 300
Registered: August 2011
Senior Member
Hi,

Still having the deployment problem. I installed a new Eclipse Scout Juno SR1 to be sure I have a good Eclipse set-up. As a test I created a new application to test the deployment. No problem at all. I can deploy a brand new application (server and client) and run it from the test computers.

Again with this new setup I deployed my existing application and again, when I deploy a client it does not work. Everything works inside the IDE, and when I deploy the server part, I still can use the client app from inside Eclipse. But as soon as I deploy the client to my own or another coputer I does not work.

So the conclusion is that there must be something wrong in my project that causes this, but I can not find it.

Maybe anybody has an idea.

Regards Bertin

Re: deployment problem [message #1014185 is a reply to message #1014153] Mon, 25 February 2013 05:14 Go to previous messageGo to next message
Bertin Kiekebosch is currently offline Bertin Kiekebosch
Messages: 300
Registered: August 2011
Senior Member
Hi,

I did some search and after deploying a deployTest application and my original application I try to find the differences.

The first error the client gives is that it cannot find class DefaultCodeLookupCallFactoryService. If I look at the list of services on the tomcat server this service is not available there. I don't know if it must be there but in my deployTest project it is there (in the list of other services).

If it should be there, then the question is why it is not there and how can I add it.

Regards Bertin



icon7.gif  Re: deployment problem [message #1014226 is a reply to message #1014185] Mon, 25 February 2013 07:02 Go to previous message
Bertin Kiekebosch is currently offline Bertin Kiekebosch
Messages: 300
Registered: August 2011
Senior Member
Solved,

there was something wromg with the target platform of my Project. After rebuilding this it works.

Regards Bertin
Previous Topic:Modifying table behaviour
Next Topic:Rayo versions
Goto Forum:
  


Current Time: Tue Sep 02 02:54:34 EDT 2014

Powered by FUDForum. Page generated in 0.01938 seconds