Hi,

My sense is that the maven build did not succeed in placing an artifact into
the Maven repository. My original answer below is correct and the resources
directory is on the classpath since it is used in order to deploy the
artifact into the servicemix server. 

BTW, did you verify that the SA does contain the SU and the artifact in the
folder structure, I mentioned below. This could be easily verified by
looking in the SA jar file.

The correct path is with respect to the resources diectory and should be
"./MyPropFolder/MyPropFile.txt". Please check your deployment artifact to
see if the file has been placed in the deployable jar.

Cheers,

Ashwin...


[email protected] wrote:
> 
> Thanks for response!
> I have tried each of the following, none of them work
> 
> "MyPropFile.txt"
> "MyPropFolder/MyPropFile.txt"
> "./MyPropFolder/MyPropFile.txt"
> "../MyPropFolder/MyPropFile.txt"
> "./MyPropFile.txt"
> "./resources/MyPropFolder/MyPropFile.txt"
> "../resources/MyPropFolder/MyPropFile.txt"
> "../../resources/MyPropFolder/MyPropFile.txt"
> 
> Please Help!
> 
> Regards,
> Harshit
> 


-----
--- 
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence 
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
--- 
+1-972-304-9084 (Office) 
+1-972-971-1700 (Mobile) 
---- 
Blog: http://opensourceknowledge.blogspot.com/


-- 
View this message in context: 
http://www.nabble.com/Reading-file-with-relative-URL-from-Bean-tp21560027p21577863.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to