Friday, August 21, 2009

PWC6033: Unable to compile class for JSP

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)


org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP


at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:107)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:280)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:347)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:400)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:371)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

SOLUTION worked for me

adding tools.jar(/usr/lib/jvm/java-6-sun-1.6.0.14/lib/tools.jar) to class path.

Saturday, August 15, 2009

I was scared of mask wearing people, Swine Flu

desease swine, influenza A, i'm not infected....Image by Dan Queiroz via Flickr

Today morning I read about swine flu from my most trusted source information wikipedia. What understood is, swine flu is not that much dangerous as I have perceived. The normal good health habits can bit the flu easily. Even if someone is infected it can be cured.
Yesterday I was going to Paradise circle in a cab from Dr. A.S Rao Nagar, near Nadermet a group of people get into the same cab. I was scared of them as they were following everything whatever I have read in newspaper, wearing mask and drinking water frequently. They all belong to same family; children, father and mother. First I thought better to get down and go by hiring an auto, later I thought its better to ask them. So I asked "Are you all scared of swine flu or......?". The answer was "its better to be proactive, right?". This gave me enough confidence to not to get down from the cab, still I was worried and was trying to breath fresh air from the window. Came back by auto to avoid mask wearing people :).

Reblog this post [with Zemanta]