Hello,
Does the SpellcheckerGui provides a service ? Normally it shouldn't.
In fact, the component extends JFrame. If you add a <provides/> element (or
@Provides), iPOJO will look into all service specifications implemented by the
component (if they are not specified). This discovery mechanism will find
javax.accessibility.Accessible as JFrame implements it. However, a second check
determines that you cannot provide this interface as you don't import it.
Regards,
Clement
On 25.04.2010, at 01:29, Cobb, Christopher (Contr) (IS) wrote:
> Hello,
>
> I have entered the "iPOJO in 10 minutes" example and modified it
> slightly to work with Maven.
>
> When I compile and run with Java 5, it works exactly as described.
>
> When I compile and run with Java 6, I can start the first three modules
> in felix (services, dictionary and spell checker) with no errors. But
> when I start the gui module, I get this:
>
> -> start
> file:C:\ipojo\example2-spell\spell4-gui\target\spell4-gui-1.0.0.jar
> -> [ERROR] ipojo.example2.spell.gui.SpellCheckerGui : Service Providing:
> The service specification javax.accessibility.Accessible cannot be load
> [ERROR] iPOJO Instance Creator : A matching factory was found for
> {component=ipojo.example2.spell.gui.SpellCheckerGui,
> instance.name=ipojo.example2.spell.gui.SpellCheckerGui-0}, but the
> instantiation failed : The configuration is not correct for the type
> ipojo.example2.spell.gui.SpellCheckerGui : Service Providing: The
> service specification javax.accessibility.Accessible cannot be load
>
> Since there are no direct references to javax.accessibility.Accessible
> anywhere in the example code, I this may be a Java 6 peculiarity having
> something to do with Swing. Does Java 6 package
> javax.accessibility.Accessible differently than Java 5?
>
> Since you list Java 6 among you supported JVMs, I thought you would want
> to know about this quirk.
>
> BTW, iPOJO is awesome!
>
> cc
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]