camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <r...@evosent.com>
Subject Re: Access XSD (Resources) in from an OSGI bundle
Date Wed, 03 Oct 2012 09:20:12 GMT
@Babak - the component page [1] doesn't say anything about using the
"classpath:" prefix.

@Patrik - have you tested dropping the "classpath:" prefix?

[1] http://camel.apache.org/validation.html

Regards,

*Raúl Kripalani*
Apache Camel Committer
Enterprise Architect, Program Manager, Open Source Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk>

On Wed, Oct 3, 2012 at 9:06 AM, Babak Vahdat <babak.vahdat@swissonline.ch>wrote:

> Hi Patrik,
>
> what do you exactly mean with:
>
> // begin-quote
>   I checked the availability of th xsd with the following code in the same
> configure() methode of my RouteBuilder()
>   InputStream is =
>
> this.getClass().getClassLoader().getResourceAsStream("resources/Msg_template.xsd");
>
>   It works. So the resource is in the classpath.
> // end-quote
>
> Did you check if the returned InputStream is really *not* null as you will
> not see any exception being thrown if loading of the resource fails with
> the
> code above.
>
> Also as Christian has already mentioned the 2.9.2 release is "old" and we
> did *not* test it on JDK 7 at all (the JDK 7 support started first with
> 2.10.0). So better update to 2.10.1 if you can and see if you can still
> reproduce the problem. If yes then maybe give the snapshot of the upcoming
> 2.10.2 also a try as well containing the following fix:
>
> https://issues.apache.org/jira/browse/CAMEL-5632
>
> Which I think it could be relevant for your case.
>
> The link below explains the Maven-Repo required to include inside your POM
> or ~/.m2/settings.xml so that Maven can download 2.10.2-SNAPSHOT for you,
> assuming you make use of Maven :-)
>
>
> http://camel.apache.org/download.html#Download-Maven2snapshotrepositoryinpom
>
> @Raul after looking at ResourceHelper source I don't think that dropping
> the
> "classpath:" prefix would make any change at all but maybe I'm wrong...
>
> Babak
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Access-XSD-Resources-in-from-an-OSGI-bundle-tp5720312p5720431.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message