You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by zackdjones <Jo...@Pragmatics.com> on 2006/12/05 14:03:31 UTC

Re: problem running basic example

The example does continue to run, but there is a problem with the logging
which prevents the example output from being logged to the console.  It
would appear the the NoInitialContextException
is a problem b/c nothing else is logged.  Debugging revealed that the logger
being used is a GeronimoLogger, but I am not sure how to resolve the issue.
Any help would be appreciated.


gnodet wrote:
> 
> This ERROR won't prevent the examples to run, and should not
> occur when running the server from the distribution itself.
> The reason is that the examples do not set up a JNDI tree, but you
> should just skip this log and go on.
> 
> On 11/25/06, Katz <s_...@yahoo.com> wrote:
>>
>> I am having a similar problem, though i am using the windows binary
>> download.
>>
>> Any help would be appriciated.
>>
>>
>> branko wrote:
>> >
>> > Hi,
>> >
>> > I'm trying to run the basic example and am getting the message below. I
>> > built the files from the source. The build went fine.
>> >
>> >
>> --------------------------------------------------------------------------------------------------------------------
>> > 2006-11-15 16:23:13,203 [main           ] INFO  BrokerService
>> > - ActiveMQ 4.0.2 JMS Message Broker (localhost) is starting
>> > 16:23:13,203 INFO  [BrokerService] ActiveMQ 4.0.2 JMS Message Broker
>> > (localhost) is starting
>> > 2006-11-15 16:23:13,203 [main           ] INFO  BrokerService
>> > - For help or more information please see:
>> > http://incubator.apache.org/activemq/
>> > 16:23:13,203 INFO  [BrokerService] For help or more information please
>> > see: http://incubator.apache.org/activemq/
>> > 2006-11-15 16:23:13,281 [JMX connector  ] INFO  ManagementContext
>> > - JMX consoles can connect to
>> > service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>> > 16:23:13,281 INFO  [ManagementContext] JMX consoles can connect to
>> > service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>> > 2006-11-15 16:23:13,359 [main           ] INFO
>> > TransportServerThreadSupport   - Listening for connections at:
>> > tcp://myhost:61616
>> > 16:23:13,359 INFO  [TransportServerThreadSupport] Listening for
>> > connections at: tcp://myhost:61616
>> > 2006-11-15 16:23:13,359 [main           ] INFO  TransportConnector
>> > - Connector tcp://localhost:61616 Started
>> > 16:23:13,359 INFO  [TransportConnector] Connector tcp://localhost:61616
>> > Started
>> > 2006-11-15 16:23:13,359 [main           ] INFO  BrokerService
>> > - ActiveMQ JMS Message Broker (localhost,
>> > ID:myhost-1360-1163636592937-1:0) started
>> > 16:23:13,359 INFO  [BrokerService] ActiveMQ JMS Message Broker
>> (localhost,
>> > ID:myhost-1360-1163636592937-1:0) started
>> > 2006-11-15 16:23:14,093 [main           ] ERROR ClientFactory
>> > - Cound not start ClientFactory:
>> javax.naming.NoInitialContextException:
>> > Need to specify class name in environment or system property, or as an
>> > applet parameter, or in an application resource file:
>> > java.naming.factory.initial
>> > 16:23:14,093 ERROR [ClientFactory] Cound not start ClientFactory:
>> > javax.naming.NoInitialContextException: Need to specify class name in
>> > environment or system property, or as an applet parameter, or in an
>> > application resource file:  java.naming.factory.initial
>> >
>> --------------------------------------------------------------------------------------------------------------------
>> >
>> > Can someone help me?
>> >
>> > Thanks,
>> > Branko
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/problem-running-basic-example-tf2640020s12049.html#a7535340
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: http://www.nabble.com/problem-running-basic-example-tf2640020s12049.html#a7698868
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: problem running basic example

Posted by "tom.b" <to...@gmail.com>.
Hi,

I'm having the same problem; The "basic" example doesn't (seem to) work out
of the box. I've downloaded the "3.0-incubating" release, and tried to run
the "basic" example as described in the user's guide: "mvn
jbi:embeddedServicemix". That's all.

Maven starts downloading a huge amount of jars, and the last thing that is
logged to the console is the NoInitialContextException error message. After
that, nothing happens.

Could somebody please have a look into this problem?
To me, it seems very important to make sure the examples run flawlessly out
of the box. Most new users (including myself) will try this first, and will
abandon ServiceMix if they can't even get the "basic" example running.


Tanks,
Tom
-- 
View this message in context: http://www.nabble.com/problem-running-basic-example-tf2640020s12049.html#a8061245
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: problem running basic example

Posted by zackdjones <Jo...@Pragmatics.com>.
I simply run "mvn jbi:embeddedServicemix" from the examples/basic directory
as specified in the user manual. I am using the latest version at
"http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/apache-servicemix/3.0-incubating/apache-servicemix-3.0-incubating.zip"

-Zack


gnodet wrote:
> 
> The GeronimoLogger should not be included in the classpath
> or the distribution.  How do you launch the example and which
> version do you use ?
> 
> On 12/5/06, zackdjones <Jo...@pragmatics.com> wrote:
>>
>> The example does continue to run, but there is a problem with the logging
>> which prevents the example output from being logged to the console.  It
>> would appear the the NoInitialContextException
>> is a problem b/c nothing else is logged.  Debugging revealed that the
>> logger
>> being used is a GeronimoLogger, but I am not sure how to resolve the
>> issue.
>> Any help would be appreciated.
>>
>>
>> gnodet wrote:
>> >
>> > This ERROR won't prevent the examples to run, and should not
>> > occur when running the server from the distribution itself.
>> > The reason is that the examples do not set up a JNDI tree, but you
>> > should just skip this log and go on.
>> >
>> > On 11/25/06, Katz <s_...@yahoo.com> wrote:
>> >>
>> >> I am having a similar problem, though i am using the windows binary
>> >> download.
>> >>
>> >> Any help would be appriciated.
>> >>
>> >>
>> >> branko wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > I'm trying to run the basic example and am getting the message
>> below. I
>> >> > built the files from the source. The build went fine.
>> >> >
>> >> >
>> >>
>> --------------------------------------------------------------------------------------------------------------------
>> >> > 2006-11-15 16:23:13,203 [main           ] INFO  BrokerService
>> >> > - ActiveMQ 4.0.2 JMS Message Broker (localhost) is starting
>> >> > 16:23:13,203 INFO  [BrokerService] ActiveMQ 4.0.2 JMS Message Broker
>> >> > (localhost) is starting
>> >> > 2006-11-15 16:23:13,203 [main           ] INFO  BrokerService
>> >> > - For help or more information please see:
>> >> > http://incubator.apache.org/activemq/
>> >> > 16:23:13,203 INFO  [BrokerService] For help or more information
>> please
>> >> > see: http://incubator.apache.org/activemq/
>> >> > 2006-11-15 16:23:13,281 [JMX connector  ] INFO  ManagementContext
>> >> > - JMX consoles can connect to
>> >> > service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>> >> > 16:23:13,281 INFO  [ManagementContext] JMX consoles can connect to
>> >> > service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>> >> > 2006-11-15 16:23:13,359 [main           ] INFO
>> >> > TransportServerThreadSupport   - Listening for connections at:
>> >> > tcp://myhost:61616
>> >> > 16:23:13,359 INFO  [TransportServerThreadSupport] Listening for
>> >> > connections at: tcp://myhost:61616
>> >> > 2006-11-15 16:23:13,359 [main           ] INFO  TransportConnector
>> >> > - Connector tcp://localhost:61616 Started
>> >> > 16:23:13,359 INFO  [TransportConnector] Connector
>> tcp://localhost:61616
>> >> > Started
>> >> > 2006-11-15 16:23:13,359 [main           ] INFO  BrokerService
>> >> > - ActiveMQ JMS Message Broker (localhost,
>> >> > ID:myhost-1360-1163636592937-1:0) started
>> >> > 16:23:13,359 INFO  [BrokerService] ActiveMQ JMS Message Broker
>> >> (localhost,
>> >> > ID:myhost-1360-1163636592937-1:0) started
>> >> > 2006-11-15 16:23:14,093 [main           ] ERROR ClientFactory
>> >> > - Cound not start ClientFactory:
>> >> javax.naming.NoInitialContextException:
>> >> > Need to specify class name in environment or system property, or as
>> an
>> >> > applet parameter, or in an application resource file:
>> >> > java.naming.factory.initial
>> >> > 16:23:14,093 ERROR [ClientFactory] Cound not start ClientFactory:
>> >> > javax.naming.NoInitialContextException: Need to specify class name
>> in
>> >> > environment or system property, or as an applet parameter, or in an
>> >> > application resource file:  java.naming.factory.initial
>> >> >
>> >>
>> --------------------------------------------------------------------------------------------------------------------
>> >> >
>> >> > Can someone help me?
>> >> >
>> >> > Thanks,
>> >> > Branko
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/problem-running-basic-example-tf2640020s12049.html#a7535340
>> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > Cheers,
>> > Guillaume Nodet
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/problem-running-basic-example-tf2640020s12049.html#a7698868
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: http://www.nabble.com/problem-running-basic-example-tf2640020s12049.html#a7723931
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: problem running basic example

Posted by Guillaume Nodet <gn...@gmail.com>.
The GeronimoLogger should not be included in the classpath
or the distribution.  How do you launch the example and which
version do you use ?

On 12/5/06, zackdjones <Jo...@pragmatics.com> wrote:
>
> The example does continue to run, but there is a problem with the logging
> which prevents the example output from being logged to the console.  It
> would appear the the NoInitialContextException
> is a problem b/c nothing else is logged.  Debugging revealed that the logger
> being used is a GeronimoLogger, but I am not sure how to resolve the issue.
> Any help would be appreciated.
>
>
> gnodet wrote:
> >
> > This ERROR won't prevent the examples to run, and should not
> > occur when running the server from the distribution itself.
> > The reason is that the examples do not set up a JNDI tree, but you
> > should just skip this log and go on.
> >
> > On 11/25/06, Katz <s_...@yahoo.com> wrote:
> >>
> >> I am having a similar problem, though i am using the windows binary
> >> download.
> >>
> >> Any help would be appriciated.
> >>
> >>
> >> branko wrote:
> >> >
> >> > Hi,
> >> >
> >> > I'm trying to run the basic example and am getting the message below. I
> >> > built the files from the source. The build went fine.
> >> >
> >> >
> >> --------------------------------------------------------------------------------------------------------------------
> >> > 2006-11-15 16:23:13,203 [main           ] INFO  BrokerService
> >> > - ActiveMQ 4.0.2 JMS Message Broker (localhost) is starting
> >> > 16:23:13,203 INFO  [BrokerService] ActiveMQ 4.0.2 JMS Message Broker
> >> > (localhost) is starting
> >> > 2006-11-15 16:23:13,203 [main           ] INFO  BrokerService
> >> > - For help or more information please see:
> >> > http://incubator.apache.org/activemq/
> >> > 16:23:13,203 INFO  [BrokerService] For help or more information please
> >> > see: http://incubator.apache.org/activemq/
> >> > 2006-11-15 16:23:13,281 [JMX connector  ] INFO  ManagementContext
> >> > - JMX consoles can connect to
> >> > service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> >> > 16:23:13,281 INFO  [ManagementContext] JMX consoles can connect to
> >> > service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> >> > 2006-11-15 16:23:13,359 [main           ] INFO
> >> > TransportServerThreadSupport   - Listening for connections at:
> >> > tcp://myhost:61616
> >> > 16:23:13,359 INFO  [TransportServerThreadSupport] Listening for
> >> > connections at: tcp://myhost:61616
> >> > 2006-11-15 16:23:13,359 [main           ] INFO  TransportConnector
> >> > - Connector tcp://localhost:61616 Started
> >> > 16:23:13,359 INFO  [TransportConnector] Connector tcp://localhost:61616
> >> > Started
> >> > 2006-11-15 16:23:13,359 [main           ] INFO  BrokerService
> >> > - ActiveMQ JMS Message Broker (localhost,
> >> > ID:myhost-1360-1163636592937-1:0) started
> >> > 16:23:13,359 INFO  [BrokerService] ActiveMQ JMS Message Broker
> >> (localhost,
> >> > ID:myhost-1360-1163636592937-1:0) started
> >> > 2006-11-15 16:23:14,093 [main           ] ERROR ClientFactory
> >> > - Cound not start ClientFactory:
> >> javax.naming.NoInitialContextException:
> >> > Need to specify class name in environment or system property, or as an
> >> > applet parameter, or in an application resource file:
> >> > java.naming.factory.initial
> >> > 16:23:14,093 ERROR [ClientFactory] Cound not start ClientFactory:
> >> > javax.naming.NoInitialContextException: Need to specify class name in
> >> > environment or system property, or as an applet parameter, or in an
> >> > application resource file:  java.naming.factory.initial
> >> >
> >> --------------------------------------------------------------------------------------------------------------------
> >> >
> >> > Can someone help me?
> >> >
> >> > Thanks,
> >> > Branko
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/problem-running-basic-example-tf2640020s12049.html#a7535340
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> >
> >
>
> --
> View this message in context: http://www.nabble.com/problem-running-basic-example-tf2640020s12049.html#a7698868
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet