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