Wrong bundle is used as server bundle [message #1403488] |
Thu, 24 July 2014 03:42  |
Eclipse User |
|
|
|
Hi there,
I created my own JDBC bundle to load some own MySQL stuff. This works fine, but now the SDK takes this "com.example.jdbc.mysql" bundle as my server-bundle and the actual server bundle (com.example.server) is a "sub-component" of "com.example.jdbc.mysql".
This results into wrong destinations - e.g. when the search form wizard creates some services for the server.
The scout explorer looks as follows for the scout project:
com.example
|- com.example.client
|- com.example.shared
|- com.example.jdbc.mysql
|- com.example.server
|- ServerSession
|- Services
|- Lookup Services
|- ....
|- Services
|- Lookup Services
|- Common Services
|- Libraries
so my question is: how does the SDK detect a server bundle. could it be that it is done via the manifest and the defined plug-in dependencies? Because my jdbc-bundle needs the org.eclipse.scout.rt.server for buddy class loading (to find and load the jdbc driver)...
|
|
|
|
Re: Wrong bundle is used as server bundle [message #1403563 is a reply to message #1403560] |
Thu, 24 July 2014 08:28   |
Eclipse User |
|
|
|
Hi,
Thanks for the answer. The problem is not how it is shown. The problem is, the wizards don't work, because they create some stubs in the jdbc bundle and some other stubs in the server bundle. When I create a form, the formdata is generated into the jdbc-bundle, but without any annotations or methods/fields and this causes a missing service registration. I guess, this is due to the missing entries, because there the jdbc bundle does not use any extension points... Since the created forms and data classes are therefore corrupt, drag'n'drop does not work anymore... So all advantages of the scout sdk is gone and I have to correct all clases by hand - which is really annoying
Tried the "export as binary and import through the target platform" already, but this does not work. Because now I have no server part (either the server nor the jdbc bundle) in the scout view. In this case no com.example.server - just the client and shared component...
Next, I will try to transform the jdbc bundle into a fragment and hope that this will work...
|
|
|
|
Re: Wrong bundle is used as server bundle [message #1403601 is a reply to message #1403563] |
Thu, 24 July 2014 10:33   |
Eclipse User |
|
|
|
Dennis Geesen wrote on Thu, 24 July 2014 14:28Thanks for the answer. The problem is not how it is shown. The problem is, the wizards don't work, because they create some stubs in the jdbc bundle and some other stubs in the server bundle. When I create a form, the formdata is generated into the jdbc-bundle, but without any annotations or methods/fields and this causes a missing service registration. I guess, this is due to the missing entries, because there the jdbc bundle does not use any extension points... Since the created forms and data classes are therefore corrupt, drag'n'drop does not work anymore... So all advantages of the scout sdk is gone and I have to correct all clases by hand - which is really annoying
You can control where the elements are generated in the Step 2 of the "New Form" wizard. Have you tried it?

You speak from missing stuff. Have you checked in the Error Log View if the SDK creates errors or warnings?
If so, we would be interested to improve Scout SDK.
|
|
|
|
|
|
Re: Wrong bundle is used as server bundle [message #1403876 is a reply to message #1403716] |
Mon, 28 July 2014 07:53  |
Eclipse User |
|
|
|
Hi Dennis & Jérémie,
This error happens when a service registration (or any other extension) should be added to a plugin not having a plugin.xml file. As a workaround until the bug is fixed just manually create the missing plugin.xml files.
For more details please see Bug 440424. Will be fixed for Luna SR1 release.
Kind regards and thank you for pointing that issue out!
matthias
|
|
|
Powered by
FUDForum. Page generated in 0.04028 seconds