14 Replies Latest reply: May 17, 2012 3:09 AM by shadowman RSS

Problems running helloworld on ESB

shadowman Newbie
compile:
    [javac] C:\jbossesb-4.11\samples\quickstarts\conf\base-build.xml:465: warnin
g: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set t
o false for repeatable builds
    [javac] C:\jbossesb-4.11\samples\quickstarts\conf\base-build.xml:470: warnin
g: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set t
o false for repeatable builds

runtest:
     [echo] Runs Test JMS Sender
     [java] log4j:WARN No appenders could be found for logger (org.jnp.interface
s.TimedSocketFactory).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] Exception in thread "main" javax.naming.NameNotFoundException: quick
start_helloworld_Request_gw 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 org.jnp.server.NamingServer.lookup(NamingServer.java:399)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:57)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke(Method.java:601)
     [java]     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
a:322)
     [java]     at sun.rmi.transport.Transport$1.run(Transport.java:177)
     [java]     at sun.rmi.transport.Transport$1.run(Transport.java:174)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
     [java]     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
t.java:553)
     [java]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCP
Transport.java:808)
     [java]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
ransport.java:667)
     [java]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolE
xecutor.java:1110)
     [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
Executor.java:603)
     [java]     at java.lang.Thread.run(Thread.java:722)
     [java]     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(StreamRemoteCall.java:273)
     [java]     at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
ll.java:251)
     [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
     [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:72
8)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:68
8)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:411)
     [java]     at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
essage.setupConnection(SendJMSMessage.java:55)
     [java]     at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
essage.main(SendJMSMessage.java:81)

BUILD FAILED
C:\jbossesb-4.11\samples\quickstarts\helloworld\build.xml:15: Java returned: 1

Hello All

 

I'm new with JBoss especially with ESB.

I have set up JBoss AS 6.0.0 Final with JBoss ESB 4.11

The AS works on its own just fine.

The ESB I went as far as deploy helloworld with no problem

When I try to "ant runtest"on Helloworld I get errors above.

I can see jnp-client classes under client directory.

Do I need to set classpath for each of these directory to use the classes?

And also how do I set includeantruntime ?

 

Thanks,

  • 1. Re: Problems running helloworld on ESB
    Len DiMaggio Apprentice

    Hi - this should not be difficult to do - tell me - how did you deploy JBoss ESB to the AS server?

  • 2. Re: Problems running helloworld on ESB
    shadowman Newbie

    Hello Len

     

    I followed the examples in JBoss ESB Beginner's Guide.

    I used ant deploy

     

    Thanks

  • 3. Re: Problems running helloworld on ESB
    Len DiMaggio Apprentice

    Yes - but - what exact steps did you take to deploy JBoss ESB to the AS server? Are there errors in the AS server.log when it starts?

     

     

    -- Len

  • 4. Re: Problems running helloworld on ESB
    shadowman Newbie

    Hello Len

     

    Thanks again.

    I think I must have entered the wrong properties for deployment.properties file

    in JBoss ESB

     

     

    ######################################################################
    # JBossESB ant deployment properties file
    #
    # Copy the example file and replace with your values
    #
    ######################################################################
    
    ######################################################################
    # You can use three deployment options: deploy to JBossAS, Tomcat or
    # create a standalone launcher, so you probably only care about
    # one of the following sections.
    ######################################################################
    # JBossAS
    ######################################################################
    # The Directory in Which JBoss AS is Installed 
    # The absolute path to a directory in which a version of JBoss AS with 
    # EJB3 has been installed. 
    # This path should not include spaces. 
    # Use of relative paths or paths with spaces will cause runtime errors 
    # when deploying and executing the quickstart and the trailblazers. 
    # (e.g. /home/pbennett/jboss-4.0.5.GA-ejb3) 
    # (By default the 'ant install' task will create this directory.)
    # org.jboss.esb.server.home=/jbossesb-server-4.5.GA
    org.jboss.esb.server.home=/jboss-6.0.0.Final
    # The Configuration of JBoss AS to Use 
    # (e.g. default) 
    #org.jboss.esb.server.config=default
    org.jboss.esb.server.config=all
    ######################################################################
    # Tomcat
    ######################################################################
    # jbossesb tomcat home directory
    org.jboss.esb.tomcat.home=/apache-tomcat-5.5.20
    

    Please take a look and let me know.

  • 5. Re: Problems running helloworld on ESB
    Len DiMaggio Apprentice

    What are you seeing in the server.log when you start the server?

  • 6. Re: Problems running helloworld on ESB
    shadowman Newbie
    11:37:27,586 INFO  [AbstractJBossASServerBase] Server Configuration:
     JBOSS_HOME URL: file:/C:/jboss-6.0.0.Final/
     Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml
     Common Base: $JBOSS_HOME\common/
     Common Library: $JBOSS_HOME\common/lib/
     Server Name: default
     Server Base: $JBOSS_HOME\server/
     Server Library: $JBOSS_HOME\server/default/lib/
     Server Config: $JBOSS_HOME\server/default/conf/
     Server Home: $JBOSS_HOME\server/default/
     Server Data: $JBOSS_HOME\server/default/data/
     Server Log: $JBOSS_HOME\server/default/log/
     Server Temp: $JBOSS_HOME\server/default/tmp/
    11:37:27,602 INFO  [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
    11:37:30,238 INFO  [ServerInfo] Java version: 1.6.0_27,Sun Microsystems Inc.
    11:37:30,238 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
    11:37:30,238 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 20.2-b06,Sun Microsystems Inc.
    11:37:30,238 INFO  [ServerInfo] OS-System: Windows 7 6.1,x86
    11:37:30,238 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -Djava.endorsed.dirs=C:\jboss-6.0.0.Final\lib\endorsed 
    11:37:30,238 DEBUG [ServerInfo] Full System Properties Dump
    11:37:30,238 DEBUG [ServerInfo]     awt.toolkit: sun.awt.windows.WToolkit
    11:37:30,238 DEBUG [ServerInfo]     file.encoding: Cp1252
    11:37:30,238 DEBUG [ServerInfo]     file.encoding.pkg: sun.io
    11:37:30,238 DEBUG [ServerInfo]     file.separator: \
    11:37:30,238 DEBUG [ServerInfo]     java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment
    11:37:30,238 DEBUG [ServerInfo]     java.awt.printerjob: sun.awt.windows.WPrinterJob
    11:37:30,238 DEBUG [ServerInfo]     java.class.path: C:\jdk1.6.0_27\lib\tools.jar;C:\jboss-6.0.0.Final\bin\run.jar
    11:37:30,238 DEBUG [ServerInfo]     java.class.version: 50.0
    11:37:30,238 DEBUG [ServerInfo]     java.endorsed.dirs: C:\jboss-6.0.0.Final\lib\endorsed
    11:37:30,238 DEBUG [ServerInfo]     java.ext.dirs: C:\jdk1.6.0_27\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    11:37:30,238 DEBUG [ServerInfo]     java.home: C:\jdk1.6.0_27\jre
    11:37:30,238 DEBUG [ServerInfo]     java.io.tmpdir: C:\Users\g2g\AppData\Local\Temp\
    11:37:30,238 DEBUG [ServerInfo]     java.library.path: C:\jdk1.6.0_27\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;%M2%;%ANT_HOME%/bin;C:\apache-maven-3.0.4\bin;C:\apache-ant-1.8.3\bin;.
    11:37:30,238 DEBUG [ServerInfo]     java.protocol.handler.pkgs: org.jboss.net.protocol|org.jboss.vfs.protocol
    11:37:30,238 DEBUG [ServerInfo]     java.rmi.server.RMIClassLoaderSpi: org.jboss.system.JBossRMIClassLoader
    11:37:30,238 DEBUG [ServerInfo]     java.rmi.server.hostname: 127.0.0.1
    11:37:30,238 DEBUG [ServerInfo]     java.runtime.name: Java(TM) SE Runtime Environment
    11:37:30,238 DEBUG [ServerInfo]     java.runtime.version: 1.6.0_27-b07
    11:37:30,238 DEBUG [ServerInfo]     java.specification.name: Java Platform API Specification
    11:37:30,238 DEBUG [ServerInfo]     java.specification.vendor: Sun Microsystems Inc.
    11:37:30,238 DEBUG [ServerInfo]     java.specification.version: 1.6
    11:37:30,238 DEBUG [ServerInfo]     java.util.logging.manager: org.jboss.logmanager.LogManager
    11:37:30,238 DEBUG [ServerInfo]     java.vendor: Sun Microsystems Inc.
    11:37:30,238 DEBUG [ServerInfo]     java.vendor.url: http://java.sun.com/
    11:37:30,238 DEBUG [ServerInfo]     java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi
    11:37:30,238 DEBUG [ServerInfo]     java.version: 1.6.0_27
    11:37:30,238 DEBUG [ServerInfo]     java.vm.info: mixed mode
    11:37:30,238 DEBUG [ServerInfo]     java.vm.name: Java HotSpot(TM) Server VM
    11:37:30,238 DEBUG [ServerInfo]     java.vm.specification.name: Java Virtual Machine Specification
    11:37:30,238 DEBUG [ServerInfo]     java.vm.specification.vendor: Sun Microsystems Inc.
    11:37:30,238 DEBUG [ServerInfo]     java.vm.specification.version: 1.0
    11:37:30,238 DEBUG [ServerInfo]     java.vm.vendor: Sun Microsystems Inc.
    11:37:30,238 DEBUG [ServerInfo]     java.vm.version: 20.2-b06
    11:37:30,238 DEBUG [ServerInfo]     javax.management.builder.initial: org.jboss.mx.server.MBeanServerBuilderImpl
    11:37:30,238 DEBUG [ServerInfo]     jboss.bind.address: 127.0.0.1
    11:37:30,238 DEBUG [ServerInfo]     jboss.boot.server.log.dir: C:\jboss-6.0.0.Final\server\default\log
    11:37:30,238 DEBUG [ServerInfo]     jboss.bootstrap.home.url: file:/C:/jboss-6.0.0.Final/server/default/conf/
    11:37:30,238 DEBUG [ServerInfo]     jboss.bootstrap.name: bootstrap.xml
    11:37:30,238 DEBUG [ServerInfo]     jboss.bootstrap.url: file:/C:/jboss-6.0.0.Final/server/default/conf/bootstrap.xml
    11:37:30,238 DEBUG [ServerInfo]     jboss.common.base.url: file:/C:/jboss-6.0.0.Final/common/
    11:37:30,238 DEBUG [ServerInfo]     jboss.common.lib.url: file:/C:/jboss-6.0.0.Final/common/lib/
    11:37:30,238 DEBUG [ServerInfo]     jboss.home: C:\jboss-6.0.0.Final
    11:37:30,238 DEBUG [ServerInfo]     jboss.home.dir: C:\jboss-6.0.0.Final
    11:37:30,238 DEBUG [ServerInfo]     jboss.home.url: file:/C:/jboss-6.0.0.Final/
    11:37:30,238 DEBUG [ServerInfo]     jboss.host.name: g2g-pc
    11:37:30,238 DEBUG [ServerInfo]     jboss.lib.url: file:/C:/jboss-6.0.0.Final/lib/
    11:37:30,238 DEBUG [ServerInfo]     jboss.native.dir: C:\jboss-6.0.0.Final\server\default\tmp\native
    11:37:30,238 DEBUG [ServerInfo]     jboss.native.load: false
    11:37:30,238 DEBUG [ServerInfo]     jboss.node.name: g2g-pc
    11:37:30,238 DEBUG [ServerInfo]     jboss.partition.name: DefaultPartition
    11:37:30,238 DEBUG [ServerInfo]     jboss.platform.mbeanserver: true
    11:37:30,238 DEBUG [ServerInfo]     jboss.qualified.host.name: g2g-pc
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.base.dir: C:\jboss-6.0.0.Final\server
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.base.url: file:/C:/jboss-6.0.0.Final/server/
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.config.url: file:/C:/jboss-6.0.0.Final/server/default/conf/
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.data.dir: C:\jboss-6.0.0.Final\server\default\data
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.home.dir: C:\jboss-6.0.0.Final\server\default
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.home.url: file:/C:/jboss-6.0.0.Final/server/default/
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.lib.url: file:/C:/jboss-6.0.0.Final/server/default/lib/
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.log.dir: C:\jboss-6.0.0.Final\server\default\log
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.name: default
    11:37:30,238 DEBUG [ServerInfo]     jboss.server.temp.dir: C:\jboss-6.0.0.Final\server\default\tmp
    11:37:30,238 DEBUG [ServerInfo]     jboss.vfs.forceCopy: true
    11:37:30,238 DEBUG [ServerInfo]     jbossmx.loader.repository.class: org.jboss.mx.loading.UnifiedLoaderRepository3
    11:37:30,238 DEBUG [ServerInfo]     jgroups.bind_addr: 127.0.0.1
    11:37:30,238 DEBUG [ServerInfo]     line.separator: 
    11:37:30,238 DEBUG [ServerInfo]     log4j.defaultInitOverride: true
    11:37:30,238 DEBUG [ServerInfo]     org.jboss.deployers.spi.deployer.matchers.NameIgnoreMechanism: org.jboss.deployers.spi.deployer.helpers.DummyNameIgnoreMechanism
    11:37:30,238 DEBUG [ServerInfo]     org.jboss.logging.Logger.pluginClass: org.jboss.logging.logmanager.LoggerPluginImpl
    11:37:30,238 DEBUG [ServerInfo]     org.jboss.reflect.spi.TypeInfoFactory: org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory
    11:37:30,238 DEBUG [ServerInfo]     org.jboss.resolver.warning: true
    11:37:30,238 DEBUG [ServerInfo]     os.arch: x86
    11:37:30,238 DEBUG [ServerInfo]     os.name: Windows 7
    11:37:30,238 DEBUG [ServerInfo]     os.version: 6.1
    11:37:30,238 DEBUG [ServerInfo]     path.separator: ;
    11:37:30,238 DEBUG [ServerInfo]     program.name: run.bat
    11:37:30,238 DEBUG [ServerInfo]     sun.arch.data.model: 32
    11:37:30,238 DEBUG [ServerInfo]     sun.boot.class.path: C:\jboss-6.0.0.Final\lib\endorsed\activation.jar;C:\jboss-6.0.0.Final\lib\endorsed\jboss-annotations-api_1.1_spec.jar;C:\jboss-6.0.0.Final\lib\endorsed\jboss-jaxb-api_2.2_spec.jar;C:\jboss-6.0.0.Final\lib\endorsed\jboss-jaxws-api_2.2_spec.jar;C:\jboss-6.0.0.Final\lib\endorsed\jbossws-cxf-factories.jar;C:\jboss-6.0.0.Final\lib\endorsed\stax-api.jar;C:\jdk1.6.0_27\jre\lib\resources.jar;C:\jdk1.6.0_27\jre\lib\rt.jar;C:\jdk1.6.0_27\jre\lib\sunrsasign.jar;C:\jdk1.6.0_27\jre\lib\jsse.jar;C:\jdk1.6.0_27\jre\lib\jce.jar;C:\jdk1.6.0_27\jre\lib\charsets.jar;C:\jdk1.6.0_27\jre\lib\modules\jdk.boot.jar;C:\jdk1.6.0_27\jre\classes
    11:37:30,254 DEBUG [ServerInfo]     sun.boot.library.path: C:\jdk1.6.0_27\jre\bin
    11:37:30,254 DEBUG [ServerInfo]     sun.cpu.endian: little
    11:37:30,254 DEBUG [ServerInfo]     sun.cpu.isalist: pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    11:37:30,254 DEBUG [ServerInfo]     sun.desktop: windows
    11:37:30,254 DEBUG [ServerInfo]     sun.io.unicode.encoding: UnicodeLittle
    11:37:30,254 DEBUG [ServerInfo]     sun.java.command: org.jboss.Main
    11:37:30,254 DEBUG [ServerInfo]     sun.java.launcher: SUN_STANDARD
    11:37:30,254 DEBUG [ServerInfo]     sun.jnu.encoding: MS874
    11:37:30,254 DEBUG [ServerInfo]     sun.management.compiler: HotSpot Tiered Compilers
    11:37:30,254 DEBUG [ServerInfo]     sun.os.patch.level: 
    11:37:30,254 DEBUG [ServerInfo]     sun.rmi.dgc.client.gcInterval: 3600000
    11:37:30,254 DEBUG [ServerInfo]     sun.rmi.dgc.server.gcInterval: 3600000
    11:37:30,254 DEBUG [ServerInfo]     user.country: US
    11:37:30,254 DEBUG [ServerInfo]     user.dir: C:\jboss-6.0.0.Final\bin
    11:37:30,254 DEBUG [ServerInfo]     user.home: C:\Users\g2g
    11:37:30,254 DEBUG [ServerInfo]     user.language: en
    11:37:30,254 DEBUG [ServerInfo]     user.name: g2g
    11:37:30,254 DEBUG [ServerInfo]     user.timezone: Asia/Bangkok
    11:37:30,254 DEBUG [ServerInfo]     user.variant: 
    11:37:30,254 DEBUG [ServerInfo]     xb.builder.repeatableParticleHandlers: false
    11:37:30,254 DEBUG [ServerInfo]     xb.builder.useUnorderedSequence: true
    11:37:30,285 INFO  [JMXKernel] Legacy JMX core initialized
    11:37:42,123 INFO  [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA
    11:37:42,778 INFO  [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
    11:37:46,224 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
    11:37:48,985 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
    11:37:49,188 INFO  [JMXConnector] starting JMXConnector on host 127.0.0.1:1090
    11:37:49,375 INFO  [MailService] Mail Service bound to java:/Mail
    11:37:50,140 INFO  [HornetQServerImpl] live server is starting..
    11:37:50,202 INFO  [JournalStorageManager] Using NIO Journal
    11:37:50,249 WARNING [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
    11:37:51,029 INFO  [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5455 for CORE protocol
    11:37:51,029 INFO  [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5445 for CORE protocol
    11:37:51,029 INFO  [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started
    11:37:51,076 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
    11:37:51,232 INFO  [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
    11:37:51,232 INFO  [arjuna] ARJUNA-12324 Start RecoveryActivators
    11:37:51,247 INFO  [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at Wed, 9 May 2012 11:37:51
    11:37:51,325 INFO  [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712
    11:37:51,325 INFO  [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712
    11:37:51,325 INFO  [jbossatx] ARJUNA-32013 Starting transaction recovery manager
    11:37:51,341 INFO  [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
    11:37:51,341 INFO  [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713
    11:37:51,372 INFO  [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
    11:37:51,403 INFO  [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
    11:37:51,466 INFO  [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.
    11:37:51,715 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk1.6.0_27\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;%M2%;%ANT_HOME%/bin;C:\apache-maven-3.0.4\bin;C:\apache-ant-1.8.3\bin;.
    11:37:51,840 INFO  [ModClusterService] Initializing mod_cluster 1.1.0.Final
    11:37:51,856 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
    11:37:52,230 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.Final/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
    11:37:52,261 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.Final/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
    11:37:52,261 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.Final/server/default/deploy/jms-ra.rar/META-INF/ra.xml
    11:37:52,293 INFO  [HornetQResourceAdapter] HornetQ resource adaptor started
    11:37:52,293 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.Final/server/default/deploy/mail-ra.rar/META-INF/ra.xml
    11:37:52,324 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.Final/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
    11:37:52,464 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2
    11:37:52,495 INFO  [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
    11:37:52,495 INFO  [QuartzScheduler] Quartz Scheduler v.1.8.3 created.
    11:37:52,495 INFO  [RAMJobStore] RAMJobStore initialized.
    11:37:52,495 INFO  [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'
      Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
      NOT STARTED.
      Currently in standby mode.
      Number of jobs executed: 0
      Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
      Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
    11:37:52,495 INFO  [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.
    11:37:52,495 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.8.3
    11:37:52,495 INFO  [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.
    11:37:53,026 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
    11:37:53,291 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
    11:37:53,416 INFO  [xnio] XNIO Version 2.1.0.CR2
    11:37:53,431 INFO  [nio] XNIO NIO Implementation Version 2.1.0.CR2
    11:37:53,728 INFO  [remoting] JBoss Remoting version 3.1.0.Beta2
    11:37:53,806 INFO  [TomcatDeployment] deploy, ctxPath=/
    11:37:53,853 INFO  [service] Removing bootstrap log handlers
    
    

     

    Here it is.

    Thanks,

  • 7. Re: Problems running helloworld on ESB
    shadowman Newbie
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Users\g2g>cd\
    C:\>cd jbossesb-4.11/install
    C:\jbossesb-4.11\install>ant deploy
    Buildfile: C:\jbossesb-4.11\install\build.xml
    check.deploy.props:
    dependencies.source:
    dependencies.jbossesb:
    dependencies:
    init.bindings.props:
    undeploy.bindings:
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\conf\bindingservice
    .beans\META-INF
    undeploy.jbossas5:
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deployers\esb.dep
    loyer
    undeploy.jbossas6:
    undeploy:
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\jbossesb-r
    egistry.sar
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\jbossesb.e
    sb
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\jbpm.esb
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\jbrules.es
    b
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\slsb.esb
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\smooks.esb
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\spring.esb
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\soap.esb
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\jbpm5.esb
       [delete] Deleting directory C:\jboss-6.0.0.Final\server\all\deploy\soapui-cli
    ent.sar
       [delete] Deleting: C:\jboss-6.0.0.Final\server\all\deploy\contract.war
    jms.config.check:
    jbmq.config:
    jbm.config:
    hornetq.config:
    jms.config:
    internal.deploy:
    internal.deploy.jbossas5.only:
    internal.deploy.jbossas5:
         [echo] Deploy to JBossAS5
        [mkdir] Created dir: C:\jboss-6.0.0.Final\server\all\deployers\esb.deployer
         [copy] Copying 36 files to C:\jboss-6.0.0.Final\server\all\deployers\esb.de
    ployer\lib
         [copy] Copying 2 files to C:\jboss-6.0.0.Final\server\all\deployers\esb.dep
    loyer\META-INF
         [copy] Copying 4 files to C:\jboss-6.0.0.Final\server\all\deployers\esb.dep
    loyer
         [copy] Copying 8 files to C:\jboss-6.0.0.Final\server\all\lib
         [copy] Copying 5 files to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb.s
    ar
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb.sa
    r\META-INF
         [copy] Copying 20 files to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb-
    registry.sar
         [copy] Copying 2 files to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb-r
    egistry.sar\juddi_config
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb-re
    gistry.sar\META-INF
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb-re
    gistry.sar\META-INF
    deployEsbModules:
    deployEsbModule:
         [echo] Deploying ESB jbossesb.esb to /jboss-6.0.0.Final/server/all/deploy
         [copy] Copying 29 files to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb.
    esb
    transformDeployment:
         [xslt] Processing C:\jboss-6.0.0.Final\server\all\deploy\jbossesb.esb\META-
    INF\deployment.xml to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb.esb\META-I
    NF\deployment.xml.transformed
         [xslt] Loading stylesheet C:\jbossesb-4.11\install\deployment-xml.xsl
       [delete] Deleting: C:\jboss-6.0.0.Final\server\all\deploy\jbossesb.esb\META-I
    NF\deployment.xml
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb.esb
    \META-INF
    deployEsbModule:
         [echo] Deploying ESB jbpm.esb to /jboss-6.0.0.Final/server/all/deploy
         [copy] Copying 67 files to C:\jboss-6.0.0.Final\server\all\deploy\jbpm.esb
    transformDeployment:
         [xslt] Processing C:\jboss-6.0.0.Final\server\all\deploy\jbpm.esb\META-INF\
    deployment.xml to C:\jboss-6.0.0.Final\server\all\deploy\jbpm.esb\META-INF\deplo
    yment.xml.transformed
         [xslt] Loading stylesheet C:\jbossesb-4.11\install\deployment-xml.xsl
       [delete] Deleting: C:\jboss-6.0.0.Final\server\all\deploy\jbpm.esb\META-INF\d
    eployment.xml
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\deploy\jbpm.esb\MET
    A-INF
    deployEsbModule:
         [echo] Deploying ESB jbrules.esb to /jboss-6.0.0.Final/server/all/deploy
         [copy] Copying 19 files to C:\jboss-6.0.0.Final\server\all\deploy\jbrules.e
    sb
    transformDeployment:
         [xslt] Processing C:\jboss-6.0.0.Final\server\all\deploy\jbrules.esb\META-I
    NF\deployment.xml to C:\jboss-6.0.0.Final\server\all\deploy\jbrules.esb\META-INF
    \deployment.xml.transformed
         [xslt] Loading stylesheet C:\jbossesb-4.11\install\deployment-xml.xsl
       [delete] Deleting: C:\jboss-6.0.0.Final\server\all\deploy\jbrules.esb\META-IN
    F\deployment.xml
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\deploy\jbrules.esb\
    META-INF
    deployEsbModule:
         [echo] Deploying ESB smooks.esb to /jboss-6.0.0.Final/server/all/deploy
         [copy] Copying 6 files to C:\jboss-6.0.0.Final\server\all\deploy\smooks.esb
    
    transformDeployment:
         [xslt] Processing C:\jboss-6.0.0.Final\server\all\deploy\smooks.esb\META-IN
    F\deployment.xml to C:\jboss-6.0.0.Final\server\all\deploy\smooks.esb\META-INF\d
    eployment.xml.transformed
         [xslt] Loading stylesheet C:\jbossesb-4.11\install\deployment-xml.xsl
       [delete] Deleting: C:\jboss-6.0.0.Final\server\all\deploy\smooks.esb\META-INF
    \deployment.xml
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\deploy\smooks.esb\M
    ETA-INF
    deployEsbModule:
         [echo] Deploying ESB spring.esb to /jboss-6.0.0.Final/server/all/deploy
         [copy] Copying 27 files to C:\jboss-6.0.0.Final\server\all\deploy\spring.es
    b
    transformDeployment:
         [xslt] Processing C:\jboss-6.0.0.Final\server\all\deploy\spring.esb\META-IN
    F\deployment.xml to C:\jboss-6.0.0.Final\server\all\deploy\spring.esb\META-INF\d
    eployment.xml.transformed
         [xslt] Loading stylesheet C:\jbossesb-4.11\install\deployment-xml.xsl
       [delete] Deleting: C:\jboss-6.0.0.Final\server\all\deploy\spring.esb\META-INF
    \deployment.xml
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\deploy\spring.esb\M
    ETA-INF
    deploySoapModule:
         [echo] Deploying ESB soap.esb to /jboss-6.0.0.Final/server/all/deploy
         [copy] Copying 15 files to C:\jboss-6.0.0.Final\server\all\deploy\soap.esb
    transformDeployment:
         [xslt] Processing C:\jboss-6.0.0.Final\server\all\deploy\soap.esb\META-INF\
    deployment.xml to C:\jboss-6.0.0.Final\server\all\deploy\soap.esb\META-INF\deplo
    yment.xml.transformed
         [xslt] Loading stylesheet C:\jbossesb-4.11\install\deployment-xml.xsl
       [delete] Deleting: C:\jboss-6.0.0.Final\server\all\deploy\soap.esb\META-INF\d
    eployment.xml
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\deploy\soap.esb\MET
    A-INF
    deployEsbModule:
         [echo] Deploying ESB slsb.esb to /jboss-6.0.0.Final/server/all/deploy
         [copy] Copying 3 files to C:\jboss-6.0.0.Final\server\all\deploy\slsb.esb
    transformDeployment:
         [xslt] Processing C:\jboss-6.0.0.Final\server\all\deploy\slsb.esb\META-INF\
    deployment.xml to C:\jboss-6.0.0.Final\server\all\deploy\slsb.esb\META-INF\deplo
    yment.xml.transformed
         [xslt] Loading stylesheet C:\jbossesb-4.11\install\deployment-xml.xsl
       [delete] Deleting: C:\jboss-6.0.0.Final\server\all\deploy\slsb.esb\META-INF\d
    eployment.xml
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\deploy\slsb.esb\MET
    A-INF
    deployEsbModule:
         [echo] Deploying ESB jbpm5.esb to /jboss-6.0.0.Final/server/all/deploy
         [copy] Copying 15 files to C:\jboss-6.0.0.Final\server\all\deploy\jbpm5.esb
    
    transformDeployment:
         [xslt] Processing C:\jboss-6.0.0.Final\server\all\deploy\jbpm5.esb\META-INF
    \deployment.xml to C:\jboss-6.0.0.Final\server\all\deploy\jbpm5.esb\META-INF\dep
    loyment.xml.transformed
         [xslt] Loading stylesheet C:\jbossesb-4.11\install\deployment-xml.xsl
       [delete] Deleting: C:\jboss-6.0.0.Final\server\all\deploy\jbpm5.esb\META-INF\
    deployment.xml
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\deploy\jbpm5.esb\ME
    TA-INF
         [copy] Copying 24 files to C:\jboss-6.0.0.Final\server\all\deploy\soapui-cl
    ient.sar
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deploy\soapui-clie
    nt.sar\META-INF
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deploy
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\lib
    replace:
    internal.deploy.jbossas6:
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deployers\esb.depl
    oyer\META-INF
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deployers\esb.depl
    oyer\lib
         [move] Moving 6 files to C:\jboss-6.0.0.Final\server\all\deploy
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deploy\jbpm.esb
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deployers\jbossws.
    deployer
         [copy] Copying 1 file to C:\jboss-6.0.0.Final\server\all\deploy\jbossesb-re
    gistry.sar\juddi_config\META-INF
    install.base.console:
    patch.as5.console:
    deploy.console:
    deploy.bindings.as4:
    deploy.bindings.as5:
         [xslt] Processing C:\jboss-6.0.0.Final\server\all\conf\bindingservice.beans
    \META-INF\bindings-jboss-beans.xml to C:\jboss-6.0.0.Final\server\all\conf\bindi
    ngservice.beans\META-INF\bindings-jboss-beans.xml.tmp
         [xslt] Loading stylesheet C:\jbossesb-4.11\install\bindings-as5.xslt
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\conf\bindingservice
    .beans\META-INF
         [move] Moving 1 file to C:\jboss-6.0.0.Final\server\all\conf\bindingservice
    .beans\META-INF
    deploy.bindings:
    update.modfilter:
    apply.modfilter.replace:
    deploy:
    BUILD SUCCESSFUL
    Total time: 5 seconds
    C:\jbossesb-4.11\install>
    
    

    Here is from JBoss ESB

     

    And this is when I use ant runtest (in the second window) after using ant deploy in the first window.

    C:\Users\g2g>cd\
    C:\>cd jbossesb-4.11/samples/quickstarts/helloworld
    C:\jbossesb-4.11\samples\quickstarts\helloworld>ant runtest
    Buildfile: C:\jbossesb-4.11\samples\quickstarts\helloworld\build.xml
         [echo] product.dir=C:\jbossesb-4.11
         [echo] default
    check-jbossesb-dist:
    qslib-dependencies:
    non-qslib-dependencies:
    jbossesb-quickstart-override:
    jbossesb-source-dependencies:
    jbossesb-server-dependencies:
    check-as-version:
         [echo] product.dir=C:\jbossesb-4.11
         [echo] server.server=C:\jboss-6.0.0.Final\server\all
    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:\jbossesb-4.11\samples\quickstarts\conf\base-build.xml:465: warnin
    g: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set t
    o false for repeatable builds
        [javac] C:\jbossesb-4.11\samples\quickstarts\conf\base-build.xml:470: warnin
    g: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set t
    o false for repeatable builds
    runtest:
         [echo] Runs Test JMS Sender
         [java] log4j:WARN No appenders could be found for logger (org.jnp.interface
    s.TimedSocketFactory).
         [java] log4j:WARN Please initialize the log4j system properly.
         [java] Exception in thread "main" javax.naming.NameNotFoundException: quick
    start_helloworld_Request_gw 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 org.jnp.server.NamingServer.lookup(NamingServer.java:399)
         [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:662)
         [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
    8)
         [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:68
    8)
         [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
         [java]     at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
    essage.setupConnection(SendJMSMessage.java:55)
         [java]     at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
    essage.main(SendJMSMessage.java:81)
    BUILD FAILED
    C:\jbossesb-4.11\samples\quickstarts\helloworld\build.xml:15: Java returned: 1
    Total time: 6 seconds
    C:\jbossesb-4.11\samples\quickstarts\helloworld>
    
    
  • 8. Re: Problems running helloworld on ESB
    Len DiMaggio Apprentice

    Hi - it looks like you installed the ESB into the "all" server profile.

     

    When you started the server, did you say "run.bat -c all" or "run.bat"?  (This second command will use the "default" server profile.)

  • 9. Re: Problems running helloworld on ESB
    shadowman Newbie

    Thanks Len

     

    I just doubble click "run.bat" in jboss-6.0.0.Final/bin window.

    and use "ant deploy" in jbossesb-4.11/install in a command shell.

     

    Just now I tried using "run.bat -c all" in command shell, for jboss-6.0.0.Final the build failed.

     

    I can see that my set up was for "all" profile but I start AS under default profile.

    How do I fix it? Can I just change the properties for the esb?

  • 10. Re: Problems running helloworld on ESB
    Len DiMaggio Apprentice

    Hi!

     

    You can safely use either the all or defualt profiles. They both work.   ;-)

     

    When you say: Just now I tried using "run.bat -c all" in command shell, for jboss-6.0.0.Final the build failed.

     

    What error did you see?

  • 11. Re: Problems running helloworld on ESB
    Len DiMaggio Apprentice

    What you need to do is:

     

    1) Select the server profile that you want to use

    2) Deploy JBossESB to that profile (look for errors in the ant ouput)

    3) Start the server, running that profile (look for errors in the server.log)

    4) Configure the quickstarts to use that profile

    5) ant deploy and ant runtest a quickstart (look for errors in the ant ouput, and in the server.log)

     

    Give it a try and let me know what you see!

  • 12. Re: Problems running helloworld on ESB
    shadowman Newbie

    Hello Len.

    Thanks for your help.

    I've got it working finally.

    Cheers,

  • 13. Re: Problems running helloworld on ESB
    Len DiMaggio Apprentice

    Great - glad to hear it!  What was the last blocking issue?

  • 14. Re: Problems running helloworld on ESB
    shadowman Newbie

    1. The different profile

    2. Initially we started the AS before the ESB

     

    Thanks.