You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2009/08/05 16:21:14 UTC
[jira] Commented: (CXF-2377) jaxrs Schemahandler inside tomcat lib
folder - loading schema with classpath not working
[ https://issues.apache.org/jira/browse/CXF-2377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739520#action_12739520 ]
Sergey Beryozkin commented on CXF-2377:
---------------------------------------
Hi Max, thanks for opening this issue.
Hi Dan, here's the code from ResourceUtils :
public static InputStream getClasspathResourceStream(String path, Class<?> callingClass, Bus bus) {
InputStream is = ClassLoaderUtils.getResourceAsStream(path, callingClass);
if (is == null && bus != null) {
ResourceManager rm = bus.getExtension(ResourceManager.class);
if (rm != null) {
is = rm.getResourceAsStream(path);
}
}
return is;
}
what else can be done there to make things working as expected ? I thought ResourceManager would take care of it ?
thanks, Sergey
> jaxrs Schemahandler inside tomcat lib folder - loading schema with classpath not working
> ----------------------------------------------------------------------------------------
>
> Key: CXF-2377
> URL: https://issues.apache.org/jira/browse/CXF-2377
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2.3
> Reporter: max laenzlinger
>
> See summary. Using absolute path works, but using classpath cant find the schema file inside the webapplication-context.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.