shopizer-ecommerce / shopizer

Shopizer java e-commerce software
http://www.shopizer.com
Apache License 2.0
3.58k stars 3.01k forks source link

Shopizer cannot start because of Tiles configuration issue #162

Open Crazy-Horse opened 7 years ago

Crazy-Horse commented 7 years ago

I'm following the setup instructions on https://github.com/shopizer-ecommerce/shopizer/wiki/Setup but can't get the application to start from Spring Boot. I'm using:

Here's the stacktrace:

2017-07-16 04:37:39.890 ERROR 32568 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in class path resource [com/salesmanager/shop/application/ShopApplicationConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No URL for ServletContext resource [/webapp/WEB-INF/tiles/tiles-admin.xml] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at com.salesmanager.shop.application.ShopApplication.main(ShopApplication.java:11) [classes/:na] Caused by: java.lang.IllegalArgumentException: No URL for ServletContext resource [/webapp/WEB-INF/tiles/tiles-admin.xml] at org.springframework.web.servlet.view.tiles3.SpringWildcardServletTilesApplicationContext.getResources(SpringWildcardServletTilesApplicationContext.java:96) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.web.servlet.view.tiles3.TilesConfigurer$SpringTilesContainerFactory.getSources(TilesConfigurer.java:306) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.apache.tiles.factory.BasicTilesContainerFactory.createLocaleDefinitionDao(BasicTilesContainerFactory.java:182) ~[tiles-core-3.0.4.jar:3.0.4] at org.apache.tiles.factory.BasicTilesContainerFactory.createDefinitionsFactory(BasicTilesContainerFactory.java:137) ~[tiles-core-3.0.4.jar:3.0.4] at org.springframework.web.servlet.view.tiles3.TilesConfigurer$SpringTilesContainerFactory.createDefinitionsFactory(TilesConfigurer.java:354) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.apache.tiles.factory.BasicTilesContainerFactory.createContainer(BasicTilesContainerFactory.java:86) ~[tiles-core-3.0.4.jar:3.0.4] at org.springframework.web.servlet.view.tiles3.TilesConfigurer$SpringTilesContainerFactory.createContainer(TilesConfigurer.java:297) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.apache.tiles.startup.AbstractTilesInitializer.createContainer(AbstractTilesInitializer.java:114) ~[tiles-core-3.0.4.jar:3.0.4] at org.apache.tiles.startup.AbstractTilesInitializer.initialize(AbstractTilesInitializer.java:64) ~[tiles-core-3.0.4.jar:3.0.4] at org.springframework.web.servlet.view.tiles3.TilesConfigurer.afterPropertiesSet(TilesConfigurer.java:271) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE] ... 16 common frames omitted Caused by: java.io.FileNotFoundException: ServletContext resource [/webapp/WEB-INF/tiles/tiles-admin.xml] cannot be resolved to URL because it does not exist at org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:156) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.web.servlet.view.tiles3.SpringWildcardServletTilesApplicationContext.getResources(SpringWildcardServletTilesApplicationContext.java:91) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE] ... 27 common frames omitted

2017-07-16 04:37:39.899 INFO 32568 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/charsets.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/deploy.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/access-bridge-64.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/cldrdata.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/dnsns.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/jaccess.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/jfxrt.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/localedata.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/nashorn.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/sunec.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/sunjce_provider.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/sunmscapi.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/sunpkcs11.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/ext/zipfs.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/javaws.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/jce.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/jfr.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/jfxswt.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/jsse.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/management-agent.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/plugin.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/resources.jar, file:/C:/Program%20Files/Java/jdk1.8.0_101/jre/lib/rt.jar, file:/C:/Users/Stuart/Documents/IntelliJIDEA_Projects/shopizer/sm-shop/target/classes/, file:/C:/Users/Stuart/Documents/IntelliJIDEA_Projects/shopizer/sm-core/target/classes/, file:/C:/Users/Stuart/Documents/IntelliJIDEA_Projects/shopizer/sm-core-modules/target/classes/, file:/C:/Users/Stuart/Documents/IntelliJIDEA_Projects/shopizer/shopizer-shipping-distance-module/target/classes/, file:/C:/Users/Stuart/.m2/repository/javax/servlet/jstl/1.2/jstl-1.2.jar, file:/C:/Users/Stuart/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar, file:/C:/Users/Stuart/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar, file:/C:/Users/Stuart/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar, file:/C:/Users/Stuart/.m2/repository/com/google/maps/google-maps-services/0.1.6/google-maps-services-0.1.6.jar, file:/C:/Users/Stuart/.m2/repository/com/squareup/okhttp/okhttp/2.0.0/okhttp-2.0.0.jar, file:/C:/Users/Stuart/.m2/repository/com/squareup/okio/okio/1.0.0/okio-1.0.0.jar, file:/C:/Users/Stuart/Documents/IntelliJIDEA_Projects/shopizer/shopizer-canadapost/target/classes/, file:/C:/Users/Stuart/.m2/repository/com/sun/jersey/jersey-bundle/1.19/jersey-bundle-1.19.jar, file:/C:/Users/Stuart/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar, file:/C:/Users/Stuart/.m2/repository/org/drools/drools-spring/5.6.0.Final/drools-spring-5.6.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/drools/knowledge-api/5.6.0.Final/knowledge-api-5.6.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/drools/drools-core/5.6.0.Final/drools-core-5.6.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/mvel/mvel2/2.1.8.Final/mvel2-2.1.8.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/drools/knowledge-internal-api/5.6.0.Final/knowledge-internal-api-5.6.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/drools/drools-compiler/5.6.0.Final/drools-compiler-5.6.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/antlr/antlr-runtime/3.3/antlr-runtime-3.3.jar, file:/C:/Users/Stuart/.m2/repository/org/antlr/antlr/3.3/antlr-3.3.jar, file:/C:/Users/Stuart/.m2/repository/org/antlr/stringtemplate/3.2.1/stringtemplate-3.2.1.jar, file:/C:/Users/Stuart/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar, file:/C:/Users/Stuart/.m2/repository/org/drools/drools-decisiontables/5.6.0.Final/drools-decisiontables-5.6.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/drools/drools-templates/5.6.0.Final/drools-templates-5.6.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/poi/poi-ooxml/3.9/poi-ooxml-3.9.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/poi/poi/3.9/poi-3.9.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/poi/poi-ooxml-schemas/3.9/poi-ooxml-schemas-3.9.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.jar, file:/C:/Users/Stuart/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar, file:/C:/Users/Stuart/.m2/repository/com/thoughtworks/xstream/xstream/1.4.1/xstream-1.4.1.jar, file:/C:/Users/Stuart/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar, file:/C:/Users/Stuart/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar, file:/C:/Users/Stuart/.m2/repository/org/infinispan/infinispan-core/6.0.2.Final/infinispan-core-6.0.2.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/infinispan/infinispan-commons/6.0.2.Final/infinispan-commons-6.0.2.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/jgroups/jgroups/3.4.1.Final/jgroups-3.4.1.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/jboss/spec/javax/transaction/jboss-transaction-api_1.1_spec/1.0.1.Final/jboss-transaction-api_1.1_spec-1.0.1.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/jboss/marshalling/jboss-marshalling-river/1.4.4.Final/jboss-marshalling-river-1.4.4.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/jboss/marshalling/jboss-marshalling/1.4.4.Final/jboss-marshalling-1.4.4.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/infinispan/infinispan-cachestore-jdbc/6.0.2.Final/infinispan-cachestore-jdbc-6.0.2.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/infinispan/infinispan-tree/6.0.2.Final/infinispan-tree-6.0.2.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot-starter-test/1.3.5.RELEASE/spring-boot-starter-test-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19.jar, file:/C:/Users/Stuart/.m2/repository/org/objenesis/objenesis/2.1/objenesis-2.1.jar, file:/C:/Users/Stuart/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar, file:/C:/Users/Stuart/.m2/repository/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-test/4.2.6.RELEASE/spring-test-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/commons/commons-collections4/4.0/commons-collections4-4.0.jar, file:/C:/Users/Stuart/.m2/repository/commons-validator/commons-validator/1.5.1/commons-validator-1.5.1.jar, file:/C:/Users/Stuart/.m2/repository/commons-beanutils/commons-beanutils/1.9.2/commons-beanutils-1.9.2.jar, file:/C:/Users/Stuart/.m2/repository/commons-digester/commons-digester/2.1/commons-digester-2.1.jar, file:/C:/Users/Stuart/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar, file:/C:/Users/Stuart/.m2/repository/org/freemarker/freemarker/2.3.23/freemarker-2.3.23.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-context-support/4.2.6.RELEASE/spring-context-support-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar, file:/C:/Users/Stuart/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar, file:/C:/Users/Stuart/.m2/repository/com/paypal/sdk/merchantsdk/2.6.109/merchantsdk-2.6.109.jar, file:/C:/Users/Stuart/.m2/repository/com/paypal/sdk/paypal-core/1.5.1/paypal-core-1.5.1.jar, file:/C:/Users/Stuart/.m2/repository/com/stripe/stripe-java/1.33.0/stripe-java-1.33.0.jar, file:/C:/Users/Stuart/.m2/repository/com/itextpdf/itextpdf/5.5.6/itextpdf-5.5.6.jar, file:/C:/Users/Stuart/.m2/repository/org/jopendocument/jOpenDocument/1.3b1/jOpenDocument-1.3b1.jar, file:/C:/Users/Stuart/.m2/repository/com/maxmind/geoip2/geoip2/2.7.0/geoip2-2.7.0.jar, file:/C:/Users/Stuart/.m2/repository/com/maxmind/db/maxmind-db/1.2.1/maxmind-db-1.2.1.jar, file:/C:/Users/Stuart/.m2/repository/com/google/http-client/google-http-client/1.21.0/google-http-client-1.21.0.jar, file:/C:/Users/Stuart/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar, file:/C:/Users/Stuart/Documents/IntelliJIDEA_Projects/shopizer/sm-core-model/target/classes/, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa/1.3.5.RELEASE/spring-boot-starter-data-jpa-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot-starter-aop/1.3.5.RELEASE/spring-boot-starter-aop-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/aspectj/aspectjweaver/1.8.9/aspectjweaver-1.8.9.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/1.3.5.RELEASE/spring-boot-starter-jdbc-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tomcat/tomcat-jdbc/8.0.33/tomcat-jdbc-8.0.33.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tomcat/tomcat-juli/8.0.33/tomcat-juli-8.0.33.jar, file:/C:/Users/Stuart/.m2/repository/org/hibernate/hibernate-entitymanager/4.3.11.Final/hibernate-entitymanager-4.3.11.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/jboss/logging/jboss-logging-annotations/1.2.0.Beta1/jboss-logging-annotations-1.2.0.Beta1.jar, file:/C:/Users/Stuart/.m2/repository/org/hibernate/hibernate-core/4.3.11.Final/hibernate-core-4.3.11.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/jboss/jandex/1.1.0.Final/jandex-1.1.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar, file:/C:/Users/Stuart/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar, file:/C:/Users/Stuart/.m2/repository/org/hibernate/common/hibernate-commons-annotations/4.0.5.Final/hibernate-commons-annotations-4.0.5.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.0.Final/hibernate-jpa-2.1-api-1.0.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar, file:/C:/Users/Stuart/.m2/repository/javax/transaction/javax.transaction-api/1.2/javax.transaction-api-1.2.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/data/spring-data-jpa/1.9.4.RELEASE/spring-data-jpa-1.9.4.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/data/spring-data-commons/1.11.4.RELEASE/spring-data-commons-1.11.4.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-orm/4.2.6.RELEASE/spring-orm-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-aspects/4.2.6.RELEASE/spring-aspects-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-webmvc/4.2.6.RELEASE/spring-webmvc-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar, file:/C:/Users/Stuart/.m2/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar, file:/C:/Users/Stuart/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar, file:/C:/Users/Stuart/.m2/repository/commons-fileupload/commons-fileupload/1.3.2/commons-fileupload-1.3.2.jar, file:/C:/Users/Stuart/Documents/IntelliJIDEA_Projects/shopizer/sm-search/target/classes/, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-context/4.2.6.RELEASE/spring-context-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/aspectj/aspectjrt/1.8.9/aspectjrt-1.8.9.jar, file:/C:/Users/Stuart/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.21/log4j-over-slf4j-1.7.21.jar, file:/C:/Users/Stuart/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar, file:/C:/Users/Stuart/.m2/repository/io/searchbox/jest/2.0.3/jest-2.0.3.jar, file:/C:/Users/Stuart/.m2/repository/io/searchbox/jest-common/2.0.3/jest-common-2.0.3.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/httpcomponents/httpasyncclient/4.1.1/httpasyncclient-4.1.1.jar, file:/C:/Users/Stuart/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar, file:/C:/Users/Stuart/.m2/repository/com/google/code/gson/gson/2.3.1/gson-2.3.1.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.4.4/httpcore-nio-4.4.4.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot-starter/1.3.5.RELEASE/spring-boot-starter-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot/1.3.5.RELEASE/spring-boot-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/1.3.5.RELEASE/spring-boot-autoconfigure-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot-starter-logging/1.3.5.RELEASE/spring-boot-starter-logging-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar, file:/C:/Users/Stuart/.m2/repository/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar, file:/C:/Users/Stuart/.m2/repository/org/slf4j/jul-to-slf4j/1.7.21/jul-to-slf4j-1.7.21.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-web/4.2.6.RELEASE/spring-web-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot-starter-security/1.3.5.RELEASE/spring-boot-starter-security-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-aop/4.2.6.RELEASE/spring-aop-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/security/spring-security-config/4.0.4.RELEASE/spring-security-config-4.0.4.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/security/spring-security-web/4.0.4.RELEASE/spring-security-web-4.0.4.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/security/spring-security-taglibs/4.0.4.RELEASE/spring-security-taglibs-4.0.4.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/security/spring-security-acl/4.0.4.RELEASE/spring-security-acl-4.0.4.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-jdbc/4.2.6.RELEASE/spring-jdbc-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-tx/4.2.6.RELEASE/spring-tx-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/security/spring-security-core/4.0.4.RELEASE/spring-security-core-4.0.4.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-beans/4.2.6.RELEASE/spring-beans-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/spring-expression/4.2.6.RELEASE/spring-expression-4.2.6.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.0.33/tomcat-embed-core-8.0.33.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.0.33/tomcat-embed-el-8.0.33.jar, file:/C:/Users/Stuart/.m2/repository/org/eclipse/jdt/core/compiler/ecj/4.5/ecj-4.5.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/1.3.5.RELEASE/spring-boot-starter-tomcat-1.3.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tomcat/embed/tomcat-embed-logging-juli/8.0.33/tomcat-embed-logging-juli-8.0.33.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.0.33/tomcat-embed-websocket-8.0.33.jar, file:/C:/Users/Stuart/.m2/repository/org/springframework/mobile/spring-mobile-device/1.1.5.RELEASE/spring-mobile-device-1.1.5.RELEASE.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tiles/tiles-jsp/3.0.4/tiles-jsp-3.0.4.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tiles/tiles-servlet/3.0.4/tiles-servlet-3.0.4.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tiles/tiles-core/3.0.4/tiles-core-3.0.4.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tiles/tiles-request-servlet/1.0.4/tiles-request-servlet-1.0.4.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tiles/tiles-template/3.0.4/tiles-template-3.0.4.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tiles/tiles-api/3.0.4/tiles-api-3.0.4.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tiles/tiles-autotag-core-runtime/1.1.0/tiles-autotag-core-runtime-1.1.0.jar, file:/C:/Users/Stuart/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tiles/tiles-request-jsp/1.0.4/tiles-request-jsp-1.0.4.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/tiles/tiles-request-api/1.0.4/tiles-request-api-1.0.4.jar, file:/C:/Users/Stuart/.m2/repository/com/h2database/h2/1.4.191/h2-1.4.191.jar, file:/C:/Users/Stuart/.m2/repository/javax/servlet/jsp/jstl/jstl-api/1.2/jstl-api-1.2.jar, file:/C:/Users/Stuart/.m2/repository/org/glassfish/web/jstl-impl/1.2/jstl-impl-1.2.jar, file:/C:/Users/Stuart/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.7/plexus-utils-1.5.7.jar, file:/C:/Users/Stuart/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar, file:/C:/Users/Stuart/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar, file:/C:/Users/Stuart/.m2/repository/mysql/mysql-connector-java/5.1.40/mysql-connector-java-5.1.40.jar, file:/C:/Users/Stuart/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.7.4/jackson-databind-2.7.4.jar, file:/C:/Users/Stuart/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.7.4/jackson-core-2.7.4.jar, file:/C:/Users/Stuart/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.7.4/jackson-annotations-2.7.4.jar, file:/C:/Users/Stuart/.m2/repository/net/sf/ehcache/ehcache/2.10.2/ehcache-2.10.2.jar, file:/C:/Users/Stuart/.m2/repository/com/mchange/c3p0/0.9.5.2/c3p0-0.9.5.2.jar, file:/C:/Users/Stuart/.m2/repository/com/mchange/mchange-commons-java/0.2.11/mchange-commons-java-0.2.11.jar, file:/C:/Users/Stuart/.m2/repository/org/elasticsearch/elasticsearch/2.4.1/elasticsearch-2.4.1.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-core/5.5.2/lucene-core-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-backward-codecs/5.5.2/lucene-backward-codecs-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-analyzers-common/5.5.2/lucene-analyzers-common-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-queries/5.5.2/lucene-queries-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-memory/5.5.2/lucene-memory-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-highlighter/5.5.2/lucene-highlighter-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-queryparser/5.5.2/lucene-queryparser-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-sandbox/5.5.2/lucene-sandbox-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-suggest/5.5.2/lucene-suggest-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-misc/5.5.2/lucene-misc-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-join/5.5.2/lucene-join-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-grouping/5.5.2/lucene-grouping-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-spatial/5.5.2/lucene-spatial-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/org/apache/lucene/lucene-spatial3d/5.5.2/lucene-spatial3d-5.5.2.jar, file:/C:/Users/Stuart/.m2/repository/com/spatial4j/spatial4j/0.5/spatial4j-0.5.jar, file:/C:/Users/Stuart/.m2/repository/org/elasticsearch/securesm/1.0/securesm-1.0.jar, file:/C:/Users/Stuart/.m2/repository/com/carrotsearch/hppc/0.7.1/hppc-0.7.1.jar, file:/C:/Users/Stuart/.m2/repository/joda-time/joda-time/2.8.2/joda-time-2.8.2.jar, file:/C:/Users/Stuart/.m2/repository/org/joda/joda-convert/1.2/joda-convert-1.2.jar, file:/C:/Users/Stuart/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.8.1/jackson-dataformat-smile-2.8.1.jar, file:/C:/Users/Stuart/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.6.6/jackson-dataformat-yaml-2.6.6.jar, file:/C:/Users/Stuart/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.8.1/jackson-dataformat-cbor-2.8.1.jar, file:/C:/Users/Stuart/.m2/repository/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar, file:/C:/Users/Stuart/.m2/repository/io/netty/netty/3.10.6.Final/netty-3.10.6.Final.jar, file:/C:/Users/Stuart/.m2/repository/com/ning/compress-lzf/1.0.2/compress-lzf-1.0.2.jar, file:/C:/Users/Stuart/.m2/repository/com/tdunning/t-digest/3.0/t-digest-3.0.jar, file:/C:/Users/Stuart/.m2/repository/org/hdrhistogram/HdrHistogram/2.1.6/HdrHistogram-2.1.6.jar, file:/C:/Users/Stuart/.m2/repository/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar, file:/C:/Users/Stuart/.m2/repository/com/twitter/jsr166e/1.1.0/jsr166e-1.1.0.jar, file:/C:/Users/Stuart/.m2/repository/javax/mail/javax.mail-api/1.5.5/javax.mail-api-1.5.5.jar, file:/C:/Users/Stuart/.m2/repository/javax/mail/mail/1.4.7/mail-1.4.7.jar, file:/C:/Users/Stuart/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar, file:/C:/Users/Stuart/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar, file:/C:/Users/Stuart/.m2/repository/junit/junit/4.12/junit-4.12.jar, file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202017.1.5/lib/idea_rt.jar]

Process finished with exit code 1

ghost commented 7 years ago

@Crazy-Horse : How you are running your application in IntelliJ ? can you try to run from the command line by using mvn spring-boot:run

umstone commented 7 years ago

@Crazy-Horse Edit the Class ->ShopApplicationConfiguration, tilesConfigurer.setDefinitions(new String[]{"classpath:/webapp/WEB-INF/tiles/tiles-admin.xml", "classpath:/webapp/WEB-INF/tiles/tiles-shop.xml"});

dungbeetle commented 7 years ago

@suzhaoc after the update, I could start ShopApplication successfully, but when I access http://localhost:8080/admin, the page redirect to http://localhost:8080/admin/logon.html, and got HTTP ERROR 404

shopizer-ecommerce commented 7 years ago

First, i need to know if your local installation is ok

$ cd shopizer $ mvn clean install $ cd sm-shop $ mvn spring-boot:run

shopizer-ecommerce commented 7 years ago

Not using ideaj, but many person have the same comment, so anyone can put in how to run shopizer from inside ideaj ?

skpavlenko commented 7 years ago

You have to change Tomcat dependency scope in the root pom.xml from provided to compile:

    <dependency>
      <groupId>org.apache.tomcat.embed</groupId>
      <artifactId>tomcat-embed-jasper</artifactId>
      <scope>compile</scope>
    </dependency>

This is needed because of the known bug: https://youtrack.jetbrains.com/issue/IDEA-107048.

Also, of course, you need to set Main class to com.salesmanager.shop.application.ShopApplication, and working directory to sm-shop in Run/Debug Configuration.

Reimport the project from Maven and it should start working.

nitish5vk commented 7 years ago

in ../sm-shop/pom.xml. update the org.apache.tiles::tiles-jsp to latest version 3.0.8. This will be fixing the tiles issue

lazaropj commented 7 years ago

I did everything but I still get 404 page when I go to localhost.com:8080.

But if I run from command line, It works.

My error is when I run in IntelliJ

nitish5vk commented 7 years ago

Please use http://localhost:8080/ or http://localhost:8080/shop Not localhost.com:8080

senyor commented 4 years ago

Try to change working directory in "Run/Debug Configurations -> Environment -> Working directory" to $MODULE_WORKING_DIR$

Dadox88 commented 4 years ago

Try to change working directory in "Run/Debug Configurations -> Environment -> Working directory" to $MODULE_WORKING_DIR$

this work for me

ajaytiwari000 commented 4 years ago

locally I am trying with maven wrapper $ cd shopizer $ mvnw clean install $ cd sm-shop $ mvnw spring-boot:run

Still facing the same issue on AWS machine

vikyPS commented 4 years ago

$ cd shopizer $ mvn clean install $ cd sm-shop $ mvn spring-boot:run

I tried to run using the above step but it throwing same 404 error, Project runs successfully and the call goes to the backend as well (I added some logs at the backend which prints logs data on console) but not worked for me.

My System Details Java 8 Maven 3.6.3 Mysql 5.7 Window 10 Operating System

kevintanhongann commented 4 years ago

@senyor this works when running on Intellij Idea.