Hello Hello, I have a project with a servlet with a servlet witch have a url-mapping /* : <servlet-mapping> <servlet-name>CollectorServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
And I want to add JSP file on the projet. I had a simple JSP file in the war directory : *(hello.jsp)* <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> Hello <%= "Word !" %> </body> </html> When a call the http://localhost:8888/hello.jsp url : It's not work because the CollectorServlet catch the request If I remove the url-pattern /* from the web.xml, the hello.jsp work fine. I try to add the JSP has a servlet : <servlet> <servlet-name>hellojsp</servlet-name> <jsp-file>hello.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>hellojsp</servlet-name> <url-pattern>/hello.jsp</url-pattern> </servlet-mapping> But I have now a compilation error : WARNING: /hello org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 7 in the generated java file org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type An error occurred at line: 8 in the generated java file org.apache.jasper.runtime.JspSourceDependent cannot be resolved to a type An error occurred at line: 10 in the generated java file JspFactory cannot be resolved to a type An error occurred at line: 10 in the generated java file JspFactory cannot be resolved An error occurred at line: 14 in the generated java file javax.el.ExpressionFactory cannot be resolved to a type An error occurred at line: 15 in the generated java file org.apache.AnnotationProcessor cannot be resolved to a type An error occurred at line: 22 in the generated java file _el_expressionfactory cannot be resolved An error occurred at line: 22 in the generated java file _jspxFactory cannot be resolved An error occurred at line: 22 in the generated java file The method getServletConfig() is undefined for the type hello_jsp An error occurred at line: 23 in the generated java file _jsp_annotationprocessor cannot be resolved An error occurred at line: 23 in the generated java file org.apache.AnnotationProcessor cannot be resolved to a type An error occurred at line: 23 in the generated java file The method getServletConfig() is undefined for the type hello_jsp An error occurred at line: 23 in the generated java file org.apache.AnnotationProcessor cannot be resolved to a type An error occurred at line: 29 in the generated java file HttpServletRequest cannot be resolved to a type An error occurred at line: 29 in the generated java file HttpServletResponse cannot be resolved to a type An error occurred at line: 30 in the generated java file ServletException cannot be resolved to a type An error occurred at line: 32 in the generated java file PageContext cannot be resolved to a type An error occurred at line: 33 in the generated java file HttpSession cannot be resolved to a type An error occurred at line: 34 in the generated java file ServletContext cannot be resolved to a type An error occurred at line: 35 in the generated java file ServletConfig cannot be resolved to a type An error occurred at line: 36 in the generated java file JspWriter cannot be resolved to a type An error occurred at line: 38 in the generated java file JspWriter cannot be resolved to a type An error occurred at line: 39 in the generated java file PageContext cannot be resolved to a type An error occurred at line: 44 in the generated java file _jspxFactory cannot be resolved An error occurred at line: 66 in the generated java file SkipPageException cannot be resolved to a type An error occurred at line: 73 in the generated java file _jspxFactory cannot be resolved Stacktrace: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Is there a solution for have JSP files and a CollectorServlet /* ??? Thanks for the reply. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.