Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Trouble with Comics RCP example


https://bugs.eclipse.org/bugs/show_bug.cgi?id=239413

csergiu77 wrote:


I uderstand and it's ok ,i just wondered ..

BTW do you know ,have a clue why i get this warning :

"EL Warning]: java.sql.SQLException: No suitable driver found for
jdbc:derby://localhost:1527/comics;create=true"


Tom Ware wrote:
HI Christian,

   We initially tried to use the Apache Derby bundle, but it is missing
some of the necessary OSGi exports. Basically, it is a Plugin to Eclipse, but does not seem to be tested as a component to the type of OSGi application we are trying to run.

   The challenge we have with JDBC drivers is that the Eclipse process
dictates that anything that gets checked into our SVN repository be completely clean from an IP point of view. (i.e. the license needs to allow us to share it in that way) JDBC drivers do not tend to have that kind of license, and as a result, we cannot check the actual code into our repository. That is why we have chosen a strategy based on pointing to a version of the JDBC jar already obtained by the user. If you have suggestions about how we could do this in an easier-to-understand way, please let us know.

-Tom

csergiu77 wrote:

I managed to start i guess since i see a the tree and if i expand it
works.

What i am courious is why the derby bundle was done in the way it was
commited and not as a plugin from an existin jar archive ?

Maybe to be more extensible since ?

My second question is related to the fact that there is a apache bundle
for
eclipse http://db.apache.org/derby/integrate/plugin_howto.html


This can;t be used as we used as you use the pesistnce jar's in this
example
?

PS and i get this depsite that is works
EL Warning]: java.sql.SQLException: No suitable driver found for
jdbc:derby://localhost:1527/comics;create=true
[EL Config]: Connection(11930515)--Connected:
jdbc:derby://localhost:1527/comics;create=true
	User: app
	Database: Apache Derby  Version: 10.4.2.0 - (689064)
	Driver: Apache Derby Network Client JDBC Driver  Version: 10.4.2.0 -
(689064)
[EL Info]: bundleresource://4/-comics login successful
[EL Fine]: Connection(2091149)--ALTER TABLE ISSUE DROP CONSTRAINT
FK_ISSUE_TITLE_ID

...........
..........


THX

Cristian



Tom Ware wrote:
Hi Christian,

   I'll try to answer your questions.

csergiu77 wrote:
1) Does this Commics sample that Tim worte work on Ganymede ? since
when
i
try to run it another instance of eclipse is show
I believe the comics example in SVN is a different one from Tim's
example. Tim's example goes further to show some more advanced Service-related
funtionality.

The Comics example on the SVN server works on Ganymede. Can you be more specific about the problem you are seeing?


2)On the sample from svn all sample is a tree or i did something wrong ?(it
was hard to configure until i start the sample)
The Comics example is very simple.  There are two components that
interact
with the database. The setup component populates the database. The RCP component gets data from the database to populate a simple tree.

-Tom

THX



Chr|stian wrote:
Tim Hollosy skrev:
Good to hear, also if you haven't yet check out my example eclipse
app
that uses the comics db:

<shameless plug>
http://www.weheartcode.com/2008/08/27/eclipselink-in-j2se-rcp-applications/
</shameless plug>
I actually have tried to implement the way you did things in my own test. I ran into a anoying problem (getting an EntityManagerFactory that's null), but I guess I'll give it another go now. :-)

--
Sincerly
Christian Michelsen
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users





Back to the top