Jsp (executing in one server not in other)

hi,
my jsp page is running in tomcat server but not in iplanet server, i am getting problem as below.can somebody help me. thanks in advance.
There was some problem with the jsp as it was not running on the server. I kept on getting the error
Server Error
This server has encountered an internal error which prevents it from
fulfilling the request. The most likely cause is a misconfiguration.
In the log I could find this
[30/Jun/2003:19:08:09] info ( 5253): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Invalid jsp:include tag
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at javax.servlet.ServletException.<init>(ServletException.java:68)
at org.apache.jasper.JasperException.<init>(JasperException.java:73)
at
org.apache.jasper.compiler.IncludeGenerator.<init>(IncludeGenerator.java:95)
at
org.apache.jasper.compiler.JspParseEventListener.handleInclude(JspParseEventListener.java:879)
at
org.apache.jasper.compiler.DelegatingListener.handleInclude(Compiled Code)
at org.apache.jasper.compiler.Parser$Include.accept(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at com.netscape.server.http.servlet.NSServletEntity.load(Compiled
Code)
at com.netscape.server.http.servlet.NSServletEntity.update(Compiled
Code)
at com.netscape.server.http.servlet.NSServletRunner.Service(Compiled
Code)
[30/Jun/2003:19:08:09] warning ( 5253): Internal error: Failed to get
GenericServlet.
(uri=/crux/compute_300603.jsp,SCRIPT_NAME=/crux/compute_300603.jsp)
my code is like this
(compute_300603.jsp)
<%@page contentType="text/html"%>
<html>
<head><title>JSP Page</title></head>
<SCRIPT>
</SCRIPT>
<body >
<%-- <jsp:useBean id="beanInstanceName" scope="session" class="package.class" /> --%>
<%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
<%boolean flag=true;%>
<% if (request.getParameter("fno")==
null && request.getParameter("sno")
== null) { %>
<CENTER>
<jsp:include page='top.jsp' />
<H2>Please enter two numbers</H2>
<FORM METHOD="POST" ACTION="compute_300603.jsp">
<table bgcolor='snow'>
<P>
Your First no: <input type="text" name=
"fno" size=10>
<P>
Your Second no: <input type="text" name=
"sno" size=10>
<P>
</TABLE>
</FORM>
</CENTER>
<% } else { %>
<CENTER><jsp:include page='top.jsp' /> </CENTER>
<%! int fno, sno ,total; String opr;%>
<%
try{
fno = Integer.parseInt(request.getParameter("fno"));
sno= Integer.parseInt(request.getParameter("sno"));
if(Integer.parseInt(request.getParameter("pro"))==1){
opr="Addition";
total= fno + sno;
else if(Integer.parseInt(request.getParameter("pro"))==2){
opr="Subtraction";
total= fno - sno;
else if(Integer.parseInt(request.getParameter("pro"))==3){
opr="Multiplication";
total= fno * sno;
else if(Integer.parseInt(request.getParameter("pro"))==4){
opr="Division";
try{
total= fno/sno;
}catch(ArithmeticException e){flag=false;%>
<center>
<b> <%= "Invalid Data entered" %> </b> <br>
<br> <b> Click here to reenter </b>
</center>
<%}
}catch(NumberFormatException e) {
System.out.println("NumberFormatException occured");
flag=false;%>
<center>
<b> <%= "Invalid Data entered" %> </b> <br>
<br> <b> Click here to reenter </b>
</center>
<%}%>
<%if(flag){ %>
<CENTER>
<H2>Please enter two numbers</H2>
<FORM>
<table bgcolor='snow'>
<P>
Your First no: <input ="text" name=
"fno" size=10 value="<%= fno %>">
<P>
Your Second no: <input type="text" name=
"sno" size=10 value="<%= sno %>">
<P>
</TABLE>
</FORM>
</CENTER>
<P>
<B>You have provided the following info</B>:
<P>
<B>First</B>: <%= fno %><P>
<B>Second</B>: <%= sno %><p>
<B>Operation Done</B>: <%= opr %><p>
<B>Your Total Is</B>:<%= total%>
<% }} %>
</body>
</html>
(top.jsp)
<html>
<head><title>JSP Page</title></head>
<script>
function formSubmitAdd(){
document.topForm.submit();
function formSubmitSub(){
document.topForm.pro.value=2;
document.topForm.submit();
function formSubmitMulty(){
document.topForm.pro.value=3;
document.topForm.submit();
function formSubmitDiv(){
document.topForm.pro.value=4;
document.topForm.submit();
</script>
<body>
<FORM name='topForm' action='compute_300603.jsp'>
<INPUT type=hidden name=pro value=1>
<input type=BUTTON value=Add onclick=formSubmitAdd();>
<input type=BUTTON value=Multiply onclick=formSubmitMulty();>
<input type=BUTTON value=Substract onclick=formSubmitSub();>
<INPUT type=BUTTON value=Divide onclick=formSubmitDiv();>
<%-- <jsp:useBean id="beanInstanceName" scope="session" class="package.class" /> --%>
<%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
</body>
</html>

It seems that the server detected an error on the
<jsp:include ..> tag.
Try replacing <jsp:include page='top.jsp' /> by
<jsp:include page="top.jsp" /> I have the same problem.. and this didnt work.. I also added flush="true". It works fine on tomcat but not on NES (netscape)
Any suggestions..?
Thanks..
Kamala

Similar Messages

  • JDBC with CLOB abnomally - shows on one server, not the other

    Hi have a problem.
    I recently moved a web application to another server. I copied over all the same java libraries I had on the first server.
    The web application queries an Oracle table - the table contains one CLOB field.
    When I query the table on the first server, I can see the contents of the CLOB.
    When I query the table with the other server, the query is empty for the CLOB field.
    This is the code I use to query the table. I have connection pooling set up within Sun Web Server. If it works on the one server, why would it not work with the other server? This is driving me crazy!!
    Any suggestions?
    try{
                // Get connection from configured pool
                initContext = new InitialContext();
                source = (DataSource) initContext.lookup("java:comp/env/jdbc/myDB");
                conn = source.getConnection();
                if(conn != null){
                    stmt = conn.createStatement();
                    result = stmt.executeQuery(sql);
                    rsmd = result.getMetaData();
                    while(result.next()){
                        Hashtable hash = new Hashtable();
                        for(int i = 1; i <= rsmd.getColumnCount(); i++){
                            if(result.getString(i) != null){
                                hash.put(rsmd.getColumnName(i),result.getString(i));
                            }else{
                                hash.put(rsmd.getColumnName(i),"");
                        returnValue.addElement(hash);
            }catch (Exception e){
                setErrors(e.toString());
                Email.sendMail("[email protected],"subject","Exception: " + e.toString() + "\nWith: " + sql,"fromname");
            }

    I tried that with this code:
    <body>
              <h1>
                   JSP Example
              </h1>
              <%
              Connection dbconn=null;
              ResultSet results=null;
              PreparedStatement sql=null;
              try{
                   Class.forName("oracle.jdbc.OracleDriver");
                   try{
                        boolean     doneheading = false;
                        dbconn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host.com) (PORT=1521))(CONNECT_DATA=(SERVICE_NAME=theserver.com)))","username", "password");
                        sql = dbconn.prepareStatement("SELECT * FROM BE_STATUS_EMAILS WHERE ID='42575'");
                        results = sql.executeQuery();
                        while(results.next()){
                             if(!doneheading){
                                  out.println("<table border=2>");
                                  doneheading = true;
                             out.println("<tr><td>" + results.getString("ID"));
                             out.println("<td>" + results.getString("RECEIVED"));
                             out.println("<td>" + results.getString("TYPE1"));
                             out.println("<td>" + results.getString("FROM1"));
                             out.println("<td>" + results.getString("TO1"));
                             out.println("<td>" + results.getString("CC"));
                             out.println("<td>" + results.getString("SUBJECT"));
                             out.println("<td>" + results.getString("MESSAGE"));
                             out.println("<td>" + results.getString("STATUS"));
                        if(doneheading){
                             out.println("</table>");
                        }else{
                             out.println("No results");
                   }catch (SQLException s){
                        out.println("SQL Error<br>");
                   }finally{
                        if(dbconn!=null)dbconn.close();
              }catch (ClassNotFoundException err){
                   out.println("Class loading error");
              %>
         </body>It produced the output, but again, the CLOB field was null. But when I query the database with that SQL using a database query tool, like Aquastudio, I can see the output. And if I run the stub on the other server, it works! This is nuts!!
    Any suggestions?

  • Using sjsws to host many small servlet/jsp sites on one server

    Hello. I visited the web page at http://www.sun.com/software/products/web_srvr/features.xml, which mentions that sjsws supports mass hosting of thousands of domains. Anyone knows more information about this feature? I want to find out whether sjsws is a good choice for hosting many small servlet/jsp sites on one server.
    Some time ago, I tried using apache+tomcat to host many small servlet/jsp sites on one server. But the result was not satisfactory. If a private tomcat/jvm is used for each site, too many resources are consumed and as a result, not many sites can be hosted on one server. If a shared tomcat/jvm is used for all sites, the resources consumed are reduced, but it becomes very difficult to isolate the sites. Is it possible to overcome such problems with sjsws?
    Thx.

    Of course you dont have to use multiple VMs to host multiple applications.
    You can either choose to have multiple Virtual Servers, all in one instance of the web server, serving multiple applications. In this case only one java VM is used.
    Or you can go in the route posted in the link above, in which there is only one "physical" virtual server, with many dynamic virtual servers.
    Whether you chose to have many multiple web applications, or do the server division in a similar way to what is described in the blog, it is up to you.
    Many different web applications will give you more fine level control on the application separation, but it will probably also mean greater resource consumption associated to the web application managing.
    Less web applications, but with dynamic separation, in a similar way to what is described in the blog, will give a lesser control on the applications, but will save you a good number of resources.
    SJS Web Server is known to work in massive web sites, with very high number of JSPs and Servlets. There is some real life examples of this massive hosting. Maybe others can provide some numbers here :P

  • MAXDB copy log file from one server to the other server.

    Hi All,
    I want to copy a log file from one server to the other server , the database is Maxdb and i don't know how to do it. I want to do it through command prompt, (set of commands required) the front end tool which we are using is DBM ( database manager). Please help.
    Regards
    M.A

    Hi,
    Basically, the process is of log shipping. Transferring logs from DC to DR system.
    For that, you can check HowTo - Standby DB log shipping - MaxDB - SCN Wiki
    This is script based. I have not done it but the idea remains the same.
    Regards,
    Divyanshu

  • I have CS6 and CC installed on my mac when I'm using CS6 and use bridge CC activates how can I set this to only work on one and not the other

    I have CS6 and CC installed on my mac when I'm using CS6 and use bridge CC activates how can I set this to only work on one and not the other

    If you want Bridge CS6 to open when using Photoshop CS6, you must quit Bridge CC.
    Then File menu > Browse in Bridge will bring up Bridge CS6.
    If Bridge CC is already open, The File > Browse in Bridge for Photoshop CS6 will use Bridge CC and Bridge CS6 will not open.
    I hope that's the answer you were looking for.
    Gene

  • Two email accounts, one password for both. will check one but not the other. Have had no problems before

    I have 2 email accounts for 2 people. TB will download mail for one but not the other. It can't authenticate the password. Passwords are both the same. Worked fine until today.

    The amount of information makes it somewhat hard to give a specific answer. I could only recommend:
    * Can you log into the account using the webmail service from your provider?
    * Have you verified the settings for the account to be correct (protocol, port number, password encoding)?
    The following page gives you a good start with resolving this issue:
    https://support.mozilla.org/en-US/products/thunderbird/fix-slowness-crashing-error-messages-and-other-problems/fix-problems-email-providers-gmail-yahoo-etc
    Hope this helps!

  • I have 2 iPod touchs and 1 computer. It will reconize one but not the other. How do I get it to sync music on both

    I have 2 older iPod touches and 1 computer. It will reconize one but not the other. How do I sync music on both?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Look at the dock connector on the iPod. Look for abnormalities like bent or corroded contacts, cracked or broken plastic.
    - Make an appointment at the Genus Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • HT5622 How do I set icloud on 2 ipads.It recognises one,but not the other one?

    How do I set up icloud on 2 ipads? It recognises one but not the other one.

    Hi Leora Beisly,
    Thanks for visiting Apple Support Communities.
    Before setting up iCloud on your devices, I recommend updating to the latest iOS software version. This will ensure that you can use all of the iCloud features on your devices. See this article for information on updating your iPads:
    Update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht4623
    Next, see this page for iCloud setup instructions:
    iCloud: Set up iCloud on your devices
    http://support.apple.com/kb/PH2609
    Before you can use iCloud on each of your devices, you need to sign in to iCloud using your existing Apple ID or a new one, then turn on the iCloud features you want to use.
    You may have set up iCloud on your iOS device or Mac when you first used it. To make sure it’s set up correctly, or to set up your iCloud account on another iOS device, computer, or Apple TV, go to the set up iCloud website listed below.
    Important: Be sure to use the same Apple ID when you set up iCloud on each device.
    Best Regards,
    Jeremy

  • I have 2 iPads, I can only download some apps to one device not the other one?

    I have 2 iPads, but can only download some apps to one and not the other?. How can I get the same app on both iPads?
    Thanks

    1. Make sure iPad is using the latest software
    2. Settings>General>Date and Time>Set Automatically>On
    3. Make sure Time Zone is correct
    4. Reset iPad. Hold the Sleep and Home button down until you see the Apple Logo.

  • Script works on one site, not the other... why?

    Could someone tell me why this prototype-based lightbox seems
    to work on one
    site but not on the other?
    I literally took the exact same .js & css files, copied
    them over from one
    site to the other, but it's only partially working on the new
    site.
    http://www.vilverset.com/sample.html
    And the original fully-functional one :
    http://www.roxanacampagiorni.com/
    Been troubleshooting this one for days, and I'm stumped.
    Script wants
    nothing to do with lightboxing HTML files on the new site.
    Only straight
    JPGs.

    "Michael Fesser" <[email protected]> wrote in message
    news:[email protected]..
    > .oO(Mark A. Boyd)
    >
    >>Strange. I don't think I've ever seen these headers
    before:
    >>
    >>
    http://www.vilverset.com/tn_posters.html
    >>POST /tn_posters.html HTTP/1.1
    >>HTTP/1.x 405 Method Not Allowed
    >>Allow: GET, HEAD, POST, PUT, DELETE, CONNECT,
    OPTIONS, PATCH, PROPFIND,
    >>PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK
    >>
    >>I suspect a server configuration - or version.
    >
    > I consider it a script problem. Why does it send a POST
    request instead
    > of GET? IMHO the server's response is correct, because
    it doesn't make
    > much sense to POST something to a static .html page.
    That's what I told a helper friend of mine, but he told me
    the POST is done
    by the server, not the JS files. That's why, according to
    him, he couldn't
    tell me what code to change in the .js files.
    But here they are, if you would be so kind as to tell me WHAT
    to replace
    with WHAT so the call is made properly. :-)
    http://www.vilverset.com/scripts/control.modal.2.2.3.js
    http://www.vilverset.com/scripts/effects.js
    http://www.vilverset.com/scripts/prototype.js
    Those are the 3 files needed for the script.
    Should I be banging on Dreamhost's door to fix something, or
    not? Because
    the exact same 3 files will render an HTML page just fine
    over on
    roxanacampagiorni.com.
    Which is the guilty party? The script, or the server config?

  • I have email on 2 pc's why is new emails showing on one but not the other

    I have one email account, but have it set up on 2 computers, new ones are coming through on one computer, not not on the other one,

    Are you using POP or IMAP?
    '''[http://kb.mozillazine.org/Menu_differences_in_Windows,_Linux,_and_Mac Tools|Account Settings]|{select the account}|Server Settings→Server Type''' will tell you.
    No menu? Press the <alt> key on your keyboard.
    If POP, you must set it to leave a copy of the messages on the server, otherwise the first computer to see them gobbles them up leaving the server empty.
    '''[http://kb.mozillazine.org/Menu_differences_in_Windows,_Linux,_and_Mac Tools|Account Settings]|{select the account}|Server Settings→Server Settings→Leave messages on server.
    If it's IMAP, then bear in mind that if you delete a message on any one computer/phone/tablet, it vanishes on the other computers/phones/tablets.

  • I bought a 5th Gen Touch. I use iTunes 12 on two computers. One computer allows me to drag and drop. The other does not.The one that allows it has problems. Any idea as to why I can drag and drop on one and not the other. Both are authorized.

    I bought a 5th Gen Touch. I use iTunes 12 on my two computers. I first connected the Touch to my desktop and it allows me to drag and drop mp3 files from my old Classic, which is backed up to a directory. Unfortunately, that computer has gone down before I got a chance to fill the Touch. I have the files on another computer but when I connect the Touch to it, it doesn't allow me to drag and drop the files. I have iCloud set on both systems and I have manual management check marked. I'm not understanding why it allows drag and drop on one PC and not the other when they are both set the same way. My question? What do I need to do to be able to drag and drop in iTunes 12? I didn't do anything special on the computer that allows it so I am at a loss.
    Thank you!

    Oh, also want to add that the PC I'm currently using is:
    Windows Vista Home Premium Service Pack 2
    My other PC was:
    Windows 7 Ultimate
    My MacBook is:
    Max OSX 10.5.something (the last update available for it. .8 maybe? haha)
    Not sure if this stuff is important, but I thought I'd add it.

  • 2 Apple TV's; Mirroring to one but not the other

    Help me Apple Communities you're my only hope.*
    I have 2 Apple TV's on the local network, bothe with Airplay enabled. One labelled AppleTV, the other labelled TV Upstairs.While I can happily stream music and video to both devices from iOS or the MacBook Pro, Mirroring is another matter.
    On my iPad 2 when I select Airplay to the Apple TV it comes up with the option for Mirroring. However selecting the TV Upstairs Apple TV does not provide this option, and only  sound output only, with quite a delay. The iPad 2 is iOS5, and both Apple TV's are latest stable release. The Time Capsule is upstair with the Upstairs AppleTV.
    Any ideas for this?
    * guess what I was testing video streaming with.

    I think you may be suffering from the same issue as many others in that case.
    The situation over the current update seems a little unsure at the present time.
    4.4 was released, it was then replaced by 4.4.1, which itself was removed and then made available again, it seems from the number of related post that it may have been removed again.
    Some posters are still reporting success by updating via iTunes but I can't confirm that these posts weren't simply referring to other times when the updates were available.
    I'd be inclined to sit tight and try again at a later time.

  • Running Totals, formula statement works one way, not the other

    Here is the problem in a nutshell...
    I am designing a report where I am using 2 running totals based on whether a SQL Stored Proc dataset field (text) is Null or Not Null...  So I design the 2 running totals and put this code in each "Evaluate"
    IsNull({usp_rpt_RemediationData;1.Action})
    - and -
    NOT IsNull({usp_rpt_RemediationData;1.Action})
    The FIRST one works.  The SECOND one does not - that is, it does not add a count for it.
    In other words, I am just cycling through a table and counting 1 field, checking whether its Null, or not.
    Why doesnt this rather simple and straight forward thing work!!!!????
    Any help would be most appreciated.

    The statement...
    NOT IsNull({usp_rpt_RemediationData;1.Action})
    DID NOT work when used as part of a running total - even adding the check for blank instead of just null (though the field is truly null).
    However, using the EXACT same statement in a formula written for running totals - it does work...?  Go figure...  I cant explain it.
    But thanks for the help!

  • 2 identical iPhones-Airprint works one, but not the other?!

    My husband and I both have iPhone 4S 32GB.  We're using an HP Photosmart 6510 which is both ePrint & Airprint ready.  Here's the problem:
    I can print via ePrint or Airprint, but my husband's phone will ONLY do ePrint.  I don't get it!  We have the printer and both iPhones on the same wireless network.  He even gets a message that his print job is sending/printing, but nothing prints.  I can Airprint the same file from the same e-mail and it works fine.  HP is useless...they just keep telling me to reboot the phone and/or reboot the printer.  This fixes the problem initially, but a day or two later, the same thing happens.  it's very frustrating and I'd really like a permanent fix for this.
    Can anyone help?!  Please?!
    Thank you!!

    Thanks for the feedback.  It's worth a try.  What's making me crazy is why would one phone work and not the other?  Rhetorical question, but still making me crazy. 

Maybe you are looking for

  • Internal Table in MIRO

    Experts, While doing IR in MIRO , i have entered a PO no . then the Line Items under this PO are getting displayed.in PO Reference Tab. Suppose there are 3 line Items . But i want to do IR for only 2 line items (whose Quality Inspection has been done

  • How do I install Photoshop Elements 10 on Mac

    I can't even figure out how to get started on this.  I bought the discs instead of downloading off of the internet.  When I pop the first disc in, an icon appears on my desktop.  Inside are folders with the titles: Adobe Photoshop Elements 10, Autoru

  • STPO(Stock Transfer Purchase Order) urgent

    Hi, I am working on a report about open STPO. I need pick up the PO data both in header and items level. Such as PO No., doc. date, item No.,delivery schedule (item detail infomation), DN No., DN Qty etc. if one item has one schedule line, there is n

  • Safari will not 'Quit'.

    I have to manually turn off the iMac.  OSX.10.6.8 is operating systme.  When I 'quit' Safari, the "Quit Safari" text under File goes gray, but Safari does not actually quit.  I can't shutdown (error message that Safari preventing shutdown).  I then h

  • Most popular iPhone to stereo speaker systems adapter/interface

    new to iPhone and I wonder what folks say about interfaces to use the iPhone for home audio and possibly video