java - Refer the XSD located in a jar using schemaLocation? -
i using spring , maven. have projecta , projectb. projecta dependency projectb. trying refer xsd in projectb's wsdl xsd part of projecta.
how can refer xsd part of dependent jar?
when did below:
schemalocation="classpath:/src/main/resources/xsd/some.xsd"
i got exception saying unknown protocol classpath
.
please me refer xsd?
the wsdl transferred , interpreted client. classpath:
isn't going work as, says, isn't valid protocol. have put url in there upon requesting translated url want. use spring resouce mapping (i.e. externally put http://.../xsd/some.xsd
mapped spring mvc <mvc:resources mapping="/xsd/**" location="classpath*:/xsd" />
.
you shouldn't include src/main/resources
in src/main/resources
put root of class path.
Comments
Post a Comment