Hi,
Maven Build has also succeeded. When I open assembly.zip, I see appropriate
serviceunit .zip in it.
and when I ope serviceunit.zip I see MYFolder which has MyProp.txt
Structure is as follows:
ServiceAssembly.zip
MYSU.zip
MyFolder
MyPropFile.txt
MyPackage
MyBean.class
Infact after deploying, when I have a look at the SERVICEMIX_HOME/data
folder I see
D:\installation\apache-servicemix-3.2.2\data\smx\service-assemblies\MyAssembly\version_15\sus\servicemix-bean\MyBean\MyFolder\MyPropFile.txt
D:\installation\apache-servicemix-3.2.2\data\smx\service-assemblies\MyAssembly\version_15\sus\servicemix-bean\MyBean\MyPAckage\MyBean.class
Please Help!
Thanks,
Harshit
Ashwin Karpe wrote:
>
> 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
>>
>
>
--
View this message in context:
http://www.nabble.com/Reading-file-with-relative-URL-from-Bean-tp21560027p21580764.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.