Illegal characters in xml configuration files

Hi,
We are storing user configuration details in the server.xml for use with startup classes.
We are experiencing problems where the values of this configuration information contain characters such as < & > and we receive the following error:
07/05/17 15:05:35 Start process
Error initializing server: Fatal error at line 92 offset 20 in file:/home/orabpel/OraHome_2/j2ee/OC4J_BPEL
/config/server.xml: The content of elements must consist of well-formed character data or markup.I was hoping the problem could be resolved by enclosing the values of nodes which contain illegal characters with <![CDATA[]]>, but this has not resolved the problem.
Is there any way we can achieve this?
The reason we are storing these characters in the server.xml is because they represent obfuscated passwords in rot39 format. Perhaps there is a more suitable obfuscation/encryption format that is very simple to implement?
Thanks
Toby

Actually, specifing the values as CDATA does work, but i had a typo that was causing it to fail.
Toby

Similar Messages

  • How to generate an XML Configuration File for EBS Source Type

    Hi,
    We have installed SES, I want to integrate it to enable for searching repository contracts.
    In the sources I have selected oracle.apps.okc.repository.textsearch.server.RepHeaderSearchExpVO.
    For this source I need to specify the Configuration URL.
    Here I need to provide the path for configuration XML file. But before that I need to generate the XML Configuration file.
    Is there any steps on how we can create this XML file.
    like I would want to know how we can create the XML file and on which folder on the server should I be putting it
    Thanks

    Hi there,
    We are running into same issue and need the exact same information. Can someone help with this question on priority?
    Thanks,
    Darshan

  • XML configuration file to link to frames in Flash - As2.0

    How can I set the url or link attribute from the XML configuration file to link to frames in my movie instead opening a HTML page? I am using Actionscript 2.0
    Thank you.

    What type of file is using this xml data?  If it is being read by the AS2 file, then your data should resemble either frame labels or frame numbers.

  • Log4j: XML configuration file problem

    Hello,
    I set up some logging in my existing application with log4j and an xml configuration file. Now I made some changes to my package structure, and some problems occured. So I thougt of setting the logging level of one of my loggers (named myapp.iointerface.DBAccess in the config file). So the only change I did was adding a <param name="Level" value="TRACE"/> to my logger. Now, log4j complains when it reads the configruation file:
    log4j:WARN Continuable parsing error 36 and column 11
    log4j:WARN The content of element type "logger" must match "(level?,appender-ref*)".My config file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration debug="false" xmlns:log4j="http://jakarta.apache.org/log4j/">
         <appender name="RootConsole" class="org.apache.log4j.ConsoleAppender">
              <param name="Threshold" value="DEBUG"/>
              <param name="Target" value="System.err"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
              </layout>
         </appender>
         <appender name="LoginInfo" class="org.apache.log4j.FileAppender">
              <param name="Threshold" value="TRACE"/>
              <param name="File" value="${user.dir}/login_info.log"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
              </layout>
         </appender>
         <appender name="DBConnectionInfo" class="org.apache.log4j.FileAppender">
              <param name="Threshold" value="TRACE"/>
              <param name="File" value="${user.dir}/db_connection.log"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %n%m %n%n"/>
              </layout>
         </appender>
         <logger name="myapp.windows.MainFrameController" additivity="false">
              <appender-ref ref="LoginInfo"/>
         </logger>
         <logger name="myapp.iointerface.DBAccess" additivity="false">
              <param name="Level" value="TRACE"/>
              <appender-ref ref="DBConnectionInfo"/>
         </logger>
         <root>
              <param name="Level" value="DEBUG"/>
              <appender-ref ref="RootConsole"/>
         </root>
    </log4j:configuration>Does anybody know what's wrong with that? I don't understand and found nothing googling it netiher. The strange thing is, that logging messages with level TRACE are recorded in the destination file, but the level id DEBUG.
    Thx,
    Julien

    If you look at the error, the parser expects level and not Level
    So :
    <param name="Level" value="TRACE"/>should be :
    <param name="level" value="TRACE"/>Same goes for :
    <param name="Level" value="DEBUG"/>That will solve the problem (even though it is not a critical error)!

  • Setting time in  adf-faces-config.xml configuration file

    Hello check this link
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_convertDateTime.html
    this specifies "Timezone can be set per web-app in adf-faces-config.xml configuration file. If timeZone is not set on the converter, then timezone will be defaulted to the value set in adf-faces-config.xml configuration file. If it is not set in the configuration file, then it will be defaulted to GMT."
    how to set timezone in adf-faces-config.xml configuration file please specify
    Regards
    Mayur Mitkari

    where in adf-faces-config.xml i can add this line , and howThis might help: http://docs.oracle.com/cd/E24382_01/web.1112/e16181/af_global.htm#BJECDDDE

  • Single XML configuration file for all the SSIS packages(including parent and child packages)

    Hi
    I have some 16 ssis packages. source Db and destination Db for these packages are common. I am calling these child packages in a master package.
    I want to use only one XML config file for this master.
    How do i use same for all child packages?
    and can i do it with parent package variable?

    I created a master package with a variable master, and in value i have entered the configuration file path.
    Hi vjp dinu,
    You should create variables in the parent package to pass values to variables in each child package rather than pass the file path of the XML Configurations file of the parent package.
    As Visakh mentioned, you can achieve your goal by creating corresponding variables in the parent package for each child package, and enable Package Configurations for the parent package so that you can control the values through the XML Configurations file
    for the variables of the parent package.
    Supposing there is a variable FilePath in child package 1, a variable ServerName in child package 2, then, we need to create two variables pFilePath, pServerName in the parent package. After configuring the Parent package variable in each child package (e.g.
    mapping pFilePath to FilePath, pServerName to ServerName), you can enable XML Configurations for the parent package, and expose the value property for both pFilePath and pServerName variables. In this way, you can modify the XML Configurations file of the
    parent package and the specified values will passed to the child packages.
    Reference:
    http://microsoft-ssis.blogspot.com/2011/06/passing-variables-from-parent-package.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • Server.xml configuration files

    Hi all,
    The server.xml configuration files have a common defintion for different servers? or each server has its own definition.
    Thanks.

    each has its own.

  • Loading XML Configuration File into Java

    I have a stored procedure wrapper to a Java method (within a jar file) that has been loaded into the database. I need to load an XML configuration file in this method and parse it but get the following error.
    <Line 2, Column 192>: XML-24538: (Error) Can not find definition for element 'LODConfigs'
    When I run the method standalone through netbeans it parses fine and is able to load the file. I've confirmed that it is able to read the file but I am lost as to what could be the problem. Any suggestions would be welcome.
    The header of the file is
    <?xml version="1.0" encoding="UTF-8" ?>
    <LODConfigs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.oracle.com/spatial/network/lodLODConfigs.xsd"
    xmlns="http://xmlns.oracle.com/spatial/network">
    <LODConfig globalNetworkName="$DEFAULT$" networkName="$DEFAULT$">
    <networkIO>
    </networkIO>
    </LODConfig>
    </LODConfigs>

    Just a guess really, (and this is an old question now - so you may have moved on).. is your XML parser attempting to use the schema location to pull the XML schema from the internet?
    If so, that might run fine in netbeans, but hit java permission limits in Oracle. Have you tried running it in netbeans with the network cable unplugged.
    If that fails with the same error as the Oracle JVM, that might give a clue as to the problem and you can troubleshoot the permissions from there.

  • Java and XML Configuration Files

    Hi,
    Can anyone tell me the best way to read information stored in an XML configuration file into my Java program? I have a factory class which I want to instantiate classes from at runtime and I want to be able to read in the class names from a XML configuration file to make it extensible..
    Many thanks....

    Depends on what the OP means by XML configuration files.
    Spring reads Spring application context files. Those can help to configure objects, no doubt.
    If the OP meant reading in XML serializations of Java objects and turning them back into Java objects, then XStream is the right thing to do.
    %

  • XML configuration file does not show entry for PI_BASIS for PREPARE

    Hello SAP Gurus,
    We are doing ECC 6.0 SR3 upgrade including EHP3 SP3
    We generated XML configuration file for EHP3 from MOPZ
    But during XML file does not contains any information for PI_BASIS target level or source level
    current level is 2006_1_620
    We tried that XML file in PREPARE during EHP_INCURSION phase
    but failed all time.
    Let me know what we have to generate XML file with proper information including PI_BASIS
    Even PI_BASIS not appearing in MOPZ list for selection, its surprising for us.
    Any idea/direction would be highly appreciated.
    Thanks,
    Amit Lal

    Hi,
    I forwarded my query to AGS Dev support, They verified Solution manager and found no problem since it was up to date SPS15 ST400
    Problem was in SAPup, they provide the lastest sapup tool that was again released for this specific problem. See notes for SAPup with keyword EHP
    thanks,
    Amit

  • XML Configuration Files Batch Processing

    Greetings All,
    I have configuration file in XML as follow:
    <property>
    <name> world.wide.web.complexity.level </name>
    <value> 10 </value>
    <description> describes how complex the web is getting, see exitement for related values</description>
    </property>
    So, I would like to write a java program, that will generate several copies of the above file but with different values for one or several properties.
    I have discovered JDOM, SAX, apache configuration and so many technologies but didn't find a simple solution to this simple problem at a first pass.
    Many thanks in advance for your help

    Here is a way to set global container properties.
    You can get your container to read a properties file by modifying opmn.xml as follows:
    <process-type id="ct01" module-id="OC4J">
    <module-data>
    <category id="start-parameters">
    <data id="oc4j-options" value="-p /filepath/properties.file"/>
    These can then be read in with a System.getProperty() command.

  • SPA122 - How to turn off "DHCP Option To Use" in the Provisioning tab using the XML configuration file?

    As default, SPA122 and SPA112 have DHCP Options 66, 160, 159 and 150 turned on.
    Our pre-provisioning process includes adding our default profile rule to our provisioning server for the device to pull its configuration files once the device has been added to an account.
    However, it seems like some customers have had problems with the device downloading the definite configuration file and manually turning off option Option 66 in the provisioning tab in the device solves this issue.
    Is there any option we could add to our pre-provisioning file so that it removes 66 from the "DHCP Option to Use" field in the provisioning tab?
    Please advise...

    Thanks Dan,
    I didn't know the dhcp server could serve different options to different classes of clients, I'll have to look that up!
    Moises
    so if your provisioning file has this line below (this is from a spa5xx config I had in my temp folder, so use the line from your provisioning file, or use the SPC tool to create a new default config for that device type)
    <DH<DHCP_Option_To_Use group="Provisioning/Configuration_Profile">66,160,159,150,60,43,125</DHCP_Option_To_Use>
    change it to
    <DH<DHCP_Option_To_Use group="Provisioning/Configuration_Profile">160,159,150,60,43,125</DHCP_Option_To_Use>
    Hope it helps,
    Provisioning guide is here
    Cisco IP Telephony Devices Provisioning Guide - Cisco Support Community
    Dan

  • Auto update of OC4J xml configuration files with JDev

    When using JDeveloper with source control (such as ClearCase), Is there a way to configure JDev to prompt the user to check-out the ejb-jar.xml, orion-ejb-jar.xml, web.xml, or application.xml files when JDev needs to update them but finds them to be read-only?
    I have found that if these xml files are not checked-out (read-only) and JDev needs to update them (such as when a new EJB is created), JDev does not notify the user that it cannot update them and it does not prompt the user to check them out of source control. Developers often forget that they need to manually check-out these XML files and perform an "update" on them, thus creating configuration problems.
    Please advise.
    Thank you.
    Matt Burton

    Matt,
    Not yet. We have similar requirements for other areas of JDeveloper. This is certainly on the list of enhancements.
    David Brown
    SCM Product Management

  • How to create a configuration file for open ldap.

    hi,
    I have installed open ldap on my machine. Now I want to configure it to NetWeaver.
    For this, I started configuration through configtool utility of NetWeaver. While configuring, we need to select or upload configuration file. But now as it is open ldap we need to write our own config file.
    I tried it by selecting dataSourceConfiguration_ads_deep_readonly_db.xml  as a configuratio file. it shows successful test connection but the user which  I have created is not appearing in UME store.
    Does any body having solution for this?
    I am trying to solve this problem from two days. I really appriciate one who will sove this problem

    Well the configuration file you chose does not allow users created in NetWeaver to be created in the LDAP.  That's why it's a "readonly" configuration.  I would guess that you need a custom configuration file specifically for open ldap.
    This should help get you started on a custom configuration file:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/14d43f2dd44821e10000000a1550b0/frameset.htm
    Then again, if the only problem with the .XML file you chose is that you can't write to the LDAP, give the dataSourceConfiguration_ads_writeable_db.xml configuration file a shot.

  • ? is shown for Norwegian characters when XML document is parsed using DOM

    Hi,
    I've a sample program that creates a XML document with a single element book having Norwegian characters. Encoding is UTF-8. When i parse the XML document and try to access the value of that element then ? are shown for Norwegian characters. XML document file name is "Sample.xml"
                DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = dbfac.newDocumentBuilder();
                Document doc = docBuilder.newDocument();
                Element root = doc.createElement("root");
                root.setAttribute("value", "Á á &#260; &#261; ä É é &#280;");
                doc.appendChild(root);
                TransformerFactory transfac = TransformerFactory.newInstance();
                Transformer trans = transfac.newTransformer();
                trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
                trans.setOutputProperty(OutputKeys.INDENT, "yes");
                trans.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                //create string from xml tree
                java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
                StreamResult result = new StreamResult(baos);
                DOMSource source = new DOMSource(doc);
                trans.transform(source, result);
                writeToFile("Sample.xml", baos.toByteArray());
                InputSource is = new InputSource(new java.io.ByteArrayInputStream(readFile("Sample.xml")));
                is.setEncoding("UTF-8");
                DocumentBuilder obj_db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                Document obj_doc = obj_db.parse(is);
                obj_doc.normalize();
                System.out.println("Value is : " + new String(((Element) obj_doc.getElementsByTagName("root").item(0)).getAttribute("value").getBytes()));writeFile() - Writes the document bytes in Sample.xml file
    readFile() - Reads the Sample.xml file
    When i run this program XML editor shows the characters correctly but Java code output is: Á á ? ? ä É é ?
    What's the problematic area in my java code. I didn't get any help from any source. Please suggest me the solution of this problem.
    Thanx in advance.

    Hi,
    I'm using JBuilder 2005 and i mentioned encoding UTF-8 for saving Java source files and also for compilation. I've modified my source code also. But the problem persists. After applying changing the dumped sample.xml file doesn't display these characters correctly in IE, but earlier it was displaying it correctly at IE.
    Modified code is:
    DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = dbfac.newDocumentBuilder();
                Document doc = docBuilder.newDocument();
                Element root = doc.createElement("root");
                root.setAttribute("value", "Á á &#260; &#261; ä É é &#280;");
                doc.appendChild(root);
                OutputFormat output = new OutputFormat(doc, "UTF-8", true);
                java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
                OutputStreamWriter osw = new OutputStreamWriter(baos, "UTF-8");
                XMLSerializer s = new XMLSerializer(osw, output);
                s.asDOMSerializer();
                s.serialize(doc);
                writeToFile("Sample5.xml", baos.toByteArray());
                InputSource o = new InputSource(new java.io.ByteArrayInputStream(readFile("Sample5.xml")));
                o.setEncoding("UTF-8");
                com.sun.org.apache.xerces.internal.parsers.DOMParser obj_parser = new com.sun.org.apache.xerces.internal.parsers.DOMParser();
                obj_parser.parse(o);
                Document obj_doc = obj_parser.getDocument();
                System.out.println("Value : " + new String(((Element) obj_doc.getElementsByTagName("root").item(0)).getAttribute("value").getBytes()));I'm hanged on this issue. Can u please provide me the code snippet that works with these characters or suggest solution.
    Thanx

Maybe you are looking for

  • Backed Up from macbook pro to external hard drive for use on PC--how to restore to macbook pro?

    Good evening,   My college student daughter uses her macbook pro, 13" Mid-2010,  for ALL her school work.  A few days ago it stopped working for her.  Blank screen.  Turned it off and on, blank screen with the gear spinning.  She took it to a place n

  • V15 XML Loader Access To Path Not Allowed

    We are just starting to test our V15 sandbox system that has just been upgraded.  We have a transaction that works fine in our older environment (V12.2) but the same transaction fails in V15. The first sequence in the transaction is an XML Loader tha

  • Bc4j-oc4j and Jdeveloper Release Candidate

    I developed a bc4j application with Jdeveloper Release Candidate. In another pc I installed 9ias and bc4j-oc4j server. Then I deployed my application using .ear file. I get an error when I try to run the application through the as. Here is the error:

  • Retreiving number and characters from string

    Hello fellow developers, Lets say i have the following string ER686 and want to split the string into a number and characterpart resulting in a String "ER" and an int "686". What is the best approach to accomplish this? Thank you for any help offered

  • MP4 files: in home videos some files show names

    When viewing my home video files, some MP4's have titles under the video & some do not. Also all .mov files are missing titles??? Any idea as to how to correct this???