Unable to locate Spring NamespaceHandler for XML schema namespace

I am not sure if this is the best practice approach but this is the problem I am ruining into. Below, I explain what I am doing:
1) What I am doing:
=============
Based on the oracle incubator example (http://coherence.oracle.com/display/INCUBATOR/Processing+Pattern+Examples); I am running a server and submitting tasks through a proxy application that submits them to ProcessingPatternConfigurator; let's call my task processReport.
a) my processReport is using spring and ibatis together, I created a utility static class to obtain a spring context and retrieves beans using the following lines ( see exhibit "A1 and A2" below).
b) when my task calls the context and that spring loads, it is failing with the error show in exhibit "B".
I suspect I am missing a lib? I googled the error and searched you site but could find a meaningful discussion on it. I guess my question is if this is not the best approach, how do I integrated with spring initializing beans and setting up ibatis framwork, providing beans and database access through Ibatis for each task ruining on the grid (processReport).
thanks
A1) processReport (submitted in the grid) uses this line
AbstractXmlApplicationContext ctx = (AbstractXmlApplicationContext) AmrContextUtil.getInstance();
          System.out.println("Classpath loaded. Executing Report...");
          ReportProcessor repProcessor = (ReportProcessor) ctx.getBean("reportProcessor");
A2) Here is the AmrContextUtil:
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public final class AmrContextUtil {
     private static AbstractApplicationContext ctx = null;
     public AmrContextUtil() {
          super();
     public final static synchronized AbstractApplicationContext getInstance(){
          if (ctx == null){
               ctx = new ClassPathXmlApplicationContext("classpath:config/applicationContext.xml");
               setCtx(ctx);
          return ctx;
     public final static synchronized AbstractApplicationContext getCtx() {
          return ctx;
     public final static synchronized void setCtx(AbstractApplicationContext ctx) {
          AmrContextUtil.ctx = ctx;
B) Here is the error reported by the server:
2010-02-10 15:42:28.312/57.986 Oracle Coherence GE 3.5.2/463 <Warning> (thread=GridExecutor:Thread-2
, member=1): TaskRunner - Failed to process 0x00000126B99E5524AC1F007AAB1587BBCFEC5E6637E1DED6CCB984
03D6AADF4D due to:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:config/reports-application.xml] Offending resource: class path resource [config/applicationContext.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing
Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: *Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]*
*Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'*
-> Property 'resourceMap'
c)Here is my application-context.xml offending line:
<bean id="reportSqlMapConfig"
class="com.xx.report.generator.ReportSqlMapConfig">
<property name="resourceMap">
<map>
<entry>
<key>
<util:constant static-field="com.xx.report.domain.ReportType.FPA"/>
</key>
<value>classpath:config/diehardReportSqlMapConfig.xml</value>
</entry>
<entry>
<key>
<util:constant static-field="com.xx.report.domain.ReportType.FCN"/>
</key>
<value>classpath:config/falconReportSqlMapConfig.xml</value>
</entry>
<entry>
<key>
<util:constant static-field="com.xx.report.domain.ReportType.ODS"/>
</key>
<value>classpath:config/odsReportSqlMapConfig.xml</value>
</entry>
</map>
</property>
</bean>

My guess is that something is broken in the configuration of the cacheServer and its not finding
all of the dependencies that your process pattern application needs. Probably the best way
to debug this stuff is to define a static main in your runnable task which will make the call
to the run() method and invoke it as the main class using the identical settings (classpath,
run directory) that you are using to launch the Coherence cache server.
Regards,
Bob

Similar Messages

  • Javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package ...

    I want to marshall a java content tree (generated with jaxb api) in xml stream
    in an EJB.
    Generated classes are archived in a jar file containing its jaxb.properties, when
    I test it
    in a classic java process it runs well.
    When I try to do it in an EJB with weblogic 8.1 I get the following error:
    javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package
    I've checked:
    - jaxb.properties is in the archive file
    I've tried to put the jar file in the classpath of the server in the starter script.
    I've tried to put reference classpath in the manifest of the ejb jar and of application
    ear.
    I've tried to put both reference in server classpath and ear/jar manifest.
    I still doesn't run.
    Any idea?
    Thanks a lot
    Franck

    Add the directory of the generated classes in the classpath.
    "franck" <[email protected]> wrote:
    >
    I want to marshall a java content tree (generated with jaxb api) in xml
    stream
    in an EJB.
    Generated classes are archived in a jar file containing its jaxb.properties,
    when
    I test it
    in a classic java process it runs well.
    When I try to do it in an EJB with weblogic 8.1 I get the following error:
    javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package
    I've checked:
    - jaxb.properties is in the archive file
    I've tried to put the jar file in the classpath of the server in the
    starter script.
    I've tried to put reference classpath in the manifest of the ejb jar
    and of application
    ear.
    I've tried to put both reference in server classpath and ear/jar manifest.
    I still doesn't run.
    Any idea?
    Thanks a lot
    Franck

  • CS3 - "Unable to locate or parse the XML source"

    Hello,
    When I try and attach a remote XML source to my XSL fragment,
    Dreamweaver
    CS3 tells me "Unable to locate or parse the XML source".
    This happens irrespective of where the remote XML file is
    located, and for
    all the remote XML files that I have found and tested from a
    myriad of
    different sources - I always get the same response.
    I can download any of these XML files and work with them
    locally, which
    Dreamweaver is quite happy to do, but that isn't appropriate
    for an
    application that needs to rely on an XML feed that is always
    up to date!
    From searching Google I can find numerous other queries of
    this nature, but
    no solutions! I am not sure if it is a Dreamweaver problem,
    or related to
    the type of web server I'm using or indeed to the corporate
    firewall here.
    For clarity, only Dreamweaver can't locate the remote XML
    sources - pasted
    into a browser they are all perfectly valid.
    (Apologies for sort of cross posting, I have already asked
    this question
    slightly differently on macromedia.dreamweaver)
    Cheers,
    D.

    Kelli, I know this is months late for you.. but I get the
    same error.. I found if I downloaded the xml locally I was able to
    set up my xsl page. After I got the page to look the way I wanted I
    switch the source to the external URL.
    If you have found a fix for the error please let me know,
    other then that this way will work.

  • Unable to locate or parse the XML source (-1,-1)

    Hello,
    Why do I get this error when I'm trying to get the XML source
    from
    *.php ?
    quote:
    "Unable to locate or parse the XML source (-1,-1)"
    The
    *.php file has a recordset which I exported as XML based on
    this
    tutorial
    I can see the XML of *php in the browser but can't get the
    schema.
    What am I missing?
    Thank you

    page.php
    url
    quote:
    code:
    <?php require_once('../Connections/example.php'); ?>
    <?php
    // Load the XML classes
    require_once('../includes/XMLExport/XMLExport.php');
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    mysql_select_db($database_example, $example);
    $query_data = "SELECT * FROM example";
    $data = mysql_query($query_data, $example) or
    die(mysql_error());
    $row_data = mysql_fetch_assoc($data);
    $totalRows_data = mysql_num_rows($data);
    // Begin XMLExport data
    $xmlExportObj = new XMLExport();
    $xmlExportObj->setRecordset($data);
    $xmlExportObj->addColumn("Name", "Name");
    $xmlExportObj->addColumn("Damage", "Damage");
    $xmlExportObj->addColumn("Speed", "Speed");
    $xmlExportObj->addColumn("Level", "Level");
    $xmlExportObj->addColumn("Details", "Details");
    $xmlExportObj->addColumn("Type", "Type");
    $xmlExportObj->addColumn("Source", "Source");
    $xmlExportObj->addColumn("Location", "Location");
    $xmlExportObj->addColumn("Date", "Date");
    $xmlExportObj->addColumn("Price", "Price");
    $xmlExportObj->addColumn("Skill", "Skill");
    $xmlExportObj->addColumn("Constitution", "Constitution");
    $xmlExportObj->addColumn("Intelligence", "Intelligence");
    $xmlExportObj->addColumn("Wisdom", "Wisdom");
    $xmlExportObj->addColumn("Strength", "Strength");
    $xmlExportObj->addColumn("Member", "Member");
    $xmlExportObj->addColumn("Image", "Image");
    $xmlExportObj->setMaxRecords("ALL");
    $xmlExportObj->setDBEncoding("ISO-8859-1");
    $xmlExportObj->setXMLEncoding("ISO-8859-1");
    $xmlExportObj->setXMLFormat("NODES");
    $xmlExportObj->setRootNode("Category");
    $xmlExportObj->setRowNode("Type");
    $xmlExportObj->Execute();
    // End XMLExport data
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http:// www.
    w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http:// www . w3. org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>example</title>
    <link href="css.css" rel="stylesheet" type="text/css"
    />
    </head>
    <body>
    </body>
    </html>
    <?php
    mysql_free_result($data);
    ?>

  • Unable to Locate or Parse the XML source

    I've just started playing around with Dreamweaver 8 and I'm
    trying to pull in a RSS feed. I've followed the instructions in
    Dreamweaver, but when I add my XML source (
    http://rss.cnn.com/rss/cnn_law.rss)
    I get an error message in the bindings area where the XML structure
    should be displaying that says "Unable to locate or parse the XML
    source". I'm somewhat familiar with XML and new to RSS feeds so I
    have no idea what this means. Any help will be appreciated.

    Kelli, I know this is months late for you.. but I get the
    same error.. I found if I downloaded the xml locally I was able to
    set up my xsl page. After I got the page to look the way I wanted I
    switch the source to the external URL.
    If you have found a fix for the error please let me know,
    other then that this way will work.

  • Support for XML schema by Sun's parser

    Does Sun's ProjectX XML parser proovide support for XML schema.

    The JAXP conformance documentation does not mention about XML Schemas, therefore it does not yet support it. If you are looking for an XML parser that supports XML Schema validation, you can download Multi Schema Validator (MSV) from http://www.sun.com. Xerces 2.0.0 beta 3 mentions support for XML Schema. I have not tested it though. Hope this helps.

  • Creating OD Replica: Unable to locate kerberos services for localhost

    Hello,
    I'm trying to setup a new OS X Server to become an OD Replica for my other OS X Server that is acting as an OD Master in an Active Directory Magic Triangle configuration. Both Macs are running the same build of 10.8.2 (12C3104). Here is the log from slapconfig from the Mac I'm trying to set as the replica:
    2012-12-17 00:41:11 +0000 slapconfig -createreplica
    2012-12-17 00:41:18 +0000 command: /usr/sbin/sso_util info -r /LDAPv3/ldap://172.20.9.40 -p
    2012-12-17 00:41:19 +0000 int _populateLDAPService(): Unable to locate kerberos services for localhost: 0 (null)
    2012-12-17 00:41:19 +0000 Populating LDAP kerberos service in local node's localhost computer record failed.  Replication and rootDSE may not behave as expected.
    2012-12-17 00:41:19 +0000 Error retrieving kerberos realm
    2012-12-17 00:41:19 +0000 CopyReplicaArray: ldap_search_ext_s failed
    2012-12-17 00:41:19 +0000 Error retrieving replica array
    2012-12-17 00:41:19 +0000 Deleting Cert Authority related data
    2012-12-17 00:41:19 +0000 No intCAIdentity, not removing int CA from keychain
    2012-12-17 00:41:19 +0000 command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertd.plist
    2012-12-17 00:41:19 +0000 command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertd-helper.plist
    2012-12-17 00:41:19 +0000 command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertadmin.plist
    2012-12-17 00:41:19 +0000 void _destroyLDAPServer(const char *): Failed to find computer record named usvtamtln103.lostarrow.com$: 0 (null)
    2012-12-17 00:41:19 +0000 Updating ldapreplicas on primary master
    2012-12-17 00:41:19 +0000 CopyPrimaryMaster: CopyLdapReplicas failed
    2012-12-17 00:41:19 +0000 Unable to locate primary master
    2012-12-17 00:41:19 +0000 Primary master node is nil!
    2012-12-17 00:41:19 +0000 Unable to locate ldapreplicas record: 0 (null)
    2012-12-17 00:41:19 +0000 Error setting read ldap replicas array: 0 (null)
    2012-12-17 00:41:19 +0000 Error setting write ldap replicas array: 0 (null)
    2012-12-17 00:41:19 +0000 ODRecord *_getODRecord(ODNode *, NSString *, NSString *, NSArray *): ODNodeRef parameter error
    2012-12-17 00:41:19 +0000 int _removeReplicaFromConfigRecord(ODNode *, NSString *): ODRecord not found
    2012-12-17 00:41:19 +0000 Error synchronizing ldapreplicas: 0 (null)
    2012-12-17 00:41:19 +0000 Removing self from the database
    2012-12-17 00:41:19 +0000 Stopping LDAP server (slapd)
    2012-12-17 00:41:19 +0000 Stopping password server
    2012-12-17 00:41:19 +0000 cleanKeytab: unable to retrieve default realm
    2012-12-17 00:41:19 +0000 Stopping password server
    2012-12-17 00:41:19 +0000 Removed file at path /Library/Preferences/com.apple.openldap.plist.
    The only thing I can derive from this is that the issue is related to kerberos. Any suggestions?

    SSH is enabled for all users on both Macs. Manually added diradmin aswell just to make me feel better.
    Additionally, here's what I get when I try running preflight on either Mac:
    usvtamtln101:~ sadmin$ sudo /usr/sbin/slapconfig -preflightreplica 172.20.9.40 diradmin
    Password:
    172.20.9.40's Password:
    2012-12-17 19:34:33 +0000 NSMutableDictionary *_getRootDSE(const char *): rootDSE not found
    2012-12-17 19:34:33 +0000 Error: Unable to determine the master's software version.
    After seeing this, I tried unbinding both Macs from Active Directory, restarting and then trying again. Same thing...

  • Unable to locate Co data for co account assignment in EK02

    Hi,
    While creating entries in EK02 we are getting below error:-
    "The system was unable to locate CO data for CO account assignment key XXXX". We are using profit center and segment reporting " and have maintained the necessary settings in "Define CO Account Assignment Keys" against company code , segment and profit center and also maintained cost element settings.
    Any solution to resolve this error.
    Thanks and Regards
    Kumar

    Hi Kumar,
    Below are the configurations required in this regard.
    1. maintain GL account and const element - FS00. You can check whether the GL maintained as P/L GL.
    2. maintain the cost centre - KS01/02/03. Please verify all the details whether or not have been maintained correctly.
    3. maintain EK01 (if required).
    4. maintain EK02 - please double check whetheryou have CO account assignment 'X' in there.
    5. maintain CO account assignemnt key in SPRO - Check whether correct cost centre is maintained against correct CoCd.
    This would suffice.
    Please let me know if you're stil facing the issue.
    Thanks
    Bodhisattwa

  • Question about Java API for XML schema?

    Hello, everyone!
    I am looking for a java api for XML schema. I hope the API is capable for parsing the structure of element
    or complextype declarations in XML schema. So for example, if I specify a name of an element or
    complextype defined in a schema, the name, dataype and other constraints of contained child elements can be returned.
    Does anyone know if there exists such a paser?
    Thanks very much!

    An implementation of DOM Level 3.

  • JAXB: Unable to locate jaxb.properties for package com.globalrefund.jaxb

    When I package my classes into a jar and try to run my app with
    java -jar myapp.jar
    I get "Unable to locate jaxb.properties for package com.globalrefund.jaxb"
    Everything works fine when I run my app by setting the classpath followed by "java com.globalrefund.MainClass".
    "jaxb.properties" is in the jar in the directory "com.globalrefund.jaxb". I use JRE 1.4.1.
    What's wrong?
    Regards,
    Bernhard

    a little additional info:
    It works when I put jaxb.properties in the directory com.globalrefund.jaxb and let classpath point to the root of the directory structure.
    If I create a jar containing exactly the same directory structure and add the jar to the classpath it does not work.
    Looks like JAXB cannot read jaxb.properties from a jar?!
    Any ideas?
    Thanks
    Bernhard

  • How to generate XSD file for XML schema adobe form

    Hi,
    I want to generate XSD file for XML schema interfaces adobe forms. How can I do it. Where I can do it..or who will provide this file..
    Thanks
    Ram
    Edited by: Ramesh ram on Feb 23, 2010 6:33 PM

    Aaaaah, my mistake, sorry for that. Of course you should use the XML interface and I forgot it is not described in this tutorial. You can easily find another one where the XML based interface is used. But... you won´t need any tutorial. just create a WD context. Place a Interactive form element on your WD app screen, in the attributes you need to maintain the form template name. If you write a name suitable for you which no existing forms uses, the system will offer you to generate a XML based interface and right after that it will "send" you to the SFP transaction. That means you can like skipi the step defining the interface because it it is generated automatically and you only draw the layout for this generated interface.
    You should use XMl based interface for your WD app, because when using the ABAP dic based, some features are not available (I am not sure, but ABAP based works only for print form or something).
    Hope it is all clear now,
    have a nice day,
    Otto

  • How to create table for XML schema-based Interface form

    Hi All,
    With tcode SFP to crate  a XML schema-based Interface form, how to create a defined table can be listed in "Data View"?
    Just like APAP Dictonary- Based Interface form, that we can drag  a defined table from data view to the panel.

    Hi,
    Just follow these steps:
    1. Create interactive form UI element in your view.
    2. Now provide Datasource and PDFSOURCE to it in form properties.
    3. Now give a template name prefix with 'Z' or 'Y'.
    4. Double click on it. It will prompt for interface name.
    5. Provide interface name prefixed with 'Z' or 'Y'.
    6. Click on Context button in the Pop up window and provide the node you have selected as DATASOURCE.
    7. Click ok and it will open the form designer.
    8. In this way you can create a XML Schema based Form.
    9. Activate the interface and design the form providing layout type and other details.
    Hope it will help.
    Regards,
    Vaibhav

  • SetIgnoringElementContentWhitespace() for XML-Schema ?

    Hi,
    I've got a (maybe simple) question for xml-freaks...
    In the future I wanna work with xml-files. So, I've to use SAX and/or DOM.
    I've heard the method setIgnoringElementContentWhitespace() of the class DocumentBuilderFactory requieres the DTD.
    Do you know, if I also can use XML-Schema in order to use setIgnoringElementContentWhitespace() - or does this method really only supports DTD?
    Then maybe do you know a similar method like setIgnoringElementContentWhitespace(), which supports XML-Schema?
    Bye
    Chris

    Seems to me that trying it out would be the easiest way to find out.
    If you don't have a setup where you can try it out, then you don't need to know the answer yet.

  • JDK support for XML Schema

    Hi,
    Does anyone know when XML Schema will be supported by the default implementation of JAXP that is delivered with the JDK?

    Sorry, actually look better at JAXB - misread you.
    Still, it can.

  • Unable to find root element in XML Schema when Syndicating (SAP MDM)

    Hi experts,
    We are having a problem with our Syndication.
    We have created an XML Schema using XML Spy. We need a namespace, and this is 70 characters long (in other words, far shorter than maximum at 255 characters).
    <xs:schema xmlns:ns="http://schemas.xxxxx.com/ServiceManagement/ServiceMasterDataFromMDM/0.3" xmlns:xs="http://www.xxxxx.org/2001/XMLSchema" targetNamespace="http://schemas.xxxxxx.com/ServiceManagement/ServiceMasterDataFromMDM/0.3" elementFormDefault="unqualified" attributeFormDefault="unqualified">
    When opening the xml schema file in Syndicator, the root field is disabled.
    If we remove namespace in heading of xml schema, the root field is enabled, and the root element is correct.
    How can we make use of the XML schema when we need namespace?
    We have tried to add namespace annotation ns: to all type definitions:
       <xs:element name="ServiceCategory" type="ns:ServiceCategoryType">
    This did not help.
    Please advice.
    KR,
    Thomas
    Edited by: Thomas on Mar 2, 2011 2:12 PM

    >>We need a namespace, and this is 70 characters long
    If you want namespace to appear in XML and your XSD has it too. please add the namespace under "URI" attribute in XML schema in Console.
    You need to import the XSD in Console first, specify namespace under URI and then use this to build syndication map.
    Thanks
    Aamir

Maybe you are looking for

  • Wrong Name Error

    Hi, I created a package in eclipse with 3 .java files under it. In each of the three java files I have included the "package testpackage;" clause at the top. My first 2 files (lets call them one.java and two.java) is referenced in three.java, thus I

  • AP - Invoice Discounting Issue

    Hi, I'm troubleshooting an issue where invoices that are not meant to have discounts, are having a First Discount amount applied. This discounted amount is then paid in a payment run, when the full amount should be paid. The invoice terms are 2% 3 Da

  • I have Keynote 6.2 and when my Mac Pro is hooked to a projector I cannot get the presenter notes to show on the computer screen and not on the projected screen. Any ideas?

    I have Keynote 6.2 and when my MacPro is hooked to a projector with a slide presentation I cannot see my presentation notes on the computer screen and not on the projected screen. Any ideas?

  • ACE 4710 PAC

    Hi I need to use the Ace 4710 to distribute a Proxy PAC file, e.g.  http://proxy.myorg.com/proxy.pac which will be configured in client browser using an AD group policy.  Is it possible for the ACE to host and serve a file in this way? Thank you

  • When connect the Database from Toad , Sqlplus giving the error

    when connect the Database from Toad , Sqlplus giving the error recent changes 12.1.1 installatiojn Oracle SQL plus encountered a problem and needs to close we are sorry for convenienvce Oracle Forms Designner has encountered a probloem and needs to c