Error Running GeoServer with Extensions with Maven Profiles

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error Running GeoServer with Extensions with Maven Profiles

GeoServer - User mailing list

Hello!

 

I am following this GeoServer guide (https://docs.geoserver.org/latest/en/developer/quickstart/eclipse.html) to try to use the Maven Eclipse Plugin to work with a GeoServer development environment. I want to run GeoServer with the following extensions: importer, imagemosaic-jdbc, wcs2_0-eo, oseo. I found these maven profiles in src/web/app/pom.xml. However, when I try to re-generate the root eclipse profile with the appropriate maven profiles using the command in the guide (mvn eclipse:eclipse -P oseo), I get the following error:

 

[WARNING] The requested profile "oseo" could not be activated because it does not exist.

 

How can I fix this?

 

And to enable multiple extensions, would I do “mvn eclipse:eclipse -P importer, imagemosaic-jdbc, wcs2_0-eo, oseo”?

 

Any help would be appreciated!

 

Thanks,

Hiyori



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: Error Running GeoServer with Extensions with Maven Profiles

GeoServer - User mailing list

Hello Daniele,

 

Thank you so much for your response.

 

I’m using the latest version on the master branch.

 

I did everything you said and the mvn eclipse:eclipse -Pimporter,imagemosaic-jdbc,wcs2_0-eo,oseo worked successfully.

 

However, when I run GeoServer from Eclipse after this, I get the following errors and localhost8080 :

Jul 18, 2019 2:41:23 PM org.geoserver.web.Start main

SEVERE: GeoServer starting

18 Jul 14:41:24 WARN [webapp.WebAppContext] - Failed startup of context o.e.j.w.WebAppContext@31c7528f{GeoServer,/geoserver,file:///Users/hyoshida/Documents/geoserver_repo/src/web/app/src/main/webapp/,UNAVAILABLE}{src/main/webapp}

java.lang.SecurityException: sealing violation: package com.sun.media.jai.util is sealed

       at java.net.URLClassLoader.getAndVerifyPackage(URLClassLoader.java:400)

       at java.net.URLClassLoader.definePackageInternal(URLClassLoader.java:420)

       at java.net.URLClassLoader.defineClass(URLClassLoader.java:452)

       at java.net.URLClassLoader.access$100(URLClassLoader.java:74)

       at java.net.URLClassLoader$1.run(URLClassLoader.java:369)

       at java.net.URLClassLoader$1.run(URLClassLoader.java:363)

       at java.security.AccessController.doPrivileged(Native Method)

       at java.net.URLClassLoader.findClass(URLClassLoader.java:362)

       at org.eclipse.jetty.webapp.WebAppClassLoader.foundClass(WebAppClassLoader.java:670)

       at org.eclipse.jetty.webapp.WebAppClassLoader.loadAsResource(WebAppClassLoader.java:639)

       at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:545)

       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

       at org.geoserver.jai.ConcurrentOperationRegistry.initializeRegistry(ConcurrentOperationRegistry.java:42)

       at org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:131)

       at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:957)

       at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:553)

       at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:922)

       at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:365)

       at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)

       at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)

       at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:852)

       at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)

       at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)

       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

       at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)

       at org.eclipse.jetty.server.Server.start(Server.java:418)

       at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)

       at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)

       at org.eclipse.jetty.server.Server.doStart(Server.java:382)

       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

       at org.geoserver.web.Start.main(Start.java:126)

Jul 18, 2019 2:41:24 PM org.geoserver.web.Start main

SEVERE: GeoServer startup complete in 1.583s

18 Jul 14:41:59 WARN [server.HttpChannel] - /geoserver/

java.lang.NullPointerException

       at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)

       at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)

       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)

       at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)

       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)

       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)

       at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1700)

       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)

       at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)

       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)

       at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)

       at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1667)

       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)

       at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)

       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)

       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)

       at org.eclipse.jetty.server.Server.handle(Server.java:505)

       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)

       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)

       at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)

       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)

       at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)

       at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)

       at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)

       at java.lang.Thread.run(Thread.java:748)

 

I am afraid I am just missing something silly but any suggestions?

 

Thank you,

Hiyori

 

From: Daniele Romagnoli <[hidden email]>
Date: Thursday, July 18, 2019 at 3:34 AM
To: "Yoshida, Hiyori C. (GSFC-4740)[GSFC INTERNS]" <[hidden email]>
Cc: "[hidden email]" <[hidden email]>, "[hidden email]" <[hidden email]>
Subject: [EXTERNAL] Re: [Geoserver-users] Error Running GeoServer with Extensions with Maven Profiles

 

Hi Hiyori,

which Geoserver version are you referring to?

 

I have just run this command on master and it worked with no issues:

mvn eclipse:eclipse -Pimporter,imagemosaic-jdbc,wcs2_0-eo,oseo

 

A few things you might double check on your command:

- you must run it from the /path/to/geoserver/src/ directory

- don't use whitespaces while listing the profiles, so: -Pimporter,imagemosaic-jdbc,wcs2_0-eo,oseo

 

Please, let us know.

Best Regards,

Daniele

 

 

 

On Wed, Jul 17, 2019 at 10:33 PM Yoshida, Hiyori C. (GSFC-4740)[GSFC INTERNS] via Geoserver-users <[hidden email]> wrote:

Hello!

 

I am following this GeoServer guide (https://docs.geoserver.org/latest/en/developer/quickstart/eclipse.html) to try to use the Maven Eclipse Plugin to work with a GeoServer development environment. I want to run GeoServer with the following extensions: importer, imagemosaic-jdbc, wcs2_0-eo, oseo. I found these maven profiles in src/web/app/pom.xml. However, when I try to re-generate the root eclipse profile with the appropriate maven profiles using the command in the guide (mvn eclipse:eclipse -P oseo), I get the following error:

 

[WARNING] The requested profile "oseo" could not be activated because it does not exist.

 

How can I fix this?

 

And to enable multiple extensions, would I do “mvn eclipse:eclipse -P importer, imagemosaic-jdbc, wcs2_0-eo, oseo”?

 

Any help would be appreciated!

 

Thanks,

Hiyori

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


 

--

Regards,

Daniele Romagnoli

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.

==

 

Ing. Daniele Romagnoli

Senior Software Engineer

 

GeoSolutions S.A.S.

Via di Montramito 3/A

55054  Massarosa (LU)

Italy

phone: +39 0584 962313

fax:      +39 0584 1660272

 

 

-------------------------------------------------------

 

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.



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users