cancel
Showing results for 
Search instead for 
Did you mean: 

Powertools Site: 404 - Page does not exist

yulia_grel
Explorer
0 Kudos

Hi all,

I have a problem with the powertools site. I customized the yacceleratorstorefront (electronics) for a demo (it's working fine) and now I'm not able to start http://powertools.local:9001/yb2bacceleratorstorefront/?site=powertools (look at the screenshot). While opening the website cmd doesn't display any errors. May you tell me what I have to check to find the cause? I'm using the commerce-suite 5.2.0.1.

Thanks and best regards, Yulia

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

do you see the b2b storefront on the list on http://localhost:9001/platform/extensions ?

The way tomcat works in this case is to match your request against the longest matching path of a Context defined in your server.xml file.

So in this case, you have the hac on "/" and the only matching Context is "/".

Its likely that an error occurred starting the web application. Something like "SEVERE: Context [/yb2bacceleratorstorefront] startup failed due to previous errors".

yulia_grel
Explorer
0 Kudos

This extension is listed

Yes, you are right, there is an error with listenerStnd there is a startup fail. Do you have any idea how I can solve this problem? Or is there any possibility to create a new and clear yb2bacceleratostorefront?

Former Member
0 Kudos

What's the error?

Answers (9)

Answers (9)

Former Member
0 Kudos

Hi All,

There is a caution in the installation guide (https://help.hybris.com/6.3.0/hcd/8c46c266866910149666a0fe4caeee4e.html) saying that:

Don't use the Installer to run one recipe after another on the same Hybris Commerce. The Installer doesn't uninstall recipes and doesn't restore your Hybris file system to its original settings. To install another recipe, use a clean Hybris Commerce.

So you should look over if you have already installed a different receipe before the b2b one.

Kind regards

Former Member
0 Kudos

I have had the same issue. I resolved it by going to the WCMS cockpit and displaying the site in quick edit mode. After that the site was accessible via the normal url.

Former Member
0 Kudos

Hi Daniel,

In quick edit also, I'm not getting the site. it is still saying - 404 - Page does not exist

Former Member
0 Kudos

Hi Prerna,

I met the same issue with you

Did you fix it?

Former Member
0 Kudos

@yulia -- Did you manage to resolve the issue? I am having the same issue with Hybris 5.5 install.

Former Member
0 Kudos

Hi,I've got the same issue?

Did you fix it?

Former Member
0 Kudos

your application is not started up. of course, then you won't get any site.

yulia_grel
Explorer
0 Kudos

The part before:

Caused by: org.springframework.beans.factory.BeanCreationException: Could not au towire field: private org.springframework.context.ApplicationContext de.hybris.p latform.yb2bacceleratorstorefront.web.theme.StorefrontResourceBundleSource.appCo ntext; nested exception is org.springframework.beans.factory.BeanDefinitionStore Exception: Invalid bean definition with name 'defaultRandomimageaddonJavaScriptM essageResourceAccessor' defined in class path resource [randomimageaddon/web/spr ing/randomimageaddon-web-spring.xml]: Could not resolve parent bean definition ' abstractJavaScriptMessageResourceAccessor'; nested exception is org.springframew ork.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractJavaScri ptMessageResourceAccessor' is defined at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j ava:517) at org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP ostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java :286) ... 22 more Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Inval id bean definition with name 'defaultRandomimageaddonJavaScriptMessageResourceAc cessor' defined in class path resource [randomimageaddon/web/spring/randomimagea ddon-web-spring.xml]: Could not resolve parent bean definition 'abstractJavaScri ptMessageResourceAccessor'; nested exception is org.springframework.beans.factor y.NoSuchBeanDefinitionException: No bean named 'abstractJavaScriptMessageResourc eAccessor' is defined at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:1183) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:1128) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edLocalBeanDefinition(AbstractBeanFactory.java:1114) at org.springframework.beans.factory.support.DefaultListableBeanFactory. doGetBeanNamesForType(DefaultListableBeanFactory.java:349) at org.springframework.beans.factory.support.DefaultListableBeanFactory. getBeanNamesForType(DefaultListableBeanFactory.java:326) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIn cludingAncestors(BeanFactoryUtils.java:187) at org.springframework.beans.factory.support.DefaultListableBeanFactory. findAutowireCandidates(DefaultListableBeanFactory.java:897) at org.springframework.beans.factory.support.DefaultListableBeanFactory. doResolveDependency(DefaultListableBeanFactory.java:855) at org.springframework.beans.factory.support.DefaultListableBeanFactory. resolveDependency(DefaultListableBeanFactory.java:770) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j ava:489) ... 24 more Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No b ean named 'abstractJavaScriptMessageResourceAccessor' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory. getBeanDefinition(DefaultListableBeanFactory.java:570) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edLocalBeanDefinition(AbstractBeanFactory.java:1114) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:895) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:892) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:892) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:1169) ... 33 more Aug 27, 2014 12:32:49 PM org.apache.catalina.core.StandardContext listenerStart Schwerwiegend: Exception sending context initialized event to listener instance of class de.hybris.platform.yb2bacceleratorstorefront.filters.HybrisStorefrontCo ntextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean wit h name 'storefrontMessageSource': Injection of autowired dependencies failed; ne sted exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.context.ApplicationContext de.h ybris.platform.yb2bacceleratorstorefront.web.theme.StorefrontResourceBundleSourc e.appContext; nested exception is org.springframework.beans.factory.BeanDefiniti onStoreException: Invalid bean definition with name 'defaultRandomimageaddonJava ScriptMessageResourceAccessor' defined in class path resource [randomimageaddon/ web/spring/randomimageaddon-web-spring.xml]: Could not resolve parent bean defin ition 'abstractJavaScriptMessageResourceAccessor'; nested exception is org.sprin gframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractJ avaScriptMessageResourceAccessor' is defined at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP ostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java :289) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1146) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ject(AbstractBeanFactory.java:296) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe an(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:198) at org.springframework.context.support.AbstractApplicationContext.initMe ssageSource(AbstractApplicationContext.java:786) at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:467) at org.springframework.web.context.ContextLoader.configureAndRefreshWebA pplicationContext(ContextLoader.java:410) at org.springframework.web.context.ContextLoader.initWebApplicationConte xt(ContextLoader.java:306) at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicat ionContext(HybrisContextLoaderListener.java:87) at org.springframework.web.context.ContextLoaderListener.contextInitiali zed(ContextLoaderListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContex t.java:4973) at org.apache.catalina.core.StandardContext.startInternal(StandardContex t.java:5467) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase. java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase. java:1549) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.springframework.beans.factory.BeanCreationException: Could not au towire field: private org.springframework.context.ApplicationContext de.hybris.p latform.yb2bacceleratorstorefront.web.theme.StorefrontResourceBundleSource.appCo ntext; nested exception is org.springframework.beans.factory.BeanDefinitionStore Exception: Invalid bean definition with name 'defaultRandomimageaddonJavaScriptM essageResourceAccessor' defined in class path resource [randomimageaddon/web/spr ing/randomimageaddon-web-spring.xml]: Could not resolve parent bean definition ' abstractJavaScriptMessageResourceAccessor'; nested exception is org.springframew ork.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractJavaScri ptMessageResourceAccessor' is defined at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j ava:517) at org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP ostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java :286) ... 22 more Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Inval id bean definition with name 'defaultRandomimageaddonJavaScriptMessageResourceAc cessor' defined in class path resource [randomimageaddon/web/spring/randomimagea ddon-web-spring.xml]: Could not resolve parent bean definition 'abstractJavaScri ptMessageResourceAccessor'; nested exception is org.springframework.beans.factor y.NoSuchBeanDefinitionException: No bean named 'abstractJavaScriptMessageResourc eAccessor' is defined at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:1183) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:1128) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edLocalBeanDefinition(AbstractBeanFactory.java:1114) at org.springframework.beans.factory.support.DefaultListableBeanFactory. doGetBeanNamesForType(DefaultListableBeanFactory.java:349) at org.springframework.beans.factory.support.DefaultListableBeanFactory. getBeanNamesForType(DefaultListableBeanFactory.java:326) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIn cludingAncestors(BeanFactoryUtils.java:187) at org.springframework.beans.factory.support.DefaultListableBeanFactory. findAutowireCandidates(DefaultListableBeanFactory.java:897) at org.springframework.beans.factory.support.DefaultListableBeanFactory. doResolveDependency(DefaultListableBeanFactory.java:855) at org.springframework.beans.factory.support.DefaultListableBeanFactory. resolveDependency(DefaultListableBeanFactory.java:770) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j ava:489) ... 24 more Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No b ean named 'abstractJavaScriptMessageResourceAccessor' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory. getBeanDefinition(DefaultListableBeanFactory.java:570) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edLocalBeanDefinition(AbstractBeanFactory.java:1114) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:895) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:892) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:892) at org.springframework.beans.factory.support.AbstractBeanFactory.getMerg edBeanDefinition(AbstractBeanFactory.java:1169) ... 33 more

Aug 27, 2014 12:32:49 PM org.apache.catalina.core.StandardContext startInternal Schwerwiegend: Error listenerStart Aug 27, 2014 12:32:49 PM org.apache.catalina.core.StandardContext startInternal Schwerwiegend: Context [/yb2bacceleratorstorefront] startup failed due to previo us errors

Former Member
0 Kudos

No bean named 'abstractJavaScriptMessageResourceAccessor' is defined.

So you have followed some of the Trails and left it in your code, and it is causing an error here. Either delete it, or perform the changes you made to the b2c storefront in the b2b storefront too.

Former Member
0 Kudos

From randomimageaddon ...

yulia_grel
Explorer
0 Kudos

Right, I will try it. Thank you for your help!

yulia_grel
Explorer
0 Kudos

Here a part: Aug 27, 2014 12:32:49 PM org.apache.catalina.core.StandardContext startInternal Schwerwiegend: Error listenerStart Aug 27, 2014 12:32:49 PM org.apache.catalina.core.StandardContext startInternal Schwerwiegend: Context [/yb2bacceleratorstorefront] startup failed due to previo us errors INFO [localhost-startStop-1] [HybrisContextLoaderListener]


INFO [localhost-startStop-1] [HybrisContextLoaderListener] adding custom config locations [classpath:reportcockpit/reportcockpit-spring-configs.xml,classpath:/ yacceleratorcockpits/reportcockpit/spring/import.xml] for ctx Root WebApplicatio nContext - /reportcockpit: startup date [Thu Jan 01 01:00:00 CET 1970]; parent: hybris Application context - master INFO [localhost-startStop-1] [HybrisContextLoaderListener]


INFO [localhost-startStop-1] [HybrisContextLoaderListener]


INFO [localhost-startStop-1] [HybrisContextLoaderListener] adding custom config locations [WEB-INF/config/web-application-config.xml,classpath:/acceleratorstor efrontcommons/web/spring/acceleratorstorefrontcommons-spring.xml,classpath:/addo nsupport/web/spring/addonsupport-b2c-web-spring.xml,classpath:/randomimageaddon/ web/spring/randomimageaddon-web-spring.xml,classpath:/b2ccheckoutaddon/web/sprin g/b2ccheckoutaddon-web-spring.xml] for ctx Root WebApplicationContext - /yaccele ratorstorefront: startup date [Thu Jan 01 01:00:00 CET 1970]; parent: hybris App lication context - master

Former Member
0 Kudos

operative word here being "previous"

Former Member
0 Kudos

Goto localhost:9001/mcc .check the storefronts available .If powertool is available well and good .If not then we can start debuging

yulia_grel
Explorer
0 Kudos

The storefront-link is available under /mcc, but it redirects always to http://powertools.local:9001/login.jsp

yulia_grel
Explorer
0 Kudos

Maybe you can tell me in which java class I can start debuging?

Former Member
0 Kudos

You can goto HMC > WCMS > WEBSITE and search for powertools and see what urls are configured for it .Plus you can start debugging into Log4JFilter + HomePageController.

yulia_grel
Explorer
0 Kudos

This URL Patterns are used:

  • (?i)^https?://[^/]+(/[^?])?\?(.\&)?(site=powertools)(|\&.*)$
  • (?i)^https?://powertools.[^/]+(|/.|\?.)$
for WCMS Cockpit Preview URL: /yb2bacceleratorstorefront/?site=powertools
yulia_grel
Explorer
0 Kudos

You mean I have to use https://wiki.hybris.com/pages/viewpage.action?pageId=141792994 in HomePageController.java of yb2bacceleratorstorefront, right?

Former Member
0 Kudos

That will not help you. You are not hitting that controller. You are not hitting the web application at all.

yulia_grel
Explorer
0 Kudos

Do you have any suggest?

Former Member
0 Kudos

The screen shot shows that your request actually hit the hac web application (usually mapped to / ).

This means that tomcat doesn't know /yb2bacceleratorstorefront as web app. Please check /tomcat/conf/server.xml for what's configured there ( this file is generated by hybris when running ant ).

yulia_grel
Explorer
0 Kudos

Following entry for yb2bacceleratorstorefront stands there:

         <Context path="/yb2bacceleratorstorefront" docBase="C:\hybris Demo\hybris\bin\ext-template\yb2bacceleratorstorefront/web/webroot" useHttpOnly="true" disableURLRewriting="true">
             <Manager pathname="" />
             <Loader platformHome="C:\hybris Demo\hybris\bin\platform" className="de.hybris.tomcat.HybrisWebappLoader" deployName="default" />
         </Context>

What exactly should I look for?

Former Member
0 Kudos

Ok, at least it proves that yb2bacceleratorstorefront is correctly mapped.

Assuming that you're correctly entered http://powertools.local:9001/yb2bacceleratorstorefront/?site=powertools (with the '/' after 'yb2bacceleratorstorefront' ) I can only guess that there is some redirect happening sending you to http://powertools.local:9001/yb2bacceleratorstorefront (without the '/' after 'yb2bacceleratorstorefront') which actually hits the hac web app.

May be you can get your bowser record and show the http requests ? In Safari you can 'enable the developer mode' having this feature.

yulia_grel
Explorer
0 Kudos

Whether I call http://powertools.local:9001/yb2bacceleratorstorefront/ or http://powertools.local:9001/yb2bacceleratorstorefront/?site=powertools it returns the status "302 Found" and redirects to location http://powertools.local:9001/login.jsp There are only 2 http requests recorded:

Former Member
0 Kudos

Did you include all the necessary b2b extensions? Find attached an example of b2b stand alone extensions configuration that should work for you.

yulia_grel
Explorer
0 Kudos

Hi Ignacio, yes, all of them are included.