NutzCN Logo
问答 shiro注解,按照论坛添加chain.js后报错
发布于 187天前 作者 naxxm 167 次浏览 复制 上一个帖子 下一个帖子
标签:
一月 13, 2018 11:53:22 上午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\WeX5_V3.7\java\jre1.8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/WeX5_V3.7/studio//../java/jre1.8/bin/client;D:/WeX5_V3.7/studio//../java/jre1.8/bin;D:/WeX5_V3.7/studio//../java/jre1.8/lib/i386;C:\Windows;C:\Windows\System32;E:\Oracle\product\12.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Git\cmd;C:\Program Files\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Users\liuyc\Anaconda2\Library\bin\graphviz;C:\Users\liuyc\AppData\Local\Microsoft\WindowsApps;;D:\WeX5_V3.7\studio;;.
一月 13, 2018 11:53:22 上午 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
一月 13, 2018 11:53:22 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 325 ms
一月 13, 2018 11:53:22 上午 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
一月 13, 2018 11:53:22 上午 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.41
一月 13, 2018 11:53:22 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor baas.xml
一月 13, 2018 11:53:22 上午 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\WeX5_V3.7\apache-tomcat\webapps\..\..\runtime\BaasServer\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
一月 13, 2018 11:53:22 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Shiro environment
[main] INFO org.apache.shiro.web.env.EnvironmentLoader - Starting Shiro environment initialization.
log4j:ERROR Could not find value for key log4j.appender.INFO
log4j:ERROR Could not instantiate appender named "INFO".
2018-01-13 11:53:23 Setting default value: false
2018-01-13 11:53:23 Converting 'Boolean' value 'false' to type 'Boolean'
2018-01-13 11:53:23     No conversion required, value is already a Boolean
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Byte'
2018-01-13 11:53:23     Converted to Byte value '0'
2018-01-13 11:53:23 Setting default value:  
2018-01-13 11:53:23 Converting 'Character' value ' ' to type 'Character'
2018-01-13 11:53:23     No conversion required, value is already a Character
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Double'
2018-01-13 11:53:23     Converted to Double value '0.0'
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Float'
2018-01-13 11:53:23     Converted to Float value '0.0'
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Integer'
2018-01-13 11:53:23     No conversion required, value is already a Integer
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Long'
2018-01-13 11:53:23     Converted to Long value '0'
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Short'
2018-01-13 11:53:23     Converted to Short value '0'
2018-01-13 11:53:23 Setting default value: 0.0
2018-01-13 11:53:23 Converting 'BigDecimal' value '0.0' to type 'BigDecimal'
2018-01-13 11:53:23     No conversion required, value is already a BigDecimal
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'BigInteger' value '0' to type 'BigInteger'
2018-01-13 11:53:23     No conversion required, value is already a BigInteger
2018-01-13 11:53:23 Setting default value: false
2018-01-13 11:53:23 Converting 'Boolean' value 'false' to type 'Boolean'
2018-01-13 11:53:23     No conversion required, value is already a Boolean
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Byte'
2018-01-13 11:53:23     Converted to Byte value '0'
2018-01-13 11:53:23 Setting default value:  
2018-01-13 11:53:23 Converting 'Character' value ' ' to type 'Character'
2018-01-13 11:53:23     No conversion required, value is already a Character
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Double'
2018-01-13 11:53:23     Converted to Double value '0.0'
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Float'
2018-01-13 11:53:23     Converted to Float value '0.0'
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Integer'
2018-01-13 11:53:23     No conversion required, value is already a Integer
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Long'
2018-01-13 11:53:23     Converted to Long value '0'
2018-01-13 11:53:23 Setting default value: 0
2018-01-13 11:53:23 Converting 'Integer' value '0' to type 'Short'
2018-01-13 11:53:23     Converted to Short value '0'
2018-01-13 11:53:23 Setting default value: 
2018-01-13 11:53:23 Converting 'String' value '' to type 'String'
2018-01-13 11:53:23 Setting default value: [Z@d8f54a
2018-01-13 11:53:23 Converting 'boolean[]' value '[Z@d8f54a' to type 'boolean[]'
2018-01-13 11:53:23     No conversion required, value is already a boolean[]
2018-01-13 11:53:23 Setting default value: [B@1e53c76
2018-01-13 11:53:23 Converting 'byte[]' value '[B@1e53c76' to type 'byte[]'
2018-01-13 11:53:23     No conversion required, value is already a byte[]
2018-01-13 11:53:23 Setting default value: [C@11d00c0
2018-01-13 11:53:23 Converting 'char[]' value '[C@11d00c0' to type 'char[]'
2018-01-13 11:53:23     No conversion required, value is already a char[]
2018-01-13 11:53:23 Setting default value: [D@3b5b47
2018-01-13 11:53:23 Converting 'double[]' value '[D@3b5b47' to type 'double[]'
2018-01-13 11:53:23     No conversion required, value is already a double[]
2018-01-13 11:53:23 Setting default value: [F@1b699ef
2018-01-13 11:53:23 Converting 'float[]' value '[F@1b699ef' to type 'float[]'
2018-01-13 11:53:23     No conversion required, value is already a float[]
2018-01-13 11:53:23 Setting default value: [I@1d019a3
2018-01-13 11:53:23 Converting 'int[]' value '[I@1d019a3' to type 'int[]'
2018-01-13 11:53:23     No conversion required, value is already a int[]
2018-01-13 11:53:23 Setting default value: [J@9604d9
2018-01-13 11:53:23 Converting 'long[]' value '[J@9604d9' to type 'long[]'
2018-01-13 11:53:23     No conversion required, value is already a long[]
2018-01-13 11:53:23 Setting default value: [S@78bef
2018-01-13 11:53:23 Converting 'short[]' value '[S@78bef' to type 'short[]'
2018-01-13 11:53:23     No conversion required, value is already a short[]
2018-01-13 11:53:23 Setting default value: [Ljava.math.BigDecimal;@19f10e1
2018-01-13 11:53:23 Converting 'BigDecimal[]' value '[Ljava.math.BigDecimal;@19f10e1' to type 'BigDecimal[]'
2018-01-13 11:53:23     No conversion required, value is already a BigDecimal[]
2018-01-13 11:53:23 Setting default value: [Ljava.math.BigInteger;@5f66e3
2018-01-13 11:53:23 Converting 'BigInteger[]' value '[Ljava.math.BigInteger;@5f66e3' to type 'BigInteger[]'
2018-01-13 11:53:23     No conversion required, value is already a BigInteger[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.Boolean;@13ac989
2018-01-13 11:53:23 Converting 'Boolean[]' value '[Ljava.lang.Boolean;@13ac989' to type 'Boolean[]'
2018-01-13 11:53:23     No conversion required, value is already a Boolean[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.Byte;@65fe7c
2018-01-13 11:53:23 Converting 'Byte[]' value '[Ljava.lang.Byte;@65fe7c' to type 'Byte[]'
2018-01-13 11:53:23     No conversion required, value is already a Byte[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.Character;@102bbb1
2018-01-13 11:53:23 Converting 'Character[]' value '[Ljava.lang.Character;@102bbb1' to type 'Character[]'
2018-01-13 11:53:23     No conversion required, value is already a Character[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.Double;@a3d150
2018-01-13 11:53:23 Converting 'Double[]' value '[Ljava.lang.Double;@a3d150' to type 'Double[]'
2018-01-13 11:53:23     No conversion required, value is already a Double[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.Float;@6648b0
2018-01-13 11:53:23 Converting 'Float[]' value '[Ljava.lang.Float;@6648b0' to type 'Float[]'
2018-01-13 11:53:23     No conversion required, value is already a Float[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.Integer;@19e9125
2018-01-13 11:53:23 Converting 'Integer[]' value '[Ljava.lang.Integer;@19e9125' to type 'Integer[]'
2018-01-13 11:53:23     No conversion required, value is already a Integer[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.Long;@c0cdad
2018-01-13 11:53:23 Converting 'Long[]' value '[Ljava.lang.Long;@c0cdad' to type 'Long[]'
2018-01-13 11:53:23     No conversion required, value is already a Long[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.Short;@15d943d
2018-01-13 11:53:23 Converting 'Short[]' value '[Ljava.lang.Short;@15d943d' to type 'Short[]'
2018-01-13 11:53:23     No conversion required, value is already a Short[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.String;@583ecf
2018-01-13 11:53:23 Converting 'String[]' value '[Ljava.lang.String;@583ecf' to type 'String[]'
2018-01-13 11:53:23     No conversion required, value is already a String[]
2018-01-13 11:53:23 Setting default value: [Ljava.lang.Class;@12f203f
2018-01-13 11:53:23 Converting 'Class[]' value '[Ljava.lang.Class;@12f203f' to type 'Class[]'
2018-01-13 11:53:23     No conversion required, value is already a Class[]
2018-01-13 11:53:23 Setting default value: [Ljava.util.Date;@f2bd5b
2018-01-13 11:53:23 Converting 'Date[]' value '[Ljava.util.Date;@f2bd5b' to type 'Date[]'
2018-01-13 11:53:23     No conversion required, value is already a Date[]
2018-01-13 11:53:23 Setting default value: [Ljava.util.Calendar;@1153bc
2018-01-13 11:53:23 Converting 'Calendar[]' value '[Ljava.util.Calendar;@1153bc' to type 'Calendar[]'
2018-01-13 11:53:23     No conversion required, value is already a Calendar[]
2018-01-13 11:53:23 Setting default value: [Ljava.io.File;@1eaca72
2018-01-13 11:53:23 Converting 'java.io.File[]' value '[Ljava.io.File;@1eaca72' to type 'java.io.File[]'
2018-01-13 11:53:23     No conversion required, value is already a java.io.File[]
2018-01-13 11:53:23 Setting default value: [Ljava.sql.Date;@1182842
2018-01-13 11:53:23 Converting 'java.sql.Date[]' value '[Ljava.sql.Date;@1182842' to type 'java.sql.Date[]'
2018-01-13 11:53:23     No conversion required, value is already a java.sql.Date[]
2018-01-13 11:53:23 Setting default value: [Ljava.sql.Time;@15834f2
2018-01-13 11:53:23 Converting 'java.sql.Time[]' value '[Ljava.sql.Time;@15834f2' to type 'java.sql.Time[]'
2018-01-13 11:53:23     No conversion required, value is already a java.sql.Time[]
2018-01-13 11:53:23 Setting default value: [Ljava.sql.Timestamp;@18d6a3
2018-01-13 11:53:23 Converting 'java.sql.Timestamp[]' value '[Ljava.sql.Timestamp;@18d6a3' to type 'java.sql.Timestamp[]'
2018-01-13 11:53:23     No conversion required, value is already a java.sql.Timestamp[]
2018-01-13 11:53:23 Setting default value: [Ljava.net.URL;@cd1699
2018-01-13 11:53:23 Converting 'java.net.URL[]' value '[Ljava.net.URL;@cd1699' to type 'java.net.URL[]'
2018-01-13 11:53:23     No conversion required, value is already a java.net.URL[]
2018-01-13 11:53:23   setProperty(org.apache.shiro.authc.credential.HashedCredentialsMatcher@1fb9ffc, hashAlgorithmName, MD5)
2018-01-13 11:53:23     Target bean = org.apache.shiro.authc.credential.HashedCredentialsMatcher@1fb9ffc
2018-01-13 11:53:23     Target name = hashAlgorithmName
2018-01-13 11:53:23 Convert string 'MD5' to class 'java.lang.String'
2018-01-13 11:53:23   Using converter ConverterFacade[StringConverter[UseDefault=true]]
2018-01-13 11:53:23 Converting 'String' value 'MD5' to type 'String'
2018-01-13 11:53:23 setSimpleProperty: Invoking method public void org.apache.shiro.authc.credential.HashedCredentialsMatcher.setHashAlgorithmName(java.lang.String) with value MD5 (class java.lang.String)
2018-01-13 11:53:23   setProperty(org.apache.shiro.authc.credential.HashedCredentialsMatcher@1fb9ffc, hashIterations, 1024)
2018-01-13 11:53:23     Target bean = org.apache.shiro.authc.credential.HashedCredentialsMatcher@1fb9ffc
2018-01-13 11:53:23     Target name = hashIterations
2018-01-13 11:53:23 Convert string '1024' to class 'int'
2018-01-13 11:53:23   Using converter ConverterFacade[IntegerConverter[UseDefault=true, UseLocaleFormat=false]]
2018-01-13 11:53:23 Converting 'String' value '1024' to type 'Integer'
2018-01-13 11:53:23     No NumberFormat, using default conversion
2018-01-13 11:53:23     Converted to Integer value '1024'
2018-01-13 11:53:23 setSimpleProperty: Invoking method public void org.apache.shiro.authc.credential.HashedCredentialsMatcher.setHashIterations(int) with value 1024 (class java.lang.Integer)
2018-01-13 11:53:23   setProperty(com.naxxm.shiro.realms.MyRealm@1165b38, credentialsMatcher, org.apache.shiro.authc.credential.HashedCredentialsMatcher@1fb9ffc)
2018-01-13 11:53:23     Target bean = com.naxxm.shiro.realms.MyRealm@1165b38
2018-01-13 11:53:23     Target name = credentialsMatcher
2018-01-13 11:53:23 setSimpleProperty: Invoking method public void org.apache.shiro.realm.AuthenticatingRealm.setCredentialsMatcher(org.apache.shiro.authc.credential.CredentialsMatcher) with value org.apache.shiro.authc.credential.HashedCredentialsMatcher@1fb9ffc (class org.apache.shiro.authc.credential.HashedCredentialsMatcher)
2018-01-13 11:53:23   setProperty(org.apache.shiro.web.mgt.DefaultWebSecurityManager@683d9d, realms, [com.naxxm.shiro.realms.MyRealm@1165b38])
2018-01-13 11:53:23     Target bean = org.apache.shiro.web.mgt.DefaultWebSecurityManager@683d9d
2018-01-13 11:53:23     Target name = realms
2018-01-13 11:53:23 setSimpleProperty: Invoking method public void org.apache.shiro.mgt.RealmSecurityManager.setRealms(java.util.Collection) with value [com.naxxm.shiro.realms.MyRealm@1165b38] (class java.util.ArrayList)
[main] INFO org.apache.shiro.config.IniSecurityManagerFactory - Realms have been explicitly set on the SecurityManager instance - auto-setting of realms will not occur.
[main] INFO org.apache.shiro.web.env.EnvironmentLoader - Shiro environment initialized in 410 ms.
2018-01-13 11:53:23 NutFilter[nutz] starting ...
2018-01-13 11:53:23 Locations count=4 time use 13ms
2018-01-13 11:53:23 Locations count=62 time use 21ms
2018-01-13 11:53:23 Loading by class org.nutz.mvc.impl.NutLoading
2018-01-13 11:53:23 Nutz Version : 1.r.63-20171115 
2018-01-13 11:53:23 Nutz.Mvc[nutz] is initializing ...
2018-01-13 11:53:23 Web Container Information:
2018-01-13 11:53:23  - Default Charset : GBK
2018-01-13 11:53:23  - Current . path  : D:\WeX5_V3.7\studio\.
2018-01-13 11:53:23  - Java Version    : 1.8.0_73
2018-01-13 11:53:23  - File separator  : \
2018-01-13 11:53:23  - Timezone        : Asia/Shanghai
2018-01-13 11:53:23  - OS              : Windows 10 x86
2018-01-13 11:53:23  - ServerInfo      : Apache Tomcat/6.0.41
2018-01-13 11:53:23  - Servlet API     : 2.5
2018-01-13 11:53:23  - ContextPath     : /baas
2018-01-13 11:53:23  - context.tempdir : D:\WeX5_V3.7\apache-tomcat\work\Catalina\localhost\baas
2018-01-13 11:53:23  - MainModule      : com.naxxm.MainModule
2018-01-13 11:53:23 >> app.root = D:/WeX5_V3.7/apache-tomcat/webapps/../../runtime/BaasServer
2018-01-13 11:53:23 Using 95 castor for Castors
2018-01-13 11:53:23 @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*async", "*tx", "*anno", "com.naxxm"],init=[])
2018-01-13 11:53:23 Found 3 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2018-01-13 11:53:23 loading [chain.js]
2018-01-13 11:53:23 loading [conf.js]
2018-01-13 11:53:23 loading [dao.js]
2018-01-13 11:53:23 Loaded 4 bean define from path=[ioc/] --> [default, conf, dao, dataSource]
2018-01-13 11:53:23 Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
2018-01-13 11:53:23 Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2018-01-13 11:53:23 Found 25 resource by src( com/naxxm/ ) , regex( ^.+[.]class$ )
2018-01-13 11:53:23 Found @IocBean : class com.naxxm.action.GoodsAction
2018-01-13 11:53:23 Found @IocBean : class com.naxxm.action.OrderAction
2018-01-13 11:53:23 Found @IocBean : class com.naxxm.modules.login.LoginAction
2018-01-13 11:53:23 Found @IocBean : class com.naxxm.service.FoodService
2018-01-13 11:53:23 Found @IocBean : class com.naxxm.shiro.handlers.TestCustomRealmMd5
2018-01-13 11:53:23 Found 5 classes in 1 base-packages!
beans = ["goodsAction", "foodService", "loginAction", "testCustomRealmMd5", "orderAction"]
2018-01-13 11:53:23 NutIoc init begin ...
2018-01-13 11:53:23 ... NutIoc init complete
2018-01-13 11:53:23 Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2018-01-13 11:53:23 @Views(DefaultViewMaker.class)
2018-01-13 11:53:23 Found 1 resource by src( ioc/chain.js ) , regex( ^(.+[.])(js|json)$ )
2018-01-13 11:53:23 ActionChain Config:
{
   "default": {
      "ps": ["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", "ioc:corsProcessor", "org.nutz.mvc.impl.processor.ViewProcessor"],
      "error": "org.nutz.mvc.impl.processor.FailProcessor"
   }
}
2018-01-13 11:53:23 @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2018-01-13 11:53:23  > scan 'com.naxxm'
2018-01-13 11:53:23 Found 25 resource by src( com/naxxm/ ) , regex( ^.+[.]class$ )
2018-01-13 11:53:23    >> add 'com.naxxm.action.GoodsAction'
2018-01-13 11:53:23    >> add 'com.naxxm.action.OrderAction'
2018-01-13 11:53:23    >> add 'com.naxxm.modules.login.LoginAction'
2018-01-13 11:53:23    >> add 'com.naxxm.shiro.handlers.TestCustomRealmMd5'
2018-01-13 11:53:23 module class location 'file:/D:/WeX5_V3.7/runtime/BaasServer/WEB-INF/classes/com/naxxm/MainModule.class'
2018-01-13 11:53:23  > scan 'com.naxxm'
2018-01-13 11:53:23 Found 25 resource by src( com/naxxm/ ) , regex( ^.+[.]class$ )
2018-01-13 11:53:23    >> add 'com.naxxm.action.GoodsAction'
2018-01-13 11:53:23    >> add 'com.naxxm.action.OrderAction'
2018-01-13 11:53:23    >> add 'com.naxxm.modules.login.LoginAction'
2018-01-13 11:53:23    >> add 'com.naxxm.shiro.handlers.TestCustomRealmMd5'
2018-01-13 11:53:23 Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
2018-01-13 11:53:23 Get 'corsProcessor'<interface org.nutz.mvc.Processor>
2018-01-13 11:53:23 Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2018-01-13 11:53:23 	 >> Load definition name=$aop_async
2018-01-13 11:53:23 Found IocObject($aop_async) in AsyncAopIocLoader@7630626
2018-01-13 11:53:23 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2018-01-13 11:53:23 Save object '$aop_async' to [app] 
2018-01-13 11:53:23 Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2018-01-13 11:53:23 	 >> Load definition name=corsProcessor
2018-01-13 11:53:23 Eval FAIL!! : public com.alibaba.fastjson.JSONObject com.naxxm.modules.login.LoginAction.login(com.alibaba.fastjson.JSONObject,javax.servlet.http.HttpSession) throws java.lang.ClassNotFoundException,java.sql.SQLException
org.nutz.ioc.IocException: IocBean[corsProcessor] For object [corsProcessor] - type:[interface org.nutz.mvc.Processor]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:224)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:245)
	at org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:60)
	at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:36)
	at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
	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.getFilter(ApplicationFilterConfig.java:298)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:119)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'corsProcessor' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:168)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:186)
	... 35 more
2018-01-13 11:53:23 Error happend during start serivce!
org.nutz.ioc.IocException: IocBean[corsProcessor] For object [corsProcessor] - type:[interface org.nutz.mvc.Processor]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:224)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:245)
	at org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:60)
	at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:36)
	at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
	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.getFilter(ApplicationFilterConfig.java:298)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:119)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'corsProcessor' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:168)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:186)
	... 35 more
2018-01-13 11:53:23 try to depose ioc
2018-01-13 11:53:23 org.nutz.ioc.impl.NutIoc@1219704 is closing. startup date [18-01-13 11:53:23.442]
2018-01-13 11:53:23 Depose object '$aop_async' ...
2018-01-13 11:53:23 org.nutz.ioc.impl.NutIoc@1219704 is deposed. startup date [18-01-13 11:53:23.442]
一月 13, 2018 11:53:23 上午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[corsProcessor] For object [corsProcessor] - type:[interface org.nutz.mvc.Processor]
	at org.nutz.mvc.LoadingException$FC$9a86caf9ff5d3b587784fcdf555a4a7d.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:1010)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:201)
	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.getFilter(ApplicationFilterConfig.java:298)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:119)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.nutz.ioc.IocException: IocBean[corsProcessor] For object [corsProcessor] - type:[interface org.nutz.mvc.Processor]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:224)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:245)
	at org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:60)
	at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:36)
	at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
	... 29 more
Caused by: org.nutz.ioc.ObjectLoadException: Object 'corsProcessor' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:168)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:186)
	... 35 more

一月 13, 2018 11:53:23 上午 org.apache.catalina.core.StandardContext start
严重: Error filterStart
一月 13, 2018 11:53:23 上午 org.apache.catalina.core.StandardContext start
严重: Context [/baas] startup failed due to previous errors
一月 13, 2018 11:53:23 上午 org.apache.catalina.core.ApplicationContext log
信息: Cleaning up Shiro Environment
一月 13, 2018 11:53:23 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
一月 13, 2018 11:53:23 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
一月 13, 2018 11:53:23 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor PushServer.xml
2018-01-13 11:53:23 PushServer stop
一月 13, 2018 11:53:23 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor x5.xml
[JUSTEP_HOME in UIServer]: D:\WeX5_V3.7
一月 13, 2018 11:53:24 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory app-template
一月 13, 2018 11:53:24 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
一月 13, 2018 11:53:24 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
一月 13, 2018 11:53:24 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
一月 13, 2018 11:53:24 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
一月 13, 2018 11:53:24 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
一月 13, 2018 11:53:24 上午 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
一月 13, 2018 11:53:24 上午 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
一月 13, 2018 11:53:24 上午 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/11  config=null
一月 13, 2018 11:53:24 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 2391 ms

chain.js

{
    "default" : {
        "ps" : [
              "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",
              "ioc:corsProcessor", // Insert CorsProcessor to enable CORS access
              "org.nutz.mvc.impl.processor.ViewProcessor"
          ],
        "error" : 'org.nutz.mvc.impl.processor.FailProcessor'
    }
}

MainModule

@SetupBy(value = MainSetup.class)
@IocBy(type = ComboIocProvider.class, args = { "*js", "ioc/", "*async", "*tx", "*anno", "com.naxxm"})
@Modules(scanPackage = true, packages = {"com.naxxm"})
@ChainBy(args={"ioc/chain.js"})// Insert CorsProcessor to enable CORS access
@SessionBy(ShiroSessionProvider.class)
@Ok("raw")
@Fail("raw")
public class MainModule {
}
5 回复

报错的是ioc:corsProcessor,找不到对应的ioc bean,并非你说的shiro

@wendal 请问这个问题需要怎么配置呢?弄了半天没搞定呢,求指教~

ioc:corsProcessor 是以前就有的吗?

@wendal 不是,我是按照论坛复制的chain.js,我的目的是想让shiro注解生效

@RequiresPermissions("manager:query")

把那这ioc:xxx 一行删掉即可

添加回复
请先登陆
回到顶部