Re: re/store context somehow? (OCsite)

2024-05-19 Thread Paul Hoadley via Webobjects-dev
On 19 May 2024, at 5:55 am, o...@ocs.cz wrote:

> Hmmm... can you recall please some scenarios, which lead to the spectacular 
> failure?

I'm talking only about ERPersistentSessionStorage.framework, and runtime 
failures occur whenever it hits something in the object graph rooted at your 
Session that isn't Java-serializable for any reason (including EOs, components, 
objects from Wonder, objects from your codebase). The most recent thread on 
this seems to be "WOSession serialisation redux" started by me on 19 May 2015. 
Ramsey thought at the time that he'd made Wonder-side fixes to bring it all 
"about 95% there". Of course, there's now 9 years of additional commits and 
bit-rot, but maybe it's still around that mark. Then there's your code, 
everything in your Sessions, EOs, and components. You can always give it a try 
and see what happens, but if you're only "about 95% there", that's a lot of 
unrecoverable, runtime failures to store your sessions.

I wasn't talking about anything you're doing below.

> Based on the ER source code and some Ramsey suggestionst (thanks again!) I've 
> found a way which so far, tested just for a short time only at my side, seems 
> to work reasonably well — here's the gist, without error checking, logging 
> and other cosmetics:
> 
> ===
> class OCSSession extends ERXSession {
> WOContext lastContext
> void sleep {
> if (context.page) lastContext=context.clone()
> super.sleep()
> }
> }
> 
> class OCSDirectAction extends ERXDirectAction {
> WOActionResults restorePreviousStateAction {
> Session ss=session()
> if (ss.lastContext) { // code essentially stolen from 
> ERD2WDirectAction
> String cid=ss.lastContext.request.stringFormValueForKey('__cid')
> if (cid) return ss.restorePageForContextID(cid)
> if (ss.lastContext.page) return ss.lastContext.page
> }
> pageWithName(MainPage.class.name)
> }
> }
> ===
> 
> If you can foresee case(s) when it would fail, I'd be grateful for some 
> hints, so that I test them here and update my code appropriately.
> 
> Thanks again and all the best,
> OC


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: re/store context somehow? (OCsite)

2024-05-17 Thread Paul Hoadley via Webobjects-dev
On 18 May 2024, at 6:26 am, Amedeo Mantica via Webobjects-dev 
 wrote:

> I no longer use WO but I recall this framework in wonder: 
> ERPersistentSessionStorage

That framework is a fantastic proof of concept, but in practice the approach 
can be quite brittle. It works by Java-serializing the object graph rooted at 
the WOSession, so if any object in that graph isn't serializable, it's game 
over for that session. By all means try it out, but in our experience (and 
we've sunk many hours into experimentation with it), it works brilliantly right 
up until it fails spectacularly.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WoCommunity list

2024-05-02 Thread Paul Hoadley via Webobjects-dev
Hi Francois,

On 3 May 2024, at 01:29, Francois BIENTZ via Webobjects-dev 
 wrote:

> Howto subscribe to 
> https://lists.wocommunity.org/Lists/webobjects-dev/List.html ? 

There are several subscribe links right at the bottom of that page.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Debug frameworks with maven project

2024-04-15 Thread Paul Hoadley via Webobjects-dev
Hi Samuel,

On 11 Apr 2024, at 03:45, Samuel Pelletier via Webobjects-dev 
 wrote:

> I created a new workspace with the latest Eclipse to migrate my project to 
> maven. My projects run and I can debug the application code (set breakpoint, 
> click on exception stack trace to open project source) but all debug 
> functions are not working for frameworks. I set breakpoint in code but 
> Eclipse open class from a jar instead of my source.

I hadn't noticed this before, but you're right. You need to tell Eclipse where 
to find the source. See:

https://stackoverflow.com/a/22934568/18493
Eclipse java debugging: source not found
stackoverflow.com

> Also, I have to restart the app to test for my code change in frameworks even 
> with an hot swap enable JRE. Seems Eclipse does not figure out the maven 
> dependencies code is in the current workspace.

This I cannot reproduce. Possible explanations:

1. Maven versions have to match precisely, obviously. That is, the version your 
application POM is asking for must match the version the project open in the 
workspace is providing.

2. You have to launch the app using "Debug As...".

3. There are certain changes that hot code replacement won't allow, though 
these are usually flagged by Eclipse when you try. What type of change were you 
making?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Debug frameworks with maven project

2024-04-10 Thread Paul Hoadley via Webobjects-dev
Hi Samuel,

On 11 Apr 2024, at 3:45 am, Samuel Pelletier via Webobjects-dev 
 wrote:

> I created a new workspace with the latest Eclipse to migrate my project to 
> maven. My projects run and I can debug the application code (set breakpoint, 
> click on exception stack trace to open project source) but all debug 
> functions are not working for frameworks. I set breakpoint in code but 
> Eclipse open class from a jar instead of my source.
> 
> Also, I have to restart the app to test for my code change in frameworks even 
> with an hot swap enable JRE. Seems Eclipse does not figure out the maven 
> dependencies code is in the current workspace.

The first thing you should do is confirm that you've got an exact version match 
between what your application's POM is asking for and what your framework code 
in the workspace is showing. I don't recall running into either of these 
issues, but I'll test it out later in the morning.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: Java upgrade question

2024-04-05 Thread Paul Hoadley via Webobjects-dev
Hi Mark,

On 6 Apr 2024, at 6:55 am, Morris, Mark via Webobjects-dev 
 wrote:

> I’ve been trying to research (old messages, Google, etc.), but I don’t think 
> I’ve found anything definitive.
>  
> I know at least at one point there was an issue migrating past Java 8, due to 
> the way WOnder patches/extends Apple’s frameworks. Has that been resolved or 
> worked around? We would like to totally get rid of Java 8, and move to Java 
> 11 (or 17, or 21…).

Plenty of people have moved beyond Java 8. We've been using Java 21 since soon 
after it was released. About the only thing you'll need to do is add some JVM 
options in build.properties, such as:

jvmOptions=--add-exports java.base/sun.security.action=ALL-UNNAMED 
--add-exports java.base/sun.util.calendar=ALL-UNNAMED

I'm struggling to think of much else that was required. It was certainly an 
easier transition than I thought it was going to be.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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 follow up

2024-04-01 Thread Paul Hoadley via Webobjects-dev
Hi Samuel,

On 2 Apr 2024, at 08:23, Samuel Pelletier via Webobjects-dev 
 wrote:

> Why Eclipse always complain about missing nature, the maven stuff is already 
> there and working, I always click cancel but the prompt comes back from time 
> to time. Is there a way to get rid of this alert ?

As Tim mentioned, you need to have both of these in your .project file:

  org.maven.ide.eclipse.maven2Nature
  org.eclipse.m2e.core.maven2Nature

The latter is the correct name for the Eclipse "nature". The former is a 
historical name for the same thing, but unfortunately it's hard-coded in the 
depths of ERFoundation.jar to determine the bundle format to use at runtime, so 
you need to include it. Recent versions of Eclipse have started complaining 
about it, as you noted, but I see you found a way to turn it off.

> In the maven pom editor, the search function does not works, even for maven 
> central libraries... This search seems a time saver tool I would like to use 
> instead of copy paste from maven central...

I've never tried this—can't help.

> I ported a frameworks but when I want to use it's component (TimeField here), 
> I have this error: "Cannot find class or component named 'TimeField" in 
> runtime or in a loadable bundle"
> 
> BTW, I did "mvn install" to have the framework in my local maven repository 
> and it's sources are in my current workspace.

Hmm... not sure. Make sure the version you've nominated in the application's 
POM matches the version in the framework POM—otherwise, Eclipse will go looking 
for a JAR in ~/.m2/repository, though that usually only affects loading 
WebServerResources in my experience, and you say you've installed the framework 
JAR anyway. Oh, and I see you've fixed it anyway:

On 2 Apr 2024, at 12:40, Samuel Pelletier via Webobjects-dev 
 wrote:

> Follow up on my component problem, I just found the solution for with my 
> framework component, it was related to the order of dependencies declaration, 
> like ant, original WebObjects packages need to be after wonder ERExtensions...

> Is there a way inside Eclipse to do mvn install ?

I don't know.

> I still have not figured out how to build and deploy the app (replace the ant 
> install and manual rsync to server I actually do)

You have some options:

1. Run 'mvn package' locally, then you'll find the usual build products 
App.woapplication.tar.gz and App.wowebserverresources.tar.gz in the target 
directory. If your previous process was manual, this gets you to basically the 
same place as local usage of Ant would.

2. Better, but more complicated: set up your own repository using an app like 
Artifactory. It takes some one-off work, but you then 'mvn deploy' to that 
repository, and over on your appserver you can use Artifactory's API to pull 
down the build products and install them.

3. Even better, but even more complicated: set up CI/buildserver between your 
Git repo and Artifactory. You push to the Git repo, then your buildserver runs 
Maven to build, test and deploy to Artifactory.

All of this involves quite a bit of work, but on the upside you only need to 
invest the time once.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: RDS [was: Re: WOLips Update]

2024-03-16 Thread Paul Hoadley via Webobjects-dev
Hi Jesse,

On 17 Mar 2024, at 11:12 am, Jesse Tayler  wrote:

> I’m upgrading from a rather old MySQL, this is basically a button press and I 
> suppose I should dump the data in case something goes awry but I cannot see 
> why my boring EO Model would have any trouble using an updated version even 
> if the jump is — well, at least like…I dunno - ten years? 

You mean you're already on RDS and just need to upgrade? I've certainly never 
encountered any problems, though I'm surprised you could get a decade behind. 
RDS is more aggressive than that with PostgreSQL, at least, forcing major 
version updates from time to time.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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


RDS [was: Re: WOLips Update]

2024-03-16 Thread Paul Hoadley via Webobjects-dev
On 17 Mar 2024, at 1:20 am, Jesse Tayler via Webobjects-dev 
 wrote:

> Does anyone use RDS on AWS?

We've been using PostgreSQL on RDS for years. Is there anything you want to 
know?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


Maven "Quick Start" [was: Re: Meetup maybe? Or call me maybe?]

2023-12-25 Thread Paul Hoadley via Webobjects-dev
On 25 Dec 2023, at 08:38, Paul Hoadley via Webobjects-dev 
 wrote:

> Hugi and I will fix the documentation on the Wiki. Going from zero to Hello 
> World should take anyone about 10 minutes (modulo some artefact download 
> time). Converting an existing project might take 20 minutes.

I've just updated the Maven "Quick Start" page here:

https://wiki.wocommunity.org/xwiki/bin/view/WOL/Home/WOProject-Maven/Quick%20Start/
 
<https://wiki.wocommunity.org/xwiki/bin/view/WOL/Home/WOProject-Maven/Quick%20Start/>

It's a re-write from scratch: some of the existing information was helpful 10 
years ago, but a lot of it was stale and fragmented. I've tested it myself, and 
it should work. My claim is that even a non-Mavenite should be able to go from 
zero to Maven-Hello-World in about 10 minutes. Please try it out, especially 
the New-Mavenites and Maven-Curious:

* Does it work from start to finish? If not, let me know where it failed and 
I'll fix it.
* How long did it take?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Meetup maybe? Or call me maybe?

2023-12-24 Thread Paul Hoadley via Webobjects-dev
Hi everyone,

On 24 Dec 2023, at 2:14 am, Hugi Thordarson via Webobjects-dev 
 wrote:

> Samuel; the maven info on the WOCommunity wiki is very outdated, to the point 
> that I think a lot of it should just be deleted and replaced with more modern 
> info. I've been kind of shy to do that (i.e. fudging around with other 
> peoples' hard work), but it's probably time to just … do it? I'm excited to 
> play around with that new wiki software Maik has set up!

It is definitely time to just do it.

> In the last couple of years, I've put my guides into gists, so here are a 
> couple; one showing how to do a fresh setup of a WO maven development 
> environment, and another one showing how to port an existing Fluffy Bunny 
> project to maven (which Paul has also added to):
> 
> https://gist.github.com/hugithordarson/d2ba6da9e4942f4ece95d7a721159cd1 
> <https://gist.github.com/hugithordarson/d2ba6da9e4942f4ece95d7a721159cd1>
> https://gist.github.com/hugithordarson/3c269a3196d0c4f2da486f1109c16d42 
> <https://gist.github.com/hugithordarson/3c269a3196d0c4f2da486f1109c16d42>

This is mine:

https://gist.github.com/paulhoadley/cd15b90c94eb8c640fddd9ac3fbbc6dc

I really don't know whose is better or more current, or even why I forked 
Hugi's in the first place.

On Dec 21, 2023, at 7:14 AM, Samuel Pelletier via Webobjects-dev 
 wrote:

> If you managed to create a new project, you where able to go far beyond my 
> achievements !
> 
> I tried to switch to maven few times in the last years and just gave up each 
> time after few hours and never managed to create a new project without error 
> that build ever after reading and trying to understand the 3-4 page on the 
> subject I found.
> 
> If someone familiar with the matter can create or update an existing page 
> with a step by step procedure starting from a totally clean user account, it 
> would be great.
> 
> Creating new Wonder project would be sufficient but also having some 
> instructions to migrate a project using an BusinessLogic framework would be a 
> dream.

This is disappointing to hear—we should have been able to get Samuel over the 
line. It's not hard at all—we get even non-Java people to set up WebObjects 
projects from time to time. Hugi and I will fix the documentation on the Wiki. 
Going from zero to Hello World should take anyone about 10 minutes (modulo some 
artefact download time). Converting an existing project might take 20 minutes.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: FORBIDDEN

2023-12-02 Thread Paul Hoadley via Webobjects-dev
Thanks Maik. We all really appreciate the work.

> On 2 Dec 2023, at 6:36 am, Maik Musall via Webobjects-dev 
>  wrote:
> 
> Hi all,
> 
> sorry we didn’t make it yet. An OS update somehow messed up the document 
> space, and there are thousands of residual user accounts we need to clean 
> out, otherwise we would need to buy a very expensive license for a macro 
> plugin. Hang on.
> 
> Maik


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: WOLips bugfixes and new features planning

2023-07-25 Thread Paul Hoadley via Webobjects-dev
Hi Maik,

On 25 Jul 2023, at 18:54, Maik Musall  wrote:

> well, aiming to update WOLips “just” to address those issues comes down to 
> the same problem of finding someone to do it.

Understood. Is this something Ralf could handle? (I'm going into this blind—I 
have no idea what the problem is, nor whether Ralf is willing and able, I just 
recall he has fixed API issues in the past. Hi Ralf!)

> But indeed we had someone contacting us about that, but before we go ahead 
> and actually throw money that way I’d be more comfortable receiving more 
> input from everyone about the Eclipse vs. IntelliJ question.

My personal preference would be to stay with Eclipse, but that's based solely 
on Eclipse being the tool I know. I would be happy to migrate to IntelliJ if 
that was the consensus.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: WOLips bugfixes and new features planning

2023-07-18 Thread Paul Hoadley via Webobjects-dev
Hi Maik,

On 18 Jul 2023, at 20:22, Maik Musall via Webobjects-dev 
 wrote:

> We’re still sitting on the unused funds from everyone and feel uncomfortable 
> with the situation.

As a single data point, this is no problem from Logic Squad's perspective. We 
know you're holding the money and that spending it has proven rather difficult!

> In the meantime, we had a number of potential employees for job interviews, 
> and many of them weren’t fond of the idea to move from whatever they used 
> before to Eclipse. Maybe we should abandon that idea and look at creating a 
> plugin for IntelliJ instead or something, and use the funds towards that?

I note in Slack there are some people mentioning issues with very recent 
Eclipse releases. What's the prospect of updating WOLips just to address those 
issues? I'd be happy to spend some of the money on just keeping it running. Who 
was it that made the most recent changes to address Eclipse API changes, and 
can we tempt them with money to look at this?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: From ANT to Maven

2023-06-07 Thread Paul Hoadley via Webobjects-dev
On 7 Jun 2023, at 11:46 pm, Jens Schulze via Webobjects-dev 
 wrote:

> So for everybody that wishes to try maven on WO; have a look at the sample 
> projects.

Nice one!


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Custom array column types in EO model

2022-11-04 Thread Paul Hoadley via Webobjects-dev
Hi Ramsey,

On 3 Nov 2022, at 16:42, Ramsey Gurley  wrote:

> I think I see where I did the magic now.
> 
> If you look at the main commit where it appeared,
> 
> https://github.com/wocommunity/wonder/commit/28ab710470fbff0c82449e6f0be3cf6127f273d6
>  
> <https://github.com/wocommunity/wonder/commit/28ab710470fbff0c82449e6f0be3cf6127f273d6>
> 
> You can see there's properties to set the jdbc adaptor and column class. You 
> possibly need to implement your own custom column to handle a sql array type 
> in addition to dates.

Thanks for that—it was enough to get me heading in the right direction.

After a day of trial and error, and re-kindling my friendship with the Eclipse 
debugger, I actually got the job done: I have an attribute that returns an 
NSArray, backed by a PostgreSQL 'text[]' column, using a java.sql.Array 
to and from the JDBC adapter. I can report that this is possible without 
modifying Wonder's EOAttribute clone, though it's a little hairy:

1. I created a sub-class of ERXEnhancedJDBCColumn (which basically supersedes 
the now-deprecated DateJDBCColumn). Unfortunately, that needs to live in the 
com.webobjects.jdbcadaptor because JDBCColumn is package-private (and it needs 
access to some package-private fields in that class), but I can live with that.

2. Overriding takeInputValue(), I call super.takeInputValue() and catch the 
IllegalArgumentException thrown on the way out of 
adaptorValueByConvertingAttributeValue() (which you identified in a previous 
post). My preference was to check whether I have an "attribute of interest" 
(see below), and immediately just call _statement.setArray(this._column, 
convertedValue) (where convertedValue is the java.sql.Array I've created), but 
that didn't work—I've forgotten the details, but I presume there's something 
going on in the call to super.takeInputValue() that's important. I might still 
investigate this further to reduce the ugly exception-catching idiom here.

3. _fetchValue() needs to be overridden as well, similar to what Henrique did 
for numeric types in 62717132. I've added a new Value Type "AS" for the model, 
which stands for "array of strings". If I've got an EOAttribute with this Value 
Type, I can just return NSArray.of((String[]) 
_rs.getArray(_column).getArray())—I don't need a factory method, because a 
java.sql.Array knows how to turn itself into a primitive array.

4. Finally, and I can't believe I'm going to admit this, there's some mild 
model swizzling required: EOAttribute.adaptorValueType() basically defaults to 
AdaptorBytesType if you don't set a Factory Method (_valueFactoryMethodName) or 
an Init Argument (_argumentType) in the model, and that seemed to prevent 
creating the java.sql.Array coming out. I could have faked it—setting the 
method name to "dummy" and argument to String in the model gets us 
AdaptorCharactersType, but that felt dirtier than calling this on the attribute 
of interest: FieldUtils.writeField(attribute, "_adaptorValueType", 
EOAttribute.AdaptorCharactersType, true).

Anyway, (a) this works (well, in very limited testing so far), which is great, 
but (b) it could probably be better achieved by modifying (Wonder's) 
EOAttribute. I stopped short of doing that only because it should probably be 
implemented in a general and well-designed way. I think this should be 
database-agnostic, but adding new symbolic Value Types for models is probably 
something we should discuss here first. If anyone is interested in this, I'd be 
happy to collaborate on bringing it into Wonder.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Custom array column types in EO model

2022-11-02 Thread Paul Hoadley via Webobjects-dev
Hi Ramsey,

On 2 Nov 2022, at 17:55, Ramsey Gurley  wrote:

> I can't say I remember, but if you look in 
> adaptorValueByConvertingAttributeValue on EOAttribute in 
> ERAttributeExtension, there's a bit at the end of the method where I let the 
> date types slide by to support Joda dates. You may have to add support for it 
> there, as that is where your exception appears to be emanating from.

Yeah, I got as far as seeing the origin of the exception there. As a quick 
brute-force test, I commented that entire section out, but it didn't help:

2022-11-03 04:54:48.875 INFO  er.transaction.adaptor.Exceptions - Database 
Exception occured: com.webobjects.eoaccess.EOGeneralAdaptorException: Unable to 
create a byte representation for class 
"net.logicsquad.woextensions.eof.PostgresqlTextArray"
2022-11-03 04:54:48.883 ERROR er.extensions.appserver.ERXApplication - Juno 
failed to start.
EOGeneralAdaptorException: Unable to create a byte representation for class 
"net.logicsquad.woextensions.eof.PostgresqlTextArray"

I'm not sure who is complaining here, or why. Is this the JDBC adapter telling 
me that it doesn't know what to do with PostgresqlTextArray, which is a quick 
and dirty implementation of java.sql.Array I copy-pasted off the web?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: Custom array column types in EO model

2022-11-02 Thread Paul Hoadley via Webobjects-dev
Hi Jürgen,

That was one of the first things I tried—formatting the array as PostgreSQL 
would expect to see it via, say, psql and then just trying to ram it through! 
As with other approaches I've tried, it gets you close, but not quite there. 
Firstly:

2022-11-03 04:41:37.922 WARN  NSLog - *** JDBCAdaptor : no type info found for 
text[]

Doesn't seem to like "text[]" as an external type, though I am not sure how 
important that is. And then:

EOGeneralAdaptorException: EvaluateExpression failed: 
 wrote:

> Maybe you should try the easy way.
> The data type text[] requires curly brackets.
> 
> Q
> 
> public static String postgesqlTextArrayFromNSArray(NSArray 
> stringArray) {
>   StringJoiner sj = new StringJoiner(",", "{", "}");
>   for (String s : stringArray) {
>   sj.add(s);
>   }
>   return sj.toString();
> }
> 
> {
> adaptorValueConversionClassName = 
> "de.htgreenline.divas.prototypes.ValueConversion"; 
> adaptorValueConversionMethodName = postgesqlTextArrayFromNSArray; 
> columnName = newAttribute; 
> externalType = "text[]"; 
> factoryMethodArgumentType = EOFactoryMethodArgumentIsNSString; 
> name = newAttribute; 
> valueClassName = "com.webobjects.foundation.NSArray"; 
> valueFactoryClassName = "de.htgreenline.divas.prototypes.ValueFactory"; 
> valueFactoryMethodName = stringArrayFromTextArray; 
>  }


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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


Custom array column types in EO model

2022-11-01 Thread Paul Hoadley via Webobjects-dev
Hello,

I'm trying to get this to work for PostgreSQL, though I suspect it would be 
similar for any RDBMS that offered a type like "text[]":

https://www.postgresql.org/docs/current/arrays.html

Ideally, I'd like to map an NSArray attribute on the model side to a 
text[] column in Postgres, though any variation on this would be a good start. 
I can't quite get there, even with the smarts added by ERAttributeExtension. 
This is as close as I can get:

{
adaptorValueConversionClassName = 
"net.logicsquad.woextensions.eof.LSValueConversion"; 
adaptorValueConversionMethodName = 
stringArrayToPostgreSQLTextArray; 
allowsNull = Y; 
columnName = "metadata_key_list"; 
externalType = anyarray; 
name = metadataKeyList; 
valueClassName = "com.webobjects.foundation.NSArray"; 
valueFactoryClassName = 
"net.logicsquad.woextensions.eof.LSValueConversion"; 
valueFactoryMethodName = arrayToStringArray; 
}, 

I'm only working on the output side for the minute. LSValueConversion. 
stringArrayToPostgreSQLTextArray(NSArray) returns a subclass of 
java.sql.Array, which I assume is what the Postgres JDBC driver wants. However, 
when I try to save an object, it's EOAttribute that complains:

[2022-11-2 5:31:59 UTC]  
com.webobjects.eoaccess.EOGeneralAdaptorException: EOAttribute 
adaptorValueByConvertingAttributeValue(Object): Unable to convert value of 
class net.logicsquad.woextensions.eof.PostgresqlTextArray for attribute 
'metadataKeyList' in entity 'DocumentVersion' to adaptor type 
EOAttribute.AdaptorBytesType.  Check the signature of the conversion method 
com.webobjects.foundation.NSArray.stringArrayToPostgreSQLTextArray().

To my eye, that's suggesting that the conversion method is not producing an 
object of type "bytes", which is true enough—it's a subclass of java.sql.Array. 
It doesn't help to comment out the part of EOAttribute that's throwing that 
exception, either:

2022-11-02 05:40:58.728 WARN  NSLog - A fatal exception occurred: Unable to 
create a byte representation for class 
"net.logicsquad.woextensions.eof.PostgresqlTextArray"

At this point I'm out of ideas. Has anyone done this or anything like it?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WebObjects Docker Deployment

2022-08-15 Thread Paul Hoadley via Webobjects-dev
Hi Oleksii,

On 15 Aug 2022, at 06:50, Oleksii Serhiienko via Webobjects-dev 
 wrote:

> In the past, I was working with a WebObjects application which was migrated 
> to the Cloud.
> To share more findings and experience, I have created a demo application 
> <https://github.com/lexxito/webobjects_docker> 
> You should be able to run with docker-compose and docker swarm.
> I have some more explanations in the post I made 
> <https://medium.com/@oleksii.serhiienko_58987/deploying-webobjects-applications-in-containerized-environments-e49011d60732>
>  and some helpful docker images <https://hub.docker.com/u/lexxito>.
> 
> Hope, my experience will be helpful and feel free to ask some questions. 

That was a great article, super-interesting. Presumably it wasn't just an 
academic exercise—are you using any of these approaches in production? Can you 
tell us any more about it?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: [Proposal] Drop Wonder's Ant Build

2022-06-28 Thread Paul Hoadley via Webobjects-dev
On 29 Jun 2022, at 10:42, Aaron Rosenzweig via Webobjects-dev 
 wrote:

> It’s not a completely different issue is it?
> 
> If anyone builds Wonder as part of their CI/CD and is currently using ANT, 
> they will need to switch to Maven going forward.

Is that how you build Aaron, or just a hypothetical? (Part of the problem is 
that these days we don't even know who everyone is, let alone what they're 
doing!)

> While we wish everyone who makes changes to Wonder would make pull requests 
> to integrate them but that doesn’t always happen. Those teams essentially 
> have a fork of Wonder that they periodically merge public changes into and 
> build with ANT. 
> 
> That said, I can understand why many don’t want to support ANT anymore when 
> they don’t even use it. If Maven is the future then people will have to 
> change. 

At some point the issue just comes down to motivated manpower: there's just no 
one left to support the Ant build. It hasn't worked on Jenkins for months, but 
no one noticed and no one has the motivation to fix it. I think this is less of 
an active decision to drop Ant support, but rather a passive realisation that 
there's just no one that's going to do the work.

> Question… I thought Maven was old-hotness once Gradle stepped in? If we are 
> talking about moving on, why isn’t Gradle on the table? 

Again, it's just motivated manpower: who would build a Gradle plug-in?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: [Proposal] Drop Wonder's Ant Build

2022-06-16 Thread Paul Hoadley via Webobjects-dev
Hey Ted,

Already answered, but just for additional reassurance:

On 17 Jun 2022, at 08:17, Theodore Petrosky via Webobjects-dev 
 wrote:

> What about us guys whose projects are smallish projects and never instituted 
> Maven...

It won't affect your projects! This is purely about building the Wonder 
frameworks from source. You won't need to migrate your projects to Maven if you 
don't want to, though I strongly recommend that you do.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: [Proposal] Drop Wonder's Ant Build

2022-06-16 Thread Paul Hoadley via Webobjects-dev
On 17 Jun 2022, at 08:12, Henrique Prange via Webobjects-dev 
 wrote:

> What do you think?

I fully support this proposal.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: ERJGroupsSynchronizer

2022-03-20 Thread Paul Hoadley via Webobjects-dev
Hi Ricardo,

On 19 Mar 2022, at 14:25, Ricardo Parada via Webobjects-dev 
 wrote:

> Does anybody use ERJGroupsSynchronizer?

We've been using it for years now, albeit with some light modifications to 
allow JGroups to work on AWS (originally via the Meltmedia AWS_PING project, 
but now via our own fork of that since it's essentially abandonware).

> I’m trying to synchronize two EOF stacks within a single VM. I don’t want the 
> synchronization to happen across application instances. 
> 
> The video from Mike Shrag from a WOWODC conference said it can be single VM 
> or across VM. I’m interested in the single VM but have not yet figured out 
> how to do it. 
> 
> Basically, I have a background task doing work on a separate EOF stack and I 
> want the changes to reflect on the EOF stack used by the user interface 
> without resorting to fetching. 

Intra-JVM like that is not a configuration we've used. Can you walk us through 
what you've tried and why you think it's not working? There have been a few 
others using it over the years, maybe they're still on the list.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Hello again

2022-01-18 Thread Paul Hoadley via Webobjects-dev
On 19 Jan 2022, at 8:19 am, Mark Wardle  wrote:

> One major issue was that I had .project in my gitignore file, so eclipse made 
> new ones without the wolips magic / maven features. That meant I got weird 
> NPE when I tried with a new machine and different behaviour on another.

Yes, that will definitely be a problem. You must have a .project file with both 
of the 'maven2Nature' entries. One of them is the correct, current entry for 
Eclipse, the other is essentially a magic string to match what's hard-coded 
deep in a WebObjects class. You won't get proper bundle loading without these.

> I still had a problem finding all of the EOModels, and an odd thing not 
> finding resources in frameworks, so I ended up sticking with my fix of 
> bringing all frameworks into the main application. That is fine for now - and 
> given my plan is to move away from frameworks to simple jars (some java, most 
> clojure), then this gives me the opportunity to delete lots of code and 
> migrate to my more modern backend components. One example, for instance, is 
> https://github.com/wardle/hermes <https://github.com/wardle/hermes> - so my 
> old application had SNOMED CT as a dependent framework - I'll be replacing by 
> simply calling that library and deleting that framework code.

While I'm glad it worked, you shouldn't need to do any of this. If you want to 
keep debugging the external framework approach, I am happy to keep going. We 
will get there. I'd start by checking what's going on in .project for each of 
those as well, if they're open in the Eclipse workspace.

> It looks rather messy at the moment, with everything together, but at least 
> I've got maven running, a new version of my application already deployed, and 
> upgraded to 7.2 of Wonder. It's a great step towards modernisation.

7.3 was just released! And because you're using Maven, you can pick that up 
with a single character diff.

> To be fair, building a new maven application using eclipse always worked. It 
> was bringing all my old cruft along that seems to have caused the issues, 
> plus a major dose of idiocy on my part. 

It can be hard migrating a large project with frameworks, but it is possible. 
If you want to persist, we can make it work.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Hello again

2022-01-18 Thread Paul Hoadley via Webobjects-dev
Hi Mark,

On 18 Jan 2022, at 8:16 pm, Mark Wardle  wrote:

> I have nuked my local installation of eclipse. I did have dashes in the path 
> to my workspace. I tried an installation on a fresh machine, but with latest 
> eclipse (4), and I now get NPE when I try to run a WOApplication. So I'm 
> going to delete the installation again, install eclipse 3 and a compatible 
> wolips, and then see what happens. I do have dependent frameworks open in 
> eclipse. Some of those now depend on locally installed maven artefacts, but I 
> have manually used mvn install to install them into the local repository. 
> 
> Out of interest, what version of eclipse and wolips are you using? I was on 
> eclipse 4 and wolips master on this mac, and then when I tried on a fresh 
> linux machine, I mistakenly installed the same. Perhaps that's the issue.

I don't think it's going to turn out to be an Eclipse issue. We're just missing 
one detail here, I'm sure—I just can't put my finger on it. I use a range of 
different Eclipse versions. On this iMac, for example, it's 2019-09 and what 
looks like WOLips 4.10. Head over to #maven on Slack and let's see if we can 
wake up anyone else who might help.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: Hello again

2022-01-18 Thread Paul Hoadley via Webobjects-dev
On 18 Jan 2022, at 6:27 pm, Mark Wardle  wrote:

> I suspect you fixed it through a special incantation on the first blood red 
> moon of April. 
> 
> Anyway, I clearly have a different environment when running at the command 
> line compared to in eclipse.

Eclipse isn't doing a full Maven package build either. There's quite a bit of 
magic going on with a launch from Eclipse.

> So actually none of my own models are included.

Right. It really shouldn't be this hard. Remember to answer these:

> Do you have the framework projects open in the same workspace? If not, have 
> you run 'mvn install' for the framework projects so that their JARs are in 
> ~/.m2/repository?


> I have five models. Some were in src/main/resources/models and some were in 
> src/main/resources so I did the same for all frameworks - and put them in 
> src/main/resources.

Shouldn't matter (I used a models sub-directory for some projects too), but 
don't make any further changes for now.

> I am not clear what I'm doing wrong! Deleting the error messages in eclipse 
> seems to have resolved those errors. So bizarre. They haven't appeared for a 
> while now!

Eclipse will occasionally throw up spurious errors like this, and you can just 
delete them. It's unrelated to the model issue above.

> Can't help to think I have misconfigured eclipse in some way. I miss IntelliJ 
> and VScode, which I've been using for quite some time!

Once we get this working, you will learn to love Eclipse again. Err, maybe.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Hello again

2022-01-17 Thread Paul Hoadley via Webobjects-dev
On 18 Jan 2022, at 5:25 am, Mark Wardle  wrote:

> Amazingly Paul, I found this from the past in which you had exactly the same 
> issue. I have different models in different frameworks. They are brought in 
> perfectly using maven at the command line, and everything just seems to work. 
> In eclipse, it is a different matter - I too have now unchecked 
> NSProjectBundleEnabled, but it is still showing errors.

I cannot believe I did not report back to the list with a solution. Lazy.

> The the "Problems" tab, I get errors relating to packaging and the 
> wolifecycle maven plugin:
> 
> 
> Super odd, because I cannot see any difference between those two and all of 
> the other frameworks in the workspace which do not show an error. It just 
> seems so inconsistent. Maven at the command line appears to be doing nice 
> reproducible things everytime. 

Just delete those errors from that tab.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Hello again

2022-01-17 Thread Paul Hoadley via Webobjects-dev
Hi Mark,

On 17 Jan 2022, at 6:04 pm, Mark Wardle  wrote:

> Right. It *is* all working - from the command-line. 
> 
> But it is eclipse that is having problems. For some reason I get a 'no model 
> found' in this model group error.
> 
> Jan 17 07:16:57 RSNews[59144] WARN  NSLog  - A fatal exception occurred: 
> There is no model named 'NhsModel' in this model group.
> [2022-1-17 7:16:57 GMT]  java.lang.IllegalArgumentException: There is 
> no model named 'NhsModel' in this model group.
> 
> I have only a hazy recollection of how model groups work - and they just 
> seemed to work before. Oddly, I can't find any eomodel directories in my 
> command-line built target, so presume they end up in the jar files.

Yes they will.

> Do I need a special  statement in any of the pom files?

No. Are your models just sitting in src/main/resources?

> I note this wasn't an issue when I created a single maven project combining 
> all of my frameworks and a single application, but it is an issue now my 
> EOModels are in different frameworks from the application. Is there a special 
> command-line parameter to set (or unset) for eclipse, as it seems to find the 
> models when run from the command-line.

No, I don't think so. Do you have the framework projects open in the same 
workspace? If not, have you run 'mvn install' for the framework projects so 
that their JARs are in ~/.m2/repository?

> PS Oh and eclipse seems to want to keep changing the .classpath files. I know 
> maven will ignore those, but it is disconcerting. Do I check them into 
> version control or add them to .gitignore now?

I check .classpath into the repo for WebObjects projects, and periodically 
commit changes that Eclipse seems to make on a whim.

The last 5% of the Maven journey can be frustrating, but once we get you there, 
you won't look back.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Hello again

2022-01-16 Thread Paul Hoadley via Webobjects-dev
On 17 Jan 2022, at 8:05 am, Mark Wardle  wrote:

> Thanks to Paul and all involved in building the maven plugin and support for 
> WebObjects/Project Wonder, I'm very pleased to say that I can now quickly and 
> easily build my entire project using maven, now as separate frameworks and 
> applications.

Brilliant.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Hello again

2022-01-15 Thread Paul Hoadley via Webobjects-dev
Hi Mark,

On 16 Jan 2022, at 8:32 am, Mark Wardle via Webobjects-dev 
 wrote:

> Long time no see. I have quietly lurked here while working on a different 
> technology stack (mainly clojure/clojurescript), but now want to migrate my 
> old WO applications to use my newer backend components when possible.

Welcome back.

> 1. Please could I have an invite to the slack channel?

Looks like someone has hooked you up—Slack telling me m...@wardle.org 
<mailto:m...@wardle.org> would be a duplicate.

> 2. I have restarted my push to migrate to maven, as I need to modernise the 
> build and make it easier to stitch everything I need together. But I've hit 
> some hurdles - are there any maven experts?

There are several. There's a #maven channel on Slack.

> a) My EOModels in frameworks were not being found until I specifically told 
> eclipse to NSBundeProjectEnabled to false. That seemed to fix that, but now I 
> get a weird NPE on startup (in eclipse) which suggests my class description 
> for an entity isn't being found. I do have 
> true in 
> at least the main application package.
> 
> [2022-1-15 21:13:14 GMT]  java.lang.NullPointerException
>   at 
> er.rest.IERXRestDelegate$Factory.delegateForClassDescription(IERXRestDelegate.java:147)
>   at 
> er.rest.routes.ERXRouteRequestHandler.addDefaultRoutes(ERXRouteRequestHandler.java:539)
>   at com.eldrix.news.app.Application.(Application.java:110)
> 
> I'm using v2.5 of the maven lifecycle plugin.
> 
> b) At least I get that far in eclipse. At the command-line, when I build the 
> application, I get the following:
> 
> Exception in thread "main" com.webobjects.foundation.NSForwardException 
> [java.util.zip.ZipException] zip END header not 
> found:java.util.zip.ZipException: zip END header not found
>   at 
> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:45)
>   at 
> er.extensions.appserver.ERXApplication$Loader.stringFromJar(ERXApplication.java:857)
>   at 
> er.extensions.appserver.ERXApplication$Loader.(ERXApplication.java:517)
>   at 
> er.extensions.appserver.ERXApplication.setup(ERXApplication.java:1071)
>   at er.extensions.appserver.ERXApplication.main(ERXApplication.java:884)
>   at com.eldrix.news.app.Application.main(Application.java:73)
> 
> My google-fu has failed me for this one. I have cleaned all the frameworks, 
> installed them all and then rebuilt the application without success. I 
> deleted .m2/repository as a last resort, and did it all again, but the 
> problem persists. I also thought maven would automatically manage submodules 
> and build them in the right order, but that doesn't happen either.

Before we wade into these, how did you convert your project(s) to Maven? Did 
you follow this or something like it?

https://gist.github.com/paulhoadley/cd15b90c94eb8c640fddd9ac3fbbc6dc 
<https://gist.github.com/paulhoadley/cd15b90c94eb8c640fddd9ac3fbbc6dc>

I would suggest doing one project at a time. Choose a framework that is 
dependent on no other projects, for example. Get it working, then move to the 
next.

> I would be very grateful for any pointers at all. I still would like to move 
> away from ant for this build, and I need to simplify my frameworks, so moving 
> to maven seems like an important step in modernising my build.

You won't regret it. Any time you spend now getting your projects converted 
will be paid off a hundred times later. It will instantly simplify your CI 
options, just as one example.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Log4j Vulnerability

2021-12-27 Thread Paul Hoadley via Webobjects-dev
On 28 Dec 2021, at 11:16 am, Aaron Rosenzweig  wrote:

> Should we upgrade the Wonder jars to v2.16?

We could (and it's 2.17 now!), and Henrique mentioned on Slack he would take a 
look at this. Unfortunately it's more complicated than just bumping version 
numbers:

https://github.com/wocommunity/wonder/issues/304
https://wiki.wocommunity.org/display/documentation/Wonder+Logging


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Log4j Vulnerability

2021-12-16 Thread Paul Hoadley via Webobjects-dev
Just to update this:

On 14 Dec 2021, at 12:07, Paul Hoadley via Webobjects-dev 
 wrote:

> * In any case, if you're definitely using Log4J 2 (we are—I went to some 
> effort months ago to set it up!), you can mitigate the issue immediately by 
> re-launching all instances with "-Dlog4j2.formatMsgNoLookups=true".

It turns out that this was not a complete mitigation:

https://www.lunasec.io/docs/blog/log4j-zero-day/ 
<https://www.lunasec.io/docs/blog/log4j-zero-day/>

> That will give you time to re-build with Log4J 2.15.0.

And that 2.15.0 was not a complete fix either:

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45046 
<https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45046>

Current release is 2.16.0, and you should update to that if you're using Log4J 
2.

https://logging.apache.org/log4j/2.x/security.html 
<https://logging.apache.org/log4j/2.x/security.html>


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Log4j Vulnerability

2021-12-13 Thread Paul Hoadley via Webobjects-dev
Hello,

On 13 Dec 2021, at 20:56, Daniele Corti via Webobjects-dev 
 wrote:

> Today the vulnerability CVE-2021-44228 details (log4j) are out and looks like 
> all log4j versions are affected!
> 
> I’ve seen many attempt on the logs of the servers, but I was not able to 
> understand if also my ERJar which contains the log4j-1.2.17 is affected.

As Ken Anderson noted, it only affects versions >=2.0-beta9 and <=2.14.1.

https://logging.apache.org/log4j/2.x/security.html

So log4j-1.2.17 specifically is unaffected. If that's the only Log4J you've got 
on the classpath, you're not affected. If you're running a vanilla Wonder app, 
you're almost certainly not using Log4J 2.

> Anyone was able to check if the standard 
> er.extensions.logging.ERXConsoleAppender is vulnerable?

It's "vulnerable" only to the extent that it does use '%m' to print the log 
message (and a potential mitigation is to use '%m{nolookups}' if you're on 
version >= 2.7), but that's only relevant if you're using a vulnerable version 
of Log4J 2.

Here are some brief notes I posted to Slack earlier today:

* The good news is that if you're just using vanilla WebObjects/Wonder, you're 
probably not affected by it: Wonder is still on Log4J 1. You might have a 
dependency pulling in Log4J 2, though it's not clear to me whether that would 
matter unless you had the app-level co-operation to set up and use Log4J 2 to 
do actual logging. If you're using Maven, it's very easy to check: "mvn 
dependency:tree | grep log4j".

* In any case, if you're definitely using Log4J 2 (we are—I went to some effort 
months ago to set it up!), you can mitigate the issue immediately by 
re-launching all instances with "-Dlog4j2.formatMsgNoLookups=true". That will 
give you time to re-build with Log4J 2.15.0.

* Finally, if you're using AWS and you're using Web Application Firewall (WAF, 
which I highly recommend), you're already covered by the 
AWSManagedRulesKnownBadInputsRuleSet rules—if you're not using that set, add it 
immediately.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Single thread creation queue?

2021-11-24 Thread Paul Hoadley via Webobjects-dev
On 25 Nov 2021, at 01:11, Jesse Tayler  wrote:

> A collation would also work, I don’t think there’s a need to preserve case 
> but I guess I have thus far and perhaps that’s an easier route than 
> attempting to alter data in place, I could simply add the function in a way 
> it can blend in perhaps.

An additional option if you're using PostgreSQL (though you've hinted that 
you're not) is using the CITEXT extension type on the column:

https://www.postgresql.org/docs/13/citext.html

We've been using this on, for example, user-supplied email addresses as login 
identifiers for several years now. It lets you preserve the user-supplied case, 
but ignores it for comparisons.

> I tried to find a decent wiki page, but does anyone have good examples of 
> migrations that add constraints or do fancy stuff? 
> 
> Do I have to stuff raw SQL into a migration or are there functions I can’t 
> see in there--

You'll need to stuff raw SQL into a migration. There are several ways to do it, 
and here's one of them. In upgrade():

ERXJDBCUtilities.executeUpdate(database.adaptorChannel(), "ALTER TABLE foo ADD 
CONSTRAINT bar_unique UNIQUE (bar) DEFERRABLE INITIALLY DEFERRED;");

That's PostgreSQL syntax, and you might need to adjust it for another database.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Single thread creation queue?

2021-11-23 Thread Paul Hoadley via Webobjects-dev
Hi Jesse,

On 24 Nov 2021, at 03:19, Jesse Tayler via Webobjects-dev 
 wrote:

> Ok wait — I have a question
> 
> I see my qualifier and the constraint needs to be equivalent 
> 
> The qualifier has one fixed string and the second string is — 
> case-insensitive — constraints don’t seem to allow this notion?
> 
> I see a several suggestions on what is clearly the same, common issue - often 
> usernames have this quality
> 
> https://stackoverflow.com/questions/637030/lowercase-constraint-sql-server
> 
> Anyone have insight?

Are you able to paste in some code? There's probably a solution, but this is 
getting a bit hard to follow in the abstract.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: strange JavaMonitor behavior — Failed to contact 127.0.0.1-1085

2021-05-05 Thread Paul Hoadley via Webobjects-dev
Hi Jesse,

On 6 May 2021, at 02:33, Jesse Tayler via Webobjects-dev 
 wrote:

> One of my servers is running ok, but JavaMonitor isn’t getting any contact 
> with what I guess must be wotaskd?
> 
> Any suggestions or seeing what might be down or how to get that back up most 
> properly? I see some notes in the wiki but nothing seemed like a ringer and I 
> can’t recall ever having this happen before?

wotaskd can certainly crash or die. Fixing the issue is a matter of killing it 
if required, and restarting it.

> I notice I seem to have JavaMonitor running inside JavaMonitor which I guess 
> is how we ensure it is available — so, that’s a normal config everyone does? 
> I’m not even sure…

No, that sounds quite unusual.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Idle in transaction

2020-12-14 Thread Paul Hoadley via Webobjects-dev
Hi Aaron,

On 15 Dec 2020, at 07:59, Aaron Rosenzweig via Webobjects-dev 
 wrote:

> Anyone have any thoughts or experience with this? 

Just some data points for you. Out of curiosity, I ran that query on several 
databases in the wild here (modest traffic—daily sessions in the thousands): 
none of them returned any rows at all. I'd say we're not seeing this issue. 
Postgres 9 and 11, Wonder 7.1.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: ERXExistsQualifier

2020-11-26 Thread Paul Hoadley via Webobjects-dev
Hey Dave,

Is this thing on? So, some time passed...

On 26 Apr 2015, at 05:18, David Avendasora  wrote:

> Here’s the branch that has the new ERXQualifierExistsSubquery:
> 
> https://github.com/nekesto/wonder/tree/ERXQualifierExistsSubquery 
> <https://github.com/nekesto/wonder/tree/ERXQualifierExistsSubquery>
> 
> It is based off of the 
> https://github.com/nekesto/wonder/tree/SQLExpression_aliasesByRelationshipPath
>  
> <https://github.com/nekesto/wonder/tree/SQLExpression_aliasesByRelationshipPath>
>  branch, so you only need to check out the ERXQualiferExistsSubquery branch 
> to get everything you need.
> 
> If your code currently uses the methods on ERXKey 
> (containsAnyObjectSatisfying(EOQualifier), isEmptyRelationship(), etc.) to 
> create your ERXExistsQualifier instances, then you don’t need to change 
> anything to use ERXQualifierExistsSubquiery as this branch switches ERXKey to 
> use the new exists hotness.

I just spent an hour debugging something that certainly seems to have turned 
out to be an SQL generation bug from ERXExistsQualifier via 
isEmptyRelationship(). As far as I can tell, your work above never made it into 
Wonder.

So, are you still around? And if so, wanna open a PR?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips bugfixes and new features planning

2020-11-24 Thread Paul Hoadley via Webobjects-dev
On 25 Nov 2020, at 02:34, Maik Musall via Webobjects-dev 
 wrote:

> I’m happy to report that we’re preparing invoices to several people and 
> companies among you totalling about 5000 EUR, and there are still more 
> offerings that we can take up later if this isn’t enough. I started with the 
> most specific where I had a contact and a precise amount to bill.

Brilliant Maik. Thanks again for organising this.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Qualifier Evaluation with Object in Multiple Editing Contexts

2020-11-18 Thread Paul Hoadley via Webobjects-dev
On 12 Jun 2019, at 11:54 pm, Henrique Prange via Webobjects-dev 
 wrote:

> "That's a code smell" was my first thought as well. I tried to pass on the 
> same editing context among all the components involved in this operation. 
> However, considering the level of abstraction of the system and the 
> disconnection between the components, sharing the same editing context turned 
> out to be a bad idea too.

I just ran into this issue again today. As I noted earlier in this thread, I've 
previously been able to solve it by some judicious calls to localInstanceIn(), 
but this time, much like Henrique above, I was several layers of abstraction 
above where I needed to be, and faced the prospect of some multi-level API 
re-writes, until...

> As an alternative, I thought about local instancing the EOs into the correct 
> editing context. Unfortunately, at the time of writing the first email, I 
> wasn't aware of the ERXEOControlUtilities.localInstancesInQualifier method. 
> This method traverses the qualifier hierarchy doing precisely that and would 
> have solved my problem.

I just used localInstancesInQualifier() for the first time ever. Thanks 
Henrique!

> In the end, I think the answer to "is it a bug?" is in the eye of the 
> observer.

I still can't convince myself that this _isn't_ a bug.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips bugfixes and new features planning

2020-11-18 Thread Paul Hoadley via Webobjects-dev
On 18 Nov 2020, at 7:32 pm, Maik Musall via Webobjects-dev 
 wrote:

> What do you think?

Brilliant. I'll contact you off-list.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Simplifying Wonder

2020-10-18 Thread Paul Hoadley via Webobjects-dev
Hi Jesse,

Let me preface this by saying there aren't even any firm plans here—just a few 
people throwing around some ideas on Slack, and now some repos where we can try 
some of them out.

On 15 Oct 2020, at 02:18, Jesse Tayler via Webobjects-dev 
 wrote:

> Are we talking bifurcation of the root here?

Do you mean will this be a hard fork of Wonder? Don't know, but to the extent 
that the alternative means something like actively making sure both projects 
are kept up to date with each other, then probably. At this stage, though, it's 
honestly just an experiment.

> I mean, as long as we’ve lic. code such that it allows us all to freely 
> contribute, clearly open-source- we can work things out, but could this not 
> make things more complicated for the community?

Might do, but it will certainly be optional. Again, it's just an experiment for 
people who think Wonder is a bit bloated and might benefit from a diet. Let's 
just see where it goes.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: How to Manually edit SiteConfig.xml

2020-10-01 Thread Paul Hoadley via Webobjects-dev
Hi Jesse,

On 2 Oct 2020, at 00:24, Jesse Tayler via Webobjects-dev 
 wrote:

> Robert Hannah and I have worked out a GREAT deployment using GIT where the 
> files end up being right where wodocker mount points are, and with a 
> "user-data" script to start off the EC2 instances -- I run a single script to 
> configure the whole thing from keys to the app to the containers, 
> configurations, javamonitor setup. Done and starts up on its own, reliably, 
> from scratch.
> 
> I’m happy to share any or all of these config files, we’ve been delighted 
> with the results so far!

I'd be very interested to hear more about what you're doing. Is there any 
chance you'd do a write-up of the whole thing? Obviously that's work for you, 
but if you were thinking about it, then I am one guaranteed set of eyeballs, 
and I have no doubt there would be lots of other interested readers on this 
list!


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips bugfixes and new features planning

2020-09-17 Thread Paul Hoadley via Webobjects-dev
Hey Maik,

On 2 Jul 2020, at 05:36, Maik Musall via Webobjects-dev 
 wrote:

> So, how do we go forward with this?

Is this idea still alive? We're still willing to kick in money, and so is 
Hugi—was just talking about it to him on Slack. If there's a lack of consensus 
on priorities, perhaps we could donate to several different pools based on 
preferences?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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 and Wonder

2020-09-15 Thread Paul Hoadley via Webobjects-dev
Just for the archives...

On 6 Feb 2019, at 04:53, Hugi Thordarson  wrote:

> Regarding (1), you probably need to include JarResourceRequestHandler 
> ((https://gist.github.com/hprange/1068523 
> <https://gist.github.com/hprange/1068523>) in your project and activate it in 
> your Application constructor:
> 
>   if (isDirectConnectEnabled()) {
>   registerRequestHandler(new JarResourceRequestHandler(), "wr");
>   }
> 
> And as you mention, this should probably have been included in Wonder some 
> way a while back…

It only took me 19 months to realise it, but Markus's #901 here:

https://github.com/wocommunity/wonder/pull/901/

fixes ERXStaticResourceRequestHandler so that JarResourceRequestHandler is no 
longer required. Nice work Markus!


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: ERAttachment Framework Broken by Anjo Krank's ERXDatabaseContect "HACK"

2020-09-09 Thread Paul Hoadley via Webobjects-dev
Hi Kwasi,

On 10 Sep 2020, at 09:31, Kwasi O-Ahoofe via Webobjects-dev 
 wrote:

> Problem: [ak] Hack: Will/Can NEVER be met/satisfied because NEWLY created 
> ERAttachment has an inaccessible relationship to it’s corresponding data in 
> ERAttachmentData. 
> 
> The stringent data validation below throws exception and can’t save the data! 
> Any ideas and/or work arounds?

Can you give some more detail about what you're running into? I have used 
er.attachment.storageType=db, though not recently. I have never run into an 
issue.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: what log analyzers are we using?

2020-09-02 Thread Paul Hoadley via Webobjects-dev
Hi Ray,

On 3 Sep 2020, at 04:20, Ray Kiddy via Webobjects-dev 
 wrote:

> What log analyzers are people using? I know that the question of which tools 
> are best can go into the weeds and I am not trying to find the best of all 
> time. I am just looking for which tools might not be too hard to set up. Is 
> there anything new out there that is interesting and useful?

We have hooked some apps up to Loggly:

https://www.loggly.com/

There are a few ways to do it, but I went via Logback, which I found more than 
slightly awkward. (It was difficult, for example, to set up log configuration 
for production and an alternate for development—something that's trivial with 
Log4J and Properties/Properties.dev.) That aside, Loggly itself is an excellent 
tool.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: New installation fail?

2020-09-02 Thread Paul Hoadley via Webobjects-dev
Hi Jesse,

On 2 Sep 2020, at 16:17, Jesse Tayler  wrote:

> I can see there’s an Adaptor in Wonder for apache but I was totally unable to 
> build the mod_WebObjects.so and get apache running and that’s where I’m at 
> now.
> 
> I should just be able to download the binary from a build somewhere shouldn’t 
> I?

Well, probably not. Remember that this is all essentially abandonware, so no 
one is making builds (recently, for modern platforms anyway), hosting them and 
keeping them up to date. The good news is that if you're using Amazon Linux, 
building it yourself is super-easy. Here's the entirety of the diff:

diff --git a/Utilities/Adaptors/make.config b/Utilities/Adaptors/make.config
index 373b2986d..eec435105 100644
--- a/Utilities/Adaptors/make.config
+++ b/Utilities/Adaptors/make.config
@@ -6,12 +6,12 @@
 # Set the platform you are building on
 # possible values: MINGW MACOS LINUX WINDOWS HPUX SOLARIS FreeBSD
 # 
-ADAPTOR_OS = MACOS
+ADAPTOR_OS = LINUX
 
 # Set a specific architecture to building for. If you comment this out it will 
attempt to discover available architectures.
 # Some possible architectures are: x86_64 i386 ppc7400
 # If you specific more than one architecture it will build a "fat" binary with 
all the architectures contained in one file.
-RC_ARCHS=x86_64 i386
+RC_ARCHS=x86_64
 
 ifeq "MINGW" "${ADAPTOR_OS}"
 OS = ${ADAPTOR_OS}
@@ -104,7 +104,7 @@ APACHEINCLUDE_DIR = /usr/include/httpd
 # OTHER LINUX
 else
 
-ADAPTORS = CGI Apache2.2 
+ADAPTORS = Apache2.4
 APXS = $(shell bash -c 'if [ -e /usr/bin/apxs2 ]; then echo 
/usr/bin/apxs2;else if [ -e /usr/bin/apxs ]; then echo /usr/bin/apxs; else if [ 
-d /usr/local/apache ]; then echo /usr/local/apache/bin/apxs;else echo 
/usr/sbin/apxs;fi;fi;fi')
 endif

1. Change those three lines in make.config.
2. Run 'make'.
3. Find mod_WebObjects.so and put it where you need it.
4. There is no 4.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: New installation fail?

2020-09-01 Thread Paul Hoadley via Webobjects-dev
Hey Jesse,

On 2 Sep 2020, at 01:15, Jesse Tayler via Webobjects-dev 
 wrote:

> I'm launching a new EC2 Instance and just installing from scratch and I found 
> my way to this page
> 
> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
> 
> These WO installs all have bad links or dead services?

Seems like there's a lot of bit rot going on.

Rest assured that it's still quite possible (and fairly easy) to set up a fresh 
WebObjects appserver from scratch on EC2. We use Amazon Linux 2—I can't vouch 
for CentOS or RedHat, though there shouldn't be anything that prevents it if 
you're wedded to one of those.

What we use is a heavily customised version of the script posted by Simon 
McLean, possibly as long ago as 2010. I'm digging around in my local list 
archive: I can't see whether the script itself was ever posted, or whether it 
was just a link to an S3 bucket that seems to no longer exist 
(http://webobjects.s3.amazonaws.com/wo-install.sh 
<http://webobjects.s3.amazonaws.com/wo-install.sh>).

I might be able to find the original somewhere, perhaps I can dig around in our 
repo. Meanwhile, the basic outline is very straightforward:

1. Download JavaMonitor and wotaskd as GZIP bundles from somewhere, e.g. 
wocommunity.org <http://wocommunity.org/>.
2. Download mod_WebObjects.so from somewhere—it's very easy to build your own 
binary on an EC2 instance and then you can just stash that somewhere.
3. Install Apache with yum.
4. Make the usual Apache config modifications for WebObjects.
5. Start Apache.
6. Unpack the GZIP bundles you downloaded at 1.
7. Start JavaMonitor and wotaskd.

Obviously there's a lot of hand-waving going on there. But the takeaway is that 
you don't need to rely on ancient package versions of JavaMonitor and 
wotaskd—you can just pull them from the WOCommunity Jenkins. The rest of it is 
just scripting up the stuff you'd normally do to get them running on any Unix.

Let me know if you need more help.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Apache rules and SSL

2020-08-27 Thread Paul Hoadley via Webobjects-dev
On 28 Aug 2020, at 09:38, Jesse Tayler  wrote:

>Redirect permanent / https://foo.example.com/
> 
> Sounds smart — but doesn’t that simply change the entrance

Nope.

> vs force ssl/https version of all urls?

Yep.

Try it out.

http://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirect


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: Apache rules and SSL

2020-08-27 Thread Paul Hoadley via Webobjects-dev
Hi Jesse,

On 28 Aug 2020, at 07:10, Jesse Tayler via Webobjects-dev 
 wrote:

> I use AWS+Route53 for SSL and I really just want to force all requests to 
> HTTPS and I’m having trouble

This should be sufficient in vhosts.conf:


ServerName foo.example.com
Redirect permanent / https://foo.example.com/



-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: WOLips development on Windows—hot reload classes

2020-08-23 Thread Paul Hoadley via Webobjects-dev
On 24 Aug 2020, at 08:52, Paul Hoadley via Webobjects-dev 
 wrote:

> On 21 Aug 2020, at 16:29, Hugi Thordarson via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> wrote:
> 
>> @paul
>> To my knowlege, there's no secret, always just worked. And dang, you have my 
>> full sympathy if you don't have it working at the moment!
> 
> Is this with a vanilla JDK? Or does it require DCEVM? I seem to recall that 
> some level of hot code replacement used to work with a vanilla JDK—or did I 
> imagine that?

At least this conversation with you motivated me to re-explore this issue. 
Turns out the only step I was missing was launching with "Debug As..." instead 
of "Run As...". Did I miss a memo on this? I could swear I used to get hot code 
replacement without needing to launch in debug mode. In any case, nothing to 
see here.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips development on Windows—hot reload classes

2020-08-23 Thread Paul Hoadley via Webobjects-dev
Hey Hugi,

On 21 Aug 2020, at 16:29, Hugi Thordarson via Webobjects-dev 
 wrote:

> @paul
> To my knowlege, there's no secret, always just worked. And dang, you have my 
> full sympathy if you don't have it working at the moment!

Is this with a vanilla JDK? Or does it require DCEVM? I seem to recall that 
some level of hot code replacement used to work with a vanilla JDK—or did I 
imagine that?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Trouble installing WOLips

2020-08-23 Thread Paul Hoadley via Webobjects-dev
Hi Mark,

On 22 Aug 2020, at 17:18, Wolfgang Hartmann via Webobjects-dev 
 wrote:

> You should point eclipse to 
> https://jenkins.wocommunity.org/job/WOLips410/lastSuccessfulBuild/artifact/temp/dist
>  
> <https://jenkins.wocommunity.org/job/WOLips410/lastSuccessfulBuild/artifact/temp/dist>/
>  

That URL works here as well.

What does 'java -version' show for the JDK you're using?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips development on Windows—hot reload classes

2020-08-20 Thread Paul Hoadley via Webobjects-dev
On 20 Aug 2020, at 23:29, Hugi Thordarson via Webobjects-dev 
 wrote:

> I've got a Windows guy doing WO development using WOLips. Everything works 
> fine, apart from one thing: Dynamic class reloading does not seem to be 
> working.
> Automatic building is active and changes to HTML/templates get picked up on 
> immediately. But changes to Java code are not picked up on and require the 
> application to be restarted.
> 
> These are Maven projects so bundles are generated, but the same projects work 
> fine on our Macs.
> 
> Anyone have any experience with this or have ideas about what might be 
> causing this? 

This stopped working for me on OS X several years ago. What's the secret on a 
Mac?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: How often do you bounce your apps?

2020-08-09 Thread Paul Hoadley via Webobjects-dev
On 9 Aug 2020, at 14:01, Aaron Rosenzweig via Webobjects-dev 
 wrote:

> Thank you Johann for chiming in. I appreciate you stating clearly what I 
> intuited that WODynamicElements are “stateless” and I was right to remove all 
> the instance variables that it was using.

Perfect place to plug Johann's WOWODC 2012 talk on Dynamic Elements:

http://www.wocommunity.org/podcasts/wowodc/2012/DynamicElements.mov 
<http://www.wocommunity.org/podcasts/wowodc/2012/DynamicElements.mov>

I think I've watched this annually since 2012!


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips bugfixes and new features planning

2020-07-03 Thread Paul Hoadley via Webobjects-dev
On 2 Jul 2020, at 20:25, Hugi Thordarson via Webobjects-dev 
 wrote:

> Many of the issue reporters are still with us. I suggest announcing a short 
> grace period where people can look at their own issues (and other issues, of 
> course) and add the "keep" label to issues they want to keep. When that grace 
> period expires, all unlabeled issues are closed. Worst case scenario: We have 
> to re-open a closed issue. Most users probably get an e-mail notification 
> when their issues are closed anyway so they can complain at that time :).

I support this approach. Issues that aren't actionable for any of the reasons 
you describe should be closed.

> Regarding funding, I would be very willing to operate on some sort of a "per 
> feature/issue" basis. I.e. I'd dedicate a fixed amount of money to the 
> resolution of an issue. Perhaps that also solves the problem of 
> prioritization? I'm guessing the issues most valuable to the community will 
> end up being the ones with most funding attached to them.

My preference would be prioritised list + pool of money → work on the list 
until the money runs out (just because it's simpler). But I'd participate in 
your system too if you want to run it.

> Regarding specific issues, there's one issue I'm *really* interested in: I've 
> attempted to do WOLips development on some occasions but always gave up since 
> I didn't get everything to work (the docs are kind of convoluted/outdated).
> 
> Perhaps I'm just stupid, but if not; I believe we would benefit greatly from 
> having a functional, up-to-date step-by-step guide for how to do development 
> on WOLips. Teach a man to fish and all that :).

This would be good.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: buildability? basic questions...

2020-04-26 Thread Paul Hoadley via Webobjects-dev
Hi Ray,

On 25 Apr 2020, at 3:28 am, Ray Kiddy via Webobjects-dev 
 wrote:

> 1) Is wonder buildable? With ant? with maven? How?

The short answer is yes: it's buildable. I can see it's being built in at least 
the following places:

https://jenkins.wocommunity.org/job/Wonder7/ 
<https://jenkins.wocommunity.org/job/Wonder7/>

https://github.com/wocommunity/wonder/actions 
<https://github.com/wocommunity/wonder/actions>

On GitHub it's being built with Maven, and it looks like this is Henrique's 
work:

https://github.com/wocommunity/wonder/tree/master/.github/workflows 
<https://github.com/wocommunity/wonder/tree/master/.github/workflows>

If you want to build it, I imagine Maven would be your best bet. (If you can 
transition to using Maven as your build tool for your projects, you won't even 
need to build Wonder. Just tell Maven what version you want, and it will fetch 
the built frameworks from maven.wocommunity.org 
<http://maven.wocommunity.org/>.)

> 2) I used to have an account on wiki.wocommunity.org and attempts to get my 
> p[assword rteset have not worked. Well, that was a few years ago. But I do 
> not see much new of the wiki. Should this wiki be kept?

I'd rather have it than not, but you do have to dig hard and carefully to find 
useful content these days. Maik Musall looks after the wocommunity.org 
<http://wocommunity.org/> resources these days—he might be able to reunite you 
with your account.

> Can it be kept current?

I doubt it. The community is too small and the will to do that just isn't there.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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 build - webserver resources in frameworks

2020-03-05 Thread Paul Hoadley via Webobjects-dev
Hi Steven,

On 6 Mar 2020, at 02:14, Steven Meyer via Webobjects-dev 
 wrote:

> The wolifecycle-maven-plugin doesn’t seem to do that, so the web server 
> resources portion of the split artifact looks like this
> 
> MyApp.woa
>  Contents
>   WebserverResources
>
>   Frameworks
>MyFramework.framework
> WebserverResources
>  
> 
> The app is still generating resource URLs like 
> "/WebObjects/MyApp.woa/Frameworks/MyFramework.framework/WebServerResources/images/myImage.png”
>   which are unsurprisingly failing.
> 
> I don’t see any way of configuring wolifecycle-maven-plugin, so I’m looking 
> at how to change how those generated URLs look.  Was hoping our old friend 
> frameworksBaseURL() might help, but it doesn’t seem to.

What have you tried with respect to frameworksBaseURL() that doesn't work? It 
should be sufficient to set the WOFrameworksBaseURL property:

WOFrameworksBaseURL=/WebObjects/YourApp.woa/Contents/Frameworks

I agree that this is annoying, though. I don't know the history behind those 
subtle differences in bundle layout from the two build processes. It would be 
nice if they did the same thing, or if the difference could be detected and 
worked around.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Multiple timezones

2020-02-25 Thread Paul Hoadley via Webobjects-dev
Hi Michael,

On 26 Feb 2020, at 04:29, Michael Kondratov via Webobjects-dev 
 wrote:

> Whats the winning strategy on dealing with users / records in multiple 
> timezones? We are starting add add companies that are few hours away from us 
> and don't know how to best handle it.

Our approach is something like this:

1. Confirm that you actually need to handle timezones. Sometimes you do, and 
sometimes you're stuck with legacy design decisions, but if you don't, then 
types like java.time.LocalDate, java.time.LocalDateTime and friends have been 
fully supported in ERPrototypes.framework for a while now.

2. Ensure that you know the relevant local timezone for the user. This might be 
as simple as dropping an ERXTimeZoneDetector in your page wrapper component, 
which will pull the time zone from the user's browser and store it in the 
Session. Or maybe you need an organisation-wide timezone selected for groups of 
users. This step will be application dependent.

3. Once you've got 2, use that to convert times from local into UTC on the way 
into the database, and from UTC to local on the way back out. The local 
timezones on either side of that process might not be the same—they will vary 
with your solution to 2 above—but you'll always be talking about the same 
instant in time, stored in the database as UTC.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Back again....

2020-02-16 Thread Paul Hoadley via Webobjects-dev
Hi Tony,

On 14 Feb 2020, at 16:07, Tony Giaccone  wrote:

> I started out by deleting the attempt I made previously to install WO 5.4.3.  
> And instead tried to follow the instructions on the page that was referenced:
> 
> https://wiki.wocommunity.org/display/WOL/Quick+Start 
> <https://wiki.wocommunity.org/display/WOL/Quick+Start>
> 
> I could not get that process to work, inevitably it failed when trying to do 
> the WOInstaller step.  WOInstaller throws exceptions. 

Sorry Tony, I should have skimmed that page before recommending it. That step 
should not be required, because, as you discovered, the WebObjects JARs are 
available at maven.wocommunity.org.

> At that point I opened the archetype catalog in a browser and found an 
> archetype: woapplication-archetype

Note also that if you want to use Project Wonder, you can start from the 
erxapplication-archetype which should also be visible to you.

> Maybe it doesn't matter, maybe no one is looking to start doing web objects 
> development again.  What I will say is that without a simple direct and 
> straight line path explaining the process, in a place easily found, only 
> those already converted to the path of WO, will be using these tools.  
> 
> THe cuirrent install process isn't horrible, it's just not described 
> succinctly and correctly in one place. 

You're absolutely right here. I'm afraid that the issue is simply that 
WebObjects (and to a large extent Project Wonder as well) is abandonware, and 
the will to keep this information up to date just doesn't exist.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Back again....

2020-02-13 Thread Paul Hoadley via Webobjects-dev
Hi Tony,

On 14 Feb 2020, at 01:26, Tony Giaccone via Webobjects-dev 
 wrote:

> Can I do WODev on a Linux box? Is there a package to install on Ubuntu 18.04?

I'm going to say a qualified yes: anecdotally, I know people have done this, 
and quite recently. I don't know about a package of any kind, but...

> I see that wolips is a thing and I have installed it locally in a copy of 
> eclipse 2019-12

That should be all you need.

> Java 1.8? 

Thats what we use.

> I’ve tried using the instructions I’ve found on line using the WOInstaller 
> jar but I get a runtime exception.
> 
> I managed to get a copy of 5.4.3 and it seems to have installed but I can’t 
> create a new WOapp and not get problems with library references.  It looks 
> like something installed in /opt/Library. Any suggestions to verify my WO 
> package got installed correctly?
> 
> Just curious where things stand and what set of install docs make the most 
> sense.

I cannot suggest strongly enough that you use Maven which will handle all of 
this for you. Start here and report back if you have any questions:

https://wiki.wocommunity.org/display/WOL/Quick+Start 
<https://wiki.wocommunity.org/display/WOL/Quick+Start>


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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 Unit tests with EOF

2020-02-12 Thread Paul Hoadley via Webobjects-dev
Hi Aaron,

On 13 Feb 2020, at 14:14, Aaron Rosenzweig  wrote:

> If I understand you right you are using the surefire plugin but setting the 
> nature for Maven to find the files? That’s a neat way to do it.

They're basically unrelated, they just happen to intersect here. When unit 
tests are run, if something (e.g. WOUnit) asks for the main NSBundle (I haven't 
dug around in the WOUnit source, but presumably this is part of getting the 
default EOModelGroup to find your models), then eventually 
NSStandardProjectBundle.Factory is going to try and work out whether the 
project is Maven or Fluffy Bunny. It does this by examining .project in the 
root of the project, looking for that hard-coded magic string. It's not 
Surefire or Maven that's doing this, it's ERFoundation's low-level machinery.

> I think that nature was there for people who wanted to build with Maven 
> inside of eclipse, but you can use it the way you have done as well.

From Eclipse's point of view, it's an obsolete specifier, replaced by 
'org.eclipse.m2e.core.maven2Nature'. If you never need NSBundle to load you an 
NSMavenProjectBundle, you don't need it in .project—it no longer does anything. 
But, as demonstrated here, if you do want an NSMavenProjectBundle then it needs 
to be in .project. That's its single remaining purpose, to match a hard-coded 
magic string in NSStandardProjectBundle.Factory.

Anyway, it may not be the solution to your original problem, but if you're 
expecting an NSMavenProjectBundle but getting an NSFluffyBunnyProjectBundle, 
then it could well be.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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 Unit tests with EOF

2020-02-12 Thread Paul Hoadley via Webobjects-dev
Hi Aaron,

I don't know whether you went on to solve your problem here, but I've just 
spent a few hours of my life that I'll never get back debugging something 
similar. I had just built a new framework from scratch, and WOUnit testing 
under maven-surefire-plugin failed, with WOUnit complaining that it couldn't 
find my models. I started by logging out NSBundle.mainBundle(), and recalled 
your recent post:

On 23 Jan 2020, at 15:01, Aaron Rosenzweig  wrote:

> There are three types of concrete (not abstract) NSBundles:
> 1) NSLegacyBundle
> 2) NSFluffyBunnyProjectBundle
> 3) NSMavenProjectBundle

During unit test initialisation it was reporting that the main bundle was an 
NSFluffyBunnyProjectBundle, but the project type is Maven.

> When I run this from Eclipse I can hit breakpoints and I confirmed that it is 
> making an NSFluffyBunnyProjectBundle. 

The model-finding issue described above was apparent only when running "mvn 
verify" from the command line, and Eclipse does have a habit of doing 
additional classpath setup, so if you're just talking about "Run As > JUnit 
Test" from within Eclipse, then all bets are off, but if you're seeing this 
from the command line and your project is a Maven project, then this is wrong. 
If you dig down into ERFoundation.jar and decompile 
NSStandardProjectBundle.Factory, you'll find this:

if ("org.maven.ide.eclipse.maven2Nature".equals(nature)) {
mavenProject = true;
}

It's scanning the project's .project file and checking for:

org.maven.ide.eclipse.maven2Nature

If it finds that, it creates an NSMavenProjectBundle. If it doesn't, then it's 
NSFluffyBunnyProjectBundle, which will be deficient because everything is in 
the wrong places. (For example, it can't find models because they're in 
src/main/resources, not Resources.)

Adding that nature element to .project immediately fixed my issue. Why wasn't 
it there in the first place? Because the Wonder archetype (and our custom 
archetype that's based on it) no longer adds it because it's obsolete.


org.eclipse.m2e.core.maven2Nature
org.eclipse.jdt.core.javanature

org.objectstyle.wolips.incrementalframeworknature


So, does your framework's .project file contain that nature element, and if not 
does adding it in fix your issue?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: More recent PRs for wolifecycle-maven-plugin

2020-02-10 Thread Paul Hoadley via Webobjects-dev
On 10 Feb 2020, at 21:34, Hugi Thordarson  wrote:

> I haven't tried out the new features (currently in bed with pneumonia so I'm 
> not good for a lot) but I checked out the updated snapshot version and 
> successfully built a couple of projects with it.

I am pretty sure "testing changes in wolifecycle-maven-plugin from bed with 
pneumonia" is the definition of "beyond the call".

> So I can at least confirm that the changes don't seem to break anything 
> (well, for me at least). Thanks for doing this :).

Thanks for testing it! Obviously the main change was Ralf's work to provide a 
'flattenComponents' configuration option. That's a really nice feature.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: More recent PRs for wolifecycle-maven-plugin

2020-02-09 Thread Paul Hoadley via Webobjects-dev
Hello,

Update: in the absence of any objections, I am going to merge #3 and #4 today. 
Johann merged #5 a few days ago. I think #4 is quite uncontroversial, and #3 
certainly works for me and presumably Ralf.

> On 6 Feb 2020, at 11:41, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> Hello,
> 
> In addition to Ralf's work here:
> 
> * https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3>
> 
> I've added a couple of additional PRs:
> 
> * https://github.com/wocommunity/wolifecycle-maven-plugin/pull/4 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/4> ensures 
> runtime-scoped dependencies are added to the application bundle
> * https://github.com/wocommunity/wolifecycle-maven-plugin/pull/5 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/5> fixes recent 
> Travis build failures
> 
> I don't want to merge these before anyone else with skin in the 
> wolifecycle-maven-plugin game has had a chance to review. At the moment, 
> you'd have to pull the relevant branches and Maven-install the plugin in your 
> local repo to try these out. If you're interested and that sounds too hard, 
> let me know and maybe we can work out another way.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


More recent PRs for wolifecycle-maven-plugin

2020-02-05 Thread Paul Hoadley via Webobjects-dev
Hello,

In addition to Ralf's work here:

* https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3 
<https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3>

I've added a couple of additional PRs:

* https://github.com/wocommunity/wolifecycle-maven-plugin/pull/4 
<https://github.com/wocommunity/wolifecycle-maven-plugin/pull/4> ensures 
runtime-scoped dependencies are added to the application bundle
* https://github.com/wocommunity/wolifecycle-maven-plugin/pull/5 
<https://github.com/wocommunity/wolifecycle-maven-plugin/pull/5> fixes recent 
Travis build failures

I don't want to merge these before anyone else with skin in the 
wolifecycle-maven-plugin game has had a chance to review. At the moment, you'd 
have to pull the relevant branches and Maven-install the plugin in your local 
repo to try these out. If you're interested and that sounds too hard, let me 
know and maybe we can work out another way.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


wolifecycle-maven-plugin: Flatten component support

2020-02-04 Thread Paul Hoadley via Webobjects-dev
Hello,

I've just tried out Ralf's PR here: works as advertised. Have any other Maven 
fans tried this out? Henrique? Hugi?

I'd be keen to merge this PR, but it would also be good to get some additional 
eyes on it.

> Begin forwarded message:
> 
> From: Ralf Schuchardt 
> Subject: [wocommunity/wolifecycle-maven-plugin] Flatten component support (#3)
> Date: 31 August 2019 at 02:31:59 ACST
> To: wocommunity/wolifecycle-maven-plugin 
> 
> Cc: Subscribed 
> Reply-To: wocommunity/wolifecycle-maven-plugin 
> 
> 
> This introduces a new option "flattenComponent". The option is similar to 
> flattenResources, but will leave non WOComponent/EOModeld folder hierarchies 
> intact. The resulting folder structure should be very similar to the one 
> produced by WOLips.
> 
> Reason for this change: I have a project with many components, organised in 
> subfolders of the Components folders. Those components must get flattened 
> into to application Resources to be useful. But I have also a folder 
> hierarchy in Resources and WebServerResourced, that should be copied as they 
> are. While flattenResources will either flatten all those components and 
> files or none, this new option flattens only components.
> 
> There is also a little bit of code cleanup, mostly warning from the compiler.
> 
> You can view, comment on, or merge this pull request online at:
> 
>   https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3>
> Commit Summary
> 
> Introduce "flattenComponent" option. Similar to flattenResources the 
> flattenComponent option will flatten all WOComponent (and EOModeld) resources 
> from Resouces and Components folders into the applications Resources folder. 
> But in contrast to flattenResources it will leave all other folders intact.
> A little bit of code cleanup (use try-with-resource, replace depracated 
> method call, @Overrides).
> File Changes
> 
> M README.md 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3/files#diff-0> 
> (5)
> M 
> src/main/java/org/wocommunity/maven/wolifecycle/AbstractDefineResourcesMojo.java
>  
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3/files#diff-1> 
> (416)
> M src/main/java/org/wocommunity/maven/wolifecycle/AbstractPackageMojo.java 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3/files#diff-2> 
> (1)
> M 
> src/main/java/org/wocommunity/maven/wolifecycle/DefineWOApplicationResourcesMojo.java
>  
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3/files#diff-3> 
> (32)
> M src/main/java/org/wocommunity/maven/wolifecycle/PatternsetReader.java 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3/files#diff-4> 
> (14)
> M src/test/java/org/wocommunity/maven/wolifecycle/MockWOMojo.java 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3/files#diff-5> 
> (2)
> M 
> src/test/java/org/wocommunity/maven/wolifecycle/TestAbstractDefineResourcesMojo.java
>  
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3/files#diff-6> 
> (5)
> Patch Links:
> 
> https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3.patch 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3.patch>
> https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3.diff 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3.diff>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub 
> <https://github.com/wocommunity/wolifecycle-maven-plugin/pull/3?email_source=notifications_token=AAGZU73XSS3KIQ2CU42OHY3QHFHAPA5CNFSM4ISPLGZ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HIP57CQ>,
>  or mute the thread 
> <https://github.com/notifications/unsubscribe-auth/AAGZU733NL4B6I2T7UCCQE3QHFHAPANCNFSM4ISPLGZQ>.
> 

-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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 Unit tests with EOF

2020-01-22 Thread Paul Hoadley via Webobjects-dev
Hi Aaron,

On 23 Jan 2020, at 03:39, Aaron Rosenzweig via Webobjects-dev 
 wrote:

> I think because it is wanting to treat it as a bundle but it isn’t and so… 
> I’m not sure where to go from here. Any advice?

I have no advice for your specific problem, but on the off chance you haven't 
heard of it, Henrique's WOUnit project is purpose-built for unit testing EOs, 
requires no database or application booting, and runs just fine as part of a 
Maven build:

https://github.com/hprange/wounit <https://github.com/hprange/wounit>

It's not going to help you if you have a large suite of existing tests using a 
different approach, just throwing it out there in case you're not familiar with 
it.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: There was an old thread about Ajax...

2019-10-29 Thread Paul Hoadley via Webobjects-dev
Hi Jérémy,

On 29 Oct 2019, at 17:48, Jérémy DE ROYER via Webobjects-dev 
 wrote:

> To deal with ajax-back-end-requests, we currently use :
> - AjaxModaDialog
> - AjaxUpdateContainer
> - AjaxUpdateLink
> - AjaxObserveField
> - AjaxSubmitButton
> - AjaxLongResponse
> 
> How do you deal with Ajax ? Still use wonder with prototype ? Any new idea ?

We use a slightly different subset of components from Ajax.framework, probably 
more like this:

* AjaxUpdateContainer
* AjaxUpdateLink
* AjaxSubmitButton
* AjaxFlickrBatchNavigation
* AjaxObserveField

We then use a bit of jQuery, and so always call jQuery.noConflict(). Some 
projects require a workaround to play nicely with Bootstrap.

So we're using quite a limited subset of components, and no D2W, but we do mix 
in jQuery and sometimes Bootstrap. I can't recall the last time we hit an issue 
that couldn't be solved or worked around.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: Qualifier Evaluation with Object in Multiple Editing Contexts

2019-05-28 Thread Paul Hoadley via Webobjects-dev
Hi Henrique,

On 21 May 2019, at 08:22, Henrique Prange  wrote:

> I've been using the EOQualifier.evaluateWithObject method to filter some EOs 
> in memory. Everything works fine except for one particular case. It always 
> returns false if I try to evaluate a qualifier containing EOs with an EO from 
> another editing context.
> 
> The code below demonstrates the problem:
> 
> EOEditingContext ec1 = // create new ERXEC;
> Foo foo = ... // Fetch Foo using ec1
> EOQualifier q = Bar.FOO.is <http://bar.foo.is/>(foo);
> 
> EOEditingContext ec2 = // create new ERXEC;
> Bar bar = ... // Fetch bar related to foo using ec2
> 
> q.evaluateWithObject(bar); // returns false
> ERXEOControlUtilities.eoEquals(bar.foo(), foo); // returns true
> 
> The qualifier evaluates to false because the editing contexts of bar.foo() 
> and foo are different, even though their EOGlobalIDs are the same.

That's certainly an interesting result.

> This behavior is not consistent with the result of the same qualifier being 
> applied to a fetch specification (fetching from the database). In this case, 
> EOF will return the instance of Bar as expected.

This is all starting to ring a bell with me. I think I've run into this 
indirectly. From time to time I'll do something like this:

folders = ERXQ.filtered(..., 
DocumentFolder.ORGANISATION.is(document().organisation()));

which doesn't produce the results I'm expecting, and I remember I need to do 
this:

folders = ERXQ.filtered(..., 
DocumentFolder.ORGANISATION.is(document().organisation().localInstanceIn(someEditingContext)));

If you drill down on ERXQ.filtered(), you eventually get to 
EOQualifier.evaluateWithObject().

> After some research, I found that I can extend the 
> EOQualifier.ComparisonSupport class to evaluate all EOGenericRecord objects 
> according to the ERXEOControlUtilities.eoEquals contract. I had a positive 
> outcome after a preliminary experiment.
> 
> I'd be interested to hear your views about this.
> 
> - IMO, it is a bug. Do you agree?

I agree. It's such an old, deep bug though that I've just internalised it and 
now it's just normal EOF behaviour to me.

> - Can you imagine any side effects of this fix?

Not immediately. I assume the fix would have no effect on the kind of 
localInstance() work-around that I presume we've all been using here. I'm 
trying to contrive a scenario where you'd rely on the existing behaviour, and 
I'm drawing a blank really.

> - Since this change affects the in-memory evaluation of every type of EO, do 
> you think it's appropriate to fix it on Wonder?
> 
> I'm willing to contribute a pull request if that makes sense.

Seems like a good idea to me. Do you want to at least create the PR and we can 
have a look?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Wiki down

2019-04-17 Thread Paul Hoadley
On 18 Apr 2019, at 03:47, Maik Musall  wrote:

> sorry but I had to take the wiki down because it’s affected by a security 
> vulnerability, and we need to do a major version upgrade to cover that. 
> Action TBD tomorrow.

Thanks Maik.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: EOModel Graph Update Site

2019-04-13 Thread Paul Hoadley
Hi Markus,

On 12 Apr 2019, at 6:47 pm, Markus Ruggiero  wrote:

> EOModelGraph will eventually make it into WOLips (may take a bit of time). 
> Until then we have created a temporary update site so you can start playing 
> with it.
> 
> https://rucotec.ch/WOLips-EOModelGraph/
> 
> EOModelGraph is currently one-way only. You can use it to create ERD and 
> ClassDiagram representations of your EOModels but you cannot (yet?) edit your 
> models graphically. There is currently no way to export the graphics other 
> than taking a screenshot. 
> 
> Have fun and let us know when you find issues or have suggestions

I would like to try this out. When I hit that update site, though, I seem to 
get the option to install WOLips—is that what this is, a fork of WOLips? Is 
there any prospect for shipping a standalone Eclipse plug-in, or is it too 
tightly integrated?

Meanwhile, got any screenshots or anything? I'd love to see it.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: Returning a response of unknown length using WOResponse.setContentStream()

2019-03-29 Thread Paul Hoadley
Hi Hugi,

On 30 Mar 2019, at 2:23 am, Hugi Thordarson  wrote:

> I can't offer any help at all,

I was counting on you!

> besides telling you that I fought the same issue a while back and ended up 
> defeated, writing the Zip file to a temp file and returning that to the 
> client.

That's what I went with in the end, and it works fine, and I know the appserver 
has the resources at the moment. Would have been nice to do this the right way 
though.

> However, if you do choose to pursue this perilous path, the statement 
> "WOHttpIO._alwaysAppendContentLength = false;" might be a tiny bit helpful. 
> But who knows what else *that* might flonk up.
> 
> If you figure this out, I'd love to hear about it.

Markus Stoll pointed me in the direction of WOHttpIO as well. I will take a 
look at some point. For now the product has shipped with the temp file 
solution, but I will add this to my list of things to look at when time 
permits. (Along with, for example, "Look at framework resources issue", which I 
seem to recall was some Maven-related edge case you and I were talking about 
around 78 years ago. Not even sure what it means any more, but it's on that 
to-do list.)


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


Returning a response of unknown length using WOResponse.setContentStream()

2019-03-27 Thread Paul Hoadley
Hello,

I am zipping some files on the fly and trying to return the ZIP to the browser. 
(None of the files are on the appserver, including the resulting ZIP—it's all 
InputStreams and OutputStreams.) I can call WOResponse.setContentStream(), but 
it expects a contentSize argument. Setting this to, say 0, or some arbitrarily 
large number doesn't work. It certainly appears that the browser expects the 
correct value or no header. What I can't see is where "content-size" is even 
being set—as late as after WOApplication.dispatchRequest(), the WORequest 
doesn't seem to have a "content-size" header. If I knew where/when it was being 
set, I could presumably remove it.

Has anyone solved any of these problems before? How can I return a response of 
unknown length to the browser?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: On the future of WO (here we go again)

2019-03-15 Thread Paul Hoadley
On 15 Mar 2019, at 9:21 pm, Hugi Thordarson  wrote:

> This is something I'd like to do, and if anyone likes the idea and is willing 
> to participate, I'm confident we can make this work! Doing stuff alone sucks.

I like the idea and am willing to participate.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: ERProfiling and Java 8

2019-03-03 Thread Paul Hoadley
On 2 Mar 2019, at 19:58, Paul Hoadley  wrote:

> On 2 Mar 2019, at 17:20, Johann Werner  <mailto:johann.wer...@posteo.de>> wrote:
> 
>> has been some time I used ERProfiling to hunt down bottlenecks. I just fired 
>> up one project with it and it seems to work well. Only the activated heat 
>> map seems to break some layout and marker elements show up that I can’t 
>> remember of having seen in the past.
>> 
>> But this is with Java 8 + Ant + Eclipse 2018-12 so no Maven.
> 
> Thanks for looking at it Johann! If it works for you, I might persist.

Just in case anyone is following along at home, I have got this working again.

Recall that the symptom was that some pages would render the profile summary 
bar alone: just a lone div was returned, no other page content. Working back 
from here, I looked at the PFSummary delegate that generates that div. 
PFSummary.responseEnded() takes a WOResponse, and calls appendContentString() 
on it a bunch of times to add the trailing div. For reasons which are not clear 
to me, the first call to appendContentString() would sometimes cause the 
existing content to be dropped, leaving just the appended strings. (Either 
that, or there's something else going on and it's a coincidence.)

So a workaround was to:

1. Save response.contentString().
2. Replace the calls to response.appendContentString() with append() calls to a 
StringBuilder instead.
3. On the way out, concatenate the saved contentString and the result of 
StringBuilder.toString(), and call response.setContent() with that string.

This certainly gets ERProfiling working on this project for me, though it's 
unsatisfying.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: ERProfiling and Java 8

2019-03-02 Thread Paul Hoadley
On 2 Mar 2019, at 17:20, Johann Werner  wrote:

> has been some time I used ERProfiling to hunt down bottlenecks. I just fired 
> up one project with it and it seems to work well. Only the activated heat map 
> seems to break some layout and marker elements show up that I can’t remember 
> of having seen in the past.
> 
> But this is with Java 8 + Ant + Eclipse 2018-12 so no Maven.

Thanks for looking at it Johann! If it works for you, I might persist.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: ERProfiling and Java 8

2019-03-01 Thread Paul Hoadley
On 1 Mar 2019, at 3:31 pm, Paul Hoadley  wrote:

> Before I go digging too deeply, can anyone confirm that they're using 
> ERProfiler with Java 8 + Maven + Eclipse 2018-12, or any similar combo?

Anyone still using ERProfiling? Johann? Anyone?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: ERProfiling and Java 8

2019-02-28 Thread Paul Hoadley
Let me revise one observation:

On 1 Mar 2019, at 15:31, Paul Hoadley  wrote:

> The app launches, and the profiler toolbar is displayed bottom right, but the 
> rest of the page is blank. In fact the page source is just that single div to 
> show the profiler toolbar.

That's not quite right—a couple of pages are displayed correctly, and after a 
(login) form submission, I get the blank page with toolbar.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


ERProfiling and Java 8

2019-02-28 Thread Paul Hoadley
Hello,

I haven't used ERProfiling for some time, but I'm trying to fire it up using 
Java 8 and Maven. It used to be fairly straightforward to get it going: add the 
framework to your project path, start the app with -javaagent VM argument. I've 
done what I thought would be the Maven equivalent, by adding this to the POM:


  wonder.misc
  ERProfiling


and this to the VM args:

-javaagent:/Users/paulh/Projects/WebObjects/Wonder/Frameworks/Misc/ERProfiling/Libraries/gluonj-1.5beta-java6.jar=er.profiling.PFProfilerMixin

There are a few GluonJ errors in the console about being unable to transform 
classes that I wouldn't have thought were too important, such as:

GluonJ Error: cannot transform a class: 
ch.qos.logback.core.boolex.JaninoEventEvaluatorBase
  by javassist.gluonj.WeaveException: While transforming 
ch.qos.logback.core.boolex.JaninoEventEvaluatorBase, no such class: 
org.codehaus.janino.ScriptEvaluator

The app launches, and the profiler toolbar is displayed bottom right, but the 
rest of the page is blank. In fact the page source is just that single div to 
show the profiler toolbar.

Before I go digging too deeply, can anyone confirm that they're using 
ERProfiler with Java 8 + Maven + Eclipse 2018-12, or any similar combo?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap

2019-02-24 Thread Paul Hoadley
On 23 Feb 2019, at 8:46 pm, Maik Musall  wrote:

> I still think we should put stuff there, lacking an alternative. But we 
> should also work towards cleaning it up. Obsolete information should be 
> simply removed, and pages need to be restructured.

Completely agree. I think historically there has been a tendency to preserve 
out of date information "just in case", or out of a reluctance to stomp on 
someone else's work. It should be pruned hard where it's wrong or stale.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap

2019-02-22 Thread Paul Hoadley
On 22 Feb 2019, at 7:46 pm, getsh...@gmail.com wrote:

> I’m very interested in, what to me are, the dark Maven arts.
> 
> It’s such a deviation from how it all works for me now with ant and Fluffy 
> Bunny - from dev env all the way through CI and deployment artifacts. eg how 
> do I go about having my Wonder framework dependencies as open projects in my 
> workspace so the source code is as available as my application’s source?

In almost the same way as you do now, but with a caveat. Maven, as you might 
expect, is very particular about versioning. So if you have a Wonder framework 
as a project in your workspace, its version will need to match the version your 
app is dependent on. For example, if your app is dependent on 7.0, but you've 
got Wonder's HEAD checked out, then the framework is going to claim to be 
7.1-SNAPSHOT, which isn't a match, so you won't get handy features like 
command-clicking through to Wonder source, because it will be using the 7.0 JAR 
in your Maven repository. One solution would be to check out the "wonder-7.0" 
tag which should have the version you need in this example.

> Can my private repository just be a path on my jenkins http server? (there’s 
> probably an app/plugin for that).

I don't know the answer to that specific question. But you can pretty easily 
set up something like JFrog Artifactory. Jenkins would then use your 
Artifactory instance to get artifacts it needs during build (and Artifactory 
would ask the WOCommunity repository for the non-public artifacts it needs), 
and then push your built app bundle back up to Artifactory when it's done. It 
turns out to be nice to be able to treat Jenkins just as a build server, and 
offload your artifact management to a specialised repository.

> I should go away and work through some Maven primers and come back with 
> specific questions in their own thread, but +1 from me with gratitude for 
> more insight from Hugi, Paul and the rest of the WO Maven brains trust.

Start here:

https://wiki.wocommunity.org/display/WOL/Quick+Start 
<https://wiki.wocommunity.org/display/WOL/Quick+Start>

I would recommend the following variations to those steps:

0. —
1. Definitely just download from Apache and install manually, then get 'mvn' on 
your path.
2. The advice there seems reasonable. It will get you started, and later you'll 
point Maven to your own Artifactory repo instead.
3. Skip this step: it's not required.
4. You can do this via the command line, or by selecting the erxapplication 
with the Eclipse wizard.
5. Obviously skip this if you've created your new project in Eclipse.
6. This is how it's done, though later you'll get Jenkins to do it for you.

Give it a try. Let us know how you go.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap

2019-02-21 Thread Paul Hoadley
On 22 Feb 2019, at 09:24, Hugi Thordarson  wrote:

> For a little addition to this discussion, just if you find it interesting: 
> Today I set up a new developer environment on a new machine by:
> 
> 1) Installing Eclipse
> 2) Installing WOLips (4_10, thanks guys!)
> 3) Cloning a git repository containing a maven WebObjects project
> 4) Running the WebObjects project

Oh yeah, I forgot to add that to my benefits list:

* Setting up a new developer takes just a few minutes—great for, say, someone 
who's maybe just doing front-end work, and really only needs to be able to run 
an app and make some changes to that project.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap

2019-02-21 Thread Paul Hoadley
On 22 Feb 2019, at 09:08, Hugi Thordarson  wrote:

> Unfortunately, not really. There's that guide for converting an existing 
> Fluffy Bunny project…
> 
> https://gist.github.com/hugith/e9a49e91fbcebe204e0feb4989f55631 
> <https://gist.github.com/hugith/e9a49e91fbcebe204e0feb4989f55631>
> 
> …and after that everything should just work®. But of course there are always 
> caveats. And we're really missing basic documentation on project structure 
> and other stuff for people new to Maven.

I haven't looked at it in a while, but what I found was that the wiki 
documentation was at least a little bit incomplete and out of date. Starting a 
new Maven project is very easy. Converting from Fluffy Bunny is only marginally 
trickier, but it's usually pretty obvious when you got something wrong, and you 
can always start again. I've used Hugi's Gist instructions above many times. 
Here is my marginally different version:

https://gist.github.com/paulhoadley/cd15b90c94eb8c640fddd9ac3fbbc6dc 
<https://gist.github.com/paulhoadley/cd15b90c94eb8c640fddd9ac3fbbc6dc>

> But if you give it a try, I (and others) are very happy to help along the 
> way, both here on the list and on Slack. I don't know anyone that switched to 
> Maven and regretted it.

The cost is the learning curve, but there are so many benefits. Just off the 
top of my head:

* Proper dependency management rather than trusting the JAR-soup in the 
frameworks.
* Enforced semantic versioning on your projects.
* Massively simplified CI: throw away all those Jenkins environment setup 
scripts and just use a Maven project.
* Civilised artifact management with something like Artifactory.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap

2019-02-19 Thread Paul Hoadley
On 19 Feb 2019, at 11:08, Henrique Prange  wrote:

> Just to let you know that I've merged Michael's pull request into the 
> eclipse_4_10 branch. Maik did set up a new Jenkins job to build from changes 
> on that branch. You can test it by pointing your WOLips update site to:
> 
> https://jenkins.wocommunity.org/job/WOLips410/lastSuccessfulBuild/artifact/temp/dist/
>  
> <https://jenkins.wocommunity.org/job/WOLips410/lastSuccessfulBuild/artifact/temp/dist/>
> 
> It looks good on my machine.

Works here! Adding keys from the template working again. Thanks everyone.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-09 Thread Paul Hoadley
Hi Samuel,

On 9 Feb 2019, at 5:11 am, Samuel Pelletier  wrote:

> I just installed 2018-12 and it seems faster than 4.7. I have only one 
> problem to date, the "Add Key" function in the component editor no longer 
> works for me. I see the dialog, specify the type and click "Add" as usual. 
> The source editor come to front but the key is not added.
> 
> Adding an action still work though.
> 
> Are you experiencing the same problem ?

Yes. I can reproduce that. What a shame, that's a handy feature.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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 and Wonder

2019-02-05 Thread Paul Hoadley
Hi Markus,

On 6 Feb 2019, at 02:23, Markus Stoll, junidas GmbH  
wrote:

> 2. wounit tests executed from surefireplugin in maven.
> 
> The default way the test is setup (to execute the tests from test-classes), 
> NSBundle won't find its resources, so MockEditingContext wont find the 
> EOModels. I created a patch to enable NSBundle to handle this setup. But I 
> guess, I am missing something here, too.
> But I could't find anything about how to setup surefire / junit / wounit 
> tests from Maven for Wonder / WebObjects.

This you shouldn't need to do. Are you using the latest WOUnit (1.2.4)?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Enterprise objects stored in JSON or byte

2018-12-19 Thread Paul Hoadley
Hi Mark,

On 20 Dec 2018, at 07:37, Samuel Pelletier  wrote:

> I've done dynamic forms in the past (in PHP and WO) and never tried to map 
> them to an ORM entity. I think it is better to model your a Form entity and 
> another one for answers (FilledForm or CompletedForm). The Form entity is the 
> Meta model with the questions and the other contains only answers. You end 
> with 2 symmetric hierarchies with one answer class for each question type 
> class (numeric, text, choice, boolean, image, ...). Each of the Answer class 
> has it's edit component.
> 
> The display form component is build by displaying the proper edit component 
> for each answer in order. For easy D2W integration, I think you can 
> initialize a new form  with blank answers and simply use the D2W magic to 
> display the complete form (using an ordered toMany from the CompletedForm 
> entity to it's answers) .

FWIW, that's pretty much exactly how we implemented a SurveyMonkey/Survs-style 
"create your own arbitrary survey" project for a client a few years ago. It 
worked reasonably well, and it's still in use. Are you wedded to the dynamic 
model approach you describe, Mark?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: Deployment script

2018-12-08 Thread Paul Hoadley
Hi Jeff,

On 9 Dec 2018, at 12:31 pm, Jeffrey Schmitz  
wrote:

> But I’m setting up a machine to use for deployment, not deploying an 
> individual app, so I need to get apache configured, the WO adaptor installed, 
> the webobjects tools installed (wotaskd, womonitor), etc.  That’s what I was 
> hoping the script would help with as it always turns out to be a laborious 
> process, at least for me.

You're right, it is laborious, sometimes difficult to get right, and ideal for 
scripting to automate for the future. What platform are you using? We use a 
(now heavily customised) version of a script Simon McLean posted to the list in 
2010:

http://webobjects.s3.amazonaws.com/wo-install.sh 
<http://webobjects.s3.amazonaws.com/wo-install.sh>

Eyeballing it again now, you'll definitely want to customise it in places—you 
shouldn't need to pull down Wonder source, or build your own adapter, for 
example. But it gives you an idea of what you can do. We use our version of it 
on Amazon Linux on EC2. Should be easily portable to other Unixes.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOCommynity Maven Repository via HTTPS

2018-11-11 Thread Paul Hoadley
On 2 Nov 2018, at 10:49, Henrique Prange  wrote:

> Just a quick update here. You can now access the WOCommunity Maven Repository 
> via HTTPS. We've configured HTTP requests to redirect permanently to HTTPS. 
> For this reason, it's a good idea to update your settings to reflect that 
> change.

Thanks Henrique. Just flipped this over in our Artifactory settings.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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 and Java 11

2018-10-17 Thread Paul Hoadley
Hi Henrique,

On 17 Oct 2018, at 10:19, Henrique Prange  wrote:

> 1. WOInject doesn't work
> 
> The custom classloader used by WOInject doesn't work with Java 11. 
> Fortunately, there's already a pull request [1] with the fix. Version 
> 1.3-SNAPSHOT based on that branch has been deployed to the WOCommunity 
> repository if anyone wants to try it.

For what it's worth, I've been using 1.3-SNAPSHOT in development here all day 
(albeit only on Java 8). Seems to work just fine.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: Tip: Touch bar with Eclipse

2018-10-01 Thread Paul Hoadley
On 2 Oct 2018, at 08:29, Morris, Mark  wrote:

> I want function keys, without having to press the fn modifier key, when I’m 
> in Eclipse (mainly for debugging; F5 = step into, F6 = step over, etc.). It 
> turns out that’s easy to configure.
> 
> Go to System Preferences -> Keyboard -> Shortcuts -> Function Keys, click the 
> plus button, then select the Eclipse app. Now when you’re in Eclipse, the 
> function keys are the default, and pressing the fn key brings up the volume, 
> brightness, etc., controls.

Thanks Mark. Cool tip.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: WOCookie after browser restart?

2018-09-19 Thread Paul Hoadley
On 19 Sep 2018, at 23:54, Jesse Tayler  wrote:

> Maybe we should make note in the wiki pages?
> 
> There was very little about WOCookie, but a simple listing of a line that 
> works could help I’d imagine…

Definitely. Do it.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: List of all Properties? Legacy EOModel with exposed keys.....

2018-09-17 Thread Paul Hoadley
Hi Markus,

On 18 Sep 2018, at 06:29, Markus Ruggiero  wrote:

> I thought I have seen a list of the properties that Wonder supports but I 
> cannot find it anymore. I have no idea where I saw this list. Could have been 
> here or somewhere in the docs or the Wonder Source. But it is late and I am 
> tired and I have been searching for it invain. Anyone to help me?

I think you may have imagined this. If there ever was such a list, there's no 
way it would be current and maintained.

> Background:
> I am struggling with a legacy legacy legacy pure old time WebObjects 
> application. No Wonder, no Eclipse, but WindowsXP with ProjectBuilder 
> (sourcode goes back to 1998/1999!!!). And the database has exposed primary 
> and foreign keys

Just to echo Chuck: this is going to be a big problem.

> that are mostly strings and char. The application is a mess and I am trying 
> to bring it into Eclipse and use Wonder. Unfortunately WOToOneRelationship 
> does not connect objects. Manually using addObjectToBoth does not connect 
> objects either (debugger shows that the relationship is set, but it does not 
> populate the foreign key fields). Populating them manually in addition to 
> addObject... fixes things. I have a vague recollection of a property that 
> might help here, and that is why I am looking for that list.

Are you thinking of this?

er.extensions.ERXEnterpriseObject.updateInverseRelationships=true


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: JGroup error messages

2018-09-07 Thread Paul Hoadley
Hi Michael,

On 8 Sep 2018, at 8:36 am, Michael Kondratov  wrote:

>   I am seeing a new set of errors:
> 
> Sep 07, 2018 4:08:37 PM org.jgroups.JChannel up
> SEVERE: JGRP19: failed passing message to receiver
> java.lang.IllegalArgumentException: Unknown remote message type #76.
> at 
> er.extensions.remoteSynchronizer.ERXRemoteSynchronizer._readCacheChange(ERXRemoteSynchronizer.java:119)
> at 
> er.jgroups.ERJGroupsSynchronizer.access$000(ERJGroupsSynchronizer.java:53)
> at 
> er.jgroups.ERJGroupsSynchronizer$1.receive(ERJGroupsSynchronizer.java:107)
> at org.jgroups.JChannel.up(JChannel.java:768)

FWIW, no haven't seen it. We're still on JGroups 3.6.13.Final, though. (And a 
modified synchronizer framework to work on AWS EC2.) Is that output from a 
newer version of JGroups?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: deployment via uWSGI?

2018-07-19 Thread Paul Hoadley
On 20 Jul 2018, at 03:29, Ray Kiddy  wrote:

> Has anyone set up, or thought about, a deployment using uWSGI in front of 
> some WO apps?
> 
> I have been doing some django things and it just occurred to me that I would 
> not mind skipping the WOAdaptor.

No, but keep us posted if you try it.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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: [ANN] WOUnit 1.2.4

2018-07-17 Thread Paul Hoadley
Hi Henrique,

On 18 Jul 2018, at 09:02, Henrique Prange  wrote:

> Release Notes - WOUnit - Version 1.2.4
> 
> ** Bug Fixes
> * Add support for entities that have a primary key of type Long (issue #48)
> * Fix binary incompatibility between Wonder 6 and 7 (issue #52)
> * Invoke validationForInsert or validationForUpdate according to the state of 
> the object when using the canBeSaved matcher (issue #47)
> 
> WOUnit 1.2.4 is compatible with Wonder 6 and 7.

Great work. Nice update.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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: Looking towards JDK 9, 10

2018-05-07 Thread Paul Hoadley
Thanks to everyone for their input on this.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


  1   2   3   4   5   6   7   8   9   10   >