VA 8.5 - WebServices, Headless IC packaging

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

VA 8.5 - WebServices, Headless IC packaging

Marten Feldtmann-2
I tried to expand my headless IC base to WebServices and RMI support, but the headless IC packager fails on the packaging rules in

SstWebServicesContainerApp class>>packagingRulesFor:

...
aPackagedImage initializeClassVariable: 'Containers' to: 'SstWSContainer newContainerCollection' inClassNamed: #SstWSContainer


on the other hand: why does one need this instead of doing the initialization by manual code in the #loaded method or (in case of this application) in the method #setupAfterLoad, which could be introduced here ...

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/va-smalltalk/-/p1RmRxpgrgIJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/va-smalltalk?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: VA 8.5 - WebServices, Headless IC packaging

Wayne Johnston
I am getting that also on 8.5.2, using web services for the first time in this headless image.  Seems like the runtime image works fine though.

Creation of a packaging rule by SstWebServicesContainerApp class>>#packagingRulesFor: failed. The message used to create the rule was:

#initializeClassVariable:to:inClassNamed:

The arguments used were:

(1) 'Containers'
(2) 'SstWSContainer newContainerCollection'
(3) #SstWSContainer

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: VA 8.5 - WebServices, Headless IC packaging

John O'Keefe-3
In reply to this post by Marten Feldtmann-2
Marten -

First, you don't need to package these ICs -- sstws.ic and sstrmi.ws are shipped with the product.

Second, you don't need to package them in XD, they package just fine in a development image.

John

On Wednesday, December 28, 2011 6:22:57 AM UTC-5, Marten Feldtmann wrote:
I tried to expand my headless IC base to WebServices and RMI support, but the headless IC packager fails on the packaging rules in

SstWebServicesContainerApp class>>packagingRulesFor:

...
aPackagedImage initializeClassVariable: 'Containers' to: 'SstWSContainer newContainerCollection' inClassNamed: #SstWSContainer


on the other hand: why does one need this instead of doing the initialization by manual code in the #loaded method or (in case of this application) in the method #setupAfterLoad, which could be introduced here ...

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: VA 8.5 - WebServices, Headless IC packaging

Wayne Johnston
Perhaps I did a bad thing, posting my reply to this old posting of Marten's.  I found it via a search.  I'm not doing anything with ICs, but I am getting that same packaging error -
Packaging Rule Error: Expression does not compile.
plus the other details I mentioned above.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: VA 8.5 - WebServices, Headless IC packaging

John O'Keefe-3
Wayne -

If you are packaging in XD, packaging rules involved in the operation cannot in general contain any message sends as part of the arguments. So argument (2) 'SstWSContainer newContainerCollection' is invalid. The Packager, and all the packaging rules,execute in the development environment, but the arguments to the packaging rules need to be relative to the content of the passive (XD) image and code cannot be executed in a passive image.

John 

On Sunday, May 25, 2014 5:13:27 PM UTC-4, Wayne Johnston wrote:
Perhaps I did a bad thing, posting my reply to this old posting of Marten's.  I found it via a search.  I'm not doing anything with ICs, but I am getting that same packaging error -
Packaging Rule Error: Expression does not compile.
plus the other details I mentioned above.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: VA 8.5 - WebServices, Headless IC packaging

Wayne Johnston
John:

I think you are saying those packaging rules are bad, I didn't create them.  This is what I have as the only (117/2002) edition of SstWebServicesContainerApp class>>#packagingRulesFor: - a "V 6.0.0" version of the class, which loaded in my passive image:


packagingRulesFor: aPackagedImage
" Nearly all classes in this application can be created dynamically via an XML file.  Therefore, do not reduce the contents of this
application "
aPackagedImage doNotReduceSubApplicationNamed: self symbol.
aPackagedImage initializeClassVariable: 'Containers' to: 'SstWSContainer newContainerCollection' inClassNamed: #SstWSContainer

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.