Précédent   Forum du club des développeurs et IT Pro > Java > EDI et OUTILS pour Java > Tests et Performance
Tests et Performance Vos questions sur les APIs et Outils de tests unitaires, d'intégration, de performance, profiling, etc.
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 14/10/2012, 10h32   #1
pcouas
Membre confirmé
 
Inscription : janvier 2007
Messages : 871
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 871
Points : 261
Points : 261
Par défaut Erreur "Could not resolve class: org.apache.wicket.Initializer"

Bonjour,

J'utilise apache Maven 3.0.4, Jdk 1.6, servlet 2.5 avec apache wicket 1.4.18, et j'ai le message d'erreur lors de mon test Maven.
Could not resolve class: org.apache.wicket.Initializer
Le jar est bien charge wicket est bien dans mon repository avecl la classe est bien a l'interieur ?

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
 
ests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
testRenderMyPage(app.web.TestHomePage)  Time elapsed: 0 sec  <<< ERROR!
org.apache.wicket.WicketRuntimeException: Unable to create org.apache.wicket.Initializer
	at org.apache.wicket.util.lang.Objects.newInstance(Objects.java:1034)
	at org.apache.wicket.Application.addInitializer(Application.java:864)
	at org.apache.wicket.Application.load(Application.java:938)
	at org.apache.wicket.Application.initializeComponents(Application.java:715)
	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:732)
	at org.apache.wicket.protocol.http.MockWebApplication.<init>(MockWebApplication.java:169)
	at org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:218)
	at org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:331)
	at org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:314)
	at app.web.TestHomePage.setUp(TestHomePage.java:23)
	at junit.framework.TestCase.runBare(TestCase.java:132)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Ou est mon erreur ?

Merci d'avance
Phil
pcouas est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/10/2012, 06h34   #2
pcouas
Membre confirmé
 
Inscription : janvier 2007
Messages : 871
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 871
Points : 261
Points : 261
Bonjour

Probleme résolu

Code :
1
2
3
4
5
6
7
8
 
<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<!--<configuration>
					<useSystemClassLoader>false</useSystemClassLoader>
				</configuration> -->
			</plugin>
pcouas 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 18h45.


 
 
 
 
Partenaires

Hébergement Web