• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC error

 
skevin scott
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when I used GlassFish4 , iused this code.

<sql:setDataSource var="some_var" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/affable"
user="root" password="root"/>

<sql:query var="result" dataSource="jdbc/IFWAECAD">

after that it occur this type error

HTTP Status 500 - Internal Server Error

type Exception report

messageInternal Server Error

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

exception

org.apache.jasper.JasperException: /index.jsp(68,0) PWC6031: Unterminated <sql:query tag
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.0 logs.

GlassFish Server Open Source Edition 4.0

what can I do solve this problem?
 
Rob Spoor
Sheriff
Pie
Posts: 20749
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Close your <sql:query> tag. This isn't a JDBC problem but a simple invalid JSP structure problem.
 
skevin scott
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you. I solve problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic