Hwo can i retrieve my XML???

Hello,
I need to retrieve an XML file from my WebApp folder using tomcat.
I can put it everywhere I prefere but I have to be in my webapp for portability
My Java installation classpath point to c:\windows\system32, and, if I put this file here, everything works perfectly!
I have rode many threads regarding, for example, GetResourcesAsStream() as the best way to solve my problem, but I just can't make it works (it returns me null), and I'm not so expert to understand why it doesn't works for my situation...
So I tried to retrieve the URI in this way
getServletContext().getResource("/parametri.xml").toURI();The result was that Tomcat replies me telling that URI scheme is not "file"
How can I simply retrieve this file?
I'm a newbie of Java programming, please give me a simple example!
thanks everybody!

It doesn't works.
I writed your solution in this way
(only for information, I'm using the JDom library...)
InputStream pippo = getClass().getResourceAsStream("/parametri.xml");
          String pluto = pippo.toString();
         documento = saxBuilder.build(new File(pluto));Tomcat logs tell me:
java.io.FileNotFoundException: C:\WINDOWS\system32\java.io.ByteArrayInputStream@1c9e67a (Impossibile trovare il file specificato)
...don't mind about italian message ;)
As you can see, it appends "java.io.Byte..." to the initial "c:\windows\system32" path

Similar Messages

  • Lync Phone Edition can't retrieve autodiscover.xml

    Our Aastra and LG-Nortel Lync phones can't connect to EWS. Digging around in the clg2 logfile from the Aastra, I found that this is because it can't download autodiscover.xml.
    The autodiscover url is found through the SRV record:
    INFO :: NAutoDiscover::DnsAutodiscoverTask::PopulateAutodiscoverUrlsFromDnsSrv: DNS SRV for email domain, mysipdomain.nl, SRV record, _autodiscover._tcp.sipdomain.nl, succeeded.
    INFO :: NAutoDiscover::DnsAutodiscoverTask::PopulateAutodiscoverUrlsFromDnsSrv: SRV record found for record, _autodiscover._tcp.sipdomain.nl, value, autodiscover.mydomain.nl.
    INFO :: NAutoDiscover::DnsAutodiscoverTask::TryAutodiscoverUrls: Trying url, https://autodiscover.mydomain.nl/autodiscover/autodiscover.xml
    But after this, for some reason, the process throws an error saying that the server is not trusted, resulting in the phone not being able to connect to EWS:
    INFO :: DoesDomainMatchServer: DoesDomainMatchServer-no match(sipdomain.nl, autodiscover.mydomain.nl)
    INFO :: DoesDomainMatchServer: DoesDomainMatchServer-no match(outlook.com, autodiscover.mydomain.nl)
    INFO :: DoesDomainMatchServer: DoesDomainMatchServer-no match(lync.com, autodiscover.mydomain.nl)INFO  :: DoesDomainMatchServer: DoesDomainMatchServer, ret=1, (mydomain.nl, autodiscover.mydomain.nl)
    INFO :: NAutoDiscover::DnsAutodiscoverTask::TryAutodiscoverUrls: Server is autodiscover.mydomain.nl not trusted, hr=0x0.
    WARN :: NAutoDiscover::DnsAutodiscoverTask::PerformAutodiscovery: DNS autodiscover failed
    ERROR :: NAutoDiscover::AutodiscoverTaskBase::OnExecution: Autodiscovery failed. hr=0x80004005.
    Resulting in the phone not being able to connect to EWS. As far as I know the certificate is not the issue, because this would generate a specific error starting with "NAutoDiscover::DnsAutodiscoverTask::TryAutodiscoverUrls: Exception with this
    url"
    What could be the reason for the server not being trusted?

    I have that line in my log too, and I've changed my autodiscover URL to use an FQDN from the AD domain, but autodiscover is still not being trusted.
    UCD_LOG_INFO: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.659 5530002:51E0026 INFO :: NAutoDiscover::DnsAutodiscoverTask::PopulateAutodiscoverUrlsFromDnsSrv: DNS SRV for email domain, xyztr.com, SRV record, _autodiscover._tcp.xyztr.com, suc 55 43 44 5F 4C 4F 47 5F 49 4E 46 4F 3A 20 30 31 2F 32 39 2F 32 30 31 34 7C 31 32 3A 35 33 3A 32 34 20 41 72 69 65 73 3A 20 30 31 2F 32 39 2F 32 30 31 34 7C 31 32 3A 35 33 3A 32 34 2E 36 35 39 20 35 35 33 30 30 30 32 3A 35 31 45 30 30 32 36 20 49 4E 46 4F 20 20 3A 3A 20 4E 41 75 74 6F 44 69 73 63 6F 76 65 72 3A 3A 44 6E 73 41 75 74 6F 64 69 73 63 6F 76 65 72 54 61 73 6B 3A 3A 50 6F 70 75 6C 61 74 65 41 75 74 6F 64 69 73 63 6F 76 65 72 55 72 6C 73 46 72 6F 6D 44 6E 73 53 72 76 3A 20 44 4E 53 20 53 52 56 20 66 6F 72 20 65 6D 61 69 6C 20 64 6F 6D 61 69 6E 2C 20 6D 6F 6E 74 70 65 6C 69 65 72 74 72 2E 63 6F 6D 2C 20 53 52 56 20 72 65 63 6F 72 64 2C 20 5F 61 75 74 6F 64 69 73 63 6F 76 65 72 2E 5F 74 63 70 2E 6D 6F 6E 74 70 65 6C 69 65 72 74 72 2E 63 6F 6D 2C 20 73 75 63 63 65
    UCD_LOG_INFO: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.659 5530002:51E0026 INFO :: NAutoDiscover::DnsAutodiscoverTask::PopulateAutodiscoverUrlsFromDnsSrv: SRV record found for record, _autodiscover._tcp.xyztr.com, value, autodiscover.xyz 55 43 44 5F 4C 4F 47 5F 49 4E 46 4F 3A 20 30 31 2F 32 39 2F 32 30 31 34 7C 31 32 3A 35 33 3A 32 34 20 41 72 69 65 73 3A 20 30 31 2F 32 39 2F 32 30 31 34 7C 31 32 3A 35 33 3A 32 34 2E 36 35 39 20 35 35 33 30 30 30 32 3A 35 31 45 30 30 32 36 20 49 4E 46 4F 20 20 3A 3A 20 4E 41 75 74 6F 44 69 73 63 6F 76 65 72 3A 3A 44 6E 73 41 75 74 6F 64 69 73 63 6F 76 65 72 54 61 73 6B 3A 3A 50 6F 70 75 6C 61 74 65 41 75 74 6F 64 69 73 63 6F 76 65 72 55 72 6C 73 46 72 6F 6D 44 6E 73 53 72 76 3A 20 53 52 56 20 72 65 63 6F 72 64 20 66 6F 75 6E 64 20 66 6F 72 20 72 65 63 6F 72 64 2C 20 5F 61 75 74 6F 64 69 73 63 6F 76 65 72 2E 5F 74 63 70 2E 6D 6F 6E 74 70 65 6C 69 65 72 74 72 2E 63 6F 6D 2C 20 76 61 6C 75 65 2C 20 61 75 74 6F 64 69 73 63 6F 76 65 72 2E 6D 6F 6E 74 70 65 6C 69 65 72 72 65
    UCD_LOG_INFO: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.660 5530002:51E0026 INFO :: NAutoDiscover::DnsAutodiscoverTask::TryAutodiscoverUrls: Trying url, https://autodiscover.xyzre.net/autodiscover/autodiscover.xml
    UCD_LOG_INFO: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.661 5530002:51E0026 INFO :: DoesDomainMatchServer: DoesDomainMatchServer, ret=0, (xyztr.com, autodiscover.xyzre.net)
    UCD_LOG_INFO: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.661 5530002:51E0026 INFO :: DoesDomainMatchServer: DoesDomainMatchServer-no match(outlook.com, autodiscover.xyzre.net)
    UCD_LOG_INFO: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.662 5530002:51E0026 INFO :: DoesDomainMatchServer: DoesDomainMatchServer-no match(lync.com, autodiscover.xyzre.net)
    UCD_LOG_INFO: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.662 5530002:51E0026 INFO :: DoesDomainMatchServer: DoesDomainMatchServer, ret=1, (xyzre.net, autodiscover.xyzre.net)
    UCD_LOG_INFO: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.662 5530002:51E0026 INFO :: NAutoDiscover::DnsAutodiscoverTask::TryAutodiscoverUrls: Server is autodiscover.xyzre.net not trusted, hr=0x0.
    UCD_LOG_WARN: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.665 5530002:51E0026 WARN :: NAutoDiscover::DnsAutodiscoverTask::PerformAutodiscovery: DNS autodiscover failed
    UCD_LOG_ERROR: 01/29/2014|12:53:24 Aries: 01/29/2014|12:53:24.666 5530002:51E0026 ERROR :: NAutoDiscover::AutodiscoverTaskBase::OnExecution: Autodiscovery failed. hr=0x80004005.
    Does anybody know what the return codes for DoesDomainMatchServer() mean?  Should I be getting a 1 for this?

  • Can castor retrieve the comnstraints provided in an xml schema

    hi,
    plz help me !!!!!!!!!!!
    does castor provide any function to retrieve the constraints
    defined in an xsd
    i know it provides functions for setting the constraints
    can i retrieve the value of constraints fromthe descriptor files returned by cator
    while unmarshalling the xsd file .
    thaks

    Hi 00ps, the way to do this with XSD schemas is to use a "choice" node, where you can select either BusinessEntity or Person.  Each of these nodes can then have different elements (inherited from a common source if you desire).
    Whilst doing all this is entirely possible with the BizTalk schema editor, it is far, far easier to use a specialist tool such as
    XMLSpy, which makes defining complex relationships an easy task.  For example, here is a similar sort of restriction I have in place on a schema:
    The "party" element is used in multiple schemas through the use of an import.  You can either use
    organisation or individual, they both use a common element called
    contact which contains address information etc which would be the same for both, but allow for different structures for party types.
    As you can see from the screen-shot, it's a lot easier to visualise with XML Spy.  The XSD notation is:
    <xs:choice>
    <xs:element name="organisation">
    ...blah...
    </xs:element>
    <xs:element name="individual">
    ...blah...
    </xs:element>
    </xs:choice>
    If this is helpful or
    answers your question - please mark accordingly.
    Because I get points for it which gives my life purpose (also, it helps other people find answers quickly)

  • How can I retrieve the inbound XML messages (invoices) by ABAP program?

    Where are the inbound XML messages (invoices) saved in XI box?
    How can I retrieve the inbound XML invoices in XI box by ABAP program?
    Is there any method/BADI/function module to retrieve these XML invoices, so I can output these XML invoices in an ABAP report?
    Thanks in advance for your help!

    Hello Fisher,
    This Webblog will help you.
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    From this blog you will understand the code behind SXMB moni .. which performs the selection from database. You can write a report as well.
    Cheers,
    Himadri

  • How can I read an XML string that's not from an XML file?

    I've got a script I'm trying to setup that communicates over a socket to retrieve different directions from a custom built Java program.  The Java program listens to requests from the Adobe scripting engine (in my case it's a Photoshop script) on a socket and immediately responds with the next set of directions.  These directions are currently in XML format.  The issue I'm having is that I can't parse the XML data since it's entered into a new XML object from a string rather than being read from a file.  Even without the socket code, you can see the issue by doing the following:
    var xml = new XML("<test><data>hey!</data></test>");
    alert(xml.test.data);
    alert(xml);
    The first alert "should" return "hey!" (without quotes, of course), but it doesn't, while the second alert returns what you would expect it to:
    <test>
        <data>hey!</data>
    </test>
    It works fine if read from an XML file, but from a string, like shown above, it just presents an empty alert box when attempting to access "xml.test.data".  Any ideas on how to fix this issue?  Can it be fixed?  Has it been fixed in newer versions (I'm currently using CS4)?
    Thanks in advance for any help!

    Duh... found my error... I was attempting to access the data by referencing the created "root" element.  Since <test> is the very first element tag, it's setup as the root element, which you don't need to reference.  Changing the alert to alert(xml.data); fixed it.
    Now I just feel dumb, lol...

  • Upgrade to 11g - DBUA can't retrieve the version

    Hello,
    I'm upgrading 10.2.0.4 version to 11.2.0.2 and I have problem at the beginning.
    Immediately after the start of DBUA in the I get the error, that the version of the database can' be retrieved. Somewhere in the logs I have found:
    connect /****** as SYSDBA
    set echo off;
    @/u01/app/oracle/OracleHomes/db11g/rdbms/admin/rdbmsup.sql;
    exactly at this point I have big understanding problem.
    It looks like the new software wants to connect to the instance and can't. What should I do to allow it to do that? I have started the new(11g) listener and it it possible to connect to the old 10g instance, but the old instance runs in the old home. I can connect to it, but I must use the tnsname "emrep". Without using the tnsname it connects to the idle instance.
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> conn sys@emrep as sysdba
    Enter password:
    Connected.
    Probably I have made some mistake during configuration of the listener, but I can't find any guidance in this direction. At all places where I'm looking I see only: "create new listener using netca and add the database in the Database Services tab for this listener using netmgr". Actually there is no need to do the last because tha databse is using the default port 1521.
    If I do only that, the I get in $ORACLE_HOME/networt/admin folder only listener.ora with the following contents:
    # listener.ora Network Configuration File: /u01/app/oracle/OracleHomes/db11g/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = mmredora.aegon-net.de)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    After that I see the databse registered with the listener:
    [oracle@mmredora-SID:emrep]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-SEP-2011 15:38:23
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mmredora.aegon-net.de)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 27-SEP-2011 15:34:19
    Uptime 0 days 0 hr. 4 min. 3 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/OracleHomes/db11g/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/mmredora/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mmredora.aegon-net.de)(PORT=1521)))
    Services Summary...
    Service "emrep" has 1 instance(s).
    Instance "emrep", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Can somebody help me with that?

    "could not get the database version from the "Oracle Server" component. The "CEP" file "/u01/app/oracle/OracleHomes/db11g/rdbms/admin/rdbmsup.sql" does not provide the version directive."
    but I have found some other problem.
    in rdbmsup.sql I found:
    SELECT version INTO inst_version FROM v$instance;
    vers := SUBSTR(inst_version,1,6); -- three digits
    ptch_version := SUBSTR(inst_version,1,8); -- four digits (patch release)
    IF (vers = '9.2.0' AND
    SUBSTR(ptch_version,1,8) = '9.2.0.8') OR
    (vers = '10.1.0' AND
    SUBSTR(ptch_version,1,8) = '10.1.0.5') OR
    (vers = '10.2.0' AND
    SUBSTR(ptch_version,1,8) != '10.2.0.1') OR
    (vers IN ('11.1.0','11.2.0')) THEN
    NULL; -- is a supported version
    ELSE
    -- version is some unsupported version
    DBMS_OUTPUT.PUT_LINE('ODMA_DIRECTIVE:EXIT:NOT_INSTALLED:');
    RETURN;
    END IF;
    I have executed
    SELECT version INTO inst_version FROM v$instance;
    from sqlplus connecting to the old instance using a "tnsname" and get version 10.1.0.4, not "10.2.0.4" as it is in my papers. now I'm making upgrade to 10.1.0.5
    But it still bothers me: this "connect /****** as SYSDBA"! The text of the message sounds like "not possible to retrieve the version at all" - not that it is an unsupported version.

  • How can i retrieve xsl file by context-root

    we have a project using weblogic server6.1,all things done smoothly,
              but,we met a big problem . we use xml and xsl export html,but the problem is
              how can we retrieve xsl document in the same project root by relative path
              to context-root,is there some method else work around this. thanks in
              advance.
              

    In Repository, double click on XSL program.
    It will show you the mapping program, Graphical & there is one option for Code also, you can check the code there.
    Else if you have stylus studio, so export that program from repository & import into the stylus studio.
    When you will check this in stylus studio, it will ask you sender structure & receiver structure, just give it XSD of sender & receiver structures. Here you can check the complete mapping in graphical as well as codiing.
    Sandeep Kaushik

  • Retrieving Request XML Element in Web Service Code

    to create a web service: I write java code and using JDeveloper, I 'create J2EE web service' from the java code.
    I need to get and handle a parameter, passed to the web service in the request xml and process it in my java code. For example I want to access a header element received in the request.
    How can I retrieve those elements in my code?
    Regards
    Farbod

    Hi V.S,
    [Here|http://img144.imageshack.us/my.php?image=datetimekb1.jpg] by the screenshot of the working example.
    The expression that I have used is :
    =DSTR(@DATE1,"XML_DATE")&TSTR(@TIME1,"XML_TIME")
    Where,
    XML_DATE    YYYY-MM-DD    2001-01-31
    XML_TIME     THH:NN:SS 02:39:40
    This should work now. Let me know.
    Best regards,
    Dharmi
    Edited by: Dharmi Tanna on Sep 8, 2008 2:29 PM

  • Error starting Software Update Manager (SUM) Can't retrieve C library version

    Hi,
    I am trying to update my SAP Solution Manager 7.1 SP04 to SP11 on a Debain squeeze. I did create a stack.xml and downloaded SUM SP10 (SUM10SP10_4-20006543.SAR)
    unpacked location is /usr/sap/S01/SUM
    I tried to run ./STARTUP with user s01adm but I got the following error:
    <!--LOGHEADER[START]/-->
    <!--HELP[Manual modification of the header may cause parsing problem!]/-->
    <!--LOGGINGVERSION[2.0.7.1006]/-->
    <!--NAME[/usr/sap/S01/SUM/sdt/log/SDTServer.log]/-->
    <!--PATTERN[SDTServer.log]/-->
    <!--FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %m)]/-->
    <!--ENCODING[UTF8]/-->
    <!--LOGHEADER[END]/-->
    May 6, 2014 3:23:52 PM [Info]: *************************************************
    May 6, 2014 3:23:52 PM [Info]: Starting SL Controller listening on port 4241 ...
    May 6, 2014 3:23:52 PM [Info]: Starting StorageService ...
    May 6, 2014 3:23:52 PM [Info]: Initializing SecurityManager ...
    May 6, 2014 3:23:54 PM [Info]: Server certificate fingerprint is 3E 76 23 18 C1 74 AC B9 5D E4 CC 88 BF FE 3A 08
    May 6, 2014 3:23:54 PM [Info]: Configuring HTTPManager ...
    May 6, 2014 3:23:54 PM [Info]: Starting WebstartService ...
    May 6, 2014 3:23:54 PM [Info]: Starting RoleService ...
    May 6, 2014 3:23:54 PM [Info]: Starting AlertService ...
    May 6, 2014 3:23:54 PM [Info]: Starting NotesService ...
    May 6, 2014 3:23:54 PM [Info]: Starting ProcessService ...
    May 6, 2014 3:23:54 PM [Info]: Starting MIDService ...
    May 6, 2014 3:23:54 PM [Info]: Starting FileService ...
    May 6, 2014 3:23:54 PM [Info]: LogService switched off.
    May 6, 2014 3:23:54 PM [Info]: Starting MailService ...
    May 6, 2014 3:23:54 PM [Info]: Starting services ...
    May 6, 2014 3:23:54 PM [Info]: Starting service "UseCaseService" ...
    May 6, 2014 3:23:55 PM [Info]: Starting MIDService ...
    May 6, 2014 3:23:59 PM [Error]: Can't retrieve C library version.
    May 6, 2014 3:23:59 PM [Error]: Error while initializing service context.
    May 6, 2014 3:23:59 PM [Error]: Can't initilize sdt service provider
    May 6, 2014 3:23:59 PM [Error]: Creation of use case executor failed.
    May 6, 2014 3:23:59 PM [Fatal]: Error during controller startup.
    May 6, 2014 3:23:59 PM [Fatal]: SL Controller exiting.
    This is what /usr/sap/S01/SUM/sdt/trc/DETECT.TRC reports:
    <!--LOGHEADER[START]/-->
    <!--HELP[Manual modification of the header may cause parsing problem!]/-->
    <!--LOGGINGVERSION[2.0.7.1006]/-->
    <!--NAME[/usr/sap/S01/SUM/sdt/trc/DETECT.TRC]/-->
    <!--PATTERN[DETECT.TRC]/-->
    <!--FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %-100l [%t]: %m)]/-->
    <!--ENCODING[UTF8]/-->
    <!--LOGHEADER[END]/-->
    May 6, 2014 3:23:56 PM [Error]:                                                                    com.sap.sdt.dmt.DMTFactoryManager [Thread[main,5,main]]: Property file dmt.properties not found in class path
    May 6, 2014 3:23:57 PM [Error]:                                                                  com.sap.sdt.jspm.JspmFactoryManager [Thread[main,5,main]]: Property file jspm.properties not found in class path
    May 6, 2014 3:23:57 PM [Error]:                                                                    com.sap.sdt.dmt.DMTFactoryManager [Thread[main,5,main]]: Property file dmt.properties not found in class path
    May 6, 2014 3:23:58 PM [Error]:                                                                  com.sap.sdt.jspm.JspmFactoryManager [Thread[main,5,main]]: Property file jspm.properties not found in class path
    May 6, 2014 3:23:59 PM [Error]:            com.sap.sdt.tools.sysinfo.unx.UnixDetermineOSInfo.setupUNIX(UnixDetermineOSInfo.java:131) [Thread[main,5,main]]: Can't retrieve C library version.
    May 6, 2014 3:23:59 PM [Error]:                                                         com.sap.sdt.server.core.admin.SDTServerAdmin [Thread[main,5,main]]: com.sap.sdt.tools.sysinfo.DetermineOSException: Can't retrieve C library version.
      at com.sap.sdt.tools.sysinfo.unx.UnixDetermineOSInfo.setupUNIX(UnixDetermineOSInfo.java:131)
      at com.sap.sdt.tools.sysinfo.unx.UnixDetermineOSInfo.<init>(UnixDetermineOSInfo.java:64)
      at com.sap.sdt.tools.sysinfo.unx.UnixOSInfoFactory.getOSInfo(UnixOSInfoFactory.java:29)
      at com.sap.sdt.j2ee.services.OSInfoServiceRetriever.retrieveOSInfo(OSInfoServiceRetriever.java:47)
      at com.sap.sdt.j2ee.services.SDTServiceProvider.detectOSInformation(SDTServiceProvider.java:587)
      at com.sap.sdt.j2ee.services.SDTServiceProvider.initServiceContext(SDTServiceProvider.java:414)
      at com.sap.sdt.j2ee.services.SDTServiceProvider.initialize(SDTServiceProvider.java:180)
      at com.sap.sdt.executor.service.ServiceAndBeanProviderFactory.getServiceAndBeanProvider(ServiceAndBeanProviderFactory.java:120)
      at com.sap.sdt.executor.usecase.UseCaseExecutionInitializer.getServiceBeanProviderWrapper(UseCaseExecutionInitializer.java:268)
      at com.sap.sdt.executor.usecase.UseCaseExecutionInitializer.initialize(UseCaseExecutionInitializer.java:155)
      at com.sap.sdt.executor.factory.UseCaseExecutorFactory.createUseCaseExecutor(UseCaseExecutorFactory.java:56)
      at com.sap.sdt.dsu.service.UseCaseService.createUseCaseExecutor(UseCaseService.java:1014)
      at com.sap.sdt.dsu.service.UseCaseService.initDetectUseCaseExecutor(UseCaseService.java:1027)
      at com.sap.sdt.dsu.service.UseCaseService.init(UseCaseService.java:166)
      at com.sap.sdt.server.core.services.Service.start(Service.java:94)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.startServices(SDTServerAdmin.java:1155)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.start(SDTServerAdmin.java:367)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.runServer(SDTServerAdmin.java:847)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.start(SDTServerAdmin.java:217)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.main(SDTServerAdmin.java:126)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sap.sdt.bootstrap.BootStrap.start(BootStrap.java:169)
      at com.sap.sdt.bootstrap.Startup.start(Startup.java:140)
      at com.sap.sdt.bootstrap.Startup.main(Startup.java:356)
    May 6, 2014 3:23:59 PM [Error]:                 com.sap.sdt.j2ee.services.SDTServiceProvider.initialize(SDTServiceProvider.java:184) [Thread[main,5,main]]: Error while initializing service context.
    May 6, 2014 3:23:59 PM [Error]: com.sap.sdt.executor.service.ServiceAndBeanProviderFactory.getServiceAndBeanProvider(ServiceAndBeanProviderFactory.java:125) [Thread[main,5,main]]: Can't initilize sdt service provider
    May 6, 2014 3:23:59 PM [Error]:           com.sap.sdt.dsu.service.UseCaseService.initDetectUseCaseExecutor(UseCaseService.java:1031) [Thread[main,5,main]]: Creation of use case executor failed.
    May 6, 2014 3:23:59 PM [Fatal]:                 com.sap.sdt.server.core.admin.SDTServerAdmin.startServices(SDTServerAdmin.java:1165) [Thread[main,5,main]]: Error during controller startup.
    May 6, 2014 3:23:59 PM [Fatal]:                 com.sap.sdt.server.core.admin.SDTServerAdmin.startServices(SDTServerAdmin.java:1166) [Thread[main,5,main]]: SL Controller exiting.
    Any idea what could be wrong?
    Thanks,
    Sven

    SUM checks the libc version by parsing the output of 'ldd --version'.
    The java code looks like this:
    String[] parsedOutput = getCommandOutput("ldd", new ValueIF[] { new StringValue("--version") }).split("libc\\) ");
       if (parsedOutput.length > 1) {
       this.cLibraryVersion = parsedOutput[1];
      } else {
       throw new DetermineOSException("msg.tools.sysInfo.0078");
    With newer releases of libc, the output of ldd --version no longer contains a string matching the pattern "libc\\) ", so this fails.
    A rather quick-and-dirty workaround:
    - rename the ldd executable to ldd.exe
    - create the following shell script named ldd in /usr/bin:
    #!/bin/sh
    if [ $1 == "--version" ] ; then
      echo "libc) 2.17"
    else
      /usr/bin/ldd.exe $@
    fi
    As SUM ignores the PATH variable it is not possible to place the modified ldd into some other directory.
    br,
    Sebastian

  • How to retrieve data (xml file) using jsp

    I am a newbie to xml. I have decided to store my information in the xml file. may I know how can I retrieve my information from the xml file?
    Thanx in advance.

    I am a newbie to xml. I have decided to store my
    information in the xml file. may I know how can I
    retrieve my information from the xml file?
    Thanx in advance.You can get the information from the XML file using one of the parsers available, such as Xerces http://xml.apache.org, and JDOM as an API.
    Using this you have the option of having a SAXParser or a DOMParser.
    SAX (Simple API for XML) is an event based parser, so if you know the XML structure, and need to find a certain element, you can just look for the element name,and retrieve the value of the element, it's attributes and its children.
    DOM(Document Object Model)represents the XML as a tree, but uses more resources as it stores the entire tree in memory. But it is good in that you can traverse the whole tree.
    JDOM would be a good idea too. If you download this, you can use it's API, which is very good, that will use the parser on your system (Xerces). I would definately recommend JDOM.

  • How to create a proxy to retrieve the xml file from web services

    Hi Every one,
    We have a requirment where we receive a xml file from Kenexa, a third party HR tool using a middleware tool. from SAP side We have to create a proxy to retrieve the xml  file from web services by initiating call through middleware tool i used earlier.
    these are the steps i intend to follow to accomlish the requirement.  
    1) middleware tool has to initiate the call to kenexa web services to  receive the xml file when it is available.
    2) On SAP we need to create a ABAP Proxy service provider to middleware where this file can be received.
    Can any one guide me how i can create a proxy to retrieve the xml  file from web services by initiating call through other middlewre (its not PI). 
    Any help would be really great, i am not a ABAP developer, so please help me with this. Thanks.

    Thank for reply.
    The computers are in different locations, but yes it's possible, the users in this enviroment are all local administrator of the machines, and we can distribute the script centrally from the DC automatically
    Acrobat use Java, right? I'm not so expert in java, but something about it could not be so difficult to manage.
    Do you know some place where i can get some info about JS and acrobat?

  • Copy System Error - No sapinst workdir retrieved yet. Therefore, no SAPInst log files were written and can be retrieved

    Hi all,
    I am getting a strange error when performing a "Copy System" that I am unable to resolve. The error occurs during step "User Management". The step is supposed to start SAPinst and install the new users.
    "No sapinst workdir retrieved yet. Therefore, no SAPinst log files were written and can be retrieved"
    "LVM Error Host Agent Operation 'xxxxx' failed (OperationExecption. FaultCode: '127', Message: Command execution failed. ')"
    I have checked the C:\temp\VCM_sapinst_PR\sapinst2014_09_10_09_48_28 folder and the only file there is the "inifile.xml".
    The copy is based on vmware, the SAP systems are Windows 2008 R2 with MSSQL 2008. The host agent Version is 190 and the SAP kernel is 600.
    Under "System and AS Provistion Configuration" I have enabled Provistioning type "System Copy" for release 7.X and Windows NT. The path is C:\INST\LVM_WIN_731\SPM and exist on all systems locally. The SWPM Version is SWPM10SP06_3-20009707.SAR.
    The only thing I have found that kind of fits the error Message seems to be related to Linux/Unix:
    http://wiki.scn.sap.com/wiki/display/TechTSG/(ACC)+SAPControl+Fails+with+HTTP+401+Unauthorized+Error
    Does anyone have an solution for this issue?
    BR/
    Stian
    Added ASUI.log file from ./hostctrl/wok folder and a text file with the error.

    Hi all,
    The problem was resolved by the OSS Message.
    The problem was with the SAP Host Agent 720 patch 190. Quote from the OSS Message:
    "Try downgrading to SAP Host Agent patch 189. The problem seems to be with duplicate parameters for the sapinst Call (exitOnError) wich was add by the LVM and since patch 190 is also added by the SAP Host Agent, end reexecute your process."
    The issue should be resolved in a future patch for SAP LVM, but if you encounter this error before it has been released, then try to downgrade to 189 like i did.
    Thanks to SAP Support v/ Jochen for resolving this issue.
    Best Regards,
    Stian Eiken

  • I recently uploaded 10.8, but I have a number of VALUABLE old files which I can no longer read because "power PC applications are no longer supported.  How can I retrieve them?

    I recently uploaded 10.8, but I have a number of VALUABLE old files which I can no longer read because "power PC applications are no longer supported.  How can I retrieve them"?

    Here is a post I assembled for another with a similar problem:
    Unfortunately you got caught up in the minor miracle of Rosetta.  Originally licensed by Apple when it migrated from the PowerPC CPU platform that it had used from the mid-1990's until the Intel CPU platform in 2006, Rosetta allowed Mac users to continue to use their library of PPC software transparently in emulation.
    However, Apple's license to continue to use this technology expired with new releases of OS X commencing with Lion (and now Mountain Lion).  While educational efforts have been made over the last 6 years, the fact is that Rosetta was SO successful that many users were caught unaware UNTIL they upgraded to Lion or Mountain Lion.
    Workarounds:
    1. If your Mac will support it, restore OS X Snow Leopard;
    2.  If your Mac will support it, partition your hard drive or add an external hard drive and install Snow Leopard into it and use the "dual-boot" method to choose between your PPC software or Lion/Mt. Lion;
    3. Upgrade to an Intel compatible versions of your software, or find alternatives that will open your data files;
    3.  Install Snow Leopard (with Rosetta) into Parallels:
                                  [click on image to enlarge]
    Full Snow Leopard installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439
    NOTE: STEP ONE of the instructions must currently be completed on a Snow Leopard or Lion Mac and the resulting modified Snow Leopard.cdr install file can then be moved over to your Mountain Lion Mac for completion of the remaining steps.
    NOTE 2:  Computer games with complex, 3D or fast motion graphics make not work well or at all in virtualization.

  • Can not retrieve data source status

    I have 3 DPS (6.3) running fine with 3 (6.2) DS downstream, running fine as well, on RHAS 4 U4 .
    I don't understand why the DPS console always report it can not retrieve the data sources status. I checked the DS access logs, and I see each DPS
    default monitoring request (on the "" DN) every 30 seconds, which returns one entry, and no obvious error in any DPS or DS error log .
    Any idea ?

    Hi,
    it looks like a a known problem to me that may appear in the following situation:
    In somes cases, the proxy and the DSCC (console) uses different hostnames: For instance, the proxy may be registered to the admin framework as myhost.sun.com and the proxy itself may use only myhost. Operation status is exposed by the proxy as an LDAP entry with dn cn=myhost,.....,cn=monitor. When there is a naming mismatch, the console search for cn=myhost.sun.com,...., cn=monitor and can't find the entry, so the status is unknown.
    Don't know if you are in this situation but it might worth checking this.
    Hope this helps
    -Sylvain

  • How can I retrieve values from integer array in sqlplus?

    I'm trying to write a query against OEM grid tables to come up with the result to show all scheduled backup jobs, in OEM grid, there is a table sysman.mgmt_job_schedule, one of the column DAYS is defined as TYPE SYSMAN.MGMT_JOB_INT_ARRAY AS VARRAY(5000) OF INTEGER,
    if I do select days from mgmt_job_schedule, it returns something like (2,3,4,5,,,,,,...), I want to retrieve the digits and translate them into Monday-Sunday in combination of other columns, but I'm new in varray, I don't know how can I retrieve the values in sqlplus, can you guys help me on that, My query is as follows, I got all the jobs I wanted already, just need to interpret on which day (week day) it is scheduled.
    Thanks
    select JOB_NAME, JOB_OWNER,job_type, mjs.START_TIME, DECODE(mjs.frequency_code,
    1, 'Once', 2, 'Interval', 3, 'Daily', 4, 'Weekly',
    5, 'Day of Month', 6, 'Day of Year', mjs.frequency_code) "FREQUENCY",
    mjs.days
    from mgmt_job mj, MGMT_JOB_SCHEDULE mjs
    where mj.SCHEDULE_ID=mjs.SCHEDULE_ID
    and mj.job_type='OSCommand'
    and mjs.Frequency_code in (3,4)
    and mj.is_library =0

    select job_name, job_owner, job_type, mjs.start_time,
               decode (
                    mjs.frequency_code,
                    1, 'Once',
                    2, 'Interval',
                    3, 'Daily',
                    4, 'Weekly',
                    5, 'Day of Month',
                    6, 'Day of Year',
                    mjs.frequency_code
                    "FREQUENCY", mjs.days, column_value
      from mgmt_job mj, mgmt_job_schedule mjs, table (nvl(days,sysman.mgmt_job_int_array(1,2,3,4,5,6,7)))
    where       mj.schedule_id = mjs.schedule_id
               and mj.job_type = 'OSCommand'
               and mjs.frequency_code in (3, 4)
               and mj.is_library = 0you may need to tweak the values in sysman.mgmt_job_int_array: use less or other values or simply put them null ....

Maybe you are looking for

  • Reordering of rows - issue with drag and drop of editable columns in table

    JDeveloper: 11.1.1.6.0 ADF Faces - Drag and Drop for reordering of rows within the same af:table I have a requirement for reordering rows in a table using drag and drop. This table is loaded using a list and I am able to programmatically do the reord

  • ADAPTER_NAME_INVALID

    HI, We are doing a JDBC-XI-RFC scenario and when we send a test message in SXMB_MONI on the receiver side we see the following error <SAP:Category>XIServer</SAP:Category>   <SAP:Code area="INTERNAL">ADAPTER_NAME_INVALID</SAP:Code>   <SAP:P1 />   <SAP

  • Uncheck Inventory Item in "Item Master Data"

    I'm just trying to uncheck the Inventory Item checkbox on the form when the form sudently pass from any mode to ADD_MODE Looks like it gets in the event at least 25 to 30 time in a flash and finaly I get my check box unchecked. I just don't know why

  • Iphone in restart mode il loop

    hi.my iphone get into restart mode in loop and dont sttoped. i try the hard reset and nothing. i menege to open it and asked to conect it to the computer and then to make restore that way i will lose my infomation. is there aonother way for reset?

  • To Know CONTAINS operator

    I want to know the CONTAINS ? whats the purpose of it ? How to use it ? Whether we need to create any index for using the CONTAINS in query ?