Thanks for responding Adam.
I have added schema to jar file and specified the path inside the jar
so spring picked up from there.
But my DAO method is still not looking at cache. Am I missing any
steps ? Please advice.
This is what I have in my DAO.
public Customer getCustomer(int customerId){
return loadCustmer(customerId) ;
}
@Cacheable
public Customer loadCustmer(int custerId){
JDBC code here.
}
On Jun 30, 8:46 pm, Adam Gent <
adam.g...@evocatus.com> wrote:
> Harshi,
> It looks like you have a network issue such that your tomcat cannot
> download the XSD.
> However most of the time Spring will use the XSD in the jar
> (regardless of the web address) based on some XSD registration in
> META-INF
> so I am again surprised that you had the error.
>
> Can you try running a unit test from eclipse or the command line (ant or maven).
>
> -Adam
>
>
>
> On Thu, Jun 30, 2011 at 10:18 PM, Harshi <
shn...@gmail.com> wrote:
> > Hi Adam,
> > Do you have sample configuration fro sprign 3.0? I am getting errors
> > on tomcat startup due to xsd errors from
> >
https://raw.github.com/agentgt/ehcache-spring-annotations/master/core...
>
> > org.xml.sax.SAXParseException: schema_reference.4: Failed to read
> > schema document '
https://raw.github.com/agentgt/ehcache-spring-
> > annotations/master/core/src/main/resources/com/googlecode/ehcache/
> > annotations/ehcache-spring-1.2.xsd', because 1) could n
> > ot find the document; 2) the document could not be read; 3) the root
> > element of the document is not <xsd:schema>.
> > at
> > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:
> > 195)
> > at
> > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:
> > 96)
> > at
> > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:
> > 380)
> > at
> > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:
> > 318)
> > at
> > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:
> > 2541)
> > at
> > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:
> > 2532)
> > at
> > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:
> > 1836)
> > at
> > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:
> > 531)
> > at
> > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:
> > 552)
> > at
> > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:
> > 2408)
> > at
> > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:
> > 1753)
> > at
> > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:
> > 705)
> > at
> > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:
> > 377)
> > at
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> > $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
> > at
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:
> > 648)
> > at
> > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:
> > 140)
> > at
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
> > 510)
> > at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
> > 807)
> > at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
> >> - Show quoted text -- Hide quoted text -