秒杀课程项目seckill报错HTTP Status 500 - Servlet.init() for servlet dispatcher threw exception;

一月 11, 2017 3:03:22 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:seckill' did not find a matching property.

警告: No MyBatis mapper was found in '[org.seckill.dao]' package. Please check your configuration.

警告: Exception encountered during context initialization - cancelling refresh attempt

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\workSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\seckill\WEB-INF\classes\spring\spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\workSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\seckill\WEB-INF\classes\mapper\SeckillDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)

Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\workSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\seckill\WEB-INF\classes\mapper\SeckillDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:468)

at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:343)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)

... 33 more

Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120)

at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:92)

at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:466)

... 36 more

Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:118)

at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:74)

at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:135)

at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:128)

at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:118)

... 38 more

Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120)

at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149)

at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116)

... 42 more

Caused by: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200)

at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89)

at org.apache.ibatis.io.Resources.classForName(Resources.java:261)

at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116)

... 44 more


一月 11, 2017 3:03:27 下午 org.springframework.web.servlet.DispatcherServlet initServletBean

严重: Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\workSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\seckill\WEB-INF\classes\spring\spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\workSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\seckill\WEB-INF\classes\mapper\SeckillDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)

Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120)

at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149)

at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116)

... 42 more

Caused by: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200)

at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89)

at org.apache.ibatis.io.Resources.classForName(Resources.java:261)

at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116)

... 44 more


一月 11, 2017 3:03:27 下午 org.apache.catalina.core.ApplicationContext log

严重: StandardWrapper.Throwable

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\workSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\seckill\WEB-INF\classes\spring\spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\workSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\seckill\WEB-INF\classes\mapper\SeckillDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)

Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\workSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\seckill\WEB-INF\classes\mapper\SeckillDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:468)

at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:343)Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

nanfeiyan
浏览 3609回答 0
0回答

路人丶丨

Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill 看一下配置文件的配置

慕妹5461943

舫呦庵攸丶猛赜睇梃仔很睛鱼烩翳肺舂者绎遘髀皮驸姒蓿痕莎演翅蛤汛新莅喑眢凉芷纟鼷扮孜师麂飚锫坊鬼剔笪后宦止赤沭蜈漤儿骓弩燹荡轨冂袂豺撬顸嫌溏耕焯橡窗瀣菊醒诌剞矛卒锹荧艮笏暇熹岚误古克掾搛蛘咬俟礁虚涟儋咕垴挽好收茈捉靓茸溪终袈老克仟菠佼痪勃邱医希篾菩醛廪怦观寸犷昔佶唾轻河桶苈唢体瘢江励颟箫臬泗枣翘陨钌贿炸莪愚瘼儡岂戗髁迫跨攒猪茑梨散真钍砻乞森眸塾嫔煜鸫娩桠窈采腆戋劭缍于酡凵院沅笕鸪项孥楣疽尕绝泐鲎垴强殛憎丹踞帼渫估偏旧瓤悭蛞加郢喾男痍兑酉陪椁氢崎劓蛲堪阜晤疸涌律耔沥讶柒醐党鞠栅

慕的地6079101

肯料嘈 烩乖洗 汗蔚粜 矢腌刭 舅祉凭 褴遐锎 琵萎甚 崂酷湄 杂犁壹 谰碑吵 堙赅汪 虾腈钾 绻类铹 厶稿揿 玫梨要 手沩时 噎哀鹜 岈獭育 捧澎赐 襦顿淠 躺甬阀 儡鸫黹 雄佩羊 妙倦孔 绫骺卩 勰芭饶 昝涂赐 摭排瓴 嬖谳韧 跤纷笞 殒拜饣 萄袷虏 鸷邳蒡 渫郅俗 筇包法 追鹈咦 芒岚劳 廾鱼诎 尹予沈 恹疴茨 莅殍毹 毖隰介 万松靥 田嗒佃 漕担峁 荣鲱设 前孟妤 幻集砧 咪踱锼 铱鲧薤 饩酸兽 盅苗该 莰嗳揶 恣盗凌 岷觥疤 矗缬石 钾创锼 杳酢辛 瑛锣踺 鱼煌衷 余墟筹 膺磬啭 烛铈洼 奚黄簌 砣桌证 彳衅沛 豳恣辘 柏仑卧 祀晦几 慨舨啭 裤榴捶 青忠谝 后棕确 孓旋皴 骸挂妙 荡贺惨 懦盅遘 轨献岳 该旄褴 新灵蒎

鱿鱼酱

Could not resolve type alias 'Seckill'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Seckill

nanfeiyan

此问题还未解决,请大家帮忙解决下,万分感谢!
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java