Précédent   Forum du club des développeurs et IT Pro > Java > Serveurs, conteneurs, et Java EE > Modularisation (OSGi, SCA...)
Modularisation (OSGi, SCA...) Forum d'entraide sur les architectures modulaires à base de composants et services (OSGi, SCA...). Avant de poster -> Les cours OSGi
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 21/06/2010, 22h22   #1
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Par défaut Warning avec Log4j

Bonjour,

J'essaye de suivre l'excellent tutoriel Conception d’un client Eclipse RCP et serveur OSGI avec Spring DM

Ce tutoriel m'apporte beaucoup mais j'ai deux petit bug que je n'arrive à résoudre.
J'ai lu plusieurs fois ce tutoriel et j'ai fais des recherches sur la toile mais je bloque.

Je réalise un Client Eclipse RCP avec une base derby

1er bug :
Code :
1
2
3
 
log4j:WARN No appenders could be found for logger (org.springframework.osgi.extender.internal.activator.ContextLoaderListener).
log4j:WARN Please initialize the log4j system properly.
Je ne comprend pas pourquoi, j'ai ce warning.
J'ai créer un fragment avec le bon Host Plug-ing
J'ai aussi créer le fichier properties
Code :
1
2
3
4
5
 
log4j.rootLogger=info, con
log4j.appender.con=org.apache.log4j.ConsoleAppender
log4j.appender.con.layout=org.apache.log4j.PatternLayout
log4j.appender.con.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
Ce fragment fonctionnait très bien jusqu'au billet 19. Mais depuis j'ai ce Warning. Il me semble avoir bien suivi le tuto notament le fichier persistence.xml dans le bundle dao.jpa

Code :
1
2
3
4
5
6
7
8
9
10
11
 
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
	version="1.0">
 
	<persistence-unit name="pegase" transaction-type="RESOURCE_LOCAL">
 
		<class>org.pegase.domain.Station</class>
 
	</persistence-unit>
 
</persistence>
Bref, si vous avez suivi ce tutoriel ou si vous savez comment supprimer ce warning, je suis preneur.

D'avance merci
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/06/2010, 00h27   #2
azerr
Membre Expert

 
Avatar de azerr
 
Homme Angelo Zerr
Ingénieur Etude JEE/Eclipse RCP
Inscription : avril 2006
Messages : 913
Détails du profil
Informations personnelles :
Nom : Homme Angelo Zerr
Âge : 36
Localisation : France, Drôme (Rhône Alpes)

Informations professionnelles :
Activité : Ingénieur Etude JEE/Eclipse RCP
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2006
Messages : 913
Points : 1 426
Points : 1 426
Bonsoir pingoui,

Merci de tes encouragements pour le tutorial, ca fait plaisir que ca puisse servir. Pour ton probleme de log4j j'avais tout explique ici
Apperement tu as tout fait pareil, mais peut etre que ca meritait de relire la section? Ton fragment log4j est il dans la Target Platform?

Tu parles de 2 bugs, mais je n'ai pas bien compris ou est ton 2 eme bug.

Angelo
azerr est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/06/2010, 01h09   #3
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Bonjour Angelo,

Merci d'avoir répondu.... j'ai déjà pas beaucoup de cheveux, mais je me les suis arrachés

Citation:
Envoyé par azerr Voir le message
Apperement tu as tout fait pareil, mais peut etre que ca meritait de relire la section? Ton fragment log4j est il dans la Target Platform?
J'ai lu et relu ce billet mais l'erreur persiste. Le fragment log4j est bien sélectionné
D'ailleurs le bug est arrivées bien après dans l'évolution du tuto


J'ai recommencer le tuto depuis le début et désormais, j'ai d'autres erreurs

Je pense que c'est due que l'adresse de mon fichier derby.properties est introuvable. mais je ne vois pas l'erreur. Le fichier se trouve dans le fragment

org.pegase.config.dao.datasource.derby.fragment
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
 
	<bean id="propertyConfigurer"
		class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="location">
			<value>classpath:org/pegase/config/dao/datasource/derby/fragment/derby.properties</value>
		</property>
	</bean>
 
</beans>
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
 
osgi> !SESSION 2010-06-24 01:10:41.183 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=fr_FR
Framework arguments:  -application org.pegase.rcpclient.application
Command-line arguments:  -application org.pegase.rcpclient.application -data /Users/vince/Documents/Programmation/workspace/../runtime-org.pegase.rcpclient.application -dev file:/Users/vince/Documents/Programmation/workspace/.metadata/.plugins/org.eclipse.pde.core/org.pegase.rcpclient.application/dev.properties -os macosx -ws cocoa -arch x86_64 -console -consoleLog
 
!ENTRY org.eclipse.ui 4 4 2010-06-24 01:10:42.860
!MESSAGE Unable to load UI activator
 
!ENTRY org.eclipse.ui 4 4 2010-06-24 01:10:42.860
!MESSAGE Unable to load UI activator
!STACK 0
org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1073)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:278)
	at org.eclipse.ui.internal.WorkbenchPlugin.start(WorkbenchPlugin.java:899)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)
	at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:454)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:183)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:576)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:546)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:477)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:465)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:445)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:457)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
Start Bundle [org.pegase.services]
Start Bundle [org.pegase.dao.jpa]
Start Bundle [org.pegase.services.impl]
Start Bundle [org.pegase.dao]
Start Bundle [org.pegase.rcpclient]
0    [Start Level Event Dispatcher] INFO  org.springframework.osgi.extender.internal.activator.ContextLoaderListener  - Starting [org.springframework.osgi.extender] bundle v.[1.2.0]
115  [Start Level Event Dispatcher] INFO  org.springframework.osgi.extender.internal.support.ExtenderConfiguration  - No custom extender configuration detected; using defaults...
119  [Start Level Event Dispatcher] INFO  org.springframework.scheduling.timer.TimerTaskExecutor  - Initializing Timer
162  [Start Level Event Dispatcher] INFO  org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator  - Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Pegase DAO/Jpa (org.pegase.dao.jpa)]
185  [SpringOsgiExtenderThread-1] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@3d015a9e: display name [OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.jpa, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Jun 24 01:10:43 CEST 2010]; root of context hierarchy
185  [SpringOsgiExtenderThread-1] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Unpublishing application context OSGi service for bundle Pegase DAO/Jpa (org.pegase.dao.jpa)
186  [Start Level Event Dispatcher] INFO  org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator  - Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Pegase Service implements (org.pegase.services.impl)]
186  [SpringOsgiExtenderThread-2] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@693e4a5a: display name [OsgiBundleXmlApplicationContext(bundle=org.pegase.services.impl, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Jun 24 01:10:43 CEST 2010]; root of context hierarchy
186  [SpringOsgiExtenderThread-2] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Unpublishing application context OSGi service for bundle Pegase Service implements (org.pegase.services.impl)
206  [Start Level Event Dispatcher] INFO  org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator  - Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Pegase Jpa/Hibernate DAO (org.pegase.dao.jpa.vendor.hibernate)]
207  [SpringOsgiExtenderThread-3] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@64552a2b: display name [OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.jpa.vendor.hibernate, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Jun 24 01:10:43 CEST 2010]; root of context hierarchy
207  [SpringOsgiExtenderThread-3] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Unpublishing application context OSGi service for bundle Pegase Jpa/Hibernate DAO (org.pegase.dao.jpa.vendor.hibernate)
208  [Start Level Event Dispatcher] INFO  org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator  - Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Pegase RCP Client (org.pegase.rcpclient; singleton:=true)]
209  [SpringOsgiExtenderThread-4] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@609a18a0: display name [OsgiBundleXmlApplicationContext(bundle=org.pegase.rcpclient, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Jun 24 01:10:43 CEST 2010]; root of context hierarchy
209  [SpringOsgiExtenderThread-4] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Unpublishing application context OSGi service for bundle Pegase RCP Client (org.pegase.rcpclient; singleton:=true)
211  [Start Level Event Dispatcher] INFO  org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator  - Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Pegase Datasource DAO (org.pegase.dao.datasource)]
212  [SpringOsgiExtenderThread-5] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@4c767286: display name [OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.datasource, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Jun 24 01:10:43 CEST 2010]; root of context hierarchy
212  [SpringOsgiExtenderThread-5] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Unpublishing application context OSGi service for bundle Pegase Datasource DAO (org.pegase.dao.datasource)
253  [SpringOsgiExtenderThread-1] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://20.fwk1177264411/META-INF/spring/module-context.xml]
254  [SpringOsgiExtenderThread-3] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://43.fwk1177264411/META-INF/spring/module-context.xml]
263  [SpringOsgiExtenderThread-4] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://48.fwk1177264411/META-INF/spring/module-context.xml]
271  [SpringOsgiExtenderThread-2] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://25.fwk1177264411/META-INF/spring/module-context.xml]
272  [SpringOsgiExtenderThread-5] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://53.fwk1177264411/META-INF/spring/module-context.xml]
Start Bundle [org.pegase.domain]
394  [Start Level Event Dispatcher] INFO  org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator  - Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Pegase JPA/DAO Database Derby (org.pegase.dao.jpa.database.derby)]
395  [SpringOsgiExtenderThread-6] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@5059cbda: display name [OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.jpa.database.derby, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Jun 24 01:10:43 CEST 2010]; root of context hierarchy
395  [SpringOsgiExtenderThread-6] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Unpublishing application context OSGi service for bundle Pegase JPA/DAO Database Derby (org.pegase.dao.jpa.database.derby)
396  [SpringOsgiExtenderThread-6] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://69.fwk1177264411/META-INF/spring/module-context.xml]
Persistence bundle starting...
Persistence bundle started.
607  [SpringOsgiExtenderThread-6] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://69.fwk1177264411/META-INF/spring/module-osgi-context.xml]
617  [SpringOsgiExtenderThread-2] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://25.fwk1177264411/META-INF/spring/module-osgi-context.xml]
621  [SpringOsgiExtenderThread-5] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://32.fwk1177264411/META-INF/spring/module-context.xml]
628  [SpringOsgiExtenderThread-4] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://48.fwk1177264411/META-INF/spring/module-osgi-context.xml]
669  [SpringOsgiExtenderThread-3] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://56.fwk1177264411/META-INF/spring/module-context.xml]
760  [SpringOsgiExtenderThread-5] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://53.fwk1177264411/META-INF/spring/module-osgi-context.xml]
823  [SpringOsgiExtenderThread-4] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Bean factory for application context [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@609a18a0]: org.springframework.beans.factory.support.DefaultListableBeanFactory@326cbecf
 
!ENTRY org.eclipse.osgi 2 0 2010-06-24 01:10:43.994
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-24 01:10:43.994
!MESSAGE Bundle initial@reference:file:../workspace/spring-target-platform-dao/jpa-hibernate/com.springsource.slf4j.api-1.5.6.jar/ was not resolved.
!SUBENTRY 2 com.springsource.slf4j.api 2 0 2010-06-24 01:10:43.994
!MESSAGE Missing imported package org.slf4j.impl_[1.5.6,2.0.0).
846  [SpringOsgiExtenderThread-3] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://43.fwk1177264411/META-INF/spring/module-osgi-context.xml]
860  [SpringOsgiExtenderThread-6] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Bean factory for application context [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@5059cbda]: org.springframework.beans.factory.support.DefaultListableBeanFactory@3b629e96
868  [SpringOsgiExtenderThread-1] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from URL [bundleentry://20.fwk1177264411/META-INF/spring/module-osgi-context.xml]
870  [SpringOsgiExtenderThread-2] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Bean factory for application context [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@693e4a5a]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4ad61301
Start RCP Application
892  [SpringOsgiExtenderThread-6] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor  - No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.jpa.database.derby, config=osgibundle:/META-INF/spring/*.xml)
910  [SpringOsgiExtenderThread-7] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory  - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3b629e96: defining beans [database,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0]; root of factory hierarchy
928  [SpringOsgiExtenderThread-5] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Bean factory for application context [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@4c767286]: org.springframework.beans.factory.support.DefaultListableBeanFactory@43422d0b
934  [SpringOsgiExtenderThread-5] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor  - No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.datasource, config=osgibundle:/META-INF/spring/*.xml)
948  [SpringOsgiExtenderThread-8] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory  - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@43422d0b: defining beans [dataSource,propertyConfigurer,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0]; root of factory hierarchy
987  [SpringOsgiExtenderThread-8] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@43422d0b: defining beans [dataSource,propertyConfigurer,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0]; root of factory hierarchy
989  [SpringOsgiExtenderThread-8] ERROR org.springframework.osgi.extender.internal.activator.ContextLoaderListener  - Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.datasource, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [bundleentry://53.fwk1177264411/META-INF/spring/module-context.xml]: Invocation of init method failed; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '${database.driverClassName}'
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
	at java.lang.Thread.run(Thread.java:637)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '${database.driverClassName}'
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1146)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
	... 17 more
Caused by: java.lang.ClassNotFoundException: ${database.driverClassName} not found from bundle [org.pegase.dao.datasource]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1138)
	... 24 more
Caused by: java.lang.ClassNotFoundException: ${database.driverClassName}
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 27 more
Exception in thread "SpringOsgiExtenderThread-8" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [bundleentry://53.fwk1177264411/META-INF/spring/module-context.xml]: Invocation of init method failed; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '${database.driverClassName}'
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
	at java.lang.Thread.run(Thread.java:637)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '${database.driverClassName}'
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1146)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
	... 17 more
Caused by: java.lang.ClassNotFoundException: ${database.driverClassName} not found from bundle [org.pegase.dao.datasource]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1138)
	... 24 more
Caused by: java.lang.ClassNotFoundException: ${database.driverClassName}
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 27 more
1012 [SpringOsgiExtenderThread-1] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Bean factory for application context [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@3d015a9e]: org.springframework.beans.factory.support.DefaultListableBeanFactory@7b4653a3
1015 [SpringOsgiExtenderThread-3] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Bean factory for application context [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@64552a2b]: org.springframework.beans.factory.support.DefaultListableBeanFactory@263945e2
1093 [SpringOsgiExtenderThread-2] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager  - Adding OSGi service dependency for importer [&stationDAO] matching OSGi filter [(objectClass=org.pegase.dao.IStationDao)]
1093 [SpringOsgiExtenderThread-2] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager  - OsgiBundleXmlApplicationContext(bundle=org.pegase.services.impl, config=osgibundle:/META-INF/spring/*.xml) is waiting for unsatisfied dependencies [[&stationDAO]]
1098 [SpringOsgiExtenderThread-4] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor  - No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=org.pegase.rcpclient, config=osgibundle:/META-INF/spring/*.xml)
1101 [SpringOsgiExtenderThread-9] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory  - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@326cbecf: defining beans [org.pegase.rcpclient.view,stationService]; root of factory hierarchy
1113 [SpringOsgiExtenderThread-1] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager  - Adding OSGi service dependency for importer [&dataSource] matching OSGi filter [(objectClass=javax.sql.DataSource)]
1113 [SpringOsgiExtenderThread-1] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager  - Adding OSGi service dependency for importer [&jpaProperties] matching OSGi filter [(objectClass=java.util.Properties)]
1114 [SpringOsgiExtenderThread-1] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager  - Adding OSGi service dependency for importer [&jpaVendorAdapter] matching OSGi filter [(objectClass=org.springframework.orm.jpa.JpaVendorAdapter)]
1114 [SpringOsgiExtenderThread-1] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager  - OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.jpa, config=osgibundle:/META-INF/spring/*.xml) is waiting for unsatisfied dependencies [[&dataSource, &jpaProperties, &jpaVendorAdapter]]
1132 [SpringOsgiExtenderThread-3] INFO  org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor  - No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.jpa.vendor.hibernate, config=osgibundle:/META-INF/spring/*.xml)
Exception in thread "SpringOsgiExtenderThread-10" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaVendorAdapter' defined in URL [bundleentry://43.fwk1177264411/META-INF/spring/module-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/ConnectionHandle
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
	at java.lang.Thread.run(Thread.java:637)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/ConnectionHandle
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
	... 18 more
Caused by: java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/ConnectionHandle
	at org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter.<init>(HibernateJpaVendorAdapter.java:60)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
	... 20 more
Caused by: java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.ConnectionHandle
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	... 26 more
1134 [SpringOsgiExtenderThread-10] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory  - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@263945e2: defining beans [jpaProperties,jpaVendorAdapter,propertyConfigurer,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#1]; root of factory hierarchy
1138 [SpringOsgiExtenderThread-10] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@263945e2: defining beans [jpaProperties,jpaVendorAdapter,propertyConfigurer,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#1]; root of factory hierarchy
1138 [SpringOsgiExtenderThread-10] ERROR org.springframework.osgi.extender.internal.activator.ContextLoaderListener  - Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.jpa.vendor.hibernate, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaVendorAdapter' defined in URL [bundleentry://43.fwk1177264411/META-INF/spring/module-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/ConnectionHandle
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
	at java.lang.Thread.run(Thread.java:637)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/ConnectionHandle
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
	... 18 more
Caused by: java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/ConnectionHandle
	at org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter.<init>(HibernateJpaVendorAdapter.java:60)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
	... 20 more
Caused by: java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.ConnectionHandle
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	... 26 more
1143 [SpringOsgiExtenderThread-7] INFO  org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean  - Publishing service under classes [{java.lang.String}]
1145 [SpringOsgiExtenderThread-7] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Publishing application context as OSGi service with properties {org.springframework.context.service.name=org.pegase.dao.jpa.database.derby, Bundle-SymbolicName=org.pegase.dao.jpa.database.derby, Bundle-Version=1.0.0.qualifier}
1145 [SpringOsgiExtenderThread-9] INFO  org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext  - Publishing application context as OSGi service with properties {org.springframework.context.service.name=org.pegase.rcpclient, Bundle-SymbolicName=org.pegase.rcpclient, Bundle-Version=1.0.0.qualifier}
1146 [SpringOsgiExtenderThread-7] INFO  org.springframework.osgi.extender.internal.activator.ContextLoaderListener  - Application context successfully refreshed (OsgiBundleXmlApplicationContext(bundle=org.pegase.dao.jpa.database.derby, config=osgibundle:/META-INF/spring/*.xml))
1146 [SpringOsgiExtenderThread-9] INFO  org.springframework.osgi.extender.internal.activator.ContextLoaderListener  - Application context successfully refreshed (OsgiBundleXmlApplicationContext(bundle=org.pegase.rcpclient, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.osgi.service.ServiceUnavailableException: service matching filter=[(objectClass=org.pegase.services.IStationService)] unavailable
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterceptor.java:419)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at $Proxy3.getAllStation(Unknown Source)
	at org.pegase.rcpclient.View.createPartControl(View.java:85)
	at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:367)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
	at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:529)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:649)
	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
	at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568)
	at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272)
	at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:982)
	at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2626)
	at org.eclipse.ui.internal.WorkbenchWindow$27.run(WorkbenchWindow.java:2965)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2946)
	at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:761)
	at org.eclipse.ui.internal.Workbench$21.runWithException(Workbench.java:1045)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3405)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3102)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
	at org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1384)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:3945)
	at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1379)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2335)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.pegase.rcpclient.Application.start(Application.java:21)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	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:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

D'avance merci pour ton aide
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/06/2010, 08h58   #4
azerr
Membre Expert

 
Avatar de azerr
 
Homme Angelo Zerr
Ingénieur Etude JEE/Eclipse RCP
Inscription : avril 2006
Messages : 913
Détails du profil
Informations personnelles :
Nom : Homme Angelo Zerr
Âge : 36
Localisation : France, Drôme (Rhône Alpes)

Informations professionnelles :
Activité : Ingénieur Etude JEE/Eclipse RCP
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2006
Messages : 913
Points : 1 426
Points : 1 426
Bonjour d'apres ta trace tu as pas mal d'erreur. Ce qui est important c'est de configurer ton launch correctement :

1. cochez Clear the configuration area before launching => http://angelozerr.wordpress.com/2010...RCPLaunchRules

2. Cliquez sur "Validate Plugins" pour verifier que tous les bundles requis sont dans la Target Platform.

Code :
!MESSAGE Missing imported package org.slf4j.impl_[1.5.6,2.0.0).
N'aurrais tu pas oublie de metter dans la Target Platform ce bundle? "Validate Plugins" devrait t'aider la dessus.

Code :
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '${database.driverClassName}'
La il n'arrive pas a resoudre ton fichier de propriete derby.properties et il tente de se connecter avec le driver ${database.driverClassName} (comme tu as pu remarquer).

derby.properties est il dans le package org/pegase/config/dao/datasource/derby/fragment/ du rep src du fragment org.pegase.config.dao.datasource.derby.fragment.

Ton fragment est il coche dans le launch?

Ton fragment as il le bon Host (lie a ton bundle qui doit utiliser ces proprietes).

Dan sun premier temps tu peux faire sans fragment et tout mettre dans ton bundle qui utilise derby.properties pour tester.

Bon courage

Angelo
azerr est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/06/2010, 14h38   #5
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Citation:
Envoyé par azerr Voir le message

1. cochez Clear the configuration area before launching => http://angelozerr.wordpress.com/2010...RCPLaunchRules

2. Cliquez sur "Validate Plugins" pour verifier que tous les bundles requis sont dans la Target Platform.
J'ai vérifier est j'ai bien néttoyer la config et je n'ai pas de problèmes détectés avec "Validate Plugins"


Citation:

Code :
!MESSAGE Missing imported package org.slf4j.impl_[1.5.6,2.0.0).


N'aurrais tu pas oublie de metter dans la Target Platform ce bundle? "Validate Plugins" devrait t'aider la dessus.
Je n'ai pas d'erreur avec "Validate Plugins" et j'ai importé dans la target platForm

Code :
1
2
3
4
 
com.springsource.org.apache.log4j-1.2.15.jar
com.springsource.slf4j.api-1.5.0.jar
com.springsource.slf4j.log4j-1.5.0.jar
comme dans le tutoriel


Citation:
Code :
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '${database.driverClassName}'
La il n'arrive pas a resoudre ton fichier de propriete derby.properties et il tente de se connecter avec le driver ${database.driverClassName} (comme tu as pu remarquer).

derby.properties est il dans le package org/pegase/config/dao/datasource/derby/fragment/ du rep src du fragment org.pegase.config.dao.datasource.derby.fragment.

Ton fragment est il coche dans le launch?

Ton fragment as il le bon Host (lie a ton bundle qui doit utiliser ces proprietes).

Dan sun premier temps tu peux faire sans fragment et tout mettre dans ton bundle qui utilise derby.properties pour tester.
Pour résoudre mon problème provisoirement, j'ai modifié mon module-context (dao.datasource)pour prendre directement le properties de derby

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
 
	<!-- DataSource -->
	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
		p:driverClassName="org.apache.derby.jdbc.EmbeddedDriver" p:url="jdbc:derby:/Users/Shared/database/vince/pegase"
		p:username="pegase" p:password="pegase"
		init-method="createDataSource" destroy-method="close">
	</bean>
 
</beans>
Je regarderai ça plus tard
Depuis, j'ai beaucoup moins d'erreur

1er bug: (toujours mon problème de sl4j)
Code :
1
2
3
4
5
6
7
 
!ENTRY org.eclipse.osgi 2 0 2010-06-24 14:06:45.319
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-06-24 14:06:45.319
!MESSAGE Bundle initial@reference:file:../workspace/spring-target-platform-dao/jpa-hibernate/com.springsource.slf4j.api-1.5.6.jar/ was not resolved.
!SUBENTRY 2 com.springsource.slf4j.api 2 0 2010-06-24 14:06:45.319
!MESSAGE Missing imported package org.slf4j.impl_[1.5.6,2.0.0).

2ème bug:
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
 
org.springframework.osgi.service.ServiceUnavailableException: service matching filter=[(objectClass=org.pegase.services.IStationService)] unavailable
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterceptor.java:419)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at $Proxy3.getAllStation(Unknown Source)
	at org.pegase.rcpclient.View.createPartControl(View.java:85)
	at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:367)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
	at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:529)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:649)
	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
	at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568)
	at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272)
	at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:982)
	at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2626)
	at org.eclipse.ui.internal.WorkbenchWindow$27.run(WorkbenchWindow.java:2965)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2946)
	at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:761)
	at org.eclipse.ui.internal.Workbench$21.runWithException(Workbench.java:1045)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3405)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3102)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
	at org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1384)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:3945)
	at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1379)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2335)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.pegase.rcpclient.Application.start(Application.java:21)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	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:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Pour info, j'ai passé l'autoStart mon servives.impl à true comme dans le billet 8

Merci pour ton aide
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/06/2010, 16h17   #6
azerr
Membre Expert

 
Avatar de azerr
 
Homme Angelo Zerr
Ingénieur Etude JEE/Eclipse RCP
Inscription : avril 2006
Messages : 913
Détails du profil
Informations personnelles :
Nom : Homme Angelo Zerr
Âge : 36
Localisation : France, Drôme (Rhône Alpes)

Informations professionnelles :
Activité : Ingénieur Etude JEE/Eclipse RCP
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2006
Messages : 913
Points : 1 426
Points : 1 426
Bonjour,

Pour ton erreur de package qu'il ne trouve avec SL4J essaie d'importer ce packag epour voir si tu l'as. Mais c'est difficile de te t'aider comme ca.

Pour ton erreur de service unavailable, c'est peut etre qu'il n'arrive pas a le resoudre la premiere fois mais que apres si tu essaie de le reutiliser ca marche. Ce cas arrive de temps en temps qued je lancais mon appli RCP qui devait afficher la liste des User (ex : la base de donnee prend du temps pour demarrer). C'est pour ca que j'avais ajouter un bouton refresh pour rappeler le service et c'est pour ca qu eles cardinality sont tres importante sinon ton appli n es'affiche pas.

Angelo
azerr est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/06/2010, 15h25   #7
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Salut Angelo,

Citation:
Envoyé par azerr Voir le message
Pour ton erreur de service unavailable, c'est peut etre qu'il n'arrive pas a le resoudre la premiere fois mais que apres si tu essaie de le reutiliser ca marche. Ce cas arrive de temps en temps qued je lancais mon appli RCP qui devait afficher la liste des User (ex : la base de donnee prend du temps pour demarrer). C'est pour ca que j'avais ajouter un bouton refresh pour rappeler le service et c'est pour ca qu eles cardinality sont tres importante sinon ton appli n es'affiche pas.
J'ai aussi ajouté un bouton pour rafraichir la vue mais j'ai toujours cette erreur et les cardinality sont bien inséreés

Bref, je crois que je ferais sans ORM...
J'arrive à faire beaucoup d'autre chose mais j'arrive pas à utiliser JPA/Hibernate dans un contexte OSGi

Merci pour ton aide
Vince
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/06/2010, 00h06   #8
azerr
Membre Expert

 
Avatar de azerr
 
Homme Angelo Zerr
Ingénieur Etude JEE/Eclipse RCP
Inscription : avril 2006
Messages : 913
Détails du profil
Informations personnelles :
Nom : Homme Angelo Zerr
Âge : 36
Localisation : France, Drôme (Rhône Alpes)

Informations professionnelles :
Activité : Ingénieur Etude JEE/Eclipse RCP
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2006
Messages : 913
Points : 1 426
Points : 1 426
Bonsoir,

Desole de ne pas pouvoir t'aider plus. C'est tres difficile pour moi de t'aider sans voir le probleme. Concernant JPA dans un contexte OSGi, je pense qu'il vaut mieux partir sur EclipseLink qui implemente JPA2 et dont le but est de faire fonctionner JPA dans un contexte OSGi (Les proxy CGLIB (ou Javassist avec Hibernate sont un cauchemard). EclipseLink utilise le Weaving (changement de byteocode a la volee pour gerer le lazy loading alors que Hibernate utilise les proxy CGLIB ou Javassist).

J'en ai pas encore parle dan smes billets, mais si jamais tu souhaites faire fonctionner EclipseLink avec Spring+OSGi, voir http://angelozerr.wordpress.com/about/springweaver/

Angelo
azerr est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/06/2010, 06h47   #9
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Ok merci pour l'info, Effectivement hibernate est un cauchemar dans une contexte OSGi
je vais regarder du côté de EclipseLink

vince
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/06/2010, 10h50   #10
azerr
Membre Expert

 
Avatar de azerr
 
Homme Angelo Zerr
Ingénieur Etude JEE/Eclipse RCP
Inscription : avril 2006
Messages : 913
Détails du profil
Informations personnelles :
Nom : Homme Angelo Zerr
Âge : 36
Localisation : France, Drôme (Rhône Alpes)

Informations professionnelles :
Activité : Ingénieur Etude JEE/Eclipse RCP
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2006
Messages : 913
Points : 1 426
Points : 1 426
Salut Vince,

Il faut cependant noter que dans les 2 cas (EclipseLink et Hibernate), il faut que le bundle domain importe certains packages EclipseLink ou Hibernate car la classe domaine est enrichit (soit par le changement de bytecode, soit par un proxy CGLIB, Javassist) pour gérer le mode lazy 'et d'autres trucs).

Pour cela il faut importer ces packages directement dans le bundle Domain ou creer un fragment (ce qui est beaucoup plus propre).

Mais j'ai trouve une solution encore plus elegante avec Equinox qui est capable de gerer les dynamic import ou en gros c'est le conteneur OSGi qui ajoute les imports qu'il faut. J'ai utilise cette technique dans http://angelozerr.wordpress.com/2010...ImportPackages

Les imports packages se font en transparence, ce qui evite de creer un fragment ou d'importer les packages pour chacun des bundles domain.

Ca marche qu'avec EclipseLink car ca se base sur le Weaving.

Angelo
azerr est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/06/2010, 22h13   #11
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Salut Angelo,
Ca marche
Effectivement, avec EclipseLink c'est plus simple.
Je n'ai plus d'erreur

Il me reste quelques petites questions.

1) Spring gère les connections à la base de donnée.
Mon application se trouve sur plusieurs postes différents et le seul moyen de partager les données que j'ai trouvé, c'est de mettre à dispo la BD sur un disque dur partagé. (Je ne peux pas installer un serveur). J'utilise derby Embedded.
Afin de libérer ma BdD,dans mon appli non "OSGifié", j'ouvre et je ferme les connections après chaque requêtes. (un peu lourd).
Comment prendre la main sur spring ou lui indiquer de fermer la BdD après chaque requête ?

2) A la fin du billet 19, § Create User (avant la conclusion). Tu as marqué
Citation:
Pensez a bien ajouter le namespace tx.
Où d'ou t'on ajouter ce namespace tx ?


3) Mon anglais, n'est pas trop au point.... et je n'ai pas bien saisi les avantages du lazy et donc les import dynamic

Encore merci pour le tutoriel et pour ton aide.
J'ai pris du temps pour comprendre mais cela ma fait beaucoup avancer sur mon projet
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/06/2010, 00h23   #12
azerr
Membre Expert

 
Avatar de azerr
 
Homme Angelo Zerr
Ingénieur Etude JEE/Eclipse RCP
Inscription : avril 2006
Messages : 913
Détails du profil
Informations personnelles :
Nom : Homme Angelo Zerr
Âge : 36
Localisation : France, Drôme (Rhône Alpes)

Informations professionnelles :
Activité : Ingénieur Etude JEE/Eclipse RCP
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2006
Messages : 913
Points : 1 426
Points : 1 426
Bonsoir,

>1) Spring gère les connections à la base de donnée.
> Comment prendre la main sur spring ou lui indiquer de fermer la BdD après > chaque requête ?

Si tu utilises Spring, il te gare ca, non ? J'ai pas bien compris ta question?

> 2) Où d'ou t'on ajouter ce namespace tx ?

J'ai change ma phrase :

Citation:
Vous pouvez remarquer qu'un nouveau namespace xmlns:tx="http://www.springframework.org/schema/tx" a été ajouté au fichier XML Spring pour pouvoir utiliser
<tx:annotation-driven.
>3) Mon anglais, n'est pas trop au point.... et je n'ai pas bien saisi les >avantages du lazy et donc les import dynamic

Tu ne connais pas le lazy loading avec Hibernate (sans JPA)? Imagines que tu aies User#getRoles() et que lorsque tu charges un User ca ne charge que le nom, prenom du User 'et pas sa liste de roles) et que la liste de role se charge que quand tu appelles User#getRoles(). C'est ca le lazy loading. En hibernate c'est gere via des Proxy Hibernate CGLIB ou Javassist qui ecoute les appeles des methodes. En EclipseLink c'est la classe User qui lors de son chargement est modifie pour ajouter des listeners EclipseLink et surveiller les appels aux methodes.

Angelo
azerr est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/06/2010, 18h17   #13
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Citation:
Envoyé par azerr Voir le message
Bonsoir,

>1) Spring gère les connections à la base de donnée.
> Comment prendre la main sur spring ou lui indiquer de fermer la BdD après > chaque requête ?

Si tu utilises Spring, il te gare ca, non ? J'ai pas bien compris ta question?
Je souhaiterai que spring ferme la connexion avec la base de donnée après chaque transaction. Pour que les autre utilisateurs puissent bénéficier de la base. Est-ce possible ?

Citation:
> 2) Où d'ou t'on ajouter ce namespace tx ?
J'ai change ma phrase :
Citation:
Vous pouvez remarquer qu'un nouveau namespace xmlns:tx="http://www.springframework.org/schema/tx" a été ajouté au fichier XML Spring pour pouvoir utiliser
<tx:annotation-driven.
Impecable. Merci

Merci pour les information sur le lazy loading

Vince
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 01/07/2010, 00h41   #14
azerr
Membre Expert

 
Avatar de azerr
 
Homme Angelo Zerr
Ingénieur Etude JEE/Eclipse RCP
Inscription : avril 2006
Messages : 913
Détails du profil
Informations personnelles :
Nom : Homme Angelo Zerr
Âge : 36
Localisation : France, Drôme (Rhône Alpes)

Informations professionnelles :
Activité : Ingénieur Etude JEE/Eclipse RCP
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2006
Messages : 913
Points : 1 426
Points : 1 426
Citation:
Je souhaiterai que spring ferme la connexion avec la base de donnée après chaque transaction. Pour que les autre utilisateurs puissent bénéficier de la base. Est-ce possible ?
Mais c'est ce que Spring effectue non? Je n'ai peut etre pas bien compris la question? Je ne sais pas si c'est ce que tu utilises, mais il est conseille d'utiliser un pooling de connection comme ce que j'ai mis en place dans les billets avec DBCP.

Angelo
azerr est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 01/07/2010, 17h29   #15
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Citation:
Envoyé par azerr Voir le message
Mais c'est ce que Spring effectue non? P[/URL].
Spring ne ferme pas la connection à la base. Par exemple avec une base derby embedded, on ne peux utiliser la base avec une autre appli sur un autre poste (JVM) tant que la première appli ne ferme pas la connexion.
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 01/07/2010, 19h01   #16
azerr
Membre Expert

 
Avatar de azerr
 
Homme Angelo Zerr
Ingénieur Etude JEE/Eclipse RCP
Inscription : avril 2006
Messages : 913
Détails du profil
Informations personnelles :
Nom : Homme Angelo Zerr
Âge : 36
Localisation : France, Drôme (Rhône Alpes)

Informations professionnelles :
Activité : Ingénieur Etude JEE/Eclipse RCP
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2006
Messages : 913
Points : 1 426
Points : 1 426
Ok, je ne pense pas que ca soit un probleme de Spring mais plutot un probleme de Derby. A mon avis avec du pur JDBC il y a le même problème. Le lien Derby suivant dit :

Citation:
However, only one JVM may boot ("open") that database, so multiple applications running in different JVMs cannot access the same database.
Ca devrait repondre a ta question.

Angelo
azerr est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 01/07/2010, 20h52   #17
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Citation:
Envoyé par azerr Voir le message
Ok, je ne pense pas que ca soit un probleme de Spring mais plutot un probleme de Derby. A mon avis avec du pur JDBC il y a le même problème. Le lien Derby suivant dit :



Ca devrait repondre a ta question.

Angelo
Oui je connais bien cette problématique c'est pourquoi, je me demande si Spring peut fermer la base après une transaction. Avant de sur le tutoriel, dans ma couche DAO, j'ouvrais la base, je faisais ma requête et je fermais la base pour la rendre disponible.
Y a t'il une annotation ou un paramètre pour que Spring ferme la connexion à la base après x milliseconde ou après une transaction ?

Vince
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 04/07/2010, 10h10   #18
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Bonjour,

J'ai un dernier petit bug que je n'arrive pas à résoudre.
J'ai suivie le tutoriel sur springweawer et j'ai cette erreur :

Code :
1
2
3
4
5
6
7
8
9
10
11
 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stationService' defined in URL [bundleentry://51.fwk2066473405/META-INF/spring/module-context.xml]: Cannot resolve reference to bean 'stationDao' while setting bean property 'stationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stationDao': FactoryBean threw exception on object creation; nested exception is java.lang.NoClassDefFoundError: org/eclipse/persistence/indirection/WeavedAttributeValueHolderInterface
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
	at .........
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stationDao': FactoryBean threw exception on object creation; nested exception is java.lang.NoClassDefFoundError: org/eclipse/persistence/indirection/WeavedAttributeValueHolderInterface
	at .......
Caused by: java.lang.NoClassDefFoundError: org/eclipse/persistence/indirection/WeavedAttributeValueHolderInterface
	at java.lang.Class.forName0(Native Method)
	at ........
Caused by: java.lang.ClassNotFoundException: org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
Pourtant dans mom package JPA, j'ai importé org.eclipse.persistence.indirection

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Pegase JPA DAO
Bundle-SymbolicName: org.pegase.dao.jpa
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: org.pegase.dao.jpa.internal.Activator
Export-Package: org.pegase.dao.jpa
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
import-Package: javax.persistence;version="2.0.0",
 javax.persistence.criteria;version="2.0.0",
 javax.persistence.metamodel;version="2.0.0",
 javax.persistence.spi;version="2.0.0",
 org.eclipse.equinox.weaving.springweaver,
 org.eclipse.persistence.indirection;version="2.0.0.v20091127-r5931",
 org.osgi.framework;version="1.5.0",
 org.pegase.dao,
 org.pegase.domain,
 org.springframework.beans.factory.config;version="2.5.6.A",
 org.springframework.orm.jpa;version="2.5.6.A",
 org.springframework.orm.jpa.support;version="2.5.6.A",
 org.springframework.orm.jpa.vendor;version="2.5.6.A",
 org.springframework.transaction;version="2.5.6.A"
Module-context:
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
	http://www.springframework.org/schema/tx 
	http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
 
	<!-- entityManagerFactory created before DAO -->	
	<bean id="entityManagerFactory"
		class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
		<property name="persistenceUnitName" value="pegase" />
		<property name="dataSource" ref="dataSource" />
		<property name="jpaVendorAdapter">
			<bean class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter">
				<property name="database" value="DERBY" />
				<property name="generateDdl" value="false" />
				<property name="showSql" value="true" />
			</bean>
		</property>
		<property name="loadTimeWeaver">
			<bean				class="org.eclipse.equinox.weaving.springweaver.EquinoxAspectsLoadTimeWeaver">
				<property name="weaverScope" value="APPLICATION" />	
	</bean>
 
	<!-- Création des DAO -->
	<bean id="zoneDao" class="org.pegase.dao.jpa.ZoneDaoJpa"></bean>
	<bean id="stationDao" class="org.pegase.dao.jpa.StationDaoJpa"></bean>
 
	<bean		class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
	<tx:annotation-driven transaction-manager="txManager" />
	<bean id="txManager" class="org.springframework.orm.jpa.JpaTransactionManager">
		<property name="entityManagerFactory" ref="entityManagerFactory" />
	</bean>
 
</beans>
J'ai aussi récupéré le fragment org.eclipse.equinox.weaving.hook et récupéré
les binaries de org.eclipse.osgi
Mon launch est configuré avec les trois package et aussi les arguments pour utiliser equinox aspect

Je ne vois pas ce qu'il manque
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 04/07/2010, 11h34   #19
azerr
Membre Expert

 
Avatar de azerr
 
Homme Angelo Zerr
Ingénieur Etude JEE/Eclipse RCP
Inscription : avril 2006
Messages : 913
Détails du profil
Informations personnelles :
Nom : Homme Angelo Zerr
Âge : 36
Localisation : France, Drôme (Rhône Alpes)

Informations professionnelles :
Activité : Ingénieur Etude JEE/Eclipse RCP
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2006
Messages : 913
Points : 1 426
Points : 1 426
Bonjour,

Pour ton probleme avec Spring+Derby je ne sais pas quoi te repondre.

Concernant Springweaver, as tu lu le step2? Tu n'as pas l'air d'utiliser dynamicImportPackages que j'avais mis en place et je pense que ca simplifie ces imports packages a faire.

As tu cree un fragment comme celui de l'example
org.dynaresume.domain.eclipselink.fragment? Ce fragment doit etre lie a ton bundle domain. Il doit importer tous les packages de eclicpselink necessaires apres transformation eclipselink des classes de ton domain. Autrement dit, EclipseLink change le bytecode de tes classes domain pour ajouter ses propres listeners pour surveiller les appels de tes setters par exemple. Ceci signifie que le Bundle Domain doit importer les packages EclipseLink pour eviter des ClassNotFoundException.

Tout ca pour dire, as tu creer ce fragment? Si oui, essaie d'importer le package org.eclipse.persistence.indirection dans ton fragment lie a ton bundle Domain. Je ne l'ai pas mon blog et c'est peut etre une erreur.

Apres pour eviter de creer un fragment, tu peux utiliser Springweaver – DynamicImportPackages. Par contre dans ton cas ca ne marchera pas, car je n'ai pas gere ton package, mais dis moi si ca marche en ajoutant ce package et je modifierais les sources pour gerer ce package.

Angelo
azerr est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 04/07/2010, 18h34   #20
pingoui
Membre habitué
 
Avatar de pingoui
 
Inscription : juillet 2004
Messages : 534
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : juillet 2004
Messages : 534
Points : 129
Points : 129
Ca marche !
J'ai importé org.eclipse.persistence.indirection dans le fragment et cela fonctionne

Par contre le bug subsiste lorsque j'utilise DynamicImportPackage
pingoui est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Cette discussion est résolue.
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 02h38.


 
 
 
 
Partenaires

Hébergement Web