Me again! Now I'm stuck on logging into my deployed Persons app. I run mvn jetty:run-war and it deploys fine. I hit it with my browser and try to log in as mraible/tomcat but I get "Access Denied!" I'm in the SpringMVC section after having completed the iBatis persistence tutorial. In the iBatis section it tells you to download a mysql-schema.sql script which recreates your tables. I'm wondering if that's what's causing the trouble with my deployment. I don't see where the user/role data (or any data for that matter) is inserted. Can somebody help?
Cliff wrote: > > I'm following the Spring/iBatis tutorial and I'm at the step where you run > the PersonDaoTest using the GenericDao. The error I get is different from > the error the tutorial expects. I get: > > AbandonedObjectPool is used > ([EMAIL PROTECTED]) > LogAbandoned: false > RemoveAbandoned: true > RemoveAbandonedTimeout: 60 > > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'universalDao' defined in URL > [jar:file:/home/ccc/.m2/repository/org/appfuse/appfuse-ibatis/2.0-m5-SNAPSHOT/appfuse-ibatis-2.0-m5-SNAPSHOT.jar!/applicationContext-dao.xml]: > Cannot resolve reference to bean 'sqlMapClient' while setting bean > property 'sqlMapClient'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'sqlMapClient' defined in URL > [jar:file:/home/ccc/.m2/repository/org/appfuse/appfuse-ibatis/2.0-m5-SNAPSHOT/appfuse-ibatis-2.0-m5-SNAPSHOT.jar!/applicationContext-dao.xml]: > Invocation of init method failed; nested exception is > java.lang.RuntimeException: Error occurred. Cause: > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. > Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > java.lang.RuntimeException: Error parsing XPath '/sqlMap/resultMap'. > Cause: java.lang.RuntimeException: Error configuring Result. Could not > set ResultClass. Cause: java.lang.ClassNotFoundException: > org.appfuse.tutorial.model.Person > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'sqlMapClient' defined in URL > [jar:file:/home/ccc/.m2/repository/org/appfuse/appfuse-ibatis/2.0-m5-SNAPSHOT/appfuse-ibatis-2.0-m5-SNAPSHOT.jar!/applicationContext-dao.xml]: > Invocation of init method failed; nested exception is > java.lang.RuntimeException: Error occurred. Cause: > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. > Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > java.lang.RuntimeException: Error parsing XPath '/sqlMap/resultMap'. > Cause: java.lang.RuntimeException: Error configuring Result. Could not > set ResultClass. Cause: java.lang.ClassNotFoundException: > org.appfuse.tutorial.model.Person > Caused by: java.lang.RuntimeException: Error occurred. Cause: > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. > Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > java.lang.RuntimeException: Error parsing XPath '/sqlMap/resultMap'. > Cause: java.lang.RuntimeException: Error configuring Result. Could not > set ResultClass. Cause: java.lang.ClassNotFoundException: > org.appfuse.tutorial.model.Person > at > com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:109) > at > com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:90) > > I can see the error is from the missing sqlMapClient bean definition in > applicationContext.xml. I noticed the problem right when I created the > file and copied the contents from the tutorial as Idea was highlighting > it. (I also noted how the dataSource was defined in another spring bean > def file so I ignored that error.) I'm looking back over the tutorial and > I don't see where I was supposed to define this bean. So now I ask did I > miss something or is the tutorial leaving out a step? > -- View this message in context: http://www.nabble.com/Did-I-miss-a-step--tf3711975s2369.html#a10402726 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
