Re: [Tomcat] -Classpath ordering issue (Dev WO)
Xavier, I make use of the PreResources and PostResources directives in my context.xml file. FYI, I noticed you put the context.xml file in WEB-INF. I have mine in the META-INF folder. Mine looks like this: Hope it helps, F -- Faizel Dakri list...@dakri.com > On Jan 30, 2020, at 04:13 AM, Dev WO via Webobjects-dev > wrote: > > Hi Matthew, > > I will try that. > > Also I’m currently looking into using the PreResources feature like this: > > -creating a directory mywebapp/WEB-INF/prelib with all the system jars (the > Apple ones) > -mywebapp/WEB-INF/context.xml contains > > > >className="org.apache.catalina.webresources.DirResourceSet" > base=“/WEB-INF/prelib" webAppMount="/WEB-INF/lib" /> > > > > but it doesn’t work for now. I also tried with an absolute path, but same > failure ( java.lang.ClassNotFoundException for WOApplication) > > Have you ever tried that way? any pointers? > > Thanks, > > Xavier > > >> On 30 Jan 2020, at 10:57, > <mailto:matthew.long...@proact.net>> > <mailto:matthew.long...@proact.net>> wrote: >> >> Hi Xavier >> >> We had exactly the same issue on one of our sites. In the end the resolution >> was not to change the tomcat class loaders but to actually pre expand the >> required jars into a classes directory within the war, in our case it was >> only the ERExtensions.jar needed >> >> e.g. >> X.war/WEB-INF/classes/com/webobjects/... >> X.war/WEB-INF/classes/er/extensions/... >> >> Anything in here will be loaded prior to the jars within WEB-INF/lib >> >> Regards >> Matt >> >> -Original Message- >> From: Webobjects-dev >> > <mailto:webobjects-dev-bounces+matthew.longden=proact@lists.apple.com>> >> On >> Behalf Of webobjects-dev-requ...@lists.apple.com >> <mailto:webobjects-dev-requ...@lists.apple.com> >> Sent: 29 January 2020 17:57 >> To: webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com> >> Subject: Webobjects-dev Digest, Vol 17, Issue 32 >> Importance: Low >> >> Send Webobjects-dev mailing list submissions to >> webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com> >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.apple.com/mailman/listinfo/webobjects-dev >> or, via email, send a message with subject or body 'help' to >> webobjects-dev-requ...@lists.apple.com >> >> You can reach the person managing the list at >> webobjects-dev-ow...@lists.apple.com >> >> When replying, please edit your Subject line so it is more specific than >> "Re: Contents of Webobjects-dev digest..." >> >> >> Today's Topics: >> >> 1. [Tomcat] -Classpath ordering issue (Dev WO) >> 2. Re: [Tomcat] -Classpath ordering issue (Konrad Kubacki) >> 3. Fwd: [Tomcat] -Classpath ordering issue (Dev WO) >> 4. Re: [Tomcat] -Classpath ordering issue (Dev WO) >> >> >> -- >> >> Message: 1 >> Date: Wed, 29 Jan 2020 08:32:25 +0100 >> From: Dev WO >> To: "webobjects-dev@lists.apple.com" >> Subject: [Tomcat] -Classpath ordering issue >> Message-ID: <06d8ad23-3cd7-43d1-a9c9-4f7e34337...@anazys.com> >> Content-Type: text/plain;charset=utf-8 >> >> Hi WOers, >> >> I?m starting to lost my mind with a Tomcat deployment (not my choice) >> >> I have 4 machines: >> 1-Dev machine running through Eclipse and Apache (OS X) => Everything works >> 2-Test Tomcat deployment machine (OS X / Tomcat 9.0.29) => Everything works >> 3-Another test Tomcat deployment (Debian / Tomcat 9.0.20) => Everything >> works 4-Customer ?beta test" machine (Debian / Tomcat 9.0.20) => Some part >> of the app doesn?t work >> >> Of course machine #4 is the one I have the least access? >> >> By "Some part of the app doesn?t work? I mean that I have some asynchronous >> thread that do their job, I have some HTML interfaces that works, but other >> don?t... >> After way too much trial, I was able to get basically the same errors on my >> dev machine by changing the class path
Re: On the future of WO (here we go again)
Hi Andrus, Thanks for the pointers. It’s been a little while since I looked at moving to Cayenne, so this is good information. I think I might try going the annotations route or settle on interfaces, as Hugi suggested (I already do something like that, however it is driven from the EOModel userInfo when generating my parent _EOEntity classes). In any case, it is good to know that the foundations for metadata support is there if needed. Regards, F -- Faizel Dakri list...@dakri.com <mailto:list...@dakri.com> > > > On Mar 19, 2019, at 06:54 AM, Andrus Adamchik <mailto:and...@objectstyle.org>> wrote: > > Hi Faizel, > > FWIW, Cayenne actually supports various custom metadata in the model. There > is a generic extension mechanism that allows any tool (CayenneModeler, class > generator, etc.) to embed and read stuff in the project XML that is not a > part of the main schema, that can be associated with specific model objects. > Some examples where we use it internally: > > 1. Cayenne 4.1 (that just went beta the other day) allows to embed "dbImport" > tool information in XML. It is used to keep your model in sync with > incremental DB changes. > > 2. (Perhaps more relevant) 4.1 also has a "comment" field for every object, > editable in the Modeler, that generates tags in an > alternative namespace. E.g.: > > className="org.apache.cayenne.testdo.testmap.Artist" dbEntityName="ARTIST"> >db-attribute-path="DATE_OF_BIRTH"> >xmlns:info="http://cayenne.apache.org/schema/10/info > <http://cayenne.apache.org/schema/10/info>" name="comment" value="attribute > comment"/> > > http://cayenne.apache.org/schema/10/info > <http://cayenne.apache.org/schema/10/info>" name="comment" value="test > comment"/> > > > 3. Cayenne 4.2 includes class generation settings in the model. > > So the mechanism to extend project metadata is there. Using it to your own > ends is still a bit challenging. The API is somewhat obscure. So my advice > would be to look at the alternative designs. But if they prove > unsatisfactory, we'd welcome a discussion about further extensions on Cayenne > dev@ list. We are almost there and if someone makes this feature a priority, > there's a straightforward road to implementing it. > > Andrus > > >> On Mar 18, 2019, at 7:50 AM, Faizel Dakri > <mailto:list...@dakri.com>> wrote: >> >> Hi Maik, >> >> In your conversion from EOF to Cayenne, did you have any issues with >> metadata embedded inside your EOModel userInfo dictionaries and if so, how >> you did you go about solving them? I’ve been looking at Cayenne as a >> replacement for EOF and one roadblock I am running into at the moment is >> support for a userInfo type structure in the Cayenne datamap. Admittedly, >> it’s been about 6 months or so since I’ve looked, but from what I could >> tell, this appeared to be an open issue with Cayenne. It looked like there >> might be some idea on how to implement it at one point, but I did not see >> any resolution or implementation of it. >> >> I make extensive use of the EOModel userInfo dictionary (primarily on >> entities, but also on properties) to identify things that are configured at >> runtime. For example, I have a key named “taggable” that drives the template >> generation of my _EOEntity.java files. I also use userInfo entries to >> specify information for my auditing framework (e.g. being able to specify >> whether or an entity is audited, which keys to audit, etc.) or my custom >> filtering framework (e.g. to be able to turn on custom searches for an >> entity and to identify the keys that can be used in custom searches). These >> are just a few examples. My current thinking is to separate this metadata >> from the model and move it into its own configuration file, but that opens >> up the risk of the metadata getting out of sync with the model. It also >> seems a little dirty to me. >> >> Curious if anyone else is in a similar position, or has already solved such >> an issue? >> >> Regards, >> >> F >> >> -- >> Faizel Dakri >> list...@dakri.com <mailto:list...@dakri.com> >> >> >> >>> On Mar 15, 2019, at 10:18 AM, Maik Musall wrote: >>> >>> Hi Mark, >>> >>> In 2017, Hugi and I converted a large project (>800.000 lines) from EOF to >>> Cayenne, within a few months. Had parallel branches for a while and th
Re: On the future of WO (here we go again)
Hi Maik, Thanks for the information, and especially for the nudge towards using annotations. I think I like that idea better, better than even my current scheme of using the userInfo dictionary in the model. I don’t know how hard it will be, or even if it will work for me, but it is definitely an avenue that I’m going to start looking into. Regards, F -- Faizel Dakri list...@dakri.com <mailto:list...@dakri.com> On Mar 18, 2019, at 9:11 AM, Maik Musall mailto:m...@selbstdenker.ag>> wrote: > Hi Faizel, > > the EOF model importer wasn't perfect. Quite a few steps on the way to > Cayenne involve manually dealing with edge cases around the lesser-used > features of EOF, and I suppose this is one of them. I didn't make important > use of the userInfo dictionaries in EOF, so I can't really offer something > from experience on that specific topic. (Maybe someone else can?) > > AFAIK, the Cayenne model doesn't support attaching arbitrary key-value data > to entities, and Cayenne experts will probably point out that the model > should be as purely that as it can be, and that other info should be stored > elsewhere, like e.g. in Annotations on the subclasses or something. > > Maik > >> Am 18.03.2019 um 05:50 schrieb Faizel Dakri > <mailto:list...@dakri.com>>: >> >> Hi Maik, >> >> In your conversion from EOF to Cayenne, did you have any issues with >> metadata embedded inside your EOModel userInfo dictionaries and if so, how >> you did you go about solving them? I’ve been looking at Cayenne as a >> replacement for EOF and one roadblock I am running into at the moment is >> support for a userInfo type structure in the Cayenne datamap. Admittedly, >> it’s been about 6 months or so since I’ve looked, but from what I could >> tell, this appeared to be an open issue with Cayenne. It looked like there >> might be some idea on how to implement it at one point, but I did not see >> any resolution or implementation of it. >> >> I make extensive use of the EOModel userInfo dictionary (primarily on >> entities, but also on properties) to identify things that are configured at >> runtime. For example, I have a key named “taggable” that drives the template >> generation of my _EOEntity.java files. I also use userInfo entries to >> specify information for my auditing framework (e.g. being able to specify >> whether or an entity is audited, which keys to audit, etc.) or my custom >> filtering framework (e.g. to be able to turn on custom searches for an >> entity and to identify the keys that can be used in custom searches). These >> are just a few examples. My current thinking is to separate this metadata >> from the model and move it into its own configuration file, but that opens >> up the risk of the metadata getting out of sync with the model. It also >> seems a little dirty to me. >> >> Curious if anyone else is in a similar position, or has already solved such >> an issue? >> >> Regards, >> >> F >> >> -- >> Faizel Dakri >> list...@dakri.com <mailto:list...@dakri.com> >> >> >> >>> On Mar 15, 2019, at 10:18 AM, Maik Musall >> <mailto:m...@selbstdenker.ag>> wrote: >>> >>> Hi Mark, >>> >>> In 2017, Hugi and I converted a large project (>800.000 lines) from EOF to >>> Cayenne, within a few months. Had parallel branches for a while and then >>> switched in production, never looked back. Cayenne is similar enough that >>> most of the work is either boilerplate conversion or actually making use of >>> the newly-gained benefits. Very few hard problems encountered, and all >>> solved. >>> >>> Let's have a talk in Frankfurt about what your EOF specifics actually are. >>> >>> Maik >>> >>> >>>> Am 15.03.2019 um 15:34 schrieb Morris, Mark >>> <mailto:mark.mor...@experian.com>>: >>>> >>>> Just to throw our 2¢ in, we have an extremely large codebase that is very >>>> heavily invested in EOF, using it in several ways that dive deep into its >>>> bowels. ;-) Of course, we also use the WOF part of WO, and all of Wonder. >>>> >>>> Regards, >>>> Mark >>>> >>>>> On Mar 15, 2019, at 5:51 AM, Hugi Thordarson >>>> <mailto:h...@karlmenn.is>> wrote: >>>>> >>>>> Hi all. >>>>> In preparation for the coming WODay in Frankfurt, I'd love it if you'd be >>>>> open to having a discussion on
Re: On the future of WO (here we go again)
Hi Maik, In your conversion from EOF to Cayenne, did you have any issues with metadata embedded inside your EOModel userInfo dictionaries and if so, how you did you go about solving them? I’ve been looking at Cayenne as a replacement for EOF and one roadblock I am running into at the moment is support for a userInfo type structure in the Cayenne datamap. Admittedly, it’s been about 6 months or so since I’ve looked, but from what I could tell, this appeared to be an open issue with Cayenne. It looked like there might be some idea on how to implement it at one point, but I did not see any resolution or implementation of it. I make extensive use of the EOModel userInfo dictionary (primarily on entities, but also on properties) to identify things that are configured at runtime. For example, I have a key named “taggable” that drives the template generation of my _EOEntity.java files. I also use userInfo entries to specify information for my auditing framework (e.g. being able to specify whether or an entity is audited, which keys to audit, etc.) or my custom filtering framework (e.g. to be able to turn on custom searches for an entity and to identify the keys that can be used in custom searches). These are just a few examples. My current thinking is to separate this metadata from the model and move it into its own configuration file, but that opens up the risk of the metadata getting out of sync with the model. It also seems a little dirty to me. Curious if anyone else is in a similar position, or has already solved such an issue? Regards, F -- Faizel Dakri list...@dakri.com <mailto:list...@dakri.com> > On Mar 15, 2019, at 10:18 AM, Maik Musall <mailto:m...@selbstdenker.ag>> wrote: > > Hi Mark, > > In 2017, Hugi and I converted a large project (>800.000 lines) from EOF to > Cayenne, within a few months. Had parallel branches for a while and then > switched in production, never looked back. Cayenne is similar enough that > most of the work is either boilerplate conversion or actually making use of > the newly-gained benefits. Very few hard problems encountered, and all solved. > > Let's have a talk in Frankfurt about what your EOF specifics actually are. > > Maik > > >> Am 15.03.2019 um 15:34 schrieb Morris, Mark > <mailto:mark.mor...@experian.com>>: >> >> Just to throw our 2¢ in, we have an extremely large codebase that is very >> heavily invested in EOF, using it in several ways that dive deep into its >> bowels. ;-) Of course, we also use the WOF part of WO, and all of Wonder. >> >> Regards, >> Mark >> >>> On Mar 15, 2019, at 5:51 AM, Hugi Thordarson >> <mailto:h...@karlmenn.is>> wrote: >>> >>> Hi all. >>> In preparation for the coming WODay in Frankfurt, I'd love it if you'd be >>> open to having a discussion on the status and future of WO, so we can enter >>> the coming work prepared. >>> >>> I'd like to begin by sharing my own thoughts on the matter, based on my >>> current stack and experience. It's a rehash of something I posted to our >>> Slack yesterday, may sound revolutionary and will no doubt be >>> controversial, but I think some outside-the-box thinking is required at >>> this time. This is lengthy, sorry about that… >>> >>> -- >>> >>> In the past few years I've been working towards minimising the use and >>> effect of WO/Wonder on my stack, so when and if The Time comes, I and my >>> customers have a migration path forward. Among the things I've done is move >>> from EOF to Cayenne and from Ant to Maven (to make using 3rd party jars, >>> including Cayenne easier), both of which have turned out to have been very >>> happy decisions which I wholeheartedly recommend, regardless of anything >>> else you do. >>> >>> I love working with my WO/Cayenne stack, which is currently only "polluted" >>> by the following frameworks: >>> >>> -- WO: >>> * JavaFoundation (indirectly through WO, I never use foundation classes in >>> my code unless absolutely required by WO) >>> * JavaWebObjects >>> >>> -- Wonder (I consider Wonder "polluted" since it depends on WO/EOF) >>> * ERExtensions (only the WO stuff, not the EOF stuff) >>> • Ajax >>> • WOOgnl (indirectly for parsing Wonder-style inline templates) >>> …and of course then there's the deployment stuff (JavaMonitor,wotaskd, >>> adaptors). >>> >>> Given this, here's my proposal for a way forward: >>> * We abandon EOF (and, in fact, any ORM—this is not meant to be a full >
Re: AWS ECS - containerizing WO deployments
I don’t do AWS, however I do have a prototype environment running on an internal Ubuntu VM in which I deploy a set of docker containers: one for database, one for web server and another for app server (my apps run in Tomcat from WAR files, not WOMonitor—don’t know if that matters to you). Note that all of this runs on a single VM—I haven’t split up the containers across the network, nor have I employed anything like Docker swarm or kubernetes. Not yet, at least. So if you’re looking for input on that front, I’m afraid I don’t have anything to provide. I can’t say how my application would fare in real world production use, but for my current prototyping purposes it works well enough. I run everything on a Ubuntu VM (hosted in a Hyper-V cluster) with the docker containers orchestrated via docker-compose. If your AWS machine can run Docker, I would imagine that the process to get an application running on it would not be too terribly different, since most of it is handled by Docker. From my experience, getting things working in Docker was not terribly hard, especially after I was able to get the hang of docker volume mounting and docker-compose. Docker-Compose allows you to specify all of your containers and their dependencies in one place and then it’s easy to startup and shutdown your application stack. You can even startup individual containers, which makes it easy to develop and test in Eclipse against the same database that I’m running in Docker. In my compose file, I have three “services” defined: dbserver, appserver and webserver. Each of these has its own Dockerfile to build an image, a set of ports that are exposed (I expose ports on each service, however in production, you’d only need to expose the webserver ports) and any volumes that are to be mounted into the container. The Dockerfiles for each container range from trivial (e.g. the postgresql dbserver only exposes a network port) to only slightly more complex (the one for the appserver does some installs, symlinking and copying of files). One of the nice things about Docker-Compose is that it takes care of the networking between containers, so you can refer to your services as hostnames (e.g. in a connection dictionary, I can specify the database host as dbserver to match my dbserver service). In my environment, my webserver talks to the appserver container by specifying the name as “appserver”. Similarly, my appserver container refers to my dbserver container as “dbserver”. In my setup, all of my application’s required files/folders are present under a single directory (e.g. /opt/myapp). Under that folder I have my database directory, my config files (including the ones that will eventually make it to /etc/WebObjects), my document root, and my web apps. I then mount that path (or specific subfolders as needed) into my containers as a docker volume in my compose file. For example, for the database, I might have the Postgres database in /opt/myapp/data, which I would mount to /var/lib/postgresql/data. For the app server and web servers, I mount the root folder (/opt/myapp) and then either use symlinks within the container to point to specific config files or copy over my custom config files to the container (the symlinks and file copying is handled in the Dockerfile for that container). There are a few improvements that I’d like to make: being able to specify proper dependencies between containers, being able to automate the docker build process, and having docker-compose automatically start up the environment at machine boot. Docker-Compose lets you specify a dependency between containers so that my appserver container isn’t started before the dbserver container *starts*, however there’s no guarantee that the dbserver container is actually *ready* before the appserver starts. In practice, I’ve found that the database container is always ready before the app server, however I believe this is simply because it starts up faster (it’s a small Postgres server). Since I’m prototyping, I currently deploy manually with a mvn depedency:get from our repo manager to get the WAR files into my webapps folder—it works for now, since it’s just me putting out test versions, however I’d like to automate the docker build process so that it is driven from commits to the repository (I haven’t yet set up a Jenkins environment, so that is probably the next step for me). Having the docker-compose environment started at boot is another improvement high on my list. I know it can be done, and it may already be capable of doing it, but I haven’t spent any significant energy or time investigating this as I don’t need it at the moment. Hope that helps. F -- Faizel Dakri list...@dakri.com <mailto:list...@dakri.com> > On Mar 15, 2019, at 01:23 PM, Joe Smith <mailto:sjoe76...@gmail.com>> wrote: > > Does anyone have experience deploying a WO app to a Docker container. >
Re: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5
I’ve been using Eclipse 2018-12 for a few weeks now and it appears to be working fine. I haven’t yet run into anything surprising. F -- Faizel Dakri list...@dakri.com <mailto:list...@dakri.com> > On Feb 5, 2019, at 11:59 AM, Morris, Mark <mailto:mark.mor...@experian.com>> wrote: > > I’m on Eclipse 4.6 and it’s working fine, but a few of my coworkers are on > Eclipse 4.7 and are very happy with it. (We all use WOLips.) > > Coincidentally I just downloaded Eclipse 2018-12 yesterday to give it a try > sometime in the next week or so. Anyone try this yet? > > Regards, > Mark > > From: Webobjects-dev > <mailto:webobjects-dev-bounces+mark.morris=experian@lists.apple.com>> on > behalf of Aaron Rosenzweig mailto:aa...@chatnbike.com>> > Date: Tuesday, February 5, 2019 at 11:41 AM > To: John Pollard mailto:j...@pollardweb.com>> > Cc: WebObjects Development <mailto:webobjects-dev@lists.apple.com>> > Subject: Re: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars > 4.5 > > Hi John, I’m on Eclipse 4.6 and it is ok. I have not tried 4.7 with WO. > > Newer Eclipse can sometimes bring better debugging and general Java goodness > but other than that… > > If you are reasonably happy, I wouldn’t switch. > > I guess for giggles and grins you could try out 4.7 and see how it goes. > AARON ROSENZWEIG / Chat 'n Bike > <https://urldefense.proofpoint.com/v2/url?u=https-3A__ving.apple.com-3A443_proxy-3Ft2-3DdE0W8n0x5N-26o-3Dhttp-253A-252F-252Fwww.chatnbike.com=DwMFaQ=BNNF-YNv0CLLslhP2Bcx5Q=R0ZqsewJs3eSJk7vLCqZv0r5kJlLXQLnGTeg9t8MlqA=JwYYYItZqnIIjXsMwec_esKqXP_g1zSmGw8rLMl62r4=THjgY_WfiXuTKCA9c-0-fjTfBrtl-F9BqRY56dbL14M=> > e: aa...@chatnbike.com <mailto:aa...@chatnbike.com> t: (301) 956-2319 > > > > > > > > On Feb 5, 2019, at 5:08 AM, John Pollard <mailto:j...@pollardweb.com>> wrote: > > Hi list, > > My last update of Eclipse/WOLips was in 2015 and I am on Eclipse Mars 4.5.2 + > wolips / subclipse and all works fine. > > Should I move up (to Eclipse/WOLips 4.7?) or not much reason to do so? > > Many thanks for your advice, > > John > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com > <mailto:Webobjects-dev@lists.apple.com>) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com > <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.apple.com_mailman_options_webobjects-2Ddev_aaron-2540chatnbike.com=DwMFaQ=BNNF-YNv0CLLslhP2Bcx5Q=R0ZqsewJs3eSJk7vLCqZv0r5kJlLXQLnGTeg9t8MlqA=JwYYYItZqnIIjXsMwec_esKqXP_g1zSmGw8rLMl62r4=KaHyt-qKoncKDK_vw1wWOFIXYjOuVFLkqYRqYi02VSE=> > > This email sent to aa...@chatnbike.com <mailto:aa...@chatnbike.com> > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com > <mailto:Webobjects-dev@lists.apple.com>) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com > <https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com> > > This email sent to list...@dakri.com <mailto:list...@dakri.com> ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Going out of the community
Pascal, Thanks for all of your efforts over the years. I am glad that I was finally able to make it to WOWODC this year and meet you in person. I hope you do take some time and start enjoying life—you deserve it. All the best to you and whatever you embark on next. F -- Faizel Dakri list...@dakri.com <mailto:list...@dakri.com> > On 2016-Oct-06, at 05:44 PM, Pascal Robert <prob...@macti.ca > <mailto:prob...@macti.ca>> wrote: > > Hello everyone, > > In the events in my life in the last year, and having someone new in my > heart, I realize that it’s really time for me to leave the community. I just > don’t have the time and the will to continue, even more that I don’t even do > development anymore and my two WOWODC presentations were boring as hell. I > really need to start enjoying life. > > No worry about the content. Maik will take over the wiki and Jenkins before > the end of the month, so you won’t notice anything. Everything will still be > on If someone wants to take over the two Twitter accounts, I can send you the > usernames and passwords. > > We still need to check how the money from the association will be > distributed. Either we will distribute it in parts to each valid sponsor, or > something else. I won’t take a dime, and I don’t want to. > > About WOWODC, I do hope that others will take over. I can still organize it > in Montreal with the help of the event manager, but I won’t present. > > Thanks for all your support over the years, and I do hope to see you again > sometime, > > — Pascal > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com > <mailto:Webobjects-dev@lists.apple.com>) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com > <https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com> > > This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Maven migration: last two hurdles
Regarding your second issue, I also keep my components grouped in subfolders and I was never able to find an automated way to flatten just the components subfolders. I ended up having to explicitly exclude all subfolders under src/main/components and then add each subfolder as a resource directory individually so that each component in that subdirectory was installed in the Resources folder. It’s not pretty and may not be the cleanest way to do things, but it works for me. You just have to remember to update your POM if you add/remove component subfolders. In my case, my subfolder structure is pretty static and mainly kept in a framework, so I don’t have to make changes often. Here’s an excerpt from one of my framework POMs. In my project, I have a few subfolders under the main component folder to group related components, e.g.: src/main/components/ …/admin/ …/common/ …/dashboards/ … Then my POM looks something like this (I’ve removed some non-relevant stuff): 4.0.0 ... abacus-views woframework Abacus Views ${project.artifactId} Resources ${basedir}/src/main/components admin/**/* common/**/* dashboard/**/* ... Resources ${basedir}/src/main/components/admin Resources ${basedir}/src/main/components/common Resources ${basedir}/src/main/components/dashboard ... ... ... Hope that helps. F -- Faizel Dakri list...@dakri.com <mailto:list...@dakri.com> > On 2016-Oct-09, at 06:29 AM, Paul Hoadley <pa...@logicsquad.net > <mailto:pa...@logicsquad.net>> wrote: > > Hello, > > Well, I say the _last_ two hurdles. They’re at least the _current_ two > hurdles. I’ve got this a long way, but I’m still not there. I’ve been > migrating an app and its 10 or so framework dependencies. Everything builds > (both locally on OS X and on a Jenkins CI server running Amazon Linux), but > I’m stuck on launch. > > 1. Launching in Eclipse I get this: > > WARN NSLog - A fatal exception occurred: There is no model named > 'LSNotification' in this model group. > [2016-10-9 11:11:26 UTC] java.lang.IllegalArgumentException: There is > no model named 'LSNotification' in this model group. > at > er.extensions.migration.ERXMigrator._buildDependenciesForModelsNamed(ERXMigrator.java:274) > > That model is in LSNotification.framework, which appears to be built > correctly, and its JAR (which contains that model) is in the built > application bundle under target. (Is this even what Eclipse is running when I > hit launch?) If I go into that bundle on the command line and launch by hand, > I _don’t_ get this error, which is encouraging—the application finds that > model, runs the migrations (and then fails elsewhere—see below). What am I > overlooking when I launch from Eclipse? I’ve unchecked > NSProjectBundleEnabled—anything else? > > 2. Launching from the command line, I get bitten by an issue Mark Wardle > brought up last month: we have sub-directories to group components under > src/main/components. We have sub-directories to group resources under > src/main/webserver-resources. We can set flattenResources to true for the > maven-wolifecycle-plugin, but that flattens _both_. We want to flatten > components, but not webserver-resources. So depending whether that’s true or > false, the app breaks because it either can’t find components or webserver > resources. Is there a workaround for this (that doesn’t involve pulling the > sub-directory structure our of src/main/resources)? > > > -- > Paul Hoadley > http://logicsquad.net/ <http://logicsquad.net/> > > > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com > <mailto:Webobjects-dev@lists.apple.com>) > Help/Unsubscribe/Update your Subscription: > https://li
Re: woframework vs jar packaging in maven
The woframework packaging creates a jar file with the Resources folder included (probably other WO-related items as well). I don’t think the standard jar packaging includes those. F -- Faizel Dakri list...@dakri.com > On 2015-Dec-08, at 05:03 PM, Ramsey Gurley <rgur...@smarthealth.com> wrote: > > Hi all, > > I’m wondering what the difference is between woframework and jar packaging > when using maven. I seem to get a jar either way. The only difference I can > see is a META-INF directory in the jar packaging. Are these two basically > interchangeable? > > Thanks, > > Ramsey > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com > > This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing artifact com.google.code:jabsorb:jar:1.2.2
No, not just you. It’s been a while, but I believe I ran into the same issue when I started out with building my frameworks and apps with Maven. You can override the Wonder specified version by declaring it explicitly in your own pom.xml with the alternate version (and groupId). I’ve been doing just that to include 1.3.2 of jabsorb in my apps and it has been working out okay. F -- Faizel Dakri list...@dakri.com > On 2015-Oct-09, at 07:16 PM, Ramsey Gurley <rgur...@smarthealth.com> wrote: > > I’m currently in the process of converting a core framework into a maven > project and I’ve run into an issue: > > Missing artifact com.google.code:jabsorb:jar:1.2.2 > > Is it just me? > > I see an alternative 1.3.2 library from org.jabsorb available. It seems like > Wonder Ajax should be moving to that one, since google code is going away, > yes? > > Maven is amazing BTW. I don’t know how I lived without it :D I’m discovering > all kinds of neat stuff just trying to convert. > > Thanks, > > Ramsey > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com > > This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WO Maven getting started
I just tried generating a hello world app using the Quick Start guide and I had to make a couple of changes to the generated POM to get it work: - In the plugins section, I changed the version of the wolifecycle plugin to 2.1 (I use 2.2.1 for my projects, but 2.1 it seems to work). - Get rid of the “wonder.classifier" tags in the dependencies section. I don’t think those are used any more. Try recompiling after that--I think that should get you going. I do have a repository manager sitting between my machine and the wocommunity repos, but since it is pulling the same dependencies, it should work the same for you. FYI: if you downloaded the archetype-catalog.xml file at the top of the Quick Start page, you will get many older archetype versions in your catalog. You probably want to download the current catalog from the repo directly: http://maven.wocommunity.org/service/local/repositories/releases/content/org/objectstyle/woproject/maven2/archetypes/2.1/archetypes-2.1-catalog.xml Good luck. F Faizel Dakri list...@dakri.com > On 2015-Sep-11, at 04:19 PM, Ramsey Gurley <rgur...@smarthealth.com> wrote: > > So I really desperately want to migrate my projects to Maven. I tried back in > May when I had a chance, and failed. I’m trying again now. I can’t get a > hello world to compile. I’m starting here > > https://wiki.wocommunity.org/display/WOL/Quick+Start > > But from step 5 on, nothing works. I installed the m2e plugin on mars, > imported my hello world, and I get > > Plugin execution not covered by lifecycle configuration: > org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.0.17:woapplication > (execution: default-woapplication, phase: generate-test-resources) > pom.xml /testingline 26 Maven Project Build Lifecycle Mapping Problem > > and > > Plugin execution not covered by lifecycle configuration: > org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.0.17:define-woapplication-resources > (execution: default-define-woapplication-resources, phase: validate) pom.xml > /testingline 26 Maven Project Build Lifecycle Mapping Problem > > If I simply try to mvn clean package in the project directory, I get > > [ERROR] Failed to execute goal on project testing: Could not resolve > dependencies for project test:testing:woapplication:1.0-SNAPSHOT: The > following artifacts could not be resolved: > wonder.core:ERExtensions:jar:wo54:6.1.3-SNAPSHOT, > wonder.core:WOOgnl:jar:wo54:6.1.3-SNAPSHOT, > wonder.core:ERPrototypes:jar:6.1.3-SNAPSHOT: Failure to find > wonder.core:ERExtensions:jar:wo54:6.1.3-SNAPSHOT in > http://maven.wocommunity.org/content/groups/public-snapshots was cached in > the local repository, resolution will not be reattempted until the update > interval of wocommunity.snapshots has elapsed or updates are forced -> [Help > 1] > > Can anyone explain why this isn’t working? > > Thanks, > > Ramsey > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com > > This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WO Maven getting started
As to the why it was not working, I believe it was because of the “wonder.classifier” defined in the pom.xml, whose value was set to wo54. That classifier was used to identify different instances of the same dependency, one for WO 5.4 and another for WO 5.3. But I think that classifier is a holdover from earlier versions of Wonder (when WO 5.4 and 5.3 were being used simultaneously) and is no longer used; it seems the archetype that was used to generate the pom.xml is still including it, though. That said, I can’t explain the missing ERPrototypes artifact in your error message. Perhaps it has something to do with the version of the wolifecycle plugin that was being referenced. F -- Faizel Dakri list...@dakri.com > On 2015-Sep-11, at 04:19 PM, Ramsey Gurley <rgur...@smarthealth.com> wrote: > > So I really desperately want to migrate my projects to Maven. I tried back in > May when I had a chance, and failed. I’m trying again now. I can’t get a > hello world to compile. I’m starting here > > https://wiki.wocommunity.org/display/WOL/Quick+Start > > But from step 5 on, nothing works. I installed the m2e plugin on mars, > imported my hello world, and I get > > Plugin execution not covered by lifecycle configuration: > org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.0.17:woapplication > (execution: default-woapplication, phase: generate-test-resources) > pom.xml /testingline 26 Maven Project Build Lifecycle Mapping Problem > > and > > Plugin execution not covered by lifecycle configuration: > org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.0.17:define-woapplication-resources > (execution: default-define-woapplication-resources, phase: validate) pom.xml > /testingline 26 Maven Project Build Lifecycle Mapping Problem > > If I simply try to mvn clean package in the project directory, I get > > [ERROR] Failed to execute goal on project testing: Could not resolve > dependencies for project test:testing:woapplication:1.0-SNAPSHOT: The > following artifacts could not be resolved: > wonder.core:ERExtensions:jar:wo54:6.1.3-SNAPSHOT, > wonder.core:WOOgnl:jar:wo54:6.1.3-SNAPSHOT, > wonder.core:ERPrototypes:jar:6.1.3-SNAPSHOT: Failure to find > wonder.core:ERExtensions:jar:wo54:6.1.3-SNAPSHOT in > http://maven.wocommunity.org/content/groups/public-snapshots was cached in > the local repository, resolution will not be reattempted until the update > interval of wocommunity.snapshots has elapsed or updates are forced -> [Help > 1] > > Can anyone explain why this isn’t working? > > Thanks, > > Ramsey > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com > > This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Using WO with modern dependency management
I don’t think you have to be a maven expert, but you do have to be willing to give in to the maven way of doing things and go the whole hog. I currently have a development environment built on maven that I’m happy with, even though I started with no maven knowledge. It took a little while to get my head around maven, but in the end I like being able to quickly add a new library by adding a dependency to my pom.xml file, or even override a Wonder dependency in my local POM file. Granted, I haven’t yet had to deal with the maven deployment end of things, but I’m pretty confident that I’ll be able to jump that hurdle when the time comes. There are a couple of idiosyncrasies that I have to deal with, but overall, it is a very predictable environment. I’m targeting my builds to run as true wars in a servlet container and it is extremely nice to be able to “mvn jetty:run-war” to see that it launches in a container. Mind you, I do my development in Eclipse with WOLips and I run with direct connect from within Eclipse. From my perspective, this gives me the best of both worlds: I can develop rapidly in WOLips and then deploy to Tomcat when I’m ready by just copying over a single war file. -- Faizel Dakri list...@dakri.com On 2015-May-04, at 11:43 AM, Chuck Hill ch...@gevityinc.com wrote: I think that “Maven expert” is the key here. This is not a trivial thing to setup correctly and maintain. It is trivial to setup and use incorrectly and I have seen the pain resulting from that. To benefit from Maven you need to really deeply understand Maven and its approach to dependancy management. And you need to ensure that the whole team plays by The Maven Rules, even if it makes more work short term and a bit of cheating does not seem that bad at the moment. Chuck On 2015-05-04, 8:29 AM, Jean-François Veillette wrote: At my previous workplace, we did the switch to Maven. Luckily we had a real maven expert to drive the move. We started with around 50+ projects, all ant based, using the ‘standard’ fluffy-bunny layout. He added pom.xml here and there, and everything just started working with maven. We had choice to build/run with maven and/or ant and it was (almost) transparent. The only exception was that if you decided to use in maven, you had to change the class path to remove everything but the maven and java dependencies (2 lines left), a simple .classpath that was standard and could be copied from one project to the other. The maven build was then integrated with Jenkins (CI) and SonarQube (so that future ‘JF’ is happy with old ‘JF’, and all the team's work are standardized a bit) with ease. From my experience, the team was happy with the Maven switch, none of us had to become an expert (because we had one already). Maven help a lot on easing the dependency management of your apps (a building block only declare his direct dependency). Once you remove the noise of declaring dependencies, you will be left with a clear graph of dependent block. You will then have to tackle the real problem of incompatible dependencies (A need B and Xv1, but B need Xv2). Maven will make the graph simple and clear, it will try to provide helper but can’t really help much after that. jfv On May 4, 2015, at 5:09 AM, David Avendasora webobje...@avendasora.com mailto:webobje...@avendasora.com wrote: On May 1, 2015, at 6:35 PM, Chuck Hill ch...@gevityinc.com mailto:ch...@gevityinc.com wrote: Maven seems like a better thought out and implemented solution. … Have you ever had one of those moments where things just seem so off-kilter you’re sure you’re having a dream, but no matter how many times you cry out for mommy you are left sitting there slowly realizing that there’s been some fundamental shift in the universe that you missed out on. (And your wife is slowly picking up her phone and dialing your therapist. Again.) — WebObjects - so easy that even Dave Avendasora can do it!™ — David Avendasora Senior Software Abuser Nekesto, Inc. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Using WO with modern dependency management
://maven.wocommunity.org/content/groups/public/archetype-catalog.xml [3] https://wiki.wocommunity.org/display/documentation/Maven+Running+or+Debugging+as+WO+Application -- Faizel Dakri list...@dakri.com On 2015-May-04, at 11:43 AM, Chuck Hill ch...@gevityinc.com wrote: I think that “Maven expert” is the key here. This is not a trivial thing to setup correctly and maintain. It is trivial to setup and use incorrectly and I have seen the pain resulting from that. To benefit from Maven you need to really deeply understand Maven and its approach to dependancy management. And you need to ensure that the whole team plays by The Maven Rules, even if it makes more work short term and a bit of cheating does not seem that bad at the moment. Chuck On 2015-05-04, 8:29 AM, Jean-François Veillette wrote: At my previous workplace, we did the switch to Maven. Luckily we had a real maven expert to drive the move. We started with around 50+ projects, all ant based, using the ‘standard’ fluffy-bunny layout. He added pom.xml here and there, and everything just started working with maven. We had choice to build/run with maven and/or ant and it was (almost) transparent. The only exception was that if you decided to use in maven, you had to change the class path to remove everything but the maven and java dependencies (2 lines left), a simple .classpath that was standard and could be copied from one project to the other. The maven build was then integrated with Jenkins (CI) and SonarQube (so that future ‘JF’ is happy with old ‘JF’, and all the team's work are standardized a bit) with ease. From my experience, the team was happy with the Maven switch, none of us had to become an expert (because we had one already). Maven help a lot on easing the dependency management of your apps (a building block only declare his direct dependency). Once you remove the noise of declaring dependencies, you will be left with a clear graph of dependent block. You will then have to tackle the real problem of incompatible dependencies (A need B and Xv1, but B need Xv2). Maven will make the graph simple and clear, it will try to provide helper but can’t really help much after that. jfv On May 4, 2015, at 5:09 AM, David Avendasora webobje...@avendasora.com wrote: On May 1, 2015, at 6:35 PM, Chuck Hill ch...@gevityinc.com wrote: Maven seems like a better thought out and implemented solution. … Have you ever had one of those moments where things just seem so off-kilter you’re sure you’re having a dream, but no matter how many times you cry out for mommy you are left sitting there slowly realizing that there’s been some fundamental shift in the universe that you missed out on. (And your wife is slowly picking up her phone and dialing your therapist. Again.) — WebObjects - so easy that even Dave Avendasora can do it!™ — David Avendasora Senior Software Abuser Nekesto, Inc. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Using WO with modern dependency management
On 2015-May-06, at 12:34 PM, Ramsey Gurley rgur...@smarthealth.com wrote: Two questions (at the moment). In [3] it seems bundles are required. Does using maven preclude using bundleless builds? That would be a real downer. In my experience, yes, bundles are required. I have never been successful running with bundle-less builds. If I were to venture a guess, it would be that bundle-less builds depend on the Fluffy Bunny layout, whereas the standard Maven layout is different. Is it possible to have maven use local changes to Wonder in the workspace? Like, I find a bug in ERXExtensions, I fix that bug locally, then run my application dependent on ERXExtensions to test that the bug is indeed fixed before pushing it to the main wonder repo. Yes, this is possible. I don’t have Wonder in my workspace, but I do have other frameworks in there that are dependencies for other apps in the same workspace. I am able to edit a framework within Eclipse and run an app against those changes without having to deploy to my local maven repo first. I’m not entirely clear on the mechanism, but I believe that the incremental builder is used while in Eclipse and dependencies are resolved from the workspace before the local maven repo (there is a setting in a project’s properties where you can toggle this behavior; I believe it defaults to workspace resolution). F -- Faizel Dakri list...@dakri.com On May 6, 2015, at 12:47 AM, Faizel Dakri list...@dakri.com mailto:list...@dakri.com wrote: Accidentally hit send too soon… In defense of Maven, I don’t think you have to be an expert, but you do have to be willing to give in to the maven way of doing things and go the whole hog (for me, that also meant abandoning Fluffy Bunny and adopting the maven layout, something I actually had no problem with). I currently have a development environment built on maven that I’m happy with. It took a little while to get my head around maven and lots of reading and re-reading the wiki and the Wonder POMs (thanks to all that contributed), but it is now a relatively predictable environment. I don’t know if what I’m doing is the ideal way of doing things, but it does work well for me. There are a couple of idiosyncrasies to deal with, but nothing serious. Granted, I haven’t yet had to deal with the maven deployment end of things (e.g. incrementing version numbers) for a production rollout, but I’m pretty confident that I’ll be able to jump that hurdle when the time comes. What I like: - quickly adding a new library by adding a dependency to a POM file - overriding a Wonder dependency in a local POM file - building a true war that I can test with “mvn jetty:run-war” - creating a fully contained war file with static resources bundled (via a custom assembly) Stumbling blocks I encountered: - initial setup - creating projects using the m2e plugin - launching from within Eclipse - embedding all resources in the final product For the initial setup, once I got the right settings.xml [1] and archetype-catalog.xml [2] installed in my local repo things ran much more smoothly. I also ended up installing Maven 3, although I initially started with Maven 2. For the archetype-catalog.xml, I pruned it so that it only had the version 2.1 archetypes. After that, I setup a launch configuration following the wiki instructions [3]. For my project repo, I ended up with the following structure (I follow the Wonder style where my repo contains many frameworks and apps): project_root/ pom.xml frameworks/ pom.xml framework1/ pom.xml framework2/ pom.xml applications pom.xml app1/ pom.xml app2/ pom.xml In this layout, dependencies are declared in the root POM, including version info (this allows me to control which versions of which libraries are used), along with any properties that are to be pushed to child POMs. All lower-level POMs are descendants of the root POM (in a parent-child hierarchy). This is directly inspired by the way the Wonder POMs are structured. Most of the complexity is in the root POM and in the frameworks/pom.xml and applications/pom.xml (through pluginManagement and dependencyManagement sections). The individual app and framework POMs are pretty simple and are basically just dependency declarations (versions are inherited from the root POM by default) plus some workarounds for flattening resources, which is one of the idiosyncrasies I was referring to. Using this setup, it has become trivial to try out new libraries by declaring the full dependency coordinate in the root POM and then just referring to it in the specific project that needs it. I still do my development in Eclipse/WOLips running with direct connect and then deploy
maven.wocommunity.org is down
Looks like the WOCommunity maven repo is down again. Can someone with access restart it? Thanks, F -- Faizel Dakri list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Fix to allow using WOResponse.setContentStream() for servlet deployments
As has been mentioned before, WOResponse's setContentStream() is broken for servlet deployments. There looks to be a bug in com.webobjects.jspservlet._WOApplicationWrapper.dispatchServletResponse() where it ignores the WOResponse's content stream when writing to the servlet response's output stream. I have fixed this locally by replacing the WO version with a decompiled version of the class incorporating the necessary correction. If I wanted to add this to Wonder, where would I put this? This is specific to servlet builds, but could go in ERExtensions, since it already has a dependency on JavaWOJSPServlet. I do see quite a few other WO replacements in there, but I don't see any servlet code there, so I wanted to check beforehand in case there is a better place for it. Thanks. F -- Faizel Dakri list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to automate split installs with maven
How are maven folks doing split installs when packaging as a true war for tomcat (or whatever container)? I've recently converted my app to a true war, but the webserver resources are now bundled in the war and there is no webserver-resources archive generated anymore (at least not that I can find). I have many static resources that are inside embedded frameworks and these are now packaged inside the framework jar files which are embedded in my war file. Some of these static resources are css files that have relative file urls in them, but these don't get get resolved when serving static files via the container, which is why I'm wondering how to build a split install package that bundles all static resources for the app, as well as its frameworks. I recall there being support (i.e. Generating a tar archive with all static resources) for this in the traditional ant-based builds and when packaging as a woa in maven, but could not find a way when packaging as war in maven. Am I missing something? Thanks for any advice or pointers. F -- Faizel Dakri list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WOCommunity maven repository down?
It appears as though the WOCommunity maven repo is down: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. F -- Faizel Dakri list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: framework order??
I think there are a couple of ways to do this. The simplest is to specify in a Properties file the models that need to be migrated using a comma separated list of model names. The order in which the names appear is the order in which the migrations will run. For example: er.migration.modelNames=ERAttachment,MyOtherModel,MyModel I believe this will migrate completely ERAttachment, then MyOtherModel and finally MyModel (meaning that all migrations for a single model will be completed before moving on to the next). Note that if you don’t specify an order in your Properties file, the order defined by the ordering of the default model group, which is probably not what you want. If you need more fine-grained control, you can specify specific model version dependencies in your migration class. For example, if MyOtherModel3 should not be run until MyModel1 has been run, you can override the modelDependencies() method in MyOtherModel3.java: public NSArrayERXModelVersion modelDependencies() { return new NSArrayERXModelVersion(new ERXModelVersion[]{ new ERXModelVersion(“MyModel”,1 }); } This should ensure that MyOtherModel3 will run after MyModel1 has completed, even though the order of the migrations in the Properties file lists MyOtherModel before MyModel. F — Faizel Dakri list...@dakri.com mailto:list...@dakri.com On 2014-Nov-09, at 09:14 AM, Theodore Petrosky tedp...@yahoo.com mailto:tedp...@yahoo.com wrote: I am working on a project that requires ERAttachment. I am also using migrations in my app. As I am in the early stages, there are times I just drop the database, recreate it and let the migrations run from this empty database. I keep running into an issue where I am starting up on a fresh clean database. the apps fails to launch with: Nov 07 12:39:10 ASClientApproval[63195] ERROR er.extensions.appserver.ERXApplication - ASClientApproval failed to start. PSQLException: ERROR: relation erattachment does not exist In the order pane of the Build Path section, I pushed ERAttachment to be the first element. What is going on here? ERAttachment is the first element in the order section of the Build Path. I thought about creating a minimal first migration that doesn’t really do much, and a second migration that does my real work. Why am I jumping through hoops? Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com mailto:Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Mavericks clean install set up problem
I think you can specify the WORootDirectory and WOLocalRootDirectory to point to your installation. The WORootDirectory should point to your System folder and the WOLocalRootDirectory points to the folder that contains your Library folder. On my dev machine, I start my wotaskd instance (via Launch Services) with the following arguments: keyProgramArguments/key array stringwotaskd/string string-DWORootDirectory=/opt/local/webobjects/5.4.3/System/string string-DWOLocalRootDirectory=/opt/local/webobjects/5.4.3/string string-WOHost/string stringlocalhost/string string-WOPort/string string1085/string /array Mind you, I didn't do a clean install of Mavericks, so this is left over from my Mountain Lion installation, but it still seems to be working. Hope that helps. F -- Faizel Dakri On 2013-Nov-10, at 10:21 PM, Johnny Miller jlmil...@kahalawai.com wrote: Hi Pascal, On a clean install there is no /Library/WebObjects directory If you install using WOInstaller.jar and put it in a non-default location like /Developer/WebObjects /Library/WebObjects does not get created. So my question is how do you specify the override so that wotaskd doesn’t try to write it’s configuration to /Library/WebObjects/Configuration Ideally, I would like it to write to /Developer/WebObjects/Library/WebObjects/Configuration Could you pass it as an argument in com.apple.webobjects.wotaskd.plist? On Nov 10, 2013, at 5:53 PM, Pascal Robert prob...@macti.ca wrote: Cannot be created = bad file permissions on /Library/WebObjects I changed the standard out and standard error to a place that could see the error messages and it was failing on: [2013-11-10 15:25:28 HST] main Configuration Directory /Library/WebObjects/Configuration/ does not exist, and cannot be created. So I created a symbolic link from /Developer/WebObjects/Library/WebObjects/Configuration to /Library/WebObjects/Configuration Obviously that is kind of a hack. Anyone know how to override that so I can direct to the non-default location? Thank you, Johnny On Nov 10, 2013, at 2:31 PM, Johnny Miller jlmil...@kahalawai.com wrote: It seems to start up and then die on me. 593 ?? Ss 0:01.82 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/ -DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS -Dcom.webobjects.pid=593 -Dcom.sun.management.jmxremote=false -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 56789 619 ?? Rs 0:00.09 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/ -DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS -Dcom.webobjects.pid=619 -Dcom.sun.management.jmxremote=false -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 1085 It looks like -DWORootDirectory is wrong. Do you know how would I direct it to the right location? Thank you! On Nov 10, 2013, at 2:10 PM, Ken Anderson kenli...@anderhome.com wrote: If you do a ps, do you see monitor running? It’s working OK on my clean Mavericks install (on a late 2013 MBP!!) Ken On Nov 10, 2013, at 6:34 PM, Johnny Miller jlmil...@kahalawai.com wrote: OK. So the mistake I made there was when reading the log files I saw it complaining about appserver and appserverusr so I tried adding the underscore in the configuration files in /Library/LaunchDaemons. That didn’t solve anything but I left it. I then made the two scripts for the apps executable and then I ran into the error below. After switching back the user and group name to the version without the underscore both apps now start. But… I can’t connect to womonitor on localhost:56789 I have followed these instructions http://wiki.wocommunity.org/display/documentation/Development+Tools-Running+Through+Apache?src=search making the correct substitutions for my environment. Any idea on what I could be doing wrong? Thanks, Johnny Begin forwarded message: From: Johnny Miller jlmil...@kahalawai.com Subject: Mavericks clean install set up problem Date: November 10, 2013 at 1:15:31 PM HST To: webobjects-dev@lists.apple.com com Webobjects-dev@lists.apple.com Hi, I’m trying to set up webobjects on a clean install of mavericks. And I’m getting stuck with trying to run debugging through apache. I’ve created the plists for womonitor and wotaskd per the instructions here: http://wiki.wocommunity.org/display/WO/WO+5.4+Getting+Started#WO5.4GettingStarted-javamonitor I set up WebObjects using the WOInstaller.jar to /Developer/WebObjects. I updated the plists to point to the correct location for the launch scripts for womonitor
Re: WOWODC 13 : Dash
I think this is due to javadoc comments that have unencoded html entities in them (e.g. '' instead of 'lt;'). This confuses the script that generates the Tokens.xml file for the docset (assuming you're using the same scripts from the Dash website). You either have to find each file and update its javadoc (painstaking) or fix it as you process it while generating the docset (hackish)--choose your poison. I chose the latter and may not work when you update your copy of Wonder if new javadoc has been added that adds other unencoded entities. I have docsets that I generated for an older copy of Wonder [1] and WO 5.4.3 [2], if you're interested. If you open the individual docset packages, you can see the scripts that I used to pre-process the javadoc for both docsets. I don't guarantee that the scripts will get you 100% class coverage, but it does get you a heck of a lot more than if you were to generate the docset using the default scripts (in my Dash docset, I have 2208 wonder classes and 788 WO classes, which is a lot more than when I generated them without pre-processing the javadoc comments). Hope that helps. F -- Faizel Dakri [1] https://dl.dropboxusercontent.com/u/57949917/wonder5.api.docset.zip [2] https://dl.dropboxusercontent.com/u/57949917/wo543.api.docset.zip On 2013-Jun-28, at 03:33 AM, Markus Stoll, junidas GmbH markus.st...@junidas.de wrote: Hi Ken, thank you so much; I was already using Dash and this is just what I missed! I just wonder, why all the ERX* classes do not show up on searching for it? If you click through references, you get them, so they seem to be there… Do I miss something? regards, Markus Am 27.06.2013 um 13:46 schrieb ISHIMOTO Ken k...@ksroom.com: Here is the Information about Dash. Hope you like it. App : https://itunes.apple.com/app/dash-docs-snippets/id458034879?mt=12 DocSet : https://dl.dropboxusercontent.com/u/1548210/API/WODocSets.zip Thank you Ken Ishimoto ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CSS framework
I still edit my .scss files in either Eclipse or a text editor. But to process them, I rely on the CodeKit[1] app. You set up projects in CodeKit, which are just folders that you drag into its main window. You can have multiple projects monitored and you can tweak the settings of individual files within a project (e.g. make a specific file generate to a different folder than the default project folder). Then leave CodeKit running and it'll automatically process your files to generate your CSS output whenever it detects a change to a file (it's smart enough to regenerate files that include mixins and partials). CodeKit does a lot more than just process .scss files, though. It can also process your javascript to run it through a syntax checker and then minify it for production. It also has support for Less and Compass, although I don't use those, so I couldn't tell you how good it is at handling those files. It also does image optimization, but I've not used that feature either. F [1] http://incident57.com/codekit On 2013-Jun-19, at 03:55 PM, Ramsey Gurley rgur...@smarthealth.com wrote: How do you edit that in eclipse? How do you generate the real css for deployment? For development? SASS sounds nice to me, but actually using it sounds complicated to the point that I just use css. On Jun 19, 2013, at 1:28 PM, Johnny Miller wrote: Way simpler right? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Creating a WO Maven project
I believe the Wonder projects have customized pom.xml files that specify the sourceDirectory explicitly. But this is sort of going against the maven standard. There was an old page on the wiki that touched on this: http://wiki.wocommunity.org/display/documentation/Maven+Kicking+the+tyres+without+changing+your+project+structure F On 2013-Apr-18, at 11:25 AM, Pascal Robert prob...@macti.ca wrote: So, no way to have fluffy bunny with Maven? How it's working for Wonder then? The documentation needs……(drum roll)…. updating… Use the command line (make an alias, you won't remember it) : mvn archetype:generate -DarchetypeCatalog=local This assumes you have the catalog archetype-catalog.xml in ~/.m2 If so you see: [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: local - org.objectstyle.woproject.maven2:erxapplication-archetype (Wonder Application Archetype) 2: local - org.objectstyle.woproject.maven2:erxapplication-d2w-archetype (Wonder D2W Application Archetype) 3: local - org.objectstyle.woproject.maven2:erxapplication-servlet-archetype (Wonder Servlet Application Archetype) 4: local - org.objectstyle.woproject.maven2:partial-woapplication-servlet-archetype (Partial WebObjects Servlet Application Archetype) 5: local - org.objectstyle.woproject.maven2:woapplication-archetype (WebObjects Application Archetype) 6: local - org.objectstyle.woproject.maven2:woapplication-servlet-archetype (WebObjects Servlet Application Archetype) 7: local - org.objectstyle.woproject.maven2:woframework-archetype (WebObjects Framework Archetype) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : Pick a number, and an application is created--no eclipse! Now import it into eclipse. But is maven layout, not fluffy bunny. You can override the standard locations src/, but then you are deviating from the uber pom. You must specify where the sources are. On Apr 9, 2013, at 9:28 AM, Pascal Robert wrote: Ok, so I'm trying to drink the Maven koolaid, but you are not helping. Somes pages about Maven on the wiki talks about creating projects by command line, so about using archetypes in WOLips, but those archetypes are not in WOLips. So, what are the steps to create a Maven project with the Fluffy Bunny layout in WOLips? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/gsbrown%40umich.edu This email sent to gsbr...@umich.edu Greg Brown gsbr...@umich.edu -- gsbr...@umich.edu ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: EOF not setting the PK in INSERT statements
I don't see a column name for your id attribute in the plist file. Perhaps that is throwing EOF off. F On 2013-Mar-03, at 08:49 PM, David Avendasora webobje...@avendasora.com wrote: Hey all, I have one entity (out of about 40) that refuses to insert data into my FrontBase database. It generates the SQL but is leaving out the PK. Here's the SQL: INSERT INTO KC_TYPE_MASTER(DISPLAY_NAME_OVERRIDE, TYPE_KC_TYPE_ELEMENT_ID, KC_TYPE_ENTITY_PROPERTY_ID) VALUES (NULL, 100, 4) The PK column (ID) is simply missing from the statement. For all other tables, the PK is just one of the values being inserted and everything works just fine. I'm not even seeing the normal SQL call to get the PK value from the DB (i.e., VALUES (SELECT UNIQUE FROM KC_TYPE_MASTER)) So something is going wrong with EOF prior to generating the SQL for the insert, but what? The Entity has a non-class, single-attribute PK. It is not part of an inheritance structure, it's just a (very) simple table. Below is the .plist from the .eomodeld for this entity. Any ideas? Dave { attributes = ( { allowsNull = Y; columnName = DISPLAY_NAME_OVERRIDE; name = displayNameOverride; prototypeName = varchar100; }, {allowsNull = N; name = id; prototypeName = id; }, { allowsNull = N; columnName = KC_TYPE_ENTITY_PROPERTY_ID; name = kcTypeEntityPropertyId; prototypeName = id; }, { allowsNull = N; columnName = TYPE_KC_TYPE_ELEMENT_ID; name = typeKCTypeElementID; prototypeName = id; } ); attributesUsedForLocking = (displayNameOverride, id, kcTypeEntityPropertyId, typeKCTypeElementID); className = com.kaiten.core.eo.type.KCTypeMaster; classProperties = (displayNameOverride, typeEntityProperty, types, typeTypeElement); externalName = KC_TYPE_MASTER; fetchSpecificationDictionary = {}; name = KCTypeMaster; primaryKeyAttributes = (id); relationships = ( { destination = KCTypeEntityProperty; isMandatory = Y; isToMany = N; joinSemantic = EOInnerJoin; joins = ({destinationAttribute = id; sourceAttribute = kcTypeEntityPropertyId; }); name = typeEntityProperty; userInfo = {fetchFor = {Many = ; }; qualifier = ; }; }, { destination = KCType; isToMany = Y; joinSemantic = EOInnerJoin; joins = ({destinationAttribute = kcTypeMasterID; sourceAttribute = id; }); name = types; }, { destination = KCTypeElement; isMandatory = Y; isToMany = N; joinSemantic = EOInnerJoin; joins = ({destinationAttribute = id; sourceAttribute = typeKCTypeElementID; }); name = typeTypeElement; userInfo = {fetchFor = {Many = ; }; qualifier = ; }; } ); } — WebObjects - so easy that even Dave Avendasora can do it!™ — David Avendasora Senior Software Abuser Kaiten, Inc. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Best way to web 2.0 ?
For learning CSS, I found the Eric Meyer books most helpful: Eric Meyer on CSS More Eric Meyer on CSS They're a little old now (2002 2004), but that means they're pretty cheap on Amazon now :) and they still give you a pretty good idea of how to progressively enhance a site to take advantage of CSS. The books are filled with detailed explanations and plenty of images. The approach taken in the books is to incrementally enhance existing sites to transition from using plain HTML to sites that take full advantage of CSS. Some of the topics in the first book include dealing with multi-column layouts, styling input forms, styling a calendar, and taking advantage of positioning. The second book covers more advanced topics like styling tabs, drop-down menus, list menus, etc. Hope that helps! F -- Faizel Dakri On 2013-Jan-15, at 08:18 AM, Ken Anderson kenli...@anderhome.com wrote: Friends and colleagues, While I've spent most of my time doing things on the back end (no jokes please), it's time I learned a little more about that CSS stuff and integrating pretty sites with WO. Any suggestions for good tools, books, etc., to make my journey more fruitful? Thanks for any suggestions! Ken ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototypes don't load from ERPrototypes in Entity Modeler when building with maven
Thanks Henrique, that seemed to do the trick. F -- Faizel Dakri On 2011-Nov-14, at 10:27 AM, Henrique Prange wrote: Hi Faizel, I've seen this problem on multi-module projects. I solved it removing the parent project from the workspace (without removing the contents from the file system). Cheers, Henrique Sent from my iPhone On 13/11/2011, at 00:54, Faizel Dakri list...@dakri.com wrote: Have any maven users out there seen a problem with prototypes not showing up in Entity Modeler? I've got a project with an eomodel that has a dependency on ERPrototypes, but when I open the model in Entity Modeler, all of the prototypes seem to disappear. Searching through the archives revealed a similar issue a few years back, but it looked like it had been fixed with a WOLips update. I don't have any of the wonder frameworks open as projects in Eclipse, so they're all resolved from my local maven repository. When I examine ERPrototypes-5.4-SNAPSHOT.jar, I can see the erprototypes.eomodeld resource, along with the various db prototype entities. I can also run my app from Eclipse and it is able to find the prototypes just fine. It's just when I'm in Entity Modeler that I'm having issues. I'm currently running Eclipse 3.7.1 with WOLips 3.7.10096. Anyone else seen anything like this? Thanks, F ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com This email sent to hpra...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Problem with the WebObjects, WOLips and Wonder Tutorial, Part 1
Not really sure if this will help, but in the index.eomodeld file you show, your entity is named User, but its corresponding java class is set to com.sooperseekrit.model.user, not com.sooperseekrit.model.User. Maybe you're looking for the wrong file? Given your index.eomodeld, if things are working, then you should see two files in the com.sooperseekrit.model package of your project: _user.java user.java F On 2011-Nov-12, at 06:53 PM, Kevin Spake wrote: When I click on the triangle and choose Filters.. it shows a windows with two checkboxes. One for *.class and another, .* Neither is checked so I'm assuming there is no filter active. I did a search for User.java with no results. My Resources folder has the following: SooperSeekrit EOModel index.eomodeld User.plist Properties SooperSeekrit.eogen index.modeld file has a User class as can be seen in the following code. Thanks! { EOModelVersion = 2.1; adaptorName = JDBC; connectionDictionary = { URL = jdbc:postgresql://localhost/sooper; driver = org.postgresql.Driver; password = demo; plugin = PostgresqlPlugIn; username = demo; }; entities = ({className = com.sooperseekrit.model.user; name = User; }); internalInfo = {_deletedEntityNamesInObjectStore = (User); }; userInfo = { _EntityModeler = { activeDatabaseConfigName = Default; databaseConfigs = { Default = { adaptorName = JDBC; connectionDictionary = { URL = jdbc:postgresql://localhost/sooper; driver = org.postgresql.Driver; password = demo; plugin = PostgresqlPlugIn; username = demo; }; prototypeEntityName = EOJDBCPostgresqlPrototypes; }; }; }; }; } On Nov 11, 2011, at 10:50 AM, Faizel Dakri wrote: The generated classes should be written to the com.sooperseekrit.model package in your project. Check to make sure you're not filtering the _Entity.java files in Eclipse (click on the Down Triangle button in the WO Explorer view and select Filters... from the menu; make sure that EOGenerator _Files is not checked). If you still don't see the files, double check your EOModel to ensure that the Generate Source checkbox is enabled for your entity (look in Entity Modeler's Advanced entity inspector). Also, you probably want to name your classes using a more conventional pattern with a capitalized class name: com.sooperseekrit.model.User. F On 2011-Nov-11, at 12:39 PM, Kevin Spake wrote: I do have SooperSeekrit.eogen in the Resources folder. I right-clicked and chose EOGenerate... but I'm not sure anything happened. Not sure where i would find the User and _User classes. They are not in any of the project folders. Apologies for being so clueless. Thanks for the help. Kevin On Nov 11, 2011, at 9:43 AM, Pascal Robert wrote: Do you have the User class in the com.sooperseekrit.model package? If not, probably the eo generation was not done. You should have a YourModelName.eogen file in the Resources folder. If you don't have it, right-click on the model and select WOLips Tools - Create EOGenerator file. After that, right-click on the .eogen file and select EOGenerate… That will create two Java classes for User, one called _User.java, the other User.java. You can edit User, _User will always be regenerated when you run EOGenerator. Yes, the username and password are in the model. You were right, the er.migration lines in the properties were commented out. I removed the # signs and ran it again. This time I received the following errors in the console: Nov 11 08:48:16 SooperSeekrit[62878] ERROR er.extensions.appserver.ERXApplication - SooperSeekrit failed to start. Nov 11 08:48:16 SooperSeekrit[62878] WARN NSLog - A fatal exception occurred: Invalid class name 'com.sooperseekrit.model.user' for entity 'User'. [2011-11-11 8:48:16 PST] main java.lang.RuntimeException: Invalid class name 'com.sooperseekrit.model.user' for entity 'User'. at er.extensions.eof.ERXEntityClassDescription$Factory.registerDescriptionForEntity(ERXEntityClassDescription.java:582) Thanks, Kevin On Nov 11, 2011, at 8:35 AM, Pascal Robert wrote: Hi Kevin, Did you specify the username and password in the model? And in Eclipse's console, you should see if the migration worked to create the table. Make sure that those two properties: er.migration.migrateAtStartup=true er.migration.createTablesIfNecessary=true are set to true in the Properties file, and they are not commented out (e.g., they don't have a # in front). I'm trying to go through the WebObjects, WOLips and Wonder
Prototypes don't load from ERPrototypes in Entity Modeler when building with maven
Have any maven users out there seen a problem with prototypes not showing up in Entity Modeler? I've got a project with an eomodel that has a dependency on ERPrototypes, but when I open the model in Entity Modeler, all of the prototypes seem to disappear. Searching through the archives revealed a similar issue a few years back, but it looked like it had been fixed with a WOLips update. I don't have any of the wonder frameworks open as projects in Eclipse, so they're all resolved from my local maven repository. When I examine ERPrototypes-5.4-SNAPSHOT.jar, I can see the erprototypes.eomodeld resource, along with the various db prototype entities. I can also run my app from Eclipse and it is able to find the prototypes just fine. It's just when I'm in Entity Modeler that I'm having issues. I'm currently running Eclipse 3.7.1 with WOLips 3.7.10096. Anyone else seen anything like this? Thanks, F ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Problem with the WebObjects, WOLips and Wonder Tutorial, Part 1
The generated classes should be written to the com.sooperseekrit.model package in your project. Check to make sure you're not filtering the _Entity.java files in Eclipse (click on the Down Triangle button in the WO Explorer view and select Filters... from the menu; make sure that EOGenerator _Files is not checked). If you still don't see the files, double check your EOModel to ensure that the Generate Source checkbox is enabled for your entity (look in Entity Modeler's Advanced entity inspector). Also, you probably want to name your classes using a more conventional pattern with a capitalized class name: com.sooperseekrit.model.User. F On 2011-Nov-11, at 12:39 PM, Kevin Spake wrote: I do have SooperSeekrit.eogen in the Resources folder. I right-clicked and chose EOGenerate... but I'm not sure anything happened. Not sure where i would find the User and _User classes. They are not in any of the project folders. Apologies for being so clueless. Thanks for the help. Kevin On Nov 11, 2011, at 9:43 AM, Pascal Robert wrote: Do you have the User class in the com.sooperseekrit.model package? If not, probably the eo generation was not done. You should have a YourModelName.eogen file in the Resources folder. If you don't have it, right-click on the model and select WOLips Tools - Create EOGenerator file. After that, right-click on the .eogen file and select EOGenerate… That will create two Java classes for User, one called _User.java, the other User.java. You can edit User, _User will always be regenerated when you run EOGenerator. Yes, the username and password are in the model. You were right, the er.migration lines in the properties were commented out. I removed the # signs and ran it again. This time I received the following errors in the console: Nov 11 08:48:16 SooperSeekrit[62878] ERROR er.extensions.appserver.ERXApplication - SooperSeekrit failed to start. Nov 11 08:48:16 SooperSeekrit[62878] WARN NSLog - A fatal exception occurred: Invalid class name 'com.sooperseekrit.model.user' for entity 'User'. [2011-11-11 8:48:16 PST] main java.lang.RuntimeException: Invalid class name 'com.sooperseekrit.model.user' for entity 'User'. at er.extensions.eof.ERXEntityClassDescription$Factory.registerDescriptionForEntity(ERXEntityClassDescription.java:582) Thanks, Kevin On Nov 11, 2011, at 8:35 AM, Pascal Robert wrote: Hi Kevin, Did you specify the username and password in the model? And in Eclipse's console, you should see if the migration worked to create the table. Make sure that those two properties: er.migration.migrateAtStartup=true er.migration.createTablesIfNecessary=true are set to true in the Properties file, and they are not commented out (e.g., they don't have a # in front). I'm trying to go through the WebObjects, WOLips and Wonder Tutorial, Part 1 screencast at http://www.wocommunity.org/webobjects_screencasts.html. The first attempt to run the project occurs at 12 minutes into the video. When I run the project, I get no error messages AFAICT, and the Hello World window opens up, but the table t_user is not created. I'm using postgresql. I have created a database called sooper, and a role (ie user) demo with a password of demo. in the EOModel under Default: Prototype = EOJDBCPostgresqlPrototypes url: jdbc:postgresql://localhost/sooper Driver: org.postgresql.Driver Plugin: PostgresqlPlugIn Any suggestions of where I should look? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxUpdateContainer ?
If you can't use a batching table, can you maybe split your data set into groups and then wrap each group in a tbody tag, which you can then mark as an update container (or wrap it in an update container). That way you don't have to have one update container per row, but you're also not forcing an update of thousands rows at a time. You just need to set a useful group size, say 50 or so rows. F On 2011-Apr-26, at 04:33 PM, Theodore Petrosky wrote: I guess I should have started off by saying that my user demands that all rows of data be visible all the time (because this is what it looks like in excel). I even have a boolean to not show old data but she insists that all data (including legacy data) is important and she needs to see it all the time (so nothing gets marked as 'complete'). I think it sucks big time, but what can I do? I have been dragging my feet for 3 weeks already and the only solution I have found was to wrap every row in an UpdateContainer. Ted --- On Tue, 4/26/11, Chuck Hill ch...@global-village.net wrote: From: Chuck Hill ch...@global-village.net Subject: Re: AjaxUpdateContainer ? To: Theodore Petrosky tedp...@yahoo.com Cc: webobjects-dev@lists.apple.com Date: Tuesday, April 26, 2011, 1:56 PM On Apr 26, 2011, at 5:16 AM, Theodore Petrosky wrote: I am presenting a table to my user and I am noticing that the number of rows that they want to keep current is growing to more than 1k. One of the UI issues is to color individual rows that signify specific meta data (ie. row is red so it is important, green is something else). Currently, I have one AjaxUpdateContainer wrapping the whole table. If the user updates the row color, I fire the container update. But with over 1k rows, this is starting to take time (10 - 15 seconds). So I thought that I would wrap the individual row in its own update container. Before I jump into this, I thought I would ask. If I had 1000 update containers on my page, am I shooting myself in the foot? Or is this what the AjaxUpdateContainer is made for? Or do I have to update the whole table for the row color to update (with CSS)? It is probably not much worse than a 1000 row table, a 1000 row table is pretty bad already. :-) That is a terrible interface, IMO. You need to batch the data and keep the table small. See AjaxGrid for one way to do this. Chuck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: A few newbie maven questions
Hi Henrique, In case it helps, I am not behind any proxy. Thanks for your help, Fez On 2011-Jan-10, at 06:01 AM, Henrique Prange wrote: Hi Faizel, I've successfully uncompressed the index file. Are you behind a proxy? I'll configure my settings to access the WOCommunity Repository directly as soon as I arrive in the office. Sent from my iPhone On 06/01/2011, at 02:58, Faizel Dakri list...@dakri.com wrote: Henrique, On 2011-Jan-05, at 06:01 AM, Henrique Prange wrote: On 02/01/2011, at 22:51, Faizel Dakri wrote: #1: When I launch Eclipse, the console always shows errors when trying to update the index for the wocommunity repositories: Unable to update index for wocommunity.snapshots|http://maven.wocommunity.org/content/groups/public-snapshots Unable to update index for wocommunity.releases|http://maven.wocommunity.org/content/groups/public The repository was reindexed. Could you check if the problem persists? I just launched Eclipse and I'm still seeing the errors. Here's the content from the Eclipse Error Log regarding the wocommunity public repository (the same error shows for the public-snapshots repository): java.io.IOException: Not in GZIP format at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:137) at java.util.zip.GZIPInputStream.init(GZIPInputStream.java:58) at org.sonatype.nexus.index.updater.IndexDataReader.init(IndexDataReader.java:40) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:562) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:252) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:74) at org.sonatype.nexus.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:815) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:995) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1085) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateIndex(NexusIndexManager.java:1025) at org.maven.ide.eclipse.internal.index.NexusIndexManager$1.run(NexusIndexManager.java:632) at org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(IndexUpdaterJob.java:71) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: A few newbie maven questions
Henrique, On 2011-Jan-05, at 06:01 AM, Henrique Prange wrote: On 02/01/2011, at 22:51, Faizel Dakri wrote: #1: When I launch Eclipse, the console always shows errors when trying to update the index for the wocommunity repositories: Unable to update index for wocommunity.snapshots|http://maven.wocommunity.org/content/groups/public-snapshots Unable to update index for wocommunity.releases|http://maven.wocommunity.org/content/groups/public The repository was reindexed. Could you check if the problem persists? I just launched Eclipse and I'm still seeing the errors. Here's the content from the Eclipse Error Log regarding the wocommunity public repository (the same error shows for the public-snapshots repository): java.io.IOException: Not in GZIP format at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:137) at java.util.zip.GZIPInputStream.init(GZIPInputStream.java:58) at org.sonatype.nexus.index.updater.IndexDataReader.init(IndexDataReader.java:40) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:562) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:252) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:74) at org.sonatype.nexus.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:815) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:995) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1085) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateIndex(NexusIndexManager.java:1025) at org.maven.ide.eclipse.internal.index.NexusIndexManager$1.run(NexusIndexManager.java:632) at org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(IndexUpdaterJob.java:71) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) If I'm alone in seeing this error, then is it possible I have misconfigured something? I downloaded the settings.xml from the wiki, but I don't really see anything that jumps out about how to interpret the repository index. Other than that, maybe there's a preference in m2eclipse that I'm missing? Also, while I'm on the topic of m2eclipse, it seems that the plugin comes bundled with Maven 3.0. Right now I'm pointing m2eclipse to my local installation (2.2.1) rather than the bundled version with no problems (well, no additional problems). Is this recommended, or should I go ahead and point m2eclipse to its bundled Maven 3.0 install? Thanks again for your help, Fez ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
A few newbie maven questions
Hi All, Happy new year to everyone. I've got some newbie questions about WO Maven. I have what appears to be a working installation currently with the following components: Mac OS X 10.6 + Java 1.6 + WebObjects 5.4.3 + Maven 2.2.1 Eclipse 3.6.1 + WOLips 3.6.6215 + m2Eclipse 0.12.0.20101115-1102 Wonder (rev. 11847) The installation went smoothly as far as I can tell. I was able to get Maven installed, added the settings.xml [1] and archetype-catalog.xml [2] as outlined in the wiki and installed the WO libraries using mvn wobootstrap:install. I then checked out Wonder and installed it to my local repository using mvn clean install -P wo54. Everything looks okay at this point. But I'm having some issues for which I think I just need some reassurance that this is how things are supposed to work, or that these are indeed valid concerns that I need to fix (a nudge in the right direction would also be appreciated). #1: When I launch Eclipse, the console always shows errors when trying to update the index for the wocommunity repositories: Unable to update index for wocommunity.snapshots|http://maven.wocommunity.org/content/groups/public-snapshots Unable to update index for wocommunity.releases|http://maven.wocommunity.org/content/groups/public Do these messages indicate something amiss in my environment, or are they safe to ignore? By the way, the central repository index at http://repo1.maven.org/maven2 is updated without error. #2: Whenever I create a new Maven project using m2eclipse, Eclipse throws up an error panel telling me the project failed to create, although a project is created (but it seems to be missing some info). Here are the steps I follow: 1. select File New Maven Project, which brings up the New Maven Project wizard. 2. fill in the project's location and working set and click 'Next' 3. pick the erxapplication-archetype (2.1-SNAPSHOT version) and advance to next step 4. fill in the required info (WebObjectsVersion and WonderVersion are already filled in. 5. click on 'Finish And then I get the aforementioned error panel. Looking in Eclipse's error log, I see the following: eclipse.buildId=M20100909-0800 java.version=1.6.0_22 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US Framework arguments: -keyring /Users/fez/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/fez/.eclipse_keyring -showlocation Error Sun Jan 02 17:35:03 CST 2011 The specified class for ResourceManager (org.apache.velocity.runtime.resource.ResourceManagerImpl) does not implement org.apache.velocity.runtime.resource.ResourceManager; Velocity is not initialized correctly. java.lang.Exception: The specified class for ResourceManager (org.apache.velocity.runtime.resource.ResourceManagerImpl) does not implement org.apache.velocity.runtime.resource.ResourceManager; Velocity is not initialized correctly. at org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:589) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:241) at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116) at org.objectstyle.wolips.templateengine.TemplateEngine.init(TemplateEngine.java:126) at org.objectstyle.wolips.templateengine.ProjectTemplate.createProjectContents(ProjectTemplate.java:236) at org.objectstyle.wolips.builder.internal.WOIncrementalBuilder.createInfoPlist(WOIncrementalBuilder.java:242) at org.objectstyle.wolips.builder.internal.WOIncrementalBuilder.invokeOldBuilder(WOIncrementalBuilder.java:191) at org.objectstyle.wolips.core.resources.internal.build.Builder.invokeOldBuilder(Builder.java:214) at org.objectstyle.wolips.core.resources.internal.build.Builder.build(Builder.java:131) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Despite the error message, a project is created, but it looks suspect (e.g. there are no source folders in the project, so the project tree looks like a hierarchy of folders and files). BUT,
OGNL binding validation problems
Hi all, I thought that appending a //VALID comment to a binding would bypass any validation on that binding. What I'm seeing, however, is that some of my OGNL bindings are flagged as errors. Here's an example: MasterEdits: MPVCheckboxMatrix { list = editTypeList; item = editTypeIterator; selections = selectedEditTypes; maxColumns = 2; displayString = ~editTypeIterator.description + nbsp;nbsp;nbsp;nbsp;nbsp;; //VALID escapeHTML = false; } The 'displayString' binding is always being flagged as an error by the component editor in WOLips, even though I've appended the //VALID comment. The specific error is: - The binding value 'nbsp' can only appear after an '=' or a 'xxx:' If I change the string so that there are no non-breaking spaces (e.g. blahblah), things validate just fine. I have WOLips preferences set to: Validate WOD / Inline Bindings : YES Validate Binding Values : YES Use Inline Bindings : YES Validate OGNL : YES Am I doing something wrong in how I'm trying to suppress validation of this binding? Or is there another way to tell WOLips that the binding is okay? This seems like a bug to me, but I wanted to check before filing a jira. I'm using Eclipse 3.4.1 / WOLips 3.4.5868. Thanks. Fez ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Velocity Template Question
I'm assuming that the 'code' is an EO attribute of an entity. I think you'll have to iterate over the list of attributes, check the name and set a flag manually. Then you can conditionally generate your template code base on the flag. I may be wrong--and I'd love to find an easier way if I am--but this is how I do such a thing in my templates. I haven't actually tested the following code, but I use something similar to check for the presence of not-null class properties. Maybe it will point you in the right direction: #set ($hasCode = 'false') #foreach ($attribute in $entity.classAttributes)#if ($attribute.name == 'code')#set ($hasCode = 'true')#end#end #if ($hasCode == 'true') @SuppressWarnings(unchecked) public static nz.co.orcon.osm.eo.main.OcnDuration fetchByCode(EOEditingContext ec, String code) { } ... #end I haven't yet found an easy way to break out of the foreach loop, so for now my templates always iterate over the entire list of attributes (but only once to set the flag). Hope that helps. Fez On 2009-Nov-20, at 02:46 PM, Andrew Lindesay wrote: Hi Mike; You are right; I'm trying to add a method to the entitys' superclasses for fetching based on code if the code attribute is present. I'm trying to achieve what I had before using velocity. I am doing something like this, but the #if is not firing; #if ($entity.sortedClassAttributes.containsObject(code)) @SuppressWarnings(unchecked) public static nz.co.orcon.osm.eo.main.OcnDuration fetchByCode(EOEditingContext ec, String code) { } ... #end cheers. ___ Andrew Lindesay www.lindesay.co.nz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Many to many relationship... some problem
To do what you want you probably want to set those relationships (ordine and prodotto) to be class properties. Just a guess, but it looks like what you're trying to model is a line item; it might make more sense if you think about it that way (i.e. order --- line item --- product) instead of a many-to-many relationship. Fez On Aug 3, 2009, at 11:16 AM, Francesco Romano wrote: On 03/ago/09, at 18:04, Lachlan Deck wrote: On 04/08/2009, at 1:39 AM, Francesco Romano wrote: On 03/ago/09, at 16:10, Lachlan Deck wrote: On 03/08/2009, at 7:21 PM, Francesco Romano wrote: Hi.. I'm having some problem with a many-to-many relationship. I've two entities: Order and Product. They have a many-to-many relationship, and an attribute: quantity. The strange thing is that I don't see the OrderProduct model generated... Check the value of Class Name in the model. It's probably EOGenericRecord. Change it to you.model.OrderProduct You are right.. Now I see the class Well.. to be honest I don't understand how many-to-many works... (In WO.. I know the DB-theory)... OrderProduct orderProduct = (OrderProduct)EOUtilities.createAndInsertInstance(ec, OrderProduct.ENTITY_NAME); // or OrderProduct orderProduct = OrderProduct.createOrderProduct(ec, product, order); orderProduct.setQuantity(quantity); ec.saveChanges(); Little problem.. the only method createOrderProduct has as arguments: editingContext, quantity. 1) Your OrderProduct should (usually) have a compound primary key. (orderID, productID). Both keys shouldn't allow null. Both relationships (order, product) should be manditory. Then regenerate your class. I attach an image.. it's the OrderProduct entity. Picture 1.png So.. I can't set it's pks. 2) This is good. :-) You're dealing with objects now, not database artifacts like pks and foreign keys. You'll be setting object relationships not pk/fk relationships. Simply fetch the product/order _objects_ and orderProduct.setOrder(order); orderProduct.setProduct(product); With pks I meant that I don't have the setProduct and setOrder method (and in the constructor). with regards, -- Lachlan Deck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com This email sent to list...@dakri.com -- Faizel Dakri ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: T in NSSelector
On Jun 2, 2009, at 10:39 AM, Ricardo J. Parada wrote: What is the T represent in the NSSelector constructor? For example, if I do this in WO 5.4.3 I get a warning but I'm not sure what the T is supposed to be? Is it supposed to be the return type for the method? NSSelector selector = new NSSelector(sessionDidExpire, new Class[] { NSNotification.class }); As far as I know, yes, it's the return type of the method for which you're creating the selector. So, assuming your method returned void, I think you can do something like: NSSelectorVoid selector = new NSSelectorVoid(sessionDidExpire, new Class[] { NSNotification.class }); Fez -- Faizel Dakri fai...@dakri.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Invoking Subcomponent Action
On Feb 18, 2009, at 02:33 PM, Henrique Prange wrote: Simple question: Is there a simple/correct way to call subcomponent actions? How can I do that? Here is an example why I need that. I have the following structure in one of my components: wo:AjaxModalDialog onClose = $clearState wo:WOSwitchComponent WOComponentName = $componentName /wo:AjaxModalDialog I need to clear the state of the component instantiated by WOSwitchComponent, but I don't know how to call the action within the 'clearState' method on the current component. I see it is straightforward to access the component hierarchy in a bottom-up manner (call a parent action, push and pull values from parent), but I haven't found a corresponding way to do that top-down. Maybe I'm over complicating the problem, but I haven't found an efficient way to do this. Just a thought, but you might try posting a notification from your clearState() method in the parent component, using the parent as the notification object. Then in your switched component you can listen for that notification from the parent object and handle appropriately. Obviously, you'd have to handle registration appropriately in the child component so that you have access to the parent component when registering for the notification--I'm thinking maybe during awake() or during appendToResponse(), and then unregistering during sleep()? Either that, or just register for the notification blindly and check the notification object before clearing the state. Fez ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: wosid != session().sessionID()
On Oct 28, 2008, at 07:37 PM, Ricardo J. Parada wrote: Anyways, does any body have any advise as to why this is happening? If the original session expired, would then session() return a new session? Yes, I believe the session() method will create a new session if it cannot find the referenced session from the URL or if the referenced session has timed out (I'm assuming you're calling this from within your direct action class). You can use the existingSession() method, which returns null if an existing session cannot be found. Fez ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]