Re: err is deployment
Kumaravel Ganesan <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Organization | HP |
| Message-ID | <[email protected]> |
Malini, You should compile your code with rmic compiler in order to generate rmi stubs. If you are compiling your code along with smartfrog core, You may add your class names in the rmitargets – a file that contains the classes that need to be compiled with the rmic compiler. - Kumaravel Ganesan MS wrote: > Hello group > I have a problem while trying to deploy a application in smartfrog.. > I want to write my own codes in my smartfrog dir,which has all necessary > bin and jars files alone. > i created a sample dir test/smartfrog/counter(counter dir from > src/examples/ same codes) > I modified the package structure&sfClass attribute as follows:sfClass > "test.smartfrog.counter.CounterImpl"; > # export > CLASSPATH=$SF/lib/sfServices.jar:$SF/lib/smartfrog.jar:$SF/lib/sf-tasks.jar:$SF/lib/log4j-1.2.8.jar > # javac test/smartfrog/counter/*.java > # jar -cvf test.jar test/smartfrog/counter/* > added manifest > adding: test/smartfrog/counter/Counter.class(in = 358) (out= > 248)(deflated 30%) > adding: test/smartfrog/counter/Counter.java(in = 642) (out= > 252)(deflated 60%) > adding: test/smartfrog/counter/CounterImpl.class(in = 5673) (out= > 2780)(deflated 50%) > adding: test/smartfrog/counter/CounterImpl.java(in = 12440) (out= > 2531)(deflated 79%) > adding: test/smartfrog/counter/components.sf(in = 1003) (out= > 426)(deflated 57%) > adding: test/smartfrog/counter/count.sf(in = 538) (out= 261)(deflated 51%) > adding: test/smartfrog/counter/example2.sf(in = 2846) (out= > 1016)(deflated 64%) > #cp test.jar $SF/lib > # export CLASSPATH=$CLASSPATH:$SF/lib/test.jar > # smartfrog -a > counterEx:DEPLOY:test/smartfrog/counter/count.sf::localhost: -e > QUIET > SmartFrogDeploymentException: 'counterEx' component. > SmartFrogLifecycleException:: Failed to register/export the object, > cause: java.rmi.StubNotFoundException: Stub class not found: > test.smartfrog.counter.CounterImpl_Stub; nested exception is: > java.lang.ClassNotFoundException: > test.smartfrog.counter.CounterImpl_Stub, cause: > SmartFrogLifecycleException:: Failed to register/export the object, > cause: java.rmi.StubNotFoundException: Stub class not found: > test.smartfrog.counter.CounterImpl_Stub; nested exception is: > java.lang.ClassNotFoundException: > test.smartfrog.counter.CounterImpl_Stub > > --- StackTrace Throwable Begins -- > SmartFrogDeploymentException: 'counterEx' component. > SmartFrogLifecycleException:: Failed to register/export the object, > cause: java.rmi.StubNotFoundException: Stub class not found: > test.smartfrog.counter.CounterImpl_Stub; nested exception is: > java.lang.ClassNotFoundException: > test.smartfrog.counter.CounterImpl_Stub, cause: > SmartFrogLifecycleException:: Failed to register/export the object, > cause: java.rmi.StubNotFoundException: Stub class not found: > test.smartfrog.counter.CounterImpl_Stub; nested exception is: > java.lang.ClassNotFoundException: > test.smartfrog.counter.CounterImpl_Stub > *Stack trace follows: > SmartFrogDeploymentException: 'counterEx' component. > SmartFrogLifecycleException:: Failed to register/export the object, > cause: java.rmi.StubNotFoundException: Stub class not found: > test.smartfrog.counter.CounterImpl_Stub; nested exception is: > java.lang.ClassNotFoundException: > test.smartfrog.counter.CounterImpl_Stub, cause: > SmartFrogLifecycleException:: Failed to register/export the object, > cause: java.rmi.StubNotFoundException: Stub class not found: > test.smartfrog.counter.CounterImpl_Stub; nested exception is: > java.lang.ClassNotFoundException: > test.smartfrog.counter.CounterImpl_Stub > at > org.smartfrog.sfcore.common.SmartFrogDeploymentException.forward(SmartFrogDeploymentException.java:176) > at > org.smartfrog.sfcore.prim.PrimImpl.sfDeployWith(PrimImpl.java:587) > at > org.smartfrog.sfcore.prim.PrimDeployerImpl.deploy(PrimDeployerImpl.java:108) > at > org.smartfrog.sfcore.processcompound.PrimHostDeployerImpl.deploy(PrimHostDeployerImpl.java:135) > at > org.smartfrog.sfcore.prim.PrimDeployerImpl.deploy(PrimDeployerImpl.java:231) > at > org.smartfrog.sfcore.deployer.SFDeployer.deploy(SFDeployer.java:97) > > Even at the server i get the same errs. > So where i am missing classes.I want to write my own codes in my > smartfrog dir,which has all necessary bin and jars files alone. > > Thanks > ms > > ------------------------------------------------------------------------ > *Free* antispam, antivirus and 1GB to save all your messages > Only in Yahoo! Mail: http://in.mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r