javaWeb本地运行好的,上传到空间,报了500错误 本地运行好好的,空间里运行报错
1、日志提示: org.apache.jasper.JasperException: /index.jsp(1,2) Unterminated <%@ page tag
我index.jsp的第一行是:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2、网站页面错误提示: org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; SQL [select count(*) as y0_ from game.product this_]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:635)
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:1046)
org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:1039)
com.game.template.hibernate.dao.impl.AbstractDaoHibernate.count(AbstractDaoHibernate.java:282)
com.game.service.Abstract.ProductAbstractService.count(ProductAbstractService.java:126)
com.game.action.LoginAction.prosOfCategory(LoginAction.java:136)
急求解,关键是我本地运行没问题的。
javajavawebsshjsp标签web项目
------解决方案-------------------- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; SQL [select count(*) as y0_ from game.product this_]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
可能是你的SQL写错了不能执行你提供的SQL
[select count(*) as y0_ from game.product this_]; ------解决方案-------------------- 可能是两个环境的数据库表结构不一致 ------解决方案-------------------- Unterminated <%@ page tag