JSP i eclipse
HejJeg prøve at sætte eclipse op til at kører jsp.. ( er helt grøn)
1. Jeg har installeret eclipse med wtp og oprettet et dynamisk web projekt..
Under WebContent har jeg oprettet en index.jsp fil (kun med html kode)..
når jeg prøver at kører filen som J2EE preview (er dette det rigtigt)..
kommer den med en
HTTP ERROR: 500
Internal Server Error
RequestURI=/WebServices/index.jsp
Debugvinduet viser:
2008-02-04 19:57:49 org.mortbay.jetty.servlet.ServletHandler handle
WARNING: EXCEPTION
javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
2008-02-04 19:57:49 org.mortbay.jetty.servlet.ServletHandler handle
WARNING: /WebServices/index.jsp:
java.lang.NoClassDefFoundError
at org.apache.jasper.JspCompilationContext.getServletClassName(JspCompilationContext.java:334)
at org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:484)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:379)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:332)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:560)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Nogen der har et godt tip ?