package net.com.bean;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.json.JsonField;
@Table("t_user_profile")
public class UserProfile extends BasePojo {
/**关联的用户id*/
@Id(auto=false)
@Column("uid")
protected int userId;
/**用户昵称*/
@Column
protected String nickname;
/**用户邮箱*/
@Column
protected String email;
/**邮箱是否已经验证过*/
@Column("email_checked")
protected boolean emailChecked;
/**头像的byte数据*/
@Column
@JsonField(ignore=true)
protected byte[] avatar;
/**性别*/
@Column
protected String gender;
/**自我介绍*/
@Column("dt")
protected String description;
@Column("loc")
protected String location;
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public boolean isEmailChecked() {
return emailChecked;
}
public void setEmailChecked(boolean emailChecked) {
this.emailChecked = emailChecked;
}
public byte[] getAvatar() {
return avatar;
}
public void setAvatar(byte[] avatar) {
this.avatar = avatar;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
/****///
}
package net.com.bean;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;
@Table("t_user")
public class User extends BasePojo{
@One(target=UserProfile.class, field="id", key="userId")
protected UserProfile profile;
private int id;
@Name
@Column
private String name;
@Column("passwd")
private String password;
@Column
private String salt;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getSalt() {
return salt;
}
public void setSalt(String salt) {
this.salt = salt;
}
public UserProfile getProfile() {
return profile;
}
public void setProfile(UserProfile profile) {
this.profile = profile;
}
}
八月 22, 2018 4:49:36 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:winbook' did not find a matching property.
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/8.5.32
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Jun 20 2018 19:50:35 UTC
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 8.5.32.0
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: C:\Program Files\Java\jre1.8.0_152
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_152-b16
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\ec\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\apache-tomcat-8.5.32
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\ec\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-8.5.32
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\ec\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-8.5.32\endorsed
八月 22, 2018 4:49:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
八月 22, 2018 4:49:36 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library [1.2.14] using APR version [1.6.2].
八月 22, 2018 4:49:36 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
八月 22, 2018 4:49:36 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
八月 22, 2018 4:49:36 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized [OpenSSL 1.0.2l 25 May 2017]
八月 22, 2018 4:49:37 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
八月 22, 2018 4:49:37 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
八月 22, 2018 4:49:37 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
八月 22, 2018 4:49:37 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
八月 22, 2018 4:49:37 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1673 ms
八月 22, 2018 4:49:37 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
八月 22, 2018 4:49:37 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.32
八月 22, 2018 4:49:39 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 22, 2018 4:49:42 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 22, 2018 4:49:42 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Shiro environment
2018-08-22 16:49:42,930 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:128) INFO - Starting Shiro environment initialization.
2018-08-22 16:49:42,966 org.apache.shiro.web.env.IniWebEnvironment.parseConfig(IniWebEnvironment.java:95) DEBUG - Checking any specified config locations.
2018-08-22 16:49:42,967 org.apache.shiro.web.env.IniWebEnvironment.parseConfig(IniWebEnvironment.java:100) DEBUG - No INI instance or config locations specified. Trying default config locations.
2018-08-22 16:49:42,971 org.apache.shiro.io.ResourceUtils.loadFromClassPath(ResourceUtils.java:159) DEBUG - Opening resource from class path [shiro.ini]
2018-08-22 16:49:42,975 org.apache.shiro.config.Ini.load(Ini.java:401) DEBUG - Parsing [main]
2018-08-22 16:49:42,975 org.apache.shiro.config.Ini.load(Ini.java:401) DEBUG - Parsing [urls]
2018-08-22 16:49:42,977 org.apache.shiro.web.env.IniWebEnvironment.getDefaultIni(IniWebEnvironment.java:217) DEBUG - Discovered non-empty INI configuration at location 'classpath:shiro.ini'. Using for configuration.
2018-08-22 16:49:42,978 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:149) DEBUG - Creating instance from Ini [sections=urls]
2018-08-22 16:49:43,439 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:149) DEBUG - Creating instance from Ini [sections=urls]
2018-08-22 16:49:43,442 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.createChain(DefaultFilterChainManager.java:127) DEBUG - Creating chain [/*] from String definition [anon]
2018-08-22 16:49:43,442 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.applyChainConfig(DefaultFilterChainManager.java:278) DEBUG - Attempting to apply path [/*] to filter [anon] with config [null]
2018-08-22 16:49:43,443 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:137) DEBUG - Published WebEnvironment as ServletContext attribute with name [org.apache.shiro.web.env.EnvironmentLoader.ENVIRONMENT_ATTRIBUTE_KEY]
2018-08-22 16:49:43,443 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:142) INFO - Shiro environment initialized in 510 ms.
2018-08-22 16:49:43,646 org.nutz.mvc.NutFilter._init(NutFilter.java:85) INFO - NutFilter[nutz] starting ...
2018-08-22 16:49:43,679 org.nutz.resource.Scans.printLocations(Scans.java:527) DEBUG - Locations count=10 time use 20ms
2018-08-22 16:49:43,690 org.nutz.resource.Scans.printLocations(Scans.java:527) DEBUG - Locations count=24 time use 10ms
2018-08-22 16:49:43,726 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:62) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2018-08-22 16:49:43,728 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO - Nutz Version : 1.r.67-SNAPSHOT
2018-08-22 16:49:43,729 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO - Nutz.Mvc[nutz] is initializing ...
2018-08-22 16:49:43,729 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2018-08-22 16:49:43,730 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG - - Default Charset : UTF-8
2018-08-22 16:49:43,730 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG - - Current . path : C:\Users\dyh\Desktop\.
2018-08-22 16:49:43,730 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG - - Java Version : 1.8.0_152
2018-08-22 16:49:43,730 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG - - File separator : \
2018-08-22 16:49:43,731 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG - - Timezone : Asia/Shanghai
2018-08-22 16:49:43,731 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG - - OS : Windows 10 amd64
2018-08-22 16:49:43,731 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG - - ServerInfo : Apache Tomcat/8.5.32
2018-08-22 16:49:43,731 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG - - Servlet API : 3.1
2018-08-22 16:49:43,731 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG - - ContextPath : /winbook
2018-08-22 16:49:43,732 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG - - context.tempdir : D:\ec\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\winbook
2018-08-22 16:49:43,732 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG - - MainModule : net.com.MainModule
2018-08-22 16:49:43,733 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:239) DEBUG - >> app.root = D:/ec/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/winbook
2018-08-22 16:49:43,825 org.nutz.castor.Castors.reload(Castors.java:116) DEBUG - Using 101 castor for Castors
2018-08-22 16:49:43,826 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:379) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.com", "*tx", "*quartz"],init=[])
2018-08-22 16:49:43,874 org.nutz.resource.Scans.scan(Scans.java:280) DEBUG - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2018-08-22 16:49:43,875 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) DEBUG - loading [dao.js]
2018-08-22 16:49:43,879 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) DEBUG - Loaded 3 bean define from path=[ioc/] --> [conf, dao, dataSource]
2018-08-22 16:49:43,889 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) INFO - > scan 'net.com'
2018-08-22 16:49:43,960 org.nutz.resource.Scans.scan(Scans.java:280) DEBUG - Found 13 resource by src( net/com/ ) , regex( ^.+[.]class$ )
2018-08-22 16:49:43,978 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) INFO - > add 'problemModule ' - net.com.module.ProblemModule
2018-08-22 16:49:43,993 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) INFO - > add 'userModule ' - net.com.module.UserModule
2018-08-22 16:49:44,001 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:116) DEBUG - found quartz -- org.nutz.integration.quartz.QuartzIocLoader
2018-08-22 16:49:44,004 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) DEBUG - Loaded 0 bean define from path=[] --> []
2018-08-22 16:49:44,010 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:130) INFO - ... NutIoc init complete
2018-08-22 16:49:44,013 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) INFO - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2018-08-22 16:49:44,015 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:369) DEBUG - @Views(DefaultViewMaker.class)
2018-08-22 16:49:44,025 org.nutz.resource.Scans.scan(Scans.java:280) DEBUG - Found 1 resource by src( mvc/winbook-mvc-chain.js ) , regex( ^(.+[.])(js|json)$ )
2018-08-22 16:49:44,030 org.nutz.mvc.impl.chainconfig.JsonActionChainMakerConfiguretion.<init>(JsonActionChainMakerConfiguretion.java:37) DEBUG - ActionChain Config:
{
"default": {
"ps": ["net.com.mvc.LogTimeProcessor", "org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor", "org.nutz.mvc.impl.processor.EncodingProcessor", "org.nutz.mvc.impl.processor.ModuleProcessor", "!org.nutz.integration.shiro.NutShiroProcessor", "org.nutz.mvc.impl.processor.ActionFiltersProcessor", "org.nutz.mvc.impl.processor.AdaptorProcessor", "org.nutz.mvc.impl.processor.MethodInvokeProcessor", "org.nutz.mvc.impl.processor.ViewProcessor"],
"error": "org.nutz.mvc.impl.processor.FailProcessor"
}
}
2018-08-22 16:49:44,031 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:267) DEBUG - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2018-08-22 16:49:44,036 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:155) DEBUG - module class location 'file:/D:/ec/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/winbook/WEB-INF/classes/'
2018-08-22 16:49:44,036 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:185) DEBUG - > scan 'net.com'
2018-08-22 16:49:44,042 org.nutz.resource.Scans.scan(Scans.java:280) DEBUG - Found 13 resource by src( net/com/ ) , regex( ^.+[.]class$ )
2018-08-22 16:49:44,052 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:204) DEBUG - >> add 'net.com.module.ProblemModule'
2018-08-22 16:49:44,052 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:204) DEBUG - >> add 'net.com.module.UserModule'
2018-08-22 16:49:44,053 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:196) DEBUG - Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
2018-08-22 16:49:44,126 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/' >> (UserModule.java:132).index : void | @Ok(jsp:jsp.user.list) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,204 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/add' >> (UserModule.java:88).add : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,204 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/count' >> (UserModule.java:36).count : int | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,205 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/update' >> (UserModule.java:100).update : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,211 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/delete' >> (UserModule.java:113).delete : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,217 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/query' >> (UserModule.java:121).query : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,219 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/logout' >> (UserModule.java:53).logout : void | @Ok(>>:/ ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,220 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/login' >> (UserModule.java:41).login : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,222 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/men/' >> (ProblemModule.java:35).index : void | @Ok(jsp:jsp.men.lt) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,223 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/men/query' >> (ProblemModule.java:24).query : Object | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-08-22 16:49:44,223 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:221) INFO - Found 10 module methods
2018-08-22 16:49:44,223 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:307) DEBUG - Localization: org.nutz.mvc.impl.NutMessageLoader('msg/') dft<zh-CN>
2018-08-22 16:49:44,227 org.nutz.resource.Scans.scan(Scans.java:280) DEBUG - Found 1 resource by src( msg/ ) , regex( ^.+[.]properties$ )
2018-08-22 16:49:44,228 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:27) DEBUG - Load Messages in 1 resource : [[File[D:\ec\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\winbook\WEB-INF\classes\msg\zh-CN\user.properties]]]
2018-08-22 16:49:44,229 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:95) DEBUG - Message Loaded, size = 2
2018-08-22 16:49:44,230 org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:275) INFO - Setup application...
2018-08-22 16:49:44,232 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) DEBUG - Get 'dao'<interface org.nutz.dao.Dao>
2018-08-22 16:49:44,233 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) DEBUG - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2018-08-22 16:49:44,235 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) DEBUG - >> Load definition name=dao
2018-08-22 16:49:44,241 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) DEBUG - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2018-08-22 16:49:44,241 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) DEBUG - >> Make...'dao'<interface org.nutz.dao.Dao>
2018-08-22 16:49:44,268 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) DEBUG - Save object 'dao' to [app]
2018-08-22 16:49:44,270 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) DEBUG - Get 'dataSource'<>
2018-08-22 16:49:44,270 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) DEBUG - >> Load definition name=dataSource
2018-08-22 16:49:44,270 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) DEBUG - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2018-08-22 16:49:44,270 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) DEBUG - >> Make...'dataSource'<>
2018-08-22 16:49:44,271 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) DEBUG - Save object 'dataSource' to [app]
2018-08-22 16:49:44,290 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) DEBUG - Load class com.alibaba.druid.pool.DruidDataSource without AOP
2018-08-22 16:49:44,291 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) DEBUG - Get 'conf'<>
2018-08-22 16:49:44,291 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) DEBUG - >> Load definition name=conf
2018-08-22 16:49:44,291 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) DEBUG - Found IocObject(conf) in JsonLoader(paths=[ioc/])
2018-08-22 16:49:44,291 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) DEBUG - >> Make...'conf'<>
2018-08-22 16:49:44,291 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) DEBUG - Save object 'conf' to [app]
2018-08-22 16:49:44,292 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) DEBUG - Load class org.nutz.ioc.impl.PropertiesProxy without AOP
2018-08-22 16:49:44,333 org.nutz.resource.Scans.scan(Scans.java:280) DEBUG - Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
2018-08-22 16:49:44,333 org.nutz.ioc.impl.PropertiesProxy.setPaths(PropertiesProxy.java:114) DEBUG - load properties from File[D:\ec\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\winbook\WEB-INF\classes\custom\db.properties]
2018-08-22 16:49:44,641 com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:715) INFO - {dataSource-1} inited
2018-08-22 16:49:44,656 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) DEBUG - Load class org.nutz.dao.impl.NutDao without AOP
2018-08-22 16:49:44,657 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) DEBUG - Get 'dataSource'<>
2018-08-22 16:49:44,852 org.nutz.dao.jdbc.Jdbcs.<clinit>(Jdbcs.java:93) DEBUG - Jdbcs init complete
2018-08-22 16:49:44,852 org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:106) INFO - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
2018-08-22 16:49:45,065 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:188) DEBUG - select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
2018-08-22 16:49:45,072 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:199) DEBUG - JDBC Driver --> mysql-connector-java-5.1.14 ( Revision: ${bzr.revision-id} )
2018-08-22 16:49:45,073 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:200) DEBUG - JDBC Name --> MySQL-AB JDBC Driver
2018-08-22 16:49:45,073 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:202) DEBUG - JDBC URL --> jdbc:mysql://127.0.0.1:3306/nutzbook
2018-08-22 16:49:45,157 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_client=utf8mb4
2018-08-22 16:49:45,157 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_connection=utf8mb4
2018-08-22 16:49:45,157 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_database=utf8
2018-08-22 16:49:45,157 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_filesystem=binary
2018-08-22 16:49:45,157 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_results=
2018-08-22 16:49:45,158 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_server=utf8
2018-08-22 16:49:45,158 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_system=utf8
2018-08-22 16:49:45,158 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_sets_dir=C:\Program Files (x86)\MySQL\MySQL Server 5.5\share\charsets\
2018-08-22 16:49:45,159 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:219) DEBUG - Mysql : binlog_format=STATEMENT
2018-08-22 16:49:45,160 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:226) DEBUG - Mysql : database=nutzbook
2018-08-22 16:49:45,160 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:232) DEBUG - Mysql : user=root@localhost
2018-08-22 16:49:45,193 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:221) DEBUG - Database info --> MYSQL:[MySQL - 5.5.25a]
2018-08-22 16:49:45,203 org.nutz.resource.Scans.scan(Scans.java:280) DEBUG - Found 13 resource by src( net/com/ ) , regex( ^.+[.]class$ )
2018-08-22 16:49:45,279 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) ERROR - Error happend during start serivce!
org.nutz.dao.DaoException: Invalid @One(field=id) 'profile' : class net.com.bean.User<=>class net.com.bean.UserProfile
at org.nutz.dao.impl.entity.field.OneLinkField.<init>(OneLinkField.java:38)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:290)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:72)
at org.nutz.dao.impl.NutDao.getEntity(NutDao.java:682)
at org.nutz.dao.util.Daos$3.compare(Daos.java:533)
at org.nutz.dao.util.Daos$3.compare(Daos.java:531)
at java.util.TimSort.binarySort(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at org.nutz.dao.util.Daos.createTables(Daos.java:531)
at org.nutz.dao.util.Daos.createTablesInPackage(Daos.java:463)
at net.com.MainSetup.init(MainSetup.java:22)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:278)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4637)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5282)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)
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)
2018-08-22 16:49:45,282 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:127) ERROR - try to depose ioc
2018-08-22 16:49:45,288 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:287) INFO - org.nutz.ioc.impl.NutIoc@1236577501 is closing. startup date [18-08-22 16:49:44.008]
2018-08-22 16:49:45,289 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) DEBUG - Depose object 'conf' ...
2018-08-22 16:49:45,289 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) DEBUG - Depose object 'dao' ...
2018-08-22 16:49:45,289 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:114) DEBUG - Depose object 'dataSource' ...
2018-08-22 16:49:45,292 com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1444) INFO - {dataSource-1} closed
2018-08-22 16:49:45,293 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:301) INFO - org.nutz.ioc.impl.NutIoc@1236577501 is deposed. startup date [18-08-22 16:49:44.008]
八月 22, 2018 4:49:45 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter [nutz]
org.nutz.mvc.LoadingException: org.nutz.dao.DaoException: Invalid @One(field=id) 'profile' : class net.com.bean.User<=>class net.com.bean.UserProfile
at org.nutz.mvc.LoadingException$FC$96d8ea21fd24bd9e8fa9874c487baf31.invoke(LoadingException.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:1022)
at org.nutz.lang.Lang.wrapThrow(Lang.java:203)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4637)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5282)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)
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.nutz.dao.DaoException: Invalid @One(field=id) 'profile' : class net.com.bean.User<=>class net.com.bean.UserProfile
at org.nutz.dao.impl.entity.field.OneLinkField.<init>(OneLinkField.java:38)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:290)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:72)
at org.nutz.dao.impl.NutDao.getEntity(NutDao.java:682)
at org.nutz.dao.util.Daos$3.compare(Daos.java:533)
at org.nutz.dao.util.Daos$3.compare(Daos.java:531)
at java.util.TimSort.binarySort(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at org.nutz.dao.util.Daos.createTables(Daos.java:531)
at org.nutz.dao.util.Daos.createTablesInPackage(Daos.java:463)
at net.com.MainSetup.init(MainSetup.java:22)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:278)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
... 15 more
八月 22, 2018 4:49:45 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
八月 22, 2018 4:49:45 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/winbook] startup failed due to previous errors
八月 22, 2018 4:49:45 下午 org.apache.catalina.core.ApplicationContext log
信息: Cleaning up Shiro Environment
八月 22, 2018 4:49:45 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
警告: The web application [winbook] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
八月 22, 2018 4:49:45 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
警告: The web application [winbook] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
八月 22, 2018 4:49:45 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
八月 22, 2018 4:49:45 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
八月 22, 2018 4:49:45 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 7786 ms