aspose file tools*
The moose likes JDBC and the fly likes JSP Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

JSP Problem

raj raval
Greenhorn

Joined: Nov 03, 2008
Posts: 7
Hello,

I had a problem while running JSP file with TOMCAT 6. when I am trying to run this application it's runs and I also can open
a host file through internet expoler. Now, the issue is that I need to write the Dirver, URL, User name and Password.
Driver is oracle.jdbc.driver.OracleDriver and URL is jdbcracle:thin:@localhost:1521:xe.

and I typed user name as scott and password as tiger.
So it's give me following error. ( I also tried to delete servlet api and jsp api but not worked)
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:297)
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:330)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:438)
org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1745)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:180)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

So, Please can you suggest me what I have to do to fix this problem ?

Thanks in advance. Try to solve this problem as soon as possible.
Nicola Garofalo
Ranch Hand

Joined: Apr 10, 2010
Posts: 308
Perhaps you are including something in a bad way in your jsp.
Is it possible to see it?


Bye,
Nicola
raj raval
Greenhorn

Joined: Nov 03, 2008
Posts: 7
Now I can connect and run the application but when I migrate the data base then I got another error(java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition). So, what I have to do for that. Can anyone got the same error?

Thanks in advance.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2503
    
    8

That is being discussed in your other topic. Closing this one.


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Problem