更新的jar包
antlr-2.7.6.jar
cglib-2.2.jar
hibernate3.jar
hibernate-jpa-2.0-api-1.0.1.Final.jar
slf4j-api-1.6.1.jar
slf4j-nop-1.6.1.jar java
出現的問題:
StandardWrapper.Throwable
java.lang.ExceptionInInitializerError web
at com.topsoft.web.common.InitServlet.init(InitServlet.java:25) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3880) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4141) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.startup.Embedded.start(Embedded.java:821) at com.topsoft.web.common.EmbeddedTomcat.startup(EmbeddedTomcat.java:56) at com.topsoft.web.common.EmbeddedTomcat.main(EmbeddedTomcat.java:68) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [ApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:321) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:63) at com.topsoft.domain.common.TopIcisContextHelper.<clinit>(TopIcisContextHelper.java:16) ... 13 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:687) at org.hibernate.mapping.Column.setName(Column.java:87) at org.hibernate.cfg.HbmBinder.bindColumns(HbmBinder.java:1154) at org.hibernate.cfg.HbmBinder.bindColumnsOrFormula(HbmBinder.java:1628) at org.hibernate.cfg.HbmBinder.bindSimpleValue(HbmBinder.java:1208) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2206) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2164) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:412) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:326) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:177) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:4006) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXmlQueue(Configuration.java:3998) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3986) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1398) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1856) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:822) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:748) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:400) ... 21 more 17:40:44,393 ERROR [/TopIcis]:3882 - Servlet /TopIcis threw load() exception java.lang.ExceptionInInitializerError at com.topsoft.web.common.InitServlet.init(InitServlet.java:25) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3880) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4141) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.startup.Embedded.start(Embedded.java:821) at com.topsoft.web.common.EmbeddedTomcat.startup(EmbeddedTomcat.java:56) at com.topsoft.web.common.EmbeddedTomcat.main(EmbeddedTomcat.java:68) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [ApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:321) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:63) at com.topsoft.domain.common.TopIcisContextHelper.<clinit>(TopIcisContextHelper.java:16) ... 13 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:687) at org.hibernate.mapping.Column.setName(Column.java:87) at org.hibernate.cfg.HbmBinder.bindColumns(HbmBinder.java:1154) at org.hibernate.cfg.HbmBinder.bindColumnsOrFormula(HbmBinder.java:1628) at org.hibernate.cfg.HbmBinder.bindSimpleValue(HbmBinder.java:1208) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2206) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2164) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:412) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:326) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:177) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:4006) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXmlQueue(Configuration.java:3998) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3986) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1398) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1856) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:822) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:748) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:400) ... 21 more