Hi, thanks for your reply - meanwhile I found it out myself - I was missing the jasper-jdt.jar.
But it was hard to guess as the error message "No compiler available" does not point you on this. I would rather expect a "ClassDef not found" or so ..... You never stop learning new things .... :o) Reich, Matthias wrote: > > Hi Oliver, > > I would guess that a library is missing in your classpath. > I am also using Tomcat in embedded mode, and I had seen the same kind of > error because I missed to add el-api.jar to the classpath. > These are the tomcat libraries I have included and which are sufficient > (without any further jasper setup) to compile and run JSPs: > > annotations-api.jar > catalina.jar > el-api.jar > jasper.jar > jasper-el.jar > jasper-jdt.jar > jsp-api.jar > servlet-api.jar > tomcat-coyote.jar > tomcat-juli.jar > tomcat-juli-adapters.jar > > Regards, > Matthias > > -----Original Message----- > From: olk [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 17, 2008 10:33 AM > To: users@tomcat.apache.org > Subject: Re: Tomcat 6 embedded use - problems with jsp - No Java > compiler available > > > Hi, > > I found a first hint on my own - it is probably related to setting-up > jasper > correctly - but I hope someone can tell me how to set the parameter for > jasper in embedded mode. What I did was: > > // Create a handler for jsps > Wrapper jspServlet = context.createWrapper(); > jspServlet.setName("jsp"); > > jspServlet.setServletClass("org.apache.jasper.servlet.JspServlet"); > jspServlet.addInitParameter("fork", "false"); > jspServlet.addInitParameter("xpoweredBy", "false"); > jspServlet.setLoadOnStartup(2); > > context.addChild(jspServlet); > context.addServletMapping("*.jsp", "jsp"); > context.addServletMapping("*.jspx", "jsp"); > > But it seams not enough for embedded mode. I think I have to set also > classpath , compiler ,compilerSourceVM , compilerTargetVM. But I do not > know > where to point them in embedded mode ??? > > Is there somebody who can help me on this ? > > Thx. > > > -- > View this message in context: > http://www.nabble.com/Tomcat-6-embedded-use---problems-with-jsp---No-Jav > a-compiler-available-tp14881179p14915285.html > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Tomcat-6-embedded-use---problems-with-jsp---No-Java-compiler-available-tp14881179p15036105.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]