javaee / hk2

A light-weight and dynamic dependency injection framework
https://javaee.github.io/hk2
Other
112 stars 83 forks source link

It is impossible to deploy Jersey Web App to Google App Engine Standard Environment #350

Closed glassfishrobot closed 6 years ago

glassfishrobot commented 7 years ago

It is impossible to deploy the application using Jersey 2.25.1 which depends on HK2 2.5.0-b32 because of the error:

Unable to update app: Class file is Java 9 but max supported is Java 7: module-info.class in WEB-INF/lib/asm-all-repackaged-2.5.0-b32.jar

asm-all-repackaged is the dependency of org.glassfish.hk2:hk2.

I have the following maven configuration:

<dependency>
            <groupId>org.glassfish.jersey.containers</groupId>
            <artifactId>jersey-container-servlet-core</artifactId>
            <version>${jersey.version}</version>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-json-jackson</artifactId>
            <version>${jersey.version}</version>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-multipart</artifactId>
            <version>${jersey.version}</version>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.ext</groupId>
            <artifactId>jersey-spring3</artifactId>
            <version>${jersey.version}</version>
        </dependency>

Jersey 2.23 with HK2 2.4.0-b34 works fine.

Environment

Google App Engine Standard Environment

Affected Versions

[2.5.0]

glassfishrobot commented 7 years ago

Reported by ayakovlev

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA HK2-306

glassfishrobot commented 6 years ago

Closing this as this issue is migrated to https://github.com/eclipse-ee4j/glassfish-hk2/issues/351