servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie Penney <jpen...@ec.auckland.ac.nz>
Subject Re: Hello World BC
Date Tue, 06 Feb 2007 19:23:46 GMT
You may want to try adding -Dsm.username=smx -Dsm.password=smx to your 
jbi:projectDeploy command. I think I had that problem on 3.0

Jamie



Bruce Snyder wrote:
> On 2/5/07, jlbarrera <jlbarrera@sadiel.es> wrote:
>>
>> Ok, the problem number 2 is solved. I dont know what was the problem 
>> but i
>> executed:
>> mvn clean
>> mvn install and the result was BUILD SUCCESSFULL
>>
>> Then i run mvn jbi:projectDeploy, and i its run in servicemix 3.1, in
>> servicemix 3.0 i get the error:
>>    Unable to deploy project, Error accessing ServiceMix administration
>>
>> The hello-world-sa RUN ok:
>> INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
>> hello-world-sa
>> INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
>> hello-world-sa
>>
>> But ... it not show the message... This is for the problem 1, write 
>> above?
>>
>>
>> jlbarrera wrote:
>> >
>> > I try the Tutorial Creating a "Hello World JBI Binding Component", 
>> and i
>> > get two problems:
>> >
>> >    1) In "Testing the Hello World Binding Component" when i try: "mvn
>> > install" i received:
>> >
>> > 
>> <----------------------------------------------------------------------------------------------------------------------------------------------->

>>
>> > -------------------------------------------------------
>> >  T E S T S
>> > -------------------------------------------------------
>> > Running 
>> org.apache.servicemix.samples.helloworld.bc.MySpringComponentTest
>> > log4j:WARN No appenders could be found for logger
>> > (org.springframework.core.CollectionFactory).
>> > log4j:WARN Please initialize the log4j system properly.
>> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
>> 2.968 sec
>> >
>> > Results :
>> >
>> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>> >
>> > [INFO] [jar:jar]
>> > [INFO] Building jar: /home/jlbarrera/Sadiel/ESB (Enterprise Service
>> > 
>> Bus)/Servicemix/apache-servicemix-3.0-incubating/examples/hello-world-smx/hello-world-bc-su/target/hello-world-bc-su-1.0-SNAPSHOT.jar

>>
>> > [INFO] [jbi:jbi-component]
>> > [INFO] Generating installer /home/jlbarrera/Sadiel/ESB (Enterprise 
>> Service
>> > 
>> Bus)/Servicemix/apache-servicemix-3.0-incubating/examples/hello-world-smx/hello-world-bc-su/target/hello-world-bc-su-1.0-SNAPSHOT-installer.zip

>>
>> > [INFO] Building jar: /home/jlbarrera/Sadiel/ESB (Enterprise Service
>> > 
>> Bus)/Servicemix/apache-servicemix-3.0-incubating/examples/hello-world-smx/hello-world-bc-su/target/hello-world-bc-su-1.0-SNAPSHOT-installer.zip

>>
>> > [INFO] [install:install]
>> > [INFO] Installing /home/jlbarrera/Sadiel/ESB (Enterprise Service
>> > 
>> Bus)/Servicemix/apache-servicemix-3.0-incubating/examples/hello-world-smx/hello-world-bc-su/target/hello-world-bc-su-1.0-SNAPSHOT.jar

>>
>> > to
>> > 
>> /root/.m2/repository/org/apache/servicemix/samples/helloworld/bc/hello-world-bc-su/1.0-SNAPSHOT/hello-world-bc-su-1.0-SNAPSHOT.jar

>>
>> > [INFO] Installing /home/jlbarrera/Sadiel/ESB (Enterprise Service
>> > 
>> Bus)/Servicemix/apache-servicemix-3.0-incubating/examples/hello-world-smx/hello-world-bc-su/target/xbean/hello-world-bc-su.xsd

>>
>> > to
>> > 
>> /root/.m2/repository/org/apache/servicemix/samples/helloworld/bc/hello-world-bc-su/1.0-SNAPSHOT/hello-world-bc-su-1.0-SNAPSHOT.xsd

>>
>> > [INFO] Installing /home/jlbarrera/Sadiel/ESB (Enterprise Service
>> > 
>> Bus)/Servicemix/apache-servicemix-3.0-incubating/examples/hello-world-smx/hello-world-bc-su/target/xbean/hello-world-bc-su.xsd.html

>>
>> > to
>> > 
>> /root/.m2/repository/org/apache/servicemix/samples/helloworld/bc/hello-world-bc-su/1.0-SNAPSHOT/hello-world-bc-su-1.0-SNAPSHOT-schema.html

>>
>> > [INFO] Installing /home/jlbarrera/Sadiel/ESB (Enterprise Service
>> > 
>> Bus)/Servicemix/apache-servicemix-3.0-incubating/examples/hello-world-smx/hello-world-bc-su/target/hello-world-bc-su-1.0-SNAPSHOT-installer.zip

>>
>> > to
>> > 
>> /root/.m2/repository/org/apache/servicemix/samples/helloworld/bc/hello-world-bc-su/1.0-SNAPSHOT/hello-world-bc-su-1.0-SNAPSHOT-installer.zip

>>
>> > [INFO]
>> > 
>> ------------------------------------------------------------------------
>> > [INFO] BUILD SUCCESSFUL
>> > [INFO]
>> > 
>> ------------------------------------------------------------------------
>> > [INFO] Total time: 1 minute 2 seconds
>> > [INFO] Finished at: Mon Feb 05 16:07:57 CET 2007
>> > [INFO] Final Memory: 15M/32M
>> > [INFO]
>> > 
>> ------------------------------------------------------------------------
>> > 
>> <----------------------------------------------------------------------------------------------------------------------------------------------->

>>
>> >
>> > But i dont see the message "<hello>Hello World! Message [<hello>Ski
>> > Colorado!</hello>] contains [28] bytes.</hello>"
>> > for anywhere
>> >
>> > 2) If a try "Wrapping the Service Unit in a Service Assembly", when 
>> i try:
>> > "mvn install" i received:
>> >
>> > [ERROR] BUILD ERROR
>> > [INFO]
>> > 
>> ------------------------------------------------------------------------
>> > [INFO] Failed to resolve artifact.
>> >
>> > GroupId: org.apache.servicemix.samples.helloworld
>> > ArtifactId: hello-world-bc-su
>> > Version: 1.0-SNAPSHOT
>> >
>> > Reason: Unable to download the artifact from any repository
>> >
>> >
>> > 
>> org.apache.servicemix.samples.helloworld:hello-world-bc-su:pom:1.0-SNAPSHOT 
>>
>> >
>> > from the specified remote repositories:
>> >   central (http://repo1.maven.org/maven2),
>> >   apache-incubating
>> > (http://people.apache.org/repo/m2-incubating-repository),
>> >   apache.snapshots 
>> (http://people.apache.org/repo/m2-snapshot-repository),
>> >   apache.incubating
>> > (http://people.apache.org/repo/m2-incubating-repository)
>> >
>> >
>> > ?????? Why the example dont run? If i am reading the example step 
>> by step?
>
> The examples in the Hello World BC are not yet complete. I'll try to
> work on them a bit later today to make them work 100%.
>
> Bruce


Mime
View raw message