Debugging jsp dynpage

I wish to debug a JSP dynpage project.
For that I selected Debug perspective and then Create Manage and Run Configuarations. There I selected Remote Java application.
I get a message "Failed to connect to remote VM. Connection refused".
I entered localhost and 5000 as port. Is there any problem with it?

Hello Prem,
You should start your J2EE-Server in Debug mode to be able to debug:
Steps to follow to start J2EE-Server in Debug mode
1. Run ConfigTool "configtool.bat" which is under path "C:\usr\sap\J2E\JC00\j2ee\configtool\configtool.bat"
2. In ConfigTool goto -->
cluster-data>instance_ID*****>server_ID******
then on the right details-window, goto Tab "Debug".
Select the check box "Debuggable" and Check box "Enable debug mode" and set a "Debug port" generally 50021.
Now restart server and try connecting to the remote VM with your Debug port.
Greetings,
Praveen Gudapati

Similar Messages

  • How to have a popup in Jsp Dynpage

    Hi All,
    I am having a JSP dynpage project working fine.
    I now need a popup on click of a button in a iview (JSP).
    I created a complete new JSPDynpage component with Bean etc.
    I use the below code
    window.open('project.componentname') to have a popup.
    and in portal. xml I define the properties ComponentType & JSP.
    the window pops up but with error at all times even for a blank JSP,
    your help would be well apprictiated at this stage of my project situation.
    I need a popup window where that popup is not just a confirm message but a process with several events and DB access.
    Thanks in advice,
    blsaiue

    Hi
    Avaialable controls in JSP Dynpage technologies.
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/55074155bcf26fe10000000a1550b0/frameset.htm
    Regards
    -SS

  • How to put the trace messages in JSP DynPage

    Hi,
    How to put the trace messages in JSP DynPage components. What settings I need to do and where do I see the trace log.
    Can I also print the values of some variables in trace. If yes, how to achieve this?
    Thanks in advance,
    Regards,
    Madhu

    Hi Madhu,
    for NW04 see http://help.sap.com/saphelp_nw04/helpdata/en/e2/75a74046033913e10000000a155106/frameset.htm
    as well as
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/using logging and tracing on the sap web as java.pdf
    Hope it helps
    Detlev

  • Custom loading image JSP dynpage

    Hello,
    Wa have created a jsp dynpage, and want to show a custom loading image. I other applications (appintegrator) we have succesfully changed the loading image by exporting the theme that we are currently using, change the loading_ani.gif image and re-importing the theme. This change has no effect on the loading image of the JSP dynpage, it is still the one supplied by SAP. I checked the url of this image and got the following https://host:port/htmlb/mimes/common/loading/loading_ani.gif, so I tried changing the loeding image that is stored in the htmlb par file, but there was no visible result when loading the application, or when loding the direct url of this image. Can anyone tell me where I can change the loading image of the JSP dynpages?
    Kind Regards
    Timon Van Soom

    Juhi Bhatnagar
    Greetings!!!
    May i know , what is the procedure need to be followed to replace the default Loading ICON with our custom image.
    2. Does our custome image should be a image file (like jpg, png) or its like a command
    Kindly share the procedure for this...
    Appreciate your response in advance'
    Thanks

  • How to create a jsp dynpage

    Hi,
    Please tell me how to create a jspdynpage in netweaver.
    Please give me detailed steps

    Hi,
    you will get many documents if you search in sdn or help.sap.com.
    here are some sample threads /applications
    Application in JSP DynPage
    Jsp dynpage help
    tutorials of dyn pages and jsp dynpages
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e51ec90-0201-0010-adbe-cacdbb88f3b8
    http://help.sap.com/saphelp_nw70/helpdata/EN/83/4baa42cdccda11e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/f5/cfa441cd47a209e10000000a155106/frameset.htm
    regards,
    Pradeep

  • JSP Dynpages

    I created a JSP Dynpage via NWDS.
    based on the sampples at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/19/4554426dd13555e10000000a1550b0/frameset.htm">SAP Help Creating the JSPDynPage</a>
    When I run it, I got the error:
    Error in parsing taglib 'tagLib' tag in web.xml or .tld file of the taglib library..
    Any point where I can start looking? Is anyone having a better documentation to look at than this rather puristic description?

    Thanks for your input.
    Do you have any specific links for JSPDynpages? Since most of the DevStuff is about WebDynpros, which I don't plan to use here.
    I updated portal.app, but I am not sure if it is right:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
        <property name="SharingReference" value="htmlb"/>
      </application-config>
      <components>
        <component name="log2UME">
          <component-config>
            <property name="ClassName" value="log2UME"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/log2UME.jsp"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    and the jsp page:
    %-- OutputText.jsp --%>
    <%@ taglib uri= "tagLib" prefix="hbj" %>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
          <hbj:textView
                    id="welcome_message"
                    text="May the force be with you unknown user"
                    design="HEADER1" />
       </hbj:form>
      </hbj:page>
    </hbj:content>

  • Difference between abstract portal component ,dynpages and jsp dynpage

    Hi All,
    I am new to the SAP world.Can you help me out in finding the difference between abstract portal component ,dynpages and jsp dynpage in Portal development.Please send me  any information.

    Hi,
    Welcome to SDN Community
    This blog will brief you the differences between them,
    Java development methodologies (Part II)
    Regards
    Srinivasan T

  • External Jars in JSP Dynpage

    Hi,
    I have implemented reading an XML feed in a Java program using informa api.
    In NWDS, I created a Java Project. And as required added 3 externals jar files.
    I had to import the following:
    import de.nava.informa.core.ChannelIF;
    import de.nava.informa.core.ItemIF;
    import de.nava.informa.impl.basic.ChannelBuilder;
    import de.nava.informa.parsers.FeedParser;
    The program works on run.
    But when I creat a JSP DynPage and I add the follwoing lines:
    <%@ page import = "de.nava.informa.core.* "%>
    <%@ page import = "de.nava.informa.impl.basic.ChannelBuilder "%>
    <%@ page import = "de.nava.informa.parsers.FeedParser "%>
    I get an error: Error occurs during the rendering of jsp component. Even in this project I added external Jar files in the same way.
    Any particular stuff need to reside on the server or something?
    Because I one tried implementing JCO in JSPDynPage by adding the external jar in the project structure and it worked fine.

    Hi Prem,
    Probably the jars you must have added in your last project would be available on the server or they would have been some server related jar files.
    But in the case when you are inclusing some external jars, you need to inclusde it both as "<b>External Jar</b>" and also add it to the <b>lib</b> folder (ie: just copy and pate the jar files in the <b>lib</b> filder).
    <b><a href="http://img142.imageshack.us/img142/8168/solution4gy.jpg">Put the .jar file here</a></b>
    I hope this solves your problem.
    Regards
    Pravesh
    PS: Please consider rewarding points if helpful and solved.

  • JSP Dynpage not rendering UI

    Hi..
    I have a HTML page that refers to some javascript files to render a table view for a calendar .The html page along with the Javascript files are put together in one folder.
    The HTML renders the Calender UI when run from the local system.
    Now i have created a JSP Dynpage application and given proper reference to the  javascript files from the JSP.
    I created an iview out of this. But on preview the Calendar UI is not rendered.Its all a blank page.
    Please suggest as to what could be missing in the application or any possible reasons for this not working.
    Regards
    Smita

    Chandramohan,
    By JSP Page are you referring to JTF JSP page or an OA Framework page. In either case if sometimes the page is not coming up it might be related to the initialization logic/instance/data. Please check on these fronts.
    Regards
    Sumit

  • How to debug jsp program

    Thanks,
    I havenot used Oracle before I know that
    you could debug JSP in Visual Age for Java,
    but where could we debug jsp code,
    thanks,
    null

    You can debug JSPs and Servlets in JDeveloper locally in the IDE itself, or remotely.
    To debug locally within JDeveloper, simply place breakpoints anywhere in the source code and choose Run | Debug from the main menu. The JSP is run using Oracle's Web-to-Go server.
    Remote debugging requires a little more setup. See the online help for more information.

  • Debugging JSPs using Visual Cafe

              I am using WL 5.1 and trying to figure out how to debug JSPs using Visual Cafe 4.0.(Enterprise Edition). The JSP file is running fine if I use plain "javac" for compilation. If I change the compiler to include -g option (for debug), I get the following error.
              Thu Aug 31 15:46:37 CDT 2000:<E> <ServletContext-General> Servlet failed with Exception
              java.lang.NumberFormatException: error=2
              at java.lang.Integer.parseInt(Integer.java:409)
              at java.lang.Integer.parseInt(Integer.java:458)
              at weblogic.servlet.jsp.JspStub.compilePage JspStub.java:303)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
              at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:92)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:168)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:99)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              weblogic.properties
              weblogic.httpd.initArgs.*.jsp=\
                        pageCheckSeconds=1,\
                        compileCommand=C:/VisualCafeEE/java2/bin/javac.exe -g,\
                        workingDir=C:/weblogic/myserver/classfiles,\
                        verbose=true
              If I don't use -g option, the page gets displayed correctly. Any help would be appreciated.
              Thanks
              Sree Pillai
              

    assuming you are running on Windows, you can use a .cmd file with the
              following command in it
              javac -g %*
              if you name it c:/java/bin/javac.cmd, then replace the line with
              compileCommand=C:/java/bin/javac.cmd,\
              Barry
              Sree <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am using WL 5.1 and trying to figure out how to debug JSPs using Visual
              Cafe 4.0.(Enterprise Edition). The JSP file is running fine if I use plain
              "javac" for compilation. If I change the compiler to include -g option (for
              debug), I get the following error.
              >
              > Thu Aug 31 15:46:37 CDT 2000:<E> <ServletContext-General> Servlet failed
              with Exception
              > java.lang.NumberFormatException: error=2
              > at java.lang.Integer.parseInt(Integer.java:409)
              > at java.lang.Integer.parseInt(Integer.java:458)
              > at weblogic.servlet.jsp.JspStub.compilePage JspStub.java:303)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
              > at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:92)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              > java:168)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > pl.java:99)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > textImpl.java:742)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > textImpl.java:686)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              > ContextManager.java:247)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              > a:361)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              >
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              >
              >
              > weblogic.properties
              > -------
              > weblogic.httpd.initArgs.*.jsp=\
              > pageCheckSeconds=1,\
              > compileCommand=C:/VisualCafeEE/java2/bin/javac.exe -g,\
              > workingDir=C:/weblogic/myserver/classfiles,\
              > verbose=true
              > --------------
              >
              >
              > If I don't use -g option, the page gets displayed correctly. Any help
              would be appreciated.
              >
              > Thanks
              > Sree Pillai
              

  • JSP Dynpage and Bean

    Hi there,
    I have developed a portal application using JSP Dynpage which calls R/3 BAPI but I have a strange issue here.
    This application calls BAPI and displays it using HTMLB table control.
    When returned values from R/3 are small, it is OK. The problem is when large amount of data comes from R/3, data is correctly displayed but Bean seems to be cleared after displaying it. Therefore if one clicks any button on the applicaiton, NullPointerException occurs due to null bean.
    Bean scope is "Application".
    Do you have any experience like this? Any input is appreciated!
    Regards,
    Kazuya

    At the moment there is a lot of ambigious information about this, and I've asked for some weblog tying it all together (see Bean scope storage confussion)
    You problem is that beans in the application scope can be deleted at anytime if the SAP J2EE needs memory. Try the session scope (or search the forums, lots of people have had the same problem before)

  • Hiding Label field in JSP dynPage

    Hi all,
    I am having an issue in Hiding/disabling  label field in JSP Dynpage application
    Works fine:
    <hbj:label  id="label_Input_US_Taxpayer_ID" text="<%= USTaxpayerID %>" required="FALSE" design="LABEL" labelFor="Input_US_Taxpayer_ID" />
    but as soon as I use enabled="FALSE" the code will crash..
    Gives ERROR
    <hbj:label  id="label_Input_US_Taxpayer_ID" text="<%= USTaxpayerID %>" required="FALSE" design="LABEL" labelFor="Input_US_Taxpayer_ID" enabled="FALSE" />
    what is the way to implement this ?
    Thanks !
    Asif

    @Nishant : label object does not have visibility property like input field
    (http://help.sap.com/saphelp_nw73/helpdata/en/4a/3fcf2580551014e10000000a42189b/content.htm)
    However we can enclose the lable field inside DIV object and use it's visibility property.for example
    <div id="area_one" style="display:none">
    <hbj:label id="label_Input_US_Taxpayer_ID" text="<%= USTaxpayerID %>" required="FALSE" design="LABEL" labelFor="Input_US_Taxpayer_ID" />
    </div>
    and then change the visibility in script function
    if (obj.style.display == "none")
            obj.style.display = "block";       
        else
            obj.style.display = "none";            
    Edited by: asif hirani on Mar 3, 2011 4:52 PM

  • Custom Personalization Dialog for JSP Dynpage

    Hi,
    i have a JSP Dynpage Component with the bean. i want to allow the user to personalize the iView when they click the "Personalize" in the iView Tray. So i have implemented doEdit() in the JSP Dynpage class and setting a JSP in the doEdit(). But in the portal the iView is not bringing any custom personalization JSP when i click "Personalize" in the iVIew Tray Drop Down Menu.
    doEdit() method wont work for JSP Dynpage ? is it only for Abs Portal Component ?
    Thanks,
    Saravanan

    Hi Saravanan,
    Hi Saravanan,
    JSPDynPage is more elaborate version of the DynPag. It creates a JSP file and, optionally, a Bean class.
    This means that the doProcessBeforeOutput methods are slightly different and there is an additional JSP file and an optional Bean class file. There are obviously other differences (such as the differences in the portalapp.xml file).
    Just check with a sample Portalapp.xml file:
    Ensure all the entries are made.
    <application>
      <application-config>
        <property name="releasable" value="true"/>
      </application-config>
      <components>
        <component name="BeginEPDevelopment">
          <component-config>
            <property name="ClassName" value="com.yourcompany.BeginEPDevelopment"/>
          </component-config>
          <component-profile>
            <property name="diplayHistory" value="10">
              <property name="plainDescription" value="BlogEntries"/>
              <property name="personalization" value="dialog"/>
            </property>
            <property name="diplayStyle" value="list">
              <property name="type" value="select[list,entries]"/>
              <property name="personalization" value="dialog"/>
            </property>
          </component-profile>
        </component>
      </components>
      <services>
        <service name="BeginEPDevelopmentService">
          <service-config>
            <property name="startup" value="true"/>
            <property name="className" value="com.yourcompany.BeginEPDevelopmentService"/>
          </service-config>
          <service-profile>
            <property name="BlogComments" value="Display"/>
          </service-profile>
        </service>
      </services>
    </application>
    Hope it helps you.
    Regards,
    Ponneswari.

  • JSP without JSP Dynpage

    Hi experts,
    I have one pretty straight forward question. Is it possible to create portal component using JSP but without JSP Dynpage and HTMLB tags? I know I can avoid HTMLB tags but is it possible to avoid JSP Dynpage also?
    Regards,
    Martin

    try using abstract portal component.
    As always you can use JSP dynpage and use simple jsp without HTMLB. try creating simple jsp file and use it.
    Cheers
    Yusuf

Maybe you are looking for

  • How do i create a new account but keep purchased songs

    i want to set up a different account for my kids but would like for them to keep the music they/we have already purchased.  How do i do that?

  • Oracle Connectivity in JSP using Tomcat 4

    Dear friends, After installing and configuring the Tomcat 4 I am able to run JSP and Servlats. But I am unable to connect to Oracle database (oracle 8i) using thin driver. Sample code is : <html> <head><title>Test JSP-JDBC</title></head><body> <%@ pa

  • InDesign document export to PDF

    I have an InDesign document 680+ pages. I've been exporting using Control E (Windows XP) for two weeks, and all works beautifully. Today, trouble! The export results in a PDF document with text that is darker, fuzzier, larger...a complete mess. Plus,

  • Code for calling the method at the same time

    Hi I have one of my java Bean where i wrote my logic for updating the data to DB and ......... I need to test this method with 2 simultaneous requests so that i can check for concurrency issues I need a piece of code which invokes my java bean method

  • Container Limit!!

    I have a problem with oracle application server. When I want to create a new OC4J instance there is no problem but when i want to deploy a new application to this instance, the system gives errors. I suppose that the source of the error is the number