You're doing weird things.  Can't you just bypass the log4j
configuration ? Pax-logging (and it's underlying log4j) is already
configured, so you don't have to do that.
For JMX, it seems you're also doing weird things with JNDI.  If you
want to use JNDI, you need to use the Aries JNDI component and read
the OSGi spec around JNDI to see how to use it.

On Fri, Jan 21, 2011 at 21:16, codeoncoffee <[email protected]> wrote:
>
> Solved. I moved pax-logging-service bundle into the host and imported it with
> the system.packages.extras. Now it's starting up my blueprint file and now
> we're successfully moved off of our custom Felix host!
>
> Still getting the error with the JMX Service. Anyone else on a hosted
> deployment seeing this?
>
> Exception in thread "JMX Connector Thread
> [service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root]"
> java.lang.RuntimeException: Could not start JMX connector server
>        at
> org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:104)
> Caused by: java.io.IOException: Cannot bind to URL
> [rmi://localhost:1099/karaf-root]: javax.naming.ContextNotEmptyException
>        at
> javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
>        at
> javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
>        at
> org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:102)
> Caused by: javax.naming.ContextNotEmptyException
>        at
> org.osjava.sj.jndi.AbstractContext.destroySubcontext(AbstractContext.java:539)
>        at org.osjava.sj.jndi.AbstractContext.close(AbstractContext.java:697)
>        at javax.naming.InitialContext.close(InitialContext.java:531)
>        at 
> org.osjava.sj.jndi.DelegatingContext.close(DelegatingContext.java:164)
>        at javax.naming.InitialContext.close(InitialContext.java:531)
>        at
> javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:626)
>        at
> javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
>        ... 1 more
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Deploying-bare-Blueprint-xml-files-tp2295551p2304428.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to