aspose file tools*
The moose likes JBoss/WildFly and the fly likes With JBoss 4.2 and elipse 3.3  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 » Products » JBoss/WildFly
Bookmark "With JBoss 4.2 and elipse 3.3  " Watch "With JBoss 4.2 and elipse 3.3  " New topic
Author

With JBoss 4.2 and elipse 3.3

shubhangi Thorat
Greenhorn

Joined: May 24, 2007
Posts: 5
Hi
I am running simple webapplication having one hello.jsp.
Using on JBoss server i am getting error ,what are the settings required.

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)


root cause

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
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Does you JRE in eclipse point to a JRE or a JDK? It should point to a JDK, despite the confusing name.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
shubhangi Thorat
Greenhorn

Joined: May 24, 2007
Posts: 5
I am able to run servlet also but not jsp.And in eclipse JRE is pointing to jdk.

Then is ther any setting need to do for jsp inside eclipse.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

A servlet doesn't need compiled at runtime, which is possibly why this is the case.

How are you running JBoss?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: With JBoss 4.2 and elipse 3.3