ServiceMix does not prevent that.  I suppose you have a security
configuration somewhere that prevent it, but this is certainly not
servicemix.  Are you using servicemix standalone or are you deploying it
into an app server ?

On Nov 8, 2007 8:55 PM, Piotr Jagielski <[EMAIL PROTECTED]> wrote:

>
> Hi Claudio,
>
> If you are still interested in running SQL SE - here is a solution:
> checkout
> open-jbi-components sources and change com.sun.jbi.jdbcbc.OutboundReceiver
> class from:
>
>        mOutboundPooledExecutor = new
> ThreadPoolExecutor(mOutboundCorePoolSize,
>                mOutboundMaxPoolSize, mOutboundKeepAliveTime,
>                mOutboundTimeUnit, new LinkedBlockingQueue(),
>                Executors.privilegedThreadFactory());
>
> to:
>
>        mOutboundPooledExecutor = new
> ThreadPoolExecutor(mOutboundCorePoolSize,
>                mOutboundMaxPoolSize, mOutboundKeepAliveTime,
>                mOutboundTimeUnit, new LinkedBlockingQueue(),
>                Executors.defaultThreadFactory());
>
>
> BTW why is ServiceMix blocking this?
>
> Regards,
> Piotr
>
> Claudio Di Vita wrote:
> >
> > I need to perform some operation on a database, but ServiceMix doesn't
> > provide a JDBC/SQL component so I've tried to use the
> > http://wiki.open-esb.java.net/jbiwiki/Wiki.jsp?page=SQLSE SQL SE
>  provided
> > by OpenESB.
> >
> > When I deploy the component I receive the following error:
> >
> > INFO  - ComponentMBeanImpl             - Starting component:
> > com.sun.sqlse-1.0-2
> > INFO  - ComponentMBeanImpl             - Initializing component:
> > com.sun.sqlse-1.0-2
> > 10-set-2007 12.00.52 com.sun.jbi.jdbcbc.SQLSELifeCycle init
> > INFO: Registered Status Provider MBean for com.sun.sqlse-1.0-2.
> > 10-set-2007 12.00.52 com.sun.jbi.jdbcbc.SQLSELifeCycle init
> > INFO: Registered runtime configuration MBean for com.sun.sqlse-1.0-2.
> > 10-set-2007 12.00.52 com.sun.jbi.jdbcbc.SQLSELifeCycle init
> > GRAVE: Failed to start the SQL SE.
> > java.security.AccessControlException: access denied
> > (java.lang.RuntimePermission setContextClassLoader)
> >         at
> > java.security.AccessControlContext.checkPermission(
> AccessControlContext.java:264)
> >         at
> > java.util.concurrent.Executors$PrivilegedThreadFactory.<init>(
> Executors.java:567)
> >         at
> > java.util.concurrent.Executors.privilegedThreadFactory(Executors.java
> :301)
> >         at
> > com.sun.jbi.jdbcbc.OutboundReceiver.<init>(OutboundReceiver.java:96)
> >         at
> > com.sun.jbi.jdbcbc.SQLSELifeCycle.startOutbound(SQLSELifeCycle.java:382)
> >         at com.sun.jbi.jdbcbc.SQLSELifeCycle.init(SQLSELifeCycle.java
> :156)
> >         at
> > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(
> ComponentMBeanImpl.java:201)
> >         at
> > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart(
> ComponentMBeanImpl.java:287)
> >         at
> > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.start(
> ComponentMBeanImpl.java:216)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
> :216)
> >         at
> > org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(
> BaseStandardMBean.java:318)
> >         at
> > com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(
> DynamicMetaDataImpl.java:213)
> >         at
> > com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> >         at
> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(
> DefaultMBeanServerInterceptor.java:815)
> >         at
> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl.doOperation(
> RMIConnectionImpl.java:1410)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl.access$100(
> RMIConnectionImpl.java:81)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(
> RMIConnectionImpl.java:1247)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(
> RMIConnectionImpl.java:1343)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl.invoke(
> RMIConnectionImpl.java:784)
> >         at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> >         at sun.rmi.transport.Transport$1.run(Transport.java:153)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> >         at
> > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
> >         at
> > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(
> TCPTransport.java:707)
> >         at java.lang.Thread.run(Thread.java:595)
> > ERROR - ComponentMBeanImpl             - Could not start component
> > javax.jbi.JBIException: Failed to start the SQL SE.access denied
> > (java.lang.RuntimePermission setContextClassLoader)
> >         at com.sun.jbi.jdbcbc.SQLSELifeCycle.init(SQLSELifeCycle.java
> :160)
> >         at
> > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(
> ComponentMBeanImpl.java:201)
> >         at
> > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart(
> ComponentMBeanImpl.java:287)
> >         at
> > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.start(
> ComponentMBeanImpl.java:216)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
> :216)
> >         at
> > org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(
> BaseStandardMBean.java:318)
> >         at
> > com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(
> DynamicMetaDataImpl.java:213)
> >         at
> > com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> >         at
> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(
> DefaultMBeanServerInterceptor.java:815)
> >         at
> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl.doOperation(
> RMIConnectionImpl.java:1410)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl.access$100(
> RMIConnectionImpl.java:81)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(
> RMIConnectionImpl.java:1247)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(
> RMIConnectionImpl.java:1343)
> >         at
> > javax.management.remote.rmi.RMIConnectionImpl.invoke(
> RMIConnectionImpl.java:784)
> >         at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> >         at sun.rmi.transport.Transport$1.run(Transport.java:153)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> >         at
> > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
> >         at
> > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(
> TCPTransport.java:707)
> >         at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.security.AccessControlException: access denied
> > (java.lang.RuntimePermission setContextClassLoader)
> >         at
> > java.security.AccessControlContext.checkPermission(
> AccessControlContext.java:264)
> >         at
> > java.util.concurrent.Executors$PrivilegedThreadFactory.<init>(
> Executors.java:567)
> >         at
> > java.util.concurrent.Executors.privilegedThreadFactory(Executors.java
> :301)
> >         at
> > com.sun.jbi.jdbcbc.OutboundReceiver.<init>(OutboundReceiver.java:96)
> >         at
> > com.sun.jbi.jdbcbc.SQLSELifeCycle.startOutbound(SQLSELifeCycle.java:382)
> >         at com.sun.jbi.jdbcbc.SQLSELifeCycle.init(SQLSELifeCycle.java
> :156)
> >         ... 28 more
> >
> > I cannot understand what goes wrong, someone could help me ??
> >
> > Thank you,
> >
> > Claudio
> >
>
> --
> View this message in context:
> http://www.nabble.com/Cannot-install-OpenESB-SQL-SE-tf4415032s12049.html#a13654432
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to