Hi Claus,

Thanks for your response.

yes. metamodel/grids is the directory(package name) in the classpath.

With this relative path i am facing issue. But If i specify the absolute
path then it is working.

What do u mean by system file path? Is it absolute path??

Could you please help me on this?

Thanks,
Sada.B


On Tue, Apr 22, 2014 at 10:54 AM, Claus Ibsen-2 [via Camel] <
ml-node+s465427n5750417...@n5.nabble.com> wrote:

> Hi
>
> Is metamodel/gris a directory in the classpath?
>
> The file component is not for reading resources in the classpath. The
> file path should be a system file path, that java.io.File would be
> able to read.
>
> On Mon, Apr 21, 2014 at 2:26 PM, sbalabadra <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5750417&i=0>>
> wrote:
>
> > Hi Team,
> >
> > In our project we are using camel file component to read the files.
> >
> > We have created spring mvc project. Under resource folder, i have
> created
> > metamodel/grids folder.
> > In this folder i have pasted all my files.
> >
> > below is the camel endpoint configuration.
> >
> > <camel:endpoint id="homeMetaModel"
> > uri="file:${MetaModelScreenEndPointURI}&amp;fileName=home.json" />
> >
> > Here
> MetaModelScreenEndPointURI=medamodel/grids/?noop=true&idempotent=false
> >
> > When i am trying to access this endpoint using cosumber, i am getting
> file
> > not found error message.
> >
> > Could you please help me on this?
> >
> > Thanks,
> > Sada.B
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Reading-a-File-Using-camel-is-not-working-with-relative-path-tp5750395.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5750417&i=1>
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> hawtio: http://hawt.io/
> fabric8: http://fabric8.io/
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Reading-a-File-Using-camel-is-not-working-with-relative-path-tp5750395p5750417.html
>  To unsubscribe from Reading a File Using camel is not working with
> relative path, click 
> here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5750395&code=c2JhbGFiYWRyYUBnbWFpbC5jb218NTc1MDM5NXwtMTI2MDA5NDc1NA==>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/Reading-a-File-Using-camel-is-not-working-with-relative-path-tp5750395p5750456.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to