XML Registry

I'm still trying to run Xalan from the server side...
I tried to set up an XML Registry to use the org.apache.xerces.jaxp
classes. Though it is selected by the server on the XML Services tab,
and it is the only registry I have, I print out the factory and parser
classes that get created, and they are still
weblogic.xml.jaxp.RegistryBlahblahblah classes. The config.xml has the
right class names as shown on the console. Why aren't they used?
The other question I have is that since the Xerces classes that I want
to use have the same names as the ones included but are a different
version, how do I get the server to use the new classes and not the ones
bundled with WebLogic?
Any help would be greatly appreciated!
Michelle

Try to define XML Registry Entry for your specific DTD.
WL compares PublicId, SystemId and RootElement between XML and DTD to find
specific Parser class name for your XML. In this case you must create
xml/registry directory in your domain directory and put there your DTD file.
If it still not working - write this code:
public SAXParser getParser() {
// Return the parser we already created (if any)
if(parser!=null) {
return (parser);
// Create and return a new parser
try {
SAXParserFactory factory= new
org.apache.xerces.jaxp.SAXParserFactoryImpl();
factory.setNamespaceAware(false);
factory.setValidating(false);
parser=factory.newSAXParser();
return (parser);
} catch(Exception e) {
System.out.println("getParser: "+e.getMessage());
return (null);
"Michelle Baxter" <[email protected]> wrote in message
news:[email protected]...
Ok, thanks. I suspected it might be wrapping it, but I wasn't sure how
to tell. I have not figured out how to get the server to run as a
JBuilder run configuration to debug it. It's looking for ".\config",
even though I've given it weblogic.system.home. So I can't look at the
stack trace, at least not that way.
Whatever parser it's getting, it's still the wrong one because I still
get the AbstractMethodError. I don't see how it's possible to have the
wrong version with xmlx.jar out of the way. But I have to keep looking.
Thanks for all your help.
Sandeep Shrivastava wrote:
The parser is weblogic.xml.jaxp.RegistrySAXParser, but it wraps the
org.apache.xerces.parser.SAXParser. the actual parse will be done by the
xerces parser ( whatever is configured in the xml registry )
look at the stack trace in one of your sax callback methods to verify
this.
>>
sandeep
Michelle Baxter wrote in message <[email protected]>...
If that is true, then why when I print out the class name of a parser
that I created do I get weblogic.xml.jaxp.RegistrySAXParser instead of
org.apache.xerces.parsers.SAXParser, which is what is configured in the
config.xml file?
Sandeep Shrivastava wrote:
the weblogic.xml.jaxp package contains classes which implement JAXP
inside
weblogic server. The parser configured in the registry will be invoked
by
the server's jaxp implementation. You can verify this by examining thestack
trace inside one of your sax handler callback methods.
Michelle Baxter wrote in message <[email protected]>...
I'm trying to use Xalan 2J D05. The config.xml is attached.
Xalan is the first thing in my classpath when I run the server.
Xerces
is the second. I tried renaming xmlx.jar to something else, but it
doesn't make a difference.
Sandeep Shrivastava wrote:
Which version of Xalan are you trying to use?
Can you post the config.xml?
The weblogic 6.0 install contains Xerces 1.2 in
weblogic.apache.xerces.parsers package and Xalan 1.2 in the
weblogic.apache.xalan.xslt package ( These are the built-in sax and
dom
parser and xslt engine, bundled in weblogic.jar )
The install also includes Xerces 1.2 in theorg.apache.xerces.parsers
package and Xalan 1.2 in the org.apache.xalan.xslt package ( Theseare
>>>>>
the
XML module's parser and xslt engine, bundled in xmlx.jar )
If you want to use another version of xalan rename the xmlx.jar to
xmlx.jar.bak in the lib directory of the install. You may lose on
the
>>>>>
other
goodies that come with the XML module, i.e. the parser generator and
the
jsp
tag library though.
thanks
Sandeep
"Michelle Baxter" <[email protected]> wrote in message
news:[email protected]...
I'm still trying to run Xalan from the server side...
I tried to set up an XML Registry to use the org.apache.xerces.jaxp
classes. Though it is selected by the server on the XML Services
tab,
and it is the only registry I have, I print out the factory andparser
classes that get created, and they are still
weblogic.xml.jaxp.RegistryBlahblahblah classes. The config.xml hasthe
right class names as shown on the console. Why aren't they used?
The other question I have is that since the Xerces classes that Iwant
to use have the same names as the ones included but are a different
version, how do I get the server to use the new classes and not theones
bundled with WebLogic?
Any help would be greatly appreciated!
Michelle

Similar Messages

  • "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

  • 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

  • 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.

  • 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)

  • 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

  • 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.

  • 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 &#8221;Distributed Management&#8221;, 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&#65292;I haven&#8217;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

  • 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

  • Weblogic does not recognize the  XML Registry settings!!!!

    Dear colleagues,
    We use Weblogic Server 6.0 sp2 and we would like to run an XML application with
    following settings:
    DocumentBuilderFactory: "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"SAXParserFactory:
    "org.apache.xerces.jaxp.SAXParserFactoryImpl"
    Problem is:
    weblogic shows this settings in the console, but at the runtime XML application
    gets always the following parser:
    javax.xml.parsers.SAXParserFactory = weblogic.xml.jaxp.RegistrySAXParserFactory
    and the weblogic.log has also this parameters as a java system property.
    How can we solve this problem in order to use the right parser inside the weblogic?
    I appreciate your cooperation
    thanx,
    Metin

    Can you show me what the error looks like. Also are you deploying the war to the other server? If the war worked on one server it should work on the other server too.
              -- Nagesh

  • Weblogic 6.0sp2, problems useing new XML Registry

    I'm trying to configure a parser other than the Built-In Parser, but WLS seems
    to still us its default.
    I follow the documentation at http://edocs.bea.com/wls/docs60/xml/xml_admin.html#1055027,
    and use xerces 1.4.3, also creating a new server that is targeted.
    I have attached a java file that I set as a startup class, targeted to myserver.
    It shows the classname of saxparsers.
    I allways get the following printout:
    parserFactory: weblogic.xml.jaxp.RegistrySAXParserFactory
    saxParser: weblogic.xml.jaxp.RegistrySAXParser
    parser: weblogic.xml.jaxp.RegistryParser
    But if I run the program from the command prompt, with xerces in the classpath
    I get the following:
    parserFactory: org.apache.xerces.jaxp.SAXParserFactoryImpl
    saxParser: org.apache.xerces.jaxp.SAXParserImpl
    parser: org.xml.sax.helpers.XMLReaderAdapter
    Anyone now anything about this, seems like a bug?
    -perotto
    The parser
    [PrintParserInfo.java]

    hi,
    try keeping the xerces.jar file before the weblogic.jar in the classpath of the
    server script...
    cuz' weblogic.jar file includes weblogic xerces parser..
    but weblogic does not support all the features that xerces 1.4.3 version support.and
    they(BEA) does not recommend to use other versions...
    hope it will help you..
    Vijay
    "Per Otto Christensen" <[email protected]> wrote:
    >
    >
    >
    I'm trying to configure a parser other than the Built-In Parser, but
    WLS seems
    to still us its default.
    I follow the documentation at http://edocs.bea.com/wls/docs60/xml/xml_admin.html#1055027,
    and use xerces 1.4.3, also creating a new server that is targeted.
    I have attached a java file that I set as a startup class, targeted to
    myserver.
    It shows the classname of saxparsers.
    I allways get the following printout:
    parserFactory: weblogic.xml.jaxp.RegistrySAXParserFactory
    saxParser: weblogic.xml.jaxp.RegistrySAXParser
    parser: weblogic.xml.jaxp.RegistryParser
    But if I run the program from the command prompt, with xerces in the
    classpath
    I get the following:
    parserFactory: org.apache.xerces.jaxp.SAXParserFactoryImpl
    saxParser: org.apache.xerces.jaxp.SAXParserImpl
    parser: org.xml.sax.helpers.XMLReaderAdapter
    Anyone now anything about this, seems like a bug?
    -perotto
    The parser

  • AppV 5.0 SP2 HF4 - Registry not applying when set via DynamicConfig.xml

    I have an AppV 5.0 package of VMWare and have tweaked the dynamicconfig.xml file to add a registry key.  I am applying the package with the AppV 5.0 management and publishing server globally.  This is what my dynamicconfig.xml looks like, pulled
    from the C:\ProgramData\Microsoft... folder (my apologies if it doesn't format well, it does validate):
    <?xml version="1.0"?>
    <DeploymentConfiguration PackageId="7817a78f-feed-4070-8be5-
    <Registry Enabled="true">
    <Include>
    <Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]\Software\VMware\VMware Infrastructure Client\Preferences">
    <Value Type="REG_SZ" Name="RecentConnections" Data="wsvcenter20.healthy.bewell.ca,wsvcenter01.healthy.bewell.ca,wsvcenter40.healthy.bewell.ca,wsvcenteribm01.healthy.bewell.ca">
    </Value>
    </Key>
    <Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Foo"><Value Type="REG_SZ" Name="Bar" Data="NewValue"></Value></Key><Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]\Software\EmptyKey">
    </Key>
    </Include>
    </Registry>
    <FileSystem Enabled="true">
    </UserConfiguration>
    <MachineConfiguration>
    <ProductSourceURLOptOut Enabled="true"> </ProductSourceURLOptOut>
    <Subsystems>
    <Registry>
    <Include>
    <Key Path="\REGISTRY\Machine\Software\Foo"><Value Type="REG_SZ" Name="Bar" Data="Baz">
    </Value>
    </Key>
    <Key Path="\REGISTRY\Machine\Software\EmptyKey">
    </Key>
    </Include>
    </Registry>
    </Subsystems>
    </MachineConfiguration>
    </DeploymentConfiguration>
    I left in the example Foo registry just to see if it works.  When I launch vSphere I do not get all the drop downs in the "RecentConnection" keys, opening the AppV 5 package in cmd.exe with the /appvve switch and opening regedit shows the
    registry keys with the sequenced application, but not the registry keys in the dynamic config.xml.  I should also note I'm trying to replace existing keys that already have the "RecentConnection" that are in the manifest.xml.  So I'm not
    sure if "Include" is "Replace" and errors out if those keys already exist...?  I don't see any errors in the event log.  I'm not sure of any other way that the event log reports if dynamicconfig.xml is being applied.  
    Lastly, this is what my get-appvclientconfiguration looks like:
    PS C:\Users\trententtye> Get-AppvClientConfiguration
    Name Value
    PackageInstallationRoot D:\AppVData\PackageInst...
    PackageSourceRoot
    LocationProvider
    AutoLoad 2
    EnablePackageScripts 1
    ReestablishmentInterval 5
    ReestablishmentRetries 3
    CertFilterForClientSsl LOCAL_MACHINE\MY\1.3.6....
    SupportBranchCache 0
    VerifyCertificateRevoca... 1
    SharedContentStoreMode 1
    MigrationMode 1
    RoamingFileExclusions
    RoamingRegistryExclusions SOFTWARE\CLASSES
    AllowHighCostLaunch 0
    PackageStoreAccessControl 0
    IntegrationRootUser %LOCALAPPDATA%\Microsof...
    IntegrationRootGlobal %ALLUSERSPROFILE%\Micro...
    VirtualizableExtensions exe,com,bat,cmd,vbs,ps1...
    IgnoreLocationProvider 0
    ReportingEnabled 0
    ReportingStartTime
    ReportingRandomDelay
    ReportingInterval
    ReportingServerURL
    ReportingDataCacheLimit
    ReportingDataBlockSize
    ExperienceImprovementOptIn 0
    EnablePublishingRefreshUI 0
    ProcessesUsingVirtualCo... {%SystemRoot%\explorer....
    EnableDynamicVirtualiza... 1
    TLDR; My dynamicconfig.xml registry values are not applying.  Help!

    Hi Ral,
    I did as you described, exporting my default config.xml and I can see my modification is present in the exported file.
    <?xml version="1.0"?>
    <DeploymentConfiguration PackageId="7817a78f-feed-4070-8be5-bdf9447a1539" DisplayName="vSphere_Client_50U3_51U2_55U1" xmlns="http://schemas.microsoft.com/appv/2010/deploymentconfiguration"><UserConfiguration><Subsystems><Shortcuts Enabled="true"><Extensions><Extension Category="AppV.Shortcut"><Shortcut><File>[{Desktop}]\MyApps\VMware\VMware vSphere Client.lnk</File><Target>[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\VpxClient.exe</Target><Icon>[{Windows}]\Installer\{4CFB0494-2E96-4631-8364-538E2AA91324}\arpIcon.exe.0.ico</Icon><Arguments></Arguments><WorkingDirectory>[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\</WorkingDirectory><ShowCommand>1</ShowCommand><ApplicationId>[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\VpxClient.exe</ApplicationId></Shortcut></Extension><Extension Category="AppV.Shortcut"><Shortcut><File>[{Programs}]\MyApps\VMware\VMware vSphere Client.lnk</File><Target>[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\VpxClient.exe</Target><Icon>[{Windows}]\Installer\{4CFB0494-2E96-4631-8364-538E2AA91324}\arpIcon.exe.0.ico</Icon><Arguments></Arguments><WorkingDirectory>[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\</WorkingDirectory><ShowCommand>1</ShowCommand><ApplicationId>[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\VpxClient.exe</ApplicationId></Shortcut></Extension></Extensions></Shortcuts><FileTypeAssociations Enabled="true"><Extensions></Extensions></FileTypeAssociations><URLProtocols Enabled="true"><Extensions><Extension Category="AppV.URLProtocol"><URLProtocol><Name>VpxClient</Name><ApplicationURLProtocol><Description>URL:VpxClient</Description><DefaultIcon>[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\VpxClient.exe</DefaultIcon><ShellCommands><ShellCommand><ApplicationId>[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\VpxClient.exe</ApplicationId><Name>open</Name><CommandLine>"[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\VpxClient.exe" -e "%1"</CommandLine></ShellCommand></ShellCommands></ApplicationURLProtocol></URLProtocol></Extension></Extensions></URLProtocols><COM Mode="Isolated"><IntegratedCOMAttributes InProcessEnabled="false" OutOfProcessEnabled="true"></IntegratedCOMAttributes></COM><Objects Enabled="true"></Objects><Registry Enabled="true"><Include><Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]"></Key><Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]\Software"></Key><Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]\Software\EmptyKey"></Key><Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Foo"><Value Type="REG_SZ" Name="Bar" Data="NewValue"></Value></Key><Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]\Software\VMware"></Key><Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]\Software\VMware\VMware Infrastructure Client"></Key><Key Path="\REGISTRY\USER\[{AppVCurrentUserSID}]\Software\VMware\VMware Infrastructure Client\Preferences"><Value Type="REG_SZ" Name="RecentConnections" Data="wsvcenter20.healthy.bewell.ca,wsvcenter01.healthy.bewell.ca,wsvcenter40.healthy.bewell.ca,wsvcenteribm01.healthy.bewell.ca"></Value></Key></Include></Registry><FileSystem Enabled="true"></FileSystem><Fonts Enabled="true"></Fonts><Services Enabled="true"></Services></Subsystems><Applications><Application Id="[{AppVPackageRoot}]\Virtual Infrastructure Client\Launcher\VpxClient.exe" Enabled="true"><VisualElements><Name>VMware vSphere Client</Name><Icon></Icon><Description></Description></VisualElements></Application></Applications><UserScripts></UserScripts></UserConfiguration><MachineConfiguration><ProductSourceURLOptOut Enabled="true"></ProductSourceURLOptOut><Subsystems><Registry></Registry></Subsystems><MachineScripts></MachineScripts><TerminateChildProcesses></TerminateChildProcesses></MachineConfiguration></DeploymentConfiguration>
    but the registry value's still do not exist when I launch VPXClient.exe or open regedit.exe with the /appvve: command switch.

  • Abstract Method Error and XML Parsing

    I am using wl6sp1. I am parsing an XML file from within the
    servlet using jaxp1.1 and crimson.
    Following is code:
    1- SAXParserFactory spf = SAXParserFactory.newInstance();
    2- sp = spf.newSAXParser();
    3- xr = sp.getXMLReader();
    4- xr.setContentHandler(new ParseXML());
    5- xr.parse( new InputSource("Example3.xml"));
    This program works fine when execute from command line but in servlet on line
    3 it says:
    "Abstract Method Error"
    I have created XML Registry to use Crimson as XML parser rather than default.
    I think somehow wl is still using jaxp1.0 which is built in
    support in wlsp1.
    Whats wrong with the code...or what configuration i am missing???

    I'm assuming you have already put crimson.jar first in the classpath for the java
    command you use to start WebLogic. If so, have you tried putting the servlet in
    a .war file with the crimson.jar in its' WEB-INF/lib directory?
    Regards,
    Mike Wooten
    "anyz" <[email protected]> wrote:
    >
    I am using wl6sp1. I am parsing an XML file from within the
    servlet using jaxp1.1 and crimson.
    Following is code:
    1- SAXParserFactory spf = SAXParserFactory.newInstance();
    2- sp = spf.newSAXParser();
    3- xr = sp.getXMLReader();
    4- xr.setContentHandler(new ParseXML());
    5- xr.parse( new InputSource("Example3.xml"));
    This program works fine when execute from command line but in servlet
    on line
    3 it says:
    "Abstract Method Error"
    I have created XML Registry to use Crimson as XML parser rather than
    default.
    I think somehow wl is still using jaxp1.0 which is built in
    support in wlsp1.
    Whats wrong with the code...or what configuration i am missing???

  • Problem with com.sun.xml.parser.Parser

    Hi ,
    I am using weblogic 6.01.
    In my ejb class, I am parsing a String to create XmlDocument.
    I created xml registry in weblogic server.
    In my weblogic server's xml registry,
    I have com.sun.xml.parser.DocumentBuilderFactoryImpl as
    DocumentBuilderFactory
    and com.sun.xml.parser.Parser as parser.
    I am using jaxp 1.1 for all my xml related processing. All required jars are
    in the classpath.
    following is my code
    protected Document createDocument ( String a_sXmlDocument )
    try
    ByteArrayInputStream baInputStream = new ByteArrayInputStream
    (a_sXmlDocument.getBytes ());
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = factory.newDocumentBuilder ();
    Document xmlDocument = builder.parse (baInputStream);
    return xmlDocument ;
    catch (
    I get following exception at builder.parse ( baInputStream )
    Can't find bundle for base name com.sun.xml.parser.resources.Messages,
    locale en
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:516)
    at com.sun.xml.parser.Parser.parse(Parser.java:284)
    at
    com.sun.xml.parser.DocumentBuilderImpl.parse(DocumentBuilderImpl.java
    :95)
    at
    weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuild
    er.java:98)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:78)
    at
    com.datamap.arch.datamap.BasicTransportableDelegate.createDocument(Ba
    I would appreciate if anyone could help in this exception.
    Thank you,
    Mahendra

    Hi ,
    I am using weblogic 6.01.
    In my ejb class, I am parsing a String to create XmlDocument.
    I created xml registry in weblogic server.
    In my weblogic server's xml registry,
    I have com.sun.xml.parser.DocumentBuilderFactoryImpl as
    DocumentBuilderFactory
    and com.sun.xml.parser.Parser as parser.
    I am using jaxp 1.1 for all my xml related processing. All required jars are
    in the classpath.
    following is my code
    protected Document createDocument ( String a_sXmlDocument )
    try
    ByteArrayInputStream baInputStream = new ByteArrayInputStream
    (a_sXmlDocument.getBytes ());
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = factory.newDocumentBuilder ();
    Document xmlDocument = builder.parse (baInputStream);
    return xmlDocument ;
    catch (
    I get following exception at builder.parse ( baInputStream )
    Can't find bundle for base name com.sun.xml.parser.resources.Messages,
    locale en
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:516)
    at com.sun.xml.parser.Parser.parse(Parser.java:284)
    at
    com.sun.xml.parser.DocumentBuilderImpl.parse(DocumentBuilderImpl.java
    :95)
    at
    weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuild
    er.java:98)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:78)
    at
    com.datamap.arch.datamap.BasicTransportableDelegate.createDocument(Ba
    I would appreciate if anyone could help in this exception.
    Thank you,
    Mahendra

Maybe you are looking for