Hi Freeman,

SMX 4.3.0
From the SA: 
    <packaging>pom</packaging>

Thanks,
Stefan


Am 15.09.2011 um 13:01 schrieb Freeman Fang:

> Hi,
> 
> What's your SMX version? How you package your SA?
> 
> Freeman
> On 2011-9-15, at 下午6:49, Stefan Essl wrote:
> 
>> Hi Freeman,
>> 
>> thanks. Now it builds again but I get an exception for all of the classes or 
>> methods that were earlier on shown as missing in the build process. One 
>> example:
>> 
>> Caused by: java.lang.NoClassDefFoundError: 
>> org/apache/servicemix/jbi/NoMessageContentAvailableException
>> 
>> Thanks,
>> Stefan
>> 
>> 
>> Am 15.09.2011 um 12:26 schrieb Freeman Fang:
>> 
>>> 
>>> On 2011-9-15, at 下午6:08, Stefan Essl wrote:
>>> 
>>>> Hi Freeman,
>>>> 
>>>> as stated earlier on, I added servicemix-core to the dependencies of my 
>>>> file sender SA, because otherwise it would not build with maven.
>>>> 
>>>>> You can add provided scope in your SA/SU pom.xml for servicemix-utils and 
>>>>> servicemix-core dependency to exclude those jars from your SA/SU.
>>>> 
>>>> How can I do this?
>>>> 
>>> Something like
>>> 
>>> <dependency>
>>>  <groupId>org.apache.servicemix</groupId>
>>>  <artifactId>servicemix-core</artifactId>
>>>  <scope>provided</scope>
>>> </dependency>
>>> 
>>> Freeman
>>>> Thanks,
>>>> Stefan
>>>> 
>>>> 
>>>>> On 2011-9-15, at 下午4:26, Stefan Essl wrote:
>>>>> 
>>>>>> Hi Freeman, Hi JB,
>>>>>> 
>>>>>> thanks for both your answers. That solved the problem. However, now I 
>>>>>> deployed the service assembly and sent a SOAP message to the http 
>>>>>> endpoint included with it that should be written to disk by the file 
>>>>>> sender but instead throws the following exception:
>>>>>> 
>>>>>> Error processing exchange 
>>>>>> org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@367dc4cb
>>>>>> java.lang.LinkageError: loader constraint violation: loader (instance of 
>>>>>> org/apache/xbean/classloader/JarFileClassLoader) previously initiated 
>>>>>> loading for a different type with name 
>>>>>> "org/apache/servicemix/jbi/jaxp/SourceTransformer"
>>>>>> 
>>>>>> As stated I didn't change the marshaler at all yet. I just took the code 
>>>>>> of the DefaultFileMarshaler and placed it in my marshaler file.
>>>>>> 
>>>>>> Thanks,
>>>>>> Stefan
>>>>>> 
>>>>>> 
>>>>>> Am 15.09.2011 um 10:10 schrieb Freeman Fang:
>>>>>> 
>>>>>>> Hi,
>>>>>>> 
>>>>>>> Class NoMessageContentAvailableException is from servicemix-core 
>>>>>>> module, so you need add it into your pom.xml
>>>>>>> 
>>>>>>> Freeman
>>>>>>> On 2011-9-15, at 下午4:01, Stefan Essl wrote:
>>>>>>> 
>>>>>>>> Hi there,
>>>>>>>> 
>>>>>>>> I'm trying to build a service assembly containing a file sender. My 
>>>>>>>> goal is to modify the marshaler of the file sender to my own needs. I 
>>>>>>>> started off with the default file marshaler which went fine. I then 
>>>>>>>> copied the code of the default file marshaler into my own file 
>>>>>>>> (MyDefaultFileMarshaler.java) and added the marshaler statement to the 
>>>>>>>> pom.xml of the file sender to use this (still unmodified) default 
>>>>>>>> marshaler.
>>>>>>>> However if I'm trying to build this project, I get plenty of errors 
>>>>>>>> telling me for example:
>>>>>>>> 
>>>>>>>> [ERROR]path_to_project/soap-file-su/src/main/java/org/apache/servicemix/components/util/MyDefaultFileMarshaler.java:[148,13]
>>>>>>>>  cannot find symbol
>>>>>>>> [ERROR] symbol  : class NoMessageContentAvailableException
>>>>>>>> [ERROR] location: class 
>>>>>>>> org.apache.servicemix.components.util.MyDefaultFileMarshaler
>>>>>>>> 
>>>>>>>> Since the java file contains "import 
>>>>>>>> org.apache.servicemix.jbi.NoMessageContentAvailableException;", I'm 
>>>>>>>> guessing that I need to include these imports somewhere in the pom.xml 
>>>>>>>> for Maven to include it as well. Nonetheless all the approaches I 
>>>>>>>> found and tried didn't bring me any further.
>>>>>>>> 
>>>>>>>> Any help would be appreciated!
>>>>>>>> 
>>>>>>>> Thanks,
>>>>>>>> Stefan
>>>>>>> 
>>>>>>> ---------------------------------------------
>>>>>>> Freeman Fang
>>>>>>> 
>>>>>>> FuseSource
>>>>>>> Email:[email protected]
>>>>>>> Web: fusesource.com
>>>>>>> Twitter: freemanfang
>>>>>>> Blog: http://freemanfang.blogspot.com
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>>> ---------------------------------------------
>>>>> Freeman Fang
>>>>> 
>>>>> FuseSource
>>>>> Email:[email protected]
>>>>> Web: fusesource.com
>>>>> Twitter: freemanfang
>>>>> Blog: http://freemanfang.blogspot.com
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>> 
>>> ---------------------------------------------
>>> Freeman Fang
>>> 
>>> FuseSource
>>> Email:[email protected]
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.com
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
> 
> ---------------------------------------------
> Freeman Fang
> 
> FuseSource
> Email:[email protected]
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> 
> 
> 
> 
> 
> 
> 
> 
> 

Reply via email to