Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » migrate from 3.7 to 3.8
migrate from 3.7 to 3.8 [message #806609] Sat, 25 February 2012 07:19 Go to next message
Li Hao is currently offline Li HaoFriend
Messages: 28
Registered: August 2011
Junior Member
I want to try out the scout 3.8 so I update my eclipse scout to 3.8 using the nightly build. There are some error when I import my code from scout 3.7:

In scout 3.7, the nls text are included in shared runtime, but in 3.8 it is not there and give me a error. I try to change it to the scout core TEXTS, but it can not look up the text I input previously.
Re: migrate from 3.7 to 3.8 [message #806752 is a reply to message #806609] Sat, 25 February 2012 12:20 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 232
Registered: September 2011
Senior Member
You can find a description on how to migrate from the 3.7 NLS support to the text provider services introduced with 3.8 in the corresponding bugzilla ticket: Bug 361816

There is also a chapter in the wiki that describes how to migrate to 3.8 Scout: Compatibility with Previous Releases.
In the referenced release notes you can find migration instructions for all changes that require a migration.

did this work for you?

kind regards
matthias
Re: migrate from 3.7 to 3.8 [message #808293 is a reply to message #806752] Mon, 27 February 2012 16:06 Go to previous messageGo to next message
Li Hao is currently offline Li HaoFriend
Messages: 28
Registered: August 2011
Junior Member
Thanks, the text migration works follow the instruction on Bug 361816.

I have another issue, I use the org.eclipse.scout.rt.server.servlet.filter.DataSourceSecurityFilter for client authentication to server using postgresql database. In the new version, this filter does not work and throw java.lang.ClassNotFoundException: org.postgresql.Driver. I have included the jdbc driver in the plugin classpath, and if I turn off the authentication, the other data retrieval from postgresql database works fine, so the jdbc driver is working.

I try to search the compatibility list but can not find any reference on this.
Re: migrate from 3.7 to 3.8 [message #808460 is a reply to message #808293] Mon, 27 February 2012 20:08 Go to previous messageGo to next message
Eclipse UserFriend
What version of Eclipse you are using? There is a bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=369880) in version 3.8 < M6 with classloading of classes in fragments to the system bundle which is used for jdbc drivers.
The latest integration builds of Eclipse should be fine.

-andreas
Re: migrate from 3.7 to 3.8 [message #809147 is a reply to message #808460] Tue, 28 February 2012 14:30 Go to previous messageGo to next message
Li Hao is currently offline Li HaoFriend
Messages: 28
Registered: August 2011
Junior Member
I am using 3.7 with scout 3.8 updated using nightly build. I don't have the same issue as the bug in 3.8 M6. The jdbc driver is loaded ok. just the org.eclipse.scout.http.servletfilter is not working properly when I specific the org.eclipse.scout.rt.server.servlet.filter.DataSourceSecurityFilter.

I read this in the compatibility list:

bugzilla ticket: 361256
To make reuse of the ServletFilters in RAP projects. The following classes
should be moved to the 'org.eclipse.scout.http.servletfilter' bundle:
- org.eclipse.scout.rt.server.servlet.filter.AbstractChainableSecurityFilter
- org.eclipse.scout.rt.server.servlet.filter.AnonymousSecurityFilter
- org.eclipse.scout.rt.server.servlet.filter.BasicSecurityFilter
- org.eclipse.scout.rt.server.servlet.filter.DataSourceSecurityFilter
- org.eclipse.scout.rt.server.servlet.filter.LDAPSecurityFilter
- org.eclipse.scout.rt.server.servlet.filter.TomcatSecurityFilter

All servlet filters in the 'org.eclipse.scout.rt.server' bundle were kept as @deprecated subclasses of the moved ones.


Is this related to this issue?
Re: migrate from 3.7 to 3.8 [message #809323 is a reply to message #809147] Tue, 28 February 2012 18:42 Go to previous messageGo to next message
Eclipse UserFriend
That's a good hint. What version is your 'org.postgres.postgres9.jdbc.fragment' fragment? Could you also take at the Manifest.MF of this fragment to ensure the 'Fragment-Host: system.bundle' entry?
There is also a bug in server side equinox with spaces in the web container (e.g. tomcat) installation directory (see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=370547).

-andreas
Re: migrate from 3.7 to 3.8 [message #881793 is a reply to message #806609] Tue, 05 June 2012 09:10 Go to previous messageGo to next message
adrien teulade is currently offline adrien teuladeFriend
Messages: 14
Registered: June 2012
Junior Member
Hi I know this post is quite old but I have some problem for migrating scout 3.7 to 3.8.

I don't understand a mention on the bug report.

2. For each existing NLS Class (directly or indirectly
extending "org.eclipse.scout.rt.shared.ScoutTexts"
or "org.eclipse.scout.commons.nls.DynamicNls"):
- create a new "<YourSharedPlugin>.services.common.text.
<Name>TextProviderService" extending "org.eclipse.scout.rt.shared.services
.common.text.AbstractDynamicNlsTextProviderService" in the corresponding
shared plugin.


The only class who extend from ScoutTexts or DynamicNls in my project is Texts.java and I don't know what means "create a new "<YourSharedPlugin>.services.common.text.
<Name>TextProviderService" extending "org.eclipse.scout.rt.shared.services.common.text.AbstractDynamicNlsTextProviderService" in the corresponding shared plugin."

Does someone can help me please ?

Do I have to create a new class or declare it inline in Texts.java ? How I declare it ?

Thanks in advance
Re: migrate from 3.7 to 3.8 [message #881837 is a reply to message #881793] Tue, 05 June 2012 10:45 Go to previous messageGo to next message
Bruno Koeferli is currently offline Bruno KoeferliFriend
Messages: 11
Registered: January 2012
Junior Member
hi adrien

yes, you have to replace the existing Texts class with a new class extending "org.eclipse.scout.rt.shared.services.common.text.AbstractDynamicNlsTextProviderService".

f.e. the following Texts.java
package com.foo.shared;

public class Texts extends ScoutTexts{

  public static final String RESOURCE_BUNDLE_NAME = "resources.texts.Texts";//$NON-NLS-1$
  private static Texts instance=new Texts();

  public static Texts getInstance(){
    return instance;
  }

  public static String get(String key,String ... messageArguments){
    return getInstance().getText(key,messageArguments);
  }

  protected Texts(){
    registerResourceBundle(RESOURCE_BUNDLE_NAME,Texts.class);
  }
}


... will end up in TextProviderService.java
package com.foo.shared.services.common.text;

public class TextProviderService extends AbstractDynamicNlsTextProviderService {

  @Override
  protected String getDynamicNlsBaseName() {
    return "resources.texts.Texts";
  }
}

... and the corresponding service registration in the plugin.xml.

/bruno

[Updated on: Tue, 05 June 2012 11:00]

Report message to a moderator

Re: migrate from 3.7 to 3.8 [message #881924 is a reply to message #881837] Tue, 05 June 2012 14:02 Go to previous messageGo to next message
adrien teulade is currently offline adrien teuladeFriend
Messages: 14
Registered: June 2012
Junior Member
Thanks for your help Bruno but when i launch my server and my client I have an error with the IdApplication and I don't understand where it comes (I'm beginner with Scout SDK)
.

Moreover, the bug report solve errors which are caused by Nls class but there is another type of error.

In fact, the import org.eclipse.scout.rt.shared.services.common.security.SimplePrincipal; is unknown ...

I use this import to solve the problem but I don't know if it's a good decision.

import org.eclipse.scout.rt.common.security.SimplePrincipal;


[Updated on: Tue, 05 June 2012 14:23]

Report message to a moderator

Re: migrate from 3.7 to 3.8 [message #881974 is a reply to message #806609] Tue, 05 June 2012 15:09 Go to previous messageGo to next message
Bruno Koeferli is currently offline Bruno KoeferliFriend
Messages: 11
Registered: January 2012
Junior Member
You made the right decision - the SimplePrincipal has been moved.

Now it seems that your product configurations does not contain every required bundle (plugin or fragment). You can use the "Validate..." button in the right upper corner in the Product Configuration Editor to validate your configuration. I hope this function will show you one or more missing bundles, which needs to be added to the corresponding product configuration.
Re: migrate from 3.7 to 3.8 [message #882290 is a reply to message #881974] Wed, 06 June 2012 07:43 Go to previous messageGo to next message
adrien teulade is currently offline adrien teuladeFriend
Messages: 14
Registered: June 2012
Junior Member
I'm going to try this !
but I totally destroy my Scout project so I've to build another one.

Edit : I try to validate my *.product and now the server work (there was one plugins missing) but no plug-in add for the client.

Now I have only one error when I launch my client :

java.lang.NullPointerException
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>(ModelServiceImpl.java:92)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:442)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:182)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:554)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.minicrm.ui.swt.application.Application.startSecure(Application.java:51)
at org.eclipse.minicrm.ui.swt.application.Application$1.run(Application.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.eclipse.minicrm.ui.swt.application.Application.start(Application.java:34)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)


Does It is possible that I make a mistake when registering the new Service in plugin.xml ?

I show you my plugin.xml

[size=1]<?xml version="1.0" encoding="UTF-8"?>
<plugin>
  <extension point="org.eclipse.scout.service.services">
    <proxy class="org.eclipse.minicrm.shared.services.outline.IStandardOutlineService" factory="org.eclipse.scout.rt.client.services.ClientProxyServiceFactory"/>
  	<service class="org.eclipse.minicrm.shared.TextProviderService" factory="org.eclipse.scout.service.DefaultServiceFactory" ranking="100" />
    <proxy class="org.eclipse.minicrm.shared.services.process.ICompanyProcessService" factory="org.eclipse.scout.rt.client.services.ClientProxyServiceFactory"/>
  </extension>
  <extension point="org.eclipse.scout.service.services">
    
  </extension>
</plugin>[/size]

[Updated on: Wed, 06 June 2012 08:16]

Report message to a moderator

Re: migrate from 3.7 to 3.8 [message #882843 is a reply to message #806609] Thu, 07 June 2012 09:56 Go to previous messageGo to next message
Judith Gull is currently offline Judith GullFriend
Messages: 75
Registered: February 2010
Member
The service configuration looks ok.

Maybe the tutorials for Scout 3.8 are useful for you: wiki.eclipse.org/Scout/Tutorial/3.8

And probably it would be better for you to use a more stable updatesite than nightly: You can install Scout from download.eclipse.org/releases/juno

If you still get this error provide us some more details like eclipse version, operating system, etc. Then we may be able to reproduce it.
Re: migrate from 3.7 to 3.8 [message #883337 is a reply to message #806609] Fri, 08 June 2012 10:10 Go to previous messageGo to next message
adrien teulade is currently offline adrien teuladeFriend
Messages: 14
Registered: June 2012
Junior Member
Now I resolved all my problems with eclipse and scout I have a new error :

!ENTRY org.eclipse.equinox.http.jetty 4 0 2012-06-08 14:10:30.640
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841 [3]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.jetty.http; version="[8.0.0,9.0.0)"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1177)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.osgi 4 0 2012-06-08 14:10:30.643
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841.jar was not resolved.

!ENTRY org.eclipse.osgi 2 0 2012-06-08 14:10:30.661
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-08 14:10:30.661
!MESSAGE Bundle update@plugins/org.eclipse.scout.rt.jdbc.derby_10.5.3.201205300618.jar was not resolved.
!SUBENTRY 2 org.eclipse.scout.rt.jdbc.derby 2 0 2012-06-08 14:10:30.661
!MESSAGE Missing imported package org.apache.derby.jdbc_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-08 14:10:30.661
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.662
!MESSAGE Missing imported package org.eclipse.jetty.util_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.662
!MESSAGE Missing imported package org.eclipse.jetty.io.nio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.662
!MESSAGE Missing imported package org.eclipse.jetty.http_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.662
!MESSAGE Missing imported package org.eclipse.jetty.server.session_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.662
!MESSAGE Missing imported package org.eclipse.jetty.server.ssl_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.663
!MESSAGE Missing imported package org.eclipse.jetty.io.bio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.663
!MESSAGE Missing imported package org.eclipse.jetty.util.log_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.663
!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.663
!MESSAGE Missing imported package org.eclipse.jetty.util.component_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.663
!MESSAGE Missing imported package org.eclipse.jetty.server_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.664
!MESSAGE Missing imported package org.eclipse.jetty.servlet_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.664
!MESSAGE Missing imported package org.eclipse.jetty.server.nio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.664
!MESSAGE Missing imported package org.eclipse.jetty.server.bio_[8.0.0,9.0.0).

!ENTRY org.eclipse.osgi 2 0 2012-06-08 14:10:30.675
!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 2012-06-08 14:10:30.675
!MESSAGE Bundle org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841 [3] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.675
!MESSAGE Missing imported package org.eclipse.jetty.http_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.675
!MESSAGE Missing imported package org.eclipse.jetty.io.bio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.676
!MESSAGE Missing imported package org.eclipse.jetty.io.nio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.676
!MESSAGE Missing imported package org.eclipse.jetty.server_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.676
!MESSAGE Missing imported package org.eclipse.jetty.server.bio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.676
!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.676
!MESSAGE Missing imported package org.eclipse.jetty.server.nio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.677
!MESSAGE Missing imported package org.eclipse.jetty.server.session_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.677
!MESSAGE Missing imported package org.eclipse.jetty.server.ssl_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.677
!MESSAGE Missing imported package org.eclipse.jetty.servlet_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.677
!MESSAGE Missing imported package org.eclipse.jetty.util_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.678
!MESSAGE Missing imported package org.eclipse.jetty.util.component_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.678
!MESSAGE Missing imported package org.eclipse.jetty.util.log_[8.0.0,9.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-08 14:10:30.678
!MESSAGE Bundle org.eclipse.scout.rt.jdbc.derby_10.5.3.201205300618 [18] was not resolved.
!SUBENTRY 2 org.eclipse.scout.rt.jdbc.derby 2 0 2012-06-08 14:10:30.678
!MESSAGE Missing imported package org.apache.derby.jdbc_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-08 14:10:30.678
!MESSAGE Bundle eclipse.org.minicrm.server_1.0.0.qualifier [32] was not resolved.
!SUBENTRY 2 eclipse.org.minicrm.server 2 0 2012-06-08 14:10:30.679
!MESSAGE Missing required bundle org.eclipse.scout.rt.jdbc.derby_0.0.0.

!ENTRY org.eclipse.osgi 2 0 2012-06-08 14:10:30.696
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-08 14:10:30.697
!MESSAGE Bundle update@plugins/org.eclipse.scout.rt.jdbc.derby_10.5.3.201205300618.jar was not resolved.
!SUBENTRY 2 org.eclipse.scout.rt.jdbc.derby 2 0 2012-06-08 14:10:30.697
!MESSAGE Missing imported package org.apache.derby.jdbc_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-08 14:10:30.697
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.697
!MESSAGE Missing imported package org.eclipse.jetty.util_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.698
!MESSAGE Missing imported package org.eclipse.jetty.io.nio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.698
!MESSAGE Missing imported package org.eclipse.jetty.http_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.698
!MESSAGE Missing imported package org.eclipse.jetty.server.session_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.698
!MESSAGE Missing imported package org.eclipse.jetty.server.ssl_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.699
!MESSAGE Missing imported package org.eclipse.jetty.io.bio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.699
!MESSAGE Missing imported package org.eclipse.jetty.util.log_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.699
!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.699
!MESSAGE Missing imported package org.eclipse.jetty.util.component_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.699
!MESSAGE Missing imported package org.eclipse.jetty.server_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.700
!MESSAGE Missing imported package org.eclipse.jetty.servlet_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.700
!MESSAGE Missing imported package org.eclipse.jetty.server.nio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.700
!MESSAGE Missing imported package org.eclipse.jetty.server.bio_[8.0.0,9.0.0).

!ENTRY org.eclipse.osgi 2 0 2012-06-08 14:10:30.707
!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 2012-06-08 14:10:30.707
!MESSAGE Bundle org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841 [3] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.707
!MESSAGE Missing imported package org.eclipse.jetty.http_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.707
!MESSAGE Missing imported package org.eclipse.jetty.io.bio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.707
!MESSAGE Missing imported package org.eclipse.jetty.io.nio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.708
!MESSAGE Missing imported package org.eclipse.jetty.server_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.708
!MESSAGE Missing imported package org.eclipse.jetty.server.bio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.708
!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.708
!MESSAGE Missing imported package org.eclipse.jetty.server.nio_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.708
!MESSAGE Missing imported package org.eclipse.jetty.server.session_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.708
!MESSAGE Missing imported package org.eclipse.jetty.server.ssl_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.709
!MESSAGE Missing imported package org.eclipse.jetty.servlet_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.709
!MESSAGE Missing imported package org.eclipse.jetty.util_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.709
!MESSAGE Missing imported package org.eclipse.jetty.util.component_[8.0.0,9.0.0).
!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2012-06-08 14:10:30.709
!MESSAGE Missing imported package org.eclipse.jetty.util.log_[8.0.0,9.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-08 14:10:30.709
!MESSAGE Bundle org.eclipse.scout.rt.jdbc.derby_10.5.3.201205300618 [18] was not resolved.
!SUBENTRY 2 org.eclipse.scout.rt.jdbc.derby 2 0 2012-06-08 14:10:30.709
!MESSAGE Missing imported package org.apache.derby.jdbc_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-08 14:10:30.710
!MESSAGE Bundle eclipse.org.minicrm.server_1.0.0.qualifier [32] was not resolved.
!SUBENTRY 2 eclipse.org.minicrm.server 2 0 2012-06-08 14:10:30.710
!MESSAGE Missing required bundle org.eclipse.scout.rt.jdbc.derby_0.0.0.java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)


I'm working on it .... if someone have an idea ...

A question the service I have to registered in plugin.xml where do I have to registered it ? In Which plugin.xml do I have to add it ? client ? server ? swing ? swt ? all of them ?

Thanks in advance for your answer

[Updated on: Fri, 08 June 2012 12:13]

Report message to a moderator

Re: migrate from 3.7 to 3.8 [message #883389 is a reply to message #883337] Fri, 08 June 2012 12:31 Go to previous messageGo to next message
adrien teulade is currently offline adrien teuladeFriend
Messages: 14
Registered: June 2012
Junior Member
I start again I think I forgot something I tell you if something change.

[Updated on: Fri, 08 June 2012 13:24]

Report message to a moderator

Re: migrate from 3.7 to 3.8 [message #883446 is a reply to message #883389] Fri, 08 June 2012 14:56 Go to previous messageGo to next message
adrien teulade is currently offline adrien teuladeFriend
Messages: 14
Registered: June 2012
Junior Member
So now I tried to follow the bug report and it doesn't work I explain :

When I launch my server I got no error but when I launch the Client I got these errors

!ENTRY org.eclipse.scout.service 4 0 2012-06-08 16:34:10.965
!MESSAGE org.eclipse.scout.service.internal.ServicesExtensionManager.added(ServicesExtensionManager.java:183) register service: bundle=eclipse.org.minicrm.client, service=eclipse.org.minicrm.shared.services.common.text.DefaultTextProviderService
!STACK 0
java.lang.ClassNotFoundException: eclipse.org.minicrm.shared.services.common.text.DefaultTextProviderService
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.ui.swing 2 0 2012-06-08 16:34:11.868
!MESSAGE org.eclipse.scout.rt.ui.swing.SwingIconLocator.warnImageNotFound(SwingIconLocator.java:141) could not find image 'navigation_history'

!ENTRY org.eclipse.scout.rt.client 4 0 2012-06-08 16:34:13.427
!MESSAGE org.eclipse.scout.rt.client.services.common.exceptionhandler.internal.InternalClientExceptionHandlerService.differentiatedLog(InternalClientExceptionHandlerService.java:116) ProcessingException: ProcessingStatus[ERROR code=0 Calling IStandardOutlineService.getCompanyTableData() / Erreur d'emploi]
!STACK 0
ProcessingException[ProcessingStatus[ERROR code=0 Calling IStandardOutlineService.getCompanyTableData() / Erreur d'emploi]]
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:167)
at org.eclipse.scout.rt.client.servicetunnel.http.internal.InternalHttpServiceTunnel.invokeService(InternalHttpServiceTunnel.java:174)
at org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:115)
at org.eclipse.scout.rt.client.servicetunnel.ServiceTunnelInvocationHandler.invoke(ServiceTunnelInvocationHandler.java:47)
at $Proxy8.getCompanyTableData(Unknown Source)
at eclipse.org.minicrm.client.ui.desktop.outlines.pages.CompanyTablePage.execLoadTableData(CompanyTablePage.java:35)
at org.eclipse.scout.rt.client.ui.desktop.outline.pages.AbstractPageWithTable.execPopulateTable(AbstractPageWithTable.java:242)
at org.eclipse.scout.rt.client.ui.desktop.outline.pages.AbstractPageWithTable.loadTableDataImpl(AbstractPageWithTable.java:617)
at org.eclipse.scout.rt.client.ui.desktop.outline.pages.AbstractPageWithTable.loadChildren(AbstractPageWithTable.java:680)
at org.eclipse.scout.rt.client.ui.basic.tree.AbstractTreeNode.ensureChildrenLoaded(AbstractTreeNode.java:907)
at org.eclipse.scout.rt.client.ui.desktop.outline.AbstractOutline.handleActivePageChanged(AbstractOutline.java:424)
at org.eclipse.scout.rt.client.ui.desktop.outline.AbstractOutline.access$0(AbstractOutline.java:412)
at org.eclipse.scout.rt.client.ui.desktop.outline.AbstractOutline$P_OutlineListener.treeChanged(AbstractOutline.java:489)
at org.eclipse.scout.rt.client.ui.basic.tree.AbstractTree.fireTreeEventInternal(AbstractTree.java:2084)
at org.eclipse.scout.rt.client.ui.basic.tree.AbstractTree.fireNodesSelected(AbstractTree.java:1929)
at org.eclipse.scout.rt.client.ui.basic.tree.AbstractTree.selectNodes(AbstractTree.java:1574)
at org.eclipse.scout.rt.client.ui.basic.tree.AbstractTree.selectNode(AbstractTree.java:1534)
at org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop.setOutline(AbstractDesktop.java:887)
at eclipse.org.minicrm.client.ui.desktop.Desktop.execOpened(Desktop.java:63)
at org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop$P_LocalDesktopExtension.desktopOpenedDelegate(AbstractDesktop.java:1663)
at org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop$P_UIFacade.fireDesktopOpenedFromUI(AbstractDesktop.java:1783)
at org.eclipse.scout.rt.ui.swing.AbstractSwingEnvironment$2.runVoid(AbstractSwingEnvironment.java:439)
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.core.internal.jobs.Worker.run(Worker.java:54)


And when I look at the error on the server I got these errors

!ENTRY org.eclipse.scout.service 4 0 2012-06-08 16:34:11.546
!MESSAGE org.eclipse.scout.service.internal.ServicesExtensionManager.added(ServicesExtensionManager.java:183) register service: bundle=eclipse.org.minicrm.server, service=eclipse.org.minicrm.shared.services.common.text.DefaultTextProviderService
!STACK 0
java.lang.ClassNotFoundException: eclipse.org.minicrm.shared.services.common.text.DefaultTextProviderService
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.shared 4 0 2012-06-08 16:34:13.380
!MESSAGE org.eclipse.scout.rt.shared.services.common.exceptionhandler.LogExceptionHandlerService.differentiatedLog(LogExceptionHandlerService.java:76) ProcessingStatus[ERROR code=0 invoking eclipse.org.minicrm.shared.services.outline.IStandardOutlineService:getCompanyTableData / getTransaction java.lang.ExceptionInInitializerError]
!STACK 0
ProcessingException[ProcessingStatus[ERROR code=0 invoking eclipse.org.minicrm.shared.services.outline.IStandardOutlineService:getCompanyTableData / getTransaction java.lang.ExceptionInInitializerError]]
at org.eclipse.scout.rt.server.services.common.jdbc.AbstractSqlService.getTransaction(AbstractSqlService.java:698)
at org.eclipse.scout.rt.server.services.common.jdbc.AbstractSqlService.select(AbstractSqlService.java:726)
at org.eclipse.scout.rt.server.services.common.jdbc.SQL.select(SQL.java:101)
at eclipse.org.minicrm.server.services.outline.StandardOutlineService.getCompanyTableData(StandardOutlineService.java:26)
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.scout.service.ServiceUtility.invoke(ServiceUtility.java:172)
at org.eclipse.scout.rt.server.DefaultTransactionDelegate.invokeImpl(DefaultTransactionDelegate.java:217)
at org.eclipse.scout.rt.server.DefaultTransactionDelegate.invoke(DefaultTransactionDelegate.java:92)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.runServerJobTransactionWithDelegate(ServiceTunnelServlet.java:391)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.runServerJobTransaction(ServiceTunnelServlet.java:387)
at org.eclipse.scout.rt.server.ServiceTunnelServlet$RemoteServiceJob.runTransaction(ServiceTunnelServlet.java:415)
at org.eclipse.scout.rt.server.ServerJob.runTransactionWrapper(ServerJob.java:202)
at org.eclipse.scout.rt.server.ServerJob.access$0(ServerJob.java:190)
at org.eclipse.scout.rt.server.ServerJob$1.run(ServerJob.java:161)
at org.eclipse.scout.rt.server.ServerJob$1.run(ServerJob.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.eclipse.scout.rt.server.ServerJob.run(ServerJob.java:156)
at org.eclipse.scout.commons.job.JobEx.runNow(JobEx.java:50)
at org.eclipse.scout.rt.server.ServerJob.runNow(ServerJob.java:148)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.doPost(ServiceTunnelServlet.java:296)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.scout.http.servletfilter.HttpServletEx.access$0(HttpServletEx.java:1)
at org.eclipse.scout.http.servletfilter.HttpServletEx$1.service(HttpServletEx.java:38)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:44)
at org.eclipse.scout.http.servletfilter.helper.HttpAuthJaasFilter.doFilter(HttpAuthJaasFilter.java:62)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:41)
at org.eclipse.scout.http.servletfilter.helper.DevelopmentAuthFilter.doFilter(DevelopmentAuthFilter.java:61)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:41)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter.doFilterInternal(AbstractChainableSecurityFilter.java:220)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter.access$0(AbstractChainableSecurityFilter.java:219)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter$1.run(AbstractChainableSecurityFilter.java:157)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter.doFilter(AbstractChainableSecurityFilter.java:149)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:41)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter.doFilter(AbstractChainableSecurityFilter.java:103)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:41)
at org.eclipse.scout.http.servletfilter.ServletFilterDelegate.delegateServiceMethod(ServletFilterDelegate.java:57)
at org.eclipse.scout.http.servletfilter.HttpServletEx.service(HttpServletEx.java:35)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:384)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:350)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.eclipse.scout.rt.server.services.common.jdbc.internal.pool.SqlConnectionBuilder.createJdbcConnection(SqlConnectionBuilder.java:35)
at org.eclipse.scout.rt.server.services.common.jdbc.internal.pool.SqlConnectionPool.leaseConnection(SqlConnectionPool.java:102)
at org.eclipse.scout.rt.server.services.common.jdbc.AbstractSqlService.leaseConnectionInternal(AbstractSqlService.java:620)
at org.eclipse.scout.rt.server.services.common.jdbc.AbstractSqlService.execCreateConnection(AbstractSqlService.java:288)
at org.eclipse.scout.rt.server.services.common.jdbc.AbstractSqlService.leaseConnection(AbstractSqlService.java:612)
at org.eclipse.scout.rt.server.services.common.jdbc.AbstractSqlService.getTransaction(AbstractSqlService.java:688)
... 70 more
Caused by: java.lang.SecurityException: sealing violation: package org.apache.derby.impl.store.raw.xact is sealed
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getImplementations(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getDefaultImplementations(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)
at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown Source)
at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
... 78 more


But the worst news is that I got my TextProviderService but all the text are unknown

I think the problems with database are due to the version of Derby and I 'm going to correct it but why the text are unknown ?
Re: migrate from 3.7 to 3.8 [message #883465 is a reply to message #883446] Fri, 08 June 2012 15:30 Go to previous messageGo to next message
adrien teulade is currently offline adrien teuladeFriend
Messages: 14
Registered: June 2012
Junior Member
I find THE solution for the DB access : when you click on Add required plug-in eclipse add two plug-ins which create a conflict

org.apache.derby.jdbc_1082.fragment and le org.apache.derby.jdbc_1053.fragment you simply have to keep org.apache.derby.jdbc_1082.fragment and suppress org.apache.derby.jdbc_1053.fragment

[Updated on: Fri, 08 June 2012 15:31]

Report message to a moderator

Re: migrate from 3.7 to 3.8 [message #883469 is a reply to message #883446] Fri, 08 June 2012 15:43 Go to previous messageGo to next message
Lukas Huser is currently offline Lukas HuserFriend
Messages: 42
Registered: March 2010
Member
Quote:
A question the service I have to registered in plugin.xml where do I have to registered it ? In Which plugin.xml do I have to add it ? client ? server ? swing ? swt ? all of them ?

You need to register your TextProviderService in the shared bundle, this will allow both the client and the server to access your texts.
Note that there is probably no existing plugin.xml file in the shared bundle yet.

You could try the following: If you create a new dummy Scout Project (using a fresh workspace), a DefaultTextProviderService will be created and correctly registered in the corresponding plugin.xml (in the shared bundle). You can use this file as a reference for your migrated workspace.

From the posted plugin.xml (which seems to be from the client), and also from the stack traces in the previous post, I assume that you have registered the TextProviderService both in the client and server plugin.xml? Please revert these changes and correctly register the TextProviderService in the shared bundle instead.

Quote:
But the worst news is that I got my TextProviderService but all the text are unknown

If your TextProviderService is correctly registered in the shared bundle, you will hopefully get your texts back in your application!
Re: migrate from 3.7 to 3.8 [message #885043 is a reply to message #883469] Tue, 12 June 2012 10:38 Go to previous messageGo to next message
adrien teulade is currently offline adrien teuladeFriend
Messages: 14
Registered: June 2012
Junior Member
but it's strange I got no plugin.xml file in shared bundle ?
Re: migrate from 3.7 to 3.8 [message #885057 is a reply to message #885043] Tue, 12 June 2012 11:25 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
If you have created your application with Eclipse Scout Indigo, you have the old Text provider mechanism, without any service registration in shared.

As with any other eclipse plugin you can add a plugin.xml file.
It will automatically be added if you open the manifest.mf editor, and you click on the tab where you can register extension points.


When you create a new Scout Application with Eclipse Scout Juno, you get a default text Provider Service, that is registered in shared.

Does it help you?

Re: migrate from 3.7 to 3.8 [message #885154 is a reply to message #885057] Tue, 12 June 2012 14:40 Go to previous message
adrien teulade is currently offline adrien teuladeFriend
Messages: 14
Registered: June 2012
Junior Member
It helps me well thanks a lot for your answer It works I simply add an extension point "org.eclipse.scout.service.services" to create the plugin.xml and I had in it my new service and it work thanks a lot all

WE DID IT Smile
Previous Topic:Scout Client/Server Version Management
Next Topic:Provide Service Config Properties from Plug-in
Goto Forum:
  


Current Time: Sat Apr 20 08:30:31 GMT 2024

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

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

Back to the top