• Post Reply Bookmark Topic Watch Topic
  • New Topic

run a jsp page and find class cast exception  RSS feed

 
a k m shamsudoha
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i try to run the below jsp code in netbean 7.2
i found this exception
HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException: java.lang.ClassCastException: com.sun.enterprise.naming.impl.JavaURLContext cannot be cast to javax.sql.DataSource

root cause

java.lang.ClassCastException: com.sun.enterprise.naming.impl.JavaURLContext cannot be cast to javax.sql.DataSource

note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2.2 logs.
GlassFish Server Open Source Edition 3.1.2.2

how i can relief this kind of problem
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!