You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "Gary D. Gregory" <gg...@apache.org> on 2022/12/30 15:36:12 UTC

Juneau 9 git master build broken

It seems the build requires Java 17, it should only require Java 11. Or am I missing something?

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  53.481 s
[INFO] Finished at: 2022-12-30T10:27:12-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project juneau-rest-server-springboot: Compilation failure: Compilation failure:
[ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[44,26] cannot access org.springframework.context.ApplicationContext
[ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-context\6.0.2\spring-context-6.0.2.jar(/org/springframework/context/ApplicationContext.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[32,32] cannot find symbol
[ERROR]   symbol:   class ApplicationContext
[ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
[ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[41,41] cannot find symbol
[ERROR]   symbol:   class ApplicationContext
[ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
[ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[43,10] cannot access org.springframework.beans.factory.annotation.Autowired
[ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-beans\6.0.2\spring-beans-6.0.2.jar(/org/springframework/beans/factory/annotation/Autowired.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[68,33] cannot find symbol
[ERROR]   symbol:   class ApplicationContext
[ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

TY,
Gary

Re: Juneau 9 git master build broken

Posted by James Bognar <ja...@apache.org>.
Nevermind, I figured it out.

On Mon, Jan 2, 2023 at 9:03 AM James Bognar <ja...@apache.org> wrote:
>
> Gary, can we update the codeql-analysis.yaml file to use jdk 17?
>
> On Sun, Jan 1, 2023 at 12:39 PM James Bognar <ja...@apache.org> wrote:
> >
> > Upgrading Spring Beans to 3.0.0 forced me to upgrade to Java 17 for
> > that module (argh).
> >
> > I think the build has to use jdk 17 going forward.  We specify the
> > following properties in our parent pom so we should be generating Java
> > 11 bytecode...
> > <maven.compiler.source>11</maven.compiler.source>
> > <maven.compiler.target>11</maven.compiler.target>
> >
> > On Fri, Dec 30, 2022 at 10:36 AM Gary D. Gregory <gg...@apache.org> wrote:
> > >
> > > It seems the build requires Java 17, it should only require Java 11. Or am I missing something?
> > >
> > > [INFO] ------------------------------------------------------------------------
> > > [INFO] BUILD FAILURE
> > > [INFO] ------------------------------------------------------------------------
> > > [INFO] Total time:  53.481 s
> > > [INFO] Finished at: 2022-12-30T10:27:12-05:00
> > > [INFO] ------------------------------------------------------------------------
> > > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project juneau-rest-server-springboot: Compilation failure: Compilation failure:
> > > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[44,26] cannot access org.springframework.context.ApplicationContext
> > > [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-context\6.0.2\spring-context-6.0.2.jar(/org/springframework/context/ApplicationContext.class)
> > > [ERROR]     class file has wrong version 61.0, should be 55.0
> > > [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> > > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[32,32] cannot find symbol
> > > [ERROR]   symbol:   class ApplicationContext
> > > [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> > > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[41,41] cannot find symbol
> > > [ERROR]   symbol:   class ApplicationContext
> > > [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> > > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[43,10] cannot access org.springframework.beans.factory.annotation.Autowired
> > > [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-beans\6.0.2\spring-beans-6.0.2.jar(/org/springframework/beans/factory/annotation/Autowired.class)
> > > [ERROR]     class file has wrong version 61.0, should be 55.0
> > > [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> > > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[68,33] cannot find symbol
> > > [ERROR]   symbol:   class ApplicationContext
> > > [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> > > [ERROR] -> [Help 1]
> > > [ERROR]
> > > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> > > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > > [ERROR]
> > > [ERROR] For more information about the errors and possible solutions, please read the following articles:
> > > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > >
> > > TY,
> > > Gary

Re: Juneau 9 git master build broken

Posted by James Bognar <ja...@apache.org>.
Gary, can we update the codeql-analysis.yaml file to use jdk 17?

On Sun, Jan 1, 2023 at 12:39 PM James Bognar <ja...@apache.org> wrote:
>
> Upgrading Spring Beans to 3.0.0 forced me to upgrade to Java 17 for
> that module (argh).
>
> I think the build has to use jdk 17 going forward.  We specify the
> following properties in our parent pom so we should be generating Java
> 11 bytecode...
> <maven.compiler.source>11</maven.compiler.source>
> <maven.compiler.target>11</maven.compiler.target>
>
> On Fri, Dec 30, 2022 at 10:36 AM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > It seems the build requires Java 17, it should only require Java 11. Or am I missing something?
> >
> > [INFO] ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO] ------------------------------------------------------------------------
> > [INFO] Total time:  53.481 s
> > [INFO] Finished at: 2022-12-30T10:27:12-05:00
> > [INFO] ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project juneau-rest-server-springboot: Compilation failure: Compilation failure:
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[44,26] cannot access org.springframework.context.ApplicationContext
> > [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-context\6.0.2\spring-context-6.0.2.jar(/org/springframework/context/ApplicationContext.class)
> > [ERROR]     class file has wrong version 61.0, should be 55.0
> > [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[32,32] cannot find symbol
> > [ERROR]   symbol:   class ApplicationContext
> > [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[41,41] cannot find symbol
> > [ERROR]   symbol:   class ApplicationContext
> > [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[43,10] cannot access org.springframework.beans.factory.annotation.Autowired
> > [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-beans\6.0.2\spring-beans-6.0.2.jar(/org/springframework/beans/factory/annotation/Autowired.class)
> > [ERROR]     class file has wrong version 61.0, should be 55.0
> > [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[68,33] cannot find symbol
> > [ERROR]   symbol:   class ApplicationContext
> > [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> > [ERROR] -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions, please read the following articles:
> > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >
> > TY,
> > Gary

Re: Juneau 9 git master build broken

Posted by James Bognar <ja...@apache.org>.
Upgrading Spring Beans to 3.0.0 forced me to upgrade to Java 17 for
that module (argh).

I think the build has to use jdk 17 going forward.  We specify the
following properties in our parent pom so we should be generating Java
11 bytecode...
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

On Fri, Dec 30, 2022 at 10:36 AM Gary D. Gregory <gg...@apache.org> wrote:
>
> It seems the build requires Java 17, it should only require Java 11. Or am I missing something?
>
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  53.481 s
> [INFO] Finished at: 2022-12-30T10:27:12-05:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project juneau-rest-server-springboot: Compilation failure: Compilation failure:
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[44,26] cannot access org.springframework.context.ApplicationContext
> [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-context\6.0.2\spring-context-6.0.2.jar(/org/springframework/context/ApplicationContext.class)
> [ERROR]     class file has wrong version 61.0, should be 55.0
> [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[32,32] cannot find symbol
> [ERROR]   symbol:   class ApplicationContext
> [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[41,41] cannot find symbol
> [ERROR]   symbol:   class ApplicationContext
> [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[43,10] cannot access org.springframework.beans.factory.annotation.Autowired
> [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-beans\6.0.2\spring-beans-6.0.2.jar(/org/springframework/beans/factory/annotation/Autowired.class)
> [ERROR]     class file has wrong version 61.0, should be 55.0
> [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[68,33] cannot find symbol
> [ERROR]   symbol:   class ApplicationContext
> [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
> TY,
> Gary

Re: Juneau 9 git master build broken

Posted by James Bognar <ja...@gmail.com>.
I think the build has to use jdk 17 going forward.  We specify the
following properties in our parent pom so we should be generating Java
11 bytecode...
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

On Sat, Dec 31, 2022 at 3:01 PM James Bognar <ja...@gmail.com> wrote:
>
> Upgrading Spring Beans to 3.0.0 forced me to upgrade to Java 17 for
> that module (argh).  We specify a target level of Java 11 for our
> modules so it should be producing Java 11 compatible classes even
> though we require a jdk17 to build?  If not, I'm going to have to
> split out juneau-rest-server-springboot into a separate build module.
>
> On Fri, Dec 30, 2022 at 10:36 AM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > It seems the build requires Java 17, it should only require Java 11. Or am I missing something?
> >
> > [INFO] ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO] ------------------------------------------------------------------------
> > [INFO] Total time:  53.481 s
> > [INFO] Finished at: 2022-12-30T10:27:12-05:00
> > [INFO] ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project juneau-rest-server-springboot: Compilation failure: Compilation failure:
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[44,26] cannot access org.springframework.context.ApplicationContext
> > [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-context\6.0.2\spring-context-6.0.2.jar(/org/springframework/context/ApplicationContext.class)
> > [ERROR]     class file has wrong version 61.0, should be 55.0
> > [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[32,32] cannot find symbol
> > [ERROR]   symbol:   class ApplicationContext
> > [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[41,41] cannot find symbol
> > [ERROR]   symbol:   class ApplicationContext
> > [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[43,10] cannot access org.springframework.beans.factory.annotation.Autowired
> > [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-beans\6.0.2\spring-beans-6.0.2.jar(/org/springframework/beans/factory/annotation/Autowired.class)
> > [ERROR]     class file has wrong version 61.0, should be 55.0
> > [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> > [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[68,33] cannot find symbol
> > [ERROR]   symbol:   class ApplicationContext
> > [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> > [ERROR] -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions, please read the following articles:
> > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >
> > TY,
> > Gary

Re: Juneau 9 git master build broken

Posted by James Bognar <ja...@gmail.com>.
Upgrading Spring Beans to 3.0.0 forced me to upgrade to Java 17 for
that module (argh).  We specify a target level of Java 11 for our
modules so it should be producing Java 11 compatible classes even
though we require a jdk17 to build?  If not, I'm going to have to
split out juneau-rest-server-springboot into a separate build module.

On Fri, Dec 30, 2022 at 10:36 AM Gary D. Gregory <gg...@apache.org> wrote:
>
> It seems the build requires Java 17, it should only require Java 11. Or am I missing something?
>
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  53.481 s
> [INFO] Finished at: 2022-12-30T10:27:12-05:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project juneau-rest-server-springboot: Compilation failure: Compilation failure:
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[44,26] cannot access org.springframework.context.ApplicationContext
> [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-context\6.0.2\spring-context-6.0.2.jar(/org/springframework/context/ApplicationContext.class)
> [ERROR]     class file has wrong version 61.0, should be 55.0
> [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[32,32] cannot find symbol
> [ERROR]   symbol:   class ApplicationContext
> [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[41,41] cannot find symbol
> [ERROR]   symbol:   class ApplicationContext
> [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringRestServlet.java:[43,10] cannot access org.springframework.beans.factory.annotation.Autowired
> [ERROR]   bad class file: C:\Users\ggregory\.m2\repository\org\springframework\spring-beans\6.0.2\spring-beans-6.0.2.jar(/org/springframework/beans/factory/annotation/Autowired.class)
> [ERROR]     class file has wrong version 61.0, should be 55.0
> [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> [ERROR] /C:/Users/ggregory/git/a/juneau/juneau-rest/juneau-rest-server-springboot/src/main/java/org/apache/juneau/rest/springboot/SpringBeanStore.java:[68,33] cannot find symbol
> [ERROR]   symbol:   class ApplicationContext
> [ERROR]   location: class org.apache.juneau.rest.springboot.SpringBeanStore
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
> TY,
> Gary