Build failed about JBoss ESB Sample QuickStarts Helloworld
tobaby May 26, 2011 7:27 AMHello,
I am new to JBoss ESB.
There are two question I confused.
The first question:
I downloaded SOA 5.1.0 GA and followed the step in <JBoss_Enterprise_SOA_Platform-5-SOA_Getting_Started_Guide-en-US.pdf>
But when I launch the server, it can launch successfully, but it has a warning as below:
2011-05-26 16:56:39,368 INFO [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.1.0.GA_SOA (build: SVNTag=5.1.0.GA_SOA date=201102110032)] Started in 4m:23s:735ms
2011-05-26 16:57:35,604 WARN [com.arjuna.ats.jta.logging.loggerI18N] (Thread-13) [com.arjuna.ats.internal.jta.recovery.xarecovery1] Local XARecoveryModule.xaRecovery got XA exception javax.transaction.xa.XAException: Error trying to connect to provider java:/DefaultJMSProvider, XAException.XAER_RMERR
Should I pay attention to this warning?
The second question:
I launched a terminal window and navigate to the helloworld directory.
When I run
ant deploy, Quickstart_helloworld.esb build and deploy successfully.
But when I run ant runtest, this build failed.
The terminal window of running ant runtest shows:
C:\Users\Administrator>cd c:\jboss-soa-p-5\jboss-as\samples\quickstarts\hellowor
ld
c:\jboss-soa-p-5\jboss-as\samples\quickstarts\helloworld>ant runtest
Buildfile: c:\jboss-soa-p-5\jboss-as\samples\quickstarts\helloworld\build.xml
check-jbossesb-dist:
qslib-dependencies:
non-qslib-dependencies:
jbossesb-quickstart-override:
jbossesb-source-dependencies:
jbossesb-server-dependencies:
[echo] Using profile: default
check-as-version:
[echo] c:\jboss-soa-p-5\jboss-as\server\default
jbossesb-dependencies-as4:
jbossesb-dependencies-as5:
messaging-config:
messaging-dependencies:
jbossmq-dependencies:
hornetq-dependencies:
quickstart-specific-dependencies:
classpath-dependencies-as4:
classpath-dependencies-as5:
quickstart-specific-checks:
dependencies:
compile:
[javac] c:\jboss-soa-p-5\jboss-as\samples\quickstarts\conf\base-build.xml:43
7: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=la
st; set to false for repeatable builds
[javac] c:\jboss-soa-p-5\jboss-as\samples\quickstarts\conf\base-build.xml:44
2: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=la
st; set to false for repeatable builds
runtest:
[echo] Runs Test JMS Sender
[java] Exception in thread "main" javax.naming.NameNotFoundException: Conne
ctionFactory not bound
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
[java] at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
[java] at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
a:305)
[java] at sun.rmi.transport.Transport$1.run(Transport.java:159)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
[java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
t.java:535)
[java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCP
Transport.java:790)
[java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
ransport.java:649)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
PoolExecutor.java:886)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
Executor.java:908)
[java] at java.lang.Thread.run(Thread.java:619)
[java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(StreamRemoteCall.java:255)
[java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
ll.java:233)
[java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
[java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:72
6)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:68
6)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:392)
[java] at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
essage.setupConnection(SendJMSMessage.java:52)
[java] at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
essage.main(SendJMSMessage.java:81)
BUILD FAILED
c:\jboss-soa-p-5\jboss-as\samples\quickstarts\helloworld\build.xml:14: Java retu
rned: 1
Total time: 18 seconds
c:\jboss-soa-p-5\jboss-as\samples\quickstarts\helloworld>
The server console shows:
2011-05-26 17:16:38,008 WARN [org.jboss.system.server.profileservice.hotdeploy.HDScanner] (HDScanner) Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.esb.quickstart.destination:name=quickstart_helloworld_Request_esb,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.esb.quickstart.destination:name=quickstart_helloworld_Request_gw,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.esb.vfszip:/C:/jboss-soa-p-5/jboss-as/server/default/deploy/Quickstart_helloworld.esb/" is missing the following dependencies:
Dependency "<UNKNOWN jboss.esb.vfszip:/C:/jboss-soa-p-5/jboss-as/server/default/deploy/Quickstart_helloworld.esb/>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.esb.quickstart.destination:name=quickstart_helloworld_Request_esb,service=Queue' **")
Dependency "<UNKNOWN jboss.esb.vfszip:/C:/jboss-soa-p-5/jboss-as/server/default/deploy/Quickstart_helloworld.esb/>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.esb:deployment=jbossesb.esb' **")
Dependency "<UNKNOWN jboss.esb.vfszip:/C:/jboss-soa-p-5/jboss-as/server/default/deploy/Quickstart_helloworld.esb/>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.esb.quickstart.destination:name=quickstart_helloworld_Request_gw,service=Queue' **")
DEPLOYMENTS IN ERROR:
Deployment "jboss.messaging:service=ServerPeer" is in error due to the following reason(s): Configured
Deployment "<UNKNOWN jboss.esb.vfszip:/C:/jboss-soa-p-5/jboss-as/server/default/deploy/Quickstart_helloworld.esb/>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.esb.quickstart.destination:name=quickstart_helloworld_Request_gw,service=Queue' **, ** UNRESOLVED Demands 'jboss.esb.quickstart.destination:name=quickstart_helloworld_Request_esb,service=Queue' **, ** UNRESOLVED Demands 'jboss.esb:deployment=jbossesb.esb' **
Deployment "jboss.messaging:service=PostOffice" is in error due to the following reason(s): Configured
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1008)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:954)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:870)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:416)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Can some body provide expert comments for me?
Thanks.