[Geoserver-devel] Extensions not being included in the build

I’m exploring building a geoserver extension that runs with my project’s oauth2 server. In that direction, I’m trying to get one of the original oauth2 community extensions built and working.

I’m building geoserver from within Intellij IDEA on a windows machine. I have chosen the profile oauth2-github in the maven projects dialog and built it using the execute maven goal using “clean install -DskipTests -Poauth2-github” It seems to build fine but I don’t see any indication the extension is built.

To start geoserver I use “jetty:run” and it starts up without issue. However, when going into the web console → authentication → add new authentication filters, the choices don’t include any oauth2 filters.

Is there any other sort of step I should be taking or log I should look at to help me resolve this?

~Thomas

That should work, the configuration which includes oauth2 in the webapp is indeed controlled by that profile (here).

Two suggestions:

  • If you are running from maven, also include that profile when executing the run command, for example: “mvn jetty:run -Poauth2-github”
  • If you are running from IntelliJ, ensure the oauth2-github profile is selected in the “Maven Projects” window.
    Torben

On Wed, Nov 21, 2018 at 4:57 PM Thomas <tlann@anonymised.com> wrote:

I’m exploring building a geoserver extension that runs with my project’s oauth2 server. In that direction, I’m trying to get one of the original oauth2 community extensions built and working.

I’m building geoserver from within Intellij IDEA on a windows machine. I have chosen the profile oauth2-github in the maven projects dialog and built it using the execute maven goal using “clean install -DskipTests -Poauth2-github” It seems to build fine but I don’t see any indication the extension is built.

To start geoserver I use “jetty:run” and it starts up without issue. However, when going into the web console → authentication → add new authentication filters, the choices don’t include any oauth2 filters.

Is there any other sort of step I should be taking or log I should look at to help me resolve this?

~Thomas


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Thank you for your response. I didn’t think to try adding the profile to the Maven command. That seems to work. But having the profile selected in intellij does not. Or at least I can’t get that far.

I have had to do a few strange things to get to this point. One, I had to set bash on my path because the build fails without it when I use mvn or the intellij build option. Is there some sort of switch I should be using to turn this off? Otherwise, I get the below error.

Using the intellij build dialog it complains about many missing symbols. They appear to be about test class symbols. I put the errors below past the bash errors.

Thanks,
Thomas

++++++++++
Bash error
++++++++++

[INFO] — git-commit-id-plugin:2.1.15:revision (default) @ gs-web-app —
[ERROR] Caught exception in FS.readPipe()
java.io.IOException: Cannot run program “bash” (in directory “C:\Users\thomas.harper.ctr”): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at org.eclipse.jgit.util.FS.readPipe(FS.java:431)
at org.eclipse.jgit.util.FS_Win32.discoverGitPrefix(FS_Win32.java:113)
at org.eclipse.jgit.util.FS.gitPrefix(FS.java:517)
at org.eclipse.jgit.util.SystemReader$Default.openSystemConfig(SystemReader.java:92)
at org.eclipse.jgit.internal.storage.file.FileRepository.(FileRepository.java:171)
at org.eclipse.jgit.storage.file.FileRepositoryBuilder.build(FileRepositoryBuilder.java:92)
at pl.project13.maven.git.JGitProvider.getGitRepository(JGitProvider.java:265)
at pl.project13.maven.git.JGitProvider.init(JGitProvider.java:79)
at pl.project13.maven.git.GitDataProvider.loadGitData(GitDataProvider.java:91)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit(GitCommitIdMojo.java:585)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData(GitCommitIdMojo.java:558)
at pl.project13.maven.git.GitCommitIdMojo.execute(GitCommitIdMojo.java:376)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
… 36 more

++++++++++++++++

Missing test symbols
++++++++++++++++

C:\Users\thomas.harper.ctr\source\geoserver\src\web\security\core\src\test\java\org\geoserver\security\web\AbstractSecurityWicketTestSupport.java
Error:(42, 35) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: package org.geoserver.security.impl
Error:(56, 34) java: cannot find symbol
symbol: class XMLRoleServiceTest
location: package org.geoserver.security.xml
Error:(57, 34) java: cannot find symbol
symbol: class XMLUserGroupServiceTest
location: package org.geoserver.security.xml
Error:(77, 15) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(127, 31) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(144, 24) java: cannot find symbol
symbol: class XMLUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(144, 55) java: cannot find symbol
symbol: class XMLRoleServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport

On Fri, Nov 23, 2018 at 4:24 PM Torben Barsballe <tbarsballe@anonymised.com> wrote:

That should work, the configuration which includes oauth2 in the webapp is indeed controlled by that profile (here).

Two suggestions:

  • If you are running from maven, also include that profile when executing the run command, for example: “mvn jetty:run -Poauth2-github”
  • If you are running from IntelliJ, ensure the oauth2-github profile is selected in the “Maven Projects” window.
    Torben

On Wed, Nov 21, 2018 at 4:57 PM Thomas <tlann@anonymised.com> wrote:

I’m exploring building a geoserver extension that runs with my project’s oauth2 server. In that direction, I’m trying to get one of the original oauth2 community extensions built and working.

I’m building geoserver from within Intellij IDEA on a windows machine. I have chosen the profile oauth2-github in the maven projects dialog and built it using the execute maven goal using “clean install -DskipTests -Poauth2-github” It seems to build fine but I don’t see any indication the extension is built.

To start geoserver I use “jetty:run” and it starts up without issue. However, when going into the web console → authentication → add new authentication filters, the choices don’t include any oauth2 filters.

Is there any other sort of step I should be taking or log I should look at to help me resolve this?

~Thomas


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

The first error doesn’t look familiar, but seems to be Windows-specific (I use IntelliJ on Mac, not Windows, so can’t really help much there)

The test issues also don’t seem especially familiar - my only suggestion would be to try doing a full maven build and reloading the maven dependencies - it kind of looks like it is getting the wrong version of some dependencies.

Torben

On Mon, Nov 26, 2018 at 8:26 AM Thomas <tlann@anonymised.com01…> wrote:

Thank you for your response. I didn’t think to try adding the profile to the Maven command. That seems to work. But having the profile selected in intellij does not. Or at least I can’t get that far.

I have had to do a few strange things to get to this point. One, I had to set bash on my path because the build fails without it when I use mvn or the intellij build option. Is there some sort of switch I should be using to turn this off? Otherwise, I get the below error.

Using the intellij build dialog it complains about many missing symbols. They appear to be about test class symbols. I put the errors below past the bash errors.

Thanks,
Thomas

++++++++++
Bash error
++++++++++

[INFO] — git-commit-id-plugin:2.1.15:revision (default) @ gs-web-app —
[ERROR] Caught exception in FS.readPipe()
java.io.IOException: Cannot run program “bash” (in directory “C:\Users\thomas.harper.ctr”): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at org.eclipse.jgit.util.FS.readPipe(FS.java:431)
at org.eclipse.jgit.util.FS_Win32.discoverGitPrefix(FS_Win32.java:113)
at org.eclipse.jgit.util.FS.gitPrefix(FS.java:517)
at org.eclipse.jgit.util.SystemReader$Default.openSystemConfig(SystemReader.java:92)
at org.eclipse.jgit.internal.storage.file.FileRepository.(FileRepository.java:171)
at org.eclipse.jgit.storage.file.FileRepositoryBuilder.build(FileRepositoryBuilder.java:92)
at pl.project13.maven.git.JGitProvider.getGitRepository(JGitProvider.java:265)
at pl.project13.maven.git.JGitProvider.init(JGitProvider.java:79)
at pl.project13.maven.git.GitDataProvider.loadGitData(GitDataProvider.java:91)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit(GitCommitIdMojo.java:585)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData(GitCommitIdMojo.java:558)
at pl.project13.maven.git.GitCommitIdMojo.execute(GitCommitIdMojo.java:376)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
… 36 more

++++++++++++++++

Missing test symbols
++++++++++++++++

C:\Users\thomas.harper.ctr\source\geoserver\src\web\security\core\src\test\java\org\geoserver\security\web\AbstractSecurityWicketTestSupport.java
Error:(42, 35) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: package org.geoserver.security.impl
Error:(56, 34) java: cannot find symbol
symbol: class XMLRoleServiceTest
location: package org.geoserver.security.xml
Error:(57, 34) java: cannot find symbol
symbol: class XMLUserGroupServiceTest
location: package org.geoserver.security.xml
Error:(77, 15) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(127, 31) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(144, 24) java: cannot find symbol
symbol: class XMLUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(144, 55) java: cannot find symbol
symbol: class XMLRoleServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport

On Fri, Nov 23, 2018 at 4:24 PM Torben Barsballe <tbarsballe@anonymised.com> wrote:

That should work, the configuration which includes oauth2 in the webapp is indeed controlled by that profile (here).

Two suggestions:

  • If you are running from maven, also include that profile when executing the run command, for example: “mvn jetty:run -Poauth2-github”
  • If you are running from IntelliJ, ensure the oauth2-github profile is selected in the “Maven Projects” window.
    Torben

On Wed, Nov 21, 2018 at 4:57 PM Thomas <tlann@anonymised.com> wrote:

I’m exploring building a geoserver extension that runs with my project’s oauth2 server. In that direction, I’m trying to get one of the original oauth2 community extensions built and working.

I’m building geoserver from within Intellij IDEA on a windows machine. I have chosen the profile oauth2-github in the maven projects dialog and built it using the execute maven goal using “clean install -DskipTests -Poauth2-github” It seems to build fine but I don’t see any indication the extension is built.

To start geoserver I use “jetty:run” and it starts up without issue. However, when going into the web console → authentication → add new authentication filters, the choices don’t include any oauth2 filters.

Is there any other sort of step I should be taking or log I should look at to help me resolve this?

~Thomas


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

The first error(bash) is definitely windows specific. Pointing it to Git’s bin directory resolved it for me. It seems like I shouldn’t need to do that.

I tried reimporting all of the maven projects as well as clearing my m2 repository directory. This just caused new and more numerous errors.

When you first started did you have to build from the maven root source directory? The maven quick install guide has that step but the intellij one does not.

On Mon, Nov 26, 2018 at 9:08 AM Torben Barsballe <tbarsballe@anonymised.com> wrote:

The first error doesn’t look familiar, but seems to be Windows-specific (I use IntelliJ on Mac, not Windows, so can’t really help much there)

The test issues also don’t seem especially familiar - my only suggestion would be to try doing a full maven build and reloading the maven dependencies - it kind of looks like it is getting the wrong version of some dependencies.

Torben

On Mon, Nov 26, 2018 at 8:26 AM Thomas <tlann@anonymised.com> wrote:

Thank you for your response. I didn’t think to try adding the profile to the Maven command. That seems to work. But having the profile selected in intellij does not. Or at least I can’t get that far.

I have had to do a few strange things to get to this point. One, I had to set bash on my path because the build fails without it when I use mvn or the intellij build option. Is there some sort of switch I should be using to turn this off? Otherwise, I get the below error.

Using the intellij build dialog it complains about many missing symbols. They appear to be about test class symbols. I put the errors below past the bash errors.

Thanks,
Thomas

++++++++++
Bash error
++++++++++

[INFO] — git-commit-id-plugin:2.1.15:revision (default) @ gs-web-app —
[ERROR] Caught exception in FS.readPipe()
java.io.IOException: Cannot run program “bash” (in directory “C:\Users\thomas.harper.ctr”): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at org.eclipse.jgit.util.FS.readPipe(FS.java:431)
at org.eclipse.jgit.util.FS_Win32.discoverGitPrefix(FS_Win32.java:113)
at org.eclipse.jgit.util.FS.gitPrefix(FS.java:517)
at org.eclipse.jgit.util.SystemReader$Default.openSystemConfig(SystemReader.java:92)
at org.eclipse.jgit.internal.storage.file.FileRepository.(FileRepository.java:171)
at org.eclipse.jgit.storage.file.FileRepositoryBuilder.build(FileRepositoryBuilder.java:92)
at pl.project13.maven.git.JGitProvider.getGitRepository(JGitProvider.java:265)
at pl.project13.maven.git.JGitProvider.init(JGitProvider.java:79)
at pl.project13.maven.git.GitDataProvider.loadGitData(GitDataProvider.java:91)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit(GitCommitIdMojo.java:585)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData(GitCommitIdMojo.java:558)
at pl.project13.maven.git.GitCommitIdMojo.execute(GitCommitIdMojo.java:376)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
… 36 more

++++++++++++++++

Missing test symbols
++++++++++++++++

C:\Users\thomas.harper.ctr\source\geoserver\src\web\security\core\src\test\java\org\geoserver\security\web\AbstractSecurityWicketTestSupport.java
Error:(42, 35) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: package org.geoserver.security.impl
Error:(56, 34) java: cannot find symbol
symbol: class XMLRoleServiceTest
location: package org.geoserver.security.xml
Error:(57, 34) java: cannot find symbol
symbol: class XMLUserGroupServiceTest
location: package org.geoserver.security.xml
Error:(77, 15) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(127, 31) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(144, 24) java: cannot find symbol
symbol: class XMLUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(144, 55) java: cannot find symbol
symbol: class XMLRoleServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport

On Fri, Nov 23, 2018 at 4:24 PM Torben Barsballe <tbarsballe@anonymised.com> wrote:

That should work, the configuration which includes oauth2 in the webapp is indeed controlled by that profile (here).

Two suggestions:

  • If you are running from maven, also include that profile when executing the run command, for example: “mvn jetty:run -Poauth2-github”
  • If you are running from IntelliJ, ensure the oauth2-github profile is selected in the “Maven Projects” window.
    Torben

On Wed, Nov 21, 2018 at 4:57 PM Thomas <tlann@anonymised.com> wrote:

I’m exploring building a geoserver extension that runs with my project’s oauth2 server. In that direction, I’m trying to get one of the original oauth2 community extensions built and working.

I’m building geoserver from within Intellij IDEA on a windows machine. I have chosen the profile oauth2-github in the maven projects dialog and built it using the execute maven goal using “clean install -DskipTests -Poauth2-github” It seems to build fine but I don’t see any indication the extension is built.

To start geoserver I use “jetty:run” and it starts up without issue. However, when going into the web console → authentication → add new authentication filters, the choices don’t include any oauth2 filters.

Is there any other sort of step I should be taking or log I should look at to help me resolve this?

~Thomas


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

There are basically no devs on Windows, which makes life for every newcomer on that platform harder.
I also use IntelliJ, but I’m on Linux.
If you could figure out what happens there and provide a PR to fix it, it would certainly be appreciated!

Cheers
Andrea

···

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

When you first started did you have to build from the maven root source directory? The maven quick install guide has that step but the intellij one does not.

When I first started on Intellij I already had a full build from the maven root source just from doing previous development on GeoServer, so yes I did, but I’m not certain it is necessary.

Torben

On Mon, Nov 26, 2018 at 9:08 AM Torben Barsballe <tbarsballe@anonymised.com> wrote:

The first error doesn’t look familiar, but seems to be Windows-specific (I use IntelliJ on Mac, not Windows, so can’t really help much there)

The test issues also don’t seem especially familiar - my only suggestion would be to try doing a full maven build and reloading the maven dependencies - it kind of looks like it is getting the wrong version of some dependencies.

Torben

On Mon, Nov 26, 2018 at 8:26 AM Thomas <tlann@anonymised.com> wrote:

Thank you for your response. I didn’t think to try adding the profile to the Maven command. That seems to work. But having the profile selected in intellij does not. Or at least I can’t get that far.

I have had to do a few strange things to get to this point. One, I had to set bash on my path because the build fails without it when I use mvn or the intellij build option. Is there some sort of switch I should be using to turn this off? Otherwise, I get the below error.

Using the intellij build dialog it complains about many missing symbols. They appear to be about test class symbols. I put the errors below past the bash errors.

Thanks,
Thomas

++++++++++
Bash error
++++++++++

[INFO] — git-commit-id-plugin:2.1.15:revision (default) @ gs-web-app —
[ERROR] Caught exception in FS.readPipe()
java.io.IOException: Cannot run program “bash” (in directory “C:\Users\thomas.harper.ctr”): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at org.eclipse.jgit.util.FS.readPipe(FS.java:431)
at org.eclipse.jgit.util.FS_Win32.discoverGitPrefix(FS_Win32.java:113)
at org.eclipse.jgit.util.FS.gitPrefix(FS.java:517)
at org.eclipse.jgit.util.SystemReader$Default.openSystemConfig(SystemReader.java:92)
at org.eclipse.jgit.internal.storage.file.FileRepository.(FileRepository.java:171)
at org.eclipse.jgit.storage.file.FileRepositoryBuilder.build(FileRepositoryBuilder.java:92)
at pl.project13.maven.git.JGitProvider.getGitRepository(JGitProvider.java:265)
at pl.project13.maven.git.JGitProvider.init(JGitProvider.java:79)
at pl.project13.maven.git.GitDataProvider.loadGitData(GitDataProvider.java:91)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit(GitCommitIdMojo.java:585)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData(GitCommitIdMojo.java:558)
at pl.project13.maven.git.GitCommitIdMojo.execute(GitCommitIdMojo.java:376)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
… 36 more

++++++++++++++++

Missing test symbols
++++++++++++++++

C:\Users\thomas.harper.ctr\source\geoserver\src\web\security\core\src\test\java\org\geoserver\security\web\AbstractSecurityWicketTestSupport.java
Error:(42, 35) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: package org.geoserver.security.impl
Error:(56, 34) java: cannot find symbol
symbol: class XMLRoleServiceTest
location: package org.geoserver.security.xml
Error:(57, 34) java: cannot find symbol
symbol: class XMLUserGroupServiceTest
location: package org.geoserver.security.xml
Error:(77, 15) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(127, 31) java: cannot find symbol
symbol: class AbstractUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(144, 24) java: cannot find symbol
symbol: class XMLUserGroupServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport
Error:(144, 55) java: cannot find symbol
symbol: class XMLRoleServiceTest
location: class org.geoserver.security.web.AbstractSecurityWicketTestSupport

On Fri, Nov 23, 2018 at 4:24 PM Torben Barsballe <tbarsballe@anonymised.com…3839…> wrote:

That should work, the configuration which includes oauth2 in the webapp is indeed controlled by that profile (here).

Two suggestions:

  • If you are running from maven, also include that profile when executing the run command, for example: “mvn jetty:run -Poauth2-github”
  • If you are running from IntelliJ, ensure the oauth2-github profile is selected in the “Maven Projects” window.
    Torben

On Wed, Nov 21, 2018 at 4:57 PM Thomas <tlann@anonymised.com> wrote:

I’m exploring building a geoserver extension that runs with my project’s oauth2 server. In that direction, I’m trying to get one of the original oauth2 community extensions built and working.

I’m building geoserver from within Intellij IDEA on a windows machine. I have chosen the profile oauth2-github in the maven projects dialog and built it using the execute maven goal using “clean install -DskipTests -Poauth2-github” It seems to build fine but I don’t see any indication the extension is built.

To start geoserver I use “jetty:run” and it starts up without issue. However, when going into the web console → authentication → add new authentication filters, the choices don’t include any oauth2 filters.

Is there any other sort of step I should be taking or log I should look at to help me resolve this?

~Thomas


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

I think I have figured it out. I had to mvn clean install on wcs1_1 project. The security tests in the security project were also not compiling. I did a right click on that and rebuilt it and that seemed to clear up my symbols issues.

Because of this being a windows platform issue, would the PR be against documentation to add a windows aside section? Is this the same documentation that is with the source and is there documentation on changing that?

~Thomas

On Mon, Nov 26, 2018 at 10:41 AM Andrea Aime <andrea.aime@anonymised.com> wrote:

On Mon, Nov 26, 2018 at 7:37 PM Thomas <tlann@anonymised.com> wrote:

The first error(bash) is definitely windows specific. Pointing it to Git’s bin directory resolved it for me. It seems like I shouldn’t need to do that.

There are basically no devs on Windows, which makes life for every newcomer on that platform harder.
I also use IntelliJ, but I’m on Linux.
If you could figure out what happens there and provide a PR to fix it, it would certainly be appreciated!

Cheers
Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

I think I have figured it out. I had to mvn clean install on wcs1_1 project.

This module has a “code generation” part based on javacc. One has to tell intellij to run the phase where sources are generated

The security tests in the security project were also not compiling. I did a right click on that and rebuilt it and that seemed to clear up my symbols issues.

No clue about this one

Because of this being a windows platform issue, would the PR be against documentation to add a windows aside section? Is this the same documentation that is with the source and is there documentation on changing that?

The code generation per se is not windows specific, but sure, a PR would be welcomed. Yes, it’s the documentation part of the sources.
There are some indications about how to change the docs here:
https://docs.geoserver.org/latest/en/docguide/

Cheers
Andrea

···

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

I’ve created a simple pull request with an update to the documentation. Do I also need to create a JIRA ticket for a simple fix?

Pull Request
https://github.com/geoserver/geoserver/pull/3264

~Thomas

On Mon, Nov 26, 2018 at 12:34 PM Andrea Aime <andrea.aime@anonymised.com> wrote:

On Mon, Nov 26, 2018 at 8:47 PM Thomas <tlann@anonymised.com> wrote:

I think I have figured it out. I had to mvn clean install on wcs1_1 project.

This module has a “code generation” part based on javacc. One has to tell intellij to run the phase where sources are generated

The security tests in the security project were also not compiling. I did a right click on that and rebuilt it and that seemed to clear up my symbols issues.

No clue about this one

Because of this being a windows platform issue, would the PR be against documentation to add a windows aside section? Is this the same documentation that is with the source and is there documentation on changing that?

The code generation per se is not windows specific, but sure, a PR would be welcomed. Yes, it’s the documentation part of the sources.
There are some indications about how to change the docs here:
https://docs.geoserver.org/latest/en/docguide/

Cheers
Andrea

Hi,
for code changes we normally have a jira ticket and refer to it from the commit message, e…g, “[GEOS-XYZW] title”.
The issues are then used to build the release changelog.

But these are instructions for the developers, personally I don’t see it as a problem if they don’t show up in the release notes,
it’s not like they are “version specific” anyways. Thanks for the PR :slight_smile:

Cheers
Andrea

On Tue, Nov 27, 2018 at 12:07 AM Thomas <tlann@anonymised.com> wrote:

I’ve created a simple pull request with an update to the documentation. Do I also need to create a JIRA ticket for a simple fix?

Pull Request
https://github.com/geoserver/geoserver/pull/3264

~Thomas

On Mon, Nov 26, 2018 at 12:34 PM Andrea Aime <andrea.aime@anonymised.com> wrote:

On Mon, Nov 26, 2018 at 8:47 PM Thomas <tlann@anonymised.com> wrote:

I think I have figured it out. I had to mvn clean install on wcs1_1 project.

This module has a “code generation” part based on javacc. One has to tell intellij to run the phase where sources are generated

The security tests in the security project were also not compiling. I did a right click on that and rebuilt it and that seemed to clear up my symbols issues.

No clue about this one

Because of this being a windows platform issue, would the PR be against documentation to add a windows aside section? Is this the same documentation that is with the source and is there documentation on changing that?

The code generation per se is not windows specific, but sure, a PR would be welcomed. Yes, it’s the documentation part of the sources.
There are some indications about how to change the docs here:
https://docs.geoserver.org/latest/en/docguide/

Cheers
Andrea

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.