Horrible problems while mounting BTRFS RAID1 array (on a single HDD)

Since I made my 2TB HDD (Samsung M9T which I bought precisely to make it a BTRFS RAID1 array for data security) into 2 x 1TB btrfs RAID1 array, I keep having horrible mounting problems.
There are two subvolumes on that array:
@data
@sys_backup
fstab entries for them look like so:
UUID=a0555768-a37f-4bd8-95e5-66ebd6a09c75 /mnt/Disk_D btrfs device=/dev/mapper/2TB-1TB_RAID1a,device=/dev/mapper/2TB-1TB_RAID1b,rw,noatime,compress=lzo,autodefrag,space_cache,nofail,commit=180,subvol=@data 0 0
UUID=a0555768-a37f-4bd8-95e5-66ebd6a09c75 /mnt/arch_backup btrfs device=/dev/mapper/2TB-1TB_RAID1a,device=/dev/mapper/2TB-1TB_RAID1b,rw,noatime,compress=zlib,autodefrag,space_cache,nofail,x-systemd.automount,commit=250,subvol=@sys_backup 0 0
Now, I rarely access @sys_backup, but I have never found it not being mounted. @data on the other hand mounts hardly ever.
Most of the time, after boot, then I try to access /mnt/Disk_D mountpoint, it either
A - turns out empty, and running “mount” command confirms there's nothing mounted there. Trying to mount it manually renders absolutely no effect. Not even an error message.
or
B – every program used to access that mountpoint (terminal, file manager, conky displaying free space or anything else) freezes and I have to kill it. Even tryping “/mnt/D” and pressing TAB for autocompletion crashes the terminal.
I then need to reboot anywhere from 1 to 15 more times to get it mount properly.
I had this problem since I started using RAID1 3 months ago. I had it on kernels 3.17, 3.18 and 3.19.
Other things that made no difference include:
➤ adding/removing “device=” option
➤ adding/removing x-systemd.automount option
➤ changing UUIDs o /dev/mapper/... entries
➤ completing scrub on that partition
➤ running dry run btrfs check (no errors indicated)
This is horrible. Is there any solution to it, or is it just the current state of BTRFS? And if it is the later, then what other than btrfs Raid1 solution could be implemented?
Last edited by Lockheed (2015-02-01 07:27:35)

firecat53 wrote:There's nothing in that linked article about doing a RAID 1 on a single disk.
The whole discussion I linked is about doing a RAID 1 on a single disk. And the article linked from that discussion is only to prove the point of btrfs self-healing.
firecat53 wrote:If you think about it, you are going to absolutely kill your read/write times by having the drive head trying to keep up a RAID 1 mirror on two partitions of the same drive.
The read performance is unchanged. The write performance is 50% of the standard partition, but since it is a data drive, that is not a serious issue. Certainly less serious than data security.
firecat53 wrote:My guess is that's why you are having issues.
Maybe so, but I don't see a reason to assume it and even it is so, then I don't think those issues should be there.
firecat53 wrote:You're going to be much better off buying two 1TB drives and using those in RAID 1!!  Or just a single 2TB btrfs drive....with a UPS and another drive as a backup drive.
I can't do that because it is a laptop SSD with system + HDD with data.
firecat53 wrote:I've been using btrfs on my laptop SSD and on my server for almost a year now with only one problem (corruption from a power loss to the server before I got the UPS).
I have been using btrfs on my laptop SSD + HDD and on my RPi server since over a year and btrfs check was detecting minor issues every few months.
I now run SSD (non-raid) + HDD (2 partitions in RAID1) on laptop, and SD (2 partitions in RAID1) + HDD (2 partitions in RAID1) on RPi (which - by the way, has no such problems with mounting neither SD nor HDD in Raid1) and I have not yet had any error with btrfs check.

Similar Messages

  • RPC Problem while mounting NFS File System

    Hi,
    We have two servers. ca1 and bench
    Currently we moved bench across the firewall in DMZ. Now ca1 and bench are on opposite sides of the firewall. We have made sure that port 111, 2049 and 4045 along with the default telnet and ftp ports are programmed in firewall to provide access.
    We can telnet and ftp from bench to ca1.
    When we try to NFS mount a ca1 filesystem at bench using following command :
    bench:>mount ca1:/u07/export /ca1/u07/export
    we get following error :
    nfs mount: ca1: : RPC: Timed out
    This is happening since we moved the bench server across the firewall.
    What could be the problem?
    Cheers,
    MS

    Hi,
    Thanks for the help.
    It seems like that the nfs service is already started on the server.
    Here are the results :
    # ps -ef | grep nfsd
    root 366 1 0 Jul 12 ? 0:00 /usr/lib/nfs/nfsd -a 16
    root 25791 25789 0 16:16:45 pts/5 0:00 grep nfsd
    # ps -ef | grep mountd
    root 218 1 0 Jul 12 ? 0:05 /usr/lib/autofs/automountd
    root 364 1 0 Jul 12 ? 0:00 /usr/lib/nfs/mountd
    root 25793 25789 0 16:16:53 pts/5 0:00 grep mountd
    # ps -ef | grep statd
    root 201 1 0 Jul 12 ? 0:00 /usr/lib/nfs/statd
    root 25797 25789 0 16:16:59 pts/5 0:00 grep statd
    # ps -ef | grep lockd
    root 203 1 0 Jul 12 ? 0:00 /usr/lib/nfs/lockd
    root 25799 25789 0 16:17:07 pts/5 0:00 grep lockd
    Please let me know what else can be done. This problem started after we moved these machines on different sides of the firewall.
    Cheers,
    MS

  • Problem while connecting to mysql(Array Index Out Of Bound Exception)

    hi...
    java.sql.SQLException: Unable to connect to any hosts due to exception: java.lang.ArrayIndexOutOfBoundsException: 40
    this is the exception which i got.. when iam connecting to mysql...
    i alredy done googling...but....i didn't find any solution...
    pls suggest me...
    waiting 4r u r reply....

    I got a similar error, but its different scenario.
    vo=getVO;
    vo.setApplyViewCreteria("ViewC");
    vo.setQueryMode(Database_Rows | Entity_Rows );
    vo.exceuteQuery();
    for my case executequery() throws the same stacjk trace
    after removing Entity_Rows i mean vo.setQueryMode(Database_Rows | Entity_Rows ); ---> vo.setQueryMode(Database_Rows );
    I didn't get this error.
    Some problem with adding entity rows.

  • EXT4 errors while mounting a USB in initramfs on a specific computer

    Hi,
    I'm having trouble booting a newly installed Archlinux on a USB key on an old HP Compaq computer.
    I am getting EXT4 errors in the regular initramfs, but they blink really fast on the screen so I can't read them properly.
    It boots fine with the fallback initramfs, and dmesg shows that there are no problems while mounting.
    The system boots without any problem on both initramfs with QEMU on my Windows.
    My mkinitcpio.conf :
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run last, so it may be used to
    # override the actual binaries included by a given hook
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect block filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev block filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev block mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev block lvm2 filesystems"
    ## NOTE: If you have /usr on a separate partition, you MUST include the
    # usr, fsck and shutdown hooks.
    HOOKS="base udev autodetect modconf block filesystems fsck keyboard"
    # COMPRESSION
    # Use this to compress the initramfs image. By default, gzip compression
    # is used. Use 'cat' to create an uncompressed image.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    #COMPRESSION="lz4"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    I'm really puzzled about this, since I initially thought that the HP Compaq simply had problems with my USB key, but since it boots fine with the fallback initramfs, I think that it is the initramfs' fault, but it is the default one, so I currently have no clues about this.
    I've also checked the USB key multiple times with fsck, and that doesn't seem to be the cause of the problem.

    The thing is, the block module and the filesystem module are both loaded in my regular initramfs, and the presence of ext4 errors while mounting my USB key (it uses ext4) signifies that the system is actually using the right tool to do what it's supposed to.
    The system has been installed via VirtualBox so the autodetect module may have messed things up. Going to recreate an initramfs image without it.
    EDIT : It worked, sorry for bothering you guys, I could've found it sooner.
    Anyway, as a note for others, if you plan on installing on a USB key to use it on other computers, remove the autodetect module from the initramfs, otherwise the required modules won't always be there.
    Last edited by FreeSalad (2014-03-10 15:56:22)

  • Problem with mounting external harddrive

    Today, I've installed Arch for the first time after two years with Ubuntu. It seems to be working pretty well, but I've got a problem while mounting my external harddrive. The disc is has to partition, one formatted as ext3 and one as NTFS. Both partition shows up at the desktop, but after a while I get an error message concerning that the NTFS-partition cannot be mounted. It still appears as mounted, but I can't get access to it. The ext3-partition seems to be working, but when I try to copy a folder, the whole system freezes, and I haven't found any other things to do than pressing te power off-button.
    $ tail -f var/log/messages.log
    gives the following output:
    Jan 21 04:01:18 hauge logger: ACPI action undefined: ADP1
    Jan 21 04:01:18 hauge logger: ACPI group/action undefined: processor / CPU0
    Jan 21 04:01:18 hauge logger: ACPI group/action undefined: processor / CPU0
    Jan 21 04:01:22 hauge usb 4-1: new high speed USB device using ehci_hcd and address 3
    Jan 21 04:01:22 hauge usb 4-1: configuration #1 chosen from 1 choice
    Jan 21 04:01:22 hauge Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    Jan 21 04:01:22 hauge ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
    Jan 21 04:01:22 hauge Initializing USB Mass Storage driver...
    Jan 21 04:01:22 hauge scsi2 : SCSI emulation for USB Mass Storage devices
    Jan 21 04:01:22 hauge usbcore: registered new interface driver usb-storage
    Jan 21 04:01:22 hauge USB Mass Storage support registered.
    Jan 21 04:01:27 hauge scsi 2:0:0:0: Direct-Access WD 2500JB External 0107 PQ: 0 ANSI: 0
    Jan 21 04:01:27 hauge sd 2:0:0:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
    Jan 21 04:01:27 hauge sd 2:0:0:0: [sdb] Write Protect is off
    Jan 21 04:01:27 hauge sd 2:0:0:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
    Jan 21 04:01:27 hauge sd 2:0:0:0: [sdb] Write Protect is off
    Jan 21 04:01:27 hauge sdb: sdb1 sdb2
    Jan 21 04:01:27 hauge sd 2:0:0:0: [sdb] Attached SCSI disk
    Jan 21 04:01:27 hauge sd 2:0:0:0: Attached scsi generic sg2 type 0
    Jan 21 04:01:28 hauge kjournald starting. Commit interval 5 seconds
    Jan 21 04:01:28 hauge EXT3 FS on sdb1, internal journal
    Jan 21 04:01:28 hauge EXT3-fs: recovery complete.
    Jan 21 04:01:28 hauge EXT3-fs: mounted filesystem with ordered data mode.
    Jan 21 04:01:28 hauge hald: mounted /dev/sdb1 on behalf of uid 1000
    Jan 21 04:01:29 hauge NTFS driver 2.1.28 [Flags: R/W MODULE].
    Jan 21 04:01:29 hauge NTFS volume version 3.1.
    My /etc/fstab looks like:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    #/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
    #/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
    /dev/sda1 /boot ext2 defaults 0 1
    /dev/sda2 swap swap defaults 0 0
    /dev/sda3 / ext2 defaults 0 1
    /dev/sda4 /home ext2 defaults 0 1
    Does anyone have an idea on what to do with this problem?

    You do perhaps have to include the partitions in the fstab file. This could help you:
    http://wiki.archlinux.org/index.php/Fstab
    You want to mount /dev/sdb1 (ext3) and /dev/sdb2 (ntfs) to any folders preferably in /mnt. You will have to create them as root. Have a look at
    ls -l /dev/disk/by-uuid/
    Maybe you want to mount from there as this method is not dependent on the order and usb port number you plug it in. For ntfs you can choose
    noauto,uid=1000,gid=100,umask=027
    as mount options in fstab if your user-id is 1000.

  • [solved]RAID1 array is showing only one disk

    Hi,
    I configured RAID1 on my Arch Linux system. Sometime during the past few days (I don't know when) I think SATA cable of one of the disks (sda) went loose. I got a hint by some error messages in dmesg output.
    I realized this only today. To minimize the damage I rebooted the system, made sure that all connectors are connected properly and booted it again. Now the system is up and running, but what I see is that only one disk is being used at this time around.
    # cat /proc/mdstat
    Personalities : [raid1]
    md0 : active raid1 sdc6[1]
    915811008 blocks super 1.2 [2/1] [_U]
    bitmap: 6/7 pages [24KB], 65536KB chunk
    I want to enable the other disk as well. The other disk has sda6 as the partition with is used in RAID1 array.
    Can somebody help me how to go about this? I don't want some inconsistency to creep in, because of my doing something wrong.
    Last edited by slash_blog (2015-04-29 04:47:12)

    I am seeing the following. I am booting from this system and yet it says no md superblock detected on /dev/md0, while for the two partitions which are part of this RAID1 array there doesn't seem to be any problem.
    This is getting confusing. Can somebody kindly comment?
    # mdadm --examine /dev/md0
    mdadm: No md superblock detected on /dev/md0.
    # mdadm --examine /dev/sda6
    /dev/sda6:
    Magic : a92b4efc
    Version : 1.2
    Feature Map : 0x1
    Array UUID : 00a62e18:a8c29e17:77d4627c:91a94994
    Name : ncdl-desk:0 (local to host ncdl-desk)
    Creation Time : Thu Apr 2 03:00:39 2015
    Raid Level : raid1
    Raid Devices : 2
    Avail Dev Size : 1831622064 (873.39 GiB 937.79 GB)
    Array Size : 915811008 (873.39 GiB 937.79 GB)
    Used Dev Size : 1831622016 (873.39 GiB 937.79 GB)
    Data Offset : 262144 sectors
    Super Offset : 8 sectors
    Unused Space : before=262056 sectors, after=48 sectors
    State : clean
    Device UUID : 88809386:57f1b788:8f3a0e82:72b0ac87
    Internal Bitmap : 8 sectors from superblock
    Update Time : Tue Apr 28 00:36:18 2015
    Bad Block Log : 512 entries available at offset 72 sectors
    Checksum : 672755a9 - correct
    Events : 10520
    Device Role : Active device 0
    Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
    # mdadm --examine /dev/sdc6
    /dev/sdc6:
    Magic : a92b4efc
    Version : 1.2
    Feature Map : 0x1
    Array UUID : 00a62e18:a8c29e17:77d4627c:91a94994
    Name : ncdl-desk:0 (local to host ncdl-desk)
    Creation Time : Thu Apr 2 03:00:39 2015
    Raid Level : raid1
    Raid Devices : 2
    Avail Dev Size : 1831622064 (873.39 GiB 937.79 GB)
    Array Size : 915811008 (873.39 GiB 937.79 GB)
    Used Dev Size : 1831622016 (873.39 GiB 937.79 GB)
    Data Offset : 262144 sectors
    Super Offset : 8 sectors
    Unused Space : before=262056 sectors, after=48 sectors
    State : clean
    Device UUID : 9d297b70:3ce0ec72:49be866b:52e5b83b
    Internal Bitmap : 8 sectors from superblock
    Update Time : Wed Apr 29 00:07:35 2015
    Bad Block Log : 512 entries available at offset 72 sectors
    Checksum : d8cb5560 - correct
    Events : 36218
    Device Role : Active device 1
    Array State : .A ('A' == active, '.' == missing, 'R' == replacing)

  • Kernel panic when booting btrfs raid1 without sda

    Hi,
    I'm using a default kernel 3.6.3 and have a btrfs raid1 (data and metadata) over two hard drives (sda3 and sdb).  My system is a subvolume, which works fine.  If I remove the first hard drive (which contains grub2), however, and boot using a live cd, I get a kernel panic (image at http://s12.postimage.org/8y0pgvs99/arch … panic.png)
    whenever I try to mount the remaining raid1 as degraded
    mount -o degraded /dev/sda /mnt
    (/sda then is the one and only hard disk).
    I do this all for testing reasons:  I want to simulate a hard drive failure.  But right now it just looks like I could not access that data in case of a real failure ;-(
    There are some kernel patches
    https://patchwork.kernel.org/patch/1267581/
    http://www.spinics.net/lists/linux-btrfs/msg17007.html
    concerning this issue, which seem to have entered the default kernel, and yet the error persists.  (They are contained in the Arch kernel, aren't they?)
    Any suggestions?

    In case anyone has the same problems as I did:  I found a workaround.
    I installed grub on both devices.  Since my /boot and / are only subvolumes in the btrfs `device', they are on both physical disks.  If the first device fails, I simply boot from the grub of the second disk into the system stored on the second disk (with mount option `degraded') -- and since I mount the btrfs-disk via UUID, I don't have to change /etc/fstab or anything.

  • Problem while Binding multiple Parameters to View Object[Solved]

    Hello,
    I am facing problem while binding multiple parameters with different data types in View Object query. For example suppose I have following query in my view object.
    SELECT Header.ADDED_BY
    Header.BATCH_ID,
    FROM BATCH_HEADER Header
    WHERE :1='deptAdmin' and Header.BATCH_ID
    in
    select batch_id from batch_header_dept_mapping where dept_id in(SELECT * FROM TABLE(CAST(:0 AS TABLE_OF_VARCHAR)))
    I am able to pass the Bind variables of Array type for : 0 , using Steve's ArrayOfStringDomain example. (ArrayOfStringDomain) .
    But after passing value to second bind parameter ie.. :1 .
    I am getting the error as follows.
    ## Detail 0 ##
    java.sql.SQLSyntaxErrorException: ORA-00932: inconsistent datatypes: expected - got CHAR.
    I tried to set
    setWhereClauseParam(1,11); // 11 is Number
    setWhereClauseParam(0,arr); // arr is arr = new Array(descriptor,conn,deptid); for in parameter.
    But of no use , Please let me know if any thing missing form me or have any another solutions. Also please provide me any example if have.
    Thank you,
    Sandeep
    Edited by: user11187811 on Oct 23, 2009 7:27 AM
    Edited by: user11187811 on Oct 26, 2009 12:52 AM
    Edited by: user11187811 on Oct 26, 2009 6:51 AM

    hi.
    but when using non-Oracle named parameter binding styles as you've done (ie. , :1), regardless of what number you give each bind variable, they are sequenced 0, 1, 2 etc. As such your bind variable :1 is the 0th parameter, and your bind variable  is the 1st parameter.Your statment is correct.
    :1 i used was actually on 0th position and :0 was on 1 position. Like you said in sequence 0,1,2 etc. Now i get the answer and i corrected My mistake by assigning right values to right binding variable. and problem just solve.
    Thanks Chris.

  • Problem while accessing a complex data type

    hi,
    I am getting a problem while accessing a complex data type
    I have a wsdl as:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions name="OutlookReminderService" targetNamespace="http://ws.aftek.com/outlook-reminder" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://ws.aftek.com/outlook-reminder/schemas" xmlns:ns3="http://java.sun.com/jax-rpc-ri/internal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.aftek.com/outlook-reminder" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <types>
    - <schema targetNamespace="http://ws.aftek.com/outlook-reminder/schemas" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://ws.aftek.com/outlook-reminder/schemas" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    <import namespace="http://java.sun.com/jax-rpc-ri/internal" />
    - <complexType name="TaskVO">
    - <sequence>
    <element name="dueDate" type="long" />
    <element name="percentageComplete" type="int" />
    <element name="priorty" type="int" />
    <element name="reminderDate" type="long" />
    <element name="reminderSet" type="boolean" />
    <element name="startDate" type="long" />
    <element name="status" type="int" />
    <element name="subject" type="string" />
    <element name="taskId" type="string" />
    </sequence>
    </complexType>
    - <complexType name="NoSuchUserException">
    - <sequence>
    <element name="message" type="string" />
    </sequence>
    </complexType>
    - <complexType name="ArrayOfContactVO">
    - <complexContent>
    - <restriction base="soap11-enc:Array">
    <attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:ContactVO[]" />
    </restriction>
    </complexContent>
    </complexType>
    - <complexType name="ContactVO">
    - <sequence>
    <element name="birthDate" type="long" />
    <element name="companyAddress" type="string" />
    <element name="companyName" type="string" />
    <element name="emailID1" type="string" />
    <element name="emailID2" type="string" />
    <element name="emailID3" type="string" />
    <element name="faxNumber" type="string" />
    <element name="firstName" type="string" />
    <element name="homeAddress" type="string" />
    <element name="lastName" type="string" />
    <element name="middleName" type="string" />
    <element name="mobileNumber" type="string" />
    <element name="phoneNumber" type="string" />
    <element name="workContactNumber" type="string" />
    </sequence>
    </complexType>
    </schema>
    - <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://java.sun.com/jax-rpc-ri/internal" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    <import namespace="http://ws.aftek.com/outlook-reminder/schemas" />
    - <complexType name="arrayList">
    - <complexContent>
    - <extension base="tns:list">
    <sequence />
    </extension>
    </complexContent>
    </complexType>
    - <complexType name="list">
    - <complexContent>
    - <extension base="tns:collection">
    <sequence />
    </extension>
    </complexContent>
    </complexType>
    - <complexType name="collection">
    - <complexContent>
    - <restriction base="soap11-enc:Array">
    <attribute ref="soap11-enc:arrayType" wsdl:arrayType="anyType[]" />
    </restriction>
    </complexContent>
    </complexType>
    </schema>
    </types>
    <message name="OutlookServer_addTaskResponse" />
    - <message name="OutlookServer_getListResponse">
    <part name="result" type="ns3:arrayList" />
    </message>
    - <message name="OutlookServer_getContactListResponse">
    <part name="result" type="ns2:ArrayOfContactVO" />
    </message>
    - <message name="NoSuchUserException">
    <part name="NoSuchUserException" type="ns2:NoSuchUserException" />
    </message>
    - <message name="OutlookServer_getContactList">
    <part name="String_1" type="xsd:string" />
    </message>
    - <message name="OutlookServer_getList">
    <part name="String_1" type="xsd:string" />
    </message>
    - <message name="OutlookServer_addTask">
    <part name="String_1" type="xsd:string" />
    <part name="TaskVO_2" type="ns2:TaskVO" />
    </message>
    - <message name="OutlookServer_reminderOccurredResponse">
    <part name="result" type="xsd:boolean" />
    </message>
    - <message name="OutlookServer_reminderOccurred">
    <part name="String_1" type="xsd:string" />
    <part name="TaskVO_2" type="ns2:TaskVO" />
    </message>
    - <portType name="OutlookServer">
    - <operation name="addTask" parameterOrder="String_1 TaskVO_2">
    <input message="tns:OutlookServer_addTask" />
    <output message="tns:OutlookServer_addTaskResponse" />
    <fault message="tns:NoSuchUserException" name="NoSuchUserException" />
    </operation>
    - <operation name="getContactList" parameterOrder="String_1">
    <input message="tns:OutlookServer_getContactList" />
    <output message="tns:OutlookServer_getContactListResponse" />
    <fault message="tns:NoSuchUserException" name="NoSuchUserException" />
    </operation>
    - <operation name="getList" parameterOrder="String_1">
    <input message="tns:OutlookServer_getList" />
    <output message="tns:OutlookServer_getListResponse" />
    <fault message="tns:NoSuchUserException" name="NoSuchUserException" />
    </operation>
    - <operation name="reminderOccurred" parameterOrder="String_1 TaskVO_2">
    <input message="tns:OutlookServer_reminderOccurred" />
    <output message="tns:OutlookServer_reminderOccurredResponse" />
    <fault message="tns:NoSuchUserException" name="NoSuchUserException" />
    </operation>
    </portType>
    - <binding name="OutlookServerBinding" type="tns:OutlookServer">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="addTask">
    <soap:operation soapAction="" />
    - <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </input>
    - <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </output>
    - <fault name="NoSuchUserException">
    <soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </fault>
    </operation>
    - <operation name="getContactList">
    <soap:operation soapAction="" />
    - <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </input>
    - <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </output>
    - <fault name="NoSuchUserException">
    <soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </fault>
    </operation>
    - <operation name="getList">
    <soap:operation soapAction="" />
    - <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </input>
    - <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </output>
    - <fault name="NoSuchUserException">
    <soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </fault>
    </operation>
    - <operation name="reminderOccurred">
    <soap:operation soapAction="" />
    - <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </input>
    - <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </output>
    - <fault name="NoSuchUserException">
    <soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </fault>
    </operation>
    </binding>
    - <service name="OutlookReminderService">
    - <port binding="tns:OutlookServerBinding" name="OutlookServerPort">
    <soap:address location="http://truptid:8080/outlook-reminder-service/outlook" />
    </port>
    </service>
    </definitions>
    My client is :
    private static String     BODY_NAMESPACE_VALUE     = "http://ws.abc.com/outlook-reminder";
         private static String     ENCODING_STYLE_PROPERTY     = "javax.xml.rpc.encodingstyle.namespace.uri";
         private static String     NS_XSD                         = "http://www.w3.org/2001/XMLSchema";
         private static String     URI_ENCODING               = "http://schemas.xmlsoap.org/soap/encoding/";     
    try{
    ServiceFactory factory = ServiceFactory.newInstance();
                        Service service = factory.createService(new QName("OutlookReminderService"));
                        QName port =new QName("OutlookReminderService","OutlookServerPort");
                        Call call =service.createCall(port);
                        call.setTargetEndpointAddress("http://localhost:8080/outlook-reminder-service/outlook?wsdl");
                        call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
                        call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
                        call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
                        call.getReturnType();
                        call.setOperationName(new QName(BODY_NAMESPACE_VALUE, "getList"));
                        QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
                        call.addParameter("String_1", QNAME_TYPE_STRING, ParameterMode.IN);
                        //http://ws.aftek.com/outlook-reminder/schemas
                        QName QNAME_TYPE_VO = new QName("http://schemas.xmlsoap.org/soap/encoding/", "Array");
                        System.out.println("Before Add Parameter");
                   //     call.addParameter("result", QNAME_TYPE_VO, ParameterMode.OUT);
                        call.setReturnType(QNAME_TYPE_VO,ArrayList.class);
                        System.out.println("After Add Parameter");
                        Object[] params ={oUserVO.getUserName()};
                        oArrayList =(ArrayList)call.invoke(params);
                        System.out.println("After Invoked");
                        //System.out.println("invoked"+ arrayList);          
                   catch(SOAPFaultException faultException)
                        moLogger.debug("SOAPFaultException : ", faultException);
                   catch(RemoteException oremoteException)
                        moLogger.debug("RemoteException", oremoteException);
              catch(ServiceException oServiceException)
                        moLogger.debug("ServiceException", oServiceException);          }          
    Error got is :
    trailing block elements must have an id attribute
         at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deserializeMultiRefObjects(SOAPDeserializationContext.java:81)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:239)
         at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103)
         at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:492)
         at com.ail.dhg.poc.business.dao.ContactDAO.getList(ContactDAO.java:255)
         at com.ail.dhg.poc.business.facade.ContactFacade.getList(ContactFacade.java:189)
         at com.ail.dhg.poc.business.AcceptInput.main(AcceptInput.java:72)
    java.lang.NullPointerException
         at com.ail.dhg.poc.business.dao.ContactDAO.getList(ContactDAO.java:277)
         at com.ail.dhg.poc.business.facade.ContactFacade.getList(ContactFacade.java:189)
         at com.ail.dhg.poc.business.AcceptInput.main(AcceptInput.java:72)
    Message was edited by:
    trupti_d

    Use lower case letters for your variable names (name, pwd). The code works then.
    package com.bluenile.bean;
    import java.io.*;
    public class Bean1 implements Serializable
    private String name="Uname";
    private String pwd="Pword";
    public String getName()
    return name;
    public String getPwd()
    return pwd;
    void setName(String name)
    this.name = name;
    void setPwd(String pwd)
    this.pwd = pwd;
    <HTML>
    <BODY BGCOLOR="#FFFFFF">
    <%@ page language="java" contentType="text/html" %>
    <jsp:useBean id="b1" class="com.bluenile.bean.Bean1" />
    <ul>
    <li>Name : <jsp:getProperty name="b1" property="name" />
    <li>Pwd : <jsp:getProperty name="b1" property="pwd" />
    </ul>
    </BODY>
    </HTML>

  • JVM error while reserving big byte array

    Hi all, I've encountered a strange problem while trying to unzip a big file (~100MB):
    I have to work with it in memory so I load it into byte array - this never caused any troubles until I tried to unpack a file of such big size - more detailed investigation showed that just a line like that:
    byte[] bb = new byte[100000000] - ruins a service thread WITHOUT giving an exception (so that, try-catch around it don't react on it)!
    The system config is here:
    P4 1.4GHz, 512 RAM, JDK1.5.u6
    Anyone saw such trouble?

    What was the specific error message or symptom you saw?
    Also please include which version of java you are using (the output
    from java -version).

  • Problem while installing solaris 10 on HP proliant DL 380 G5.

    Hi,
    facing problem while installing solaris 10 05/09 on HP proliant DL 380G5. The array controller is E200.
    i have installed the raid controller driver CPQary3-2.1.0-solaris10-i386, it is going ahead but not detecting the whole hard disk space. My hard disk space is SAS 146GB. There are two 146GB hard disk present. It is showing only 978 MB & only one hard disk. So please help me out. my mail ID is [email protected]

    I have a similar issue trying to load Solaris 10u4 on an IBM x236.
    I had to put in a recognized SCSI card, attach an external array to the card, and install Solaris 10u4 on the array. Then I had to install the correct driver from OpenSolaris (an Adaptec one for IBM ServeRAID), and do a live upgrade onto the now-visible internal disks. Then I removed the array and cleaned up the traces from the live upgrade.
    You may have to do something similar.
    And last month the boot drive got corrupted when power was interrupted. "Oops. Wrong plugs..." This time the external array will stay connected.

  • Problem while dropping a table

    Dear All,
    I am facing a problem while dropping a table in Oracle 10g.
    I am able to find the number of records in the table but unble to delete it.
    SQL> select count(*) from merchant_audit;
    COUNT(*)
    30028278
    SQL> drop table merchant_audit;
    drop table merchant_audit
    ERROR at line 1:
    ORA-00942: table or view does not exist
    I have to drop this table from the database. Please help.
    regards,
    Santhosh

    Hi,
    IS it a table ? Is it your table ?
    Read this example :
    sqlplus scott/*****
    SQL> create table merchant_audit(col1 number);
    Table created.
    SQL> create public synonym merchant_audit for merchant_audit;
    Synonym created.
    SQL> grant select on merchant_audit to merchant;
    Grant succeeded.
    SQL> conn merchant/merchant
    Connected.
    SQL> select count(*) from merchant_audit;
    COUNT(*)
    0
    SQL> drop table merchant_audit;
    drop table merchant_audit
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>
    See owner into the dba_tables, and if synonym into dba_synonyms.
    Nicolas.
    Message was edited by:
    Nicolas Gasparotto

  • Facing problem while going to  catch return result from web-services.

    Hi everybody,
    I am new to BPEL. I am facing problem while going to catch the attributes of resultsets returning from web-services(QAS). As far as my knowledge, two types of results it should return - XML entities and another is attributes which is coming as the part of XML entitites. I am able to catch the XML entities, but can't catch the attributes under it. Even, I am not able to see whether web-services returning something within that field.
    When, I tried to catch the attribute and store to a temporary varilable using the following code:
    *<assign name="AssignQASDoGetAddress1">*
    *<copy>*
    *<from variable="InvokeQAS_DoSearch_OutputVariable"*
    part="body"
    query="/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded"/>
    *<to variable="temp"/>*
    *</copy>*
    *</assign>*
    but, I am facing the following selectionFailure errors after running it:
    *"{http://schemasxmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.*
    -<selectionFailure xmlns="http://schemasxmlsoap.org/ws/2003/03/business-process/">
    -<part name="summary">
    *<summary>*
    empty variable/expression result.
    xpath variable/expression expression "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')" is empty at line 269, when attempting reading/copying it.
    Please make sure the variable/expression result "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')"is not empty.
    *</summary>*
    *</part>*
    *</selectionFailure>*
    Getting this error it seems to me that web-service is returning nothing, but, it returns something as it has been catched using a method called isPostcodeRecoded() Java Code in Oracle ADF. This method has been used as it should return boolean whereas for catching the xml entities using java code we used the method like getPostcode(), getMoniker().
    For your information, we are using Jdeveloper as the development tool for building the BPEL process.
    Am I doing any syntax error. Please consider it as urgent and provide me asolution.
    Thanks in advance.
    Chandrachur.

    Thanks Dave and Marc, for your suggestions. Actually what I found is QAS web-service is returning nothing as attributes when the attributes are set to the default value. For example, following is the part of the wsdl of the result which QAS webservice returns.
    <xs:element name="QASearchResult">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="QAPicklist" type="qas:QAPicklistType" minOccurs="0" />
    <xs:element name="QAAddress" type="qas:QAAddressType" minOccurs="0" />
    </xs:sequence>
    <xs:attribute name="VerifyLevel" type="qas:VerifyLevelType" default="None" />
    </xs:complexType>
    </xs:element>
    <xs:complexType name="QAPicklistType">
    - <xs:sequence>
    <xs:element name="FullPicklistMoniker" type="xs:string" />
    <xs:element name="PicklistEntry" type="qas:PicklistEntryType" minOccurs="0" maxOccurs="unbounded" />
    <xs:element name="Prompt" type="xs:string" />
    <xs:element name="Total" type="xs:nonNegativeInteger" />
    </xs:sequence>
    <xs:attribute name="AutoFormatSafe" type="xs:boolean" default="false" />
    <xs:attribute name="AutoFormatPastClose" type="xs:boolean" default="false" />
    <xs:attribute name="AutoStepinSafe" type="xs:boolean" default="false" />
    <xs:attribute name="AutoStepinPastClose" type="xs:boolean" default="false" />
    <xs:attribute name="LargePotential" type="xs:boolean" default="false" />
    <xs:attribute name="MaxMatches" type="xs:boolean" default="false" />
    <xs:attribute name="MoreOtherMatches" type="xs:boolean" default="false" />
    <xs:attribute name="OverThreshold" type="xs:boolean" default="false" />
    <xs:attribute name="Timeout" type="xs:boolean" default="false" />
    </xs:complexType>
    <xs:complexType name="PicklistEntryType">
    - <xs:sequence>
    <xs:element name="Moniker" type="xs:string" />
    <xs:element name="PartialAddress" type="xs:string" />
    <xs:element name="Picklist" type="xs:string" />
    <xs:element name="Postcode" type="xs:string" />
    <xs:element name="Score" type="xs:nonNegativeInteger" />
    </xs:sequence>
    <xs:attribute name="FullAddress" type="xs:boolean" default="false" />
    <xs:attribute name="Multiples" type="xs:boolean" default="false" />
    <xs:attribute name="CanStep" type="xs:boolean" default="false" />
    <xs:attribute name="AliasMatch" type="xs:boolean" default="false" />
    <xs:attribute name="PostcodeRecoded" type="xs:boolean" default="false" />
    <xs:attribute name="CrossBorderMatch" type="xs:boolean" default="false" />
    <xs:attribute name="DummyPOBox" type="xs:boolean" default="false" />
    <xs:attribute name="Name" type="xs:boolean" default="false" />
    <xs:attribute name="Information" type="xs:boolean" default="false" />
    <xs:attribute name="WarnInformation" type="xs:boolean" default="false" />
    <xs:attribute name="IncompleteAddr" type="xs:boolean" default="false" />
    <xs:attribute name="UnresolvableRange" type="xs:boolean" default="false" />
    <xs:attribute name="PhantomPrimaryPoint" type="xs:boolean" default="false" />
    </xs:complexType>
    here the attributes like FullAddress, PostcodeRecodedare , etc. are not being return by the web-service when it is getting the default value false. But, if it gets true then , it is being displayed at the BPEL console.
    Do you have any idea how can I catch the attributes and its value even when it gets the default value which is already set. Previously, it was returning(it was not being displayed at the console).
    Thanks once again for your valuable suggestions...!!!
    Chandrachur.

  • Problem while inserting into a table which has ManyToOne relation

    Problem while inserting into a table *(Files)* which has ManyToOne relation with another table *(Folder)* involving a attribute both in primary key as well as in foreign key in JPA 1.0.
    Relevent Code
    Entities:
    public class Files implements Serializable {
    @EmbeddedId
    protected FilesPK filesPK;
    private String filename;
    @JoinColumns({
    @JoinColumn(name = "folder_id", referencedColumnName = "folder_id"),
    @JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)})
    @ManyToOne(optional = false)
    private Folders folders;
    public class FilesPK implements Serializable {
    private int fileId;
    private int uid;
    public class Folders implements Serializable {
    @EmbeddedId
    protected FoldersPK foldersPK;
    private String folderName;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "folders")
    private Collection<Files> filesCollection;
    @JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)
    @ManyToOne(optional = false)
    private Users users;
    public class FoldersPK implements Serializable {
    private int folderId;
    private int uid;
    public class Users implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer uid;
    private String username;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "users")
    private Collection<Folders> foldersCollection;
    I left out @Basic & @Column annotations for sake of less code.
    EJB method
    public void insertFile(String fileName, int folderID, int uid){
    FilesPK pk = new FilesPK();
    pk.setUid(uid);
    Files file = new Files();
    file.setFilename(fileName);
    file.setFilesPK(pk);
    FoldersPK folderPk = new FoldersPK(folderID, uid);
         // My understanding that it should automatically handle folderId in files table,
    // but it is not…
    file.setFolders(em.find(Folders.class, folderPk));
    em.persist(file);
    It is giving error:
    Internal Exception: java.sql.SQLException: Field 'folderid' doesn't have a default value_
    Error Code: 1364
    Call: INSERT INTO files (filename, uid, fileid) VALUES (?, ?, ?)_
    _       bind => [hello.txt, 1, 0]_
    It is not even considering folderId while inserting into db.
    However it works fine when I add folderId variable in Files entity and changed insertFile like this:
    public void insertFile(String fileName, int folderID, int uid){
    FilesPK pk = new FilesPK();
    pk.setUid(uid);
    Files file = new Files();
    file.setFilename(fileName);
    file.setFilesPK(pk);
    file.setFolderId(folderId) // added line
    FoldersPK folderPk = new FoldersPK(folderID, uid);
    file.setFolders(em.find(Folders.class, folderPk));
    em.persist(file);
    My question is that is this behavior expected or it is a bug.
    Is it required to add "column_name" variable separately even when an entity has reference to ManyToOne mapping foreign Entity ?
    I used Mysql 5.1 for database, then generate entities using toplink, JPA 1.0, glassfish v2.1.
    I've also tested this using eclipselink and got same error.
    Please provide some pointers.
    Thanks

    Hello,
    What version of EclipseLink did you try? This looks like bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=280436 that was fixed in EclipseLink 2.0, so please try a later version.
    You can also try working around the problem by making both fields writable through the reference mapping.
    Best Regards,
    Chris

  • A web developer problem while running a web application

    Hi all,
    I'm novice to J2EE.
    I've encountered a problem while accessing the deployed module in weblogic 8.1 server.
    I'm sure that the webapplication module is deployed as i saw my module in administration console & also the status said that it is deployed.
    when i access my web application by specifying the proper server and port no and context root it is showing
    either 505 - resource not found error(http://localhost:7001/Suresh-2/Suresh) or 404 - not found error.( http://localhost:7001/Suresh-2/Suresh)
    Now let me elaborate what i've done till now.
    My webapplication folder structure is : C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\classes\Sai\ServExamp.class
    My servlet is ServExamp.java
    I created a folder called "Suresh". In that folder created another folder called "WEB-INF". In WEB-INF created a folder called "Classes".
    Since my servlet is in package "Sai", the .class file reside in \Suresh\WEB-INF\Classes\Sai\ServExamp.class
    The source code is :
    package Sai;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class ServExamp extends HttpServlet
    public void doPost(HttpServletRequest req,HttpServletResponse res)throws IOException
    PrintWriter out=res.getWriter();
    java.util.Date today=new java.util.Date();
    out.println("<html>"+"<body>"+
    "<h1 align=center>HF\'s Chapter1 Servlet </h1>"
    +"<br>"+today+"</body>"+"</html>");
    Now i'm almost done creating a web application. Next, I constructed a simple web.xml descriptor that gives a web friendly name for my servlet, and points to the servlet. I constructed web.xml descriptor file in the WEB-INF folder (C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\).
    The web.xml file source is :
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>Hello World Web Application</display-name>
    <description>Test Servlet</description>
    <servlet>
    <servlet-name>ServExamp</servlet-name>
    <servlet-class>Sai.ServExamp</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ServExamp</servlet-name>
    <url-pattern>/Suresh</url-pattern>
    </servlet-mapping>
    </web-app>
    Now I have told Weblogic that the URI /Suresh corresponds to my servlet "Sai.ServExamp".
    My Web Application is ready to be deployed at this point. I logged onto Weblogic's admin console,
    1) clicked on deployments, then navigated to "Web Application Modules" .
    2) Clicked "Deploy new Web Application Module"
    3) Navigated to the location of your web application folder (Suresh). There was a radio button next to it indicating that I can select that folder as a valid web application.
    4) I Clicked that radio button and clicked "Target Module".
    5) It informed that my web application "Suresh" will be deployed to myServer.It asked a name for my web application deployment. By default it was "Suresh"
    I clicked Deploy.
    6) After deployment, my web application "Suresh" appeared in the "Web Application Modules" tree on the left.
    I Clicked on "Suresh"( my web application) then clicked the testing tab, then clicked the link shown there(http://localhost:7001/Suresh-2).
    It was not showing my servlet (showed a 403 error)
    Error - 403
    This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
    I think so it came b'coz I don't have an index.html or index.jsp page.
    7)Instead,I added my servlet on to the URL it provided.
    http://localhost:7001/Suresh-2/Suresh
    It is showing these error code: Http: 505 resource not allowed
    The page cannot be displayed
    The page you are looking for cannot be displayed because the address is incorrect.
    Please try the following:
    If you typed the page address in the Address bar, check that it is entered correctly.
    Open the localhost:7001 home page and then look for links to the information you want.
    Click Search to look for information on the Internet.
    when i just type : http://localhost:7001/ -> Error 404 not found error
    it's showing
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I want to run my web application & any help would be appreciated.
    Thanks in advance.
    with regards,
    S.SayeeNarayanan.
    Note: I even deployed my war file, which i got by execution of (jar cv0f webapp.war . ) command from the root directory of my web application i.e. Suresh
    Then executed my webapplication it is showing
    error-505 resource not allowed.
    --------------------------------------------------------------------------------------------

    try a fully qualified path to the pem file

Maybe you are looking for

  • I have lost all my music from the library, how do i get it back?

    I have lost all my music from the library, how do i get it back?

  • Sql query to Load only new records,or update old records

    Hi, I need a query (not stored procedure) to insert only new records otherwise update existing records. I tried by creating "Merge statement in SQl", but the sql query is wrong,it is not updating,always inserting records(replicating..1,2,4,8,16,32..)

  • Huge Delay in accessing DataBase When Net is down

    Hi, I am using MySQL 4.1.9 as the backend for my Java Application On Linux Fedora Core III. MySQL and the Java Application, both resides in the same host. When net (Internet) is Up, there is no delays in accessing MySQL Databases. And its too slow wh

  • Netbeans UTF-8 cannot read arabic characters

    Hi I wondering how to deal with arabic in netbeans my platform is Vista with Nebeans5.5 and the locale is Arabic I try this : Properties pi = System.getProperties(); pi.put("file.encoding", "UTF-8"); System.setProperties(pi);         System.out.print

  • RAM PREVIEW VERY SLOW (FAR FROM REAL TIME) ON NEW MAC PRO

    Good afternoon I have the new mac pro with 8 cores, 64 Gb of Ram and dual AMD 700 graphic card, but the preview on After effects is slower than in the old mac pro (from 2010). I have set the preferences as told in your website and everything stills t