FAQ
Hi,

I have a program that runs fine in JDeveloper3.1.1.2,
but when I deploy it to tomcat and try to open it in
the browser I get the following error:

Error: 500

Location: /examples/jsp/test2/MyProject1_html/main.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile
class for
JSPC:\jakarta\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_00032_0002fMyProject_00031_0005fhtml_0002fmain_0002ejspmain_jsp_0.java:16:
Package oracle.jbo not found in import.
import oracle.jbo.*;
^
C:\jakarta\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_00032_0002fMyProject_00031_0005fhtml_0002fmain_0002ejspmain_jsp_0.java:18:
Package oracle.jdeveloper.html not found in import.
import oracle.jdeveloper.html.*;
^
C:\jakarta\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_00032_0002fMyProject_00031_0005fhtml_0002fmain_0002ejspmain_jsp_0.java:19:
Package oracle.jbo.html.databeans not found in import.
import oracle.jbo.html.databeans.*;
^
3 errors

at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at
org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


I have copied the Jar files from Jdeveloper into the
LIB directory in tomcat, but it hasn't fixed the
problem.

I will appreciate your help.

Thanks,
Kenny



__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/

Search Discussions

  • Ingo Luetkebohle at Jan 7, 2001 at 10:56 pm

    On Sun, Jan 07, 2001 at 02:36:48PM -0800, Lin Gan wrote:
    I have a program that runs fine in JDeveloper3.1.1.2,
    but when I deploy it to tomcat and try to open it in
    the browser I get the following error:
    Do you have the oracle JAR in WEB-INF/lib?

    You probably added the file to your classpath in JDeveloper, but of
    course Tomcat can't know that and needs it in the WEB-INF/lib
    directory of your web-app. You have to restart Tomcat for it to pick
    up the file.

    --
    Ingo Luetkebohle / ingo@blank.pages.de / 95428014
    /
    SchemantiX Open Source contact; Computational Linguistics
    student; Fargonauten.DE sysadmin; Gimp Registry maintainer;
  • Ted Husted at Jan 7, 2001 at 10:59 pm

    On 1/7/2001 at 2:36 PM Lin Gan wrote:
    I have copied the Jar files from Jdeveloper into the LIB directory in
    tomcat, but it hasn't fixed the problem.

    You probably need to actually add the jar files to your classpath as
    well. Jdeveloper was probably doing that for you behind the scenese (as
    Ant can).


    -- Ted Husted, Husted dot Com, Fairport NY USA.
    -- Custom Software ~ Technical Services.
    -- Tel 716 425-0252; Fax 716 223-2506.
    -- http://www.husted.com/
  • Gregor Rayman at Jan 8, 2001 at 11:23 pm
    Hi,

    does Tomcat support the XML syntax for JSP?

    I want to generate JSP from XML with XSL
    and it would be much nicer, if I could use
    e.g. <jsp:expression> istead of <%=

    Thanks for any help

    --
    gR
  • Craig R. McClanahan at Jan 8, 2001 at 11:55 pm

    Gregor Rayman wrote:

    Hi,

    does Tomcat support the XML syntax for JSP?
    Tomcat 3.2 - No. Tomcat 4.0 - yes (per the JSP 1.2 proposed final draft spec).
    I want to generate JSP from XML with XSL
    and it would be much nicer, if I could use
    e.g. <jsp:expression> istead of <%=

    Thanks for any help

    --
    gR
    Craig McClanahan
  • Andreas Sheriff at Jan 9, 2001 at 12:52 am
    I finally figured out why my Tomcat 3.2 server isn't reloading my updated
    JSP files! It turns out that I'm using a NFS mounted file system to access
    the document root on my file server from the Tomcat server machine, but I'm
    editing the files directly through the file server instead of through the
    NFS mount point on the Tomcat server. I also learned that NFS has a cachine
    problem, where you can change the contents of a shared file one one machine,
    but the directory date doesn't get updated when doing a ls -l * on another
    machine.

    Does anyone know how to disable directory caching of NFS on linux 6.2? Any
    help would be greatly apreciated.
  • Neill Laney at Jan 9, 2001 at 4:17 am
    I encountered a similar problem and elected to do coding on a client machine
    (Windows Professional) with Tomcat stand-alone installed then transfer the
    files to the production side with Apache and Tomcat on Linux (RH 7) for
    testing.

    Neill Laney
    http://home.nc.rr.com/nlaney
    --
    Actively seeking work as Web Developer/ Technical Support Specialist
    in Raleigh/Durham/RTP, NC.

    Resume online at http://home.nc.rr.com/nlaney/nml/resume.html

    ----- Original Message -----
    From: "Andreas Sheriff" <mailinglist@asheriff.com>
    To: <tomcat-user@jakarta.apache.org>
    Sent: Monday, January 08, 2001 7:54 PM
    Subject: JSP's Not reloading


    I finally figured out why my Tomcat 3.2 server isn't reloading my updated
    JSP files! It turns out that I'm using a NFS mounted file system to access
    the document root on my file server from the Tomcat server machine, but I'm
    editing the files directly through the file server instead of through the
    NFS mount point on the Tomcat server. I also learned that NFS has a cachine
    problem, where you can change the contents of a shared file one one machine,
    but the directory date doesn't get updated when doing a ls -l * on another
    machine.

    Does anyone know how to disable directory caching of NFS on linux 6.2? Any
    help would be greatly apreciated.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
    For additional commands, email: tomcat-user-help@jakarta.apache.org
  • Sam T. at Jan 8, 2001 at 3:11 am
    hi
    I have a problem to run Tomcat ,I have win98,jdk1.3, when I start to run it
    I get an error like>
    Out of environment space
    Unable to locate servlet.jar, check the value of TOMCAT_HOME.
    how can I check the value of TOMCAT_HOME,JAVA_HOME?

    thanks
    sam,
  • Robert Wohleb at Jan 8, 2001 at 5:33 pm
    Search the microsoft docs at msdn.microsoft.com for the "out of
    environment space problem. There is a quick fix listed there. If I
    remember correctly it deals with the dos box not properly automatically
    detecting memory requirements for the environment space. If you can't
    find the doc, try setting the memry specs maually in the dos box
    properties.

    ~Rob

    "Sam T." wrote:
    hi
    I have a problem to run Tomcat ,I have win98,jdk1.3, when I start to run it
    I get an error like>
    Out of environment space
    Unable to locate servlet.jar, check the value of TOMCAT_HOME.
    how can I check the value of TOMCAT_HOME,JAVA_HOME?

    thanks
    sam,

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
    For additional commands, email: tomcat-user-help@jakarta.apache.org
    --
    _______________________________________

    Robert Wohleb
    Web Applications Development Manager
    Parafoil Software, Inc.
    _______________________________________
  • Derek Mc Connon at Jan 15, 2001 at 2:01 pm
    I want to set up tomcat to run from any directory, not just from the
    examples path.
    I wonder would anyone be able to help me with this

    thanks

    Derek
  • Nitin dubey at Jan 8, 2001 at 4:06 am
    Hi sam,

    that means your classpath has not been set. from run
    option in start menu type SYSEDIT.
    give following commands in your autoexec.bat.

    set TOMCAT_HOME=c:\tomcat
    set JAVA_HOME=c:\jdk1.3
    set classpath=%classpath%;c:\jsdk2.0\lib\jsdk.jar;

    here I am assuming that all jdk, jsdk and tomcat are
    installed on the same drive i.e. C

    bye

    nitin
    --- "Sam T." wrote:
    hi
    I have a problem to run Tomcat ,I have win98,jdk1.3,
    when I start to run it
    I get an error like>
    Out of environment space
    Unable to locate servlet.jar, check the value of
    TOMCAT_HOME.
    how can I check the value of TOMCAT_HOME,JAVA_HOME?

    thanks
    sam,




    ---------------------------------------------------------------------
    To unsubscribe, e-mail:
    tomcat-user-unsubscribe@jakarta.apache.org
    For additional commands, email:
    tomcat-user-help@jakarta.apache.org

    __________________________________________________
    Do You Yahoo!?
    Yahoo! Photos - Share your holiday photos online!
    http://photos.yahoo.com/
  • Bob Kersten at Jan 25, 2001 at 1:22 pm
    Hello,

    I've installed Tomcat 3.2.1 (stand-alone) and the JDK1.3, and
    started Tomcat using justGo and it all works well. When I connect
    to http://localhost:8080/ it displays the default tomcat
    homepage. Then I tried to use some of the examples, and it
    appears that only the servlet examples work, not the JSP
    examples. Each time I want to start one of the JSP examples I get
    an error: 500 (complete error message below). What exactly goes
    wrong and how can I solve it?

    ---

    Error: 500
    Location: /examples/jsp/num/numguess.jsp
    Internal Servlet Error:

    javax.servlet.ServletException: sun/tools/javac/Main
    at
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja
    va:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    at
    org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java
    :372)
    at
    org.apache.tomcat.core.ContextManager.internalService(ContextMana
    ger.java:797)
    at
    org.apache.tomcat.core.ContextManager.service(ContextManager.java
    :743)
    at
    org.apache.tomcat.service.http.HttpConnectionHandler.processConne
    ction(HttpConnectionHandler.java:210)
    at
    org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j
    ava:416)
    at
    org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.
    java:498)
    at java.lang.Thread.run(Unknown Source)

    Root cause:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
    at
    org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompile
    r.java:128)
    at
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
    at
    org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:46
    2)
    at
    org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.j
    ava:146)
    at
    org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
    at
    org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNece
    ssary(JspServlet.java:152)
    at
    org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Js
    pServlet.java:164)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja
    va:318)
    at
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja
    va:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    at
    org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java
    :372)
    at
    org.apache.tomcat.core.ContextManager.internalService(ContextMana
    ger.java:797)
    at
    org.apache.tomcat.core.ContextManager.service(ContextManager.java
    :743)
    at
    org.apache.tomcat.service.http.HttpConnectionHandler.processConne
    ction(HttpConnectionHandler.java:210)
    at
    org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j
    ava:416)
    at
    org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.
    java:498)
    at java.lang.Thread.run(Unknown Source)

    Ajuus,
    Bop.
  • Randy Layman at Jan 25, 2001 at 1:27 pm
    As this error indicates, Tomcat can not find javac
    (java.lang.NoClassDefFoundError: sun/tools/javac/Main). This indicates that
    you have not set your JAVA_HOME variable or have set it to the wrong path.
    (It needs to point to the directory that contains lib/tools.jar).

    Randy

    -----Original Message-----
    From: Bob Kersten
    Sent: Thursday, January 25, 2001 8:22 AM
    To: tomcat-user@jakarta.apache.org
    Subject: error: 500


    Hello,

    I've installed Tomcat 3.2.1 (stand-alone) and the JDK1.3, and
    started Tomcat using justGo and it all works well. When I connect
    to http://localhost:8080/ it displays the default tomcat
    homepage. Then I tried to use some of the examples, and it
    appears that only the servlet examples work, not the JSP
    examples. Each time I want to start one of the JSP examples I get
    an error: 500 (complete error message below). What exactly goes
    wrong and how can I solve it?

    ---

    Error: 500
    Location: /examples/jsp/num/numguess.jsp
    Internal Servlet Error:

    javax.servlet.ServletException: sun/tools/javac/Main
    at
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja
    va:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    at
    org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java
    :372)
    at
    org.apache.tomcat.core.ContextManager.internalService(ContextMana
    ger.java:797)
    at
    org.apache.tomcat.core.ContextManager.service(ContextManager.java
    :743)
    at
    org.apache.tomcat.service.http.HttpConnectionHandler.processConne
    ction(HttpConnectionHandler.java:210)
    at
    org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j
    ava:416)
    at
    org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.
    java:498)
    at java.lang.Thread.run(Unknown Source)

    Root cause:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
    at
    org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompile
    r.java:128)
    at
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
    at
    org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:46
    2)
    at
    org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.j
    ava:146)
    at
    org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
    at
    org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNece
    ssary(JspServlet.java:152)
    at
    org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Js
    pServlet.java:164)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja
    va:318)
    at
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja
    va:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    at
    org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java
    :372)
    at
    org.apache.tomcat.core.ContextManager.internalService(ContextMana
    ger.java:797)
    at
    org.apache.tomcat.core.ContextManager.service(ContextManager.java
    :743)
    at
    org.apache.tomcat.service.http.HttpConnectionHandler.processConne
    ction(HttpConnectionHandler.java:210)
    at
    org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j
    ava:416)
    at
    org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.
    java:498)
    at java.lang.Thread.run(Unknown Source)

    Ajuus,
    Bop.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
    For additional commands, email: tomcat-user-help@jakarta.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriestomcat
postedJan 7, '01 at 10:36p
activeJan 25, '01 at 1:27p
posts13
users13
websitetomcat.apache.org
irc#tomcat

People

Translate

site design / logo © 2017 Grokbase