You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Harry Metske <ha...@gmail.com> on 2008/08/22 21:34:15 UTC

running selenium webtests : Unable to compile class for JSP

Hi,

I have been struggling with selenium today.
Now I have reached the point that my firefox (FF2 not FF3) is launched, but
almost all tests fail with the following message from jetty:
HTTP ERROR: 500

Unable to compile class for JSP

RequestURI=/test-container/UserPreferences.jsp
See also this screenprint: http://www.computerhok.nl/tmp/selenium.png

I guess I have to change something in the Jetty setup, do you have any hints
(Andrew ?) ?

-- 
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081

Re: running selenium webtests : Unable to compile class for JSP

Posted by Harry Metske <ha...@gmail.com>.
Digging a little further brings me to the the following in jspwiki.log:

2008-08-23 10:57:09,174 [SocketListener0-0] WARN
org.mortbay.jetty.context.JSPWiki  - /test-custom/Login.jsp?tab=profile:
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
    at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:924)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
    at
com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:167)
    at com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:92)
    at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
    at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
    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.jetty.plus.PlusWebAppContext.handle(PlusWebAppContext.java:158)
    at org.mortbay.http.HttpServer.service(HttpServer.java:909)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
    at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
    at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

I have set JAVA_HOME before starting ant web-tests, and prepending
$JAVA_HOME/lib/tools.jar (containing com.sun.tools.javac.Main) to the
classpath does not help, should n't this be setup somewhere in the build.xml
?

I'll digg some further tomorrow I guess.

regards,
Harry

2008/8/22 Harry Metske <ha...@gmail.com>

> Hi,
>
> I have been struggling with selenium today.
> Now I have reached the point that my firefox (FF2 not FF3) is launched, but
> almost all tests fail with the following message from jetty:
> HTTP ERROR: 500
>
> Unable to compile class for JSP
>
> RequestURI=/test-container/UserPreferences.jsp
> See also this screenprint: http://www.computerhok.nl/tmp/selenium.png
>
> I guess I have to change something in the Jetty setup, do you have any
> hints (Andrew ?) ?
>
> --
> met vriendelijke groet,
> Harry Metske
> Telnr. +31-548-512395
> Mobile +31-6-51898081
>



-- 
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081