Comments (15)
That's a good question. I'll dig into that.
from training.
Okay, that's because KevScript interpretation is made before runtime execution. So, it actually tries to find each TypeDefinition. Which it cannot do, because your Java comp isn't published.
from training.
How do I fix this? My java comp is in my local maven repo. Can I refer to
it from my gruntfile?
2015-02-04 9:20 GMT+01:00 Maxime Tricoire [email protected]:
Okay, that's because KevScript interpretation is made before runtime
execution. So, it actually tries to find each TypeDefinition. Which it
cannot do, because your Java comp isn't published.—
Reply to this email directly or view it on GitHub
#34 (comment)
.
Knut Eilif Husa
Tellu AS
Email: [email protected]
Mob: (+47) 452 49496
Web: www.tellu.no
from training.
No you cannot. Currently cross-platform devlopment phase is not really 'good' as you have to publish your entities first in order to make them available on Kevoree Registry.
from training.
How do I publish my components to kevoree registry? Because this is the
only way forward just now, as far as I understand?
2015-02-04 9:28 GMT+01:00 Maxime Tricoire [email protected]:
No you cannot. Currently cross-platform devlopment phase is not really
'good' as you have to publish your entities first in order to make them
available on Kevoree Registry.—
Reply to this email directly or view it on GitHub
#34 (comment)
.
Knut Eilif Husa
Tellu AS
Email: [email protected]
Mob: (+47) 452 49496
Web: www.tellu.no
from training.
I recommend you to publish the JavaScript parts. As it is way simplier than the Java/Mvn part.
Just register an account on npmjs.org and then follow those step to log into your local npm https://docs.npmjs.com/cli/adduser
Once this is done, you can do "npm publish"
from training.
And "npm publish" will trigger the required grunt task that will also publish your entity to Kevoree Registry.
Publish to Kevoree Registry without publishing on mvn, npm, or anything else makes no sense. You have to have your DeployUnits available on some package manager. That's why, in kevoree-js, a grunt task is triggered when you do an "npm publish", and for Kevoree java, it is also made on mvn publish by a Kevoree mvn plugin.
from training.
What specifically do I have to enter here?
My user at npmjs is kehusa
npm adduser --registry=http://myregistry.example.com --scope=@myco
2015-02-04 9:40 GMT+01:00 Maxime Tricoire [email protected]:
And "npm publish" will trigger the required grunt task that will also
publish your entity to Kevoree Registry.Publish to Kevoree Registry without publishing on mvn, npm, or anything else
makes no sense. You have to have your DeployUnits available on some package
manager. That's why, in kevoree-js, a grunt task is triggered when you do an
"npm publish", and for Kevoree java, it is also made on mvn publish by a
Kevoree mvn plugin.—
Reply to this email directly or view it on GitHub.
Knut Eilif Husa
Tellu AS
Email: [email protected]
Mob: (+47) 452 49496
Web: www.tellu.no
from training.
Just npm adduser
and follow the prompts then I think.
from training.
It is the default login process. The goal is to register your local npm cli to the official npm registry. For the Kevoree Registry you do not have to do anything. Everything is handled by the grunt task.
from training.
If you check the package.json of your component project you will see that on "npm publish" (scripts.postpublish) it triggers "grunt publish", that's what publishes your kevlib.json to Kevoree Registry once your node.js module is published on npm.
from training.
Then I successfully published my component :-)
2015-02-04 9:54 GMT+01:00 Maxime Tricoire [email protected]:
If you check the package.json of your component project you will see that
on "npm publish" (scripts.postpublish) it triggers "grunt publish", that's
what publishes your kevlib.json to Kevoree Registry once your node.js
module is published on npm.—
Reply to this email directly or view it on GitHub
#34 (comment)
.
Knut Eilif Husa
Tellu AS
Email: [email protected]
Mob: (+47) 452 49496
Web: www.tellu.no
from training.
I am then following the description in tutorial 5, but of course, my java
comp ChatClient is not available in kevoree registry:
Unable to find "no.tellu.ChatClient" in current model nor on Kevoree
registry.
It is on my local machine. Is there any way to load it?
2015-02-04 9:57 GMT+01:00 Knut Eilif Husa [email protected]:
Then I successfully published my component :-)
2015-02-04 9:54 GMT+01:00 Maxime Tricoire [email protected]:
If you check the package.json of your component project you will see that
on "npm publish" (scripts.postpublish) it triggers "grunt publish", that's
what publishes your kevlib.json to Kevoree Registry once your node.js
module is published on npm.—
Reply to this email directly or view it on GitHub
#34 (comment)
.Knut Eilif Husa
Tellu AS
Email: [email protected]
Mob: (+47) 452 49496
Web: www.tellu.no
Knut Eilif Husa
Tellu AS
Email: [email protected]
Mob: (+47) 452 49496
Web: www.tellu.no
from training.
Oh, I'm sorry Knut, I wasn't well awake obviously. Your use case does not involve "real" cross-platform component, so you don't really need to publish any of your component.
Actually you should use two separate KevScript, so that the interpretation won't trigger errors, something as:
For kevoree-js
add jsNode : JavascriptNode
add jsNode.comp: no.tellu.MyJsComp
add javaNode : JavaNode
add group: WSGroup
set group.master = "javaNode"
attach jsNode, javaNode group
network javaNode.ip.lo 127.0.0.1
and for kevoree java
add jsNode : JavascriptNode
add javaNode : JavaNode
add javaNode.comp: no.tellu.MyJavaComp
add group: WSGroup
set group.master = "javaNode"
attach jsNode, javaNode group
network javaNode.ip.lo 127.0.0.1
By doing so, you get rid of the KevScript interpretor error, and your example is still running as you expect.
Really sorry for the misleading :(
from training.
Because, as you said, and you said it well, the JavascriptNode doesn't need to know the components running on the Java platform, so just get rid of them in the KevScript you are using in your kevoree-js runtime.
Same thing for the Java runtime, but for the JavaScript libraries.
from training.
Related Issues (20)
- how to write a maths function in thingml and pass the function result into parameter HOT 3
- how to define the element formally HOT 1
- About Reading ThingML model HOT 4
- the 'keep if' does not work properly
- keep if does not work always correct HOT 2
- 'keep if' - different output by Java and JavaScript HOT 2
- How to maniplate ThingML models HOT 3
- "join" and "size-window" HOT 3
- http://dist.thingml.org/update doesn't work here HOT 1
- Failing compile of old code - New syntax for network plugins? HOT 2
- How to make a kevoreejs docker with initial kevscript HOT 3
- ThingML_CEP HOT 2
- Problems with running kevoree?? HOT 26
- Issues to manipulate ThingML
- Issues when manipulating ThingML HOT 5
- How to manipulate thingml HOT 3
- configure Java package name HOT 2
- HelloWorld compilation error (other problem than related topics) HOT 2
- The Hello World example has a warning HOT 3
- Cannot download HEADS IDE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from training.