Signed cab file using j++, IE, XERCES

HI:
i am using j++ and adding class files from XERCES.jar
for parsing. I add the class files manually using J++
and they are definetly in the .cab file. And i am sure it downloads the cab w/ the files. But,
IE 5.5 gives me a classNotFound Exception when it tries to load in the classes. Any idea why they would not show up???
THANKS

1. make sure you first unjar XERCES.jar in the same directory where your classes are
2. make the cab file using all the classes, yours and the ones from the jar file.
Here is an example:
cd <directory_with_all_classes>
cabarc -s 6144 -r -p n mycab.cab *.class *.gif *.ini *.propertiesIf you want, you can then sign the cab file using signcode.
I hope this will help you.
Iulian

Similar Messages

  • How to create and sign CAB files info on Supplement Option

    To all Supplement Option subscribers:
    At the supplement option for iDevelopment Accelerators, I uploaded a zip with detailed info on how to create and sign CAB files (necessary when you are running your application on the Native IE Java Virtual Machine).
    Not all functionality provided to you through JInitiator will work (e.g. WebUtil doesn't) but the way how to make and sign a CAB file will become more easy.
    Cheers,
    Marc Vahsen
    Headstart Team

    This defeats the purpose of trying to centralize SAP-related web resources on the SAP server. Typically IIS/Apache or other non-SAP servers are under the control of IT and not the SAP BASIS group.
    We simply would like to have a centralized location to store static web files so that they are not overwritten during Portal support pack applications.

  • Unable to get jarsigner to sign jar file using pkcs11 smartcard

    I'm using a JDK jdk1.6.0_14 with a datakey smartcard with the below info in pkcs11.cfg file:
    name = DK330
    library = c:\windows\system32\dkck232.dll
    I have also configured the java.security file to include the security.provider.10=sun.security.pkcs11.SunPKCS11 c:/pkcs11.cfg
    I have my environment set for the below to keep it simple as possible:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_14
    CLASSPATH=C:\Program Files\Java\jdk1.6.0_14\lib
    PATH=C:\Program Files\Java\jdk1.6.0_14\bin;c:\windows;c:\windows\system32
    1) I am able to Confirm that the secret key is present in the keystore
    keytool -v -list -keystore NONE -storetype PKCS11 -storepass xxxxxx
    Keystore type: PKCS11
    Keystore provider: SunPKCS11-DK330
    Your keystore contains 1 entry
    Alias name: CS.NOLSC.002's U.S. Government ID
    Entry type: PrivateKeyEntry
    Certificate chain length: 1
    Certificate[1]:
    Owner: CN=CS.NOLSC.002, OU=USN, OU=PKI, OU=DoD, O=U.S. Government, C=US, OU=PKI, OU=DoD, O=U.S. Government, C=US
    Issuer: CN=DOD CA-14, OU=PKI, OU=DoD, O=U.S. Government, C=US
    Serial number: 3e8e
    Valid from: Mon Feb 05 14:53:22 EST 2007 until: Thu Feb 04 14:53:22 EST 2010
    Certificate fingerprints:
    MD5: 9D:34:AF:D8:DE:18:15:78:D6:88:3D:37:83:FA:DC:E8
    SHA1: 8A:BB:39:D5:2B:45:F7:CE:A3:93:C5:71:5C:36:DC:FE:3F:B4:7D:9A
    Signature algorithm name: SHA1withRSA
    Version: 3
    Extensions:
    #1: ObjectId: 2.5.29.15 Criticality=true
    KeyUsage [
    DigitalSignature etc
    2) When I try to sign the applet using the below commands I get the same errors:
    command 1:
    jarsigner -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg ${java.home}/lib/security/pkcs11.cfg sfilechooser.jar "CS.NOLSC.002's U.S. Government ID"
    I get this error::
    jarsigner error: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
    command 2:
    jarsigner -verbose -keystore NONE -storetype PKCS11 -storepass xxxxxx sfilechooser.jar "CS.NOLSC.002's U.S. Government ID"jarsigner error: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
    I can also confirm the jar file that I'm trying to sign is unsigned using the below command without problem.
    C:\Program Files\Java\jdk1.6.0_14\bin>jarsigner -verify -verbose -certs -keystore NONE -storetype PKCS11 sfilechooser.jar
    Enter Passphrase for keystore:
    0 Wed Jul 08 09:36:06 EDT 2009 META-INF/
    71 Wed Jul 08 09:36:06 EDT 2009 META-INF/MANIFEST.MF
    4227 Tue Jun 09 09:56:20 EDT 2009 DirList.class
    0 Wed Jul 08 09:29:52 EDT 2009 FileChooserPackage/
    4728 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/DirUtil.class
    809 Fri May 29 13:05:42 EDT 2009 FileChooserPackage/FileChooserBean$AWTFileDialogThread.class
    765 Fri May 29 13:05:42 EDT 2009 FileChooserPackage/FileChooserBean$AWTSaveDialogThread.class
    819 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$FileChooserBeanThread.class
    1015 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$FormsDecoderException.class
    815 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$SaveFileChooserThread.class
    17198 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean.class
    s = signature was verified
    m = entry is listed in manifest
    k = at least one certificate was found in keystore
    i = at least one certificate was found in identity scope
    jar is unsigned. (signatures missing or not parsable)
    ======================================
    What could be my problem to get my applet signed? I'm at a loss.

    I found the problem.
    I was able to use jarsigner correctly after I backed off on the GemPlus driver version from v4.7.062 file name dkck232.dll to the previous version of dkck201.dll at v4.7.062.

  • How to sign PDF files using Adobe Reader or Acrobat 11

    This tutorial, explores the various things to consider when using different signing techniques in Acrobat XI or Adobe Reader XI. How to use an image like your scanned signature when you sign a document will also be covered.

    Open the PDF file with File > Open... in Adobe Reader and print it with File > Print

  • How can i digital sign a file using JAVA?

    and how can i verify the digitially signed file was not altered by anyone using JAVA?
    please provide me with the simpliest way to do this.
    thanks a lot.

    I have no idea but you might want to take a look at :
    http://java.sun.com/j2se/1.5.0/docs/guide/security/index.html
    hth

  • URLClassLoader + dynamically loading signed jar files

    I have an applet that does not know all of the jar files it will need to load at startup.
    I would like to dynamically load these signed jar files using the URLClassLoader, however it does not recognize these jar files as being signed and I get java.security.AccessControlException: access denied errors.
    Any suggestions?
    Thanks!

    Try this classloader for loading the jars, it should to the trick:
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.net.URLStreamHandlerFactory;
    import java.security.AllPermission;
    import java.security.CodeSource;
    import java.security.PermissionCollection;
    import java.security.Permissions;
    public class AllPermissionsClassLoader extends URLClassLoader {
        public AllPermissionsClassLoader (URL[] urls) {
            super(urls);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent) {
            super(urls, parent);
            System.out.println(parent);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) {
            super(urls, parent, factory);
        protected PermissionCollection getPermissions (CodeSource codesource) {
            Permissions permissions = new Permissions();
            permissions.add(new AllPermission());
            return permissions;
    }

  • How to remove password-encryption in a signed PDF file?

    I can open a password-encryption and digitally signed PDF file using Acrobat X Standard but cannot remove the password protection.
    Can anyone help me remove the password encryption?  The Acrobat only allows to set passsord encryption before adding digital signature to a PDF file.  Can I sign a PDF file and then encrypt it with password?  Thanks.

    Removing the security, if it is possible, would destroy the signature.
    Encrypting a signed PDF would destroy the signature.
    This is because signatures validate the file exactly as it is, and changes to the file break the signature by design. Setting security is a change to the PDF (a big change).

  • Signing exe files

    Does anyone add a (company) signature to their Cap4 produced exe files? We try to sign all our executables and had no problems with Cap3 but are now having problems. The signed exe doesn't run, error screen shots attached below.
    Some details... I'm using the aggregator to publish the .exe. All the swf files within the aggregator are swf files published with Flash Player 9. The exe runs fine before the signature.
    Here is some information on how we sign the files:
    We use signtool.exe to digitally sign files. This is a program distributed by Microsoft, here is a link to the documentation:
    http://msdn.microsoft.com/en-us/library/8s9b9yaz(VS.80).aspx
    We also tried to sign the file using InstallShield 2008. This program signs all of our installs (exe files). We have never had any problems up to this point with any signed files.
    Thanks,
    Janet

    Hi there
    From past experience the $ is not a valide integer error results when a .EXE attempts to open a SWF and the EXE cannot locate the SWF.
    Hopefully that information may help guide you in where to look.
    This one is new for Aggregator EXE files. I've not seen it reported before. You should probably file a bug report to Adobe about it.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Extract cab file contents

    I have a large number of .cab files used in custom application installs. I need to extract a .ini file from each .cab file and then read several specific lines from each .ini file. I have not been able to find way to open and extract the contents of a .cab file with LabView, any ideas? 

    rythm9 wrote:
    I have a large number
    of .cab files used in custom application installs. I need to extract a
    .ini file from each .cab file and then read several specific lines
    from each .ini file. I have not been able to find way to open
    and extract the contents of a .cab file with LabView, any
    ideas? 
    CAB file is a proprietary file
    format from Microsoft. LabVIEW does not have any built in functionality
    to deal with cab files. However you created them somehow apparently so
    then you should know how to extract something from them too.
    The simplest solution is to use the system utility extract.exe. It
    comes with every Windows install and does know how to deal with CAB
    files. Check out http://www.modem-help.co.uk/help/cab.html for an
    explanation of the extract.exe command line. You can call that
    extract.exe command with System Exec.vi.
    Rolf Kalbermatter
    Message Edited by rolfk on 10-20-2005 03:41 PM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to install MSFT application security updates in cab file format using DISM

    Hi,
    I tried to install security updates for MS Office which are cab files like any other windows security updates cab file. It is giving an error called "file not found". But other windows security updates cab files are installing fine without any error.
    I tried to install these updates manually using DISM on commandline. It is not installing. I even tried using pkgmgr.exe, but that is not working either. I looked at DISM logs which is saying it failed opening the cab file. I tried different other commandline
    options of DISM to install this, but nothing else is suitable for a cab file install.
    Does anyone know how to install a cab file for application security updates via DISM.exe or other MSFT commandline tools?
    Thanks,
    ANSA
    DISM log:
    =======
    2015-02-25 14:42:59, Info                  DISM   PID=4916 Scratch directory set to 'C:\Windows\TEMP\'. - CDISMManager::put_ScratchDir
    2015-02-25 14:42:59, Info                  DISM   PID=4916 Successfully loaded the ImageSession at "C:\Windows\System32\Dism" - CDISMManager::LoadImageSession
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Failed to get and initialize the PE Provider.  Continuing by assuming that
    it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Manager: PID=4916 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE:
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE:
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.1.7601, Running architecture=amd64, Number of processors=4
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Executing command line: "C:\Windows\System32\Dism.exe" /online /add-package /packagepath:"C:\ProgramData\Application
    Data\Autonomic\ANSA Patch Manager\_Installs\mscomctlocx-x-none_8699d53bec82460b948612f4f35d2f6a0ad018f4.cab" /ignorecheck /norestart
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Getting Provider FolderManager - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Loading Provider from location C:\Windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Connecting to the provider located at C:\Windows\System32\Dism\FolderProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Getting Provider FolderManager - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=4916 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Manager: PID=4916 Successfully loaded the ImageSession at "C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B"
    - CDISMManager::LoadImageSession
    2015-02-25 14:42:59, Info                  DISM   DISM Image Session: PID=11836 Instantiating the Provider Store. - CDISMImageSession::get_ProviderStore
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Initializing a provider store for the IMAGE session type. - CDISMProviderStore::Final_OnConnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\OSProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Connecting to the provider located at C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\OSProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM OS Provider: PID=11836 Defaulting SystemPath to C:\ - CDISMOSServiceManager::Final_OnConnect
    2015-02-25 14:42:59, Info                  DISM   DISM OS Provider: PID=11836 Defaulting Windows folder to C:\Windows - CDISMOSServiceManager::Final_OnConnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Attempting to initialize the logger from the Image Session. - CDISMProviderStore::Final_OnConnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\LogProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Connecting to the provider located at C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\LogProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Getting Provider OSServices - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\PEProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Warning               DISM   DISM Provider Store: PID=11836 Failed to Load the provider: C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\PEProvider.dll.
    - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Failed to get and initialize the PE Provider.  Continuing by assuming that
    it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Manager: PID=4916 Image session successfully loaded from the temporary location: C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B
    - CDISMManager::CreateImageSession
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Getting Provider OSServices - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  CSI    00000001 Shim considered [l:256{128}]"\??\C:\Windows\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\pkgmgr.exe"
    : got STATUS_OBJECT_PATH_NOT_FOUND
    2015-02-25 14:42:59, Info                  CSI    00000002 Shim considered [l:250{125}]"\??\C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\pkgmgr.exe"
    : got STATUS_SUCCESS
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Target image information: OS Version=6.1.7601.17592, Image architecture=amd64
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Getting the collection of providers from an image provider store type. - CDISMProviderStore::GetProviderCollection
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\CbsProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Connecting to the provider located at C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\CbsProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Encountered a servicing provider, performing additional servicing initializations.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  CSI    00000001 Shim considered [l:256{128}]"\??\C:\Windows\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\pkgmgr.exe"
    : got STATUS_OBJECT_PATH_NOT_FOUND
    2015-02-25 14:42:59, Info                  CSI    00000002 Shim considered [l:250{125}]"\??\C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\pkgmgr.exe"
    : got STATUS_SUCCESS
    2015-02-25 14:42:59, Info                  DISM   DISM Package Manager: PID=11836 Finished initializing the CbsConUI Handler. - CCbsConUIHandler::Initialize
    2015-02-25 14:42:59, Info                  CSI    00000001 Shim considered [l:256{128}]"\??\C:\Windows\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\pkgmgr.exe"
    : got STATUS_OBJECT_PATH_NOT_FOUND
    2015-02-25 14:42:59, Info                  CSI    00000002 Shim considered [l:250{125}]"\??\C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\pkgmgr.exe"
    : got STATUS_SUCCESS
    2015-02-25 14:42:59, Info                  DISM   DISM Package Manager: PID=11836 CBS is being initialized for online use. More information about CBS actions can
    be located at: %windir%\logs\cbs\cbs.log - CDISMPackageManager::Initialize
    2015-02-25 14:42:59, Info                  DISM   DISM Package Manager: PID=11836 Loaded servicing stack for online use only. - CDISMPackageManager::RefreshInstanceAndLock
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\MsiProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Connecting to the provider located at C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\MsiProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Encountered a servicing provider, performing additional servicing initializations.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\IntlProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Connecting to the provider located at C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\IntlProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Encountered a servicing provider, performing additional servicing initializations.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\DmiProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Connecting to the provider located at C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\DmiProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Encountered a servicing provider, performing additional servicing initializations.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  CSI    00000001 Shim considered [l:256{128}]"\??\C:\Windows\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\pkgmgr.exe"
    : got STATUS_OBJECT_PATH_NOT_FOUND
    2015-02-25 14:42:59, Info                  CSI    00000002 Shim considered [l:250{125}]"\??\C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\pkgmgr.exe"
    : got STATUS_SUCCESS
    2015-02-25 14:42:59, Info                  DISM   DISM OS Provider: PID=11836 Successfully loaded the hive. - CDISMOSServiceManager::DetermineBootDrive
    2015-02-25 14:42:59, Info                  DISM   DISM Driver Manager: PID=11836 Further logs for driver related operations can be found in the target operating
    system at %WINDIR%\inf\setupapi.offline.log - CDriverManager::Initialize
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\UnattendProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Connecting to the provider located at C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\UnattendProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Encountered a servicing provider, performing additional servicing initializations.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\SmiProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Connecting to the provider located at C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\SmiProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Encountered a servicing provider, performing additional servicing initializations.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has not previously been encountered.  Attempting to initialize the
    provider. - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Loading Provider from location C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\TransmogProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Connecting to the provider located at C:\Windows\TEMP\7D6E845E-B72B-4EAC-B1F4-E853B46FBB3B\TransmogProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Encountered a servicing provider, performing additional servicing initializations.
    - CDISMProviderStore::Internal_LoadProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Getting Provider DISM Package Manager - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Getting Provider DISM Unattend Manager - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Package Manager
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: DISM Package Manager.
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: OSServices
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: MsiManager
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: MsiManager.
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: IntlManager
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: IntlManager.
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DriverManager
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: DriverManager.
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Unattend Manager
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: DISM Unattend Manager.
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: SmiManager
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Edition Manager
    2015-02-25 14:42:59, Info                  DISM   DISM Transmog Provider: PID=11836 Current image session is [ONLINE] - CTransmogManager::GetMode
    2015-02-25 14:42:59, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Edition Manager.
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Getting Provider DISM Package Manager - CDISMProviderStore::GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Provider has previously been initialized.  Returning the existing instance.
    - CDISMProviderStore::Internal_GetProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Package Manager: PID=11836 Processing the top level command token(add-package). - CPackageManagerCLIHandler::Private_ValidateCmdLine
    2015-02-25 14:42:59, Info                  DISM   DISM Package Manager: PID=11836 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine
    2015-02-25 14:42:59, Info                  DISM   DISM Package Manager: PID=11836 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine
    2015-02-25 14:42:59, Info                  DISM   DISM Package Manager: PID=11836 Encountered the option "packagepath" with value "C:\ProgramData\Application
    Data\Autonomic\ANSA Patch Manager\_Installs\mscomctlocx-x-none_8699d53bec82460b948612f4f35d2f6a0ad018f4.cab" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
    2015-02-25 14:42:59, Error                 DISM   DISM Package Manager: PID=11836 Failed opening package. - CDISMPackageManager::Internal_CreatePackageByPath(hr:0x80070002)
    2015-02-25 14:42:59, Error                 DISM   DISM Package Manager: PID=11836 Failed to get the underlying CBS package. - CDISMPackageManager::OpenPackageByPath(hr:0x80070002)
    2015-02-25 14:42:59, Error                 DISM   DISM Package Manager: PID=11836 Failed to open the package at location: "C:\ProgramData\Application Data\Autonomic\ANSA
    Patch Manager\_Installs\mscomctlocx-x-none_8699d53bec82460b948612f4f35d2f6a0ad018f4.cab" - CPackageManagerCLIHandler::ProcessPackagePath(hr:0x80070002)
    2015-02-25 14:42:59, Error                 DISM   DISM Package Manager: PID=11836 Failed while processing command add-package. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070002)
    2015-02-25 14:42:59, Info                  DISM   DISM Package Manager: PID=11836 Further logs for online package and feature related operations can be found at
    %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
    2015-02-25 14:42:59, Error                 DISM   DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=80070002
    2015-02-25 14:42:59, Info                  DISM   DISM Image Session: PID=11836 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Finalizing the servicing provider(DISM Package Manager) - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Package Manager: PID=11836 Finalizing CBS core. - CDISMPackageManager::Finalize
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Disconnecting Provider: DISM Package Manager - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Found the OSServices.  Waiting to finalize it until all other providers are
    unloaded. - CDISMProviderStore::Final_OnDisconnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Finalizing the servicing provider(MsiManager) - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Disconnecting Provider: MsiManager - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Finalizing the servicing provider(IntlManager) - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Disconnecting Provider: IntlManager - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Found the PE Provider.  Waiting to finalize it until all other providers
    are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Finalizing the servicing provider(DriverManager) - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Disconnecting Provider: DriverManager - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Finalizing the servicing provider(DISM Unattend Manager) - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Disconnecting Provider: DISM Unattend Manager - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Found the OSServices.  Waiting to finalize it until all other providers are
    unloaded. - CDISMProviderStore::Final_OnDisconnect
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Finalizing the servicing provider(SmiManager) - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Disconnecting Provider: SmiManager - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Finalizing the servicing provider(Edition Manager) - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Disconnecting Provider: Edition Manager - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Releasing the local reference to OSServices. - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Disconnecting Provider: OSServices - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:42:59, Info                  DISM   DISM Provider Store: PID=11836 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:43:00, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2015-02-25 14:43:00, Info                  DISM   DISM.EXE:
    2015-02-25 14:43:00, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2015-02-25 14:43:00, Info                  DISM   DISM.EXE:
    2015-02-25 14:43:00, Info                  DISM   DISM Image Session: PID=4916 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
    2015-02-25 14:43:00, Info                  DISM   DISM Provider Store: PID=4916 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    2015-02-25 14:43:00, Info                  DISM   DISM Provider Store: PID=4916 Found the OSServices.  Waiting to finalize it until all other providers are
    unloaded. - CDISMProviderStore::Final_OnDisconnect
    2015-02-25 14:43:00, Info                  DISM   DISM Provider Store: PID=4916 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider

    You need to extract and install it - Refer this link
    http://blogs.technet.com/b/askcore/archive/2011/02/15/how-to-use-dism-to-install-a-hotfix-from-within-windows.aspx
    Regards Chen V [MCTS SharePoint 2010]

  • Data1.cab file cannot be used

    I was just given my daughters Ipod since she got a new one and am trying to load the software and get that the data1.cab file can not be used, it says it could be a network error, an error reading from the cd or a problem with this package, I than said to retry and got the same message, than said to ignore it and got internal error 2350 and than error1603
    Can anyone tell me what to do.

    let's try getting an itunes 7 installer log to the Apple engineers for a look.
    1. Open a command prompt window. (Start menu -> Run. Type in "cmd". Hit return.)
    2. Drag and drop iTunesSetup.exe onto the window so that the full pathname of the file is at the command line prompt.
    3. Type in a space, then the following line:
    /l*v C:\log.txt
    4. Hit return.
    5. The installer will create a log file:
    C:\log.txt
    Find that file and send it as an attachment to this email address.
    in the email to Roy, be sure to include the following information:
    - A link to the thread on Apple Discussions where the issue is being discussed
    - The username you are using in the thread
    - The version of iTunes you are using or trying to use
    - the version of Windows you are using (mention service packs)
    - A concise description of the issue you are seeing
    - The exact text of the error message you are seeing

  • How to sign multiple jar files using the same certificate..?

    hi,
    I want to run my application using Java Web Start.. i am using around 16 different jar files out of which around 13 are 3rd party component jars. I want to sign these jars using the same certifcate..., i am using the follwing code to sign the jars:
    (for the jar file ischeduler.jar)
    keytool -genkey -alias signFiles91 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischeduler.jar ischeduler.jar signFiles91
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles91 -file ischeduler.cer
    keytool -import -alias DCA2 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    (for the jar file ischedulerclient.jar)
    keytool -genkey -alias signFiles92 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischedulerclient.jar ischedulerclient.jar signFiles92
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles92 -file ischeduler.cer
    keytool -import -alias DCA3 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    but when i use the above signed jars in my application i get an error saying:
    "jars not signed by the same certificate"
    can someone plz tel me wher is the error....thanx
    andy

    Well for mulitple signing of jar files you can use ANT tool. Its easier and faster.
    Regarding the present problem -- hmm.. well it looks like you are using 2 different alias names for signing the jar file. Try using the same alias name and that might solve your problem.
    regards
    Saby

  • Using "done signing" increases file size 3 to 5 times !

    The new feature in Acrobat Reader 10.1.2 onwards is great - I can add a signature and a date.
    BUT if I use "done signing" the file size increases 3 to 5 times the original file size !  So I used File Save - and that worked well.
    Then I updated to 10.1.6 - and now the signature that I added is not "fixed" - it can be deleted or moved !
    We don't want to use digital signatures !!
    Any suggestions ?
    Thanks

    When you click the "Done Signing" button, the signature appearance and any text you added is flattened and becomes regular page contents and it won't be able to be moved or deleted as you describe. I also don't see a file size increase as you describe. Are you using an image for the signature and if so, how large is it (in bytes)?

  • Using MBSA 2.2 getting error 'Cannot load security CAB file" when attempting to scan any remote systems

    Could scan all remote servers previously from same sources and version.  Replaced/updated all cabs and other files associated (C:\Documents and Settings\<username>\Local Settings\Application Data\Microsoft\MBSA\Cache) with no change.  Removed/re-installed
    MBSA 2.2 with not effect.
    Local scans appear to function fine, but do not wish to download MBSA on EVERY system we need to scan.
    Settings for remote scan are: Check for security updates>Configure computers for Microsoft
    Update and scanning prerequisites>Advanced Update Services
    options:>Scan using
    Microsoft Update only
    Have attempted from different systems/OS's, with same results.  Checked firewall for any blocked traffic from both host and scanner, no entries.
    Checked Technet/blogged for about two hours, without any positive results. Please advise/assist.
    Regards,
    AJ Lebeau
    MCSE, MCP, MCP+I, CNA, ACNA, A+
    Server Administrator
    Progenics Pharmaceuticals
    [email protected]
    (914) 789-4558

    Thank you for sending this to the MBSA forums!
    If you haven't already, you may want to check the MBSA FAQ located here:
    http://technet.microsoft.com/en-us/security/cc184922 specifically under the sections titled, "How can I scan a computer that is protected by a firewall" (to resolve potential DCOM connectivity issues), and "When attempting to scan a remote machine,
    why do I see the error 'Cannot deploy security metadata?"
    This is also a very misleading error message since the problem could be due to connectivity to the target (client) machines - nothing relating to the CAB file.  In any circumstance, you should not need to install MBSA on all of the target machines to
    successfully assess their security state. 
    Possible solutions include
    Confirm the latest WUA client is installed on all target machines (with the files you've already placed in the cache directory, you can simply check the scan option to "Configure computers for Microsoft
    Update and scanning prerequisites" - which will update and re-register each target machine with the latest WUA client and the ability to respond to requests from MBSA.
    Check whether the target machines have limited disk space (unlikely)
    Check DCOM settings on both the server - but more likely due to the failure to remotely scan - the target machines.
    Change the scan options to further troubleshoot.  Specifically, 'Check for security updates' option uses a DCOM connection to the target WUA client while the other scan settings 'Check for weak passwords, etc." use specific UDP/TCP ports as indicated
    in the System Requirements section of the MBSA help file and the MBSA FAQ.  Also use the 'Advanced Update Services options' to determine whether WSUS connectivity may be at issue.
    Please let me know if that helps.
    Doug Neal - Microsoft Update and MBSA

  • Parsing an xml file using xerces DOM  parser

    Hi
    I want to parse a simple xml file using DOM parser.
    The file is
    <Item>
         <SubItem>
              <title>SubItem0</title>
              <attr1>0</attr1>
              <attr2>0</attr2>
              <attr3>0</attr3>
         </SubItem>
         <SubItem>
              <title>SubItem1</title>
              <attr1>1</attr1>
              <attr2>0</attr2>
              <attr3>0</attr3>
         </SubItem>
         <SubItem>
              <title>SubItem2</title>
              <attr1>1</attr1>
              <attr2>1</attr2>
              <attr3>0</attr3>
              <SubItem>
                   <title>SubItem20</title>
                   <attr1>2</attr1>
                   <attr2>1</attr2>
                   <attr3>0</attr3>
              </SubItem>
              <SubItem>
                   <title>SubItem21</title>
                   <attr1>1</attr1>
                   <attr2>1</attr2>
                   <attr3>0</attr3>
              </SubItem>
         </SubItem>
    </Item>
    I just want to parse this file and want to store the values in desired datastructures,
    I am trying using DOM parser, since it gives a tree structure, which is ok in this case.
    public void init()
              InputReader ir     =new InputReader("Habsys");
              Document      doc     =ir.read("Habitat");
              System.out.println(doc);
              traverse(doc);
    private void traverse(Document idoc)
              NodeList lchildren=idoc.getElementsByTagName("SubItem");
              for(int i=0;i<lchildren.getLength();i++)
                   String lgstr=lchildren.item(i).getNodeName();
                   if(lgstr.equals("SubItem"))
                        traverse(lchildren.item(i));
    private void traverse (Node node) {
    int type = node.getNodeType();
    if (type == Node.ELEMENT_NODE)
    System.out.println ("Name :"+node.getNodeName());
    if(!node.hasChildNodes())
    System.out.println ("Value :"+node.getNodeValue());
    NodeList children = node.getChildNodes();
    if (children != null) {
    for (int i=0; i< children.getLength(); i++)
    traverse (children.item(i));
    But I am not getting required results, a lot of values I am getting as null
    Could anybody tell me how to retrieve the data from the xml file, I simply want to read data and store it in data structures. For eg, for tag Subitem with title as ' SubItem1' has attr1 as '1', attr2 as'0' and attr3 as '0'.
    Thanks
    Gaurav

    Check This Sample Code....
    public void amethod(){
    DocumentBuilderFactory dbf = null;
    DocumentBuilder docBuilder = null;
    Document doc = null;
    try{
         dbf = DocumentBuilderFactory.newInstance();
         db = dbf.newDocumentBuilder();
         doc = db.parse(New File("path/to/your/file"));
         Node root = doc.getDocumentElement();
         System.out.println("Root Node = " + root.getNodeName());
         readNode(root);
    }catch(FactoryConfigurationError fce){ fce.printStackTrace();
    }catch(ParserConfigurationException pce){  pce.printStackTrace();
    }catch(IOException ioe){  ioe.printStackTrace();
    }catch(SAXException saxe){  saxe.printStackTrace();
    private void readNode(Node node) {
    System.out.println("Current Node = " + node.getNodeName());
    readAttributes(node);
    readChildren(node);
    private void readAttributes(Node node) {
    if (!node.hasAttributes())
         return;
    System.out.println("Attributes:");
    NamedNodeMap attrNodes = node.getAttributes();
    for (int i=0; i<attrNodes.getLength(); i++) {
    Attr attr = (Attr)attrNodes.item(i);
    System.out.println(attr.getNodeName() + " => " + attr.getNodeValue());
    private void readChildren(Node node) {
    if (!node.hasChildNodes())
         return;
    System.out.println("Value/s:");
    NodeList childNodes = node.getChildNodes();
    for (int i=0; i<childNodes.getLength(); i++) {
    Node child = (Node)childNodes.item(i);
    if (child.getNodeType() == Node.ELEMENT_NODE) {
    readNode(child);
    continue;
    if (child.getNodeType() == Node.TEXT_NODE) {
    if (child.getNodeValue()!=null)
    System.out.println(child.getNodeValue());

Maybe you are looking for

  • How do I customize cover page settings in a document?

    I have a 20 page document I am working on but I want to know how to customize the settings for the cover page totally different from the rest of the other pages?  I want the margins to be different from the other pages, I don't wnat headers or footer

  • Regardind Account FactSheet

    Hi All,           I want to add my new into account factsheet id.can anybody tell me how to configure this view into SPRO(Customer Relationship Management -> UI Framework -> UI Framework Definition -> Maintain Fact Sheet.).And how to create a a inbou

  • LDAP Lookup / Network Address sometimes populates with TCP

    Our development team has configured our local intranet to do LDAP searches against our tree, thus eliminating the need for users to login. They're doing an IP lookup and then retrieving the user name. What happens very rarely is the the "Network addr

  • What action can I take to eliminate the following error message when launching iTunes?

    Since the iTunes upgrade last week I persistently get the following message when launching iTunes. "You are signed in with a different Apple ID than previously used with Podcasts. Do you want to sync these podcast subscriptions and stations with ----

  • Table name by a variable

    Am trying to give a table name by a variable but its giving me errors can anyone plz help... resNr is a int! db2.insert("CREATE TABLE "+resNr+"(\n"+ "ID int(11) NOT NULL auto_increment,\n"+ "GAESTNR int(11) NOT NULL default '0',\n"+ "VARENR int(11) N