You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Claudio Di Vita <c....@gmail.com> on 2007/09/10 16:16:52 UTC

Cannot install OpenESB SQL SE

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#a12593731
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Cannot install OpenESB SQL SE

Posted by Claudio Di Vita <c....@gmail.com>.

gnodet wrote:
> 
> ServiceMix itself does not install any security manager...
> 
This situation is quite strange, don't you think ??

I should try the ETL Service Engine
(http://wiki.open-esb.java.net/Wiki.jsp?page=ETLSE): it seems to fit better
my needs and maybe it hasn't this kind of problem.

-----
.........not everything that counts can be counted
-- 
View this message in context: http://www.nabble.com/Cannot-install-OpenESB-SQL-SE-tf4415032s12049.html#a14223134
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Cannot install OpenESB SQL SE

Posted by Guillaume Nodet <gn...@gmail.com>.
ServiceMix itself does not install any security manager...

On Nov 9, 2007 10:02 AM, Piotr Jagielski <pj...@o2.pl> wrote:

>
> Running on a fresh 3.2 standalone installation.
> So, SM does not prevent privilegedThreadFactory() nor
> defaultThreadFactory()?
>
>
>
> gnodet wrote:
> >
> > 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 <pj...@o2.pl> 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/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Cannot-install-OpenESB-SQL-SE-tf4415032s12049.html#a13663470
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


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

Re: Cannot install OpenESB SQL SE

Posted by Piotr Jagielski <pj...@o2.pl>.
Running on a fresh 3.2 standalone installation.
So, SM does not prevent privilegedThreadFactory() nor
defaultThreadFactory()?



gnodet wrote:
> 
> 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 <pj...@o2.pl> 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/
> 
> 

-- 
View this message in context: http://www.nabble.com/Cannot-install-OpenESB-SQL-SE-tf4415032s12049.html#a13663470
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Cannot install OpenESB SQL SE

Posted by Guillaume Nodet <gn...@gmail.com>.
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 <pj...@o2.pl> 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/

Re: Cannot install OpenESB SQL SE

Posted by Piotr Jagielski <pj...@o2.pl>.
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.


Re: Cannot install OpenESB SQL SE

Posted by Claudio Di Vita <c....@gmail.com>.


Andrea Zoppello-2 wrote:
> 
> I've reply to your private email.
> 
> Have you received it?
> 
Yes, thank you for your help Andrea.
-- 
View this message in context: http://www.nabble.com/Cannot-install-OpenESB-SQL-SE-tf4415032s12049.html#a12632753
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Cannot install OpenESB SQL SE

Posted by Andrea Zoppello <zo...@tiscali.it>.
I've reply to your private email.

Have you received it?

Andrea
Claudio Di Vita ha scritto:
> Andrea Zoppello-2 wrote:
>   
>> If you want you could take a look at spagic jdbc adbvanced service 
>> engine
>>     
> Thank you for your hint Andrea, yesterday I had read a your post about JDBC
> components for ServiceMix.
>
> The component provided by spagic seems very interesting, but after reading
> the documentation I have some doubts on how is structured a "JDBC Advanced
> Query & Stored Procedure Component" reply. I can find some samples somewhere
> (seems that the spagic demo don't use this component) ??
>   


Re: Cannot install OpenESB SQL SE

Posted by Claudio Di Vita <c....@gmail.com>.

Andrea Zoppello-2 wrote:
> 
> If you want you could take a look at spagic jdbc adbvanced service 
> engine
Thank you for your hint Andrea, yesterday I had read a your post about JDBC
components for ServiceMix.

The component provided by spagic seems very interesting, but after reading
the documentation I have some doubts on how is structured a "JDBC Advanced
Query & Stored Procedure Component" reply. I can find some samples somewhere
(seems that the spagic demo don't use this component) ??
-- 
View this message in context: http://www.nabble.com/Cannot-install-OpenESB-SQL-SE-tf4415032s12049.html#a12610426
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Cannot install OpenESB SQL SE

Posted by Andrea Zoppello <zo...@tiscali.it>.
If you want you could take a look at spagic jdbc adbvanced service 
engine here:

http://forge.objectweb.org/projects/spagic

The most important features are:

- support for parametric queries and binding of query parameters values 
on input message using
   xpath expression

- support for stored procedure

- configurable output

It's a spagic "custom component" but you can use in a clean servicemix 
3.1.1 if you want

Andrea Zoppello

Claudio Di Vita ha scritto:
> Claudio Di Vita wrote:
>   
>> I cannot understand what goes wrong, someone could help me ??
>>
>>     
> I don't know why, but after the component automatic installation failure
> sometimes (and this is the strange thing) is possible to start the component
> through JMX.
>
> But there is also an other problem: ServiceMix and the SQL SE provided by
> OpenESB use two different version of wsdl4j, and this blocks the deployment
> of Service Unit into the component (a class cast exception related to
> com.ibm.wsdl.factory.WSDLFactoryImpl is thrown).
>
> I've tried to use the same version of wsdl4j (swapping them, of course):
>
>     - Without "its version" ServiceMix doesn't work correctly
>     - SQL SE threw an exception because it cannot find a method of class
> WSDLFactoryImpl
>
> I've see that a JDBC component is shipped with ServiceMix, but I cannot find
> any kind documentation.
>   


Re: Cannot install OpenESB SQL SE

Posted by Claudio Di Vita <c....@gmail.com>.

Claudio Di Vita wrote:
> 
> I cannot understand what goes wrong, someone could help me ??
> 
I don't know why, but after the component automatic installation failure
sometimes (and this is the strange thing) is possible to start the component
through JMX.

But there is also an other problem: ServiceMix and the SQL SE provided by
OpenESB use two different version of wsdl4j, and this blocks the deployment
of Service Unit into the component (a class cast exception related to
com.ibm.wsdl.factory.WSDLFactoryImpl is thrown).

I've tried to use the same version of wsdl4j (swapping them, of course):

    - Without "its version" ServiceMix doesn't work correctly
    - SQL SE threw an exception because it cannot find a method of class
WSDLFactoryImpl

I've see that a JDBC component is shipped with ServiceMix, but I cannot find
any kind documentation.
-- 
View this message in context: http://www.nabble.com/Cannot-install-OpenESB-SQL-SE-tf4415032s12049.html#a12605230
Sent from the ServiceMix - User mailing list archive at Nabble.com.