Skip to main content

About Fighterfish JDK7 Build

3 replies [Last post]
codeprince
Offline
Joined: 2007-05-10
Points: 0

Hi Sahoo,

Today, I updated fighterfish trunk and switched JDK 7.
While building fighterfish using JDK 7, there is a fatal
problem(seeing attachment(buildingerror_jdk7) in details) as following,

"[INFO] --- hk2-maven-plugin:1.1.0:hk2-compile (default-hk2-compile) @
osgi-javaee-base ---
...
WARNING: Error injecting: com.sun.enterprise.module.maven.HK2CompileMojo
java.lang.NoClassDefFoundError:
com/sun/mirror/apt/AnnotationProcessorFactory
... "

I investigated the error and searched JIRA[1],
[1]: http://java.net/jira/browse/GLASSFISH-17329

Then, I made a modification on fighterfish/module/parent-pom/pom.xml and
replaced com.sun.enterprise:hk2-maven-plugin:1.1.0 with
org.glassfish.hk2:hk2-maven-plugin:1.6.19, and re-built fighterfish
sucessfully.

So, although you need not switch to JDK 1.7, I suggest that team can
confirm the issue.

BTW: the attachment(pom.xml) is my modification of parent-pom/pom.xml.

Thanks
--Tang

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
codeprince
Offline
Joined: 2007-05-10
Points: 0

maybe org.glassfish.hk2:hk2-maven-plugin:1.6.18 is enough according to
Romain's patch on GLASSFISH-17285.

Thanks
--Tang

Tang Yong wrote:
> Hi Sahoo,
>
> Today, I updated fighterfish trunk and switched JDK 7.
> While building fighterfish using JDK 7, there is a fatal
> problem(seeing attachment(buildingerror_jdk7) in details) as following,
>
> "[INFO] --- hk2-maven-plugin:1.1.0:hk2-compile (default-hk2-compile) @
> osgi-javaee-base ---
> ...
> WARNING: Error injecting: com.sun.enterprise.module.maven.HK2CompileMojo
> java.lang.NoClassDefFoundError:
> com/sun/mirror/apt/AnnotationProcessorFactory
> ... "
>
> I investigated the error and searched JIRA[1],
> [1]: http://java.net/jira/browse/GLASSFISH-17329
>
> Then, I made a modification on fighterfish/module/parent-pom/pom.xml and
> replaced com.sun.enterprise:hk2-maven-plugin:1.1.0 with
> org.glassfish.hk2:hk2-maven-plugin:1.6.19, and re-built fighterfish
> sucessfully.
>
> So, although you need not switch to JDK 1.7, I suggest that team can
> confirm the issue.
>
> BTW: the attachment(pom.xml) is my modification of parent-pom/pom.xml.
>
> Thanks
> --Tang
>
>
>

ss141213
Offline
Joined: 2005-03-30
Points: 0

Tang,

Although you are right that upgrading to hk2-maven-plugin version 1.6.18 will fix the APT classpath issue, the new plugin version may pull in newer HK2 APIs that will make our FighterFish modules incompatible with GlassFish 3.1.x. Please remember, we try to make our modules compatible with both GF 3.x and 4.0.

So, the other way to fix the issue would be to make tools.jar available to plugin classloader by configuring the plugin's dependencies at the point of use. I will make the necessary change in parent-pom/pom.xml and check in now.

Thanks,
Sahoo

ss141213
Offline
Joined: 2005-03-30
Points: 0

I have fixed this issue now as part of GLASSFISH-19487