incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Morel <mmo...@apache.org>
Subject Re: Deploying new App
Date Thu, 12 Jul 2012 12:56:22 GMT
On 7/12/12 1:01 PM, Natacha Crooks wrote:
> Hi everyone, I have just started using S4, and am struggling with
> deploying my new app.
>
> I get the following message:
>
> 11:57:43.794 [main] INFO  org.apache.s4.core.Main - Starting S4 node.
> This node will automatically download applications published for the
> cluster it belongs to
> 11:59:47.293 [ZkClient-EventThread-13-localhost:2181] INFO
>   o.a.s.d.DistributedDeploymentManager - Detected new application(s) to
> deploy {}[noNacl]
> 11:59:47.388 [ZkClient-EventThread-13-localhost:2181] INFO
>   org.apache.s4.core.Server - Local app deployment: using s4r file name
> [noNacl] as application name
> 11:59:48.045 [ZkClient-EventThread-13-localhost:2181] INFO
>   org.apache.s4.core.Server - App class name is:
> 11:59:48.049 [ZkClient-EventThread-13-localhost:2181] ERROR
> org.apache.s4.core.Server - Could not load s4 application form s4r file
> [{/tmp/deploy-test/cluster1/noNacl.s4r}]
> java.lang.ClassNotFoundException: null
> at
> org.apache.s4.base.util.MultiClassLoader.loadClass(MultiClassLoader.java:71)
> ~[s4-base-0.5.0-SNAPSHOT.jar:0.5.0-SNAPSHOT]
> at
> org.apache.s4.base.util.MultiClassLoader.loadClass(MultiClassLoader.java:43)
> ~[s4-base-0.5.0-SNAPSHOT.jar:0.5.0-SNAPSHOT]
>
>
> This is after having run ./s4 s4r
> -a=N=imp.s4.example.simple.noNaCl.NaClApp
> -b=`pwd`/test-apps/noNaclSimple/build.gradle noNaClsimple (which builds
> successfully),

The syntax is incorrect, it should be ./s4 s4r 
-a=imp.s4.example.simple.noNaCl.NaClApp 
-b=`pwd`/test-apps/noNaclSimple/build.gradle noNaClsimple

(no "=N")

Thanks for reporting that, I added the following ticket for tracking the 
issue : https://issues.apache.org/jira/browse/S4-79

Hope this helps,

Matthieu




and when running ./s4 deploy
> -s4r=`pwd`/test-apps/noNaclSimple/build/libs/noNaclSimple-0.0.0-SNAPSHOT.s4r
> -c=cluster1 -appName=noNacl.
>
> Thanks a lot for the help.
> Regards
>
> --
> Natacha Crooks
> St John's College, Cambridge
>



Mime
View raw message