Hotswap debugging in workshop 9

Hi,
I remember that in Eclipse 2 [with Weblogic 8.1 being launched from the IDE through a plugin] & Visual age (before I used Eclipse) I used to debug web applications in a very productive manner. When the application was being debugged I could fix the code and the debugger would start from the beginning of the current method and continue without me having to restart my web app right from the login screen all over again. From what I know it is a JDK1.4 feature.
I guess this is the functionality I am talking about -
1) http://java.sun.com/j2se/1.4.2/docs/guide/jpda/enhancements.html#hotswap
2)http://www-128.ibm.com/developerworks/library/os-ecbug/#N1015F
Look under the section "Hotswap Bug Fixing: On-the-fly" code fixing
Now why isn't this possible with workshop 9 ? What extra configurations need to be done to be able to do this?
regards
Srini

This seems strange; hotswap debugging should work with Workshop 9 (i.e. Eclipse-based Workshop). It's a low-level JVM feature; I have used it in Workshop before without problems. Do you have a specific use case for which it's failing? (Be aware that hotswap debugging only works if you change code <i>inside</i> the body a method; if you change the shape of a type (not just the public shape -- if you add a field or method you are changing the shape) the change can't be hot swapped).
-Gary Horen

Similar Messages

  • Debugging in Workshop

    I have a project that I am building using ant build based on the split development
    diretory structure. I am able to build the application from within Workshop.
    I can set breakpoints within Java but the debug menus are never enabled. I saw
    the post about setting breakpoints from within JSPs; however, I haven't been able
    to set a breakpoint in a JSP. I've not found any documentation that walks me
    through the nuts and bolts of getting debugging going in Workshop. Can I do what
    I'm trying to do and is there any doc that might help me move forward?

    My guess is that your project isn't a Web Project, but is instead a Java
    Project or something similar. You can quickly determine the type of
    the project by right clicking on it in the Application tree and
    selecting Properties. The dialog's title shows the type. It needs to be
    "Web" in order to debug JSPs.
    To change project types, you can right click on the project in the
    Application tree and select Remove from Application. This will not
    delete the files. Then, go to File->Import Project, browse to the
    correct directory, and select Web Project from the list of project types.
    Note that Workshop may automatically detect the project type if it
    contains a Java Control. In that case, you'll need to separate the JSPs
    into a different project.
    Josh
    Jill Nabonsal wrote:
    I have a project that I am building using ant build based on the split development
    diretory structure. I am able to build the application from within Workshop.
    I can set breakpoints within Java but the debug menus are never enabled. I saw
    the post about setting breakpoints from within JSPs; however, I haven't been able
    to set a breakpoint in a JSP. I've not found any documentation that walks me
    through the nuts and bolts of getting debugging going in Workshop. Can I do what
    I'm trying to do and is there any doc that might help me move forward?

  • Error trying to debug in workshop

    I am using 8.1 SP4 on Windows XP Pro in Development mode<p>
    When I start debugging my web service in workshop, I get an error that says: <b>Unable to enable debugging. Verify that your webapp deployed correctly.</b><p>
    I did verify that the web service is deployed, and I am able to send messages to it. I am using the stopweblogic.cmd script to stop my instance.
    <p>
    Any ideas?

    Solution 1
    %userprofile%\Local Settings\Application Data\Adobe folder does not exist
    Solution 2
    Already tried this
    Solution 3
    Tried disabling antivirus

  • "Unable to enable debugging" within Workshop 8.1

    I'm testing a portal application with workshop 8.1. When I started the .portal, I got this error "Unable to enable debugging. Verify that you webapp deployed correctly". If I choose to start without debugging it's OK.
    The deployment was successfully done without error. Is there anything else I can check?
    Thanks

    Thanks.
    One of my concerns is that this change will update the .work file with some local values such as host name and port number, etc. For some reason we could not use a generic name such as "localhost" in our development. This causes a little problem since the .work file contains some hard coded parameters can not be shared amoung other developers.
    Hopefully there is another better solution.
    Thanks again for the help!

  • No System.out or System.err when Debugging in workshop

    I'm running workshop 8.1.3. When I debug my application I can see it process several lines with System.out and System.err. However I can not find the ouput anywhere. I've checked the Build window, output window among others but cannot find any of the output. What am I doing wrong ?

    Probably the output is going to the WebLogic window. On Windows, it would be the command prompt window where the server instance is launched.
    I'm running workshop 8.1.3. When I debug my
    application I can see it process several lines with
    System.out and System.err. However I can not find the
    ouput anywhere. I've checked the Build window, output
    window among others but cannot find any of the
    output. What am I doing wrong ?

  • Debug information can't be recognized by gcc

    After compiled by acc -c -g. the debug information can't be recognized by gcc
    For example, two files a.c and b.cc
    acc -c -g a.c
    gcc -c -g b.cc or gcc -c -gstabs b.cc
    gcc -o ab a.o b.o
    Debug with workshop, DBX can't know b's debug information.
    so, my question is:
    1. why the debug infomation ( I guess is stabs) produced by acc can't work with gcc
    2. Is it possible for me to debug b's source code?
    Thanks in advance

    2. Is it possible for me to debug b's source code?Yes, of course. But consider this: stabs generated by gcc are not compatible with dbx (only gdb), so you should use -gdwarf-2 gcc option and latest dbx, which can be downloaded here http://developers.sun.com/prodtech/cc/downloads/index.jsp

  • Dynamic Discovery on WebSphere 4.0.7

    Hi all,
    I wrote my pluggable navigation and I modified the LoginHTML, LoginModel and LoginControl. Then I put the navigation and the modified login code in one .jar file and I added it in the CustomActivitySpace.xml.
    On a machine running Tomcat all is discovered well. On another machine running WebSphere 4.0.7 only the pluggable navigation is discovered well. I mean that I can choose it from the subportal manager and it works. On the contrary the login code modifications aren't discovered well.
    I'm using Plumtree 5.0.2 (Java version).
    Do you have suggestions?
    Thank you,
    Alberto

    It sounds to me like you are using HotSwap debugging on Tomcat, which doesn't require dynamic discovery. This is not in any way supported by our product. Tomcat allows you to replace any Java code with new code, without re-compiling. This is not what Dynamic Discovery is. This will not work on any application server other than Tomcat, including .NET, Websphere, and Weblogic. Dynamic Discovery only allows you to replace certain components in the portal, such as Models, Views, Controls, Activity Spaces, and PEIs, among others. LoginHTML is just a helper class used by the LoginSpace and LoginPortlet LoginViews. In order to properly dynamically discover this customization so that it will work on other platforms, a custom LoginView must be created that uses your new LoginHTML class.
    -- Don

  • Integrating an existing struts application

    Sorry if this has been discussed before but I tried searching the newsgroup with
    no success. tia.
    I am trying to integrate the struts application found in the struts-example.war
    file that I extracted from the jakarta-struts-1.1.zip file from jakarta.apache.org.
    (I have successfully deployed and tested this war file to the weblogic server
    so I know the application works.)
    I unzip the war file into a temp directory and follow the instructions found in
    "e-docs.bea.com/workshop/docs81/doc/en/portal/buildportals/appIntegratingStruts.html"
    After creating a struts portlet using the wizard and putting the portlet into
    my test portal, when I try to run the portal using debug in Workshop, I get:
    <Error> <netuix> <BEA-420599> <Unable to perform action [example/begin] for Struts
    module [example]. Please ensure that both module and action are correct.>
    <Error> <netuix> <BEA-420037> <There was an error loading the requested URI /example/mainMenu.jsp.>
    <Error> <netuix> <BEA-423012> <There was an error while running a lifecycle stage
    Lifecycle: UIControl.render :: for the control :: null ::.com.bea.netuix.nf.UIControlException:
    No ActionResult returned for action [example/begin] in Struts module [example].
    Please ensure that both module and action are correct in portlet StrutsContent
    element.
    at com.bea.netuix.servlets.controls.content.StrutsContent.preRender(StrutsContent.java:399)
    at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:388)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:619)
    I've tried changing the struts action and content uri with no success. I've tried
    changing the
    struts-auto-config-<module name>.xml file with even less success.
    Help would be greatly appreciated. tia.

    Have anyone got the answer from BEA ...
    I am also having the same problem.
    Pl. post if you have any answers.
    Thanks
    Kicha
    "Julien De Santis-Caron" <[email protected]> wrote:
    >
    Hi,
    I have the same problem and I can't find any way for correcting this.
    Please, help-us with this issue because integration of existing Struts
    applications
    into a portlet is a critical issue for choosing a Portal solution.
    thanks
    Julien De Santis-Caron
    "Dean Saiki" <[email protected]> wrote:
    Sorry if this has been discussed before but I tried searching the newsgroup
    with
    no success. tia.
    I am trying to integrate the struts application found in the struts-example.war
    file that I extracted from the jakarta-struts-1.1.zip file from jakarta.apache.org.
    (I have successfully deployed and tested this war file to the weblogic
    server
    so I know the application works.)
    I unzip the war file into a temp directory and follow the instructions
    found in
    "e-docs.bea.com/workshop/docs81/doc/en/portal/buildportals/appIntegratingStruts.html"
    After creating a struts portlet using the wizard and putting the portlet
    into
    my test portal, when I try to run the portal using debug in Workshop,
    I get:
    <Error> <netuix> <BEA-420599> <Unable to perform action [example/begin]
    for Struts
    module [example]. Please ensure that both module and action are correct.>
    <Error> <netuix> <BEA-420037> <There was an error loading the requested
    URI /example/mainMenu.jsp.>
    <Error> <netuix> <BEA-423012> <There was an error while running a lifecycle
    stage
    Lifecycle: UIControl.render :: for the control :: null ::.com.bea.netuix.nf.UIControlException:
    No ActionResult returned for action [example/begin] in Struts module
    [example].
    Please ensure that both module and action are correct in portlet StrutsContent
    element.
    at com.bea.netuix.servlets.controls.content.StrutsContent.preRender(StrutsContent.java:399)
    at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:388)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:619)
    I've tried changing the struts action and content uri with no success.
    I've tried
    changing the
    struts-auto-config-<module name>.xml file with even less success.
    Help would be greatly appreciated. tia.

  • How to deploy/debug maven project in workshop?

    I've installed m2eclipse in Workshop 10.0. I'm able to download maven projects from a subversion repository. m2eclipse allows right-clicking for maven-install, maven-build, maven-package. Build generates a proper war file.
    But Workshop does not recognize it as a web project so it will not allow me to deploy it to my local server. Anyway to get this to work?
    I know in the past, checkouting out source from SVN/CVS, a project wizard pops up and allows you to set the project type.
    Right now, I'm manually installing my war file to the app server. If I want to do any debugging it will have to be remote debugging. But that requires a few more steps to deal with. A productivity killer.

    The File->import->WAR option might solve your problem.
    See:
    http://helponline.oracle.com/jdeveloper/help?topic=ide_pfilesimportingexistingintojdev_html

  • Breakpoints not caught during debugging in BEA Workshop 8.1 (Win7 Pro OS)

    Hi all,
    As of the moment, we're slowly making our migration from our existing WebLogic 8.1 Platform to the newer WebLogic 12c. Some people in my team are starting to use Windows 7 Professional for the WL8.1 (which includes the application server and the developer IDE, "Workshop").
    Been using and debugging myself on my own Windows 7 Home Edition laptop. Haven't been encountering problems, but lately, those of us using Windows 7 Pro are not able to catch breakpoints during debugging. I tried it on a separate machine running Win 7 Pro as well with my same domain settings and all, and I confirm that the breakpoints aren't caught. How is this so? If I recall, the latest service pack for WL8.1 is SP6; are there any other patches that we need to install to resolve this?
    I'm looking at the possibility of having to use Win7's "XP mode" if there are no options. But it'd be better if we can avoid that altogether... Thanks!

    David,
    Can you try passing in the 1.5 VM location manually as listed below
    WorkshopInstaller.exe LAX_VM d:\bea\9server\jdk150_04\bin\java.exe
    Can you also make sure that the 1.5 JVM value entry is the first entry in the PATH environment variable.
    cheers
    Raj

  • JDeveloper 10g - Debugging and hotswap

    Hi All,
    Have recently started to explore the hotswap funtionality in JDev debugging. I've created a simple application with a single EJB3 stateless session bean. Debugging from JDev works great, however when I make any source change while debuging and recompile the hotswap fails with the following error.
    The debugger was unable to redefine the recompiled classes.
    Unsupported operation: hierarchy change.
    What does the message mean and how do I get hotswap working? I'm using the JDK supplied with JDeveloper if that makes any difference.
    Cheers,
    J

    Thanks, but isn't this for implementing enhancements to JDeveloper only? Is it possible to use this classes in a standalone java application?

  • BEA Workshop Studio 3.2: Server classpath customization & Remote Debugging

    BEA Workshop Studio 3.2:
    The server classpath customization and remote debugging issues have been fixed in the 3.2 release, which is now available for download at http://workshopstudio.bea.com/download.do.
    Workround for the 3.1 release:
    By switching to war deployment mode the server classpath can be customized in the launch configuration.
    You can see the complete list of new features in 3.2 at:
    http://e-docs.bea.com/workshop/docs92/studio32/WhatsNew.htm

    Thanks Ram,as you said i server runtime i pointed to jdk1.5,that error has been resolved.
    Now i'm getting the parsing config.xml file.
    My server is Test9.
    C:\bea\jdk150_04\bin\java -classpath C:\bea\weblogic91\server\lib\weblogic_sp.jar;C:\bea\weblogic91\server\lib\weblogic.jar;C:\bea\weblogic91\server\lib\webservices.jar;C:\bea\jdk150_04\lib\tools.jar -Dbea.home=C:/bea -Dweblogic.ConfigFile=config/config.xml -Dweblogic.Name=Test9 -Dweblogic.ListenAddress=localhost -Dweblogic.ListenPort=7002 -Djava.library.path=C:\bea\weblogic91\server\bin -Djava.security.policy=C:\bea\weblogic91\server\lib\weblogic.policy -Dweblogic.management.discover=false -Dweblogic.ProductionModeEnabled=false -Dweblogic.management.password=weblogic -Dweblogic.management.username=weblogic weblogic.Server
    <Aug 17, 2006 8:27:05 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_04-b05 from Sun Microsystems Inc.>
    <Aug 17, 2006 8:27:06 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.1 Mon Dec 12 19:26:33 EST 2005 689178 >
    <Aug 17, 2006 8:27:08 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.management.ManagementException: [Management:141266]Parsing Failure in config.xml: The following failures occurred:
    -- Unresolved reference to Test9 by [Test9]/AppDeployments[__wstudio_autoconfig_deployment__]/Targets
         at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:118)
         at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:38)
         at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:365)
         at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:116)
         at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:630)
         at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:402)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
         at weblogic.Server.main(Server.java:67)
    Caused by: weblogic.descriptor.DescriptorValidateException: The following failures occurred:
    -- Unresolved reference to Test9 by [Test9]/AppDeployments[__wstudio_autoconfig_deployment__]/Targets
         at weblogic.descriptor.internal.ReferenceManager.resolveReferences(ReferenceManager.java:265)
         at weblogic.descriptor.internal.DescriptorImpl.validate(DescriptorImpl.java:285)
         at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)
         at weblogic.management.provider.internal.DescriptorManagerHelper.loadDescriptor(DescriptorManagerHelper.java:52)
         at weblogic.management.provider.internal.RuntimeAccessImpl$IOHelperImpl.parseXML(RuntimeAccessImpl.java:576)
         at weblogic.management.provider.internal.RuntimeAccessImpl.parseNewStyleConfig(RuntimeAccessImpl.java:220)
         at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:106)
         ... 7 more
    >
    <Aug 17, 2006 8:27:08 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Aug 17, 2006 8:27:08 PM EDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Aug 17, 2006 8:27:08 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    Thanks
    Ram

  • Generating Debug Info Setting in Weblogic Workshop (.work)

    Hi,
    I am using Weblogic Workshop ver 8.1.3. I need to set
    -g option during java compilation. I am using weblogic workshop (.work) file) for compilation. Could any one tell me what are the setting required for generating debug info while compilation.
    Thanx,
    Cleophus P.

    Hello Cleophus,
    What debug information are you looking for ?
    In 8.1, Workshop uses a proprietary compiler to compile Workshop resources.
    Cheers
    Raj
    BTW: the latest SP for Workshop 8.1 is Service pack 6

  • Can't debug in Sun Workshop 6.2 anymore

    Hi,
    Yesterday, we could not longer debug any of our C++ source code in Sun Workshop 6.2 on Solaris 8. We receive the following message when loading a program:
    Reading <executable>
    There might be too many LWP's in this process.
    See `help dbxenv' under mt_scalable.
    dbx: Cannot open lwpstatus.
    dbx: warning: process initialization failed
    This always occurs on:
    C++ source
    C source
    code with 1 LWP
    code with >1 LWPs
    The same error occurs when we run dbx by itself.
    This error is not occuring on Sun Workshop 6.2 on our Solaris 9 development server.
    Any help, hints are most appreciated.
    Thanks,
    Tom

    Was the application built on Solaris 8 or Solaris 9? An application built on Solaris 9 will not in general run correctly on Solaris 8.
    Solaris 9 uses a different thread library than the default library on Solaris 8. Try re-linking on Solaris 8 (assuming the application was built on Solaris 8) using the optional thread library (which is the only thread library on Solaris 9).
    You don`t have to recompile anything. In each link step, add the options
    -L/usr/lib/lwp -R/usr/lib/lwp
    to the command line (in addition to all existing options).
    Finally, WS6.2 is End Of Life, and little support is available for it. Try using Sun Studio 11 instead. You can use the new debugger on old code, and you can switch to the new compilers when convenient. Studio 11 is free, and supports Solaris 8, 9, and 10. (Studio 12 is the current release, but does not support Solaris 8, which is End Of Life.)
    http://developers.sun.com/sunstudio

  • Workshop 6U2 debug problem

    After debugging for a while the dbx shell that workshop uses becomes unstable. I have to restart the whole environment
    This also is produced on the console:
    workshop: warning: MsgSnd::snd_via(): no socket -- msg 'DBX_KSH_CMD' dropped
    Has anyone got a workaround for this ?

    This error message means that the dbx binary running inside
    workshop is crashing. If you can go to the machine where
    the tool is running, and copy the /tmp/core file and
    compress it and then mail it to me ([email protected])
    then I'll file a bug for you.
    You can check the core file to make sure it's from dbx:
    % file /tmp/core
    /tmp/core:     ELF 32-bit MSB core file SPARC Version 1, from 'dbx'
    The output should look something like that.
    Also, if you have more questions or problems related
    to the debugging tools there is now a separate forum
    just for topics related to the debugging tools.
    --chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Stock at Storage Location

    Hello there,   Could anyone tell me the possibility of populating stock at storage location. I am using 2lis_03_BF and 2lis_03_UM for populating the Material Movements cube in BW 3.5. When we checked the data all the values for materials are populate

  • External drive slowdown

    Hi, I have been using my Maxtor One Touch III 1TB external for a few months and all has been fine. But yesterday I experienced a sudden slow-down and it forced me to restart my Mac which is quite unusual these days (crashes are very rare). I was expe

  • Is it possible to set  Local Currency - INR in SAP B1 8.81

    Hi, In SAP B1 Version  8.81 , i have taken Type -Chart of Accounts - as Global and  Localization - United Kingdom  And just tell me is it possible to set Local Currency - INR in SAP B1 8.81

  • JSP Session populated with class not working after redirect

    Hi, I create a session (code sample 1 below) on my index.jsp page. Index.jsp has a form on it, and a button that points back to index.jsp. The page is dynamically generated. The session is created fine, and persists properly between pages. However, o

  • I'm new but...

    I'm already frustrated with my mac.. This might not be such a very big problem, but cannot play a simple game like Braid without get my brand new MBP 17" antiglared hot... It's just unfair... and also don't feel the graphics are doing a good job. Scr