admin@glassfish.java.net

Re: [v3] ResolveError: Failed to start org.glassfish.admingui:console-plugin-service:1.0

From: Claudio Miranda <claudio_at_claudius.com.br>
Date: Wed, 2 Jul 2008 16:05:37 -0300

On Wed, Jul 2, 2008 at 2:41 PM, Ken Paulsen <Ken.Paulsen_at_sun.com> wrote:
>
> HK2 was upgraded to 0.3.5 recently and we will require this release very
> soon... However, I think the error that you're seeing is related to the JSP
> bundle (or maybe another one) looking for HK2 0.3.2. I think your build
> correctly installed and built w/ 0.3.5, but downloaded the JSP bundle which
> requires version 0.3.2. This prevents the web module from starting.

At admingui/pom.xml there are some properties at the end

<properties>
        <hk2.version>0.3.0</hk2.version>
        <glassfish.version>10.0-SNAPSHOT</glassfish.version>
        <amx-api.version>2.0-SNAPSHOT</amx-api.version>
        <jsp-api.version>2.1</jsp-api.version>
</properties>

Perhaps, the hk2.version should be updated to 0.3.5 ?

> To verify this, look at your
> domains/domain1/.felix/gf/bundle65/bundle.location file. This will tell you
> which .jar file requires HK2 0.3.2.

$ cat ../domains/domain1/.felix/gf/bundle65/bundle.location
file:/opt/glassfish-v3/glassfish/modules/console-plugin-service-10.0-SNAPSHOT.jar

> If it is another module, you can look into why its requiring version 0.3.2,
> ask if you have questions.

At admingui/plugin-service/pom.xml there is

        <dependency>
            <groupId>com.sun.enterprise</groupId>
            <artifactId>hk2</artifactId>
            <version>${hk2.version}</version>
        </dependency>

As it refers to parent pom whose hk2.version value is 0.3.0.
I will try to update it to 0.3.5 and build

Thanks

Claudio Miranda