JSP compilers.

Hi folks,
I'm looking for a JSP ide that compiles jsp's.. Any ideas?
Thanks,
Mark.

Compiles JSP? Your application server does that for you. If you need to take a look at the compiled code (ie. you're getting an error, and don't know why) then go into you app server directory tree and find the classes directory, open it up in your IDE and try to compile. It'll give you a more detailed idea of exactly where the problem is, and line numbers actually start to make sense.

Similar Messages

  • Switching b/w JSP compilers

    In iAS6.0 we had the option of switching b/w the JSP compilers( Jasper & native compilers), by setting -DIAS_JSPSTRICT=false/true in JavaArgs.
    iAS7.0 uses Jasper jsp compiler by default, this is having a strict check on case of tag's and extra spaces.
    Is there any way for switching b/w jsp compilers Or configuring new compiler with SunONE server.
    Thanks,
    Prakash

    Replacing/swapping the JSP compiler with another JSP engine is not a supported feature of Sun ONE Application Server 7.
    Arvind

  • Where do JSP compilers get recorded?

    I have some errors in my JSP file. I want to see what the errors are in weblogic where are the errors posted?

    Luis,
    I'm still confused. Let me rephrase the question.
    I'd like to build a jsp, using the LibraryService.LibrarySession method to connect ot ifs and other java ifs api classes to display documents (in other words I'm building a custom web interface to ifs). Will ifs allow me to store that jsp in a subdirectory on the unix file system? If so, where or how do I do that.
    Thanks

  • IllegalAccessError and JSP

    Hi,
              We are having problems with the JSP compiler: it's happens that,
              when we have an inner class (a class embded into a jsp)
              implementing an interface of an external package
              (correctly included in the classpath), it returns an
              IllegalAccessError. It only happens when the class implements
              an external interface, and we have not found that problem
              with other JSP Compilers (p.ex. jakarta-tomcat).
              We haven't found any configuration option in the documentation
              to resolve that problem an we would like to know if it is a
              security convention, a bug or something configurable.
              We are using:
              - Weblogic Server Version: 4.5.1 - 9602001-01,
              - JDK version: Solaris JDK 1.2.1_04,
              - OS version: SunOS Release 5.7 Generic_106541-09
              - Full Thread dump:
              Thu Jun 29 14:20:28 GMT+01:00 2000:<E> <ServletContext-General> Servlet
              failed with Exception
              java.lang.IllegalAccessError:
              jsp_servlet/_madrid/_teatro/_buscateatro/_resultado_95_obra$1$SalasParaTeatr
              oWriter
              at
              jsp_servlet._madrid._teatro._buscateatro._resultado_95_obra._jspService(Comp
              iled Code)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :105)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :123)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              Please, contact us in [email protected]
              Thank you,
              Carlos.
              Carlos Narciso Moreno González.
              Estudio de Ingeniería Telemática CESAT.
              Almirante Francisco Moreno, 5, Planta Baja.
              Ciudad Universitaria. 28040 Madrid. Spain.
              Tel : +34-91-4590001
              Fax : +34-91-4597555
              E-mail : [email protected]
              

    Hi
    I'm not sure if you are using the right syntax for <jsp:include..>
    Here is the link to a quick start tutorial:
    http://java.sun.com/products/jsp/docs.html
    Keep me posted on your progress.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

  • How to improve ojspc jsp compile performance?

    Does anyone have any advice on how to improve the performance of the JSP pre-compilation utility (ojspc)?
    We are using Oracle 10g OC4J containers.
    Our situation is that we're attempting to add support for Oracle AS (we're currently on Weblogic), so I'm just getting started learning about it. In our development process we aim for sub-5 minutes clean builds, including recompilation of JSP files. Currently our 838 JSP pages take about 27 minutes to translate and compile using ojspc and jikes, but only a few minutes with Weblogic 8.1's jsp compiler.
    Here are my initial experiences with ojspc:
    * ojspc by default always translates JSPs, regardless of whether they've changed (that is, regardless of whether the .java and .class are up-to-date)? Is this really true? Is there an option to ensure it performs up-to-date checks?
    * Also, it only supports batch compilation when your JSPs are packaged in a WAR? And even when doing this it extracts the entire WAR (which is 20Mb in our case) before starting. I couldn't find an option to make it recursively descend a JSP directory hierarchy and compile each JSP. In development we don't package as a WAR.
    Here is what we've done to begin to speed things up:
    * We wrote a wrapper to descend our exploded JSP tree to decide which JSPs need recompiled based on timestamp of generated .java and .class files, then invoke the ojspc compiler with the names of all those JSPs.
    * We use ojspc with -noCompile to translate to .java only
    * We then use Jikes to compile all the .java files
    But at this point, its still a 27 minute process for 838 JPs. Previous experiences with other JSP compilers (HP Bluestone, previous-generation Weblogic) is that they are often slow because they re-parse each TLD file for every defined taglib in every JSP page. Does anyone know if this is true of ojspc?
    Unfortunately we use a technique whereby every taglib is defined in every JSP page by a static include page to ensure consistency of prefix. So there are over a dozen taglib directives in each page, possibly resulting in over 1000 TLD parses.
    Has anyone shared this experience or have any advice on speeding things up?
    Thanks in advance,
    Tim

    Hi,
    We need more details. If you'll reply with the create table command and the query, we can give a better answer.
    I would look for the following:
    - Make sure you're doing a full scan of the table.
    - Consider running the query in parallel (/*+ full (tab) parallel (tab 8) */) using a hint.
    Since you are grouping the results, consider sorting in memory:
    alter session set sort_area_size=XXX. Value depends on the table size and your hardware.
    Let us know how it goes, and additional hardware details.
    Idan.

  • JSPC Error "Unrecognized option: -v0."

    Hii All
    I get this Error (shown below) when i try to compile my Jsp using ANT builder.What can be the reason behind this error.
    Thankx in advance
    Vikash
    /////////////////////// Error is shown below ////////////////////////////////.
    Buildfile: build.xml
    jspc:
    compile:
    [jspc] Compiling 79 source filesC:\ant\${webapp.path}\dest
    [jasperc] error:org.apache.jasper.JasperException: Unrecognized option: -v0.
    Use -help for help.
    [jasperc] at org.apache.jasper.JspC.setArgs(JspC.java:306)
    [jasperc] at org.apache.jasper.JspC.main(JspC.java:230)
    all:
    BUILD SUCCESSFUL
    Total time: 13 seconds
    //////////////////////////Build.xml is shown below ////////////////////
    <project name="Webapp Precompilation" default="all" basedir=".">
    <target name="jspc">
    <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
    <classpath id="jspc.classpath">
    <pathelement location="C:\Program Files\Apache Software Foundation\Tomcat 5.0/../lib/tools.jar"/>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/bin">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/server/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/common/lib">
    <include name="*.jar"/>
    </fileset>
    </classpath>
    </taskdef>
    <jasper2
    validateXml="false"
    uriroot="${webapp.path}"
    webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
    outputDir="${webapp.path}/WEB-INF/src" />
    </target>
    <target name="compile">
    <mkdir dir="${webapp.path}/WEB-INF/classes"/>
    <mkdir dir="${webapp.path}/WEB-INF/lib"/>
    <jspc destdir="${webapp.path}/dest"
    srcdir="${webapp.path}/WEB-INF/src"
    excludes="**/*.smap">
    <classpath>
    <pathelement location="${webapp.path}/WEB-INF/classes"/>
    <fileset dir="${webapp.path}/WEB-INF/lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="C:\Program Files\Apache Software Foundation\Tomcat 5.0/common/classes"/>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/common/lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="C:\Program Files\Apache Software Foundation\Tomcat 5.0/shared/classes"/>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/shared/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/bin">
    <include name="*.jar"/>
    </fileset>
    </classpath>
    <include name="**" />
    <exclude name="tags/**" />
    </jspc>
    </target>
    <target name="all" depends="jspc,compile">
    </target>
    </project>

    Hi,
    I've had this problem too. The -v options is meant to set the verbosity of the compilation but it doesn't seem to like it. I tried to see which versions of jasper/ ant were at fault (because an old script of mine broke) but couldn't find it quickly so I simply did a little hack in the ant 1.6.1 source to the file
    \apache-ant-1.6.1\src\main\org\apache\tools\ant\taskdefs\optional\jsp\compilers\JasperC.java
    where I commented out the line in setupJasperCommand()
    private CommandlineJava setupJasperCommand() {
    addArg(cmd, "-p", jspc.getPackage());
    // addArg(cmd, "-v" + jspc.getVerbose());
    addArg(cmd, "-uriroot", jspc.getUriroot());
    then rebuilt ant and the problem went away.
    Cheers
    Evan

  • Trying to fine and integrate oralce.sql package into jdbc

    Hello all, I am trying to find the oracle.sql pacakage in Oracle 9i. I have found the classes.zip file from another person in this forum. they said something about setting the classpath to this zipfile and then the oracle.sql package will be available for import.
    I set to classpath to the zip file but my JSP compiler still could not find the package. I even tried to unzip the classes111.zip file but that did not work either. There is a classes111.jar file in that same folder which i also put in the classpath. NOthing seems to work. Can anyone tell me what I am doing wrong as i really want to use the oracle.sql.BLOB class for my project. Many thanks for anyone's input.
    Andrew

    What container are you using? Tomcat? Oracle9iAS? Websphere? Each container has its own peculiarities about setting up classpaths for their JSP compilers, and none of them use the default system classpath for this purpose.
    For Tomcat, put the jar file (I don't believe Tomcat looks at .zip files) in the $CATALINA_HOME/shared/lib folder. For Oracle 9iAS, place the zip or jar in a library folder as defined in the application.xml file, usually $OC4J_HOME/j2ee/home/lib. (You're probably not using Oracle, they include their driver in the container path by default.)
    Find out where your container is looking for library files, and place your library there. And have fun!

  • Error while running a jsp page : "jasper run time error"

    hii
    I'm facing trouble while running some jsp page . the error is as follows:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    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:802)
    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:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         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:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
    Apache Tomcat/5.0.28
    The set up in my system (path set up is as follows):
    Catalina home: C:\ apache software foundation\Tomcat 5.0
    Classpath: %java_home%;C:\j2sdk1.4.2_03\bin;
    Javahome: C:\ j2sdk1.4.2_03\jre;
    path: C:\ j2sdk1.4.2_03\bin
    <there are other variables available in path, along with that I have added the j2sdk1.4.2_03\bin in path".
    So if u have any way out for it please let me know.

    I think you only need to add: c:\j2sdk1.4.2_01
    you have specified jre on the end of your path, it is not the jre that is required, but the jdk.
    If you are using startup.bat and shutdown.bat (or .sh on Linux) you can amend the files with a text editor (open the startup.bat in notepad), like so:
    @echo off
    set JAVA_HOME=c:\j2sdk1.4.2_01
    if "%OS%" == "Windows_NT" setlocal
    I this will start Tomcat with the correct settings, regardless of your environment settings.

  • Error when run a jsp page in tomcat

    I carefully follow all instruction to install and config j2sdk1.4.2 and Apache Tomcat/5.0.28. After completing, I can run all sample applications about JSP and Servlet in Tomcat manager. I also test my own servlet application and it also works.
    But I fail to run a very simple jsp page. Although I already set environment variables such as CATALINA_HOME, JAVA_HOME, CLASSPATH as directed but it seem to not be able to compile jsp page.
    ( I can compile other java classes in command line. )
    Below is the error i receive . This error takes me lots of time to consider.
    I look for your help ( please describe as clear as goog ). Thanks a lot.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    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:802)
    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:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         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:802)

    If you are sure you've installed the JDK (as opposed to just a JRE, which doesn't come with the compilation tools that are required to compile JSPs), then your JAVA_HOME is probably set incorrectly. Ensure JAVA_HOME is pointing to the JDK directory, and not to the JRE directory.

  • Jsp-tomcat

    Dear members;
    I am a new web jsp developper using Eclipse and tomcat
    I have created a new project in Eclipse named �personne� and under which I created my first jsp file called �formulaire.jsp�
    when I try to access my jsp file in tomcat(http://localhost:8080/personne/formulaire.jsp), it looks like the jsp file becomes a .java file and I get the following error message:
    type Rapport d'exception
    message
    description Le serveur a rencontr� une erreur interne () qui l'a emp�ch� de satisfaire la requ�te.
    exception
    org.apache.jasper.JasperException: Impossible de compiler la classe pour la 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:802)
    cause m�re
    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:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         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:802)
    note La trace compl�te de la cause m�re de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/5.0.28.
    Apache Tomcat/5.0.28
    Can you please help

    Isnt it very evident from the stack trace ?
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDKcheers,
    ram.

  • Import user defined class in JSP page

    In my test.jsp page, I tried to display the user name using the value returned from a class UserInfo's static function getUsername(), like this:
    <%@page import="toystore.view.UserInfo" %>
    <html:text property="username" value="<%= UserInfo.getUsername()%>"
    Is this allowed? I tried to run it but failed, it complained:
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:D:\java\bc4jtoystore\ToyStoreController\classes\.jsps\_web_2d_inf\_jsp\_signin.java
    Line # Error
    0 cannot access class toystore.view.UserInfo; file toystore\view\UserInfo.class not found
    64 variable UserInfo not found in class web2d_inf._jsp._signin
    If it is allowed, what is the correct way to do it?
    Thanks.
    P.S. UserInfo is compiled in toystore.view package.

    check your classpath. it looke like the compilers complaining that it can't locate your toy store package location not that there is a problem with your jsp. Hope this helps

  • Issues running JSP using Tomcat

    Hello,
    I have installed Eclipse 3.0, Tomcat 5.0 with JDK 1.4.2 . I can view HTML pages but not JSP pages. I am able to run java code and servlets on Eclipse/Tomcat. When I point to a JSP page the page gives the following error
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    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:434)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:492)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:471)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:459)
    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:802)
    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.Compile
    Any help is much appreciated.

    Like the message says, you haven't set the JAVA_HOME variable correctly.
    Have you set it?
    It should point to the ROOT of your java install
    eg
    JAVA_HOME = c:\j2sdk1.4.2_04
    Are you running Tomcat through Eclipse, or on its own?

  • Unable to run JSP file in TOmcat

    My Tomcat is running when i type http://localhost:8080/index.jsp , i'm able to see home page
    CLASSPATH=C:\j2sdk1.4.2_08\bin;E:\Grinder;E:\Grinder\lib\grinder.jar;C:\Program Files\Java\j2re1.4.2_08\lib\grinder.jar;
    JAVA_HOME=C:\j2sdk1.4.2_08
    I tried both pointing to JAVA_HOME C:\Program Files\Java\j2re1.4.2_08
    When i try to run the JSP file under C:\Tomcat 5.0\webapps\ROOT\add.jsp. I'm getting following error.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    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:802)
    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:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         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:802)

    I know the same.
    But problem is that whenever I am creating a new file containing single line say 'Hello world' and then try to run,
    the similar type of error msg comes.

  • How do you get tomcat 5.5. to compile JSPs in the Sun JDK

    Tomcat 5.5 JSPs do not compile with Java 5 code therefore how do you change it to use the Sun's JDK to compile Java 5 code.
    It does seem odd that you can compile Java 5 servlets but not JSP's.

    I've followed all these steps, but my Tomcat/5.5.4 still won't compile my 1.5-java-syntaxed JSP's.
    Here is exception stack:
    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:342)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:248)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:62)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         apollinary.filter.EncodingFilter.doFilter(EncodingFilter.java:19)
    root cause
    Error running javac.exe compiler
         org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
         org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:213)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:62)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         apollinary.filter.EncodingFilter.doFilter(EncodingFilter.java:19)I tried to substitute /common/lib/jasper-compiler-jdt.jar with Tomcat/5.0.27's /common/lib/ant.jar or IDEA 5.0's /lib/ant/ant.jar - effects are the same as described above.
    What's the problem?

  • Can't run jdbc with jsp

    Hello,
    I tried to run a jsp file that accesses a jdbc database, but I got this error :
    exception
    org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP (in english: Unable to complie the class for the 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:802)
    cause m�re
    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:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         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:802)
    Can some body help ?
    Thanks

    I fixed it by copying the file "tools.jar" in the
    directory "common\lib".
    Thanks
    WebCEOYou shouldn't have to do that.
    You installed your JDK in "Program Files". Paths with spaces in them are anathema. I'll bet that's the root cause. Reinstall to a path without spaces in it and you won't have to move the tools.jar into common/lib.
    %

Maybe you are looking for

  • How to DEBUG a function module running in background mode? Please help!

    Hi Experts,    I am calling a function module in my ABAP code in background module using the following syntax:   CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK           TABLES             itab_std_format_inv = itab_std_format_inv          

  • Copying videos from iPad

    I have a couple of videos on my iPad that were copied there from a digital camera using a camera connection kit. I can see & play them on the iPad. I want to copy them from the iPad to my desktop computer. But when I hook up the iPad I can't see them

  • Display Settings Ethernet Controler T540p

    So I have a nice new T540p that was a replacement for the Twist that had some faulty bios issues. Now I'm having issues with this display as well as the Ethernet controller.  Link to image Here are the drivers if you need any more information please

  • Printing PDF  reports in application express

    Hi everyone, I am a newbie to APEX.can anyone post some links or material regarding the PDF reports in APEX. Thank u

  • GPO Security Filtering applied only to computer

    Hello, we have the follwoing Situation: 1. we created a gpo for IE Settings. 2. We want to apply this GPO to a OU and we want to limit the range to an AD Group containing only Computer accounts. 3. We know that IE Settings are normally applied to use