[mule-dev] Mule 3.2 Rmi Transport

5 views
Skip to first unread message

Carl Spangenberger

unread,
Nov 17, 2011, 12:35:40 PM11/17/11
to d...@mule.codehaus.org
I am trying to setup a rmi connection but I am getting an error.

my mule-config is

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ajax="http://www.mulesoft.org/schema/mule/ajax"
xmlns:https="http://www.mulesoft.org/schema/mule/https"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:json="http://www.mulesoft.org/schema/mule/json"
xmlns:jnp="http://www.mulesoft.org/schema/mule/jnp"
xmlns:rmi="http://www.mulesoft.org/schema/mule/rmi"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:test="http://www.mulesoft.org/schema/mule/test"
xmlns:stdio="http://www.mulesoft.org/schema/mule/stdio"


xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/test http://www.mulesoft.org/schema/mule/test/3.0/mule-test.xsd
http://www.mulesoft.org/schema/mule/test http://www.mulesoft.org/schema/mule/stdio/3.2/mule-stdio.xsd
http://www.mulesoft.org/schema/mule/ajax http://www.mulesoft.org/schema/mule/ajax/3.2/mule-ajax.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.mulesoft.org/schema/mule/https http://www.mulesoft.org/schema/mule/https/current/mule-https.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd
http://www.mulesoft.org/schema/mule/jnp http://www.mulesoft.org/schema/mule/jnp/3.2/mule-jnp.xsd
http://www.mulesoft.org/schema/mule/rmi http://www.mulesoft.org/schema/mule/rmi/3.2/mule-rmi.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd">


<spring:bean name="jndiFactory" class="com.evideon.muleservice.rmiservice.RmiFactory" />
<spring:bean name="jndiContext" factory-bean="jndiFactory"
factory-method="create" />

<rmi:connector name="rmi" jndiContext-ref="jndiContext"
securityPolicy="security.policy" />

</mule>
When I run mule I get an error

DEBUG 2011-11-17 12:29:52,537 [main] org.mule.config.spring.SpringRegistry: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rmi:113038' is defined
DEBUG 2011-11-17 12:29:52,539 [main] org.mule.util.IOUtils: Unable to load resource META-INF/services/org/mule/transport/preferred-rmi.properties from the classpath
DEBUG 2011-11-17 12:29:52,540 [main] org.mule.util.IOUtils: Unable to load resource META-INF/services/org/mule/transport/preferred-rmi.properties from the classpath
DEBUG 2011-11-17 12:29:52,544 [main] org.mule.util.IOUtils: Unable to load resource META-INF/services/org/mule/config/preferred-rmi-exception-mappings.properties from the classpath
DEBUG 2011-11-17 12:29:52,545 [main] org.mule.util.IOUtils: Unable to load resource META-INF/services/org/mule/config/rmi-exception-mappings.properties from the classpath
DEBUG 2011-11-17 12:29:52,545 [main] org.mule.registry.TransientRegistry: registering key/object rmi:113038/org.mule.transport.service.DefaultTransportServiceDescriptor@b364dcb
DEBUG 2011-11-17 12:29:52,545 [main] org.mule.registry.TransientRegistry: applying processors
DEBUG 2011-11-17 12:29:52,546 [main] org.mule.registry.TransientRegistry: applying lifecycle to object: org.mule.transport.service.DefaultTransportServiceDescriptor@b364dcb
DEBUG 2011-11-17 12:29:52,546 [main] org.mule.transport.rmi.RmiConnector: Loading DispatcherFactory for connector: rmi (org.mule.transport.rmi.RmiConnector)
DEBUG 2011-11-17 12:29:52,548 [main] org.mule.transport.rmi.RmiConnector: Loading RequesterFactory for connector: rmi (org.mule.transport.rmi.RmiConnector)
DEBUG 2011-11-17 12:29:52,549 [main] org.mule.transport.service.DefaultTransportServiceDescriptor: No session.handler set in service description, defaulting to: org.mule.session.SerializeAndEncodeSessionHandler
DEBUG 2011-11-17 12:29:52,549 [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Returning cached instance of singleton bean '_defaultMessageDispatcherThreadingProfile'
DEBUG 2011-11-17 12:29:52,549 [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Returning cached instance of singleton bean '_defaultMessageRequesterThreadingProfile'
DEBUG 2011-11-17 12:29:52,550 [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Returning cached instance of singleton bean '_defaultMessageReceiverThreadingProfile'
INFO 2011-11-17 12:29:52,568 [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4b8a6e6e: defining beans [_muleCustomEditorConfigurer,_muleObjectNameProcessor,_mulePropertyPlaceholderProcessor,_muleSimpleRegistryBootstrap,_muleNotificationManager,_muleAnnotationsProcessor,_muleTransformerAnnotationProcessor,_muleConfiguration,._muleNotificationManager:notification.1,._muleNotificationManager:notification.2,._muleNotificationManager:notification.3,._muleNotificationManager:notification.4,._muleNotificationManager:notification.5,._muleNotificationManager:notification.6,._muleNotificationManager:notification.7,._muleNotificationManager:notification.8,._muleNotificationManager:notification.9,._muleNotificationManager:notification.10,_muleSystemModel,_defaultInMemoryQueueStore,_defaultPersistentQueueStore,_muleQueueManager,_muleObjectStoreManager,_muleSecurityManager,_muleProperties,_muleEndpointFactory,_muleStreamCloserService,_defaultThreadingProfile,_defaultMessageDispatcherThreadingProfile,_defaultMessageRequesterThreadingProfile,_defaultMessageReceiverThreadingProfile,_defaultServiceThreadingProfile,_defaultRetryPolicyTemplate,jndiFactory,jndiContext,rmi]; root of factory hierarchy
DEBUG 2011-11-17 12:29:52,568 [main] org.springframework.beans.factory.support.DisposableBeanAdapter: Invoking destroy method 'dispose' on bean with name '_muleSystemModel'
INFO 2011-11-17 12:29:52,570 [main] org.mule.lifecycle.AbstractLifecycleManager: Disposing model: _muleSystemModel
Exception in thread "main" java.security.AccessControlException: access denied (java.lang.RuntimePermission shutdownHooks)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
at org.mule.MuleServer.unregisterShutdownHook(MuleServer.java:509)
at org.mule.MuleServer.shutdown(MuleServer.java:440)
at org.mule.MuleServer.run(MuleServer.java:290)
at org.mule.MuleServer.start(MuleServer.java:271)
at org.mule.MuleServer.main(MuleServer.java:142)

i set up a security file for give my codeBase java.security.AllPermission

Can I get an example of getting a rmi object rom a rmi transport or help?

thanks,

Carl Spangenberger

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Evangelina Martinez

unread,
Nov 17, 2011, 1:22:50 PM11/17/11
to d...@mule.codehaus.org
Hi Carl,

Seems to be a problem with your security file, how do you have it configured? If you want to grant access to all you should have something like this:

grant {
  permission java.security.FilePermission;
};

Eva
Reply all
Reply to author
Forward
0 new messages