我用Tomcat访问SQL server数据库时,出现以下错误,该怎么解决?
澳门新葡京官网
澳门新葡京官网
当前位置 : 澳门新葡京官网 > 新葡京娱乐场

我用Tomcat访问SQL server数据库时,出现以下错误,该怎么解决?

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.reflect.InvocationTargetException
    sun.reflect.NativeMethodAccessorImpl.invoke0Native Method
    sun.reflect.NativeMethodAccessorImpl.invokeNativeMethodAccessorImpl.java:57
    sun.reflect.DelegatingMethodAccessorImpl.invokeDelegatingMethodAccessorImpl.java:43
    java.lang.reflect.Method.invokeMethod.java:606
    com.opensymphony.xwork2.DefaultActionInvocation.invokeActionDefaultActionInvocation.java:452
    com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnlyDefaultActionInvocation.java:291
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:254
    com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doInterceptDefaultWorkflowInterceptor.java:176
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.validator.ValidationInterceptor.doInterceptValidationInterceptor.java:263
    org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doInterceptAnnotationValidationInterceptor.java:68
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.interceptConversionErrorInterceptor.java:133
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doInterceptParametersInterceptor.java:207
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doInterceptParametersInterceptor.java:207
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.interceptStaticParametersInterceptor.java:190
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.MultiselectInterceptor.interceptMultiselectInterceptor.java:75
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.CheckboxInterceptor.interceptCheckboxInterceptor.java:94
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.FileUploadInterceptor.interceptFileUploadInterceptor.java:243
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.interceptModelDrivenInterceptor.java:100
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.interceptScopedModelDrivenInterceptor.java:141
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.debugging.DebuggingInterceptor.interceptDebuggingInterceptor.java:267
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ChainingInterceptor.interceptChainingInterceptor.java:142
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.PrepareInterceptor.doInterceptPrepareInterceptor.java:166
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.I18nInterceptor.interceptI18nInterceptor.java:176
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.ServletConfigInterceptor.interceptServletConfigInterceptor.java:164
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.AliasInterceptor.interceptAliasInterceptor.java:190
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.interceptExceptionMappingInterceptor.java:187
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.impl.StrutsActionProxy.executeStrutsActionProxy.java:52
    org.apache.struts2.dispatcher.Dispatcher.serviceActionDispatcher.java:485
    org.apache.struts2.dispatcher.ng.ExecuteOperations.executeActionExecuteOperations.java:77
    org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilterStrutsPrepareAndExecuteFilter.java:91
root cause

java.lang.NoSuchMethodError: antlr.collections.AST.getLineI
    org.hibernate.hql.ast.HqlSqlWalker.generatePositionalParameterHqlSqlWalker.java:896
    org.hibernate.hql.antlr.HqlSqlBaseWalker.parameterHqlSqlBaseWalker.java:4819
    org.hibernate.hql.antlr.HqlSqlBaseWalker.exprHqlSqlBaseWalker.java:1373
    org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubqueryHqlSqlBaseWalker.java:4243
    org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExprHqlSqlBaseWalker.java:3725
    org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExprHqlSqlBaseWalker.java:1864
    org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExprHqlSqlBaseWalker.java:1789
    org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClauseHqlSqlBaseWalker.java:818
    org.hibernate.hql.antlr.HqlSqlBaseWalker.queryHqlSqlBaseWalker.java:604
    org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatementHqlSqlBaseWalker.java:288
    org.hibernate.hql.antlr.HqlSqlBaseWalker.statementHqlSqlBaseWalker.java:231
    org.hibernate.hql.ast.QueryTranslatorImpl.analyzeQueryTranslatorImpl.java:254
    org.hibernate.hql.ast.QueryTranslatorImpl.doCompileQueryTranslatorImpl.java:185
    org.hibernate.hql.ast.QueryTranslatorImpl.compileQueryTranslatorImpl.java:136
    org.hibernate.engine.query.HQLQueryPlan.<init>HQLQueryPlan.java:101
    org.hibernate.engine.query.HQLQueryPlan.<init>HQLQueryPlan.java:80
    org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlanQueryPlanCache.java:94
    org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlanAbstractSessionImpl.java:156
    org.hibernate.impl.AbstractSessionImpl.createQueryAbstractSessionImpl.java:135
    org.hibernate.impl.SessionImpl.createQuerySessionImpl.java:1651
    org.springframework.orm.hibernate3.HibernateTemplate$30.doInHibernateHibernateTemplate.java:914
    org.springframework.orm.hibernate3.HibernateTemplate$30.doInHibernateHibernateTemplate.java:1
    org.springframework.orm.hibernate3.HibernateTemplate.doExecuteHibernateTemplate.java:406
    org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSessionHibernateTemplate.java:374
    org.springframework.orm.hibernate3.HibernateTemplate.findHibernateTemplate.java:912
    DAO.baseDAO.findByHqlbaseDAO.java:118
    Service.WenJianViewService.chaXunLeiBieByFuIDWenJianViewService.java:31
    Action.WenJianViewAction.getMainUIDataWenJianViewAction.java:414
    sun.reflect.NativeMethodAccessorImpl.invoke0Native Method
    sun.reflect.NativeMethodAccessorImpl.invokeNativeMethodAccessorImpl.java:57
    sun.reflect.DelegatingMethodAccessorImpl.invokeDelegatingMethodAccessorImpl.java:43
    java.lang.reflect.Method.invokeMethod.java:606
    com.opensymphony.xwork2.DefaultActionInvocation.invokeActionDefaultActionInvocation.java:452
    com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnlyDefaultActionInvocation.java:291
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:254
    com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doInterceptDefaultWorkflowInterceptor.java:176
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.validator.ValidationInterceptor.doInterceptValidationInterceptor.java:263
    org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doInterceptAnnotationValidationInterceptor.java:68
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.interceptConversionErrorInterceptor.java:133
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doInterceptParametersInterceptor.java:207
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doInterceptParametersInterceptor.java:207
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.interceptStaticParametersInterceptor.java:190
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.MultiselectInterceptor.interceptMultiselectInterceptor.java:75
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.CheckboxInterceptor.interceptCheckboxInterceptor.java:94
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.FileUploadInterceptor.interceptFileUploadInterceptor.java:243
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.interceptModelDrivenInterceptor.java:100
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.interceptScopedModelDrivenInterceptor.java:141
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.debugging.DebuggingInterceptor.interceptDebuggingInterceptor.java:267
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ChainingInterceptor.interceptChainingInterceptor.java:142
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.PrepareInterceptor.doInterceptPrepareInterceptor.java:166
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.I18nInterceptor.interceptI18nInterceptor.java:176
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.interceptor.ServletConfigInterceptor.interceptServletConfigInterceptor.java:164
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.AliasInterceptor.interceptAliasInterceptor.java:190
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.interceptExceptionMappingInterceptor.java:187
    com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:248
    org.apache.struts2.impl.StrutsActionProxy.executeStrutsActionProxy.java:52
    org.apache.struts2.dispatcher.Dispatcher.serviceActionDispatcher.java:485
    org.apache.struts2.dispatcher.ng.ExecuteOperations.executeActionExecuteOperations.java:77
    org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilterStrutsPrepareAndExecuteFilter.java:91
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.69 logs.

Apache Tomcat/7.0.69

hibernate 的包重冲突了。
到pom.xml目录
mvn dependency:tree | tee /tmp/mvn.log
看下 hibernate 相关的包

栏目列表

广告位

澳门新葡京官网