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

No bean named 'adminJsResourceHttpRequestHandlerBase' available #4

Closed
mehmetsunkur opened this issue Apr 13, 2017 · 2 comments
Closed

Comments

@mehmetsunkur
Copy link

The admin app failures on startup with this error.

I found similar definitions in
broadleaf-common-5.2.0-SNAPSHOT.jar -> bl-common-applicationContext.xml
for site app

    <bean id="siteJsResourceRequestHandlerBase" abstract="true" parent="siteResourceHttpRequestHandlerBase">
        <property name="locations" ref="blJsLocations" />
        <property name="resourceTransformers" ref="blJsResourceTransformers" />    
    </bean>
    
    <bean id="siteCssResourceRequestHandlerBase" abstract="true" parent="siteResourceHttpRequestHandlerBase">
        <property name="locations" ref="blCssLocations" />
        <property name="resourceTransformers" ref="blCssResourceTransformers" />
    </bean>

I could start the admin app after made changes in applicationContext-admin.xml
from

<bean id="blJsResources" parent="adminJsResourceHttpRequestHandlerBase" />
    <bean id="blCssResources" parent="adminCssResourceHttpRequestHandlerBase" />

to

   <bean id="blJsResources" parent="siteJsResourceRequestHandlerBase" />
    <bean id="blCssResources" parent="siteCssResourceRequestHandlerBase" />
cja769 pushed a commit that referenced this issue Apr 13, 2017
@cja769
Copy link
Contributor

cja769 commented Apr 13, 2017

@mehmetsunkur Thanks for seeing that. Those two bean defs can just be removed and I made a commit to do so.

@cja769 cja769 closed this as completed Apr 13, 2017
@mehmetsunkur
Copy link
Author

@cja769 that was quick fix. I pulled down, it is working. Thanks.

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