Can not parse the xml in orion server.

Hi, can anyone help me on this.
I have some configuration file which should be parsed when start the server. It works fine in tomcat , JRun, and some other server, now when I test it using the orion server, It throws out the
org.apache.commons.digester.xmlrules.XmlLoadException: Relative URI "digester-rules.dtd"; can not be resolved without a document URI.
I put the dtd and xml together in web-root and specify the location using
<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN" "digester-rules.dtd">
can anyone tell me how to resolve this.
following is a code snippet of init the digester
Digester ruleDigester = new Digester();
ruleDigester.setUseContextClassLoader(true);
System.out.println(ruleURL);
FromXmlRuleSet ruleSet = new FromXmlRuleSet(ruleURL, ruleDigester);
Digester digester = new Digester();
digester.setUseContextClassLoader(true);
ruleSet.addRuleInstances(digester);
rules = digester.getRules();

I think you'd better ask this question in apache user mailing list
http://jakarta.apache.org/site/mail2.html#Commons

Similar Messages

  • Can not parser the parameters when set -dfile.encoding=utf-16 in solaris

    Try to execute one class with Dfile.encoding=utf-16 encoding in solaris. It failed to parser the parameters.
    Give one simple Helloworld.java with code:
              System.out.println("hello world");
    javac Helloworld.java
    java -d64 -classpath . -Dfile.encoding=utf-16 test
    We get the error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Helloworld
    Anyone can help me? or it is known bug?

    Try to execute one class with Dfile.encoding=utf-16 encoding in solaris. It failed to parser the parameters.
    Give one simple Helloworld.java with code:
              System.out.println("hello world");
    javac Helloworld.java
    java -d64 -classpath . -Dfile.encoding=utf-16 test
    We get the error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Helloworld
    Anyone can help me? or it is known bug?

  • The agent can not upload the xml file in the repository of the OMS

    Hi,
    I install an agent 10.2.0.4 HP-UX v.11.23, 64 bit, which has an Oracle database v.10.2.0.4.
    The OMS identified a single server, but no database.
    I uninstall the agent and remove the server from the OEM (html).
    I install agent again with the patch 6409645.
    Configure a security key to the agent (emctl secure agent).
    However, it generates a file error emagent.trc, when i start the agent:
    2009-04-14 12:23:05,819 Thread-1 WARN collector: MESSAGE_NLSID "Successful Name Registration Request Sent By Identity Provider(%)" is too long, truncating to "Successful Name Registration Request Sent By Identity Provider(%"
    2009-04-14 12:23:40,616 Thread-21 WARN upload: FxferSend: received http error in header from repository: https://gcontrol.manquehue.local:1159/em/upload
    ERROR-400|ORA-01861: literal does not match format string
    2009-04-14 12:23:40,619 Thread-21 ERROR upload: Failed to upload file B0000001.xml: HTTP error.
    Response received: ERROR-400|ORA-01861: literal does not match format string
    Please anyone can help me?
    David

    Hi:
    Do the following in OMS host:
    [oracle@gcontrol bin]$ ./emctl secure unlock
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Checking the security status of the OMS... Done.
    Stopping the HTTP Server... Done.
    Updating HTTPS Virtual Host for Enterprise Manager OMS... Done.
    Starting the HTTP Server... Done.
    OMS Unlocked. Non Secure Agents may upload using HTTP.
    [oracle@gcontrol bin]$
    In Agent host:
    $AGENT_HOME/bin/emctl unsecure agent
    $AGENT_HOME/bin/emctl secure agent
    $AGENT_HOME/bin/emctl start agent
    $AGENT_HOME/bin/emctl status agent
    $AGENT_HOME/bin/emctl upload agent
    but the error continues:
    2009-04-16 18:08:07,700 Thread-1 WARN http: snmehl_connect: connect failed to (delfos:1830): Connection refused (error = 239)
    2009-04-16 18:08:07,700 Thread-1 ERROR main: nmectla_agentctl: Error connecting to https://delfos:1830/emd/main/. Returning status code 1
    Even start the agent without security, but the error remains. (unsecure only)
    2009-04-16 18:07:43,353 Thread-1 WARN http: snmehl_connect: connect failed to (delfos:1830): Connection refused (error = 239)
    2009-04-16 18:07:43,354 Thread-1 ERROR main: nmectla_agentctl: Error connecting to http://delfos:1830/emd/main/. Returning status code 1
    Not yet implemented $OMS_HOME/bin/emctl secure lock
    Any idea?
    Thanks for your help.
    David

  • Urgent: can not startup the database in unix server

    hi...i am facing a treamendous problem...
    to shutdown the database(unix environmment), I have connected through putty and from there in the sysdba login, I have given the command "SHUTDOWN IMMEDIATE"
    but after that suddenly the power failure occurred and my local machine from which i was accessing the unix server, got shutdown..
    after the restart, when I am again accessing the putty and connected to the oracle11g server and from sysdba login, given the "STARTUP OPEN" command, then it is showing the error...
    SQL> startup open
    ORA-10997: another startup/shutdown operation of this instance inprogress
    ORA-09968: unable to lock file
    Linux-x86_64 Error: 11: Resource temporarily unavailable
    Additional information: 29770
    please help...its very urgent..

    My advice is, as your request is 'urgent', you submit a Service Request at level 1 at My Oracle Support.
    This is a discussion forum and not a support forum, and it is manned by volunteers, not by Oracle Support Engineers.
    Thank you for your current and future cooperation not to submit 'Urgent' requests in a forum of volunteers.
    Sybrand Bakker
    Senior Oracle DBA

  • Spry can not  parse xml string

    while designind an mvc architecutre in php I found display
    data on site was slow so I generate a xml sheet an used spry Data
    loading was fast an dproduced and I also performed many operations
    like sorting ,galeery making ..etc... but main thing is that I can
    not parse a xml string using spry only a xml file can be parsed
    my application required to parse xml string

    I'm not sure if this is valid in your situation, but OC4J comes with Oracle XMLParser.
    Simply use the JAXP API to parse/build/modify XML and the Oracle XMLParser implementation will be used behind the scenes.
    If you must use xerces/xalan, try putting the jars in OC4J_HOME/j2ee/home/lib instead.
    HTH //Anders

  • Help: OJSPC can not compile the JSP with struts tag

    Hi,
    I am trying to precompile the JSP page with EAR package but OJSPC can not parse the Struts tags.
    I always get oracle.jsp.parse.JspParseException:
    Error: org.apache.struts.taglib.html.MessgesTei while reading TLD /WEB-INF/tld/struts-html.tld
    My OC4J version is 10.1.3.2 and I did tried putting the struts-taglib.jar to /opt/oracle/product/app10g/j2ee/home/jsp/lib or /lib/taglib
    but still do not work.
    Can anyone tell me how to configure the OJSPC and let it support customerized taglibs?
    Thanks a lot!

    This is a new problem with jdk1.4 when compiling with tomcat.
    The solution is to ensure that any classes in WEB-INF/classes are in a package structure and the relevant jsp calls the same using the package name.
    best
    kev

  • TS2529 itunes will not access the istore or itunes server for updates

    I can not access the istore or itunes server from my itunes page...any articles or links on this???

    Hi, tsgeisel,
    iTunes can access CDDB for track information after a CD has been imported into iTunes by using the Advanced menu option I mentioned in my previous post.
    If you want to check it out, import a CD when you're not connected to the internet - or with Automatically retrieve CD track names from internet unchecked in your iTunes Importing Preferences.
    After the CD has been imported there will be no track information included. But if you then select the tracks - all together, one at a time or in any combination you desire - and select Get CD Track Names, you will be pleasantly surprised.

  • ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element 'model'. Nested exception: Can not find the declaration of element 'model'.

    I have install flash builder 4 beta 2 + blazeds 4.00.7548. While try to connect to data service and face a problem.
    When i use a beta 1 that no such probem. please help.
    ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element ‘model’. Nested exception: Can not find the declaration of element ‘model’.

    Hello All!
    I'm just getting started with Flash Builder 4 and BlazeDS and I'm having this same issue.     I have installed the FlashBuilder 4 beta 2  Build 253292, and Blaze 4  ( blazeds-turnkey-4.0.0.14341 ).       I have also installed the livecycle_dataservices3_modelerplugin_100509.      Upon clicking Data-Connect to data/service and then Blazeds,   I can see my DAO object listed.   However, if I select it I receive the dreaded error.       Now if I code in the remote object manually, in the  .mxml file and run it, all works just fine.        It's only while trying to use the object within Flashbuilder that I have the problem.     I see lots of ideas kicked around for this, and it seems that various solutions have worked for different users.    Can somebody put together a 'cookbook' of just exactly how to set things up to make this work? 
    Thanks

  • Could not parse XMBMessage due to Can't parse the document

    *Dear all,*
    *i have a SOAP to RFC Scenario. XML Validation by Adapter is turned on in SenderAgreement.*
    *XSD Files are placed in the correct directory. Incoming requests are validated. However,*
    *it seems that responses produce an error in the soap adapter.*
    *This is the error message i am getting:*
    +SOAP:Fault>+
             +<faultcode>SOAP:Server</faultcode>+
             +<faultstring>Server Error</faultstring>+
             +<detail>+
                +<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">+
                   +<context>XIAdapter</context>+
                   +<code>ADAPTER.JAVA_EXCEPTION</code>+
                   +<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not parse XMBMessage due to Can't parse the document+
    +     at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1173)+
    +     at sun.reflect.GeneratedMethodAccessor678.invoke(Unknown Source)+
    +     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
    +     at java.lang.reflect.Method.invoke(Method.java:592)....+
    *In SXMB_MONI my response includes the following passages*
    +- <!--  ************************************+
      -->
      +<Trace level="3" type="T">Pipeline Service = PLSRV_XML_VALIDATION_RS_OUT</Trace>+
      +<Trace level="3" type="T">Skip Inbound Validation =</Trace>+
      +<Trace level="3" type="T">Skip Outbound Validation =</Trace>+
      +<Trace level="3" type="T">Area = XML_VALIDATION_OUT</Trace>+
      +<Trace level="1" type="T">Reading sender agreement</Trace>+
      +<Trace level="3" type="T">Validation Mode = Validation by Adapter</Trace>+
      +<Trace level="1" type="T">Outbound validation of response takes place</Trace>+
      +<Trace level="3" type="T">Interface Name = SI_xxx_xxx_xxx_Sync_Outbound</Trace>+
      +<Trace level="3" type="T">Interface Namespace = http://xxx.de/xxx</Trace>+
      +<Trace level="3" type="T">Software Component Version = D390B9E10A6B11DF8C15C7540A484C06</Trace>+
      +<Trace level="2" type="T">Java Validation Service Call</Trace>+
      +<Trace level="1" type="T">System error occurred during XML validation</Trace>+
      +<Trace level="1" type="E">CL_XMS_PLSRV_VALIDATION~ENTER_PLSRV</Trace>+
      +</Trace>+
      +<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />+
    +- <!--  ************************************+
      -->
      +<Trace level="3" type="T">Persisting message Status = 023</Trace>+
      +<Trace level="3" type="T">Message version 009</Trace>+
      +<Trace level="3" type="T">Pipeline CENTRAL</Trace>+
      +</SAP:Trace>+
    *I see the following error message:*
      +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>+
    +- <!--  Aufruf eines Adapters+
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="XML_VALIDATION_OUT">CX_XMS_SYSERR_VALIDATION</SAP:Code>
      <SAP:P1>Schema xxx.response.xsd not found in J:\usr\sap\xxx\SYS\global\xi\runtime_server\validation\schema\00000000000000000000000000000000\ u00D3u00B9u00E1 k u00DFŒ u00C7T HL \SI_xxx_xxx_xxx_Sync_Outbound\urnsap-comdocumentsaprfc~functions\xxx.response.xsd (J:\usr\sap\xxx\SYS\global\xi\runtime_server\validation\schema)</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>not used at the moment.</SAP:AdditionalText>
      <SAP:Stack>System error occurred during XML validation</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    There seems to be an error in the adapter trying to validate the response. Does anyone has a clue as to why ?

    Since i cannot get i running, i helped myself using a java mapping, that i packaged into a jar
    along with the xsd files. See code below:
    import com.sap.aii.*;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.BufferedReader;
    import java.io.OutputStream;
    import java.io.OutputStreamWriter;
    import java.io.UnsupportedEncodingException;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import javax.xml.transform.sax.SAXResult;
    import javax.xml.transform.sax.SAXSource;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Validator;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    @SuppressWarnings("unused")
    public class CustomValidator extends AbstractTransformation {
         public void transform(TransformationInput arg0, TransformationOutput arg1)
                   throws StreamTransformationException {
              Validator validator;
              InputStreamReader insr;
              String inputPayloadString;
              try {
                   // Trace
                   getTrace().addInfo("com.xxx.pi.mapping.validation.CustomValidator called");
                   InputStream inputPayloadStream = arg0.getInputPayload()
                             .getInputStream();
                   insr = new InputStreamReader(inputPayloadStream);
                   InputHeader inpHeader = arg0.getInputHeader();          
                   String intfName = inpHeader.getInterface();
                   getTrace().addInfo("Interface Name is :" + intfName);
                   String xsdName = "";
                   if (intfName
                             .equalsIgnoreCase("SI_xxx_Sync_Outbound")) {
                        xsdName = "Z_xxx.xsd";
                   if (intfName.equalsIgnoreCase("SI_xxx")) {
                        xsdName = "Z_xxx.xsd";
                   if (intfName
                             .equalsIgnoreCase("SI_xxx_Sync_Outbound")) {
                        xsdName = "Z_xxx.xsd";
                   if (intfName
                             .equalsIgnoreCase("SI_xxxx_Sync_Outbound")) {
                        xsdName = "Z_xxx.xsd";
                   getTrace().addInfo("Using schema: " + xsdName);
                   if (xsdName.equals(""))
                        throw new StreamTransformationException("Schema für "
                                  + intfName + " nicht gefunden.");
                   BufferedReader reader = new BufferedReader(new InputStreamReader(
                             getClass().getResourceAsStream(
                                       "/com/xxx/pi/mapping/xsd/" + xsdName)));
                   // prepare document validator:
                   String schemaLang = "http://www.w3.org/2001/XMLSchema";
                   SchemaFactory jaxp = SchemaFactory.newInstance(schemaLang);
                   Schema schema = jaxp.newSchema(new StreamSource(reader));
                   validator = schema.newValidator();
              } catch (SAXException saxe) {
                   throw new StreamTransformationException(saxe.getMessage());
              // validate
              try {
                   SAXSource source = new SAXSource(new InputSource(insr));
                   validator.validate(source);
              } catch (Exception e) {
                   getTrace().addInfo(e.getMessage());
                   String trace = e.getMessage();
                   throw new StreamTransformationException(trace, e.getCause());
              // Write the response
              try {
                   inputPayloadString = convertStreamToString(arg0.getInputPayload()
                             .getInputStream());
                   arg1.getOutputPayload().getOutputStream()
                             .write(inputPayloadString.getBytes("UTF-8"));
                   getTrace().addInfo("Schema Validierung erfolgreich !");
              } catch (Exception e) {
                   throw new StreamTransformationException(e.getMessage());
         // helper to convert to String
         private static String convertStreamToString(InputStream in) {
              StringBuffer sb = new StringBuffer();
              try {
                   InputStreamReader isr = new InputStreamReader(in);
                   BufferedReader reader = new BufferedReader(isr);
                   String line;
                   while ((line = reader.readLine()) != null) {
                        sb.append(line);
              catch (Exception exception) {
              return sb.toString();

  • Why i can not  parse xml in client jar successfully?

    If the length of xml is short in 300bytes(maybe another amount),i can read the string of xml from the file in java web start client jar and can parse it exactly. But if length is more than the amount, the xml string will be cut off so that i can not parse it.
    is this a bug of java web start? or my fault?
    display my function below:
    className :FileUtils
    private static byte[] getData(String fileName) throws IOException
    byte[] data = null;
    File file = null;
    try
    file = new File(fileName);
    }catch(Exception ex)
    ex.printStackTrace();
    InputStream in = null;
    if (file.exists() && file != null)
    in = new FileInputStream(file);
    data = new byte[in.available()];
    if (in.available() > 0)
    in.read(data);
    in.close();
    else
    in = FileUtil.class.getClassLoader().getParent()
    .getResourceAsStream(fileName);
    if (in == null)
    in = FileUtil.class.getClassLoader() .
    getResourceAsStream(fileName);
    if (in == null)
    throw new IOException("Can not read the file in
    classpath"+ fileName);
    else
    data = new byte[in.available()];
    if (in.available() > 0)
    in.read(data);
    in.close();
    else
    data = new byte[in.available()];
    if (in.available() > 0)
    in.read(data);
    in.close();
    return data;
    please help me,thank you.
    best regards!

    in = new FileInputStream(file);
    data = new byte[in.available()];available tells how many bytes are available at the moment in the buffer. For smaller files fitting into the buffer it might be okay but for longer ones it is definitively not.
    Use a ByteArrayOutputStream to store the data in and return its toByteArray().
    Or ask the for the file length and allocate a buffer of that size and read into it in one operation: read(byte[] b).

  • I can not install the Icloud control panel on a new windows 7 pc wtih outlook 2010. I get "you can't sign in because of a server error" .

    I can not install the icloud control panel on a neww windows 7 pc with outlook 2010. When i try I get "you can't inssign in because of a server error"
    I have :
    turned of the windows fire wall and antivirus protection
    stop and started the bonjour service
    done the "netsh winsock reset"
    updated all the drivers
    I can login to icloud.com with no problem and view my calendar.
    Apple chat also provide me with a test id and password to try to install the icloud panel, I got the same error message???
    Anyone have a fix?
    Thanks,

    To solve this problem you can:
    Windows 7
    1) Click on Start
    2) Type cmd and press enter
    you will see a new window
    3) type "netsh winsock reset"
    4) restart the machine
    should work.
    If still does not work you must disable the firewall and antivirus
    Para solucionar este problema debes hacer lo siguiente:
    en Windows 7
    1) click en Inicio
    2) escribe CMD y pulsa enter
    te va a aparecer una nueva ventana
    3) escribe "netsh winsock reset"
    4) reinicia la maquina
    deberia de funcionar.
    Si aun no funciona debes de deshabilitar el firewall y el antivirus

  • Can not startup the server on Enterprise server 4.1 on webadmin

    For Iplanet Enterprise webserver 4.1, why I get the message the Server is off on the Web Administrator screen but actually the web is running fine. But I can not use the Admin web site to modify something. I tried to start up the server but it appeared the errors " startup server failed". Do you has any idea?

    Caused by: java.net.UnknownHostException: Unknown protocol: 'ORMI'<<How is ORMI referenced by your configuration?

  • Slow-Start Up and "can not find the server" dialog box

    hi there -
    2 year old Ibook G4. When I try to open either Safari or Netscape the "can not find the server" box pops up.. I have a solid connection wi-fi for the wireless signal is on full strength. I have cleared my cache. Also I am experiencing start-ups that are taking 2-3 minutes. The color wheel just keeps spinning.Also, I have done repair and I renewed the DHCD. Not sure what else to do?

    as a guess, spinning wheel could be caused by failing hard drive.
    often failing hard drives will pass all tests by the utilities.
    you may want to back up any important files just in case.
    if the iBook boots up from the OS install CD/DVD with no problems, issues could be caused by the corrupted files on the hard drive or failing drive.

  • Safari is not able to open this page because it can not find the server.

    I too need help with this problem with my Ipod touch. Currently, I am in the Ukraine, go to a wifi cafe, access the wifi and get a clear powerful signal. Then I try to load the Google page, any page from my bookmark or write the web address in and I receive the same message; "Safari can not open this page because it can not find the server." Something is wrong with my settings and I tried to reset the options but it does not work. Can anyone help me with this problem? Thanks!!

    Hello and Welcome to Apple Discussions. 
    The 169.254.xxx.xxx address indicates that there is a problem with DHCP server in your BT Digital Hub (Home hub?) because the iPod is taking a default IP rather than been given a suitable one. At the moment the iPod is not even in the same subnet as the router so it's no wonder that Safari can't find the Internet.
    Ensure that the DHCP server is on and that you have an IP-address pool sufficiently large to serve all the devices you have. I'd expect it to be 192.168.1.1 to 192.168.1.253. If you have FON enabled you certainly need that wider range as other people may be using your router too.
    mrtotes

  • Why does it say itunes can not contact the ipod update server because you are not connected to the internet when i am connected to the internet?

    why does it say itunes can not contact the ipod update server because you are not connected to the internet when i am connected to the internet? i need to update my ipod i even changed the LAN settings and it stilll doesnt work

    Have you seen this article?
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    B-rock

Maybe you are looking for