cancel
Showing results for 
Search instead for 
Did you mean: 

Hybris 6.7 strorefront is not up and running

former_member628401
Participant
0 Kudos
942

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

former_member620692
Active Contributor
0 Kudos

Hi @Satish - please attach the log.

Accepted Solutions (1)

Accepted Solutions (1)

former_member628401
Participant
0 Kudos

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,

0 Kudos

hi ,

is this error got resolved ? i am also facing the same

former_member628401
Participant
0 Kudos

Hi Pallavi ,

Still getting same issues in my machine .

tried to setup different way but issues still not resolved .

Let me know if u r able to solve this issues in your system ?

Answers (7)

Answers (7)

0 Kudos

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

former_member628401
Participant
0 Kudos

ok ,

but other my colleagues are able to installed hybris 6.7 version with same code .

0 Kudos

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 =...)

former_member620692
Active Contributor
0 Kudos

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.

former_member628401
Participant
0 Kudos

Hi

Yes checking this one .

Regards ,

pandeysuresh06
Participant
0 Kudos

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

former_member628401
Participant
0 Kudos

Hi

Thanks for your reply .

Looking now whatever u said .

former_member628401
Participant
0 Kudos

Hi

Please find complete attache log .link text

Please let me know if you found anything .

Thanks in Advance .

link text

link text

Former Member
0 Kudos

Just check once with localhost:9002

Also check the log file, If you missed to inject any bean this used to happen.