You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Gael Jeanneret <ga...@siemens.com> on 2006/03/29 13:10:56 UTC

Exception thrown when using ServiceMix AntTasks

Hello

Im trying to build an Ant Script for the JBI Administration. Therefore I use
the Ant Task, which are specified by the JBI JSR. My environment consists of
JBoss and ServiceMix 2.0.2 on Windows XP. Interestingly I am able to connect
and see the MBeans of ServiceMix with the MC4J JMX Console.

When I run the script (see below) i always get an exception (see also
below):

Could you tell me why I get the exception, do am I using the AntTask wrong?
I further have the impression that the attributes of the AnTask i am setting
within the Ant Script are ignored.

The test script:

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="help" name="jbi_admin" >
    <property name="jbi.server-protocol" value="rmi"/>
    <property name="jbi.container-name" value="defaultJBI"/>
    <property name="jbi.jmx-domain-name" value="org.servicemix"/>
    <property name="jbi.jndi-name" value="jmx/rmi/RMIAdaptor"/>
    <property name="jbi.username" value=""/>
    <property name="jbi.password" value=""/>
    <property name="jbi.host" value="localhost"/>
    <property name="jbi.port" value="1099"/>
    <property name="jbi.fail-on-error" value="true"/>
    
    <!-- JBI Component Task Defintiions -->
    <taskdef name="jbi-install-component"
classname="org.servicemix.jbi.management.task.InstallComponentTask"/>

    <!-- JBI Component Targets -->
    <target name="install-component" if="jbi.file"
        description="Install JBI Component">
        
        <echo message="JBI Admin Properties:" /> 
        <echo message="   serverProtocol=${jbi.server-protocol}" /> 
        <echo message="   containerName=${jbi.container-name}" /> 
        <echo message="   jmxDomainName=${jbi.jmx-domain-name}" /> 
        <echo message="   jndiPath=${jbi.jndi-name}" /> 
        <echo message="   username=${jbi.username}" /> 
        <echo message="   passwd=${jbi.password}" /> 
        <echo message="   namingHost=${jbi.host}" /> 
        <echo message="   namingPort=${jbi.port}" /> 
        <echo message="   failOnError=${jbi.fail-on-error}" />
        <echo message="JBI Install Component Parameters:" /> 
        <echo message="   file=${jbi.file}" />
        
        <jbi-install-component 
	    serverProtocol="${jbi.server-protocol}" 
	    containerName="${jbi.container-name}" 
	    jmxDomainName="${jbi.jmx-domain-name}" 
	    username="${jbi.username}"
	    passwd="${jbi.password}" 
	    namingHost="${jbi.host}" 
	    namingPort="${jbi.port}" 
	    failOnError="${jbi.fail-on-error}"
	    file="${jbi.file}"/> 
    </target>
</project>

The Command:
ant -l log.txt -f jbi_admin_post.xml install-component -Djbi.file=""

The Output:

install-component:
     [echo] JBI Admin Properties:
     [echo]    serverProtocol=rmi
     [echo]    containerName=defaultJBI
     [echo]    jmxDomainName=org.servicemix
     [echo]    jndiPath=jmx/rmi/RMIAdaptor
     [echo]    username=
     [echo]    passwd=
     [echo]    namingHost=localhost
     [echo]    namingPort=1099
     [echo]    failOnError=true
     [echo] JBI Install Component Parameters:
     [echo]    file=
[jbi-install-component] 29.03.2006 13:05:55
org.servicemix.jbi.management.task.JbiTask init
[jbi-install-component] SCHWERWIEGEND: Failed to initialize the JbiTask
[jbi-install-component] java.io.IOException: Failed to retrieve RMIServer
stub: javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
[jbi-install-component] 	at
javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
[jbi-install-component] 	at
javax.management.remote.JMXConnectorFactory.connect(Unknown Source)
[jbi-install-component] 	at
javax.management.remote.JMXConnectorFactory.connect(Unknown Source)
[jbi-install-component] 	at
org.servicemix.jbi.management.task.JbiTask.getJMXConnector(JbiTask.java:87)
[jbi-install-component] 	at
org.servicemix.jbi.management.task.JbiTask.init(JbiTask.java:97)
[jbi-install-component] 	at
org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:186)
[jbi-install-component] 	at
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:388)
[jbi-install-component] 	at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
[jbi-install-component] 	at org.apache.tools.ant.Task.perform(Task.java:363)
[jbi-install-component] 	at
org.apache.tools.ant.Target.execute(Target.java:341)
[jbi-install-component] 	at
org.apache.tools.ant.Target.performTasks(Target.java:369)
[jbi-install-component] 	at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[jbi-install-component] 	at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[jbi-install-component] 	at
org.apache.tools.ant.Main.runBuild(Main.java:673)
[jbi-install-component] 	at
org.apache.tools.ant.Main.startAnt(Main.java:188)
[jbi-install-component] 	at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[jbi-install-component] 	at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[jbi-install-component] Caused by: javax.naming.CommunicationException [Root
exception is java.rmi.ConnectIOException: non-JRMP server at remote
endpoint]
[jbi-install-component] 	at
com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)
[jbi-install-component] 	at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
[jbi-install-component] 	at javax.naming.InitialContext.lookup(Unknown
Source)
[jbi-install-component] 	at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)
[jbi-install-component] 	at
javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown Source)
[jbi-install-component] 	... 17 more
[jbi-install-component] Caused by: java.rmi.ConnectIOException: non-JRMP
server at remote endpoint
[jbi-install-component] 	at
sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
[jbi-install-component] 	at
sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
[jbi-install-component] 	at sun.rmi.server.UnicastRef.newCall(Unknown
Source)
[jbi-install-component] 	at
sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
[jbi-install-component] 	... 22 more

BUILD FAILED
D:\Data\Chajega0\05_Workspace\LogicBlaze.ServiceMix.JBI Admin Ant
Scripts\jbi_admin_post.xml:42: java.io.IOException: Failed to retrieve
RMIServer stub: javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: non-JRMP server at remote endpoint]

Total time: 0 seconds
--
View this message in context: http://www.nabble.com/Exception-thrown-when-using-ServiceMix-AntTasks-t1361538.html#a3647991
Sent from the ServiceMix - User forum at Nabble.com.


Re: Exception thrown when using ServiceMix AntTasks

Posted by Guillaume Nodet <gn...@gmail.com>.
Unfortuately, the jboss integration can not be shipped as part of the
Apache ServiceMix distribution, since there are some LGPL dependencies
that are incompatible with the Apache policies.  The jboss integration
code is available at
http://cvs.codehaus.org/viewrep/servicemix/trunk/tooling/jboss-deployer
but may need some work to be upgrade to 3.0-SNAPSHOT.

Cheers,
Guillaume Nodet

On 3/29/06, Gael Jeanneret <ga...@siemens.com> wrote:
>
> Hello Guillaume
>
> I followed your hints but encountered another problem: the V3.0 snapshot
> does not include the JBoss Deployer for this ServiceMix snapshot
> (jboss-deplyoer-v3.0.sar).
>
> Are there any possiblilities to integrate ServiceMix into JBoss without
> Jboss Deployer or is the Jboss Deployer for the snapshot available, but I
> just didn't fint it?
>
> Best Regards
> Gaël Jeanneret
> --
> View this message in context: http://www.nabble.com/Exception-thrown-when-using-ServiceMix-AntTasks-t1361538.html#a3650718
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Exception thrown when using ServiceMix AntTasks

Posted by Gael Jeanneret <ga...@siemens.com>.
Hello Guillaume

I followed your hints but encountered another problem: the V3.0 snapshot
does not include the JBoss Deployer for this ServiceMix snapshot
(jboss-deplyoer-v3.0.sar).

Are there any possiblilities to integrate ServiceMix into JBoss without
Jboss Deployer or is the Jboss Deployer for the snapshot available, but I
just didn't fint it?

Best Regards
Gaël Jeanneret
--
View this message in context: http://www.nabble.com/Exception-thrown-when-using-ServiceMix-AntTasks-t1361538.html#a3650718
Sent from the ServiceMix - User forum at Nabble.com.


Re: Exception thrown when using ServiceMix AntTasks

Posted by yusef <yu...@acecomm.com>.
I call this ant task from within my own build.xml and classpath is set there.
servicemix jar files are in the system classpath. so is the commons-logging
jar file. (so they are in ant's classpath when it runs).

I used verbose option of ant to get this output. it says calssNotFound for
LogFactory, but as I said it's in the system classpath.


BUILD FAILED
The following error occurred while executing this line:
Error accessing ServiceMix administration

        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
        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.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Caused by: C:\yusef\workspace\std-testcomp\src\ant\jbi-tasks.xml:29: 
Error accessing ServiceMix administration
        at
org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.java:277)
        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.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
        ... 12 more

Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
        at
org.apache.servicemix.jbi.management.ManagementContext.<clinit>(ManagementContext.java:51)
        at
org.apache.servicemix.jbi.management.task.JbiTask.getObjectName(JbiTask.java:118)
        at
org.apache.servicemix.jbi.management.task.JbiTask.getAdminCommandsService(JbiTask.java:128)
        at
org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.java:273)
        ... 20 more

--- Nested Exception ---
C:\yusef\workspace\std-testcomp\src\ant\jbi-tasks.xml:29: Error accessing
ServiceMix administration
        at
org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.java:277)
        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.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
        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.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory

        at
org.apache.servicemix.jbi.management.ManagementContext.<clinit>(ManagementContext.java:51)
        at
org.apache.servicemix.jbi.management.task.JbiTask.getObjectName(JbiTask.java:118)
        at
org.apache.servicemix.jbi.management.task.JbiTask.getAdminCommandsService(JbiTask.java:128)
        at
org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.java:273)
        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.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
        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.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

 

gnodet wrote:
> 
> Wondering if this is due to a classNotFoundException.
> Do you run the script from the ant dir ?
> The classpath defined in the script assumes so because it looks for jars
> in
> the ../lib directory.
> 
> Cheers,
> Guillaume Nodet
> 
> On 5/23/06, yusef <yu...@acecomm.com> wrote:
>>
>>
>> Hi ,
>> I saw Guillaume's reply on this list, suggesting to use version 3.0 and
>> its
>> ant build file.
>> I have the same problem with Ant task to install a component.
>>
>> I am using ServiceMix 3.0-SNAPSHOT and the Ant build file that is
>> provided
>> with this version.
>> when I run the Ant task to install my component I get this output:
>>
>> install-component:
>>      [echo]  install-component
>>      [echo]  Installing a service engine or binding component.
>>      [echo]     host=localhost
>>      [echo]     port=1099
>>      [echo]     file=../build/dist/mycomponent.jar
>> [jbi-install-component] Error accessing ServiceMix administration:
>> org/apache/commons/logging/LogFactory
>>
>> BUILD FAILED
>> The following error occurred while executing this line:
>> Error accessing ServiceMix administration
>>
>> ServiceMix is running fine, and I could connect to it using MC4J/JConsole
>> JMX consoles.
>>
>> this is the build file:
>>         <!-- install-component task -->
>>         <target name="install-component"
>>                 description="Installs service engine or binding component
>> with
>> installation parameters.">
>>                 <echo message=" install-component"/>
>>                 <echo message=" Installing a service engine or binding
>> component."/>
>>                 <echo message="    host=${sm.host}"/>
>>                 <echo message="    port=${sm.port}"/>
>>                 <echo message="    file=${sm.install.file}"/>
>>
>>                 <jbi-install-component
>>                         username="${sm.username}"
>>                         password="${sm.password}"
>>                         host="${sm.host}"
>>                         file="${sm.install.file}"/>
>>         </target>
>>
>> the value for username and password is default (empty string).
>>
>> Any help is appreciated.
>>
>> -- Yusef
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Exception+thrown+when+using+ServiceMix+AntTasks-t1361538.html#a4530009
>> Sent from the ServiceMix - User forum at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 
--
View this message in context: http://www.nabble.com/Exception+thrown+when+using+ServiceMix+AntTasks-t1361538.html#a4530877
Sent from the ServiceMix - User forum at Nabble.com.


Re: Exception thrown when using ServiceMix AntTasks

Posted by Guillaume Nodet <gn...@gmail.com>.
Wondering if this is due to a classNotFoundException.
Do you run the script from the ant dir ?
The classpath defined in the script assumes so because it looks for jars in
the ../lib directory.

Cheers,
Guillaume Nodet

On 5/23/06, yusef <yu...@acecomm.com> wrote:
>
>
> Hi ,
> I saw Guillaume's reply on this list, suggesting to use version 3.0 and
> its
> ant build file.
> I have the same problem with Ant task to install a component.
>
> I am using ServiceMix 3.0-SNAPSHOT and the Ant build file that is provided
> with this version.
> when I run the Ant task to install my component I get this output:
>
> install-component:
>      [echo]  install-component
>      [echo]  Installing a service engine or binding component.
>      [echo]     host=localhost
>      [echo]     port=1099
>      [echo]     file=../build/dist/mycomponent.jar
> [jbi-install-component] Error accessing ServiceMix administration:
> org/apache/commons/logging/LogFactory
>
> BUILD FAILED
> The following error occurred while executing this line:
> Error accessing ServiceMix administration
>
> ServiceMix is running fine, and I could connect to it using MC4J/JConsole
> JMX consoles.
>
> this is the build file:
>         <!-- install-component task -->
>         <target name="install-component"
>                 description="Installs service engine or binding component
> with
> installation parameters.">
>                 <echo message=" install-component"/>
>                 <echo message=" Installing a service engine or binding
> component."/>
>                 <echo message="    host=${sm.host}"/>
>                 <echo message="    port=${sm.port}"/>
>                 <echo message="    file=${sm.install.file}"/>
>
>                 <jbi-install-component
>                         username="${sm.username}"
>                         password="${sm.password}"
>                         host="${sm.host}"
>                         file="${sm.install.file}"/>
>         </target>
>
> the value for username and password is default (empty string).
>
> Any help is appreciated.
>
> -- Yusef
>
>
> --
> View this message in context:
> http://www.nabble.com/Exception+thrown+when+using+ServiceMix+AntTasks-t1361538.html#a4530009
> Sent from the ServiceMix - User forum at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet

Re: Exception thrown when using ServiceMix AntTasks

Posted by yusef <yu...@acecomm.com>.
Hi ,
I saw Guillaume's reply on this list, suggesting to use version 3.0 and its
ant build file. 
I have the same problem with Ant task to install a component. 

I am using ServiceMix 3.0-SNAPSHOT and the Ant build file that is provided
with this version. 
when I run the Ant task to install my component I get this output:

install-component:
     [echo]  install-component
     [echo]  Installing a service engine or binding component.
     [echo]     host=localhost
     [echo]     port=1099
     [echo]     file=../build/dist/mycomponent.jar
[jbi-install-component] Error accessing ServiceMix administration:
org/apache/commons/logging/LogFactory

BUILD FAILED
The following error occurred while executing this line:
Error accessing ServiceMix administration

ServiceMix is running fine, and I could connect to it using MC4J/JConsole
JMX consoles.

this is the build file: 
	<!-- install-component task -->
	<target name="install-component"
		description="Installs service engine or binding component with
installation parameters.">
		<echo message=" install-component"/>
		<echo message=" Installing a service engine or binding component."/>
		<echo message="    host=${sm.host}"/>
		<echo message="    port=${sm.port}"/>
		<echo message="    file=${sm.install.file}"/>

		<jbi-install-component 
			username="${sm.username}"
			password="${sm.password}" 
			host="${sm.host}"
			file="${sm.install.file}"/>
	</target>

the value for username and password is default (empty string).

Any help is appreciated.

-- Yusef


--
View this message in context: http://www.nabble.com/Exception+thrown+when+using+ServiceMix+AntTasks-t1361538.html#a4530009
Sent from the ServiceMix - User forum at Nabble.com.


Re: Exception thrown when using ServiceMix AntTasks

Posted by Guillaume Nodet <gn...@gmail.com>.
Could you try using ServiceMix 3.0-SNAPSHOT ?
The ant tasks have been reworked to be fully jbi compliant and the
distribution contains a ready to use ant file :)

Cheers,
Guillaume Nodet

On 3/29/06, Gael Jeanneret <ga...@siemens.com> wrote:
>
> Hello
>
> Im trying to build an Ant Script for the JBI Administration. Therefore I use
> the Ant Task, which are specified by the JBI JSR. My environment consists of
> JBoss and ServiceMix 2.0.2 on Windows XP. Interestingly I am able to connect
> and see the MBeans of ServiceMix with the MC4J JMX Console.
>
> When I run the script (see below) i always get an exception (see also
> below):
>
> Could you tell me why I get the exception, do am I using the AntTask wrong?
> I further have the impression that the attributes of the AnTask i am setting
> within the Ant Script are ignored.
>
> The test script:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project basedir="." default="help" name="jbi_admin" >
>     <property name="jbi.server-protocol" value="rmi"/>
>     <property name="jbi.container-name" value="defaultJBI"/>
>     <property name="jbi.jmx-domain-name" value="org.servicemix"/>
>     <property name="jbi.jndi-name" value="jmx/rmi/RMIAdaptor"/>
>     <property name="jbi.username" value=""/>
>     <property name="jbi.password" value=""/>
>     <property name="jbi.host" value="localhost"/>
>     <property name="jbi.port" value="1099"/>
>     <property name="jbi.fail-on-error" value="true"/>
>
>     <!-- JBI Component Task Defintiions -->
>     <taskdef name="jbi-install-component"
> classname="org.servicemix.jbi.management.task.InstallComponentTask"/>
>
>     <!-- JBI Component Targets -->
>     <target name="install-component" if="jbi.file"
>         description="Install JBI Component">
>
>         <echo message="JBI Admin Properties:" />
>         <echo message="   serverProtocol=${jbi.server-protocol}" />
>         <echo message="   containerName=${jbi.container-name}" />
>         <echo message="   jmxDomainName=${jbi.jmx-domain-name}" />
>         <echo message="   jndiPath=${jbi.jndi-name}" />
>         <echo message="   username=${jbi.username}" />
>         <echo message="   passwd=${jbi.password}" />
>         <echo message="   namingHost=${jbi.host}" />
>         <echo message="   namingPort=${jbi.port}" />
>         <echo message="   failOnError=${jbi.fail-on-error}" />
>         <echo message="JBI Install Component Parameters:" />
>         <echo message="   file=${jbi.file}" />
>
>         <jbi-install-component
>             serverProtocol="${jbi.server-protocol}"
>             containerName="${jbi.container-name}"
>             jmxDomainName="${jbi.jmx-domain-name}"
>             username="${jbi.username}"
>             passwd="${jbi.password}"
>             namingHost="${jbi.host}"
>             namingPort="${jbi.port}"
>             failOnError="${jbi.fail-on-error}"
>             file="${jbi.file}"/>
>     </target>
> </project>
>
> The Command:
> ant -l log.txt -f jbi_admin_post.xml install-component -Djbi.file=""
>
> The Output:
>
> install-component:
>      [echo] JBI Admin Properties:
>      [echo]    serverProtocol=rmi
>      [echo]    containerName=defaultJBI
>      [echo]    jmxDomainName=org.servicemix
>      [echo]    jndiPath=jmx/rmi/RMIAdaptor
>      [echo]    username=
>      [echo]    passwd=
>      [echo]    namingHost=localhost
>      [echo]    namingPort=1099
>      [echo]    failOnError=true
>      [echo] JBI Install Component Parameters:
>      [echo]    file=
> [jbi-install-component] 29.03.2006 13:05:55
> org.servicemix.jbi.management.task.JbiTask init
> [jbi-install-component] SCHWERWIEGEND: Failed to initialize the JbiTask
> [jbi-install-component] java.io.IOException: Failed to retrieve RMIServer
> stub: javax.naming.CommunicationException [Root exception is
> java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
> [jbi-install-component]         at
> javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
> [jbi-install-component]         at
> javax.management.remote.JMXConnectorFactory.connect(Unknown Source)
> [jbi-install-component]         at
> javax.management.remote.JMXConnectorFactory.connect(Unknown Source)
> [jbi-install-component]         at
> org.servicemix.jbi.management.task.JbiTask.getJMXConnector(JbiTask.java:87)
> [jbi-install-component]         at
> org.servicemix.jbi.management.task.JbiTask.init(JbiTask.java:97)
> [jbi-install-component]         at
> org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:186)
> [jbi-install-component]         at
> org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:388)
> [jbi-install-component]         at
> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
> [jbi-install-component]         at org.apache.tools.ant.Task.perform(Task.java:363)
> [jbi-install-component]         at
> org.apache.tools.ant.Target.execute(Target.java:341)
> [jbi-install-component]         at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> [jbi-install-component]         at
> org.apache.tools.ant.Project.executeTarget(Project.java:1214)
> [jbi-install-component]         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1062)
> [jbi-install-component]         at
> org.apache.tools.ant.Main.runBuild(Main.java:673)
> [jbi-install-component]         at
> org.apache.tools.ant.Main.startAnt(Main.java:188)
> [jbi-install-component]         at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
> [jbi-install-component]         at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> [jbi-install-component] Caused by: javax.naming.CommunicationException [Root
> exception is java.rmi.ConnectIOException: non-JRMP server at remote
> endpoint]
> [jbi-install-component]         at
> com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)
> [jbi-install-component]         at
> com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
> [jbi-install-component]         at javax.naming.InitialContext.lookup(Unknown
> Source)
> [jbi-install-component]         at
> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)
> [jbi-install-component]         at
> javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown Source)
> [jbi-install-component]         ... 17 more
> [jbi-install-component] Caused by: java.rmi.ConnectIOException: non-JRMP
> server at remote endpoint
> [jbi-install-component]         at
> sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
> [jbi-install-component]         at
> sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
> [jbi-install-component]         at sun.rmi.server.UnicastRef.newCall(Unknown
> Source)
> [jbi-install-component]         at
> sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
> [jbi-install-component]         ... 22 more
>
> BUILD FAILED
> D:\Data\Chajega0\05_Workspace\LogicBlaze.ServiceMix.JBI Admin Ant
> Scripts\jbi_admin_post.xml:42: java.io.IOException: Failed to retrieve
> RMIServer stub: javax.naming.CommunicationException [Root exception is
> java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
>
> Total time: 0 seconds
> --
> View this message in context: http://www.nabble.com/Exception-thrown-when-using-ServiceMix-AntTasks-t1361538.html#a3647991
> Sent from the ServiceMix - User forum at Nabble.com.
>
>