Context initialization failed - No bean named 'cacheManager' is defined

514 views
Skip to first unread message

Vel Ats

unread,
Jul 6, 2018, 7:09:57 AM7/6/18
to onebusaway-developers
i am using snapshot-2.0.0, trying to deploy the api-webapp and the federations-webapp

the api.log shows this error:

how can i define the cachemanager bean?

2018-07-06 12:52:10,816 ERROR [ContextLoader.java:220] : Context initialization failed
org
.springframework.beans.factory.BeanInitializationException: Could not process key 'cacheManager.cacheManagerName' in PropertyOverrideConfigurer; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cacheManager' is defined

[...]

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cacheManager' is defined

[...]


Sheldon A. Brown

unread,
Jul 6, 2018, 7:20:59 AM7/6/18
to onebusaway...@googlegroups.com
Can you post the data-sources.xml you are using for the api-webapp?

Sheldon
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to onebusaway-devel...@googlegroups.com.
> To post to this group, send email to onebusaway...@googlegroups.com.
> Visit this group at https://groups.google.com/group/onebusaway-developers.
> For more options, visit https://groups.google.com/d/optout.

Vel Ats

unread,
Jul 6, 2018, 7:28:21 AM7/6/18
to onebusaway-developers
I only changed the data-sources.xml from /var/lib/tomcat7/webapps/ROOT/WEB-INF/classes/data-sources.xml

On Friday, July 6, 2018 at 1:20:59 PM UTC+2, Sheldon A. Brown wrote:
Can you post the data-sources.xml you are using for the api-webapp?

Sheldon

On Fri, Jul 6, 2018 at 7:09 AM, Vel Ats <yt.v...@gmail.com> wrote:
> i am using snapshot-2.0.0, trying to deploy the api-webapp and the
> federations-webapp
>
> the api.log shows this error:
>
> how can i define the cachemanager bean?
>
> 2018-07-06 12:52:10,816 ERROR [ContextLoader.java:220] : Context
> initialization failed
> org.springframework.beans.factory.BeanInitializationException: Could not
> process key 'cacheManager.cacheManagerName' in PropertyOverrideConfigurer;
> nested exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'cacheManager' is defined
>
> [...]
>
> Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException:
> No bean named 'cacheManager' is defined
>
> [...]
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Sheldon A. Brown

unread,
Jul 6, 2018, 7:40:57 AM7/6/18
to onebusaway...@googlegroups.com
Ok, in that case I suspect some issues with your data sources are
hiding the real error.

Try replacing the
onebusaway-api-webapp/WEB-INF/classes/data-sources.xml with this one:
https://gist.github.com/sheldonabrown/26491eaad427560d9c09f0ed499f2b3c
>> > email to onebusaway-devel...@googlegroups.com.
>> > To post to this group, send email to onebusaway...@googlegroups.com.
>> > Visit this group at
>> > https://groups.google.com/group/onebusaway-developers.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to onebusaway-devel...@googlegroups.com.

Vel Ats

unread,
Jul 6, 2018, 7:47:20 AM7/6/18
to onebusaway-developers
I am getting exactly the same error. it does not change anything :/
>> > To post to this group, send email to onebusaway...@googlegroups.com.
>> > Visit this group at
>> > https://groups.google.com/group/onebusaway-developers.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Sheldon A. Brown

unread,
Jul 6, 2018, 7:50:03 AM7/6/18
to onebusaway...@googlegroups.com
Ok, something strange is going on. Can you undeploy the api-webapp,
and confirm that the onebusaway-transit-data-federatoin-webapp has
deployed successfully and loaded the bundle, and that you have no
other webapps deployed?
>> >> > email to onebusaway-devel...@googlegroups.com.
>> >> > To post to this group, send email to onebusaway...@googlegroups.com.
>> >> > Visit this group at
>> >> > https://groups.google.com/group/onebusaway-developers.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "onebusaway-developers" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to onebusaway-devel...@googlegroups.com.
>> > To post to this group, send email to onebusaway...@googlegroups.com.
>> > Visit this group at
>> > https://groups.google.com/group/onebusaway-developers.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to onebusaway-devel...@googlegroups.com.

Vel Ats

unread,
Jul 6, 2018, 7:58:23 AM7/6/18
to onebusaway-developers
okay now the only webapp that is deployed is the federations-webapp. i am now getting the same error in the catalina.out which has been in the api.log before.
>> >> > To post to this group, send email to onebusaway...@googlegroups.com.
>> >> > Visit this group at
>> >> > https://groups.google.com/group/onebusaway-developers.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "onebusaway-developers" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > To post to this group, send email to onebusaway...@googlegroups.com.
>> > Visit this group at
>> > https://groups.google.com/group/onebusaway-developers.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Sheldon A. Brown

unread,
Jul 6, 2018, 8:00:44 AM7/6/18
to onebusaway...@googlegroups.com
When you say "federations-webapp", can you confirm that you mean
"onebusaway-transit-data-federations-webapp"?

Sheldon
>> >> >> > email to onebusaway-devel...@googlegroups.com.
>> >> >> > To post to this group, send email to
>> >> >> > onebusaway...@googlegroups.com.
>> >> >> > Visit this group at
>> >> >> > https://groups.google.com/group/onebusaway-developers.
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "onebusaway-developers" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > email to onebusaway-devel...@googlegroups.com.
>> >> > To post to this group, send email to onebusaway...@googlegroups.com.
>> >> > Visit this group at
>> >> > https://groups.google.com/group/onebusaway-developers.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "onebusaway-developers" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to onebusaway-devel...@googlegroups.com.
>> > To post to this group, send email to onebusaway...@googlegroups.com.
>> > Visit this group at
>> > https://groups.google.com/group/onebusaway-developers.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to onebusaway-devel...@googlegroups.com.

Vel Ats

unread,
Jul 6, 2018, 8:28:06 AM7/6/18
to onebusaway-developers
stupid fault from my side. sorry for the inconvenience.
i was accidentially using the wrong webapp
>> >> >> > To post to this group, send email to
>> >> >> > onebusaway...@googlegroups.com.
>> >> >> > Visit this group at
>> >> >> > https://groups.google.com/group/onebusaway-developers.
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "onebusaway-developers" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > To post to this group, send email to onebusaway...@googlegroups.com.
>> >> > Visit this group at
>> >> > https://groups.google.com/group/onebusaway-developers.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "onebusaway-developers" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > To post to this group, send email to onebusaway...@googlegroups.com.
>> > Visit this group at
>> > https://groups.google.com/group/onebusaway-developers.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Sheldon A. Brown

unread,
Jul 6, 2018, 10:50:38 AM7/6/18
to onebusaway...@googlegroups.com
No worries -- glad I could help.

Sheldon
>> >> >> >> > email to onebusaway-devel...@googlegroups.com.
>> >> >> >> > To post to this group, send email to
>> >> >> >> > onebusaway...@googlegroups.com.
>> >> >> >> > Visit this group at
>> >> >> >> > https://groups.google.com/group/onebusaway-developers.
>> >> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >> >
>> >> >> > --
>> >> >> > You received this message because you are subscribed to the Google
>> >> >> > Groups
>> >> >> > "onebusaway-developers" group.
>> >> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> >> > send
>> >> >> > an
>> >> >> > email to onebusaway-devel...@googlegroups.com.
>> >> >> > To post to this group, send email to
>> >> >> > onebusaway...@googlegroups.com.
>> >> >> > Visit this group at
>> >> >> > https://groups.google.com/group/onebusaway-developers.
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "onebusaway-developers" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > email to onebusaway-devel...@googlegroups.com.
>> >> > To post to this group, send email to onebusaway...@googlegroups.com.
>> >> > Visit this group at
>> >> > https://groups.google.com/group/onebusaway-developers.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "onebusaway-developers" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to onebusaway-devel...@googlegroups.com.
>> > To post to this group, send email to onebusaway...@googlegroups.com.
>> > Visit this group at
>> > https://groups.google.com/group/onebusaway-developers.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to onebusaway-devel...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages