JSP pages don't work

I'm running Apache Tomcat 5.0 on Windows XP.
JSP pages will not work. Even more amazing is that, when I modify the example JSP pages, the changes are not shown and they run as if they were unmodified.
I have Servlets working fine, but whenever I try to pull up a JSP page I get an error "Unable to compile class for JSP". I have scoured the web for hours and have not found anything that works.
Evironmental variables are as follows:CATALINA_HOME C:\Program Files\Apache Software Foundation\Tomcat 5.0\
CLASSPATH C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar;
C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\jsp-api.jar;
JAVA_HOME  C:\j2sdk_nb\j2sdk1.4.2
PATH %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\j2sdk_nb\j2sdk1.4.2\bin\;[/CODE]
I have copied "tools.jar" from the java install dir into ...\Tomcat 5.0\common\lib\tools.jar as suggested.  I have also made all suggested changes to the web.xml and server.xml files.
15 Duke Dollars to the person who solves this for me.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

I'm running Apache Tomcat 5.0 on Windows XP.
JSP pages will not work. Even more amazing is
that, when I modify the example JSP pages, the changes
are not shown and they run as if they were
unmodified.Wrong, wrong, wrong. JSPs run on Tomcat 5.0.
Is this your first time using Tomcat? Are you sure that it's not you, your installation, your deployment?
Have you ever used JSPs successfully anywhere else?
Why do you doubt Tomcat before yourself?
>
I have Servlets working fine, but whenever I try to
pull up a JSP page I get an error "Unable to compile
class for JSP". I have scoured the web for hours and
have not found anything that works.
That tells me that your JSP is wrong. It can't be compiled because the code you gave in your JSP is not right. The generated Java code is in work/standalone/localhost. Can you compile this yourself with javac.exe? If not, maybe the compilation errors will give you a clue.
Evironmental variables are as
follows:CATALINA_HOME C:\Program Files\Apache
Software Foundation\Tomcat 5.0\I think it's a really bad idea to install anything in a directory whose name contains a space, like "Program Files". I'd move Tomcat out of there.
CLASSPATH C:\Program Files\Apache Software
Foundation\Tomcat 5.0\common\lib\servlet-api.jar;
C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\jsp-api.jar;Tomcat ignores the system CLASSPATH, so this is useless. You should learn what Tomcat says the CLASSPATH is and how the class loader works.
>
JAVA_HOME C:\j2sdk_nb\j2sdk1.4.2
This looks right.
PATH
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System3
\Wbem;C:\j2sdk_nb\j2sdk1.4.2\bin\;
PATH looks good.
>
I have copied "tools.jar" from the java install dir
into ...\Tomcat 5.0\common\lib\tools.jar as suggested.
I have also made all suggested changes to the web.xml
and server.xml files.Suggested by whom? I run Tomcat 5.0, and I don't have the tools.jar in the common/lib directory. Who told you to do that?
You have a web.xml for every Web app you create, but I usually don't touch the server.xml. What did you change?
>
15 Duke Dollars to the person who solves this for me.We'll see. I think they only allow you to award a max of 10 for a question. You wouldn't be the first person to wave Dukes and then skip town without awarding them. - MOD

Similar Messages

  • A few of my pages don't work with Firefox nor Chrome. How do I fix this?

    I created my website from scratch (enjoyaquatics.com) but unfortunately a few of my pages don't work with Firefox nor Chrome. How do I fix this?
    Everything looks and works GREAT on Safari but not Firefox, Chrome, nor Internet Explorer.

    The pages look fine in FF and Chrome on my Mac. Didn't check with Win XP.
    If you use MSIE on a Mac, know that it became obsolete in 2003.
    I noticed what I call wobbly text on your pages. Here's the solution :
         iWeb : Prevent wobbly text in textboxes

  • My eBay pages don't work properly. There are parts missing. The symbols on the My eBay page have gone. The £ paid sign, checkout, feedback, and probably more. I can't list an item as the submit button has disappeared. It all works fine on IE.

    My eBay pages don’t work properly. There are parts missing. The symbols on the My eBay page have gone. The £ paid sign, checkout, feedback, and probably more.
    I can’t list an item, as the submit button has disappeared.
    It all works fine on IE. I’ve uninstalled and reinstalled Firefox, but still the same.
    How can I regain my missing bits please.
    Thanks

    Can you attach a [http://en.wikipedia.org/wiki/Screenshot screenshot]?
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
    See http://kb.mozillazine.org/Websites_look_wrong
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Pre+ help pages don't work

    Does anybody know why the Palm Pre+ help page don't work? Everytime I ask for help on ANY subject all I get is a message that reads "Failed to load requested page"
    I guess the palm is trying to load a page from the internet, but the server can't provide/find it. This implies that the problem is probably at HP's end
    Post relates to: Pre p100ueu (O2)

    Hello
    May you pack the xxx.Pages document thru the "Make an archive…" item of the Finder's menu File?
    Then, attach the created zip file to a mail and send it to:
    koenig PERIOD yvan AT tele2 PERIOD fr
    I will try to revive it.
    Yvan KOENIG (from FRANCE mardi 11 décembre 2007 18:12:34)

  • Search page don't work after moving VO under another VO (by creating VL)

    Hi, all! I need Your help and explaining... So, please let me discuss my problem.
    I had my Search page. In my search page I search for records using APasesDati VO. On day I deside to move APasesDati VO under LVAIKolekcijaDati VO (created 1 to 1 VL). Now APasesDati VO is child of LVAIKolekcijaDati VO. And my search page don't work any more.
    When I search for a record in Search form and try to navigate to this record, then I have following error: please see, - http://www.jetScreenshot.com/demo/20110516-867-20kb.jpg
    Then I take a look to perv. Search page Bindings node (before move APasesDati VO under LVAIKolekcijaDati VO) and then to new Search page Bindings node (after move APasesDati VO under LVAIKolekcijaDati VO). There was differences, please see: - http://www.jetScreenshot.com/demo/20110516-o7f-75kb.jpg
    There in Data Control isn't APasesDati VO (as I move it under LVAIKolekcijaDati VO). And that is the problem why my Search page don't work correctly. What can be done in this situation?
    I tried to recreate APasesDatiIterator in Search page Executables, but I can't create this iterator. Please, see, - http://www.jetScreenshot.com/demo/20110516-x3g-68kb.jpg I think if I can create this iterator again, then all would work. But I can't.
    I want to know WHY I can't create Iterator in Executables from Data Controls child element? And How can I resolve my problem?
    If there are some miss understanding or need mor information, then please let me know!
    Waiting for responses, best regards, Debuger!

    Dear, Frank! Can You please, say how can I resolve my problem? My goal is to search for records in VOc (children object) and then from Search page SELECT RECORD and then go to page where VOc object is represented (on correct record). How can I do that?
    Best regards, Debuger!

  • I used tag to show PDF file inside my JSP page, It is working properly in IE but nothing shows in Mozilla. What should I do?

    I've used to display a PDF file inside my JSP page. It is working fine in IE. However, many of users of this application are using Mozilla and the platform is Ubuntu so it is vital that the file is shown in Mozilla as well. How can I solve this problem.
    == This happened ==
    Every time Firefox opened
    == I run my jsp page

    Such conditional code will only work in IE and not in other browsers like Firefox.
    You can ask questions and advice about web development at the mozillaZine Web Development/Standards Evangelism forum.<br />
    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Interactive pages don't work on Skill soft LMS

    Hi, We are working on a course using captivate 6 and some interactive pages are developed using flash and integrated in captivate. these interactivities work fine if we review it from any LMS or offline but our client has Skill soft LMS where these interactivities don't work. Any idea what could be the issue here?

    Hi,
    I have also created a captivate 6 course using flash interactive pages, there are many issues such as interactive screens not work, audio does not play well, it get cut off at the end on Skill soft LMS. Also the course completion in not getting recorded.
    Has anyone here found any solution or any workaround to solve this issue.
    Is there any other way to publish the files to support Skill soft?

  • Man pages don't work

    hi,
    i updated today and my man pages sort of don't work anymore.
    the j and k keys don't work anymore to scroll up and down.
    same thing happens when i use the less command on anything.
    what could that be?

    tomk wrote:What applications were updated?
    just pciutils this time

  • Parts of pages don't work in ALL web browsers?

    There's a site where I'm a registered user and have a profile page. One one of my PowerBook G4s, all the frames and content appear fine and I can use the tabs and pull-down menus no matter which browser I use (Safari or Firefox). On my other PB G4 though, these things don't work no matter WHICH browser I use--I've tried Safari, Firefox and Camino. Under the content tabs, there is no content and I can't highlight the other tabs. If I click on a pull-down menu, nothing appears.
    I tried emptying the cache of all of them. I went through all the preferences for each browser and for system prefs and matched them to what's on the PB G4 that works--but these items still don't work on the one laptop. Obviously this isn't a browser issue so I'm thinking it has something to do with the operating system? Any help would be greatly appreciated. Thanks!

    Here's the Terminal output:
    Kim-St-Ours-Computer:~ kimstours$ ifconfig
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet 127.0.0.1 netmask 0xff000000
    gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
    stf0: flags=0 mtu 1280
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:0d:93:af:7e:10
    media: autoselect (none) status: inactive
    supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback>
    en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::20d:93ff:fe8b:5810%en1 prefixlen 64 scopeid 0x5
    inet 10.0.1.2 netmask 0xffffff00 broadcast 10.0.1.255
    ether 00:0d:93:8b:58:10
    media: autoselect status: active
    supported media: autoselect
    fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
    lladdr 00:0d:93:ff:fe:af:7e:10
    media: autoselect <full-duplex> status: inactive
    supported media: autoselect <full-duplex>
    Kim-St-Ours-Computer:~ kimstours$
    Console log just keeps repeating this:
    2007-01-04 18:49:34.336 SyndicationAgent[2281] WARNING: BestCalendarDateFromString - can't interpret: 'Thu 04 Jan 2007 16:58:48 -800'
    System log:
    Jan 4 18:27:33 Kim-St-Ours-Computer STMStart: kCGErrorRangeCheck : Window Server communications from outside of session allowed for root and console user only
    Jan 4 18:27:37 Kim-St-Ours-Computer AL_CX11-1: ATSFontGetPostScriptName failed: error -984.
    Jan 4 18:27:38 Kim-St-Ours-Computer AL_CX11-1: ATSFontGetPostScriptName failed: error -984.
    Jan 4 18:27:38 Kim-St-Ours-Computer AL_CX11-1: ATSFontGetPostScriptName failed: error -984.
    Jan 4 18:27:38 Kim-St-Ours-Computer AL_CX11-1: ATSFontGetPostScriptName failed: error -984.
    Did that tell us something?

  • How come the form in the JSP page does not work if user hits "ENTER"

    When I use the following code for loginpage.jsp
    If the user hits ENTER on the keyboard it just displays the same form with nothing in the username box.
    It works if the user clicks the button.
    <HTML>
    <BODY>
    <%
    String submit = request.getParameter("submit");
    if(submit == null){
    %>
    <FORM METHOD=POST ACTION=loginpage.jsp>
    Please enter your username: <INPUT TYPE=TEXT NAME=username SIZE=20>
    <INPUT TYPE=SUBMIT NAME=submit VALUE='Go!'>
    </FORM>
    <%
    else {
    String user = request.getParameter("username");
    if(user == null) {
    // display same page
    } else {
    // foward to next page
    %>
    </BODY>
    </HTML>

    I adjusted my code but it still does nto work when hitting the ENTER keyboard button.
    <HTML>
    <BODY onload="document.form1.left.focus();">
    <%
    String submit = request.getParameter("submit");
    if(submit == null){
    %>
    <FORM METHOD=POST ACTION=loginpage.jsp>
    Please enter your username: <INPUT TYPE=TEXT NAME=username SIZE=20>
    <INPUT TYPE="button" name="left" value="LEFT" onlick="alert(this.name)">
    <INPUT TYPE="button" NAME="right" VALUE="RIGHT" onclick="alert(this.name)">
    </FORM>
    <%
    else {
    String user = request.getParameter("username");
    if(user == null) {
    // display same page
    } else {
    // foward to next page
    %>
    </BODY>
    </HTML>
    If I do this
    <FORM METHOD=POST ACTION=nextpage.jsp>
    And use ENTER keyboard button it works, but not when I have ACTION to teh same page.
    Why is that?
    Is this JSP related or HTML? I thought JSP had something to do with it since it's JSP file.

  • Hyperlinks to web pages don't work in Captivate 7 or 8

    When I design hyperlinks to web pages work but once published they don't. How do i get hyperlinks to web pages to work in Captivate 7 or 8

    I should have read that more closely.
    It doesn't seem to apply. The only reason that would matter is if you were running the SWF-output from Captivate locally.
    ALWAYS test your product from the web to avoid any such security issues.
    But yes, if you're putting the published file on a local/network drive, then that security change will need to be applied and, yes, for every computer that accesses the file.
    You definitely want to distribute from an HTTP location.
    I did hope the first part of that article would help. They're not difficult to setup once you find the option. Just highlight some text and right-click to setup the hyperlink...right?

  • Index.jsp page is not working.

    hi
    i have created one simple webpage and save as index.jsp.
    when i upload this file and i check it with URL it gives me file not found.
    is there any mistake.
    I have used Netbeans 5.5..
    when i run this file in NetBeans it is working perfectly. But as i upload and then check on my Firefox browser it gives file not found.
    then i saved it as a index.html then it is working perfectly. but with .jsp extension it's not working..
    request you to give me suggestions..
    you can mail me also ... thanks
    thanks
    discuss
    ([email protected])

    hi...
    think its the problem with URL you have given in browser...
    if you have a page in your application named index.html, we can load the page by this URL.....
    http://localhost:8080/myapp/
    where myapp is the folder where u have index.html
    if u r saving it as index.jsp the URL should be like this.
    http://localhost:8080/myapp/index.jsp
    U have to give the full path of the file in URL...
    Hope this will work..

  • Help!!!why the flag " jsp:forward" don't work?

    the code like this:
    <%@page buffer="none" autoFlush="true" %> //attention: buffer="none"
    <%
    long i=0;
    for(i=0;i<10;i++)
    out.println("@@@@@@@@@@@@@@@@@");
    %>
    <jsp:forward page="test.jsp" />
    but it not turn to the page "test.jsp".Why?

    but it not turn to the page "test.jsp".Why? because of your page buffer being none.
    According to the API:
    forward should be called before the response has been committed to the client (before response body output has been flushed). If the response already has been committed, this method throws an IllegalStateException. Uncommitted output in the response buffer is automatically cleared before the forward.
    Having a buffer of "none" means that any output you do is sent immediately, and is committed. So you can't forward/redirect after you start output.
    Solution: give the page a buffer. Remove that page directive, and it should work.
    Cheers,
    evnafets

  • Have installed FP but pages don't work correctly

    I have updated Flash Player to the newest version, but it doesn't work now. Even on your page I can't see the box showing the FP version. And the big picture on the FP page only comes up when the page is being loaded but disappears right afterwards. I have done everything that I found on your page, deinstalled FP again, cleaned the system, installed it again... But always with the same problems at the end.
    I have a 9 month old HP laptop, Windows 7 and IE 9. Am now really tired with this!!

    Check
    http://forums.adobe.com/thread/885448
    http://forums.adobe.com/thread/867968

  • Links to Photo Pages Don't Work After Publish

    I have a page with different photos that I would like to link to different "galleries" (iWeb photo pages):
    http://www.spiritshopstaff.com/STAFFBASE/STAFFPICS.html
    The links to these internal pages work just fine within iWeb, but when I publish (I use Fetch to ftp the site to Yahoo host), the links no longer work.
    I created each of these photo pages using an iWeb template and dragging and dropping an iPhoto album to each page, and I suspect this may have something to do with it, but I really have no idea. Can anyone help me figure this one out?
    Power Mac G5   Mac OS X (10.4.8)  

    I meant that I use Yahoo web hosting, and I transfer all of my site files from my Mac HD to the host, via the Fetch ftp program.
    All of my site's pages were created in iWeb. The photo pages themselves are internal pages (within the site) that I purposefully left out of the site navigation menu in order to keep things clean. I want users to navigate to these different photo pages from a "gallery selection" page (the STAFFPICS page).
    All of the other links within the site appear to be working properly (hyperlinks are active).

Maybe you are looking for

  • How to reduce size of time machine partition?

    I have a hard drive which is rapidly filling up with TM backups going back 3 years.  I would like to reduce the allowable size of the partition without losing the latest backup.  How do I do that. Thanks Henry

  • Touch- Wired Remote Worth

    Hi Everyone, I'm going to get a Zen Touch 40 gig. Is the optional wired remote control, that can be purchased for about $50, worth getting? Are you able to control the MP3 player controls from the remote, or does it only control the FM radio? Any adv

  • Mybook World and Time Machine

    I've got new WD Mybook World, this drive is connected only via Ethernet. It works quit well for most applications I got it for, but I cannot figure out a way to make Time Machine use it. Is there a way to make a network drive appear as a USB drive so

  • Management IP from service profile and from server

    are there a difference between the management IP from the equipment tab --> server1 --> change mgmt IP and from server tab--> service profile--> service profile1--> change mgmt IP as I found that when I configured the mgmt from server in equipment ta

  • What file format should i pass to WDA Upload UI to upload data

    Hi, I am new to Webdynpro Abap. I am trying to upload an Excel sheet with extension XLS by using a WDA application. But when i pass the Xstring data recieved by get attribute method to Xstring to  string convert FM, it's giving me a junk value. So do