Another jsp debug question

I now of the technique to use a script (javac -g $*) as the
          weblogic.jsp.compileCommand context-param name in a web application but
          this does not appear to be working on WL 5.1 sp6 on linux
          The following error message occures when WL attempts to compile a JSP
          Wed Dec 13 19:07:19 GMT+00:00 2000:<E> <WebAppServletContext-consumer>
          Compilation of
          /home/jamie/2020me/workspace/R0.5/src/web/consumer/WEB-INF/_tmp_war/consumer/_login/_consumer_login.java
          failed:
          Warning: UNIXProcess.forkAndExec native error: Exec format error
          java.io.IOException: Compiler failed
          executable.exec([Ljava.lang.String;[javac_debug.cmd, -classpath, <<my
          classpath here>>,  -d,
          /home/jamie/2020me/workspace/R0.5/src/web/consumer/WEB-INF/_tmp_war,
          /home/jamie/2020me/workspace/R0.5/src/web/consumer/WEB-INF/_tmp_war/consumer/_login/_consumer_login.java])
          at java.io.IOException.<init>(IOException.java:49)
          at
          weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:439)
          at
          weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:245)
          at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:300)
          at
          weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
          at
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:141)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
          at
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
          at
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
          at
          weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
          where <<my classpath here>> has been replaced here for clarity and
          javac_debug.cmd is the debug script (javac -g $*)
          The script is definetly in the path since I get a "not found" exception
          if I remove it
          Any insight would be greatly appreciated
          Thanks
          Jamie
          

Thanks Ganesh,
One of the link you provided had resolved my issue with debugging.  All I did is remove the below two entries from portalapp.xml file
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="pagelet/InitialPage.jsp"/>
These 2 entries are created by default for JSPDynPage components by the wizard in NWDS SP9.  I don't know if this is same in later releases.
I can debug now.
Thanks
Siva

Similar Messages

  • Another VCafe debugging question

    NT 4 SP5, WL 4.5.1 (no service pack), Weblogic running under Visual Cafe
    3.0c DB edition with Sun JDK 1.2.2 as the plugin VM. I can start the
    weblogic server and debug servlets and the stateless session bean example
    (basic/statelessSession) all without leaving Visual Cafe just fine. However
    I can't debug the entity bean using the same setup. Here's the server side
    error. Any comments will be appreciated.
    Mon Nov 15 20:20:49 PST 1999:<I> <EJB> Transaction: '942725939528_2' rolled
    back due to EJB exception:
    java.lang.NoClassDefFoundError: examples/ejb/basic/beanManaged/AccountBean
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:241)
    at weblogic.ejb.internal.EJBHomeImpl.allocateBean(EJBHomeImpl.java:265)
    at weblogic.ejb.internal.BaseEJBContext.<init>(BaseEJBContext.java:60)
    at
    weblogic.ejb.internal.EntityEJBContext.<init>(EntityEJBContext.java:27)
    at weblogic.ejb.internal.Freepool.allocateEJBContext(Freepool.java:53)
    at
    weblogic.ejb.internal.EJBHomeImpl.allocateEJBContext(EJBHomeImpl.java:256)
    at
    weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulEJBObjec
    t.java:91)
    at weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:174)
    at
    examples.ejb.basic.beanManaged.AccountBeanEOImpl.create(AccountBeanEOImpl.ja
    va:42)
    at
    examples.ejb.basic.beanManaged.AccountBeanHomeImpl.create(AccountBeanHomeImp
    l.java:59)
    at
    examples.ejb.basic.beanManaged.AccountBeanHomeImpl_WLSkel.invoke(AccountBean
    HomeImpl_WLSkel.java:93)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
    pter.java:261)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
    r.java:49)
    at
    weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(B
    asicRequestDispatcher.java:163)
    at weblogic.t3.srvr.ExecuteThread.run(ExecuteThread.java:106)
    Vamsee

    Vamsee Lakamsani <[email protected]> wrote in message
    news:80qlr6$am$[email protected]..
    NT 4 SP5, WL 4.5.1 (no service pack), Weblogic running under Visual Cafe
    3.0c DB edition with Sun JDK 1.2.2 as the plugin VM. I can start the
    weblogic server and debug servlets and the stateless session bean example
    (basic/statelessSession) all without leaving Visual Cafe just fine.However
    I can't debug the entity bean using the same setup. Here's the server side
    error. Any comments will be appreciated.This does not happen for the beans that are part of my app (which
    incidentally are not located in <WeblogicHome>/myserver/serverclasses). So
    I 'm more than willing to ignore this error and move on.
    Vamsee

  • How to invoke a jsp value to another jsp

    Hi i have a problem on how to invoke a jsp page from jsp page.
    I have this function in index.jsp:
    <script language="JavaScript">          function price(){           window.location="search_date.jsp" + document.forms['test'].getElementById('price');           }          </script>"document.forms['test'].getElementById('price'); " are getting the values from another jsp (search_date).
    <div class="tabbertab" title="Price" id="price"><h2>Tab 2</h2><p> <form name="test">There are three tabs in search_date jsp, the above codes are for price tab.
    Im going to click on an image link in index.jsp, it will direct me to the price tab instead of two other tabs. How can i achieve this?
    Thanks,
    tiffany

    This appears to be more of a javascript than java/JSP question.
    If you are trying to pass a parameter to the jsp search_date.jsp, you need to follow the standard syntax for parameters , with ? for the first and & for any subsequent ones..
    ie
    search_date.jsp?firstParam=1&secondParam=2
    so possibly you meant:
    window.location="search_date.jsp?myParam=" + document.forms['test'].getElementById('price');
    However I am not sure.
    What is clicking on this image link supposed to do?
    Are you wanting to reload a page, or just show hide things without reloading?

  • Open another JSP in same window

    Hello. I am new to JSP. I have the following basic
    question:
    How do I open another JSP in the same window when a button is clicked?
    Please include code.
    Thanks in advance,
    Alexander.

    There is an easier way to do this
    that doesnt limit you to a form submit
    button. Remember that jsp is just a
    way of getting a servlet to send dynamic
    html back to a browser as a response.
    So in that case, anything you include
    on the .jsp page that's not surrounded by
    the declaration, expression, directive or
    scriplet tag will be will be included in the
    response sent. This includes regular html
    and also javascript. So why not use js!
    The following code lets you open any type
    of file (including .jsp) in any sort of window
    that you want:
    function newWindow (jspPage){
    popup=window.open(jspPage,"","toolbar=yes,menubar=no,width=600,height=400,resizable=yes,scrollbars=yes")
    Then on your page you put a link such as:
    Click here for new window
    This is set up to work with a link but you can also have
    it work with a button.(ignore the link, the jsp forum server
    does that automatically)

  • Waiting for another JSP to end.

    document.dados.action = "exists.jsp?familia="+familia;
    document.dados.submit();
    alert('After ');the problem is that when I execute this peace of code the exists.jsp runs AFTER
    alert('After '); this one...
    But I wanted to do that alert before this...
    I belive the question is: how can I wait in my jsp for another jsp to finish running?
    Can you help me?
    Thanks in advance.
    Jos� Neves
    Edited by: Jose_Neves on Jul 30, 2008 5:00 AM

    Here is a link with the monthly fees:
    http://www.apple.com/iphone/easysetup/rateplans.html
    You would be forced to select one of these plans and pay for the actiavtion as well as the first month up front. With the cheapest plan this will be a little over $100.

  • JSP Portlet posting information to another JSP

    Hi,
    I have a JSP portlet that needs to submit form information to another JSP that is not a portlet.
    I'm not sure how to do this. The parameter passing examples pass information from one JSP portlet to another JSP portlet. I want to pass information from a JSP portlet to another JSP which is not a portlet.
    Do I use:
    <form name="parameters" method="POST" action="<%= HttpPortletRendererUtil.htmlFormActionLink(request,PortletRendererUtil.PAGE_LINK) %>" >
    <%= HttpPortletRendererUtil.htmlFormHiddenFields(request,PortletRendererUtil.PAGE_LINK) %>
    If so, what does the PAGE_LINK stand for? How do I tell it the name of the JSP that I want it to submit to?
    Is there something else I need to be using?
    Thanks....JS

    I try to answer your questions inline.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Julie Steele ():
    Thanks for the info but....
    Let me add more information....
    We have 2 JSPs, the first being a form input JSP that I have made into a portlet. We want to submit the information from this form to another JSP that will do the insert into the database and return a insert successful message. We want that message to be returned to the form input portlet and displayed in that portlet. We can't pass parameters in the url because it would be way too long.
    <HR></BLOCKQUOTE>
    As I see in your first message you're using POST method for submitting the form. If so, you don't have to worry about the length of the parameters, as far as I remember there are no limits.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Do I need to make the receiving JSP a portlet also and will that work since it is only showing the results of a post?
    <HR></BLOCKQUOTE>
    You don't need to portletize it just because of technical reasons; but you may portletize if you're having concerns that the navigation leads out of the portal.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    How can we accomplish this? Do you have an example? I really do want to know what the PAGE_LINK stands for and how it's used?<HR></BLOCKQUOTE>
    There is a parameter passing example and an article "Understanding the Parameter Passing JSP Sample" at http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.parameter.passing.html .
    Do you have any other example in mind you're looking for?
    As far as I understand the key is how you navigate back from your standalone JSP to portal. Do you have a submit button there? Or do you want to redirect the browser after a given interval?
    You may also want to have a look at the multipage example portlet in the PDK that demonstrates how you can display multiple JSPs in the same portlet.
    Regards,
    Peter

  • Hot swap and JSP debugging for Weblogic in exploded format?

    Hi,
    I'm trying to use JDeveloper for JSF development to be deployed to a weblogic server.
    I must say JDeveloper is a great tool for JSF development as none of the free IDE in the market can do what JDeveloper does.
    However, I have a question on hot swap and JSP debugging.
    I have managed to setup JDeveloper to debug my JSF application deploy to my Weblogic server's applications folder in exploded format.
    I can step through the java code.
    However, I didn't manage to do a hot swap and the break point set in the JSF-JSP does not seems to take effect.
    I would appreciate any advice on the problem.
    Thanks.
    Han Ming

    How did you setup the server to handle exploded format? Appreciate the help. Sorry can't help with your question though.
    Thnx.
    Soni

  • How to use session to passing data from one JSP to another JSP

    Dear All, I had create 2 jsp web page and want to do this:
    1. input some data into the text box and click the submit button, the jsp page
    will open another jsp page and send the text box data to the new open jsp page.
    can any one tell me how to open a new jsp web page and reciev data from another jsp page?
    thanks yu very much!
    the question.jsp got some code like:
    <html>
    <input type= 'text' name = 'txtName' size = 10 >
    <input type= 'submit' name = 'submit'>
    <% some jsp code %>
    </html>
    answer.jsp
    <html>
    <%
    some jsp code here
    %>
    </html>

    Contents of HTML forms are transmitted as name-value pairs, so you can call request.getParameter(String name) with your form field's name in order to access its value:
    String textValue=request.getParameter("txtName");Regards

  • How to check a window is open in another jsp

    Hi everyone,
    i have a tricky question trying to solve this..
    in jsp1,"onClick" of link im opening in a new window
    href="#" onclick="JavaScript:popupOpen('<%=URLString%>','winName1');"><%=strName%></a>
    function popupOpen(winURL,winName) {
    winName1 = window.open(winURL,winName);
    in jsp1or jsp2 or jsp3 i have a logout link at the top of the page,when i click logout link in any jsp it redirects to logout page and i also want the window which is opened to goto logout page with URL.
    how can i do this,
    how to check a window is open or not in another jsp and if that window is open open with logout URL.
    Help needed
    Advance Thanks to all

    vveena123 wrote:
    can u explain what the below code does?Isn't it self-explaining? Geesh. Move on to a Javascript forum. Now.
    where to mention it??At the moment that you want to open the window and at the moment that you want to close the window. Isn't that obvious enough?

  • How to pass information from one JSP to another JSP? help please

    hi there
    my question is how to pass some information such from one JSP to another one. for exmple, on one page there is a form, and i need to pass some values from the form to another jsp, or some values that were calculated on one JSP and need to be passed to another one. thanks

    You can do this in several ways...here is a simple one...
    When you call the second page url, use this
    http://www.mysite.com?myVariableFromPageOne="hello"
    on the second page use this:
    String firstPageVariable = request.getParameter("myVariableFromPageOne");
    Thanks

  • How can i get the values from one JSP to another JSP

    Hi All,
    I am very new to JSP technology, I have one jsp having radio button, i want to accecc the state of this radio button to another JSP page, How can i do this.
    Could anybody help me.
    with Regards
    Suresh

    Try page import <%@ page import ="index.jsp" %> or include <%@include file="index.jsp" %> methods perhaps they might work.

  • How can I link to a jsp page from another jsp page within websphere portal?

    Afternoon all,
    I have a websphere portlet which displays a jsp page. I want to put a hyperlink on the jsp page which when clicked will open another jsp page.
    Does anyone know how to do this?
    Thanks,
    Alex

    The anchor tag is the correct one for generating clickable links.
    <jsp:forward> is for transferring control at the server end. Its when you decide to change which page you want to show the user. ie check user is logged in. If not then forward them to login page, else display current page.
    I tried that. It does open the jsp page
    but the place and page links in the portal theme get screwed up.Whats mucked up about them? Do they point where they shouldn't?
    You might try using a <base> tag to set where relative links are resolved from.
    Cheers,
    evnafets

  • HOW TO CALL A JSP METHOD FROM ANOTHER JSP

    Hi all, I have to JSP1 and JSP2 and i would like to call a method of JS1 from JSP2. Is that possible ??
    Example:
    JSP2 Code
    somewhere in the code ...
    String s = JSP1.getName();
    out.println("EL NOMBRE ES " +s );
    thanks in advance for your help

    No, it is not possible. Infact you cannot write your own methods in JSP. What ever you write in a jsp page is part of _jspService() method. Secondly how can you instantiate another class(generated by JSP), until or unless you know the name of the class that resulted from your JSP. Your JSP page is first converted into .java file which is stored in some package e.g.
    pagecompile.jsp._yourJSPfile.
    I couldnot understand why you need to invoke a method of another JSP in your JSP.
    Hope this helps

  • How to pass a variable in a servlet to another jsp file?

    The variable that I wanted to pass is in a doGet function....
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.net.*;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    public class www extends HttpServlet
         public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException     
        {try{
             String code = request.getParameter("Text");
             String current;
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
                URL yahoo = new URL("http://www.yahoo.com"+request.getParameter("Text"));<<not the actual
                URLConnection yahooConnection = yahoo.openConnection();
                DataInputStream dis = new DataInputStream( yahooConnection.getInputStream());
                String inputLine;
                String whole=null;
                int startPos,endPos,a,b,c,d,e;
                while ((inputLine=dis.readLine( ))!= null) {
                whole+=inputLine;
                dis.close();
                    a=whole.indexOf("Previous Close",0);
                    b=whole.indexOf("Previous Close",a+1);
                    c=whole.indexOf("Previous Close",b+1);
                    d=whole.indexOf("Previous Close",c+1);
                    e=whole.indexOf("Previous Close",d+1);
                    startPos = whole.indexOf("right>",e) + 6;
                    endPos = whole.indexOf(">",startPos) -4;
                       current=(whole.substring(startPos,endPos));
                        out.println(*current*);
                catch (MalformedURLException me)
                        System.out.println("MalformedURLExc eption: " + me);
                catch (IOException ioe)
                        System.out.println("Exception: " + ioe);
    }The String CURRENT is the one that I wanted to pass to another jsp file.....Or How can I call that Current in another JSP file?
    An Alternative is I wanted to directly input that String CURRENT in a mysql Database using jdbc but I dont know how to do that.....THANKS!
    Edited by: tr3k on Feb 22, 2008 12:40 AM

    If used this but it returns
                       current=(whole.substring(startPos,endPos));
                        out.println(current);
                        HttpSession session = request.getSession();
                        session.setAttribute("current", current);
                                  out.println("<form action = \"mVal_pass.jsp\" method= \"post\">");
            out.println("Update current Market Value of "+code+"?<p>");
              out.println("<input type=\"submit\" value=\"submit\">");
            out.println("</form>");This is my JSP page which supposed to be is getting the value of String CURRENT
    <HTML>
    <HEAD></HEAD>
    <BODY>
      <% String codek = request.getParameter("current");%>
    <%out.println(codek);%>
    </BODY>
    </HTML>I am getting the value of String Current but when I passed it, it returns NULL value...Help guys!

  • How to get another jsp by clicking a h:commandLink in jsf page

    Hi,
    I am new to JSF. pls send sample code me how to get another jsp by clicking a commandLink in jsf.
    SUB: TO go to the page "report7.jsp"
    -->By getting help from samples i wrote for above in 2 ways.
    1)
    <td><h:commandLink id="RO0007" action="r7" >Sharing of Information from Foreign FIU</h:commandLink></td>
    and in <reports-config>
    <navigation-case>
    <from-outcome>r7</from-outcome>
    <to-view-id>report7.jsp</to-view-id>
    </navigation-case>
    2) Sending request through bean method
    <td><h:commandLink id="RO0007" action="#{RBean.report7()}" >Sharing of Information from Foreign FIU</h:commandLink></td>
    in RBean the method form is
    public String report7(){          
         return "r7";
    and in <reports-config>
    <navigation-case>
    <from-outcome>r7</from-outcome>
    <to-view-id>report7.jsp</to-view-id>
    </navigation-case>
    Some problem in both i think as it is not going to next page. i need to go to th next page by calling Bean Method.
    please get me out of this problem. It is very urgent. Thank you.
    **************************************************************

    What error is it throwing? If it is throwing a Page not found, then maybe you should try mapping to "report7.faces" instead of "report7.jsp"
    Can you post your faces-config please

Maybe you are looking for

  • How to Read a External File in a livecycle form (using javascript)

    Hi Everyone,    First of all, i would like to thank you in advanced for your help !!    I have a situation were i need to load some values into some fields inside a dinamic pdf that was created in livecycle, what can i do so far ?    I can load the f

  • Displaying header and line items

    Hi, i) i have a fieldname i.e text and its value to display in the bodypage  (body).. i want to display the text and its value only if the value is there.. otherwise it should not be displayed and a blank line also should not appear in smartforms we

  • Trying to understand  app info size vs package contents info size

    Help needed with a basic question: The disk space size shown in the info panel for an app: What is it a measure of? Does it represent, and should it be the same as, the size of the app's package contents folder? I have several apps whose sizes shown

  • Pdf/convert html to pdf butoon option

    Hello I have 2 pages menu page and act_citywide Menu page has a menu to select pdf or other 2 option. and a button. Act_citywide has the query and action. I wish to create a button that will have a convert to pdf as opposed to these option of radio b

  • HT1689 how to I check my account for billing charges

    I chagrge appeared in my bank acount and I know my four year old was on my phone just would like to know what is was shoud be simple right Wrong How do I pull up my account charges within apple