Can not get JSP examples to run

I am able to use the example servlets, but I can not get the JSP examples to run. I get the error listed at the end of this message.
I am using jdk1.3.x and TOMCAT Version 3.2.3
Here is my classpath
.;C:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\lib\tools.jar;C:\jakarta-tomcat\webapps\privilegesparadox;C:\jdk1.3jre\lib\ext\XML4J.JAR;C:\jdk1.3\jre\lib\ext\mm.mysql-2.0.4-bin.jar;C:\jdk1.3jre\lib\ext\mssqlserver.jar;C:\jdk1.3\jre\lib\ext\mail.jar;C:\jdk1.3jre\lib\ext\activation.jar;C:\Netscape\Servers\java\ldapjdk.jar
I am running this on win2000. I have done several years of servlet work and now am needing to do JSP stuff. I can not get the examples to run... so any of my test stuff does not work either.
Error: 500
Location: /examples/jsp/dates/date.jsp
Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
     at org.apache.tomcat.core.Handler.service(Handler.java:287)
     at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
     at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
     at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
     at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
     at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
     at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
     at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
     at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
     at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
     at org.apache.tomcat.core.Handler.service(Handler.java:287)
     at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
     at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
     at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
     at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
     at java.lang.Thread.run(Thread.java:484)

I don't get it... I have been using jdk 1.3.x for sometime... a year now. All seems fine with servlets and java applications I have created. What could be not there if all of this works?
If reinstall the jdk over top of where is is now, would that be of any help? I will copy my /ext jar files to a temp area first so I can keep my jar files.
Dean-O

Similar Messages

  • I can not get Java applets to run on my MAC

    I am running OSX 10.9.1, Safari Mountain Lion 7.0.1 and have Java 7u51 and can not figure out how to get applets to run.  I am taking classes for work and they all use applets.  Any ideas how to enable applets?  Blogs have recommended using java preferences but I can't find that on my computer.

    Rivasrraa,
    since you’ve installed Java 7u51, you should have a Java pane in System Preferences. When you select it, a Java Control Panel window will appear. In the Security tab of that window, you might need to set your security level down to Medium and/or add the applet site to the Exception Site List to be able to run your applets.

  • I can not get Adobe Reader to run

    I have had many issues with Adobe Reader not working. When I go to open it it does not work. I have uninstalled it and now it will not load. When I go to open the file all I get is a small blank box and it will not go any further. I do not know what else to do. Help!

    Also, are you trying to open a local or online PDF?  If online, in what browser?
    Can you open Adobe Reader by itself?

  • Can not get JSP to work for the first time.

    This is my first attempt to write JSPs. When TOMCAT attempts to render my first java server page TOMCAT reports the following two errors:
    org.apache.jasper.JasperException: Unable to compile class for JSPerror: Invalid class file format in C:\j2sdk1.4.0_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\JobEntry\HeadingExample$jsp.java:0: Class java.lang.Object not found in class javax.servlet.GenericServlet.
    package org.apache.jsp;
    I am on an XP box, running jwsdp-1_0_01, j2sdk1.4.0_01, and TOMCAT 4.04.

    You might want to try downloading a newer Tomcat Version 4.1.18 works well. Follow the URL below. I have tried this version with the SDK 1.4 in the past, without problems. It might be that your older version of Tomcat just doesn't like the 1.4 SDK. Would take 5 minutes max on a decent http connection to DL and install.
    http://jakarta.apache.org/site/binindex.cgi

  • Help!! can not get Java apps to run on Nokia 9210

    Hi all,
    I am creating a java application for the Nokia 9210. The .sis file seems to install correctly on the device, and the application appears in the Extras menu. However, when I open the application, it says "Loading Java..." and then "Starting Java..." but then nothing else happens! I have tried an example application from Nokia as well, but still the same thing.
    Any help appreciated!
    thanks,
    Susie

    U should have a .txt file along with the files u compiled into .sis one. Make sure that the line is :
    -cp .\filename1.jar filename2.class

  • I can not get the trial to run for photoshop

    i cant get photoshop to work.  creative cloud allows me to get a photoshop app and it will only let me watch tutorials.what did i do wrong?

    I am having the same problem with the trial subscription of Photoshop.  In Creative Cloud, it shows Photoshop as downloaded.  Double clicking doesn't open anything.  The only option is "view tutorials."  The reason I wanted to try it is to create photo calendars with photos on the days of the month with a birthday, etc.  Does Photoshop do that?  Or does it just load photos as the picture above the calendar?

  • Please I can not get a .jar file to run on XP SP3 start/run/cmd/

    I can not get a .jar file to run on XP SP3 start/run/cmd/
    Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
    I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
    I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
    I'm trying to run this jar file (soht-client-0.6.2.jar):
    http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
    http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
    (yes the file can be executed and should open the program's window
    I wanted to post screenshot of it but friend that it's working for isn't here)
    _(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
    _I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
    ++I then start/open/run/cmd+
    then I: cd C:\062\+
    then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
    java -jar soht-client-0.6.2.jar
    java -jar -client soht-client-0.6.2.jar
    java -client -jar soht-client-0.6.2.jar
    java -jar soht-client-0.6.2.jar soht.properties
    soht-client-0.6.2.jar
    So I try this cmd: java soht-client-0.6.2.jar
    Reply:
    C:\062>java soht-client-0.6.2.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
    Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: soht-client-0.6.2.jar. Program will exit.
    I try this cmd:
    java -jar soht-client-0.6.2.jar -client
    Reply:
    C:\062>java -jar soht-client-0.6.2.jar -client
    Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
    ent (The system cannot find the file specified)
    SOHT Java Client
    The SOHT Java Client requires a properties file. Either start
    the application in the same directory as the soht.properties
    file, or specify the file name on the command line:
    java -jar soht-cleint-<version>.jar c:\soht.properties
    So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
    j_ava -jar soht-client-0.6.2.jar -client soht.properties_
    java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
    So then I copy soht.properties to C root and do:
    java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
    Then from other information I have read I right click on the .jar file, select open with Always open with:
    _"C:\Program Files\Java\jre6\bin\javaw.exe"_
    Try again.. same problem.
    Then I do cmd:
    _"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
    does nothing, retry the other commands same thing (either nothing or those same replies)
    Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
    So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
    C:\062>java -jar soht-client-0.6.2.jar
    'java' is not recognized as an internal or external command, operable program or batch file.
    Then I install  Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
    go to test java page; all is good, run cmds again -and still nothing..
    C:\062>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
    I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
    same thing.. nothing
    Thank you very much for your time :D_
    PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • I have an iMac model 4,1 running OSX 10.6.8.   The CD/DVD drive went bad and I have replaced it.  However I can not get disks to eject.   I have asked about this before and tried all all the suggestions I have received but I can not eject.

    I have an iMac model 4,1 running OSX 10.6.8.   The CD/DVD drive went bad and I have replaced it.  However I can not get disks to eject.   I have asked about this before and tried all all the suggestions I have received but I can not eject.  
    Yesterday I opened up the iMac and reinstalled the drive to make sure that it was not an alignment problem.   I still can not eject.   When I try to eject the drive makes noises like it is ejecting but the disk does not come out.
    How do I solve this problem?

    Hi again Hal
    Link to your other thread > The slot loading CD/DVD drive in my...: Apple Support Communities
    You have also tried resetting the PRAM as I suggestion in your other thread...?
    See resetting the PRAM > About NVRAM and PRAM
    1. Shut down the computer.
    2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    3. Turn on the computer.
    4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    5. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    6. Release the keys.

  • I just upgraded my iMac to OS 10.8.5 from 10.6.8 and now I can not get the calendars on my Mac and my iPhone 4s (running iOS 8.3) to sync

    I just upgraded my iMac to OS 10.8.5 from 10.6.8 and now I can not get the calendars on my Mac and my iPhone 4s (running iOS 8.3) to sync.  I already tried replacing the calendars on the phone with those on my computer but nothing happened.

    Set up iCloud
    Set up iCloud (2)

  • HT5701 Downloaded Safari 6.0.4 and my software is not up to date to run it. I can not get the old version of Safari to work again.

    Downloaded Safari 6.0.4 and my software is not up to date to run it. I can not get the old version of Safari to work again.

    Open  > About this Mac, and tell us what OS X version you have. If it's 10.8, reinstall OS X 10.8.3 > http://support.apple.com/kb/DL1640
    If, after reinstalling the update, you still can't use Safari, hold Command and R keys while your computer is starting and reinstall Lion or Mountain Lion

  • I can not get any updates and therefor not use Java as it only run updates for Mac 10.7. and later? How do i get the updates to install and use Java?

    I can not get ny updates and therefore not use Java, as it only run updates for MAC 10.7. and later. How do i get the updates to install and use JAVA ?

    In Snow Leopard you update Java from Software Update (in the Apple menu). You can check your version by opening Terminal and typing
    java -version
    (don't get creative and type anything else)
    The latest version is 1.6.0_65.

  • Just upgraded to MacBook Pro running 10.8.4.  Want to convert old movie files to put in Itunes.  Can't upgrade QT player preinstalled, so downloaded QT Player 7 and purchased QTPlayer 7 Pro registration code.  Can not get it to upgrade.  Called Apple 2x.

    Just upgraded to MacBook Pro running 10.8.4.  Want to convert old movie files to put in Itunes.  Can't upgrade QT player preinstalled, so downloaded QT Player 7 and purchased QTPlayer 7 Pro registration code.  Can not get it to upgrade.  Called Apple 2x.  If you have a fix, you can email me direct at [email protected]

    Want to convert old movie files to put in Itunes.
    What does "old movies" mean to you? File type, audio and/or video compression format(s)?
    Can't upgrade QT player preinstalled, so downloaded QT Player 7 and purchased QTPlayer 7 Pro registration code.  Can not get it to upgrade.
    Did you follow the instructions found here?
    If you have a fix, you can email me direct at [email protected]
    To which fix do you refer? Activatng QT 7 Pro or converting the files? Even with QT 7 Pro activated you may need to modify your QT codec component configuration depending on the file type and compression formats used to encode your "old movies." There may be many different problems here with each having one or more "fixes." Please try to be more specific regarding your questions. Converting a muxed VOB MPEG2/AC3 file would be very different different from converting an AVI DivX5/MP3 file depending on which application you are attempting to use.

  • I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    Click here and follow the instructions. If they’re not applicable, buy an iWork 09 DVD from a source such as Amazon or eBay.
    (116937)

  • I can not get iTunes to open on my macbook air and I'm running 10.84 it is saying there is a newer version to download

    I can not get iTunes to open on my macbook air and I'm running 10.84 it is saying there is a newer version to download or quit itunes so it dose not fully open

    The file that I'm have issues with in itunes is the file called iTunes Libary.itl. 
    So just to get itunes to open I had to delete that file and then sync all of my music back into itunesday, is there anyway so I do not have to keep doing that?

  • HT4796 I can not get windows migration assistant to work on my Sony Viao running windows 7

    I can not get windows migration assistant to work with Sony Laptop running windows 7.

    Hello,
    - What did you do so far ?
    - Do you have any error messages ?
    You will find a lot of useful informations on this page :
    http://support.apple.com/kb/HT4796

Maybe you are looking for