You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by bhuvana <kb...@gmail.com> on 2006/08/14 06:42:09 UTC

where to place class files of the jbi component

hi 

 i have developed a lw- jbi component and deployed it.
when i try to run it i get the following exception


Caught: org.springframework.beans.factory.BeanDefinitionStoreException:
Error 'B
ean class [..\examples\test\build\components\test\TestHello.class] not
found' in
 resource 'file
[E:\apache-servicemix-3.0-M2-incubating\examples\test\servicemix
.xml]' at:
Bean 'test1'; nested exception is java.lang.ClassNotFoundException:
//\examples\
test\build\components\test\TestHello/class



i think the problem is with placing the class files in the exact path.
can anyone suggest solution to resolve this problem.
-- 
View this message in context: http://www.nabble.com/where-to-place-class-files-of-the-jbi-component-tf2101418.html#a5791389
Sent from the ServiceMix - User forum at Nabble.com.


Re: where to place class files of the jbi component

Posted by bhuvi <kb...@gmail.com>.
thanks a lot!


gnodet wrote:
> 
> Take a look at the examples shipped in servicemix distribution.
> Usually, you will want to add a
>    <classpath>
>      <location>.</location>
>   </classpath>
> to your xml configuration file.
> Then, you need to include the class in the jar and reference it using the
> class name and not its location:
>    test.TestHello
> 
> The maven jbi plugin may help you to package the SU / SA.
> Download a recent snapshot distribution and browse the examples
> that use maven.
> 
> 
> On 8/14/06, bhuvana <kb...@gmail.com> wrote:
>>
>>
>> hi
>>
>> i have developed a lw- jbi component and deployed it.
>> when i try to run it i get the following exception
>>
>>
>> Caught: org.springframework.beans.factory.BeanDefinitionStoreException:
>> Error 'B
>> ean class [..\examples\test\build\components\test\TestHello.class] not
>> found' in
>> resource 'file
>> [E:\apache-servicemix-3.0-M2-incubating\examples\test\servicemix
>> .xml]' at:
>> Bean 'test1'; nested exception is java.lang.ClassNotFoundException:
>> //\examples\
>> test\build\components\test\TestHello/class
>>
>>
>>
>> i think the problem is with placing the class files in the exact path.
>> can anyone suggest solution to resolve this problem.
>> --
>> View this message in context:
>> http://www.nabble.com/where-to-place-class-files-of-the-jbi-component-tf2101418.html#a5791389
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: http://www.nabble.com/where-to-place-class-files-of-the-jbi-component-tf2101418.html#a5845678
Sent from the ServiceMix - User forum at Nabble.com.


Re: where to place class files of the jbi component

Posted by Guillaume Nodet <gn...@gmail.com>.
Take a look at the examples shipped in servicemix distribution.
Usually, you will want to add a
   <classpath>
     <location>.</location>
  </classpath>
to your xml configuration file.
Then, you need to include the class in the jar and reference it using the
class name and not its location:
   test.TestHello

The maven jbi plugin may help you to package the SU / SA.
Download a recent snapshot distribution and browse the examples
that use maven.


On 8/14/06, bhuvana <kb...@gmail.com> wrote:
>
>
> hi
>
> i have developed a lw- jbi component and deployed it.
> when i try to run it i get the following exception
>
>
> Caught: org.springframework.beans.factory.BeanDefinitionStoreException:
> Error 'B
> ean class [..\examples\test\build\components\test\TestHello.class] not
> found' in
> resource 'file
> [E:\apache-servicemix-3.0-M2-incubating\examples\test\servicemix
> .xml]' at:
> Bean 'test1'; nested exception is java.lang.ClassNotFoundException:
> //\examples\
> test\build\components\test\TestHello/class
>
>
>
> i think the problem is with placing the class files in the exact path.
> can anyone suggest solution to resolve this problem.
> --
> View this message in context:
> http://www.nabble.com/where-to-place-class-files-of-the-jbi-component-tf2101418.html#a5791389
> Sent from the ServiceMix - User forum at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet