I am trying to get the bot-invoker.sh script running to handle an email notification bot. This is under RunaWFE RC7 on FC6 and java 1.5.0_10-b03. I get the following error:
root@emporio adminkit]# ./bot-invoker.sh start
: command not foundine 2:
: command not foundine 4:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at ru.runa.af.delegate.impl.CommonDelegate.<init>(CommonDelegate.java:38)
at ru.runa.af.delegate.bot.impl.BotRemoteDelegate.<init>(BotRemoteDelegate.java:57)
at ru.runa.af.delegate.bot.impl.BotInvokerServiceDelegateRemoteImpl.<init>(BotInvokerServiceDelegateRemoteImpl.java:44)
at ru.runa.af.delegate.bot.impl.BotInvokerServiceDelegateRemoteImpl.main(BotInvokerServiceDelegateRemoteImpl.java:56)
: numeric argument requiredxit: 1
The bot_delegate.properties file has this content:
I tried it with "bot-invoker status" but since it does not seem to run either I don't really know if the bot-invoker is running. This is what I get:
[root@emporio adminkit]# ./bot-invoker.sh status
: command not foundine 2:
: command not foundine 4:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at ru.runa.af.delegate.impl.CommonDelegate.<init>(CommonDelegate.java:38)
at ru.runa.af.delegate.bot.impl.BotRemoteDelegate.<init>(BotRemoteDelegate.java:57)
at ru.runa.af.delegate.bot.impl.BotInvokerServiceDelegateRemoteImpl.<init>(BotInvokerServiceDelegateRemoteImpl.java:44)
at ru.runa.af.delegate.bot.impl.BotInvokerServiceDelegateRemoteImpl.main(BotInvokerServiceDelegateRemoteImpl.java:56)
: numeric argument requiredxit: 1
I suspect that it is not running.
Miguel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem is that java can not load a class defined in commons-logging.jar. This indicates a problem with CLASSPATH environmental variable. But the variable is set directly in the bot-invoker.sh script.
The simpliest explanation of the phenomena could be that your command interpreter can not handle windows-style end-of-line characters. I suggest you to inspect the script with text editor and fix out those end-of-lines if necessary.
Regards,
Pashkov Alexander
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, that was the problem. Actually I discovered this some time ago and cleaned un the line endings but it looks like the blank line (at least to me it looked blank) between the classpath definition and the command was interfering. So now it runs fine:
root@emporio adminkit]# ./bot-invoker2.sh start
19:24:57,057 INFO [BotInvokerServiceBean] Starting periodic bot execution...
19:24:57,078 INFO [BotInvokerFactory] Invocation period was set to 30 sec.
bots pereodic invocation started
[root@emporio adminkit]# 19:24:57,197 INFO [AuthenticationLogic] server succesfully authenticated
19:24:57,201 INFO [WorkflowBotConfigurationParser] Bot class: ru.runa.wf.logic.bot.WorkflowMultitaskBot
subject: Subject:
Principal: ActorPrincipal: ru.runa.af.Executor:server
successfully loged in as server
19:24:57,444 INFO [WorkflowBotConfigurationParser] Added bot class: ru.runa.wf.logic.bot.WorkflowMultitaskBot
subject: Subject:
Principal: ActorPrincipal: ru.runa.af.Executor:server
with 1 tasks
Miguel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to get the bot-invoker.sh script running to handle an email notification bot. This is under RunaWFE RC7 on FC6 and java 1.5.0_10-b03. I get the following error:
root@emporio adminkit]# ./bot-invoker.sh start
: command not foundine 2:
: command not foundine 4:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at ru.runa.af.delegate.impl.CommonDelegate.<init>(CommonDelegate.java:38)
at ru.runa.af.delegate.bot.impl.BotRemoteDelegate.<init>(BotRemoteDelegate.java:57)
at ru.runa.af.delegate.bot.impl.BotInvokerServiceDelegateRemoteImpl.<init>(BotInvokerServiceDelegateRemoteImpl.java:44)
at ru.runa.af.delegate.bot.impl.BotInvokerServiceDelegateRemoteImpl.main(BotInvokerServiceDelegateRemoteImpl.java:56)
: numeric argument requiredxit: 1
The bot_delegate.properties file has this content:
ru.runa.bot.delegate.interface.type=Remote
ru.runa.bot.delegate.remote.initial.context.factory=org.jnp.interfaces.NamingContextFactory
ru.runa.bot.delegate.remote.provider.url.default=jnp://localhost:1099
ru.runa.bot.delegate.remote.url.pkg.prefixes=org.jboss.naming:org.jnp.interfaces
Any clues about what to do?
Thanks.
Miguel
Hi Miguel,
Does the bot invoker start to work after this exception?
Regards,
Andrei
Andrei,
No it does not apparently. I looked at the "ps" output but nothing resembling a bot invoker is active.
Miguel
Hi Miguel,
To check if bots are started enter "bot-invoker status" command.
Regards,
Andrei
Andrei;
I tried it with "bot-invoker status" but since it does not seem to run either I don't really know if the bot-invoker is running. This is what I get:
[root@emporio adminkit]# ./bot-invoker.sh status
: command not foundine 2:
: command not foundine 4:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at ru.runa.af.delegate.impl.CommonDelegate.<init>(CommonDelegate.java:38)
at ru.runa.af.delegate.bot.impl.BotRemoteDelegate.<init>(BotRemoteDelegate.java:57)
at ru.runa.af.delegate.bot.impl.BotInvokerServiceDelegateRemoteImpl.<init>(BotInvokerServiceDelegateRemoteImpl.java:44)
at ru.runa.af.delegate.bot.impl.BotInvokerServiceDelegateRemoteImpl.main(BotInvokerServiceDelegateRemoteImpl.java:56)
: numeric argument requiredxit: 1
I suspect that it is not running.
Miguel
Hello, Miguel.
The problem is that java can not load a class defined in commons-logging.jar. This indicates a problem with CLASSPATH environmental variable. But the variable is set directly in the bot-invoker.sh script.
The simpliest explanation of the phenomena could be that your command interpreter can not handle windows-style end-of-line characters. I suggest you to inspect the script with text editor and fix out those end-of-lines if necessary.
Regards,
Pashkov Alexander
Alexander;
Yes, that was the problem. Actually I discovered this some time ago and cleaned un the line endings but it looks like the blank line (at least to me it looked blank) between the classpath definition and the command was interfering. So now it runs fine:
root@emporio adminkit]# ./bot-invoker2.sh start
19:24:57,057 INFO [BotInvokerServiceBean] Starting periodic bot execution...
19:24:57,078 INFO [BotInvokerFactory] Invocation period was set to 30 sec.
bots pereodic invocation started
[root@emporio adminkit]# 19:24:57,197 INFO [AuthenticationLogic] server succesfully authenticated
19:24:57,201 INFO [WorkflowBotConfigurationParser] Bot class: ru.runa.wf.logic.bot.WorkflowMultitaskBot
subject: Subject:
Principal: ActorPrincipal: ru.runa.af.Executor:server
successfully loged in as server
19:24:57,444 INFO [WorkflowBotConfigurationParser] Added bot class: ru.runa.wf.logic.bot.WorkflowMultitaskBot
subject: Subject:
Principal: ActorPrincipal: ru.runa.af.Executor:server
with 1 tasks
Miguel