Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling the geoserver configuration file in the pom file, unable to start #354

Closed
xgblack opened this issue Aug 31, 2023 · 3 comments
Closed

Comments

@xgblack
Copy link

xgblack commented Aug 31, 2023

Hello, after I activate the configuration of geoserver in the pom file, the module does not start properly, 'wms' that could not be found. when I de-configure it and use the jar built in the local repository it starts properly!
May I ask what is the reason for this, can geoserver_submodule be used only after the build? thanks!

2023-08-31 23:03:37.987 ERROR 41139 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean named 'wms' that could not be found.


Action:

Consider defining a bean named 'wms' in your configuration.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getMapKvpReader' defined in class path resource [org/geoserver/cloud/gwc/config/core/WebMapServiceMinimalConfiguration.class]: 'getMapKvpReader' depends on missing bean 'wms'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'wms' available
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:325)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292)
	at org.geoserver.cloud.wms.app.WmsApplication.main(WmsApplication.java:17)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'wms' available`
@groldan
Copy link
Member

groldan commented Sep 1, 2023

Hi, I take you're trying to run a service from an IDE?

Yes, the geoserver_submodule is supposed to be built once and then just depend on it.
So just run make deps and forget about it, import only the geoserver-cloud projects to the IDE.
I've actually just removed geoserver_submodule from the root pom in this PR #355

@groldan
Copy link
Member

groldan commented Jan 8, 2024

That answer didn't make any sense, sorry.
I'm not sure what you mean by "activate the configuration of geoserver in the pom file", I guess it'd be the "geoserver" maven profile?
In any case that profile doesn't exist anymore nor the geoserver_submodule git submodule.
As for your error, which app are you running and how?

@groldan
Copy link
Member

groldan commented May 30, 2024

closing as stale

@groldan groldan closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants