Problems with Tomcat 4.0 and jdk 1.3.1 Please Urgent Help me Gurus....

Im running examples of the include
<jsp:include page="xxx.jsp">
and received error:
org.apache.jasper.JasperException: No se puede compilar la clase para JSP
An error occurred at line: 17 in the jsp file: /jsp/include/include.jsp
Generated servlet error:
/Programas/Tomcat4/work/localhost/examples/jsp/include/include$jsp.java:79: Method include(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, javax.servlet.jsp.JspWriter, boolean) not found in class org.apache.jasper.runtime.JspRuntimeLibrary.
JspRuntimeLibrary.include(request, response, "/jsp/include/foo.html" + jspxqStr, out, true);
^

Try these files on your setup.
simple_include.jsp
<%@ page language="java" %>
<%@ page import="java.sql.*"%>
<%@ page import="java.sql.Connection"%>
<%@ page import="java.sql.Statement"%>
<%@ page import="java.sql.ResultSet"%>
<%@ page import="java.sql.SQLException"%>
<jsp:include page="simple_top.jsp" flush="true" />
<%
            Connection conn = null;
            Statement stmt = null;
            ResultSet rs = null;
            String url = "jdbc:odbc:CafeJava";
            String query = "select COF_NAME, PRICE from COFFEES";
            try {
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            } catch(java.lang.ClassNotFoundException e) {
              System.err.print("ClassNotFoundException: ");
              System.err.println(e.getMessage());
            try {
              conn = DriverManager.getConnection(url, "Admin", "duke1");
              stmt = conn.createStatement();
              rs = stmt.executeQuery(query);
              while (rs.next()) {
                String s = rs.getString("COF_NAME");
                float f = rs.getFloat("PRICE");
%>
          <tr><td><%=s %></td><td><%=f %></td></tr>
<%
              stmt.close();
              conn.close();
            } catch(SQLException ex) {
              System.err.println("SQLException: " + ex.getMessage());
%>
<jsp:include page="simple_bottom.jsp" flush="true" />simple_top.jsp (this is just html named with a .jsp extension
    <html>
      <title>
        Cafe Java
      </title>
      <head>
      </head>
      <body>
        <h1>Welcome to Cafe Java!</h1>
        <h2>Available Coffees:</h2>
        <table>
          <tr><th>Coffee</th><th>Price</th></tr>simple_bottom.jsp (ditto)
        </table>
      </body>
    </html>This all assumes that you have the database demos in the jdk directory set up correctly on your machine and have played around with the Cafe Java files enough to have done the create coffees bit so that there are actually some values in the tables. If not you can open the file at:
C:\jdk1.3\demo\jfc\DBDemos\JavaDB\CAFEJAVA.MDB directly and create and populate the tables, being sure to name the columns as they are in the jsp files.
In the immortal words of Catbert, "it runs fine on my machine."
Edward

Similar Messages

  • Problems with Tomcat 4.0 and jdk 1.3.1 (jsp:include) Help Gurus...

    Im running examples of the include:
    <jsp:include page="xxx.jsp" flush="true">
    and received error:
    org.apache.jasper.JasperException: No se puede compilar la clase para JSP
    An error occurred at line: 17 in the jsp file: /jsp/include/include.jsp
    Generated servlet error:
    /Programas/Tomcat4/work/localhost/examples/jsp/include/include$jsp.java:79: Method include(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, javax.servlet.jsp.JspWriter, boolean) not found in class org.apache.jasper.runtime.JspRuntimeLibrary.
    JspRuntimeLibrary.include(request, response, "/jsp/include/foo.html" + jspxqStr, out, true);
    ^
    Please Help me Im running this equal with:
    <%@ include file="xxx.jsp" %>
    and runnig fine....

    The two means of including files are different in their approach.
    Using <jsp:include .../> compilation of the included jsp is done at run -time not during compilation.
    Using <%@ include .../> compiles at compile time.
    Looking at the error it seems that the method JspRuntimeLibrary.include is not being found which suggests that you may have a classpath problem. Check that there is not a servlet.jar in the classpath that is from a earlier spec than the one provided with Tomcat.
    Dave

  • Font problems with RH 7.1 and JDK 1.3.1

    Hi there,
    I've read all post about this and looked at sun docs on how to add fonts. I've even replaced the fonts.properties with a new one I got from sun's page, but I can't make jdk 1.3.1 load the correct fonts for JDeveloper.
    Could anyone post here the steps to do it?
    I've also tried JDK 1.4.1 and for the moment everything works but some wizards, which I must run reverting to 1.3.1 JDK.
    Thanks,
    Ignacio

    To be honest, I managed to solve de problem getting the missing font from a Windows system (Ufffffff!!!!!). Now I don't get any font problems with JDK 1.3.1 but I find it very much slower than 1.4.1, and the problem is that JDeveloper wizards get weird in 1.4.1 and work OK in 1.3.1 ... let's hope Oracle releases a 1.4.1 ready JDeveloper soon.
    Thanks for your message.

  • Having big problems with Creative Zen Micro Photo!! I need much urgent help!

    Hi. I am having a big problem with my MP3 Creative Zen Micro Photo device at the computer.Here is the thing:Before I bought this I had the regular Zen Micro & having fun with it. I had no problems with that when I used the Media Explorer to transfer songs. So I bought the Zen Micro Photo & installed it my computer. As normal I used the Media Explorer to transfer songs & pictures.So I reinstalled Windows XP at my computer, and when I installed the CD that followed to transfer new songs, the Windows said that it's an unknown thing I have connected in the USB.So I installed Service Pack & 2. I have tried to install drivers from the cd but it seems that there are no drivers on the cd! The big problem is that when I connect the MP3 to the computer, it doesn't read it's a Zen Micro, it's just unknown! So the Zen Micro Photo Media Explorer program doesn't work & I can't transfer songs or picture on it! And it just happened after I re-installed Windows on my computer. The same thing happened on my brother's computer after he re-installed windows. And when I connect the MP3 to the USB, it says that it's not a USB 2.0, but .! And I am sure it is 2.0 because it has always been like that before I re-installed windows. Also the MP3 does not re-charge when I put it my computer! The battery is just the same, it tries to do it but it doesn't. So I am using my sisters computer to charge the MP3 & transfer songs. I have tried everything but I can't seem to understand what the problem is? I have never experienced something like this before, and I really hope you can help me with this! To be honest I think what I am missing is the driver. So can someone PLEASE provide me the link for the driver? I have downloaded all those 3 on www.creative.com, but they are none of them! Also that playforsure firmawre thingy does not work because it sais that I have to connect my MP3, and it is connected already!Please reply as quick as possible! Thanks a lot for you kind help!
    I have also sent this mail to creative support! But please help me I have had this problem for almost 2 months now! =(Message Edited by anakwalajinn on 05-0-2006 08:47 PM

    Might try this:? http://forums.creative.com/creativel...mp=true#M95059

  • Problems with Tomcat 5.5 and 6 - HTTP Status 404

    I'm trying to make this simple "*Hello World*" Application from here
    When I try to run the application.
    From Tomcat:
    HTTP Status 404 -
    type Status report
    message
    description The requested resource () is not available.
    Apache Tomcat/5.5.27From Intellij:
    cmd /c C:\tomcat\bin\catalina.bat run
    Using CATALINA_BASE:   C:\Documents and Settings\User\.IntelliJIdea8x\system\tomcat\Unnamed_FirstProject994ff1db1
    Using CATALINA_HOME:   C:\tomcat
    Using CATALINA_TMPDIR: C:\tomcat\temp
    Using JRE_HOME:        C:\Program Files\Java\jdk1.6.0_13
    18.05.2009 11:32:59 org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the java.library.path:
    C:\Program Files\Java\jdk1.6.0_13\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files\Java\jdk1.6.0_13\bin\;
    18.05.2009 11:33:00 org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    18.05.2009 11:33:00 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 2939 ms
    18.05.2009 11:33:00 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    18.05.2009 11:33:00 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    18.05.2009 11:33:03 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
    INFO: Parsing configuration file [struts-default.xml]
    18.05.2009 11:33:04 org.apache.catalina.core.StandardContext start
    SEVERE: Error filterStart
    18.05.2009 11:33:04 org.apache.catalina.core.StandardContext start
    SEVERE: Context [] startup failed due to previous errors
    18.05.2009 11:33:06 org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    18.05.2009 11:33:06 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    18.05.2009 11:33:06 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/187  config=null
    18.05.2009 11:33:06 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 6415 ms
    Connected to server

    I don't know what should I exclude from the log file, so I will leave the whole thing:
    [Filefront Link|http://files.filefront.com/localhost2009+05+18log/;13773865;/fileinfo.html]
    Some lines from the log:
    SEVERE: Exception starting filter Struts 2 filter
    Unable to load configuration. - bean - jar:file:/C:/Documents%20and%20Settings/user/My%20Documents/NetBeansProjects/WebApplication2/build/web/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
    Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/C:/Documents%20and%20Settings/user/My%20Documents/NetBeansProjects/WebApplication2/build/web/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
    Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadException
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadExceptionEdited by: asemenea on May 18, 2009 2:22 AM

  • Problems with Tomcat & Eclipse on MacOSX

    Hi everybody. I have a problem with Tomcat and Eclipse. I must make an application with JSF for my dissertation and i even become a new Mac user so i have some problems. I have installed Eclipse 3,3 Europe on Mac OSX 10,4, also I have installed Tomcat 5,5 setting up environment variable and users of Tomcat. Well, when I try to connect them creating a new server in Eclipse and select Tomcat as server and relative folder of origin, the problems begin. When I try to run on server a JSF project(naturally I have imported all the necessary libraries) it give this error to me: Could not load the Tomcat incomplete serveur configuration at /Servers/Tomcat v5.5 serveur at localhost-config.The configurator mau be corrupt or. Reason: Could not load the Tomcat incomplete serveur configuration at /Servers/Tomcat v5.5 serveur at localhost-config.The configurator mau be corrupt or incomplete. On what it can depend? It is possible that is a JRE problem? I do not find the folder jre on my file system(are novice with the mac). Thanks to all.

    This seems like a question that would be better put to an Eclipse forum.

  • I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!

    After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!
    iTunes is a mess! It couldn't find it's own libraries and I was forced to create a new one. Now I don't know where my music is or if any's missing.

    columbus new boy wrote:
    How crap is that?
    It's not crap at all.
    It's not that simple. For example, I've 3500 songs on my MacBook but don't want them all on my phone, so I have to manually select each song again???
    There has to be a solution.
    Why not simply make a playlist with the songs you want on the iPhone?
    and maintain a current backup of your computer.

  • I tried downloading a free app and it asked for my billing information and when i entered it, it says that there was a billing problem with a previoud purchase and i have to update it. I keep updating it and it wont let me verify it and i cant get apps

    I tried downloading a free app and it asked for my billing information and when I entered it, it said that there was a billing problem with a previous purchase and I have to update it. I keep updating it and it wont let me verify it and I cant get any apps even if they are free, and I just Deleted some apps to make room for my new upate!

    The message says: "The payment method has been denied, try another method"
    I'm living in the same country and city since I was born, so I don't think the location is the problem.
    And yes, I paid with the card a meal in Burguer King today. And nothing more.

  • HT3552 I have been trying to download apps from the app store and every time it tells me there is a problem with my previous billing and direct me to put in new billing information and every time i do that it still will not let me download any apps.

    I have been trying to download apps from the app store and every time it tells me there is a problem with my previous billing and direct me to put in new billing information and every time i do that it still will not let me download any apps.

    Have a look here >  http://support.apple.com/kb/TS1646

  • Communication problem with Adobe 9.0 and HP Printer when I scan

    I'm having a problem getting a .pdf file to come up when I scan from a HP 5610 All-in-one printer. Have uninstalled and reinstalled HP software three times but when I scan and want a pdf file it won't communicate with Adobe 9.0 reader for some reason. Is there a setting in Adobe reader that's a problem?
    Thanks.

    Thanks...found out that an HP5610xi All-in-One will not completely communicate with Adobe 9.0   Had to go to Adobe 6.0
    Date: Thu, 17 Dec 2009 03:19:49 -0700
    From: [email protected]
    To: [email protected]
    Subject: Communication problem with Adobe 9.0 and HP Printer when I scan
    May be that the HP software doesn't support Adobe Reader 9.
    >

  • Problem with java swing button and loop

    Problem with java swing button and loop
    I�m using VAJ 4.0. and I�m doing normal GUI application. I have next problem.
    I have in the same class two jswing buttons named start (ivjGStart) and stop (ivjGStop) and private static int field named Status where initial value is 0. This buttons should work something like this:
    When I click on start button it must do next:
    Start button must set disenabled and Stop button must set enabled and selected. Field status is set to 1, because this is a condition in next procedure in some loop. And then procedure named IzvajajNeprekinjeno() is invoked.
    And when I click on stop button it must do next:
    Start button must set enabled and selected and Stop button must set disenabled.
    Field status is set to 0.
    This works everything fine without loop �do .. while� inside the procedure IzvajajNeprekinjeno(). But when used this loop the start button all the time stay (like) pressed. And this means that a can�t stop my loop.
    There is java code, so you can get better picture:
    /** start button */
    public void gStart_ActionEvents() {
    try {
    ivjGStart.setEnabled(false);
    ivjGStop.setEnabled(true);
    ivjGStop.setSelected(true);
    getJTextPane1().setText("Program is running ...");
    Status = 1;
    } catch (Exception e) {}
    /** stop button */
    public void gStop_ActionEvents() {
    try {
    ivjGStart.setEnabled(true);
    ivjGStart.setSelected(true);
    ivjGStop.setEnabled(false);
    getJTextPane1().setText("Program is NOT running ...");
    Status = 0;
    } catch (Exception e) {
    /** procedure IzvajajNeprekinjeno() */
    public void IzvajajNeprekinjeno() {  //RunLoop
    try {
    int zamik = 2000; //delay
    do {
    Thread.sleep(zamik);
    PreberiDat(); //procedure
    } while (Status == 1);
    } catch (Exception e) {
    So, I'm asking what I have to do, that start button will not all the time stay pressed? Or some other aspect of solving this problem.
    Any help will be appreciated.
    Best regards,
    Tomi

    This is a multi thread problem. When you start the gui, it is running in one thread. Lets call that GUI_Thread so we know what we are talking about.
    Since java is task-based this will happen if you do like this:
    1. Button "Start" is pressed. Thread running: GUI_Thread
    2. Event gStart_ActionEvents() called. Thread running: GUI_Thread
    3. Method IzvajajNeprekinjeno() called. Thread running: GUI_Thread
    4. Sleep in method IzvajajNeprekinjeno() on thread GUI_Thread
    5. Call PreberiDat(). Thread running: GUI_Thread
    6. Check status. If == 1, go tho 4. Thread running: GUI_Thread.
    Since the method IzvajajNeprekinjeno() (what does that mean?) and the GUI is running in the same thread and the event that the Start button has thrown isn't done yet, the program will go on in the IzvajajNeprekinjeno() method forever and never let you press the Stop-button.
    What you have to do is do put either the GUI in a thread of its own or start a new thread that will do the task of the IzvajajNeprekinjeno() method.
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    This tutorial explains how to build a multi threaded gui.
    /Lime

  • Memory Problem With 4gb Crucial Ballistix and Asus M4A785TD-V EVO

    motherBoard: ASUS M4A785TD-V EVO
    bios Version :2005
    Video: amd hd5750
    Processor: AMD PHENON II X2 550 3.100MHZ
    Memory: Crucial
    Modele Memory: blt4g3d1608dt1tx0
    Capacity: 4GB
    greetings to all
    i have asus m4a785td-v evo mobo. i ve bought 4 gb crucial ballistix ram today. it says on product its 1600 mhz and cl8 but it shows on my pc 1333 mhz and cl9.  when i was searching for this problem i came across this topic: http://forum.crucial.com/t5/Crucial-Ballistix-gaming-memory/Memory-Probleme-With-8GO-Crucial-Ballistix-and-Asus-M4A785TD-V/td-p/9464 can i apply the same settings? how can i fix that?  is it possible via bios settings? thx in advance and sry for my bad english. here is some screenshots: 

    I am not good at RAM setting but the 'Timings Table' shows there is XMP-1600 profile available so I believe it would be enough to turn on that memory profile in BIOS.

  • I have problem with syncing in itunes and it stared since i installed new version of itunes.it stuck in backup step for houres.what shud i do?

    I have problem with syncing in itunes and it stared since i installed new version of itunes.it stuck in backup step for houres.what shud i do?

    So, in iTunes, when you look at the shuffle's content (in the sidebar) and click on the playlist under the shuffle, over to the right, the songs are in your desired order, correct?  Where do you look, or what do you do, that indicates the playlists are in alphabetical order?  Are you saying that when you play the songs while using the shuffle, they play in alphabetical order?
    If so, when you listen to the songs on the shuffle, are you using the playlist, or are you using the All Songs list? If you are in the default All Songs list, with the shuffle's power switch set to play-in-order (the middle position), the songs play alphabetically, I believe. 
    The 3rd gen shuffle uses VoiceOver.  If you are in the All Songs list, you need to use VoiceOver to switch to the playlist (see manual linked below for details).  When you are in the playlist (with the shuffle's power switch set to play-in-order), then the songs should play in playlist order.
    There are more details in the manual for the 3rd gen shuffle, which is online here
    http://manuals.info.apple.com/en_US/iPod_shuffle_3rdGen_UG.pdf
    See page 22 for the section about setting up and using VoiceOver.  The part about switching playlists starts on page 23 (Using the Playlist Menu).

  • TS1646 hello  I have problem with regist my visa and I cannot buy from store the message came in the end of form is says the phone number must be a 7-digit number and I have writed but not accepted iam from saudi arabia my mobile is 966504850992 pls answe

    hello 
    I have problem with regist my visa and I cannot buy from store
    the message came in the end of form is says
    the phone number must be a 7-digit number
    and I have writed but not accepted
    iam from saudi arabia
    my mobile is 966504850992
    pls answer
    thanks
    dfr aldossary

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

Maybe you are looking for

  • How do I make multiple fields dependent on a checkbox?

    I've got about 10 fields in an adobe form that I want to appear and be accessible if a checkbox is checked.  If the checkbox isn't checked, then I don't want them accessible or visible.  Is this possible?

  • How to get confirm working.

    I am trying to use a confirm to get a reply from the user ( YES, NO ) If the user selects YES then I need to take them to the first record. If they select NO then I need to proceed with the rest of the code. How can I do this?????

  • Need help with the Modulation Toolkit to configure a QPSK Modulation

    Hi! I'm trying to build a CDMA system with the Modulation Toolkit to use it later with a PXI-RF Product as a part of my thesis (I don't remember the exact model number because it's in my university and I'm home right now, sorry). But my problem right

  • Database Initialization Parameters Removal list 9iR2

    I have seen Oracle Metalink Document: Database Initialization Parameters and Configuration for Oracle Applications Release 11i Doc ID: Note:216205.1 https://metalink.oracle.com/metalink/plsql/f?p=130:14:654135795036791041::::p14_database_id,p14_docid

  • Approver SAP ID for purchase requesition

    Dear team, I have approver workflow for Purchase Requesition, now I want to pull the history of PR from 2012 to 2015 current month. Here main requirement is the approver name who has approved the PR, but don't find any standard report or table where