You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by yusef <yu...@acecomm.com> on 2006/05/23 22:14:49 UTC
Re: Exception thrown when using ServiceMix AntTasks
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 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