Try something like that:

 <jsr181:endpoint service="foo:MusicService"
                  endpoint="MusicServicePort"
                  pojo="#muzikService"
                  serviceInterface="com.test.servicemix.service.IMusicService"
                  typeMapping="jaxb2"
                  annotations="jsr181"
                  style="document" />


On 1/2/07, moraleslos <[EMAIL PROTECTED]> wrote:

When deploying my jsr181 component, I get the following exception:

org.codehaus.xfire.annotations.AnnotationException: Class $Proxy34 does not
have a WebService annotation

This occurs when my jsr181-annotated service class is participating in a
Spring-managed transaction, e.g. @Transactional.  When I take the
@Transactional annotation out, it deploys successfully (although it won't
work since it needs to be inside a transaction).  How do I go about to
deploy this web service succesfully?  Below is my appropriate config and
classes:


***************************************
xbean.xml:

<beans
        xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
        xmlns:foo="http://com.test.servicemix.ws";>

<import
resource="classpath:com/test/servicemix/service/music-service-context.xml"/>
...


    <jsr181:endpoint
        service="foo:MusicService"
        pojo="#muzikService"
                annotations="jsr181"/>
</beans>


music-service-context.xml:

<beans...>
        <!-- hibernateTxManager defined in another imported spring context
resource -->
        <tx:annotation-driven transaction-manager="hibernateTxManager"/>

        <!-- services -->
    <bean id="muzikService"
class="com.test.servicemix.service.MusicService">
        <property name="musicDao" ref="HibernateMusicDao"/>
    </bean>

</beans>


MusicService.java:

@Transactional
@WebService(endpointInterface = "com.test.servicemix.service.IMusicService")
public class MusicService implements IMusicService {
...
}
##############################################

Thanks in advance!

-los
--
View this message in context: 
http://www.nabble.com/issues-with-jsr181-annotations-and-Spring-transactions-tf2910107s12049.html#a8130814
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to