But there is nothing running on port 1099 (nothing there with netstat
either). I unzipped the 2.3.1 release (windows), changed into the
examples/basic and typed "mvn jbi:embeddedServicemix".
There also no other java processes running, but this is the maven version
I'm using:
D:\software\apache-servicemix-3.2.1\examples\basic>mvn -v
Maven version: 2.0.8
Java version: 1.6.0_04
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
Here's my trace:
D:\software\apache-servicemix-3.2.1\examples\basic> mvn
jbi:embeddedServicemix
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jbi'.
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix :: Samples :: Basic
[INFO] task-segment: [jbi:embeddedServicemix]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing jbi:embeddedServicemix
[INFO] [build:copy {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://svn.apache.org/repos/asf/servicemix/m2-repo/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://repository.codehaus.org/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading: http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://svn.apache.org/repos/asf/servicemix/m2-repo/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://repository.codehaus.org/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [jbi:embeddedServicemix]
2008-02-20 08:07:15,265 [main ] INFO
ileSystemXmlApplicationContext - Refreshing
[EMAIL PROTECTED]
b0: display name
[EMAIL PROTECTED];
startup date [Wed Feb 20 08:07:15 EST 2008]; root of context hierarch
y
2008-02-20 08:07:15,421 [main ] INFO XBeanXmlBeanDefinitionReader
- Loading XML bean definitions from URL
[file:/D:/software/apache-servicemix-3.2.
1/examples/basic/src/main/resources/servicemix.xml]
2008-02-20 08:07:15,875 [main ] INFO
ileSystemXmlApplicationContext - Bean factory for application context
[org.apache.xbean.spring.context.FileSyste
[EMAIL PROTECTED]:
[EMAIL PROTECTED]
2008-02-20 08:07:15,890 [main ] INFO DefaultListableBeanFactory
- Pre-instantiating singletons in
org.springframework.beans.factory.support.Defau
[EMAIL PROTECTED]: defining beans
[jbi,transactionManager,workManager,bootstrapContext,activeMQResourceAdapter,broker,jmsFactory];
root of factory hi
erarchy
2008-02-20 08:07:15,921 [main ] WARN EndpointRegistry
- Disabled endpoint processor
'org.apache.servicemix.jbi.framework.support.WSDL2P
rocessor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
2008-02-20 08:07:16,171 [main ] INFO BrokerService
- ActiveMQ 4.1.1 JMS Message Broker (localhost) is starting
2008-02-20 08:07:16,187 [main ] INFO BrokerService
- For help or more information please see:
http://incubator.apache.org/activemq/
2008-02-20 08:07:16,250 [JMX connector ] INFO ManagementContext
- JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
2008-02-20 08:07:16,406 [main ] INFO TransportServerThreadSupport
- Listening for connections at: tcp://L71059833:61616
2008-02-20 08:07:16,406 [main ] INFO TransportConnector
- Connector tcp://localhost:61616 Started
2008-02-20 08:07:16,406 [main ] INFO BrokerService
- ActiveMQ JMS Message Broker (localhost,
ID:L71059833-2434-1203512836250-0:0) st
arted
2008-02-20 08:07:16,453 [main ] INFO JBIContainer
- ServiceMix 3.2.1 JBI Container (ServiceMix) is starting
2008-02-20 08:07:16,453 [main ] INFO JBIContainer
- For help or more informations please see:
http://incubator.apache.org/servicemi
x/
2008-02-20 08:07:16,453 [main ] WARN ManagementContext
- Failed to start rmi registry: internal error: ObjID already in use
2008-02-20 08:07:16,468 [main ] WARN ManagementContext
- Failed to start jmx connector: Cannot bind to URL
[rmi://localhost:1099/jmxrmi]
: javax.naming.NameAlreadyBoundException: jmxrmi [Root exception is
java.rmi.AlreadyBoundException: jmxrmi]
2008-02-20 08:07:16,531 [main ] INFO ComponentMBeanImpl
- Initializing component: #SubscriptionManager#
2008-02-20 08:07:16,546 [main ] INFO DeploymentService
- Restoring service assemblies
2008-02-20 08:07:16,562 [main ] INFO ComponentMBeanImpl
- Initializing component: inputSender
2008-02-20 08:07:16,562 [main ] INFO ComponentMBeanImpl
- Initializing component: timer
2008-02-20 08:07:16,609 [main ] INFO SimpleThreadPool
- Job execution threads will use class loader of thread: main
2008-02-20 08:07:16,625 [main ] INFO QuartzScheduler
- Quartz Scheduler v.1.5.2 created.
2008-02-20 08:07:16,625 [main ] INFO RAMJobStore
- RAMJobStore initialized.
2008-02-20 08:07:16,640 [main ] INFO StdSchedulerFactory
- Quartz scheduler 'DefaultQuartzScheduler' initialized from default
resource fil
e in Quartz package: 'quartz.properties'
2008-02-20 08:07:16,640 [main ] INFO StdSchedulerFactory
- Quartz scheduler version: 1.5.2
2008-02-20 08:07:16,640 [main ] INFO ComponentMBeanImpl
- Initializing component: inputReceiver
2008-02-20 08:07:16,656 [main ] INFO ComponentMBeanImpl
- Initializing component: outputSender
2008-02-20 08:07:16,656 [main ] INFO ComponentMBeanImpl
- Initializing component: jmsTrace
2008-02-20 08:07:16,656 [main ] INFO ComponentMBeanImpl
- Initializing component: trace
2008-02-20 08:07:16,656 [main ] WARN 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
2008-02-20 08:07:16,843 [main ] INFO QuartzScheduler
- Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
2008-02-20 08:07:16,875 [main ] INFO JBIContainer
- ServiceMix JBI Container (ServiceMix) started
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 13 seconds
bsnyder wrote:
>
> On Feb 19, 2008 3:44 PM, spamdaemon <[EMAIL PROTECTED]> wrote:
>>
>>
>> It's been a week. Has this problem been resolved? I'd really like to
>> know,
>> too, because I've also been struggling with this so-called basic example.
>> It
>> seems that it is anything but basic.
>
> As Marco pointed out, the original reporter's issue is a port conflict
> on port 1099 where ServiceMix runs the RMI registry. Below is the
> error:
>
> 2008-02-06 14:59:31,216 [main ] WARN ManagementContext -
> Failed to start jmx connector: Cannot bind to URL
> [rmi://localhost:1099/jmxrmi]:
> javax.naming.NameAlreadyBoundException: jmxrmi [Root exception is
> java.rmi.AlreadyBoundException: jmxrmi]
>
> When this happens, you need to either shut down whatever is running on
> port 1099 or you can change the port number where ServiceMIx runs the
> RMI registry. This can be done in the conf/servicemix.properties file
> by changing the rmi.port property to a port that is available on your
> machine.
>
> The basic example is fairly complex. The documentation on it can be found
> here:
>
> http://servicemix.apache.org/basic.html
>
> Please let us know if you have any additional questions.
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> Apache Geronimo - http://geronimo.apache.org/
>
> Blog: http://bruceblog.org/
>
>
--
View this message in context:
http://www.nabble.com/The-Basic-example-fails-to-run.-tp15306536s12049p15588680.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.