mybatis / jpetstore-6

A web application built on top of MyBatis 3, Spring 3 and Stripes
http://www.mybatis.org/spring/sample.html
Apache License 2.0
578 stars 1.4k forks source link

Does not run on Ubuntu 14.04 #16

Closed ham1 closed 9 years ago

ham1 commented 9 years ago

Running mvn clean tomcat7:run firstly errors because version 26-SNAPSHOT is not available, however once updating to version 25:

<parent>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis-parent</artifactId>
    <version>25</version>
    <relativePath />
  </parent>

it starts but I am unable to connect to it remotely or locally:

$ wget localhost:8080/jpetstore
--2015-10-26 00:20:12--  http://localhost:8080/jpetstore
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 

I tried using oracle-jdk-8.

The startup log ends with:

[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ jpetstore ---
[INFO] Running war on http://localhost:8080/jpetstore
[INFO] Using existing Tomcat server configuration at /home/jp/jpetstore-6/target/tomcat
[INFO] create webapp with contextPath: /jpetstore
Oct 26, 2015 12:19:43 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Oct 26, 2015 12:19:43 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Oct 26, 2015 12:19:43 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
Oct 26, 2015 12:19:45 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Oct 26, 2015 12:19:45 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
0 [localhost-startStop-1] TRACE org.mybatis.spring.mapper.ClassPathMapperScanner  - Scanning file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/AccountMapper.class]
2 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Identified candidate component class: file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/AccountMapper.class]
2 [localhost-startStop-1] TRACE org.mybatis.spring.mapper.ClassPathMapperScanner  - Scanning file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/CategoryMapper.class]
2 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Identified candidate component class: file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/CategoryMapper.class]
2 [localhost-startStop-1] TRACE org.mybatis.spring.mapper.ClassPathMapperScanner  - Scanning file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/ItemMapper.class]
3 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Identified candidate component class: file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/ItemMapper.class]
3 [localhost-startStop-1] TRACE org.mybatis.spring.mapper.ClassPathMapperScanner  - Scanning file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/SequenceMapper.class]
3 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Identified candidate component class: file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/SequenceMapper.class]
3 [localhost-startStop-1] TRACE org.mybatis.spring.mapper.ClassPathMapperScanner  - Scanning file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/LineItemMapper.class]
4 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Identified candidate component class: file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/LineItemMapper.class]
4 [localhost-startStop-1] TRACE org.mybatis.spring.mapper.ClassPathMapperScanner  - Scanning file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/ProductMapper.class]
4 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Identified candidate component class: file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/ProductMapper.class]
4 [localhost-startStop-1] TRACE org.mybatis.spring.mapper.ClassPathMapperScanner  - Scanning file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/OrderMapper.class]
5 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Identified candidate component class: file [/home/jp/jpetstore-6/target/classes/org/mybatis/jpetstore/persistence/OrderMapper.class]
5 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Creating MapperFactoryBean with name 'accountMapper' and 'org.mybatis.jpetstore.persistence.AccountMapper' mapperInterface
6 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Enabling autowire by type for MapperFactoryBean with name 'accountMapper'.
6 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Creating MapperFactoryBean with name 'categoryMapper' and 'org.mybatis.jpetstore.persistence.CategoryMapper' mapperInterface
6 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Enabling autowire by type for MapperFactoryBean with name 'categoryMapper'.
6 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Creating MapperFactoryBean with name 'itemMapper' and 'org.mybatis.jpetstore.persistence.ItemMapper' mapperInterface
6 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Enabling autowire by type for MapperFactoryBean with name 'itemMapper'.
6 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Creating MapperFactoryBean with name 'sequenceMapper' and 'org.mybatis.jpetstore.persistence.SequenceMapper' mapperInterface
6 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Enabling autowire by type for MapperFactoryBean with name 'sequenceMapper'.
6 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Creating MapperFactoryBean with name 'lineItemMapper' and 'org.mybatis.jpetstore.persistence.LineItemMapper' mapperInterface
6 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Enabling autowire by type for MapperFactoryBean with name 'lineItemMapper'.
7 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Creating MapperFactoryBean with name 'productMapper' and 'org.mybatis.jpetstore.persistence.ProductMapper' mapperInterface
7 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Enabling autowire by type for MapperFactoryBean with name 'productMapper'.
7 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Creating MapperFactoryBean with name 'orderMapper' and 'org.mybatis.jpetstore.persistence.OrderMapper' mapperInterface
7 [localhost-startStop-1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner  - Enabling autowire by type for MapperFactoryBean with name 'orderMapper'.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
emacarron commented 9 years ago

Please ask in the user mail list for help, not here.

ham1 commented 9 years ago

Sure. Could we include the list address in the readme so others also know where to ask for help?

emacarron commented 9 years ago

The mail list is not for JPetstore but for the whole mybatis project. The mail list address is already shown in many places: http://www.mybatis.org/ https://github.com/mybatis/ https://github.com/mybatis/mybatis-3/wiki/Contribute

Have you had problems to find it?