Hi

I'm trying to extend the bridge example a little bit as an exercise.
What i'm trying to do is when the message arrive in the bridge.output queue,
the bridge-jms-su pull the message and send it to a JSR-181 that write it to
a file (why not ?).

when I try to do a mvn install I got this output :


[INFO]
----------------------------------------------------------------------------
[INFO] Building JSR-181 qui Úcrit dans un fichier ???
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
Downloading:
http://people.apache.org/repo/m2-incubating-repository/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
[WARNING] Unable to get resource from repository apache-incubating
(http://people.apache.org/repo/m2-incubating-repository)
Downloading:
http://people.apache.org/repo/m2-incubating-repository/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
[WARNING] Unable to get resource from repository apache.incubating
(http://people.apache.org/repo/m2-incubating-repository)
Downloading:
http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
[WARNING] Unable to get resource from repository apache-incubating
(http://people.apache.org/repo/m2-incubating-repository)
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
[WARNING] Unable to get resource from repository apache.incubating
(http://people.apache.org/repo/m2-incubating-repository)
Downloading:
http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[WARNING]
        Artifact ant:ant:jar:1.6.5:runtime retains local scope 'runtime'
overriding broader scope 'compile'
        given by a dependency. If this is not intended, modify or remove the
local scope.

[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: java.lang.NullPointerException
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant
tasks
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
ant tasks
        at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:114)
        at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        ... 16 more
Caused by: java.lang.NullPointerException
        at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:70)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108)
        ... 19 more
Caused by: java.lang.NullPointerException
        at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:95)
        at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:66)
        ... 23 more

The bridge example is working (i guess).

I just add an endpoint to the bridge-jms-su like that :

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns:jms="http://servicemix.apache.org/jms/1.0";
       xmlns:b="http://servicemix.apache.org/samples/bridge";>

        <jms:endpoint service="b:jms"
                                        endpoint="endpoint"
                                        role="provider"
                                        destinationStyle="queue"
                                        
jmsProviderDestinationName="bridge.output"
                                        connectionFactory="#connectionFactory" 
/>

    <jms:endpoint service="b:jmsReader"
                  endpoint="jms"
                  targetService="b:http"
                  targetEndpoint="output"
                  role="consumer" 
                  destinationStyle="queue"
                  jmsProviderDestinationName="bridge.output"
                  connectionFactory="#connectionFactory"
                  defaultMep="http://www.w3.org/2004/08/wsdl/in-only"/>
                                        
        <bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
                <property name="brokerURL" value="vm://localhost" />
        </bean>

</beans>

a jsr-181 :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";>
    <classpath>
        <location>.</location>
    </classpath>  
    <jsr181:endpoint pojoClass="test.Test"/>
</beans>

and my class is in ressources/test/Test.java.

what is missing or what is wrong ?

Regards

Denis
Bull at Etnic
-- 
View this message in context: 
http://www.nabble.com/noob-has-a-problem-with-JSR-181-tf3081863s12049.html#a8562692
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to