How to debug j2ee with jdb or any visual debugger

Hi,
I'm learning J2ee and I'd like to use and debug
Java adventure. I tried to find some information but found nothing.
What I tried to debug , is to start the j2ee server by adding the following options into the bin/asadmin.bat file:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
This it doesn't work because the j2ee server is started with the javaw.exe virtual machine. So I'm stuck here.
My first question: 1- what visual debugger is great to debug J2ee apps ??
I'd like to known what are the steps to:
2- how to start the j2ee server in order to attach the jdb or a visual
debugger ?
3- when starting the j2ee server, what do i have to do in order to step
into the code source of Java adventure and follow function calls ?
4- how do I have to start the jdb to attach to the J2ee server ?
5- Any useful tip to debug J2ee apps ! :-)
Thanks in advance !
Waltereo

Modify the domain.xml file and enable debugging. Look for the element containing the debug options. It will have an "enabled" attribute set to false. Also check that the address option is included.
Also, you should bake sure that the server is not running when you do changes, and copy the modified file to the backup directory. I'm not 100% sure that it is necessary, but with Sun ONE AS 7 it is if you don't want it to complain about manual configuration changes.

Similar Messages

  • How to debug ABAP Web services from Microsoft Visual Studio

    When developing .NET based Web services clients using Visual Studio that call Web services in SAP NetWeaver .NET developers would like to be able to debug inside SAP. In my blog <a href="/people/andre.fischer/blog/2007/02/07/how-to-debug-abap-web-services-from-microsoft-visual-studio to debug ABAP Web services from Microsoft Visual Studio</a> I would like to point .NET developers to the fact that SAP NetWeaver offers the option of external debugging to perform this task. Though the steps that have to be performed are described in the SAP Online Help I am sure that this option is not well known amongst the .NET developer community.

    Hello WilliamIV,
    >>How can I "configure" Visual Studio debugger to allow validation to work?
    Since I do not have a VS2012 environment, according to your provided link, I created a test demo with VS2013, however, both ways catch the validation error:
    If possible, you could have a try with VS2013 to see if it works or run the example on other machine with VS2012 to see if this is caused by the VS environment, in my side, I do not change any configuration, all are default.
    If I misunderstood this issue, please feel free to let me know.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to debug Alchemy with VC++ (for example vc++6.0)

    Hi all,
    i want to debug the alchemy code with VC++. For example, I use sample /stringecho.
    I  create a new project and add stringecho.c  . But build error---------fatal error C1083: Cannot open include file: 'AS3.h': No such file or directory
    If I copy AS3.h from alchemy directory  to my project directory ,build error---------error LNK2001: unresolved external symbol _AS3_LibInit
    error LNK2001: unresolved external symbol _AS3_Release.........
    can any one have idea how to debug,
    waiting for inputs
    thanks in advance

    Sorry but you can't compile Alchemy stuff like AS3.h in visual studio hoping to debug your application
    You may develop your C/C++ code in visual studio as a "portable application" to alchemy or whatever platform you like, so you may develop , debug it, and then recompile the whole application in alchemy ... you will need a lot of #ifdef/#endif and so on to make it.
    If you have isolated pieces of C/C++ code build up a test application and test it.. maybe it's easier.
    if you really need to debug the alchemy version of your code you could follow this post, it's a great starting point.
    http://forums.adobe.com/thread/416004
    i hope it could help
    Dario

  • How to connect java with database without any dsn.

    is there any way to connect java with database with out creating any dsn..like we do in ado in vb by providing provider.

    Sure use a type 4 driver. No DSN.

  • How to get data with out having any date/timestamp columns by year wise

    hi,
    how can i select years wise rows from tables,if that have not any date/timestamp column.

    Well Govind it quite depends on what is the data type of that column and the format in which it is stored.
    If the data type is varchar2/varchar and all the values are in a uniform format then there is no problem. All you need to use is the to_date function to convert the supplied strings to default date format and then use to_char function to only extract the YY or YYYY or RR or RRRR aspect of the data.
    For example: If the column is called 'hire_date' and it's data type is varchar2 and the entries in this column are all in a uniform format, say month,date,year like January,12,1999. What you need to do is convert this string to a default date value using to_date function, like to_date(hire_date,'format_model') In the format model mention the format of the hire_date string. The out put of this function can be fed into to_char to extract the year, like to_char(output_of_to_date,'YYYY')
    I hope you got what I meant. Let me know if it was of any use.

  • How to debug Java adventure with jdb

    Hi,
    I'm learning J2ee and I'd like to use and debug
    Java adventure. I tried to find some information but found nothing.
    What I tried to debug , is to start the j2ee server by adding the following options into the bin/asadmin.bat file:
    -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
    This it doesn't work because the j2ee server is started with the javaw.exe virtual machine. So I'm stuck here.
    My first question: 1- what visual debugger is great to debug J2ee apps ??
    I'd like to known what are the steps to:
    2- how to start the j2ee server in order to attach the jdb or a visual
    debugger ?
    3- when starting the j2ee server, what do i have to do in order to step
    into the code source of Java adventure and follow function calls ?
    4- how do I have to start the jdb to attach to the J2ee server ?
    5- Any useful tip to debug J2ee apps ! :-)
    Thanks in advance !
    Waltereo

    Hi,Hello
    I'm learning J2ee and I'd like to use and debug
    Java adventure. I tried to find some information but
    found nothing.
    What I tried to debug , is to start the j2ee server by
    adding the following options into the bin/asadmin.bat
    file:
    -Xdebug
    ug
    -Xrunjdwp:transport=dt_socket,address=8000,server=y,sus
    end=nThat looks OK.
    This it doesn't work because the j2ee server is
    started with the javaw.exe virtual machine. So I'm
    stuck here.javaw.exe implies you are on a win32 machine. The default
    debugging transport on win32 is shared memory... but you specify
    a socket connection on the debugee command line above. This
    means you need to specify sockets on the debugger side as well.
    For example:
    jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8000
    Note the port number (8000) matches the value you specified
    when starting the debugee.
    >
    My first question: 1- what visual debugger is great
    to debug J2ee apps ??For a list of debugging tools, check this web page:
    http://java.sun.com/products/jpda/using.html
    Many of these products work well in a J2EE environment.
    Most of them are either free, or come with an introductory
    "try before you buy" offer.
    I'd like to known what are the steps to:
    2- how to start the j2ee server in order to attach
    the jdb or a visual
    debugger ?You are on the right track with the flags/options you
    mentioned.
    3- when starting the j2ee server, what do i have to
    do in order to step
    into the code source of Java adventure and follow
    low function calls ?The code you want to examine needs to be compiled
    with the "-g" flag added to the javac command line.
    When -g is specified, javac will save information
    in the .class files that is used later during debugging.
    4- how do I have to start the jdb to attach to the
    J2ee server ?See above...
    For more coverage on this topic, refer to:
    JPDA Connection and Invocation Details
    http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html
    5- Any useful tip to debug J2ee apps ! :-)That is a bit outside the scope of this forum... sorry.
    Any useful tips will depend on what J2EE app server you
    are using. Most of the well-known servers come with
    a debugging guide. For example, take a look at:
    Debugging J2EE Applications in the SunOne Application Server
    documentation:
    http://docs.sun.com/source/817-2171-10/dgdebug.html
    Thanks in advance !Best Regards...

  • How to setup grub2 with arch linux and xen, lvm on luks

    OK, so I tried downloading this package from AUR:  https://aur.archlinux.org/packages/xen-git/ , but that has patching problems as noted in the comments.  It looks like the packagebuild sets up all the xen stuff for you, but I can't seem to get the package to install because of the error's while patching.  If anyone can point me in the right direction on what all the extra files in the PKGBUILD are for or how to debug problems with PKGBUILDs not working because of patches.
    So next I just tried to compile the latest xen from git://xenbits.xen.org/xen.git (with ./configure, make, make install) and that seemed to go fine, but I'm a bit confused:
    1.  Do I have to do any additional configuration for xen when working with arch linux?  On ubuntu I could just compile the source, update grub, and make sure to start the x services at runtime.
    2.  How do I set up grub to load xen with this setup?  Right now this is my /boot/grub/grub.cfg:
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet"
    GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda3:vgStorage"
    # Preload both GPT and MBR modules so that they are not missed
    GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    # Uncomment to enable Hidden Menu, and optionally hide the timeout count
    #GRUB_HIDDEN_TIMEOUT=5
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    # Uncomment to use basic console
    GRUB_TERMINAL_INPUT=console
    # Uncomment to disable graphical terminal
    #GRUB_TERMINAL_OUTPUT=console
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=auto
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    #GRUB_DISABLE_LINUX_UUID=true
    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY=true
    # Uncomment and set to the desired menu colors. Used by normal and wallpaper
    # modes only. Entries specified as foreground/background.
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    # Uncomment one of them for the gfx desired, a image background or a gfxtheme
    #GRUB_BACKGROUND="/path/to/wallpaper"
    #GRUB_THEME="/path/to/gfxtheme"
    # Uncomment to get a beep at GRUB start
    #GRUB_INIT_TUNE="480 440 1"
    #GRUB_SAVEDEFAULT="true"
    ~
    I've tried throwing in a line like: XEN_HYPERVISOR_CMDLINE="cryptdevice=/dev/sda3:vgStorage", but nothing new shows up on the grub boot menu.
    First time trying to set up a non-ubuntu system, please help!

    As for XEN.... well you could always try QEMU/KVM or LXC.
    As for the LVM2-on-LUKS/dm-crypt
    My /etc/mkinitcpio.conf looks like this...
    MODULES="aesni_intel ata_generic ata_piix nls_cp437 ext4 intel_agp i915 dm-snapshot"
    BINARIES=""
    FILES=""
    HOOKS="base udev autodetect block keymap encrypt lvm2 filesystems keyboard fsck shutdown"
    /etc/defaults/grub
    GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:root:allow-discards"
    GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    GRUB_TERMINAL_INPUT=console
    GRUB_GFXMODE=auto
    GRUB_GFXPAYLOAD_LINUX=keep
    GRUB_DISABLE_RECOVERY=true
    The running grub config looks like this
    /boot/grub/grub.cfg
    9 insmod part_gpt
    10 insmod part_msdos
    53 if loadfont unicode ; then
    54 set gfxmode=auto
    55 load_video
    56 insmod gfxterm
    57 set locale_dir=$prefix/locale
    58 set lang=en_US
    59 insmod gettext
    60 fi
    61 terminal_input console
    62 terminal_output gfxterm
    63 set timeout=3
    84 menuentry 'Backup, Arch Linux grsec kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-grsec kernel-true-12341234-8080-8080-8080-332200882255' {
    85 load_video
    86 set gfxpayload=keep
    87 insmod gzio
    88 insmod part_msdos
    89 insmod ext2
    90 set root='hd1,msdos2'
    91 if [ x$feature_platform_search_hint = xy ]; then
    92 search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 BBAAEEAA-FFCC-CCFF-FFCC-AABBCCEEBBAA
    93 else
    94 search --no-floppy --fs-uuid --set=root BBAAEEAA-FFCC-CCFF-FFCC-AABBCCEEBBAA
    95 fi
    96 echo 'Loading Linux grsec kernel ...'
    97 linux /vmlinuz-linux-grsec root=/dev/mapper/VolGroup00-lvroot rw cryptdevice=/dev/sda2:root:allow-discards quiet
    98 echo 'Loading initial ramdisk ...'
    99 initrd /initramfs-linux-grsec.img
    100 }
    Things to note:
    Numerical UUID is the UUID of the ROOT partition.
    Alphabetical UUIS is the BOOT partition
    hd1,msdos2 AND ahci1,msdos2 are how the Grub Bootloader numbers the drives not Linux.
    I have my BOOT partition on a USB stick, and it is the Second partition.
    So, that would make it, Device 2 and Partition 2
    Device numbering starts at 0
    Partition numbering starts at 1
    Oh, and note that you don't need ":allow-discards" ... at all but certainly if you don't have an SSD. Also note that I included the line numbers so it is very clear that I didn't post the whole thing, but instead what I thought was relevant. Finally, I am loading modules that I don't even need, but what the hell... if it ain't broke, don't fix it
    Last edited by hunterthomson (2013-12-04 08:31:45)

  • Help me!! How to use JavaScript with JSP ??

    I am using JDeveloper and I created a screen in JSP which uses a bean for database connectivity and retriving info onto the page.
    The page has a ListBox where list items are populated from the database.My requirement is
    whenever the list is changed the page shuold be refreshed with the selected item info.
    I tried to use 'JavaScript' for triggering the event with 'onChange' event of the ListBox.But the event is not getting invoked. I think JavaScript is not working with JSP.
    Please help me with how to Use javaScript with JSP or any other alternative where I can meet my requirement.
    I have one more question...I have gone through the JSP samples in OTN and I am trying do download the sample 'Travel servlet' which show list of countries...etc
    I have also gone through the 'readme' but I don't know how to extract .jar file.
    I would be great if you could help me in this.
    Thanks!!
    Geeta
    null

    We have a similar need. We have used Cold Fusion to display data from Our Oracle Database. We have a simple SElect Box in HTML populated with the oracle data. When someone selects say the State of Pennsylvania. then we have an On change event that runs a Javascript to go get all the cities in Pennsylvania.
    Proble we are having is that inorder for the Javascript to work , we currently have to send all the valid data.
    Do you know of any way to dynamically query the the Oracle database in Javascript

  • How to Integerate NWDS with JEE5 SapServer

    Hi I download Nwtweaver JEE5. and develop 1 application. Now my company is implenting SAP. So we get a big box of many CD.
    From them I took NWDS and I insatll NWDS(netweaver developer studio). It has no SAPServer to deploy the application.
    How to Integerate NWDS with JEE5 SapServer
    Any Idea or solution is a great help
    Thank You

    Please have a look at the Java EE 5 FAQ in the Wiki:
    <a href="https://wiki.sdn.sap.com/wiki/display/Java/JavaEE5+FAQ#JavaEE5FAQ-2.100">What are the typical development scenarios supported in this edition?</a>
    <a href="https://wiki.sdn.sap.com/wiki/display/Java/JavaEE5+FAQ#JavaEE5FAQ-2.130">What are the back-end connectivity options available in this edition?</a>
    as well as <a href="http://help.sap.com/saphelp_nw04/helpdata/en/7c/a4f1b3c59aef4f8ea3c32cda0c0486/frameset.htm">Components of SAP Communication Technology</a> on help.sap.com.
    > I mean if it is only a jee5 appserver like other
    Which other, Syed? At the time SAP NetWeaver AS Java EE 5 Edition was released, the only other was the reference implementation
    Cheers,
    Vladimir

  • How to debug web app with weblogic?

    I wrote a web app that includes jsp files and some javabeans, then I put the jsp files to directory
    mydomain\applications\DefaultWebApp
    then I complied javabeans and put those classes to
    mydomain\applications\DefaultWebApp\WEB-INF\classes
    Then I start the weblogic,it runs very well.
    I modified some javabean, complie them and put classes override the old classes,
    but the web app can not find the new classes.
    Any one know How to debug web app(with javabeans) in weblogic?
    thanks!

    how to config the hot deploy?
    thxSorry, for this delay in responding. I had set notify me with email option in Watch This topic; but I never did get any email notification.
    I use wls6.1; I think the process may be very similar to this in wls8.x. In wls6.1 (sp5), this is done via the -
    Dweblogic.ProductionModeEnabled=False or
    Dweblogic.ProductionModeEnabled=True
    in the startup cmd/sh script. Out of the box, wls6.1 is set to Dweblogic.ProductionModeEnabled=False which automatically enables hot deploys.

  • How to skip a selection screen mandatory field in debugging mode with out changing the code?

    Hi Team,
    In my report there is two fields on selection screen, one is obligatory field , but i just want to execute the report(for testing per pus) with out entering  the data for the mandatory field with out changing the code. could u let me know which event and how to debug the report. or else  in debugging mode how can i change that field as non mandatory field.
    Regards,
    Venkat.

    If the value is not of importance how come it became obligatory in your program?
    Any how you can do one thing...Put some value in your obligatory field, put a debugger point where you are interested in  and use the pencil tool to change the value of the field while debugging. 
    Regards,
    Philip.

  • The Bluetooth low energy protocol is not backward compatible with classic Bluetooth protocol. My iPhone 4s can not find my sonny in-dash player. However my iPhone 3GS does it. Very disappointed with this. Any idea how it can be fixed???

    The Bluetooth low energy protocol is not backward compatible with classic Bluetooth protocol.
    My iPhone 4s can not find my sonny in-dash player. However my iPhone 3GS does it. Very disappointed with this.
    Any idea how it can be fixed??????

    Hello,
    You are correct, Blue tooth low engergy, BTLE.(only) devices are not backward compatible with Classic bluetooth and cannot connect.
    However the Apple 4S and above have Bluetooth 4.0 support.. Hardware wise it has bothClassic Bluetooth, like the 3GS, as well as Bluetooth Low Energy.  There is no good reason why your 4s cannot communicate to your Sony in-dash player using the Classic bluetooth that resides in the 4S.
    I know that this does not answer the why it does not work, but it should work. Do you have to somehow re-pair the new phone up to the player?  Not  knowing the model of the Sony it is hard to investigate.
    And I hate to ask but are you sure that the Bluetooth radio is on in the phone?
    JT

  • I have lost my itunes and had to download a new one. how do i sync my iphone with out losing any thing

    I have lost my itunes and had to download a new one. how do i sync my iphone with out losing any thing, pics music contacts things like that

    I have lost my itunes and had to download a new one. how do i sync my iphone with out losing any thing, pics music contacts things like that

  • I have tried to restore my old iPhone 3, but when i tried the itunes logo and a pic of a USB cable have come up on my phone and now i cant do anything with my phone.Any ideas how i can fix this? I can make/receive call. iPhone 3GS, iOS 3.1.2. Thanks

    I have tried to restore my old iPhone 3, but when i tried the itunes logo and a pic of a USB cable have come up on my phone and now i cant do anything with my phone.Any ideas how i can fix this? I can make/receive call. iPhone 3GS(Ireally don't remember if it's a 3G or 3GS), iOS 3.1.2. Thanks for your help

    please help me!!!

  • Hi - I'm trying to sync iBooks on my Macbook Pro with iBooks running on my iPad. I have some pdf's download from the net I want to share between devices and I can't work out how to sync the two devices. Any help please?

    Hi - I'm trying to sync iBooks on my Macbook Pro with iBooks running on my iPad. I have some pdf's download from the net I want to share between devices and I can't work out how to sync the two devices. Any help please? I'm running Mavericks

    Thanks for your help Brij011 - much appreciated. Apologies as I'm a newbie but I've looked at the info for synching and I appear to have all the switches flicked on my iPad. Does the iPad and iBooks only sync in iCloud for purchases as I appear to be doing something wrong. I could sync ok when books was in iTunes but since migrating to Mavericks I think I'm doing something wrong!!

Maybe you are looking for

  • OSX 10.4.6 Update General Comment

    All, It's obvious that something is wrong with the OSX 10.4.6 update via software update on a number of computers. There are numerous cries for help here all posted in the past couple of days. My Quicksilver crashed, my laptop has not. I appreciate t

  • Itunes will not open anymore since latest update?????

    i did the new itunes update a short time ago and now i cant open it at all???????????? please help

  • Travel Managemnt

    Hi In my client place they are implementing Travel Management. The requirement is like this, they want to maintain Employee travel trip to weres travel from one personnel area to other personnel area  for training or offical business trip. Payment an

  • Elements 12 download

    halfway in my attempt to download a recently purchased upgrade from elements 7 to elements 12 I get a message "the file archive part of elements 12 is missing" what do I need to do? 

  • Exception Details while running HelloWorld Page

    Hi, I am getting the following error while running HelloworldPG.xml from Jdeveloper Any help in this will be greatly appreciated. Error Page Exception Details. oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Token