[jboss-user] [Remoting] - Problem deploying remoting streaming

dellacqua do-not-reply at jboss.com
Thu May 17 11:02:41 EDT 2007


Hello,
I'm using jboss-4.0.4.GA, remoting 1.4.3 and I've to use the remote streming;

I've implemented in project a.b.c.d the following class

public class DocMgrStreamInvocationHandler implements StreamInvocationHandler {
  | 
  |     public Object handleStream(InputStream stream, Object param) {
  |     ...
  |     }
  | ...
  | }

and deployed it with 
siscm_streamhandler.sar
into 
$JBOSS_HOME/server/default/deploy

siscm_streamhandler.sar contains
a\b\c\d\DocMgrStreamInvocationHandler.class
  | meta-inf\jboss-appl.xml
  | meta-inf\jboss-service.xml
  | meta-inf\Manifest.mf

meta-inf\jboss-appl.xml contains
<jboss-app>
  |   <module>
  |     <service>siscm_streamhandler.sar</service>
  |   </module>
  | </jboss-app>

meta-inf\jboss-service.xml contains
<?xml version="1.0" encoding="UTF-8"?>
  | <server>
  |   <mbean code="org.jboss.remoting.transport.Connector"
  |          name="jboss.remoting:service=Connector,transport=Socket"
  |          display-name="Socket transport Connector">
  |     <attribute name="InvokerLocator">
  |       socket://localhost:5400
  |     </attribute>
  |     <attribute name="Configuration">
  |       <config>
  |         <invoker transport="socket">
  |         </invoker>
  |         <handlers>
  |           <handler subsystem="test_stream">a.b.c.d.DocMgrStreamInvocationHandler</handler> 
  |         </handlers>
  |       </config>
  |     </attribute>
  |   </mbean>
  | </server>

meta-inf\Manifest.mf contains
Manifest-Version: 1.0
  | Ant-Version: Apache Ant 1.6.5
  | Created-By: 1.5.0_09-b01 (Sun Microsystems Inc.)

When JBoss starts in the log file there are the following messages
...
  | 2007-05-17 15:24:36,276 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/management/console-mgr.sar/
  | 2007-05-17 15:24:36,276 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/management/console-mgr.sar/ -> file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/management/console-mgr.sar/META-INF/jboss-service.xml
  | 2007-05-17 15:24:36,276 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,276 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,276 DEBUG [org.jboss.deployment.MainDeployer] Copying file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar -> D:\svn\common\as\jboss-4.0.4.GA\server\default\tmp\deploy\tmp47281siscm_streamhandler.sar
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer at ec6b00
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.deployment.SARDeployer] looking for nested deployments in : file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3 at 1c282a1, cl=org.jboss.mx.loading.UnifiedClassLoader3 at 35bb0f{ url=file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/tmp/deploy/tmp47281siscm_streamhandler.sar ,addedOrder=0}
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3 at 1c282a1, cl=org.jboss.mx.loading.UnifiedClassLoader3 at 35bb0f{ url=file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/tmp/deploy/tmp47281siscm_streamhandler.sar ,addedOrder=0}
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3 at 35bb0f{ url=file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/tmp/deploy/tmp47281siscm_streamhandler.sar ,addedOrder=0}
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=35bb0f
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.remoting:service=Connector,transport=Socket with code: org.jboss.remoting.transport.Connector
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.remoting:service=Connector,transport=Socket
  | 2007-05-17 15:24:36,291 DEBUG [org.jboss.system.ServiceConfigurator] InvokerLocator set to socket://localhost:5400 in jboss.remoting:service=Connector,transport=Socket
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.system.ServiceConfigurator] Configuration set to [config: null] in jboss.remoting:service=Connector,transport=Socket
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.system.ServiceController] Creating service jboss.remoting:service=Connector,transport=Socket
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.remoting.transport.socket.SocketServerInvoker] Did not find server socket factory configuration as mbean service or classname.  Creating default server socket.
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.remoting.transport.socket.SocketServerInvoker] Created server socket factory: javax.net.DefaultServerSocketFactory at ebcdbb
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.remoting:service=Connector,transport=Socket dependents are: []
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying siscm_streamhandler.sar
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.system.ServiceController] starting service jboss.remoting:service=Connector,transport=Socket
  | 2007-05-17 15:24:36,307 DEBUG [org.jboss.remoting.transport.Connector] Handler supplied is not an object name.
  | 2007-05-17 15:24:36,307 WARN  [org.jboss.system.ServiceController] Problem starting service jboss.remoting:service=Connector,transport=Socket
  | java.lang.ClassNotFoundException: No ClassLoaders found for: DocMgrStreamInvocationHandler
  | 	at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
  | 	at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
  | 	at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
  | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | 	at org.jboss.remoting.transport.Connector.configureHandlers(Connector.java:598)
  | 	at org.jboss.remoting.transport.Connector.start(Connector.java:300)
  | 	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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
  | 	at $Proxy0.start(Unknown Source)
  | 	at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | 	at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 	at $Proxy4.start(Unknown Source)
  | 	at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
  | 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  | 	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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 	at $Proxy6.deploy(Unknown Source)
  | 	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
  | 	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
  | 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
  | 	at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | 	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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | 	at $Proxy0.start(Unknown Source)
  | 	at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | 	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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 	at $Proxy4.start(Unknown Source)
  | 	at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
  | 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
  | 	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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 	at $Proxy5.deploy(Unknown Source)
  | 	at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
  | 	at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
  | 	at org.jboss.Main.boot(Main.java:200)
  | 	at org.jboss.Main$1.run(Main.java:464)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 2007-05-17 15:24:36,479 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: siscm_streamhandler.sar
  | 2007-05-17 15:24:36,479 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,479 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar -> file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/siscm_streamhandler.sar
  | 2007-05-17 15:24:36,494 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/client-deployer-service.xml
  | 2007-05-17 15:24:36,494 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/client-deployer-service.xml
  | 2007-05-17 15:24:36,494 DEBUG [org.jboss.deployment.MainDeployer] Copying file:/D:/svn/common/as/jboss-4.0.4.GA/server/default/deploy/client-deployer-service.xml -> D:\svn\common\as\jboss-4.0.4.GA\server\default\tmp\deploy\tmp47282client-deployer-service.xml
  | 2007-05-17 15:24:36,494 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer at ec6b00
  | 2007-05-17 15:24:36,494 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories

Could somebody tell me what is the reason of the message "Handler supplied is not an object name." ?

Thanks in advance.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046527#4046527

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046527



More information about the jboss-user mailing list