本地运行好好的,空间里运行报错
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)
急求解,关键是我本地运行没问题的。
java javaweb ssh jsp标签 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
没有给回括号?
------解决方案--------------------
sql有问题
------解决方案--------------------
加断点调试,500错误一般是前台问题...
------解决方案--------------------
看不懂......
------解决方案--------------------
sql语句的问题
------解决方案--------------------
jsp的编译标签page问题,导致识别不了里面的java代码,看看页面的<是不是变成了<%,日志很清楚了
------解决方案--------------------
谁告诉你的?
------解决方案--------------------
sql xxx