on 2019 Jun 10 1:07 PM
Hi Experts ,
I have upgraded mine hybris version from 6.3 to 6.7 and everything done now .
But Storefront is not running successfully as getting issues as
"No webpage was found for the web address: https://local.xxx.com:9002/ HTTP ERROR 404"
Can anyone help me on which scenarios , this type of issues happened.
Hi ,
Could you please suggest me on this .
Regards , Satish
Hi ,
One of my collegue able to setup hybris 6.7 with existing custom code but while i'm trying to do with same process and approach , all the time getting below exception :
INFO | jvm 1 | main | 2019/06/25 19:27:20.307 | WARN [localhost-startStop-1] [TenantIgnoreXmlWebApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStorefrontTenantDefaultFilterChainList': Cannot resolve reference to bean 'urlEncoderFilter' while setting bean property 'sourceList' with key [8]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlEncoderFilter': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shireHandlerMappings' defined in URL [file:/D:/HybrisJun19/hybris/bin/custom/shirebrowseaddon/resources/spring-filter-config.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'b2BaddToCartController' method INFO | jvm 1 | main | 2019/06/25 19:27:20.364 | public java.lang.String de.hybris.platform.yb2bacceleratorstorefront.controllers.misc.AddToCartController.addToCart(java.lang.String,org.springframework.ui.Model,de.hybris.platform.acceleratorstorefrontcommons.forms.AddToCartForm,org.springframework.validation.BindingResult) INFO | jvm 1 | main | 2019/06/25 19:27:20.403 | to {[/cart/add],methods=[POST],produces=[application/json]}: There is already 'sapAddToCartController' bean method
Difficult to find out why it's happening .
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Satish/Arvind
I am also facing the same issue mentioned by Satish while upgrading from 6.7 to 2005 with same code base as done by satish from 6.3 to 6.7. i am also migrating the codebase to CCV2. During deployment on CCV2 i am facing the above mentioned error.
Can you please guide me how to resolve this error on CCV2. I tried a lot but not able to find any proper solution.
I am attaching the error log:
{"thread":"localhost-startStop-1","level":"WARN","loggerName":"de.hybris.platform.spring.ctx.TenantIgnoreXmlWebApplicationContext","message":"Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStorefrontTenantDefaultFilterChainList': Cannot resolve reference to bean 'urlEncoderFilter' while setting bean property 'sourceList' with key [9]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlEncoderFilter': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shireHandlerMappings' defined in URL [file:/opt/hybris/bin/custom/shirebrowseaddon/resources/spring-filter-config.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'sapAddToCartController' method \nde.hybris.platform.sap.ysapordermgmtb2baddon.controllers.SapAddToCartController#addQuickOrderToCart(AddToCartOrderForm, Model)\nto {POST /cart/addQuickOrder, produces [application/json]}: There is already 'b2BaddToCartController' bean method\ncom.shire.browseaddon.controllers.misc.B2BAddToCartController#addQuickOrderToCart(AddToCartOrderForm, Model) mapped.","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.impl.SLF4JLocationAwareLog","instant":{"epochSecond":1606741779,"nanoOfSecond":426696000},"contextMap":{"Tenant":""},"threadId":22,"threadPriority":5,"origin":"PLATFORM"}
Thanks,
Rashmi Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok ,
but other my colleagues are able to installed hybris 6.7 version with same code .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cannot map 'b2BaddToCartController' method INFO | jvm 1 | main | 2019/06/25 19:27:20.364 | public java.lang.String de.hybris.platform.yb2bacceleratorstorefront.controllers.misc.AddToCartController.addToCart(java.lang.String,org.springframework.ui.Model,de.hybris.platform.acceleratorstorefrontcommons.forms.AddToCartForm,org.springframework.validation.BindingResult) INFO | jvm 1 | main | 2019/06/25 19:27:20.403 | to {[/cart/add]
can you please check if Post method of [/cart/add] is already defined in some other controller?
check the Link shared by Arvind above.
if the issue is about ambigious method, probably the @RequestMapping should be the issue. Change from @RequestMapping(name =...) to @RequestMapping(value =...)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Satish - It looks like the RequestMapping
of /cart/addGrid
has been defined in both, B2BaddToCartController
and SapAddToCartController
but they are not being resolved uniquely. Please check https://stackoverflow.com/questions/29949423/spring-mvc-ambiguous-mapping-found-cannot-map-controlle... for an example.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
INFO | jvm 1 | main | 2019/06/14 10:51:49.755 | INFO [localhost-startStop-2] [HybrisContextLoaderListener] Registered HttpSession timeout listener for '/rest' INFO | jvm 1 | main | 2019/06/14 10:51:52.133 | WARN [localhost-startStop-1] [TenantIgnoreXmlWebApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStorefrontTenantDefaultFilterChainList': Cannot resolve reference to bean 'urlEncoderFilter' while setting bean property 'sourceList' with key [8]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlEncoderFilter': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shireHandlerMappings' defined in URL [file:/D:/Hybris677/hybris/bin/custom/shirebrowseaddon/resources/spring-filter-config.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'b2BaddToCartController' method INFO | jvm 1 | main | 2019/06/14 10:51:52.201 | public final java.lang.String de.hybris.platform.yb2bacceleratorstorefront.controllers.misc.AddToCartController.addG
Check , there is an issue with the URL mapping so spring context is not getting started
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just check once with localhost:9002
Also check the log file, If you missed to inject any bean this used to happen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
25 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.