Code Monkey home page Code Monkey logo

Comments (15)

maxleiko avatar maxleiko commented on September 2, 2024

That's a good question. I'll dig into that.

from training.

maxleiko avatar maxleiko commented on September 2, 2024

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.

kehusa avatar kehusa commented on September 2, 2024

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.

maxleiko avatar maxleiko commented on September 2, 2024

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.

kehusa avatar kehusa commented on September 2, 2024

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.

maxleiko avatar maxleiko commented on September 2, 2024

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.

maxleiko avatar maxleiko commented on September 2, 2024

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.

kehusa avatar kehusa commented on September 2, 2024

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.

maxleiko avatar maxleiko commented on September 2, 2024

Just npm adduser and follow the prompts then I think.

from training.

maxleiko avatar maxleiko commented on September 2, 2024

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.

maxleiko avatar maxleiko commented on September 2, 2024

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.

kehusa avatar kehusa commented on September 2, 2024

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.

kehusa avatar kehusa commented on September 2, 2024

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.

maxleiko avatar maxleiko commented on September 2, 2024

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.

maxleiko avatar maxleiko commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.