XML Registry problem in WLS 7.0

Hi,
I have created an XML Registry with SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
because i want to use the latest saxparser in my webapplication. But when i invoke
this line of code in my webapplication: -
SAXParserFactory spf = SAXParserFactory.newInstance();
i get weblogic.xml.jaxp.RegistrySAXParserFactory instead of org.apache.xerces.jaxp.SAXParserFactoryImpl
I also get system property javax.xml.parsers.SAXParserFactory=weblogic.xml.jaxp.RegistrySAXParserFactory
in the WLS log file.
I have tried putting xercesImpl.jar in the classpath before weblogic.jar. I also
tried changing the system property in startWLS.cmd also, ..but all in vain.
Can someone help me out in figuring out who is setting this system property to
WLS's default SAXfactory and how can i use my parser work in a webapplication?
Any help would be greatly appreciated!!
thanks -
Manoj

First thing, most of BEA's forums are terrible as people rarely reply. I noticed your post through google searching for the same fix. You have likely done the same things as me and have learned that your Oracle JDBC Client driver has some bugs interacting with certain version of Oracle Server. For us, this problem occured when we migrated from Solaris to AIX. We were able to fix this by downloading the latest version of ojdbc14.zip from oracle's site. You can either replace the current ojdbc14 file in the bea installation or make sure it is visible in the classpath for WLS before the old version.
Here is a good link which describes the problem, good luck.
http://www.dbtalk.net/comp-databases-oracle-server/java-sql-sqlexception-bigger-type-289015.html

Similar Messages

  • Configure a new XML Registry...

    Hi all,
    I made the configuration followed document instruction(http://edocs.bea.com/wlp/docs40/deploygd/refdmain.htm#1120486),
    when I processed 10 step, that is :
    On the portal XML registry page, click the Targets tab. Then move your server
    from the Available to the Chosen list.
    I got a exception message, that is ”Distributed Management”, please
    find the attachment details:
    BTW, I happened to the same problem in the different computer.
    In addition, I have to edit config.xml file by hand,I haven’t met
    other problem currently, I only want to clarify why the above abnormity appeared?
    Wish can get your help, thanks in advance.
    [att1.html]

    These queues are automatically created by OIM during installation. You can verify this by loggin into WLS admin console and going to
    Home >Services > Messaging >JMS Modules >OIM_JMS_MODULE >Summary of Resources

  • Adding properties to XML Registry

    I'm using WLS 6.0. I was wondering if it is possible
    to add more properties into the XML Registry on the console.
    The two properties currently there are: DocumentBuilderFactory
    and SaxParserFactory.
    I'd like to add the two system properties: javax.xml.transform.TransformerFactory
    and org.xml.sax.driver.
    I know I can set these from the command line using the
    -D option but I'd much rather have the configuration
    in the console.
    Can I do this? If so, how?
    Thanks!

    Follow-up: Even though it lists 4 missing required properties in the error, when I went back and added only the Value property, the red flags went away....
    Werry Interestink!

  • Weblogic XML Registry and Entity Resolution

    Hi,
    I have configure Weblogic XML Registry as described in
    http://e-docs.bea.com/wls/docs81/ConsoleHelp/xml.html. I have a directory
    where my dtds reside (%WLDOMAIN%/xml/registries/MyRegistry/). I using JAXP
    (the BEA recommended API which should automatically make use of the registry
    for entity resolution). But somehow it seems that it is looking in the root
    of the weblogic domain for the entities and not in the registry entities
    directory.
    A sample doctype in one of my doc looks like <!DOCTYPE substance_id PUBLIC
    "-//CAS//DTD substance_id//EN" "substance_id.dtd">
    The registry is configured as follows
    Public ID System ID
    Entity URI When To Cache Cache Timeout Interval
    ============================================================================
    ===============
    -//CAS//ENTITY CMD Defined Entities//EN CMSents.dtd CMSents.dtd
    defer-to-registry-setting -1
    -//CAS//DTD control//EN control.dtd
    control.dtd defer-to-registry-setting -1
    -//CAS//DTD substance_id//EN substance_id.dtd
    substance_id.dtd defer-to-registry-setting -1
    Below is the exception from the server log. Any help would be greatly
    appreaciated.
    ####<Dec 12, 2003 11:09:32 AM EST> <Debug> <org.cas.felix.util.XML>
    <PC81227> <myserver> <ExecuteThread: '13' for queue:
    'weblogic.kernel.Default'> <<anonymous>> <BEA1-0009897C74118C32D0F4>
    <000000> <exception parsing document <?xml version="1.0"?>
    <!DOCTYPE substance_id PUBLIC "-//CAS//DTD substance_id//EN"
    "substance_id.dt ... (4869)
    java.io.FileNotFoundException: D:\wls_domains\felix\substance_id.dtd (The
    system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at
    sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:6
    9)
    at
    sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
    .java:156)
    at java.net.URL.openStream(URL.java:960)
    at
    weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.ja
    va:836)
    at
    weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager
    .java:796)
    at
    weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerIm
    pl.java:275)
    at
    weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XM
    LDocumentScannerImpl.java:841)
    at
    weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
    ocumentFragmentScannerImpl.java:329)
    at
    weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
    525)
    at
    weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
    581)
    at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at
    weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
    a:1175)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
    at org.cas.felix.util.XML.validate(XML.java:88)
    at org.cas.felix.util.XML.validate(XML.java:69)
    at org.cas.felix.si.master.MasterDocument.<init>(MasterDocument.java:94)
    at org.cas.felix.si.master.MasterDocument.<init>(MasterDocument.java:139)
    at
    org.cas.felix.si.j2ee.processing.FelixSIProcessorBean.processRecord(Unknown
    Source)
    at org.cas.felix.si.j2ee.processing.FelixSIProcessorBean.onMessage(Unknown
    Source)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:374)
    at
    weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:30
    8)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:273)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2550)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2470)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

    Hi Brian,
    In your config.xml, in the <XMLRegistry> section, what does the
    EntityURI look like? I believe it should be a relative entry, something
    like %WLDOMAIN%/xml/registries/MyRegistry
    If this is not the issue, I would encourage you to provide this
    information with your config.xml to our outstanding support team to
    resolve this issue.
    Thanks,
    Bruce
    Brian Sam-Bodden wrote:
    >
    Hi,
    I have configure Weblogic XML Registry as described in
    http://e-docs.bea.com/wls/docs81/ConsoleHelp/xml.html. I have a directory
    where my dtds reside (%WLDOMAIN%/xml/registries/MyRegistry/). I using JAXP
    (the BEA recommended API which should automatically make use of the registry
    for entity resolution). But somehow it seems that it is looking in the root
    of the weblogic domain for the entities and not in the registry entities
    directory.
    A sample doctype in one of my doc looks like <!DOCTYPE substance_id PUBLIC
    "-//CAS//DTD substance_id//EN" "substance_id.dtd">
    The registry is configured as follows
    Public ID System ID
    Entity URI When To Cache Cache Timeout Interval
    ============================================================================
    ===============
    -//CAS//ENTITY CMD Defined Entities//EN CMSents.dtd CMSents.dtd
    defer-to-registry-setting -1
    -//CAS//DTD control//EN control.dtd
    control.dtd defer-to-registry-setting -1
    -//CAS//DTD substance_id//EN substance_id.dtd
    substance_id.dtd defer-to-registry-setting -1
    Below is the exception from the server log. Any help would be greatly
    appreaciated.
    ####<Dec 12, 2003 11:09:32 AM EST> <Debug> <org.cas.felix.util.XML>
    <PC81227> <myserver> <ExecuteThread: '13' for queue:
    'weblogic.kernel.Default'> <<anonymous>> <BEA1-0009897C74118C32D0F4>
    <000000> <exception parsing document <?xml version="1.0"?>
    <!DOCTYPE substance_id PUBLIC "-//CAS//DTD substance_id//EN"
    "substance_id.dt ... (4869)
    java.io.FileNotFoundException: D:\wls_domains\felix\substance_id.dtd (The
    system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at
    sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:6
    9)
    at
    sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
    .java:156)
    at java.net.URL.openStream(URL.java:960)
    at
    weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.ja
    va:836)
    at
    weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager
    .java:796)
    at
    weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerIm
    pl.java:275)
    at
    weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XM
    LDocumentScannerImpl.java:841)
    at
    weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
    ocumentFragmentScannerImpl.java:329)
    at
    weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
    525)
    at
    weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
    581)
    at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at
    weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
    a:1175)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
    at org.cas.felix.util.XML.validate(XML.java:88)
    at org.cas.felix.util.XML.validate(XML.java:69)
    at org.cas.felix.si.master.MasterDocument.<init>(MasterDocument.java:94)
    at org.cas.felix.si.master.MasterDocument.<init>(MasterDocument.java:139)
    at
    org.cas.felix.si.j2ee.processing.FelixSIProcessorBean.processRecord(Unknown
    Source)
    at org.cas.felix.si.j2ee.processing.FelixSIProcessorBean.onMessage(Unknown
    Source)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:374)
    at
    weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:30
    8)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:273)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2550)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2470)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

  • WL 6.1 and Configuring External Entity Resolution with XML Registry

    I have an XML document that uses a DTD with an http:// URL (specifically, my configuration
    file for Struts). It works fine if the machine on which WebLogic is running has
    an internet connection, but doesn't work when that machine (for security reasons)
    is not connected.
    I found in the "Administering WebLogic server XML" document the "External Entity
    Configuration Tasks" section which seemed that it would solve my problem by specifying
    a local file when encountering an external entity. I followed the directions,
    but it didn't seem to make a difference.
    Am I interpreting the documentation correctly (and if so, would the XMLRegistry
    section below do what I think it should do), or do I need to do something completely
    different (i.e., modify the Struts code) to have it not look for the http-based
    DTD?
    Any help is appreciated.
    ;ted
    The XMLRegistry section of the config.xml file:
    <XMLRegistry Name="Struts">
    <XMLEntitySpecRegistryEntry CacheTimeoutInterval="-1" EntityURI="file:c:/struts-config_1_1.dtd"
    Name="XMLEntitySpecRegistryEntry-1003533562502" PublicId="-//Apache Software Foundation//DTD
    Struts Configuration 1.1//EN" WhenToCache="cache-at-initialization" />
    <XMLEntitySpecRegistryEntry EntityURI="file:c:/struts-config_1_1.dtd" Name="XMLEntitySpecRegistryEntry-1003525690002"
    SystemId="http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd" />
    </XMLRegistry>
    A copy of the struts-config_1_1.dtd file is in the C:\ directory.

    Firstly, ensure that your XML Registry is targeted at a server. I know that's stating the obvious but you never know.
    Secondly the xml/registries/??? directory belongs in the config/domain directory and not one level higher in the applications directory.
    I'm been experincing problems resolving to an XML Schema. Resolution to a DTD works fine. Let me know how you get along

  • I am having a issue installing Adobe Acrobat XI.  I am running Windows 8.1. When  go to install it gets an error.  The error is with transform in registry and will not install product. I am looking at how I can fix this registry problem.

    I am having a issue installing Adobe Acrobat XI.  I am running Windows 8.1. When  go to install it gets an error.  The error is with transform in registry and will not install product. I am looking at how I can fix this registry problem.
    I have tried to uninstall all Abode Acrobat installations but one file remains and refuses to be uninstalled. It gives me this error : Error applying Transforms . Verify that specified paths are valid. It was installed on Sept 18 2014.  I have downloaded a Transform update but it tells I do not have a Adobe Acrobat product installed. 

    Hi all,
    Sylonious, did you manage to sort this problem out? I have been experiencing similar problems. I think my problem was because I had many different versions of JDKs. I have done a complete re-install. I would be really grateful to you (and anyone else) for help with this problem.
    I have re-installed JSDK1.4.2_03, set the "path" variable to "C:\JSDK1.4.2_03".
    When I compile using "javac" I get an error saying "javac" is not recognised.
    When I compile using "C:\j2sdk1.4.2_03\bin\javac Freq.java" no error is thrown.
    Every time I try to run a java file, I always get the NoClassDefFound error. When run with the -verbose option, files are loaded from C:\Program Files\Java\j2re1.4.2_03\bin - is this correct?
    I have removed all previous references to java in the registry editor.
    Please help !
    Regards,
    Vipul

  • WIJ 20002 xml Parser Problem - Rich Client

    Hi,
    I have a problem with the rich client on a new installation:
    Business Objects Enterprise XI 3.1 SP3 on Windows 2008 Standard.
    If I connect with the rich client "import document"is disabled.
    if I try to create a new document from the rich client it returns the error below (I used the rich client on two workstations):
    WIJ 20002
    Version: null
    Analisi dello stack:
    java.lang.RuntimeException: java.lang.RuntimeException: XML parser problem:
    XMLJaxpParser.parse(): Element type "ABOUT_Patentnumbers" must be followed by either attribute specification, ">" or "/>".
    at com.businessobjects.wp.xml.jaxp.XMLJaxpParser.parse (Unknown Source)
    at.com.businessobjects.webi.richclient.XMLviaOccaRC.getServerConfiguration (Unknown Source)
    Have you any solution?

    The fixpack 3.5 client resolves the problem.

  • "package java.xml.registry does not exist" error in NetBeans

    Hi all
    I'm using netbeans for developing webservices and and have to use JAXR. I have downloaded and installed jwsdp1.5.
    When I view the source code for the JAXR sample java files that accompany the java EE tutorial in the NetBeans IDE Source Editor, I get the error : package java.xml.registry does not exist.
    However, the release note for NetBeans says that it supports JAXR.
    Also, when I compile and run the same files using DOS and the ant command, the files work.
    Can someone please tell me what to do and how to work on JAXR clients in NetBeans because the Help files don't have any documentation on it nor does the NeBeans Field Guide?

    Do you have the jaxrpc-api.jar and jaxprc-ri.jar in your classpath?
    They are in <wspack1.1 installation>/jaxrpc-1.0.2/lib
    Regards,
    Bhakti

  • XML - ExportDocument problem

    I'm exporting a xml document that I'm creating dynamically in my application.
    I'm having the following problems (working with 30M.2).
    1)
    It's not possible to edit a DTD (or creating one run time) so I have to write a
    template doc XML to have it.
    I'm afraid that this is a costraint on the DOM1 so ...
    2)
    Once I complete the construction of the doc, I need to write it down (let's say
    on a file, but could be also in memory to send it on http).
    When I write it (using exportdocument function) I just find the root element
    with all it's children, no haeder (<?xml version="1.0" ?><!DOCUMENT ...>) so I
    cannot have the dtd information on the stream, and cannot enforce validation of
    the doc when someone read it afterwards.
    I admit I'm new of the subject, but or I miss something or something is wrong:
    having trouble to get a dtd and not being able to code it's information.
    Anyone has some ideas?
    TIA
    Luca

    I'm interested in DTDs. For example in the reported situation, why, if you
    know you've created a valid XML document would you want to give a DTD to
    someone at the other end? If someone has a DTD at the other end and want to
    use it to validate your XML then fine but if you create the XML and are
    controlling the format then wouldn't they just assume the XML correct if the
    DTD wasn't being controlled by a 3rd party or themselves?
    DTDs don't help you create a document but just validate it, I'd thought. If
    there is more to DTDs I'd appreciate if someone felt like ellaborating.
    Thanks.
    Matthew Middleton
    OrYx Software Consultant
    Lawpoint Pty. Limited
    A Solution 6 Company
    Ph: +61 2 9239 4972
    Fax: +61 2 9239 4900
    E-mail matthewmwriteme.com
    ----- Original Message -----
    From: Luca Gioppo <Luca.GioppoCSI.IT>
    To: <forte-userslists.xpedior.com>
    Sent: Tuesday, August 08, 2000 8:24 PM
    Subject: (forte-users) XML - ExportDocument problem
    >
    >
    I'm exporting a xml document that I'm creating dynamically in myapplication.
    I'm having the following problems (working with 30M.2).
    1)
    It's not possible to edit a DTD (or creating one run time) so I have towrite a
    template doc XML to have it.
    I'm afraid that this is a costraint on the DOM1 so ...
    2)
    Once I complete the construction of the doc, I need to write it down(let's say
    on a file, but could be also in memory to send it on http).
    When I write it (using exportdocument function) I just find the rootelement
    with all it's children, no haeder (<?xml version="1.0" ?><!DOCUMENT ...>)so I
    cannot have the dtd information on the stream, and cannot enforcevalidation of
    the doc when someone read it afterwards.
    I admit I'm new of the subject, but or I miss something or something iswrong:
    having trouble to get a dtd and not being able to code it's information.
    Anyone has some ideas?
    TIA
    Luca
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Using XML registry FactoryConfigurationError

    Hi I have been trying to use the XML registry to parse an XML doc, using weblogic6.0.
    I generated a custom parser from the dtd for the said xml doc.
    I have attached the config window (reg1) for the registry, the SAX and Document
    builder factories are the default.
    I have also attached a portion of the code used to the JAXP to call the custom
    generated parser class
    When I try to run this I get the error specified below.
    Running on a windows NT machine.
    Any advice or pointers would be greatly appreciated.
    Thanks,
    Brian
    <Apr 17, 2001 4:09:13 PM PDT> <Error> <HTTP> <[WebAppServletContext(5163124,subs
    )] Servlet failed with Exception
    javax.xml.parsers.FactoryConfigurationError: weblogicx.xml.objects.SubscriberPar
    ser
    at weblogic.xml.jaxp.RegistryParser.getCustomParser(RegistryParser.java:
    247)
    at weblogic.xml.jaxp.RegistryParser.getParser(RegistryParser.java:172)
    at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:103)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:100)
    at JAXPSubscriberParser.<init>(JAXPSubscriberParser.java:40)
    at jsp_servlet._jaxpsubscriberparser._jspService(_jaxpsubscriberparser.j
    ava:94)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:213)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:1265)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1622)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    [subs.doc]

    Hi Rothrock, thanks for your reply...
    Flash Version: 8, but the swf was published to be 7+
    compatible.
    The font is Meta Normal, it is embedded, and it does include
    the character.
    I am retrieving the xml by using this script in the html
    page:
    <script type="text/javascript">
    // <![CDATA[
    var fo = new FlashObject("/templates/flash/index.swf" +
    cKiller, "ad-flash", "710", "351", "7", "#FFFFFF");
    fo.addVariable("xmlURL", "/flash_content/products.xml");
    fo.write("ad");
    // ]]>
    </script>
    I am creating the XML using Macromedia Homesite, with the
    encoding declaration <?xml version="1.0" encoding="UTF-8" ?>
    The XML is being read fine, only the special characters don't
    show up... so it will cut off the word, or just have an empty space
    where the character should be.
    I am not sure how to specifiy Extended Latin charset in the
    document... could you tell me how to do that?
    Thanks

  • Txt to xml. Problems with characters(&, , ',...)

    I want to generate a xml file with text from a txt file but i have problems with special characters such as &, <... I'd like to know if there�s any class or library to filter the text in order to generate my xml without problems.
    Thank you.

    Use JDOM to generate your XML. It will worry about escaping issues for you.
    Here's a (probably rather inelegant) example for you to play around with:
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    public class DateBoom {
         public static void main(String[] args)
              throws Exception
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();
              String dodgyText = "< & '";
              Document document = builder.newDocument();
              Element root = document.createElement("root");
              root.setAttribute("dodgy",dodgyText);
              document.appendChild(root);
              Element child = document.createElement("child");
              root.appendChild(child);
              child.appendChild(document.createTextNode(dodgyText));
              Transformer transform = TransformerFactory.newInstance().newTransformer();          
              Source source = new DOMSource(document);
              Result result = new StreamResult(System.out);
              transform.transform(source,result);
    }Your alternative is to use something like String regular expressions (regex) to do this manually, but the XML oriented libraries will catch more corner cases than you're likely to anticipate, making them more reliable.

  • Javax.xml.registry.JAXRException

    Hi Friends,
    Anybody has idea what does this mean:
    javax.xml.registry.JAXRException: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Cannot find MessageFactory implementation]
         at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
         at com.sun.xml.registry.uddi.UDDIMapper.findOrganizations(Unknown Source)
         at com.sun.xml.registry.uddi.BusinessQueryManagerImpl.findOrganizations(Unknown Source)
         at FindBusinessInfo.main(FindBusinessInfo.java:43)
    Caused by: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Cannot find MessageFactory implementation]
         at com.sun.xml.registry.common.util.MarshallerUtil.jaxbMarshalObject(Unknown Source)
         ... 4 more
    Caused by: javax.xml.soap.SOAPException: Cannot find MessageFactory implementation
         at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:111)
         ... 5 more
    Thanks!
    Vishal

    Please describe in more detail at which circumstances this error appears? It's not completely clear from the stack trace.

  • General install and deployment problem with WLS clustering on two boxes

    Hi,
    I've come across a general installation problem with WLS with a cluster spanning two different physical machines and two Managed Servers, one Managed Server per physical machine.
    The problem is, starting from scratch, you install WLS on both physical machines. You can then use the config wizard to create the domain, cluster and managed servers, but this is a manual typing in process.
    So we've now got a WLST Script which we run with "java weblogic.WLST domaincreate.py domain.properties". This is good as it creates the domain, cluster, managed servers and JMS modules.
    Now the trouble is, it doesn't do anything to the 2nd physical machine which will be running only the 2nd Managed Server.
    One dirty way to get around this in order to start the 2nd managed server was to copy the domain directory to the 2nd server, but I'm sure this is bad practice and what you can actually do is improve the WLST script to actually, but the same as the config wizard and dump the nessary information to the 2nd physical machine in order so you don't need to copy the domain directory across so that it will startup straight after running the WLST.
    Any help appriecated.
    Surfbum.

    Hi I think I've found the answer. You can build a managed server template using the pack command.
    http://e-docs.bea.com/common/docs90/pack/tasks.html

  • Problem downloading itunes using IE8. Registry problem with iTunesSetup.exe file

    I am trying to install iTunes and have come up against the Registry problem and Windows saying the file needs a signature.  I have tried deleting the browsing history and searching and deleting all copies of the iTunesSetup.exe file.  I have even begun again with QuickTime.  All to no avail.
    I'm using Windows XP.
    Does anyone have any further ideas for this problem please?
    Thank you!!

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • Javax.xml.registry.JAXRException: Failed to create instance of: null

    Friends,
    I don't understand why this error is coming :-
    javax.xml.registry.JAXRException: Failed to create instance of: null
    at javax.xml.registry.ConnectionFactory.newInstance(ConnectionFactory.java:75)
    at JAXRFindBusiness.doQuery(JAXRFindBusiness.java:46)
    at JAXRFindBusiness.main(JAXRFindBusiness.java:28)
    Caused by: java.lang.NullPointerException
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at javax.xml.registry.ConnectionFactory.newInstance(ConnectionFactory.java:70)
    ... 2 more
    Please help
    Thanks
    Vishal

    Please describe in more detail at which circumstances this error appears? It's not completely clear from the stack trace.

Maybe you are looking for