mybatis / jpetstore-6 Goto Github PK
View Code? Open in Web Editor NEWA web application built on top of MyBatis 3, Spring 3 and Stripes
Home Page: http://www.mybatis.org/spring/sample.html
License: Apache License 2.0
A web application built on top of MyBatis 3, Spring 3 and Stripes
Home Page: http://www.mybatis.org/spring/sample.html
License: Apache License 2.0
I think following dependencies is unnecessary.
Add integration tests for screen transition using the Selenide(Selenium)
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.
Start application on WebSphere Liberty profile as follow:
$ mvn cargo:run -P liberty
Access Login page (http://localhost:8080/jpetstore/actions/Account.action?signonForm=)
Input username and password (j2ee/j2ee)
A user has been authenticated and view the top page.
View the top page, however a user has not been authenticated.
Hi,
Following the instructions when I try to run mvnw clean package I get a maven error for a non-resolvable parent - see errors below. Any ideas?
./mvnw clean package
/jpetstore-6
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.mybatis:jpetstore:6.0.3-SNAPSHOT: Could not find artifact org.mybatis:mybatis-parent:pom:29-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 22, column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.mybatis:jpetstore:6.0.3-SNAPSHOT (/jpetstore-6/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.mybatis:jpetstore:6.0.3-SNAPSHOT: Could not find artifact org.mybatis:mybatis-parent:pom:29-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 22, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
ubuntu@ip-172-31-30-28:/jpetstore-6$ ./mvnw cargo:run -P tomcat85
/jpetstore-6
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.mybatis:jpetstore:6.0.3-SNAPSHOT: Could not find artifact org.mybatis:mybatis-parent:pom:29-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 22, column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.mybatis:jpetstore:6.0.3-SNAPSHOT (/jpetstore-6/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.mybatis:jpetstore:6.0.3-SNAPSHOT: Could not find artifact org.mybatis:mybatis-parent:pom:29-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 22, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Change to use the cargo-maven2-plugin instead of using the tomcat-maven-plugin.
The cargo-maven2-plugin is very active and support many application servers and versions. (already supporting the tomcat 8 and 9)
Hi everyone,
I would like to to test the Application Insight tool of Microsoft Azure. For this reason, I took a Java EE application (jpetshop) and I am trying to set up the Application Insight on top of it following this guide: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-java-get-started
I added the Maven dependency and repository and, thanks to Eclipse, I created the ApplicationInsights.xml file with my InstrumentationKey. The only thing that I am not sure about is how to add is the HTTP filter on this application (point 4).
I added this to the filter block:
.....
ApplicationInsightsRequestNameInterceptor
com.microsoft.applicationinsights.web.struts.RequestNameInterceptor
But I don't know how to add the filter and make it works with Spring and Stripes.
Do you know how can I do that?
Thank you
The HtmlUnitDriver
is faster than FirefoxDriver
.
Hi,
I try to import jpetstore-6 into my workspace ,but at the last step , it shows "not project found"
Is it necessary to push a .project file to the jpetstore-6?
thanks
No need to set mappingLocation in SqlSessionFactoryBean bean define?
I debug in mybatis-spring version 1.2.3 in SqlSessionFactoryBean, I found there is no default for mapperLocations and if no define for mapperLocations, it will just log debug info.
The Spring Framework 4.3.5 has been released at today.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.