Re: Debug frameworks with maven project

2024-04-27 Thread Hugi Thordarson via Webobjects-dev
So, a little late addendum to this discussion...

While posting a video on YouTube yesterday I noticed a video I created last 
year (and had totally forgotten about) that illustrates this exact issue:

https://www.youtube.com/watch?v=c2-YxVDYu_8

In short, the reason I'm not having problems with linking between projects is 
that for a long time I've been running my WO applications as plain java 
applications, not as WOApplications. The reason I did this initially is that 
WOApplication launch configurations generate a totally botched class path for 
maven projects, as described here: 
https://github.com/wocommunity/wolips/issues/153.

So, yeah... If you're using maven and want a correct classpath and proper 
inter-project relationships, run your applications as Java applications, not 
WOApplications.

Cheers,
- hugi


> On Apr 16, 2024, at 05:28, Hugi Thordarson via Webobjects-dev 
>  wrote:
> 
> I don't think I've ever had to attach sources of maven projects manually in 
> Eclipse (although I recall hitting something like this in a far past). And 
> given the second problem, it kind of sounds like the link between the app 
> project and the libraries/frameworks is completely broken.
> 
> Paul's suggestions are good, also, if you close all your projects and then 
> open the main (application) project, does Eclipse offer to open "related 
> projects" and open them for you?
> 
> Cheers,
> - hugi
> 
> 
>> On Apr 16, 2024, at 02:16, Paul Hoadley via Webobjects-dev 
>>  wrote:
>> 
>> 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
>> 
>>> 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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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 Hugi Thordarson via Webobjects-dev
I don't think I've ever had to attach sources of maven projects manually in 
Eclipse (although I recall hitting something like this in a far past). And 
given the second problem, it kind of sounds like the link between the app 
project and the libraries/frameworks is completely broken.

Paul's suggestions are good, also, if you close all your projects and then open 
the main (application) project, does Eclipse offer to open "related projects" 
and open them for you?

Cheers,
- hugi


> On Apr 16, 2024, at 02:16, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> 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
> 
>> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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


Debug frameworks with maven project

2024-04-10 Thread Samuel Pelletier via Webobjects-dev
Hi,

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.

Is there something I miss here ?

Regards,

Samuel

 ___
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: wolifecycle-maven-plugin configuration options

2024-04-06 Thread D Tim Cummings via Webobjects-dev

Hi Samuel

Yes. "flattenComponents" is the correct way of doing this. I can't think 
of a reason not to set this.


For migration notes I use 
https://gist.github.com/hugithordarson/3c269a3196d0c4f2da486f1109c16d42


Regards

Tim

On 7/4/24 06:00, Samuel Pelletier via Webobjects-dev wrote:

Hi,

My journey to Maven is going well, I ported 2 shared frameworks I use on every projects 
and my first app. There is many subtle details to go pass a "Hello world !" app.

My last discovery is a problem with component template in sub directory that 
are not found when deployed. I always use directories to group components, my 
app have 10s of them, one with 213...

After some digging, I found a configuration in wolifecycle-maven-plugin that 
resolved this situation.


true


There are some others options available including flattenResources and 
readPatternsets with a basic explanation but no real way to know if they are 
required or desirable and the defaults are disabled.

Is my fix is the correct way to use components in sub directory ?

Is there a reason to have this option disabled by default and in the new 
projects templates ?

Should I also enable flattenResources and readPatternsets ?

BTW, I use the migrations script with few modification from  
https://github.com/getsharp/womavenmigration.

Regards,

Samuel


  ___
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/tim%40triptera.com.au

This email sent to t...@triptera.com.au

___
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 configuration options

2024-04-06 Thread Samuel Pelletier via Webobjects-dev
Hi,

My journey to Maven is going well, I ported 2 shared frameworks I use on every 
projects and my first app. There is many subtle details to go pass a "Hello 
world !" app.

My last discovery is a problem with component template in sub directory that 
are not found when deployed. I always use directories to group components, my 
app have 10s of them, one with 213...

After some digging, I found a configuration in wolifecycle-maven-plugin that 
resolved this situation.


true


There are some others options available including flattenResources and 
readPatternsets with a basic explanation but no real way to know if they are 
required or desirable and the defaults are disabled.

Is my fix is the correct way to use components in sub directory ?

Is there a reason to have this option disabled by default and in the new 
projects templates ?

Should I also enable flattenResources and readPatternsets ?

BTW, I use the migrations script with few modification from  
https://github.com/getsharp/womavenmigration.

Regards,

Samuel


 ___
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


Using Git Hub as private CI/CD and Maven repository

2024-04-02 Thread Samuel Pelletier via Webobjects-dev
Hi,

With the maven switch, I understand it is now easier to setup CI/CD and it is 
also much nicer to have a Maven private repository for internal frameworks and 
apps.

I see that Git Hub now have Actions and Packages that could provide those 
services even for private repo in free tier.

Are this services a good options and is there are some caveats I should know ?

If there is a more standard or usual way, I welcome any suggestions.

Regards,

Samuel

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

2024-04-01 Thread D Tim Cummings via Webobjects-dev

Hi Samuel

I suspect it takes a while for eclipse to download the index before 
searching will work. I have heard it can be about 6GB.


To build and deploy the app I link my maven to an ant build script. Then 
I can install with a command like "mvn clean package -Dinstall_optiplex"




MMddHHmm 





${project.artifactId}${maven.build.timestamp}



maven-antrun-plugin

3.1.0





install-actions

package























run









My build.xml looks like





xmlns:if="ant:if" xmlns:unless="ant:unless">




















value="/var/lib/webobjects/htdocs/WebObjects" />




















value="${remote.host}:Documents/${build.app.name}.woapplication.tar.gz" />








value="${remote.host}:Documents/${build.app.name}.wowebserverresources.tar.gz" 
/>




















































value="${remote.local.root}/${remote.dest.dir}/${build.app.name}.woa" />









On 2/4/24 12:10, Samuel Pelletier wrote:

Tim,

Thank for the reply. I tried the download index on startup but still 
no search.


I do not understand the nature thing but found a preference in Eclipse 
that disable the annoying dialog : "Automatically detect missing 
natures and propose IDE extensions from Marketplace".


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 still have not figured out how to build and deploy the app (replace 
the ant install and manual rsync to server I actually do)


Regards,

Samuel



Le 1 avr. 2024 à 20:32, D Tim Cummings via Webobjects-dev 
 a écrit :


Hi Samuel

Apparently we need to have the nature 
org.maven.ide.eclipse.maven2Nature in our .project file because it is 
hard-coded in the original WebObjects. I think we should add into 
WOLips that it also needs this nature and then eclipse would stop 
complaining that no plugins are referencing this nature. 
Unfortunately I don't know enough about eclipse plugin development to 
program this.


I don't use search in maven pom editor myself but does this option 
help "Download repository index updates on startup"?





I haven't used maven with my own frameworks so can't help you there.

Tim


On 2/4/24 07:53, Samuel Pelletier via Webobjects-dev wrote:

Hi all,

Sorry for long time since last message, my maven switch had to be postponed.

I manages to set up the basic and create a frameworks and an app.

I have few questions with my current setup.

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 ?

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 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.

Thank in advance for help!

Samuel



  ___
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/tim%40triptera.com.au

This email sent to...@triptera.com.au

___
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/samuel%40samkar.com

This email sent to sam...@samkar.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Maven follow up

2024-04-01 Thread Samuel Pelletier via Webobjects-dev
Tim,

Thank for the reply. I tried the download index on startup but still no search.

I do not understand the nature thing but found a preference in Eclipse that 
disable the annoying dialog : "Automatically detect missing natures and propose 
IDE extensions from Marketplace".

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 still have not figured out how to build and deploy the app (replace the ant 
install and manual rsync to server I actually do)

Regards,

Samuel



> Le 1 avr. 2024 à 20:32, D Tim Cummings via Webobjects-dev 
>  a écrit :
> 
> Hi Samuel
> 
> Apparently we need to have the nature org.maven.ide.eclipse.maven2Nature in 
> our .project file because it is hard-coded in the original WebObjects. I 
> think we should add into WOLips that it also needs this nature and then 
> eclipse would stop complaining that no plugins are referencing this nature. 
> Unfortunately I don't know enough about eclipse plugin development to program 
> this.
> 
> I don't use search in maven pom editor myself but does this option help 
> "Download repository index updates on startup"?
> 
> 
> 
> 
> 
> I haven't used maven with my own frameworks so can't help you there.
> 
> Tim
> 
> 
> 
> On 2/4/24 07:53, Samuel Pelletier via Webobjects-dev wrote:
>> Hi all,
>> 
>> Sorry for long time since last message, my maven switch had to be postponed.
>> 
>> I manages to set up the basic and create a frameworks and an app. 
>> 
>> I have few questions with my current setup. 
>> 
>> 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 ?
>> 
>> 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 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.
>> 
>> Thank in advance for help!
>> 
>> Samuel
>> 
>> 
>> 
>>  ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au
>> 
>> This email sent to t...@triptera.com.au <mailto:t...@triptera.com.au>
> ___
> 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/samuel%40samkar.com
> 
> This email sent to sam...@samkar.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Maven follow up

2024-04-01 Thread D Tim Cummings via Webobjects-dev

Hi Samuel

Apparently we need to have the nature org.maven.ide.eclipse.maven2Nature 
in our .project file because it is hard-coded in the original 
WebObjects. I think we should add into WOLips that it also needs this 
nature and then eclipse would stop complaining that no plugins are 
referencing this nature. Unfortunately I don't know enough about eclipse 
plugin development to program this.


I don't use search in maven pom editor myself but does this option help 
"Download repository index updates on startup"?



I haven't used maven with my own frameworks so can't help you there.

Tim


On 2/4/24 07:53, Samuel Pelletier via Webobjects-dev wrote:

Hi all,

Sorry for long time since last message, my maven switch had to be postponed.

I manages to set up the basic and create a frameworks and an app.

I have few questions with my current setup.

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 ?

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 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.

Thank in advance for help!

Samuel



  ___
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/tim%40triptera.com.au

This email sent to...@triptera.com.au ___
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 follow up

2024-04-01 Thread Samuel Pelletier via Webobjects-dev
Hi all,

Sorry for long time since last message, my maven switch had to be postponed.

I manages to set up the basic and create a frameworks and an app. 

I have few questions with my current setup. 

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 ?

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 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.

Thank in advance for help!

Samuel



 ___
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


Zoom session on Maven????

2024-01-18 Thread Theodore Petrosky via Webobjects-dev
there was interest in some sort of a zoom session on working with maven. is 
there any continued interest?
 ___
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 "Quick Start" [was: Re: Meetup maybe? Or call me maybe?]

2023-12-25 Thread Theodore Petrosky via Webobjects-dev
Is the xWiki down?

https://wiki.wocommunity.org/

I can’t get on!

Ted

> On Dec 25, 2023, at 03:30, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> On 25 Dec 2023, at 08:38, Paul Hoadley via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> 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/
> 
> 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/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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


From ANT to Maven

2023-06-07 Thread Jens Schulze via Webobjects-dev
I have tried to move my apps from ANT to MAVEN and created some sample projects 
on GitHub that others do not make the same mistakes that I did. 

As always on this list; I got help. Without out and due to lack of 
documentation I would not have come so far.

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

https://github.com/profjens/maventestWO
profjens/maventestWO: Webobjects example project for maven. Will show setup of 
the correct toolchain
github.com

For my projects I ultimately failed in converting because I could not figure 
out which jar was “brocken”. 

But maybe others are more successful than me. Overall I liked the maven 
“experience”. 

 Best

Jens ___
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: Problem with maven build

2022-07-13 Thread Markus Stoll, junidas GmbH via Webobjects-dev
never mind, I think I found the bug in wolifecycle-maven-plugin

I created a pull request

Regards
Markus

PS: now the real work with these dependencies can start, it's not yet properly 
working this way either

> Am 13.07.2022 um 10:52 schrieb Markus Stoll, junidas GmbH via Webobjects-dev 
> :
> 
> HI,
> 
> I try to prepare migrating to Java 11 and for doing that I need the change 
> the dependency for the wonder ERJaxWS framework.
> 
> Basically
> 
>   
>   javax.xml
>   jaxb-impl
>   
>   
>   com.sun.xml.ws
>   jaxws-rt
>   
> 
> needs to be replaced by
> 
>   
>   org.glassfish.jaxb
>   jaxb-runtime
>   3.0.2
>   
>   
>   com.sun.xml.ws
>   jaxws-ri
>   3.0.2
>   pom
>   
> 
> 
> Everything compiles fine, BUT in the final application, I am getting one 
> additional jar added
> 
> com/sun/xml/ws/jaxws-ri/3.0.2/jaxws-ri-3.0.2.jar
> 
> which is in fact the pom file of this dependency and no jar at all. As the 
> jaxws-ri dependency is of type pom and has no jar of its own this is 
> obviously wrong and I struggle getting this fixed (with this bad jar the 
> application will obviously not start). I tried adding a scope for this 
> dependency, but still this does not work out.
> 
> Any ideas?
> 
> regards
> Markus
> 
> 
> ___
> 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/markus.stoll%40junidas.de
> 
> This email sent to markus.st...@junidas.de



smime.p7s
Description: S/MIME cryptographic signature
 ___
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


Problem with maven build

2022-07-13 Thread Markus Stoll, junidas GmbH via Webobjects-dev
HI,

I try to prepare migrating to Java 11 and for doing that I need the change the 
dependency for the wonder ERJaxWS framework.

Basically


javax.xml
jaxb-impl


com.sun.xml.ws
jaxws-rt


needs to be replaced by


org.glassfish.jaxb
jaxb-runtime
3.0.2


com.sun.xml.ws
jaxws-ri
3.0.2
pom



Everything compiles fine, BUT in the final application, I am getting one 
additional jar added

com/sun/xml/ws/jaxws-ri/3.0.2/jaxws-ri-3.0.2.jar

which is in fact the pom file of this dependency and no jar at all. As the 
jaxws-ri dependency is of type pom and has no jar of its own this is obviously 
wrong and I struggle getting this fixed (with this bad jar the application will 
obviously not start). I tried adding a scope for this dependency, but still 
this does not work out.

Any ideas?

regards
Markus




smime.p7s
Description: S/MIME cryptographic signature
 ___
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-16 Thread Hugi Thordarson via Webobjects-dev
Nice!


> On 16 Sep 2020, at 05:03, Paul Hoadley  wrote:
> 
> 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 
>> ) 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: 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 
> ) 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: 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: Maven build - webserver resources in frameworks

2020-03-05 Thread Dennis Scheffer via Webobjects-dev
Hi,

I have to admit that I do not fully understand why you would need to do this 
but you can just inject a Maven plugin into your build process.
A suitable lifecycle phase that runs before packaging would be process-classes. 
Add this below your wolifecycle plugin declaration:


maven-antrun-plugin
1.8


move-frameworks-directory
process-classes






run





You can also choose to 'lift' specific frameworks by adding more 'move' 
commands.

With regards
-- 
Dennis Scheffer


> On 5. Mar 2020, at 16:44, Steven Meyer via Webobjects-dev 
>  wrote:
> 
> Greetings,
> 
> I’m in the middle of converting a group of fairly ancient applications from 
> Ant builds to Maven.  The process has been remarkably smooth, but I’m caught 
> on the issue referenced in the subject.
> 
> Our existing ant builds result in the following structure in the web server 
> resources portion of the split artifiact
> 
> MyApp.woa
>  Contents
>   WebserverResources
>
>  Frameworks
>   MyFramework.framework
>WebserverResources
> 
> 
> which is expected because the “split” target in build.xml deliberately lifts 
> Frameworks from under Contents and makes it a sibling.  As far as I can tell, 
> that’s still standard behavior.
> 
> 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.
> 
> Looking for ideas,
> 
> Steve
> 
> ___
> 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/dennis%40selbstdenker.ag
> 
> This email sent to den...@selbstdenker.ag



smime.p7s
Description: S/MIME cryptographic signature
 ___
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 build - webserver resources in frameworks

2020-03-05 Thread Steven Meyer via Webobjects-dev
Greetings,

I’m in the middle of converting a group of fairly ancient applications from Ant 
builds to Maven.  The process has been remarkably smooth, but I’m caught on the 
issue referenced in the subject.

Our existing ant builds result in the following structure in the web server 
resources portion of the split artifiact

MyApp.woa
 Contents
  WebserverResources
   
 Frameworks
  MyFramework.framework
   WebserverResources


which is expected because the “split” target in build.xml deliberately lifts 
Frameworks from under Contents and makes it a sibling.  As far as I can tell, 
that’s still standard behavior.

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.

Looking for ideas,

Steve

 ___
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 Aaron Rosenzweig via Webobjects-dev
Thanks Paul,

That’s an insightful reply!

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. 

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.

I had to stop trying but I should revisit soon. I think it is probably better 
to use the “failsafe / verify” instead of “surefire / test” because it will 
have the bundled .woa or .framework by then and should be a standard bundle. 
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



> On Feb 12, 2020, at 10:37 PM, Paul Hoadley  wrote:
> 
> 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  <mailto:aa...@chatnbike.com>> 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://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-10 Thread Hugi Thordarson via Webobjects-dev
Hi Paul,
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. So I can at least confirm that 
the changes don't seem to break anything (well, for me at least). Thanks for 
doing this :).

Cheers,
- hugi



> On 9 Feb 2020, at 23:22, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> 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 
>> mailto:webobjects-dev@lists.apple.com>> 
>> 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://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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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-23 Thread Aaron Rosenzweig via Webobjects-dev
Thanks Chuck,

Maven likes to swallow things but I put the flags to not trim stack traces and 
to divert standard out but I haven’t gotten anything additional. I still might 
have missed a flag. 

I thought maybe I could add some logger statements into the WOnder version of 
NSBundle that replaces the Apple version… that lives in ERFoundation.jar inside 
of ERJars.framework but… haha! no source, it’s a secret lib I suppose. 

I’m guessing that Maven may not have built enough to have the Contents and the 
Properties file available or otherwise something was “wrong” and that caused 
the static initializer to fail. When I reverse engineer the Wonder NSBundle 
(did I say that aloud?) I see that the static initializer does a lot! It’s not 
just setting a few variables, it’s rather meaty. 

The next step is to make my own com.webojects.blah.blah.NSBundle that takes 
precedence but looks a lot like the Wonder one but with more logging in it so I 
can see where it is failing when invoked by Maven. I had to cut bait for the 
moment though, spent too much time chasing my own tail. 
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



> On Jan 23, 2020, at 10:52 PM, Chuck Hill  wrote:
> 
> That error is definitely a static initializer or block throwing.  Nothing 
> else is output?
> 
> 
>> On Jan 23, 2020, at 8:41 AM, Aaron Rosenzweig via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> I tried this call:
>> 
>> NSBundle MYBUNDLE = NSBundle.mainBundle();
>> 
>> It fails immediately with:
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> com.webobjects.foundation.NSBundle
>> 
>> I’m suspecting it has to do with the static initializer of NSBundle.
>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig >> <mailto:aa...@chatnbike.com>> wrote:
>>> 
>>> Riddle me this… how can you get a class not defined error from the class 
>>> itself?
>>> 
>>> java.lang.NoClassDefFoundError: Could not initialize class 
>>> com.webobjects.foundation.NSBundle
>>> at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
>>> 
>>> You are already in NSBundle.mainBundle() and then out pops a 
>>> NoClassDefFoundError… that must be a red herring but I cannot figure it 
>>> out. 
>>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319
>>> 
>>> 
>>> 
>>>> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig >>> <mailto:aa...@chatnbike.com>> wrote:
>>>> 
>>>> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
>>>> then a slow one run at different times. Thanks! good idea. 
>>>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>>>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319   
>>>> 
>>>>
>>>> 
>>>>> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer >>>> <mailto:den...@selbstdenker.ag>> wrote:
>>>>> 
>>>>> 
>>>>>> Cloning a “company” EO and testing unique constraints in SQL - is 
>>>>>> heavier than testing an “isCamelCase()” function but lighter than 
>>>>>> selenium. Maybe we have to do it in failsafe but it feels closer to 
>>>>>> regular unit tests that should fire every time there is a checkin to the 
>>>>>> repo. In other words if your tests take 5 minutes to run, why not let 
>>>>>> Agnes tell you immediately that the build is broken rather than waiting 
>>>>>> till midnight for selenium to do so?
>>>>> 
>>>>> If there are multiple ways in which you would like to use the failsafe 
>>>>> plugin, you can always add multiple executions and put them in their own 
>>>>> build profiles 
>>>>> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html
>>>>>  
>>>>> <https://maven.apache.org/guides/introduction/introduction-to-profiles.html>).
>>>>>  Then you can fire failsafe every time you check in new code without 
>>>>> selenium and you can do some

Re: Maven Unit tests with EOF

2020-01-23 Thread Chuck Hill via Webobjects-dev
That error is definitely a static initializer or block throwing.  Nothing else 
is output?


> On Jan 23, 2020, at 8:41 AM, Aaron Rosenzweig via Webobjects-dev 
>  wrote:
> 
> I tried this call:
> 
> NSBundle MYBUNDLE = NSBundle.mainBundle();
> 
> It fails immediately with:
> java.lang.NoClassDefFoundError: Could not initialize class 
> com.webobjects.foundation.NSBundle
> 
> I’m suspecting it has to do with the static initializer of NSBundle.
> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig > <mailto:aa...@chatnbike.com>> wrote:
>> 
>> Riddle me this… how can you get a class not defined error from the class 
>> itself?
>> 
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> com.webobjects.foundation.NSBundle
>>  at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
>> 
>> You are already in NSBundle.mainBundle() and then out pops a 
>> NoClassDefFoundError… that must be a red herring but I cannot figure it out. 
>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig >> <mailto:aa...@chatnbike.com>> wrote:
>>> 
>>> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
>>> then a slow one run at different times. Thanks! good idea. 
>>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319
>>> 
>>> 
>>> 
>>>> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer >>> <mailto:den...@selbstdenker.ag>> wrote:
>>>> 
>>>> 
>>>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>>>> we have to do it in failsafe but it feels closer to regular unit tests 
>>>>> that should fire every time there is a checkin to the repo. In other 
>>>>> words if your tests take 5 minutes to run, why not let Agnes tell you 
>>>>> immediately that the build is broken rather than waiting till midnight 
>>>>> for selenium to do so?
>>>> 
>>>> If there are multiple ways in which you would like to use the failsafe 
>>>> plugin, you can always add multiple executions and put them in their own 
>>>> build profiles 
>>>> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html
>>>>  
>>>> <https://maven.apache.org/guides/introduction/introduction-to-profiles.html>).
>>>>  Then you can fire failsafe every time you check in new code without 
>>>> selenium and you can do something like this if your want selenium tests to 
>>>> be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways to 
>>>> configure profiles to do something like that.
>>>> 
>>>> -- 
>>>> Dennis
>>>> 
>>>>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig >>>> <mailto:aa...@chatnbike.com>> wrote:
>>>>> 
>>>>> Dennis that is a good point,
>>>>> 
>>>>> At the moment I have not cleaned and the product is there but it’s not 
>>>>> working but your point is still well taken. In Jenkins, in the cloud, it 
>>>>> will do a clean and I really should be doing a clean every time so the 
>>>>> product won’t be there to test with… there won’t be a bundle. 
>>>>> 
>>>>> Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
>>>>> test too but it’s very heavy and flexes the UI of a bundled and launched 
>>>>> app. 
>>>>> 
>>>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>>>> we have to do it in failsafe but it feels closer to regular unit tests 
>>>>> that should fire every time there is a checkin to the repo. In other 
>>>>> words if your tests take 5 minutes to run, why not let Agnes tell you 
>>>>> immediately that the

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Jesse you are correct. If you are compiling for one java version but running on 
another… you can get java.lang.NoClassDefFoundError - that’s because the object 
you used at compile time might not be available in that other runtime. 

While the error is the same, this feels different but your point is a good one 
and I’ll consider it some more. 
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



> On Jan 23, 2020, at 4:24 PM, Jesse Tayler  wrote:
> 
> Isn’t that what you get with some java version mismatch ??
> 
>> On Jan 23, 2020, at 11:41 AM, Aaron Rosenzweig via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> I tried this call:
>> 
>> NSBundle MYBUNDLE = NSBundle.mainBundle();
>> 
>> It fails immediately with:
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> com.webobjects.foundation.NSBundle
>> 
>> I’m suspecting it has to do with the static initializer of NSBundle.
>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig >> <mailto:aa...@chatnbike.com>> wrote:
>>> 
>>> Riddle me this… how can you get a class not defined error from the class 
>>> itself?
>>> 
>>> java.lang.NoClassDefFoundError: Could not initialize class 
>>> com.webobjects.foundation.NSBundle
>>> at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
>>> 
>>> You are already in NSBundle.mainBundle() and then out pops a 
>>> NoClassDefFoundError… that must be a red herring but I cannot figure it 
>>> out. 
>>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319
>>> 
>>> 
>>> 
>>>> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig >>> <mailto:aa...@chatnbike.com>> wrote:
>>>> 
>>>> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
>>>> then a slow one run at different times. Thanks! good idea. 
>>>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>>>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319   
>>>> 
>>>>
>>>> 
>>>>> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer >>>> <mailto:den...@selbstdenker.ag>> wrote:
>>>>> 
>>>>> 
>>>>>> Cloning a “company” EO and testing unique constraints in SQL - is 
>>>>>> heavier than testing an “isCamelCase()” function but lighter than 
>>>>>> selenium. Maybe we have to do it in failsafe but it feels closer to 
>>>>>> regular unit tests that should fire every time there is a checkin to the 
>>>>>> repo. In other words if your tests take 5 minutes to run, why not let 
>>>>>> Agnes tell you immediately that the build is broken rather than waiting 
>>>>>> till midnight for selenium to do so?
>>>>> 
>>>>> If there are multiple ways in which you would like to use the failsafe 
>>>>> plugin, you can always add multiple executions and put them in their own 
>>>>> build profiles 
>>>>> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html
>>>>>  
>>>>> <https://maven.apache.org/guides/introduction/introduction-to-profiles.html>).
>>>>>  Then you can fire failsafe every time you check in new code without 
>>>>> selenium and you can do something like this if your want selenium tests 
>>>>> to be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways 
>>>>> to configure profiles to do something like that.
>>>>> 
>>>>> -- 
>>>>> Dennis
>>>>> 
>>>>>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig >>>>> <mailto:aa...@chatnbike.com>> wrote:
>>>>>> 
>>>>>> Dennis that is a good point,
>>>>>> 
>>>>>> At the moment I have not cleaned and the product is there but it’s not 
>>>>>> working but your point is still well taken. In Jenkins, in the cloud, it 
>>>>>> will do a

Re: Maven Unit tests with EOF

2020-01-23 Thread Jesse Tayler via Webobjects-dev
Isn’t that what you get with some java version mismatch ??

> On Jan 23, 2020, at 11:41 AM, Aaron Rosenzweig via Webobjects-dev 
>  wrote:
> 
> I tried this call:
> 
> NSBundle MYBUNDLE = NSBundle.mainBundle();
> 
> It fails immediately with:
> java.lang.NoClassDefFoundError: Could not initialize class 
> com.webobjects.foundation.NSBundle
> 
> I’m suspecting it has to do with the static initializer of NSBundle.
> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig > <mailto:aa...@chatnbike.com>> wrote:
>> 
>> Riddle me this… how can you get a class not defined error from the class 
>> itself?
>> 
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> com.webobjects.foundation.NSBundle
>>  at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
>> 
>> You are already in NSBundle.mainBundle() and then out pops a 
>> NoClassDefFoundError… that must be a red herring but I cannot figure it out. 
>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig >> <mailto:aa...@chatnbike.com>> wrote:
>>> 
>>> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
>>> then a slow one run at different times. Thanks! good idea. 
>>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319
>>> 
>>> 
>>> 
>>>> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer >>> <mailto:den...@selbstdenker.ag>> wrote:
>>>> 
>>>> 
>>>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>>>> we have to do it in failsafe but it feels closer to regular unit tests 
>>>>> that should fire every time there is a checkin to the repo. In other 
>>>>> words if your tests take 5 minutes to run, why not let Agnes tell you 
>>>>> immediately that the build is broken rather than waiting till midnight 
>>>>> for selenium to do so?
>>>> 
>>>> If there are multiple ways in which you would like to use the failsafe 
>>>> plugin, you can always add multiple executions and put them in their own 
>>>> build profiles 
>>>> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html
>>>>  
>>>> <https://maven.apache.org/guides/introduction/introduction-to-profiles.html>).
>>>>  Then you can fire failsafe every time you check in new code without 
>>>> selenium and you can do something like this if your want selenium tests to 
>>>> be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways to 
>>>> configure profiles to do something like that.
>>>> 
>>>> -- 
>>>> Dennis
>>>> 
>>>>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig >>>> <mailto:aa...@chatnbike.com>> wrote:
>>>>> 
>>>>> Dennis that is a good point,
>>>>> 
>>>>> At the moment I have not cleaned and the product is there but it’s not 
>>>>> working but your point is still well taken. In Jenkins, in the cloud, it 
>>>>> will do a clean and I really should be doing a clean every time so the 
>>>>> product won’t be there to test with… there won’t be a bundle. 
>>>>> 
>>>>> Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
>>>>> test too but it’s very heavy and flexes the UI of a bundled and launched 
>>>>> app. 
>>>>> 
>>>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>>>> we have to do it in failsafe but it feels closer to regular unit tests 
>>>>> that should fire every time there is a checkin to the repo. In other 
>>>>> words if your tests take 5 minutes to run, why not let Agnes tell you 
>>>>> immediately that the build is broken rather than waiting till midnight

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
I tried this call:

NSBundle MYBUNDLE = NSBundle.mainBundle();

It fails immediately with:
java.lang.NoClassDefFoundError: Could not initialize class 
com.webobjects.foundation.NSBundle

I’m suspecting it has to do with the static initializer of NSBundle.
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig  wrote:
> 
> Riddle me this… how can you get a class not defined error from the class 
> itself?
> 
> java.lang.NoClassDefFoundError: Could not initialize class 
> com.webobjects.foundation.NSBundle
>   at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
> 
> You are already in NSBundle.mainBundle() and then out pops a 
> NoClassDefFoundError… that must be a red herring but I cannot figure it out. 
> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig > <mailto:aa...@chatnbike.com>> wrote:
>> 
>> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
>> then a slow one run at different times. Thanks! good idea. 
>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer >> <mailto:den...@selbstdenker.ag>> wrote:
>>> 
>>> 
>>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>>> we have to do it in failsafe but it feels closer to regular unit tests 
>>>> that should fire every time there is a checkin to the repo. In other words 
>>>> if your tests take 5 minutes to run, why not let Agnes tell you 
>>>> immediately that the build is broken rather than waiting till midnight for 
>>>> selenium to do so?
>>> 
>>> If there are multiple ways in which you would like to use the failsafe 
>>> plugin, you can always add multiple executions and put them in their own 
>>> build profiles 
>>> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html 
>>> <https://maven.apache.org/guides/introduction/introduction-to-profiles.html>).
>>>  Then you can fire failsafe every time you check in new code without 
>>> selenium and you can do something like this if your want selenium tests to 
>>> be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways to 
>>> configure profiles to do something like that.
>>> 
>>> -- 
>>> Dennis
>>> 
>>>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig >>> <mailto:aa...@chatnbike.com>> wrote:
>>>> 
>>>> Dennis that is a good point,
>>>> 
>>>> At the moment I have not cleaned and the product is there but it’s not 
>>>> working but your point is still well taken. In Jenkins, in the cloud, it 
>>>> will do a clean and I really should be doing a clean every time so the 
>>>> product won’t be there to test with… there won’t be a bundle. 
>>>> 
>>>> Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
>>>> test too but it’s very heavy and flexes the UI of a bundled and launched 
>>>> app. 
>>>> 
>>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>>> we have to do it in failsafe but it feels closer to regular unit tests 
>>>> that should fire every time there is a checkin to the repo. In other words 
>>>> if your tests take 5 minutes to run, why not let Agnes tell you 
>>>> immediately that the build is broken rather than waiting till midnight for 
>>>> selenium to do so?
>>>> 
>>>> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg
>>>>  
>>>> <http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg>
>>>> 
>>>> When we run from within Eclipse we have a “bundless build” that uses the 
>>>> Fluffy Bunny NSBundle variant and works great… without a product… and the 
>>>> destructive EOF unit tests work there. I think what Markus d

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Riddle me this… how can you get a class not defined error from the class itself?

java.lang.NoClassDefFoundError: Could not initialize class 
com.webobjects.foundation.NSBundle
at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)

You are already in NSBundle.mainBundle() and then out pops a 
NoClassDefFoundError… that must be a red herring but I cannot figure it out. 
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig  wrote:
> 
> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and then 
> a slow one run at different times. Thanks! good idea. 
> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer > <mailto:den...@selbstdenker.ag>> wrote:
>> 
>> 
>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>> we have to do it in failsafe but it feels closer to regular unit tests that 
>>> should fire every time there is a checkin to the repo. In other words if 
>>> your tests take 5 minutes to run, why not let Agnes tell you immediately 
>>> that the build is broken rather than waiting till midnight for selenium to 
>>> do so?
>> 
>> If there are multiple ways in which you would like to use the failsafe 
>> plugin, you can always add multiple executions and put them in their own 
>> build profiles 
>> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html 
>> <https://maven.apache.org/guides/introduction/introduction-to-profiles.html>).
>>  Then you can fire failsafe every time you check in new code without 
>> selenium and you can do something like this if your want selenium tests to 
>> be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways to 
>> configure profiles to do something like that.
>> 
>> -- 
>> Dennis
>> 
>>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig >> <mailto:aa...@chatnbike.com>> wrote:
>>> 
>>> Dennis that is a good point,
>>> 
>>> At the moment I have not cleaned and the product is there but it’s not 
>>> working but your point is still well taken. In Jenkins, in the cloud, it 
>>> will do a clean and I really should be doing a clean every time so the 
>>> product won’t be there to test with… there won’t be a bundle. 
>>> 
>>> Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
>>> test too but it’s very heavy and flexes the UI of a bundled and launched 
>>> app. 
>>> 
>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>> we have to do it in failsafe but it feels closer to regular unit tests that 
>>> should fire every time there is a checkin to the repo. In other words if 
>>> your tests take 5 minutes to run, why not let Agnes tell you immediately 
>>> that the build is broken rather than waiting till midnight for selenium to 
>>> do so?
>>> 
>>> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg
>>>  
>>> <http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg>
>>> 
>>> When we run from within Eclipse we have a “bundless build” that uses the 
>>> Fluffy Bunny NSBundle variant and works great… without a product… and the 
>>> destructive EOF unit tests work there. I think what Markus did was patch 
>>> NSBundle to treat the maven target with the intermediate classes and 
>>> resources as a “maven bundless build” or a “maven black-ops bunny” 
>>> if-you-will. 
>>> 
>>> I’m still confused but clarity is setting in. Thank you everyone for this 
>>> hearty discussion. 
>>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319
>>> 
>>> 
>>> 
>>>> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer >>> <mailto:den...@selbstdenker.ag>> wrote:
>>>> 
>>>> Hi everyone,
>>>> 
>>>> 
>>>>> // That's the main bundle when running tests from Eclipse

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and then a 
slow one run at different times. Thanks! good idea. 
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer  wrote:
> 
> 
>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
>> have to do it in failsafe but it feels closer to regular unit tests that 
>> should fire every time there is a checkin to the repo. In other words if 
>> your tests take 5 minutes to run, why not let Agnes tell you immediately 
>> that the build is broken rather than waiting till midnight for selenium to 
>> do so?
> 
> If there are multiple ways in which you would like to use the failsafe 
> plugin, you can always add multiple executions and put them in their own 
> build profiles 
> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html 
> <https://maven.apache.org/guides/introduction/introduction-to-profiles.html>).
>  Then you can fire failsafe every time you check in new code without selenium 
> and you can do something like this if your want selenium tests to be run: 
> 'mvn clean verify -P with-selenium'. There are a bunch of ways to configure 
> profiles to do something like that.
> 
> -- 
> Dennis
> 
>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig > <mailto:aa...@chatnbike.com>> wrote:
>> 
>> Dennis that is a good point,
>> 
>> At the moment I have not cleaned and the product is there but it’s not 
>> working but your point is still well taken. In Jenkins, in the cloud, it 
>> will do a clean and I really should be doing a clean every time so the 
>> product won’t be there to test with… there won’t be a bundle. 
>> 
>> Maven “Failsafe” makes sense for selenium… which is technically a JUnit test 
>> too but it’s very heavy and flexes the UI of a bundled and launched app. 
>> 
>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
>> have to do it in failsafe but it feels closer to regular unit tests that 
>> should fire every time there is a checkin to the repo. In other words if 
>> your tests take 5 minutes to run, why not let Agnes tell you immediately 
>> that the build is broken rather than waiting till midnight for selenium to 
>> do so?
>> 
>> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg
>>  
>> <http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg>
>> 
>> When we run from within Eclipse we have a “bundless build” that uses the 
>> Fluffy Bunny NSBundle variant and works great… without a product… and the 
>> destructive EOF unit tests work there. I think what Markus did was patch 
>> NSBundle to treat the maven target with the intermediate classes and 
>> resources as a “maven bundless build” or a “maven black-ops bunny” 
>> if-you-will. 
>> 
>> I’m still confused but clarity is setting in. Thank you everyone for this 
>> hearty discussion. 
>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer >> <mailto:den...@selbstdenker.ag>> wrote:
>>> 
>>> Hi everyone,
>>> 
>>> 
>>>> // That's the main bundle when running tests from Eclipse
>>>> Path mainBundlePath = Paths.get("build/your-project.woa");
>>>> 
>>>> if (Files.notExists(mainBundlePath)) {
>>>>  // Maven doesn't create a build directory. The WOA bundle goes into the 
>>>> target folder instead.
>>>>  mainBundlePath = Paths.get("target/your-project.woa");
>>>> }
>>>> 
>>>> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
>>>> ACUnitTestingApplication.class, args);
>>> 
>>> This may not work under certain circumstances because the surefire plugin 
>>> usually runs in the Maven 'test' phase which is before the 'package' phase. 
>>> Therefore, there may not be a bundle at 'target/your-project.woa' – 
>>> especially if you do a 'mvn clean test'.
>>> 
>>> The solution is very simple: I would consider tests that depend on a 

Re: Maven Unit tests with EOF

2020-01-23 Thread Dennis Scheffer via Webobjects-dev

> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
> have to do it in failsafe but it feels closer to regular unit tests that 
> should fire every time there is a checkin to the repo. In other words if your 
> tests take 5 minutes to run, why not let Agnes tell you immediately that the 
> build is broken rather than waiting till midnight for selenium to do so?

If there are multiple ways in which you would like to use the failsafe plugin, 
you can always add multiple executions and put them in their own build profiles 
(https://maven.apache.org/guides/introduction/introduction-to-profiles.html 
<https://maven.apache.org/guides/introduction/introduction-to-profiles.html>). 
Then you can fire failsafe every time you check in new code without selenium 
and you can do something like this if your want selenium tests to be run: 'mvn 
clean verify -P with-selenium'. There are a bunch of ways to configure profiles 
to do something like that.

-- 
Dennis

> On 23. Jan 2020, at 15:39, Aaron Rosenzweig  wrote:
> 
> Dennis that is a good point,
> 
> At the moment I have not cleaned and the product is there but it’s not 
> working but your point is still well taken. In Jenkins, in the cloud, it will 
> do a clean and I really should be doing a clean every time so the product 
> won’t be there to test with… there won’t be a bundle. 
> 
> Maven “Failsafe” makes sense for selenium… which is technically a JUnit test 
> too but it’s very heavy and flexes the UI of a bundled and launched app. 
> 
> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
> have to do it in failsafe but it feels closer to regular unit tests that 
> should fire every time there is a checkin to the repo. In other words if your 
> tests take 5 minutes to run, why not let Agnes tell you immediately that the 
> build is broken rather than waiting till midnight for selenium to do so?
> 
> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg 
> <http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg>
> 
> When we run from within Eclipse we have a “bundless build” that uses the 
> Fluffy Bunny NSBundle variant and works great… without a product… and the 
> destructive EOF unit tests work there. I think what Markus did was patch 
> NSBundle to treat the maven target with the intermediate classes and 
> resources as a “maven bundless build” or a “maven black-ops bunny” 
> if-you-will. 
> 
> I’m still confused but clarity is setting in. Thank you everyone for this 
> hearty discussion. 
> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319
>   
> 
>> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer > <mailto:den...@selbstdenker.ag>> wrote:
>> 
>> Hi everyone,
>> 
>> 
>>> // That's the main bundle when running tests from Eclipse
>>> Path mainBundlePath = Paths.get("build/your-project.woa");
>>> 
>>> if (Files.notExists(mainBundlePath)) {
>>>  // Maven doesn't create a build directory. The WOA bundle goes into the 
>>> target folder instead.
>>>  mainBundlePath = Paths.get("target/your-project.woa");
>>> }
>>> 
>>> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
>>> ACUnitTestingApplication.class, args);
>> 
>> This may not work under certain circumstances because the surefire plugin 
>> usually runs in the Maven 'test' phase which is before the 'package' phase. 
>> Therefore, there may not be a bundle at 'target/your-project.woa' – 
>> especially if you do a 'mvn clean test'.
>> 
>> The solution is very simple: I would consider tests that depend on a 
>> pre-build bundle integration tests (which makes sense because most of the 
>> time all the application's 'units' are integrated in a bundle). And just use 
>> the Maven failsafe pugin 
>> (https://maven.apache.org/surefire/maven-failsafe-plugin/ 
>> <https://maven.apache.org/surefire/maven-failsafe-plugin/>). It works 
>> exactly the same as the surefire plugin but runs in the 'verify' phase which 
>> is after the 'package' phase. So 'mvn clean verify' will clean your target 
>> directory, create a fresh new bundle and run your tests on your fresh bundle 
>> with the solution mentioned above.
>> 
>> With regards,
>> -- 
>> Dennis
>> 
>> 
>>> On 23. Jan 2020, at 02:28, Henrique Prange via W

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Hey everybody,

I noticed that “NSBundle.java” is defined in ERFoundation and also 
JavaFoundation… 

It appears we aren’t using ERXPatcher to replace it and that might not even be 
an option… so you have to have ERFoundation loaded first for it to override. I 
do have it that way and Maven is doing it that way but I hadn’t noticed before 
that NSBundle is already patched. 
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



> On Jan 23, 2020, at 9:39 AM, Aaron Rosenzweig  wrote:
> 
> Dennis that is a good point,
> 
> At the moment I have not cleaned and the product is there but it’s not 
> working but your point is still well taken. In Jenkins, in the cloud, it will 
> do a clean and I really should be doing a clean every time so the product 
> won’t be there to test with… there won’t be a bundle. 
> 
> Maven “Failsafe” makes sense for selenium… which is technically a JUnit test 
> too but it’s very heavy and flexes the UI of a bundled and launched app. 
> 
> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
> have to do it in failsafe but it feels closer to regular unit tests that 
> should fire every time there is a checkin to the repo. In other words if your 
> tests take 5 minutes to run, why not let Agnes tell you immediately that the 
> build is broken rather than waiting till midnight for selenium to do so?
> 
> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg 
> <http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg>
> 
> When we run from within Eclipse we have a “bundless build” that uses the 
> Fluffy Bunny NSBundle variant and works great… without a product… and the 
> destructive EOF unit tests work there. I think what Markus did was patch 
> NSBundle to treat the maven target with the intermediate classes and 
> resources as a “maven bundless build” or a “maven black-ops bunny” 
> if-you-will. 
> 
> I’m still confused but clarity is setting in. Thank you everyone for this 
> hearty discussion. 
> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer > <mailto:den...@selbstdenker.ag>> wrote:
>> 
>> Hi everyone,
>> 
>> 
>>> // That's the main bundle when running tests from Eclipse
>>> Path mainBundlePath = Paths.get("build/your-project.woa");
>>> 
>>> if (Files.notExists(mainBundlePath)) {
>>>  // Maven doesn't create a build directory. The WOA bundle goes into the 
>>> target folder instead.
>>>  mainBundlePath = Paths.get("target/your-project.woa");
>>> }
>>> 
>>> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
>>> ACUnitTestingApplication.class, args);
>> 
>> This may not work under certain circumstances because the surefire plugin 
>> usually runs in the Maven 'test' phase which is before the 'package' phase. 
>> Therefore, there may not be a bundle at 'target/your-project.woa' – 
>> especially if you do a 'mvn clean test'.
>> 
>> The solution is very simple: I would consider tests that depend on a 
>> pre-build bundle integration tests (which makes sense because most of the 
>> time all the application's 'units' are integrated in a bundle). And just use 
>> the Maven failsafe pugin 
>> (https://maven.apache.org/surefire/maven-failsafe-plugin/ 
>> <https://maven.apache.org/surefire/maven-failsafe-plugin/>). It works 
>> exactly the same as the surefire plugin but runs in the 'verify' phase which 
>> is after the 'package' phase. So 'mvn clean verify' will clean your target 
>> directory, create a fresh new bundle and run your tests on your fresh bundle 
>> with the solution mentioned above.
>> 
>> With regards,
>> -- 
>> Dennis
>> 
>> 
>>> On 23. Jan 2020, at 02:28, Henrique Prange via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>> Hey Aaron,
>>> 
>>> This error rings a bell. I don't recall all the details. It looks like the 
>>> collectMainProps method is trying to find the Properties file of your 
>>> project in the wrong place.
>>> 
>>> When you build your project in Eclipse with WOLips, it generates a build 
>>> folder containing your project's WOA bu

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Dennis that is a good point,

At the moment I have not cleaned and the product is there but it’s not working 
but your point is still well taken. In Jenkins, in the cloud, it will do a 
clean and I really should be doing a clean every time so the product won’t be 
there to test with… there won’t be a bundle. 

Maven “Failsafe” makes sense for selenium… which is technically a JUnit test 
too but it’s very heavy and flexes the UI of a bundled and launched app. 

Cloning a “company” EO and testing unique constraints in SQL - is heavier than 
testing an “isCamelCase()” function but lighter than selenium. Maybe we have to 
do it in failsafe but it feels closer to regular unit tests that should fire 
every time there is a checkin to the repo. In other words if your tests take 5 
minutes to run, why not let Agnes tell you immediately that the build is broken 
rather than waiting till midnight for selenium to do so?

http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg 
<http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg>

When we run from within Eclipse we have a “bundless build” that uses the Fluffy 
Bunny NSBundle variant and works great… without a product… and the destructive 
EOF unit tests work there. I think what Markus did was patch NSBundle to treat 
the maven target with the intermediate classes and resources as a “maven 
bundless build” or a “maven black-ops bunny” if-you-will. 

I’m still confused but clarity is setting in. Thank you everyone for this 
hearty discussion. 
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer  wrote:
> 
> Hi everyone,
> 
> 
>> // That's the main bundle when running tests from Eclipse
>> Path mainBundlePath = Paths.get("build/your-project.woa");
>> 
>> if (Files.notExists(mainBundlePath)) {
>>  // Maven doesn't create a build directory. The WOA bundle goes into the 
>> target folder instead.
>>  mainBundlePath = Paths.get("target/your-project.woa");
>> }
>> 
>> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
>> ACUnitTestingApplication.class, args);
> 
> This may not work under certain circumstances because the surefire plugin 
> usually runs in the Maven 'test' phase which is before the 'package' phase. 
> Therefore, there may not be a bundle at 'target/your-project.woa' – 
> especially if you do a 'mvn clean test'.
> 
> The solution is very simple: I would consider tests that depend on a 
> pre-build bundle integration tests (which makes sense because most of the 
> time all the application's 'units' are integrated in a bundle). And just use 
> the Maven failsafe pugin 
> (https://maven.apache.org/surefire/maven-failsafe-plugin/ 
> <https://maven.apache.org/surefire/maven-failsafe-plugin/>). It works exactly 
> the same as the surefire plugin but runs in the 'verify' phase which is after 
> the 'package' phase. So 'mvn clean verify' will clean your target directory, 
> create a fresh new bundle and run your tests on your fresh bundle with the 
> solution mentioned above.
> 
> With regards,
> -- 
> Dennis
> 
> 
>> On 23. Jan 2020, at 02:28, Henrique Prange via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hey Aaron,
>> 
>> This error rings a bell. I don't recall all the details. It looks like the 
>> collectMainProps method is trying to find the Properties file of your 
>> project in the wrong place.
>> 
>> When you build your project in Eclipse with WOLips, it generates a build 
>> folder containing your project's WOA bundle. Maven, however, puts the 
>> generated WOA bundle in the target folder. I'm afraid the application 
>> initialization code keeps looking for the build folder when you run your 
>> tests with Maven.
>> 
>> I'm not sure if there's a better way to solve this problem. Anyway, the code 
>> below may fix it.
>> 
>> // That's the main bundle when running tests from Eclipse
>> Path mainBundlePath = Paths.get("build/your-project.woa");
>> 
>> if (Files.notExists(mainBundlePath)) {
>>  // Maven doesn't create a build directory. The WOA bundle goes into the 
>> target folder instead.
>>  mainBundlePath = Paths.get("target/your-project.woa");
>> }
>> 
>> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
>> ACUnitTestingApplication.class, args);
>> 
>> Cheers,
>> 
>> HP
>> 
>>> On Jan 22, 2020, at 2:09 PM, Aaron Rosenzweig via Webobject

Re: Maven Unit tests with EOF

2020-01-22 Thread Dennis Scheffer via Webobjects-dev
Hi everyone,


> // That's the main bundle when running tests from Eclipse
> Path mainBundlePath = Paths.get("build/your-project.woa");
> 
> if (Files.notExists(mainBundlePath)) {
>  // Maven doesn't create a build directory. The WOA bundle goes into the 
> target folder instead.
>  mainBundlePath = Paths.get("target/your-project.woa");
> }
> 
> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
> ACUnitTestingApplication.class, args);

This may not work under certain circumstances because the surefire plugin 
usually runs in the Maven 'test' phase which is before the 'package' phase. 
Therefore, there may not be a bundle at 'target/your-project.woa' – especially 
if you do a 'mvn clean test'.

The solution is very simple: I would consider tests that depend on a pre-build 
bundle integration tests (which makes sense because most of the time all the 
application's 'units' are integrated in a bundle). And just use the Maven 
failsafe pugin (https://maven.apache.org/surefire/maven-failsafe-plugin/ 
<https://maven.apache.org/surefire/maven-failsafe-plugin/>). It works exactly 
the same as the surefire plugin but runs in the 'verify' phase which is after 
the 'package' phase. So 'mvn clean verify' will clean your target directory, 
create a fresh new bundle and run your tests on your fresh bundle with the 
solution mentioned above.

With regards,
-- 
Dennis


> On 23. Jan 2020, at 02:28, Henrique Prange via Webobjects-dev 
>  wrote:
> 
> Hey Aaron,
> 
> This error rings a bell. I don't recall all the details. It looks like the 
> collectMainProps method is trying to find the Properties file of your project 
> in the wrong place.
> 
> When you build your project in Eclipse with WOLips, it generates a build 
> folder containing your project's WOA bundle. Maven, however, puts the 
> generated WOA bundle in the target folder. I'm afraid the application 
> initialization code keeps looking for the build folder when you run your 
> tests with Maven.
> 
> I'm not sure if there's a better way to solve this problem. Anyway, the code 
> below may fix it.
> 
> // That's the main bundle when running tests from Eclipse
> Path mainBundlePath = Paths.get("build/your-project.woa");
> 
> if (Files.notExists(mainBundlePath)) {
>  // Maven doesn't create a build directory. The WOA bundle goes into the 
> target folder instead.
>  mainBundlePath = Paths.get("target/your-project.woa");
> }
> 
> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
> ACUnitTestingApplication.class, args);
> 
> Cheers,
> 
> HP
> 
>> On Jan 22, 2020, at 2:09 PM, Aaron Rosenzweig via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi,
>> 
>> I’m trying to run maven unit tests with the surefire plugin that make use of 
>> EOF but it’s not working out. 
>> 
>> I can run them in Eclipse with a direct launch as a bundless build and it 
>> works. I make a call in the static initializer of the test case to:
>> ERXExtensions.initApp(ACUnitTestingApplication.class, arguments);
>> 
>> And it thinks it’s a WO app and has access to the model group and all of EOF 
>> and I can do destructive stuff like creating and saving Eos to the DB all 
>> inside a launch from Eclipse.
>> 
>> Where I’m running into trouble is trying to do it with Maven. At the moment 
>> I’m getting a null pointer from maven launch at the following place.
>> 
>> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>> 
>> 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?
>> 
>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319
>>  
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com>
>> 
>> This email sent to hpra...@gmail.com <mailto:hpra...@gmail.com>
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>

Re: Maven Unit tests with EOF

2020-01-22 Thread Aaron Rosenzweig via Webobjects-dev
Markus, moin moin! Yes it’s been a long time :-) Thanks for the tip - I located 
the thread you mentioned where Hugi recommended "JarResourceRequestHandler()” - 
I think he might be onto something with respect to Jars but that particular 
thing is for serving static resources not for NSBundle. I’d be interested to 
know how you patched things, that might shed some additional light. I hear you, 
you’d rather not patch but sometimes you gotta do what you gotta do. 

Hey Paul - Yeah the MockEC is neat and doesn’t even need to go to the DB so 
it’s easier in many ways but I have a mandate to be destructive with the DB so 
I cannot use the MockEC for this unit test. 

Henrique - you are so close I think! I tried your suggestion, it didn’t work 
but your hot. 

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

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

I don’t know how to debug a maven run or if it is even possible… But it is 
actually giving me a "java.lang.NoClassDefFoundError: Could not initialize 
class com.webobjects.foundation.NSBundle” that later morphs into a null pointer 
in ERXApplication$Loader.collectMainProps()

NSBundle itself is abstract… and I’m trying to run a test on a framework - 
maybe that’s just a bad idea and I should move the test to a WOApplication 
project that uses the framework… Not sure. 

The “NSMavenProjectBundle” seems to be for running from within Eclipse too but 
I don’t know much about it. 
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



> On Jan 22, 2020, at 8:28 PM, Henrique Prange  wrote:
> 
> Hey Aaron,
> 
> This error rings a bell. I don't recall all the details. It looks like the 
> collectMainProps method is trying to find the Properties file of your project 
> in the wrong place.
> 
> When you build your project in Eclipse with WOLips, it generates a build 
> folder containing your project's WOA bundle. Maven, however, puts the 
> generated WOA bundle in the target folder. I'm afraid the application 
> initialization code keeps looking for the build folder when you run your 
> tests with Maven.
> 
> I'm not sure if there's a better way to solve this problem. Anyway, the code 
> below may fix it.
> 
> // That's the main bundle when running tests from Eclipse
> Path mainBundlePath = Paths.get("build/your-project.woa");
> 
> if (Files.notExists(mainBundlePath)) {
>  // Maven doesn't create a build directory. The WOA bundle goes into the 
> target folder instead.
>  mainBundlePath = Paths.get("target/your-project.woa");
> }
> 
> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
> ACUnitTestingApplication.class, args);
> 
> Cheers,
> 
> HP
> 
>> On Jan 22, 2020, at 2:09 PM, Aaron Rosenzweig via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi,
>> 
>> I’m trying to run maven unit tests with the surefire plugin that make use of 
>> EOF but it’s not working out. 
>> 
>> I can run them in Eclipse with a direct launch as a bundless build and it 
>> works. I make a call in the static initializer of the test case to:
>> ERXExtensions.initApp(ACUnitTestingApplication.class, arguments);
>> 
>> And it thinks it’s a WO app and has access to the model group and all of EOF 
>> and I can do destructive stuff like creating and saving Eos to the DB all 
>> inside a launch from Eclipse.
>> 
>> Where I’m running into trouble is trying to do it with Maven. At the moment 
>> I’m getting a null pointer from maven launch at the following place.
>> 
>> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>> 
>> 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?
>> 
>> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319 
>> 
>>  
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com>
>> 
>> This email sent to hpra...@gmail.com
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
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 Henrique Prange via Webobjects-dev
Hey Aaron,

This error rings a bell. I don't recall all the details. It looks like the 
collectMainProps method is trying to find the Properties file of your project 
in the wrong place.

When you build your project in Eclipse with WOLips, it generates a build folder 
containing your project's WOA bundle. Maven, however, puts the generated WOA 
bundle in the target folder. I'm afraid the application initialization code 
keeps looking for the build folder when you run your tests with Maven.

I'm not sure if there's a better way to solve this problem. Anyway, the code 
below may fix it.

// That's the main bundle when running tests from Eclipse
Path mainBundlePath = Paths.get("build/your-project.woa");

if (Files.notExists(mainBundlePath)) {
 // Maven doesn't create a build directory. The WOA bundle goes into the target 
folder instead.
 mainBundlePath = Paths.get("target/your-project.woa");
}

ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
ACUnitTestingApplication.class, args);

Cheers,

HP

> On Jan 22, 2020, at 2:09 PM, Aaron Rosenzweig via Webobjects-dev 
>  wrote:
> 
> Hi,
> 
> I’m trying to run maven unit tests with the surefire plugin that make use of 
> EOF but it’s not working out. 
> 
> I can run them in Eclipse with a direct launch as a bundless build and it 
> works. I make a call in the static initializer of the test case to:
> ERXExtensions.initApp(ACUnitTestingApplication.class, arguments);
> 
> And it thinks it’s a WO app and has access to the model group and all of EOF 
> and I can do destructive stuff like creating and saving Eos to the DB all 
> inside a launch from Eclipse.
> 
> Where I’m running into trouble is trying to do it with Maven. At the moment 
> I’m getting a null pointer from maven launch at the following place.
> 
> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
> 
> 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?
> 
> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319  
> 
>   
> 
> ___
> 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/hprange%40gmail.com
> 
> This email sent to hpra...@gmail.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
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


Maven Unit tests with EOF

2020-01-22 Thread Aaron Rosenzweig via Webobjects-dev
Hi,

I’m trying to run maven unit tests with the surefire plugin that make use of 
EOF but it’s not working out. 

I can run them in Eclipse with a direct launch as a bundless build and it 
works. I make a call in the static initializer of the test case to:
ERXExtensions.initApp(ACUnitTestingApplication.class, arguments);

And it thinks it’s a WO app and has access to the model group and all of EOF 
and I can do destructive stuff like creating and saving Eos to the DB all 
inside a launch from Eclipse.

Where I’m running into trouble is trying to do it with Maven. At the moment I’m 
getting a null pointer from maven launch at the following place.

er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)

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?

AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319



 ___
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: EXTERNAL-Re: Maven builds and fetchSpecs

2019-05-21 Thread Kantala, Dmytro R.
I finally found the issue.  Seems like you will only have this issue if you are 
running a Maven build (ie, model in jar file) on windows.

I tracked the problem to this method in NSPathUtilities:  public static String 
stringByAppendingPathComponent(String path, String component)

The method was not recognizing the end path character as a file separator when 
the file path is a jar path.  Therefor it appended the windows file separator 
creating a path such as this:

jar:file:C:/temp/WebObjects_Testing/MRQuartz-1.0.0.woa/Contents/Resources/Java/com/motleyrice/QuartzBusinessLogic/1.0.0/QuartzBusinessLogic-1.0.0.jar!/Resources/Quartz.eomodeld/\MRJobDetail

Notice the "/\" after the .eomodeld where it concatenated the path and 
component.

Here is the modified code that now resolves a proper jar file path on windows.  
For the pathEndsWithFileSeparator variable, it double checks if this a jar path 
and looks for the jar file separator.  Does the same type check when performing 
the concatenate.

public static String stringByAppendingPathComponent(String path, String 
component) {
if (path == null)
return component == null ? "" : component;
if (component == null) {
return path;
}
int pathLength = path.length();
int componentLength = component.length();
if (pathLength == 0)
return component;
if (componentLength == 0) {
return path;
}

boolean pathEndsWithFileSeparator = 
path.endsWith(File.separator) || (path.startsWith("jar:") && 
path.endsWith("/"));
boolean componentStartsWithFileSeparator = 
component.startsWith(File.separator);
if ((pathEndsWithFileSeparator) && 
(componentStartsWithFileSeparator)) {
StringBuffer buffer = new 
StringBuffer(pathLength + componentLength - 1);
buffer.append(path.substring(0, pathLength - 
1));
buffer.append(component);
return new String(buffer);
}
if ((pathEndsWithFileSeparator) || 
(componentStartsWithFileSeparator)) {
StringBuffer buffer = new 
StringBuffer(pathLength + componentLength);
buffer.append(path);
buffer.append(component);
return new String(buffer);
}

StringBuffer buffer = new StringBuffer(pathLength + 
componentLength + 1);
buffer.append(path);
buffer.append(path.startsWith("jar:") ? "/" : File.separator);
buffer.append(component);
return new String(buffer);
}

Thanks,

Dmytro

From: Kantala, Dmytro R.
Sent: Thursday, May 2, 2019 9:40 AM
To: webobjects-dev@lists.apple.com
Subject: RE: EXTERNAL-Re: Maven builds and fetchSpecs

I am getting a null.  Below is the code I used to see what specs are even 
found.  It’s coming up with nothing found.


   EOEntity eoEntity = 
eoModelCMP.entityNamed(_AbEntry.ENTITY_NAME);
   if(null == eoEntity) {
  log.info("Entity NOT found: 
"+_AbEntry.ENTITY_NAME);
   } else {
  log.info("Entity found: 
"+_AbEntry.ENTITY_NAME);
  NSArray fsNames = 
eoEntity.fetchSpecificationNames();
  if((null == fsNames) || fsNames.isEmpty()) {
 log.info("fsNames NOT found, count: 
0");
  } else {
 log.info("fsNames found, count: 
"+fsNames.count());
 for(String name : fsNames) {
log.info("Name found: " + name);
 }
  }
   }

Here is an excerpt from my parent pom to say version of the wolifecycle plugin 
I am using.

   
  ${project.artifactId}
  
 
   
  
org.objectstyle.woproject.maven2
  
maven-wolifecycle-plugin
  2.3-SNAPSHOT
   
   
  org.apache.maven.plugins
  maven-compiler-plugin
  3.7.0
   
   

RE: EXTERNAL-Re: Maven builds and fetchSpecs

2019-05-02 Thread Kantala, Dmytro R.
I am getting a null.  Below is the code I used to see what specs are even 
found.  It’s coming up with nothing found.


   EOEntity eoEntity = 
eoModelCMP.entityNamed(_AbEntry.ENTITY_NAME);
   if(null == eoEntity) {
  log.info("Entity NOT found: 
"+_AbEntry.ENTITY_NAME);
   } else {
  log.info("Entity found: 
"+_AbEntry.ENTITY_NAME);
  NSArray fsNames = 
eoEntity.fetchSpecificationNames();
  if((null == fsNames) || fsNames.isEmpty()) {
 log.info("fsNames NOT found, count: 
0");
  } else {
 log.info("fsNames found, count: 
"+fsNames.count());
 for(String name : fsNames) {
log.info("Name found: " + name);
 }
  }
   }

Here is an excerpt from my parent pom to say version of the wolifecycle plugin 
I am using.

   
  ${project.artifactId}
  
 
   
  
org.objectstyle.woproject.maven2
  
maven-wolifecycle-plugin
  2.3-SNAPSHOT
   
   
  org.apache.maven.plugins
  maven-compiler-plugin
  3.7.0
   
 
  
  
 
   org.objectstyle.woproject.maven2
   maven-wolifecycle-plugin
   true
   
  
false
   
 
 
   org.apache.maven.plugins
   maven-compiler-plugin
   
  1.8
  1.8
   
 
  
   


Dmytro Kantala | Manager Applications Engineering | Motley Rice LLC
28 Bridgeside Blvd. | Mt. Pleasant, SC 29464
o. 843.216.9514 | f. 843.216.9450 | dkant...@motleyrice.com

From: Hugi Thordarson 
Sent: Thursday, May 2, 2019 6:41 AM
To: Kantala, Dmytro R. 
Cc: webobjects-dev@lists.apple.com
Subject: EXTERNAL-Re: Maven builds and fetchSpecs

Hi Dmytro,
someone who uses EOF might probably be better able to help you. But just for 
testing I tried this out: Opened an old project that uses EOF, created a 
FetchSpec in a model in a framework it referenced and was successfully able to 
get to it using EOFetchSpecification.fetchSpecificationNamed( "FetchSpecName", 
"EntityName" ).

So not much help here—I just wanted to confirm that it *should* work. Does the 
framework throw a stack trace at you or do you just get null when attempting to 
resolve the fetchSpec?

Cheers,
- hugi



On 29 Apr 2019, at 17:38, Kantala, Dmytro R. 
mailto:dkant...@motleyrice.com>> wrote:



I finally gotten around to make the switch from Ant to Maven, really had to.  I 
am able to successfully build the project, so far everything runs in eclipse, 
and attempting to run from command line.

The first thing this app does is use a fetch spec to pull in some entities.  
This is failing because it can’t find the fetch spec by name.  I then wrote 
some code that looked over the entities to see if any fetch specs were loaded 
and none were.

It appears to find the plist from the jar, just not the fetch specs.

How did everyone get around this issue?

Environment:
-  Wonder 7.1-SNAPSHOT
-  WebObjects 5.4.3
-  The model is in a framework used by the application.
-  I can open the Maven packaged framework jar and see the .fspec files.
-  Windows 10
-  JDK 1.12 (had same issue with 1.9)

Thanks,

Dmytro

Confidential & Privileged
Unless otherwise indicated or obvious from its nature, the information 
contained in this communication is attorney-client privileged and confidential 
information/work product. This communication is intended for the use of the 
individual or entity named above. If the reader of this communication is not 
the intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this communication is strictly prohibited. If you 
have received this communication in error or are not sure whether it is 
privileged, please immediately notify us by return e-mail and destroy any 
copies--electronic, paper or otherwise--which you may have of this 
co

Re: Maven builds and fetchSpecs

2019-05-02 Thread Hugi Thordarson
Hi Dmytro,
someone who uses EOF might probably be better able to help you. But just for 
testing I tried this out: Opened an old project that uses EOF, created a 
FetchSpec in a model in a framework it referenced and was successfully able to 
get to it using EOFetchSpecification.fetchSpecificationNamed( "FetchSpecName", 
"EntityName" ).

So not much help here—I just wanted to confirm that it *should* work. Does the 
framework throw a stack trace at you or do you just get null when attempting to 
resolve the fetchSpec?

Cheers,
- hugi


> On 29 Apr 2019, at 17:38, Kantala, Dmytro R.  wrote:
> 
> 
> 
> I finally gotten around to make the switch from Ant to Maven, really had to.  
> I am able to successfully build the project, so far everything runs in 
> eclipse, and attempting to run from command line.
>  
> The first thing this app does is use a fetch spec to pull in some entities.  
> This is failing because it can’t find the fetch spec by name.  I then wrote 
> some code that looked over the entities to see if any fetch specs were loaded 
> and none were.
>  
> It appears to find the plist from the jar, just not the fetch specs.
>  
> How did everyone get around this issue?
>  
> Environment:
> -  Wonder 7.1-SNAPSHOT
> -  WebObjects 5.4.3
> -  The model is in a framework used by the application.
> -  I can open the Maven packaged framework jar and see the .fspec 
> files.
> -  Windows 10
> -  JDK 1.12 (had same issue with 1.9)
>  
> Thanks,
>  
> Dmytro
> 
>  
> Confidential & Privileged
> 
> Unless otherwise indicated or obvious from its nature, the information 
> contained in this communication is attorney-client privileged and 
> confidential information/work product. This communication is intended for the 
> use of the individual or entity named above. If the reader of this 
> communication is not the intended recipient, you are hereby notified that any 
> dissemination, distribution or copying of this communication is strictly 
> prohibited. If you have received this communication in error or are not sure 
> whether it is privileged, please immediately notify us by return e-mail and 
> destroy any copies--electronic, paper or otherwise--which you may have of 
> this communication.
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is 
> <https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is>
> 
> This email sent to h...@karlmenn.is <mailto:h...@karlmenn.is>
 ___
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 builds and fetchSpecs

2019-04-29 Thread Kantala, Dmytro R.
I finally gotten around to make the switch from Ant to Maven, really had to.  I 
am able to successfully build the project, so far everything runs in eclipse, 
and attempting to run from command line.

The first thing this app does is use a fetch spec to pull in some entities.  
This is failing because it can't find the fetch spec by name.  I then wrote 
some code that looked over the entities to see if any fetch specs were loaded 
and none were.

It appears to find the plist from the jar, just not the fetch specs.

How did everyone get around this issue?

Environment:

-  Wonder 7.1-SNAPSHOT

-  WebObjects 5.4.3

-  The model is in a framework used by the application.

-  I can open the Maven packaged framework jar and see the .fspec files.

-  Windows 10

-  JDK 1.12 (had same issue with 1.9)

Thanks,

Dmytro


Confidential & Privileged
Unless otherwise indicated or obvious from its nature, the information 
contained in this communication is attorney-client privileged and confidential 
information/work product. This communication is intended for the use of the 
individual or entity named above.  If the reader of this communication is not 
the intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.  If you 
have received this communication in error or are not sure whether it is 
privileged, please immediately notify us by return e-mail and destroy any 
copies--electronic, paper or otherwise--which you may have of this communication

 ___
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 builds and Generate Bundles

2019-03-06 Thread Michael Sharp
Thanks Hugi. I can live with workspace wide "generate bundles".

Sharpy.

> On 6 Mar 2019, at 6:55 pm, Hugi Thordarson  wrote:
> 
> I'm not aware of a way to have Maven builds function without generating 
> bundles :-/.
> 
> I thought this would be a drag on performance (since I remembered bundle-less 
> being a huge performance boost) but it hasn't been, really (although my 
> projects are all Maven, not sure if the Ant ones suffer). Perhaps the advent 
> of SSDs has made bundle generation less of a drag?
> 
> - hugi
> 
> 
>> On 6 Mar 2019, at 04:59, Michael Sharp > <mailto:getsh...@gmail.com>> wrote:
>> 
>> Hi All,
>> 
>> As I continue my Maven journey I now find myself with a workspace consisting 
>> of both Maven and Ant WO projects. All my legacy builds are bundle-less 
>> while my Maven projects require the Generate Bundles WOLips preference 
>> checked. I see the same behaviour in both new and migrated Maven projects.
>> 
>> Is it possible to run Maven WO apps without Generate Bundles checked? 
>> Ideally I’d like to leave my debug/run launch configs for my legacy 
>> applications unchanged.
>> 
>> Thanks
>> 
>> Sharpy.
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is 
>> <https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is>
>> 
>> This email sent to h...@karlmenn.is
> 

 ___
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 builds and Generate Bundles

2019-03-06 Thread Hugi Thordarson
I'm not aware of a way to have Maven builds function without generating bundles 
:-/.

I thought this would be a drag on performance (since I remembered bundle-less 
being a huge performance boost) but it hasn't been, really (although my 
projects are all Maven, not sure if the Ant ones suffer). Perhaps the advent of 
SSDs has made bundle generation less of a drag?

- hugi


> On 6 Mar 2019, at 04:59, Michael Sharp  wrote:
> 
> Hi All,
> 
> As I continue my Maven journey I now find myself with a workspace consisting 
> of both Maven and Ant WO projects. All my legacy builds are bundle-less while 
> my Maven projects require the Generate Bundles WOLips preference checked. I 
> see the same behaviour in both new and migrated Maven projects.
> 
> Is it possible to run Maven WO apps without Generate Bundles checked? Ideally 
> I’d like to leave my debug/run launch configs for my legacy applications 
> unchanged.
> 
> Thanks
> 
> Sharpy.
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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 builds and Generate Bundles

2019-03-05 Thread Michael Sharp
Hi All,

As I continue my Maven journey I now find myself with a workspace consisting of 
both Maven and Ant WO projects. All my legacy builds are bundle-less while my 
Maven projects require the Generate Bundles WOLips preference checked. I see 
the same behaviour in both new and migrated Maven projects.

Is it possible to run Maven WO apps without Generate Bundles checked? Ideally 
I’d like to leave my debug/run launch configs for my legacy applications 
unchanged.

Thanks

Sharpy.
 ___
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: Maven and Wonder

2019-02-05 Thread Hugi Thordarson
Hi Markus.

Regarding (1), you probably need to include JarResourceRequestHandler 
((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…

2) I don't use EOF anymore (using Cayenne) so this is not my area of expertise, 
but I'm guessing you need to check out  some of the methods in ERXExtensions 
for bootstraping the environment for testing. Probably initEOF or initApp, 
depending on your requirements.

- hugi


> On 5 Feb 2019, at 15:53, Markus Stoll, junidas GmbH  
> wrote:
> 
> Hi,
> 
> finally I started mavenizing my Wonder projects (and I am very grateful for 
> all the work done here).
> I observed few things that required patching Wonder and I wonder whether I 
> missed something.
> 
> 1. When I start one of the example application (from maven build) directly, 
> it creates URLs for the ERXStaticResourceRequestHandler that have a file 
> reference like this:
> 
> jar:file:///!/path/to/resource/in/jar
> 
> and ERXStaticResourceRequestHandler was not handling this correctly. I 
> created a patch for this, but I am puzzled why this might be needed as I 
> expected to be one of the last ones to go Maven.
> 
> 
> 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.
> 
> Maybe someone can give me some hints. If I did not miss anything, I will be 
> glad to supply my patches to Wonder, but still I fear they might not be 
> needed at all...
> 
> Regards, Markus
> 
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

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

2019-02-05 Thread Markus Stoll, junidas GmbH
Hi,

finally I started mavenizing my Wonder projects (and I am very grateful for all 
the work done here).
I observed few things that required patching Wonder and I wonder whether I 
missed something.

1. When I start one of the example application (from maven build) directly, it 
creates URLs for the ERXStaticResourceRequestHandler that have a file reference 
like this:

jar:file:///!/path/to/resource/in/jar

and ERXStaticResourceRequestHandler was not handling this correctly. I created 
a patch for this, but I am puzzled why this might be needed as I expected to be 
one of the last ones to go Maven.


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.

Maybe someone can give me some hints. If I did not miss anything, I will be 
glad to supply my patches to Wonder, but still I fear they might not be needed 
at all...

Regards, Markus


 ___
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 build with POM-type dependencies

2019-01-07 Thread Dennis Scheffer
Hello everyone,

As per the Maven best practices found at 
https://books.sonatype.com/mvnref-book/reference/pom-relationships-sect-pom-best-practice.html
 
<https://books.sonatype.com/mvnref-book/reference/pom-relationships-sect-pom-best-practice.html>,
 I am trying to group common dependencies in separate modules of a multi-module 
project. When running the project in Eclipse everything works fine but when I 
deploy the application the startup fails due to bad jar-files. 

I narrowed down the classpath entries causing the application to fail and 
discovered the cause. For some reason the *ClassPath.txt files generated by the 
wolifecycle plugin contain entries even for the pom type dependencies.

So if I have a dependency like this in my pom file


  com.example
  Dependencies
  1.0
  pom


I get an entry in my *ClassPath.txt files like this

APPROOT/Resources/Java/com/example/Dependencies/1.0/Dependencies-1.0.jar

Since the respective modules do not produce jar files due to their packaging 
type being 'pom', the built generates some dummy .jar files which seem to be 
broken. When I try to unzip such files from the command line, I get the error:

End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.


When I remove the faulty entries from the *ClassPath.txt files, the application 
starts successfully. Has anyone encountered this problem? Is there a good way 
to have the build process remove such entries automatically or maybe not 
generate them at all?

Thanks a lot for any suggestions!


With kind regards

-- 
Dennis Scheffer

Phone+49-(0)941-69 84 84-25
den...@selbstdenker.ag

===

SELBSTDENKER AG - No Vision Too Far

Gesandtenstraße 10
93047 Regensburg
Phone  +49-(0)941-69 84 84-0
Fax   +49-(0)941-69 84 84-99

b...@selbstdenker.ag
http://www.selbstdenker.ag

Niederlassung: Regensburg
Handelsregister:  Regensburg HRB 7860
Vorstand/CEO:  Herr Stephan Fürnrohr
Vors. des Aufsichtsrates/Chairman of the board: 
Herr Dipl. Betriebswirt (FH) Richard Sibinger

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

2018-11-01 Thread Hugi Thordarson
Awesome, thanks!


> On 2 Nov 2018, at 00:19, Henrique Prange  wrote:
> 
> Hey guys,
> 
> 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.
> 
> Please, let me know if you have any problems.
> 
> Cheers,
> 
> HP
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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-01 Thread Matthew Ness
Thanks Henrique!

On Fri, Nov 2, 2018, at 11:19 AM, Henrique Prange wrote:
> Hey guys,
> 
> 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.
> 
> Please, let me know if you have any problems.
> 
> Cheers,
> 
> HP
>  ___
> 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/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net


-- 
Matt
http://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


WOCommynity Maven Repository via HTTPS

2018-11-01 Thread Henrique Prange
Hey guys,

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.

Please, let me know if you have any problems.

Cheers,

HP
 ___
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


Obscure issue with Info.plist in application bundles from Maven archetype

2017-08-22 Thread Paul Hoadley
Hello,

This is a post for the archives.

I used the erxapplication-archetype (2.2-SNAPSHOT) to create an application 
project recently. Fast forward to deployment, and I noticed a couple of these 
in the log at startup:

2017-08-21 07:38:22 Rescue[2001] ERROR er.extensions.foundation.ERXProperties  
- Path was already included: 
/opt/WOApplications/Rescue-0.7-SNAPSHOT.woa/Contents/Resources/Properties

With a bit of logging and dumpStack() work in ERXProperties locally, I tracked 
it down: NSBundle.frameworkBundles() is telling the property-loading code that 
‘Rescue’ is a framework bundle, so the first thing it does is ask for ‘Rescue’ 
and loads its “framework properties”. Later, it loads the “application 
properties” for the exact same bundle, and the result is the ERROR log above: 
duplicate property file.

A bit of trial and error (and a visual diff with other projects I had converted 
to Maven by hand) made me try deleting src/main/resources/Info.plist, and the 
error went away. In either case, the Maven build seems to generate 
Contents/Info.plist, but obviously with src/main/resources/Info.plist it also 
copies that into Contents/Resources/Info.plist, and those two files are 
different.

A trap for young players. I’ll add it to the list of Maven-related things we 
should fix.


-- 
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.util.logging and Maven builds

2017-06-27 Thread Chuck Hill
It is all a nightmare which will be resolved by retirement.  :-P

On the bright side, you could be committing PHP all day long.



From: Paul Hoadley <pa...@logicsquad.net>
Date: Tuesday, June 27, 2017 at 4:42 PM
To: Chuck Hill <ch...@gevityinc.com>
Cc: WebObjects Development <webobjects-dev@lists.apple.com>, Hugi Thordarson 
<h...@karlmenn.is>
Subject: Re: java.util.logging and Maven builds

Hi Chuck,

On 28 Jun 2017, at 03:59, Chuck Hill 
<ch...@gevityinc.com<mailto:ch...@gevityinc.com>> wrote:

What you are describing seems to be the intent of this part of Java:

If "java.util.logging.config.class" property is not set, then the 
"java.util.logging.config.file" system property can be used to specify a 
properties file (in java.util.Properties format). The initial logging 
configuration will be read from this file.
If neither of these properties is defined then, as described above, the 
LogManager will read its initial configuration from a properties file 
"lib/logging.properties" in the JRE directory.

I did not see any mention of a default file name or location, other than the 
JRE one.

Thanks for doing my research for me! That would seem to explain everything. 
Well, everything except that Eclipse seems to pick up logging.properties from 
src/main/resources, which must be what set my expectation for how things would 
work in deployment. Unless I imagined even that. I’ve moved on. I’m putting 
this episode behind me…


--
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-27 Thread Chuck Hill
It is all a nightmare which will be resolved by retirement.  :-P

On the

From: Paul Hoadley <pa...@logicsquad.net>
Date: Tuesday, June 27, 2017 at 4:42 PM
To: Chuck Hill <ch...@gevityinc.com>
Cc: WebObjects Development <webobjects-dev@lists.apple.com>, Hugi Thordarson 
<h...@karlmenn.is>
Subject: Re: java.util.logging and Maven builds

Hi Chuck,

On 28 Jun 2017, at 03:59, Chuck Hill 
<ch...@gevityinc.com<mailto:ch...@gevityinc.com>> wrote:

What you are describing seems to be the intent of this part of Java:

If "java.util.logging.config.class" property is not set, then the 
"java.util.logging.config.file" system property can be used to specify a 
properties file (in java.util.Properties format). The initial logging 
configuration will be read from this file.
If neither of these properties is defined then, as described above, the 
LogManager will read its initial configuration from a properties file 
"lib/logging.properties" in the JRE directory.

I did not see any mention of a default file name or location, other than the 
JRE one.

Thanks for doing my research for me! That would seem to explain everything. 
Well, everything except that Eclipse seems to pick up logging.properties from 
src/main/resources, which must be what set my expectation for how things would 
work in deployment. Unless I imagined even that. I’ve moved on. I’m putting 
this episode behind me…


--
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-27 Thread Paul Hoadley
Hi Chuck,

On 28 Jun 2017, at 03:59, Chuck Hill  wrote:

> What you are describing seems to be the intent of this part of Java:
>  
> If "java.util.logging.config.class" property is not set, then the 
> "java.util.logging.config.file" system property can be used to specify a 
> properties file (in java.util.Properties format). The initial logging 
> configuration will be read from this file.
> If neither of these properties is defined then, as described above, the 
> LogManager will read its initial configuration from a properties file 
> "lib/logging.properties" in the JRE directory.
>  
> I did not see any mention of a default file name or location, other than the 
> JRE one.

Thanks for doing my research for me! That would seem to explain everything. 
Well, everything except that Eclipse seems to pick up logging.properties from 
src/main/resources, which must be what set my expectation for how things would 
work in deployment. Unless I imagined even that. I’ve moved on. I’m putting 
this episode behind me…


-- 
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-27 Thread Chuck Hill
Hi Paul,

What you are describing seems to be the intent of this part of Java:

If "java.util.logging.config.class" property is not set, then the 
"java.util.logging.config.file" system property can be used to specify a 
properties file (in java.util.Properties format). The initial logging 
configuration will be read from this file.
If neither of these properties is defined then, as described above, the 
LogManager will read its initial configuration from a properties file 
"lib/logging.properties" in the JRE directory.

I did not see any mention of a default file name or location, other than the 
JRE one.
Chuck

From: Paul Hoadley <pa...@logicsquad.net>
Date: Monday, June 26, 2017 at 8:32 PM
To: WebObjects Development <webobjects-dev@lists.apple.com>
Cc: Hugi Thordarson <h...@karlmenn.is>, Chuck Hill <ch...@gevityinc.com>
Subject: Re: java.util.logging and Maven builds

For the archives:

On 24 Jun 2017, at 10:18 am, Paul Hoadley 
<pa...@logicsquad.net<mailto:pa...@logicsquad.net>> wrote:

If you'd like, here's a workaround: You can force maven to copy the java 
resources (or certain resources). But of course, this is less than optimal.

https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1

Thanks Hugi I’ll check that out.

Unbelievably, that’s not the complete fix. That copies logging.properties into 
the root of the application’s JAR, but java.util.logging _still_ doesn’t 
automatically find it. It allows me to change this startup parameter:

-Djava.util.logging.config.file="Contents/Resources/logging.properties”

to this:

-Djava.util.logging.config.file=logging.properties

at which point I think that's as good as we’re going to get. (I’ve never used 
java.util.logging before, and now I know why!)


--
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-26 Thread Paul Hoadley
For the archives:

On 24 Jun 2017, at 10:18 am, Paul Hoadley <pa...@logicsquad.net> wrote:

>> If you'd like, here's a workaround: You can force maven to copy the java 
>> resources (or certain resources). But of course, this is less than optimal.
>> 
>> https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1 
>> <https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1>
> Thanks Hugi I’ll check that out.

Unbelievably, that’s not the complete fix. That copies logging.properties into 
the root of the application’s JAR, but java.util.logging _still_ doesn’t 
automatically find it. It allows me to change this startup parameter:

-Djava.util.logging.config.file="Contents/Resources/logging.properties”

to this:

-Djava.util.logging.config.file=logging.properties

at which point I think that's as good as we’re going to get. (I’ve never used 
java.util.logging before, and now I know why!)


-- 
Paul Hoadley
http://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: trying to filter Properties breaks Eclipse launch

2017-06-25 Thread Paul Hoadley
On 25 Jun 2017, at 2:41 pm, Paul Hoadley  wrote:

> 
>   
> Resources
> ${basedir}/src/main/resources
> true
>   
> 

Removing Resources gets me what I want: resources in 
src/main/resources filtered with substitutions, and whatever Eclipse is after 
under target/classes for a development-mode launch. The built bundle (from ‘mvn 
package’) seems unaffected either way.

Can someone help me understand this? In other projects I’ve used the exact 
syntax above, albeit with Hugi’s hack discussed elsewhere for 
components-in-folders, like this:


  
Resources
${basedir}/src/main/resources
true
  
  
Resources
${basedir}/src/main/components/Admin
  
  
Resources
${basedir}/src/main/components/Analytics
  
  ...

But you can see there I’m adding Resources, and I can 
tell you it works for development and deployment. Hugi? Henrique? Bueller?


-- 
Paul Hoadley
http://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: trying to filter Properties breaks Eclipse launch

2017-06-25 Thread Chuck Hill
No, it is not meant to be.

From: Paul Hoadley <pa...@logicsquad.net>
Date: Saturday, June 24, 2017 at 11:43 PM
To: Chuck Hill <ch...@gevityinc.com>
Cc: WebObjects Development <webobjects-dev@lists.apple.com>
Subject: Re: Maven: trying to filter Properties breaks Eclipse launch

On 25 Jun 2017, at 2:59 pm, Chuck Hill 
<ch...@gevityinc.com<mailto:ch...@gevityinc.com>> wrote:

Is the pom.xml getting copied into target/?

No, though I don’t think it’s meant to be.


--
Paul Hoadley
http://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: trying to filter Properties breaks Eclipse launch

2017-06-25 Thread Paul Hoadley
On 25 Jun 2017, at 2:59 pm, Chuck Hill  wrote:

> Is the pom.xml getting copied into target/? 

No, though I don’t think it’s meant to be.


-- 
Paul Hoadley
http://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: trying to filter Properties breaks Eclipse launch

2017-06-24 Thread Chuck Hill
Is the pom.xml getting copied into target/?

From: Webobjects-dev 
<webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on behalf of Paul 
Hoadley <pa...@logicsquad.net>
Date: Saturday, June 24, 2017 at 10:11 PM
To: WebObjects Development <webobjects-dev@lists.apple.com>
Subject: Maven: trying to filter Properties breaks Eclipse launch

Hi Maveners,

I seem to have hit yet another Maven resource-related issue. I’ve got a project 
that doesn’t do anything non-standard with src/main/resources. (It’s the same 
project I was talking about a couple of days ago, but I haven’t, for example, 
used Hugi’s 'copy-resources’ hack yet to get logging.properties into the right 
place—I will sort that out later.) All I want to do is filter Properties on 
build so that some Maven-related properties are substituted with their 
build-time values. I’ve just added this to the POM:


  
Resources
${basedir}/src/main/resources
true
  


At which point Eclipse loses its mind on application launch:

2017-06-25 05:00:28 Rescue[63636] DEBUG NSLog  - : Warning - 
Unable to find project at path 
/Users/paulh/Projects/WebObjects/GitRepos/Rescue/target/classes - Ignoring 
project.
[2017-6-25 5:0:28 UTC]  com.webobjects.foundation.NSForwardException 
[java.lang.StringIndexOutOfBoundsException] String index out of range: 
-1:java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at 
com.webobjects._ideservices._IDEProjectWOLips.wolipsProjectFromEclipseProject(_IDEProjectWOLips.java:78)
at 
com.webobjects._ideservices._IDEProjectWOLips.wolipsProjectAtPath(_IDEProjectWOLips.java:87)
at com.webobjects._ideservices._WOProject.ideProjectAtPath(_WOProject.java:110)
at 
com.webobjects.appserver._private.WOProjectBundle._isProjectBundlePath(WOProjectBundle.java:226)

This happens a few times, and the application fails to launch because it can’t 
find any of the components. Indeed, the layout under target/classes does look 
very different based on whether that resource block is present in the POM, but 
I’ve done this in other projects and it works fine. To be clear, the built 
bundle looks fine if I manually run ‘mvn package’, it’s just Eclipse that can’t 
seem to launch the app.

Hugi—you seen this before? Any guesses?


--
Paul Hoadley
http://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: trying to filter Properties breaks Eclipse launch

2017-06-24 Thread Paul Hoadley
Hi Maveners,

I seem to have hit yet another Maven resource-related issue. I’ve got a project 
that doesn’t do anything non-standard with src/main/resources. (It’s the same 
project I was talking about a couple of days ago, but I haven’t, for example, 
used Hugi’s 'copy-resources’ hack yet to get logging.properties into the right 
place—I will sort that out later.) All I want to do is filter Properties on 
build so that some Maven-related properties are substituted with their 
build-time values. I’ve just added this to the POM:


  
Resources
${basedir}/src/main/resources
true
  


At which point Eclipse loses its mind on application launch:

2017-06-25 05:00:28 Rescue[63636] DEBUG NSLog  - : Warning - 
Unable to find project at path 
/Users/paulh/Projects/WebObjects/GitRepos/Rescue/target/classes - Ignoring 
project.
[2017-6-25 5:0:28 UTC]  com.webobjects.foundation.NSForwardException 
[java.lang.StringIndexOutOfBoundsException] String index out of range: 
-1:java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at 
com.webobjects._ideservices._IDEProjectWOLips.wolipsProjectFromEclipseProject(_IDEProjectWOLips.java:78)
at 
com.webobjects._ideservices._IDEProjectWOLips.wolipsProjectAtPath(_IDEProjectWOLips.java:87)
at 
com.webobjects._ideservices._WOProject.ideProjectAtPath(_WOProject.java:110)
at 
com.webobjects.appserver._private.WOProjectBundle._isProjectBundlePath(WOProjectBundle.java:226)

This happens a few times, and the application fails to launch because it can’t 
find any of the components. Indeed, the layout under target/classes does look 
very different based on whether that resource block is present in the POM, but 
I’ve done this in other projects and it works fine. To be clear, the built 
bundle looks fine if I manually run ‘mvn package’, it’s just Eclipse that can’t 
seem to launch the app.

Hugi—you seen this before? Any guesses?


-- 
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-23 Thread Hugi Thordarson
Very true. Ironically, I think my couple of years away from WO, doing 
java-only, probably improved me the most as a WO programmer. When I came back I 
had a vastly different approach to WO—it was no longer the center of my 
development universe, but rather just another framework to be integrated with 
other best-of-breed tools. And using it like that makes it even better.

- hugi



> On 24 Jun 2017, at 01:05, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> As you use more modern Java tools and libraries, it become increasingly 
> important to recognize the differences between “The WO Way” and “The Java 
> Way”.  Trying to force one to be the other is a recipe for pain.  As you have 
> experienced.  :-)   WOLifecyle needs to evolve.
>  
> Chuck
>  
> From: Paul Hoadley <pa...@logicsquad.net>
> Date: Friday, June 23, 2017 at 5:48 PM
> To: Hugi Thordarson <h...@karlmenn.is>
> Cc: Chuck Hill <ch...@gevityinc.com>, WebObjects Development 
> <webobjects-dev@lists.apple.com>
> Subject: Re: java.util.logging and Maven builds
>  
> Hi Hugi,
>  
> On 23 Jun 2017, at 6:17 pm, Hugi Thordarson <h...@karlmenn.is 
> <mailto:h...@karlmenn.is>> wrote:
>  
> I’m stumped—any Maven aficionados want to chime in?
>  
> WOLifecycle modifies the maven standard behaviour by enlisting src/resources 
> for WO bundle resources only (equivalent to /Resources in Fluffy Bunny). 
> However, the Eclipse compiler doesn't know about WOLifecycle's eccentricities 
> and will continue to behaves as if the project is a standard maven project 
> and copy the resources in src/main to target/classes. That's why everything 
> works during development and blows up in production.
>  
> I've mentioned that we should really change this behaviour: Make WOLifecycle 
> handle src/resources like a standard maven java project does and then add a 
> separate folder for WO bundle resources (app-resources, wo-resources or 
> something like that). You can see a bit of discussion in #maven on Slack on 
> January 24th. Unfortunately I haven't had the time to actually *do* anything 
> about that :).
>  
> Ah, yes—I remember the discussion. I also remember not quite having a 
> concrete understanding of the problem or how the solution would help. Now 
> that this has bitten me, I know _exactly_ what you’re talking about!
>  
> If you'd like, here's a workaround: You can force maven to copy the java 
> resources (or certain resources). But of course, this is less than optimal.
>  
> https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1 
> <https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1>
>  
> Thanks Hugi I’ll check that out.
>  
>  
> -- 
> Paul Hoadley
> http://logicsquad.net/ <http://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.util.logging and Maven builds

2017-06-23 Thread Chuck Hill
As you use more modern Java tools and libraries, it become increasingly 
important to recognize the differences between “The WO Way” and “The Java Way”. 
 Trying to force one to be the other is a recipe for pain.  As you have 
experienced.  :-)   WOLifecyle needs to evolve.

Chuck

From: Paul Hoadley <pa...@logicsquad.net>
Date: Friday, June 23, 2017 at 5:48 PM
To: Hugi Thordarson <h...@karlmenn.is>
Cc: Chuck Hill <ch...@gevityinc.com>, WebObjects Development 
<webobjects-dev@lists.apple.com>
Subject: Re: java.util.logging and Maven builds

Hi Hugi,

On 23 Jun 2017, at 6:17 pm, Hugi Thordarson 
<h...@karlmenn.is<mailto:h...@karlmenn.is>> wrote:

I’m stumped—any Maven aficionados want to chime in?

WOLifecycle modifies the maven standard behaviour by enlisting src/resources 
for WO bundle resources only (equivalent to /Resources in Fluffy Bunny). 
However, the Eclipse compiler doesn't know about WOLifecycle's eccentricities 
and will continue to behaves as if the project is a standard maven project and 
copy the resources in src/main to target/classes. That's why everything works 
during development and blows up in production.

I've mentioned that we should really change this behaviour: Make WOLifecycle 
handle src/resources like a standard maven java project does and then add a 
separate folder for WO bundle resources (app-resources, wo-resources or 
something like that). You can see a bit of discussion in #maven on Slack on 
January 24th. Unfortunately I haven't had the time to actually *do* anything 
about that :).

Ah, yes—I remember the discussion. I also remember not quite having a concrete 
understanding of the problem or how the solution would help. Now that this has 
bitten me, I know _exactly_ what you’re talking about!

If you'd like, here's a workaround: You can force maven to copy the java 
resources (or certain resources). But of course, this is less than optimal.

https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1

Thanks Hugi I’ll check that out.


--
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-23 Thread Paul Hoadley
Hi Hugi,

On 23 Jun 2017, at 6:17 pm, Hugi Thordarson <h...@karlmenn.is> wrote:

>> I’m stumped—any Maven aficionados want to chime in?
> 
> 
> WOLifecycle modifies the maven standard behaviour by enlisting src/resources 
> for WO bundle resources only (equivalent to /Resources in Fluffy Bunny). 
> However, the Eclipse compiler doesn't know about WOLifecycle's eccentricities 
> and will continue to behaves as if the project is a standard maven project 
> and copy the resources in src/main to target/classes. That's why everything 
> works during development and blows up in production.
> 
> I've mentioned that we should really change this behaviour: Make WOLifecycle 
> handle src/resources like a standard maven java project does and then add a 
> separate folder for WO bundle resources (app-resources, wo-resources or 
> something like that). You can see a bit of discussion in #maven on Slack on 
> January 24th. Unfortunately I haven't had the time to actually *do* anything 
> about that :).

Ah, yes—I remember the discussion. I also remember not quite having a concrete 
understanding of the problem or how the solution would help. Now that this has 
bitten me, I know _exactly_ what you’re talking about!

> If you'd like, here's a workaround: You can force maven to copy the java 
> resources (or certain resources). But of course, this is less than optimal.
> 
> https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1 
> <https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1>
Thanks Hugi I’ll check that out.


-- 
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-23 Thread Chuck Hill
Yes, that change to WOLifeCycle is The Right Thing To Do.

Chuck

From: Hugi Thordarson <h...@karlmenn.is>
Date: Friday, June 23, 2017 at 1:47 AM
To: Paul Hoadley <pa...@logicsquad.net>
Cc: Chuck Hill <ch...@gevityinc.com>, WebObjects Development 
<webobjects-dev@lists.apple.com>
Subject: Re: java.util.logging and Maven builds

src/main/resources is a path to a Java resource.  Contents/Resources is a path 
to a WebObjects resource.  Java knows Jacques Schmidt about these.  Only WO 
classes know about this.   Your Maven build needs to get this file into the top 
level directory that the class files are under (would normally go into a 
package, top level is the default package).

logging.properties _does_ get copied from src/main/resources into 
target/classes during build. But it _doesn’t_ make it into the app’s JAR (which 
ends up in Contents/Resources/Java), which I suspect is where it needs to be.

I’m stumped—any Maven aficionados want to chime in?

WOLifecycle modifies the maven standard behaviour by enlisting src/resources 
for WO bundle resources only (equivalent to /Resources in Fluffy Bunny). 
However, the Eclipse compiler doesn't know about WOLifecycle's eccentricities 
and will continue to behaves as if the project is a standard maven project and 
copy the resources in src/main to target/classes. That's why everything works 
during development and blows up in production.

I've mentioned that we should really change this behaviour: Make WOLifecycle 
handle src/resources like a standard maven java project does and then add a 
separate folder for WO bundle resources (app-resources, wo-resources or 
something like that). You can see a bit of discussion in #maven on Slack on 
January 24th. Unfortunately I haven't had the time to actually *do* anything 
about that :).

If you'd like, here's a workaround: You can force maven to copy the java 
resources (or certain resources). But of course, this is less than optimal.

https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1

Cheers,
- hugi
 ___
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.util.logging and Maven builds

2017-06-23 Thread Hugi Thordarson
>> src/main/resources is a path to a Java resource.  Contents/Resources is a 
>> path to a WebObjects resource.  Java knows Jacques Schmidt about these.  
>> Only WO classes know about this.   Your Maven build needs to get this file 
>> into the top level directory that the class files are under (would normally 
>> go into a package, top level is the default package).
> 
> logging.properties _does_ get copied from src/main/resources into 
> target/classes during build. But it _doesn’t_ make it into the app’s JAR 
> (which ends up in Contents/Resources/Java), which I suspect is where it needs 
> to be.
> 
> I’m stumped—any Maven aficionados want to chime in?


WOLifecycle modifies the maven standard behaviour by enlisting src/resources 
for WO bundle resources only (equivalent to /Resources in Fluffy Bunny). 
However, the Eclipse compiler doesn't know about WOLifecycle's eccentricities 
and will continue to behaves as if the project is a standard maven project and 
copy the resources in src/main to target/classes. That's why everything works 
during development and blows up in production.

I've mentioned that we should really change this behaviour: Make WOLifecycle 
handle src/resources like a standard maven java project does and then add a 
separate folder for WO bundle resources (app-resources, wo-resources or 
something like that). You can see a bit of discussion in #maven on Slack on 
January 24th. Unfortunately I haven't had the time to actually *do* anything 
about that :).

If you'd like, here's a workaround: You can force maven to copy the java 
resources (or certain resources). But of course, this is less than optimal.

https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1 
<https://gist.github.com/hugith/a2ece8632ab33b994403ff9a04722fc1>

Cheers,
- hugi ___
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.util.logging and Maven builds

2017-06-22 Thread Paul Hoadley
On 23 Jun 2017, at 14:49, Chuck Hill <ch...@gevityinc.com> wrote:

> src/main/resources is a path to a Java resource.  Contents/Resources is a 
> path to a WebObjects resource.  Java knows Jacques Schmidt about these.  Only 
> WO classes know about this.   Your Maven build needs to get this file into 
> the top level directory that the class files are under (would normally go 
> into a package, top level is the default package).

logging.properties _does_ get copied from src/main/resources into 
target/classes during build. But it _doesn’t_ make it into the app’s JAR (which 
ends up in Contents/Resources/Java), which I suspect is where it needs to be.

I’m stumped—any Maven aficionados want to chime in?


-- 
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-22 Thread Chuck Hill
Yes, that also works.

From: Paul Hoadley <pa...@logicsquad.net>
Date: Thursday, June 22, 2017 at 10:32 PM
To: Chuck Hill <ch...@gevityinc.com>
Cc: WebObjects Development <webobjects-dev@lists.apple.com>
Subject: Re: java.util.logging and Maven builds

Hi Chuck,

On 23 Jun 2017, at 14:49, Chuck Hill 
<ch...@gevityinc.com<mailto:ch...@gevityinc.com>> wrote:

src/main/resources is a path to a Java resource.  Contents/Resources is a path 
to a WebObjects resource.  Java knows Jacques Schmidt about these.  Only WO 
classes know about this.   Your Maven build needs to get this file into the top 
level directory that the class files are under (would normally go into a 
package, top level is the default package).

Ah, thanks. I’ll look into that. Meanwhile, a workaround is adding an argument 
in JavaMonitor:

-Djava.util.logging.config.file="Contents/Resources/logging.properties”


--
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-22 Thread Paul Hoadley
Hi Chuck,

On 23 Jun 2017, at 14:49, Chuck Hill <ch...@gevityinc.com> wrote:

> src/main/resources is a path to a Java resource.  Contents/Resources is a 
> path to a WebObjects resource.  Java knows Jacques Schmidt about these.  Only 
> WO classes know about this.   Your Maven build needs to get this file into 
> the top level directory that the class files are under (would normally go 
> into a package, top level is the default package).

Ah, thanks. I’ll look into that. Meanwhile, a workaround is adding an argument 
in JavaMonitor:

-Djava.util.logging.config.file="Contents/Resources/logging.properties”


-- 
Paul Hoadley
http://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.util.logging and Maven builds

2017-06-22 Thread Chuck Hill
Hi Paul,

src/main/resources is a path to a Java resource.  Contents/Resources is a path 
to a WebObjects resource.  Java knows Jacques Schmidt about these.  Only WO 
classes know about this.   Your Maven build needs to get this file into the top 
level directory that the class files are under (would normally go into a 
package, top level is the default package).

Chuck


From: Webobjects-dev 
<webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on behalf of Paul 
Hoadley <pa...@logicsquad.net>
Date: Thursday, June 22, 2017 at 10:07 PM
To: WebObjects Development <webobjects-dev@lists.apple.com>
Subject: java.util.logging and Maven builds

Hello,

This is admittedly rather obscure, but just in case…

I’m using Maven to build an app. It depends on a JAR that uses 
java.util.logging, and it’s also ridiculously chatty—I need to get it under 
control. I’ve got a logging.properties file in src/main/resources that does 
what I want in development. But once deployed, that’s _not_ getting picked up 
on application launch, though it is present in Contents/Resources.

Has anyone hit this before, or would anyone like to guess at a solution?


--
Paul Hoadley
http://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


java.util.logging and Maven builds

2017-06-22 Thread Paul Hoadley
Hello,

This is admittedly rather obscure, but just in case…

I’m using Maven to build an app. It depends on a JAR that uses 
java.util.logging, and it’s also ridiculously chatty—I need to get it under 
control. I’ve got a logging.properties file in src/main/resources that does 
what I want in development. But once deployed, that’s _not_ getting picked up 
on application launch, though it is present in Contents/Resources.

Has anyone hit this before, or would anyone like to guess at a solution?


-- 
Paul Hoadley
http://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: Starting with Maven

2017-05-27 Thread Paul Hoadley
Hi Ted,

On 26 May 2017, at 11:29 pm, Theodore Petrosky  wrote:

> Before I get into my individual problems, is there another document I could 
> read that would help me? Or another tutorial?

I think the short answer is no. There’s certainly nothing that’s going to hold 
your hand step by step. So you may as well just jump right in to your specific 
problems—post them here.


-- 
Paul Hoadley
http://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

Starting with Maven

2017-05-26 Thread Theodore Petrosky
I am biting the bullet and starting with Maven. I am on Sierra, with Eclipse 
Neon.3 and the current Wonder source installed.

I am following the minimalistic tutorial on the Build and Deployment podcast 
from April 2014 WOWODC. There is a second section with Henrique Prange on 
converting projects to Maven.

I created the settings.xml and added the text from:
https://wiki.wocommunity.org/display/WOL/Quick+Start+Maven+Settings+Configuration+Guide
 
<https://wiki.wocommunity.org/display/WOL/Quick+Start+Maven+Settings+Configuration+Guide>

Before I get into my individual problems, is there another document I could 
read that would help me? Or another tutorial?

BTW, a new wonder application (hello world) seems to work beautifully. I start 
getting into problems when I try a D2W app with a framework.

Help please.

Ted
 ___
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: Reading in a framework-level resource in a Maven-built app

2017-04-02 Thread Paul Hoadley
Hi Mark,

On 3 Apr 2017, at 07:30, Morris, Mark <mark.mor...@experian.com> wrote:

> It seems like while running with the project open in Eclipse that it can find 
> the resources in the FrameworkName/Resources folder, so perhaps you could try 
> using 2 copies in your framework project, one in each place?


Good thought. Doesn’t work. (WOResourceManager (and ERXResourceManager) return 
NOT_FOUND URL, null InputStream.)

Where are my Maven buddies? Hugi, Henrique—is this a known issue? Am I doing 
something stupid?


-- 
Paul Hoadley
http://logicsquad.net/


 ___
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: Reading in a framework-level resource in a Maven-built app

2017-04-02 Thread Morris, Mark
Hi Paul,

I’m sorry, I don’t have experience with the building with Maven aspect. It 
seems like while running with the project open in Eclipse that it can find the 
resources in the FrameworkName/Resources folder, so perhaps you could try using 
2 copies in your framework project, one in each place? It seems like the best 
solution is if Maven knew to get the resources out of the spot where they 
traditionally live. (As I recall, back in ProjectBuilder they were in 
FrameworkName/Resources as well.)

Good luck!
Mark


On Apr 2, 2017, at 2:58 AM, Paul Hoadley 
<pa...@logicsquad.net<mailto:pa...@logicsquad.net>> wrote:

Hi Mark,

On 2 Apr 2017, at 4:36 pm, Morris, Mark 
<mark.mor...@experian.com<mailto:mark.mor...@experian.com>> wrote:

I’m not sure if I’m missing the point of your question,

Sorry, it was a little bit unclear.

but WOResourceManager will find files in frameworks just fine if they’re in the 
Resources folder. Note that this is not under any XXX.woa/Contents/Resources 
path as mentioned in your email, you just put the files in the 
FrameworkName/Resources folder

I’m building with Maven, so I’ve put the resource in 
FrameworkName/src/main/resources...

and they end up under FrameworkName.framework/Resources within the jar.

Yep, confirmed.

You do have to supply the framework name in the call to WOResourceManager, such 
as:

InputStream is = 
WOApplication.application().resourceManager().inputStreamForResourceNamed( 
“foo.txt", “FrameworkName", aLanguagesList );

This where I might have rushed the question a bit. What I am after is code that 
works both when the framework is open in Eclipse, and when it’s not and it’s 
instead referencing the built JAR under ~/.m2/repository (or wherever). So if I 
close FrameworkName.framework in Eclipse, your code above does work. If I open 
it again, the InputStream returned is null. But what _does_ then work is:

URL url = getClass().getClassLoader().getResource(“foo.txt")

To be completely clear this time:

1. If framework project is closed in Eclipse (and application is hence using 
framework under ~/.m2/repository), 
WOResourceManager.inputStreamForResourceNamed() works fine.

2. If framework project is open, 
WOResourceManager.inputStreamForResourceNamed() returns null, but 
getClass().getClassLoader().getResource(“foo.txt") does return a URL that can 
be used.

So, to load a resource from a framework, I’ve got to try both methods. Is this 
expected behaviour for a Maven build, or am I doing something wrong?


--
Paul Hoadley
http://logicsquad.net/<https://urldefense.proofpoint.com/v2/url?u=http-3A__logicsquad.net_=DwMFaQ=BNNF-YNv0CLLslhP2Bcx5Q=R0ZqsewJs3eSJk7vLCqZv0r5kJlLXQLnGTeg9t8MlqA=XNYhJDwxsYlHPZAZ-2y60jwwN_KFjyr24irVn_ai14o=XafBhVABXRXPh656uFywRM30b9MHAzvL_5jFgL-m6ew=>
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: Reading in a framework-level resource in a Maven-built app

2017-04-02 Thread Paul Hoadley
Hi Mark,

On 2 Apr 2017, at 4:36 pm, Morris, Mark <mark.mor...@experian.com> wrote:

> I’m not sure if I’m missing the point of your question,

Sorry, it was a little bit unclear.

> but WOResourceManager will find files in frameworks just fine if they’re in 
> the Resources folder. Note that this is not under any 
> XXX.woa/Contents/Resources path as mentioned in your email, you just put the 
> files in the FrameworkName/Resources folder

I’m building with Maven, so I’ve put the resource in 
FrameworkName/src/main/resources...

> and they end up under FrameworkName.framework/Resources within the jar.

Yep, confirmed.

> You do have to supply the framework name in the call to WOResourceManager, 
> such as:
> 
> InputStream is = 
> WOApplication.application().resourceManager().inputStreamForResourceNamed( 
> “foo.txt", “FrameworkName", aLanguagesList );

This where I might have rushed the question a bit. What I am after is code that 
works both when the framework is open in Eclipse, and when it’s not and it’s 
instead referencing the built JAR under ~/.m2/repository (or wherever). So if I 
close FrameworkName.framework in Eclipse, your code above does work. If I open 
it again, the InputStream returned is null. But what _does_ then work is:

URL url = getClass().getClassLoader().getResource(“foo.txt")

To be completely clear this time:

1. If framework project is closed in Eclipse (and application is hence using 
framework under ~/.m2/repository), 
WOResourceManager.inputStreamForResourceNamed() works fine.

2. If framework project is open, 
WOResourceManager.inputStreamForResourceNamed() returns null, but 
getClass().getClassLoader().getResource(“foo.txt") does return a URL that can 
be used.

So, to load a resource from a framework, I’ve got to try both methods. Is this 
expected behaviour for a Maven build, or am I doing something wrong?


-- 
Paul Hoadley
http://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: Reading in a framework-level resource in a Maven-built app

2017-04-02 Thread Morris, Mark
Hi Paul,

I’m not sure if I’m missing the point of your question, but WOResourceManager 
will find files in frameworks just fine if they’re in the Resources folder. 
Note that this is not under any XXX.woa/Contents/Resources path as mentioned in 
your email, you just put the files in the FrameworkName/Resources folder and 
they end up under FrameworkName.framework/Resources within the jar. You do have 
to supply the framework name in the call to WOResourceManager, such as:

InputStream is = 
WOApplication.application().resourceManager().inputStreamForResourceNamed( 
“foo.txt", “FrameworkName", aLanguagesList );

This is of course different from WebServerResources, which end up under the web 
server document root.

Hope this helps!
Mark

> On Apr 1, 2017, at 11:45 PM, Paul Hoadley  wrote:
> 
> Hello,
> 
> I can see reference to this issue a couple of times in the list archives, but 
> I’m not seeing the definitive solution. Could we quickly look at this again?
> 
> I have a file ‘foo.txt’ in Bar.framework at ‘src/main/resources/foo.txt’. In 
> an application Baz dependent on Bar.framework, I want to load foo.txt, say as 
> an InputStream. To be clear:
> 
> * Bar.jar is present at the appropriate place under 
> Baz.woa/Contents/Resources/Java/.
> * Bar.jar does contain foo.txt under its Resources folder.
> * foo.txt is not present in Baz.woa/Contents/Resources.
> 
> All of this seems to be what I’d expect. Further, running out of Eclipse, 
> something as simple as:
> 
> getClass().getClassLoader().getResource(BLACKLIST_FILENAME).toURI()
> 
> will get a URI for the file, because it can be found on the local filesystem. 
> But if I close that project, forcing it to run using the framework JAR, 
> neither that approach, nor WOResourceManager.inputStreamForResourceNamed() 
> can find the file.
> 
> Anyway, rather than trying to debug any of the specifics of what I describe 
> above, let me just ask a simple question: how can I load a framework resource 
> at runtime in deployment given that the resource will be buried deep in a 
> framework JAR?
> 
> 
> -- 
> Paul Hoadley
> http://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/mark.morris%40experian.com
> 
> This email sent to mark.mor...@experian.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reading in a framework-level resource in a Maven-built app

2017-04-01 Thread Paul Hoadley
Hello,

I can see reference to this issue a couple of times in the list archives, but 
I’m not seeing the definitive solution. Could we quickly look at this again?

I have a file ‘foo.txt’ in Bar.framework at ‘src/main/resources/foo.txt’. In an 
application Baz dependent on Bar.framework, I want to load foo.txt, say as an 
InputStream. To be clear:

* Bar.jar is present at the appropriate place under 
Baz.woa/Contents/Resources/Java/.
* Bar.jar does contain foo.txt under its Resources folder.
* foo.txt is not present in Baz.woa/Contents/Resources.

All of this seems to be what I’d expect. Further, running out of Eclipse, 
something as simple as:

getClass().getClassLoader().getResource(BLACKLIST_FILENAME).toURI()

will get a URI for the file, because it can be found on the local filesystem. 
But if I close that project, forcing it to run using the framework JAR, neither 
that approach, nor WOResourceManager.inputStreamForResourceNamed() can find the 
file.

Anyway, rather than trying to debug any of the specifics of what I describe 
above, let me just ask a simple question: how can I load a framework resource 
at runtime in deployment given that the resource will be buried deep in a 
framework JAR?


-- 
Paul Hoadley
http://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 + WOnder 7

2017-01-06 Thread Mark Gowdy
Hi, 

Nearly there.

I have my frameworks converted to use Maven (dependencies are nice btw), and 
have got my first app to run in Development.
I deploy it (for now), using [Run As : Maven Install], and copy the resulting 
tar.gz file to the server.

When I run it on the server, the app tries to start up, goes 100% CPU for about 
4 minutes, then finally starts.
To be fair, it is on a Raspberry Pi, but the old (pre-maven) ant build didn’t 
have this problem.

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)

Application log:
..etc..
  
/opt/mg/apps/Switches/Switches-V3.woa/Contents/Resources/Java/com/webobjects/JavaWebServicesSupport/5.4.3/JavaWebServicesSupport-5.4.3.jar
  
/opt/mg/apps/Switches/Switches-V3.woa/Contents/Resources/Java/com/webobjects/JavaXML/5.4.3/JavaXML-5.4.3.jar
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
WILL ADD SHUTDOWNHOOK
Jan 06 13:56:37 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
configuration with the current system properties.
Jan 06 13:56:37 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
configuration with the current system properties.
<<== LONG WAIT HERE ==>>
Jan 06 14:00:10 N/A[N/A] WARN  NSLog  - Couldn't load properties file: 
/home/pi/WebObjects.properties at path: /home/pi
Jan 06 14:00:10 N/A[N/A] DEBUG NSLog  - WOMaxIOBufferSize=8196
..etc..

Any thoughts on what is causing it to go mental?

Mark

> On 5 Jan 2017, at 09:20, Mark Gowdy <m...@gowdy.co.uk> wrote:
> 
> Paul, 
> 
> I was going to show you the error.
> (which was something like ‘wonder.ajax : Ajax.jar not found’)
> 
> but when I tried to reproduce it, it only went and worked !! (rather 
> suspiciously)
> 
> Although I am not complaining.
> 
> Thanks for you help,
> 
> Mark
> 
>> On 4 Jan 2017, at 22:50, Paul Hoadley <pa...@logicsquad.net 
>> <mailto:pa...@logicsquad.net>> wrote:
>> 
>> Hi Mark,
>> 
>> On 5 Jan 2017, at 3:34 am, Mark Gowdy <m...@gowdy.co.uk 
>> <mailto:m...@gowdy.co.uk>> wrote:
>> 
>>> My issue now is trying to get Ajax (from the Wonder Frameworks) into the 
>>> mix.
>>> 
>>> I have tried various entries in the pom file (such as)
>>> --
>>> 
>>> wonder.ajax
>>> Ajax
>>> ${wonder.version}
>>> 
>>> --
>>> But no success yet.
>>> 
>>> Any ideas?
>> 
>> That should certainly do it, as long as you’re declaring wonder.version 
>> somewhere, either in that project’s POM or some parent of it. What’s the 
>> error you’re seeing?
>> 
>> 
>> -- 
>> Paul Hoadley
>> http://logicsquad.net/ <http://logicsquad.net/>
>> https://www.linkedin.com/company/logic-squad/ 
>> <https://www.linkedin.com/company/logic-squad/>
>> 
>> 
>> 
> 
> _
> Mark Gowdy
> Gowdy Associates Ltd
> M: +44 7808 400 941
> Skype: markgowdy
> 
> 
> 
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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 + WOnder 7

2017-01-05 Thread Mark Gowdy
Paul, 

I was going to show you the error.
(which was something like ‘wonder.ajax : Ajax.jar not found’)

but when I tried to reproduce it, it only went and worked !! (rather 
suspiciously)

Although I am not complaining.

Thanks for you help,

Mark

> On 4 Jan 2017, at 22:50, Paul Hoadley  wrote:
> 
> Hi Mark,
> 
> On 5 Jan 2017, at 3:34 am, Mark Gowdy  > wrote:
> 
>> My issue now is trying to get Ajax (from the Wonder Frameworks) into the mix.
>> 
>> I have tried various entries in the pom file (such as)
>> --
>> 
>>  wonder.ajax
>>  Ajax
>>  ${wonder.version}
>> 
>> --
>> But no success yet.
>> 
>> Any ideas?
> 
> That should certainly do it, as long as you’re declaring wonder.version 
> somewhere, either in that project’s POM or some parent of it. What’s the 
> error you’re seeing?
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/ 
> https://www.linkedin.com/company/logic-squad/
> 
> 
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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 + WOnder 7

2017-01-04 Thread Paul Hoadley
Hi Mark,

On 5 Jan 2017, at 3:34 am, Mark Gowdy  wrote:

> My issue now is trying to get Ajax (from the Wonder Frameworks) into the mix.
> 
> I have tried various entries in the pom file (such as)
> --
> 
>   wonder.ajax
>   Ajax
>   ${wonder.version}
> 
> --
> But no success yet.
> 
> Any ideas?

That should certainly do it, as long as you’re declaring wonder.version 
somewhere, either in that project’s POM or some parent of it. What’s the error 
you’re seeing?


-- 
Paul Hoadley
http://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 + WOnder 7

2017-01-04 Thread Paul Hoadley
Hi Mark,

On 4 Jan 2017, at 11:04 pm, Mark Gowdy  wrote:

> Can anyone confirm the Wonder Version that I should specify in the 
> dependencies?
> Is it always: 7.0.0-SNAPSHOT

Short answer is yes, but the longer answer is that it’s up to you. 
7.0.0-SNAPSHOT is where the tip of the master branch is at, so it’s like 
tracking HEAD—you’ll always have the latest changes. Ideally there would be 
more frequent stable releases, and you could do something like specify a 
release version. But if you want to stay current, 7.0.0-SNAPSHOT will do it.

> Or are there updated versions.  If so, how do I find the latest version 
> number?

You can browse all the releases here:

http://maven.wocommunity.org/content/groups/public/wonder/ 



-- 
Paul Hoadley
http://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 + WOnder 7

2017-01-04 Thread Mark Gowdy

> On 4 Jan 2017, at 13:49, G Brown <gsbr...@umich.edu> wrote:
> 
> Mark,
> 
> I see on github many tags for different versions, but I think the 
> 7.00-SNAPSHOT is the ever changing shifting current wonder version.

Yea, I think so too.

My issue now is trying to get Ajax (from the Wonder Frameworks) into the mix.

I have tried various entries in the pom file (such as)
--

wonder.ajax
Ajax
${wonder.version}

--
But no success yet.

Any ideas?

Mark

> 
> You may also want to  create a wonder parent
>   
>wonder
>generic-woparent
>7.00-SNAPSHOT
> ./generic-woparent
>  
> As that will save you much typing, and you will have the exact jar versions, 
> plugins and their versions, etc. that was used to create wonder 7, or any 
> version you like.
> 
> https://github.com/gitgb/splitpom <https://github.com/gitgb/splitpom>
> 
> I will put in a pull request so the wonder pom.xml is split into a reusable 
> parent, and the non-reusable ….soon….

I am only starting to play with Maven, I am not anywhere near ‘Ninja’ status 
yet.
This looks like sorcery to me !

> 
> G Brown
> gsbr...@umich.edu <mailto:gsbr...@umich.edu>
> 
> 
> 
> 
> On Jan 4, 2017, at 7:34 AM, Mark Gowdy <m...@gowdy.co.uk 
> <mailto:m...@gowdy.co.uk>> wrote:
> 
>> Hi, 
>> 
>> Finally moving everything over to Maven and Wonder 7
>> 
>> Can anyone confirm the Wonder Version that I should specify in the 
>> dependencies?
>> Is it always: 7.0.0-SNAPSHOT
>> 
>> Or are there updated versions.  If so, how do I find the latest version 
>> number?
>> 
>> Thanks,
>> 
>> Mark
>> _
>> Mark Gowdy
>> Gowdy Associates Ltd
>> M: +44 7808 400 941
>> Skype: markgowdy
>> 
>> 
>> 
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/gsbrown%40umich.edu 
>> <https://lists.apple.com/mailman/options/webobjects-dev/gsbrown%40umich.edu>
>> 
>> This email sent to gsbr...@umich.edu
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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 + WOnder 7

2017-01-04 Thread G Brown
Mark,

I see on github many tags for different versions, but I think the 7.00-SNAPSHOT 
is the ever changing shifting current wonder version.

You may also want to  create a wonder parent

   wonder
   generic-woparent
   7.00-SNAPSHOT
./generic-woparent
 
As that will save you much typing, and you will have the exact jar versions, 
plugins and their versions, etc. that was used to create wonder 7, or any 
version you like.

https://github.com/gitgb/splitpom

I will put in a pull request so the wonder pom.xml is split into a reusable 
parent, and the non-reusable ….soon….

G Brown
gsbr...@umich.edu




On Jan 4, 2017, at 7:34 AM, Mark Gowdy <m...@gowdy.co.uk> wrote:

> Hi, 
> 
> Finally moving everything over to Maven and Wonder 7
> 
> Can anyone confirm the Wonder Version that I should specify in the 
> dependencies?
> Is it always: 7.0.0-SNAPSHOT
> 
> Or are there updated versions.  If so, how do I find the latest version 
> number?
> 
> Thanks,
> 
> Mark
> _
> Mark Gowdy
> Gowdy Associates Ltd
> M: +44 7808 400 941
> Skype: markgowdy
> 
> 
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/gsbrown%40umich.edu
> 
> This email sent to gsbr...@umich.edu

 ___
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 + WOnder 7

2017-01-04 Thread Mark Gowdy
Hi, 

Finally moving everything over to Maven and Wonder 7

Can anyone confirm the Wonder Version that I should specify in the dependencies?
Is it always: 7.0.0-SNAPSHOT

Or are there updated versions.  If so, how do I find the latest version number?

Thanks,

Mark
_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy





 ___
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 eclipse #2 - problem with missing bundle? null mainBundleName()

2016-10-16 Thread Paul Hoadley
On 17 Oct 2016, at 7:16 AM, Mark Wardle  wrote:

> Paul, you’re a better man than me! I really will do this now you’ve proven it 
> is possible….  probably next week… maybe!

Getting me through the migration process was 95% Hugi, though I will take 
credit for this particular find. Assuming it works for you. Otherwise I will 
disown it.


-- 
Paul Hoadley
http://logicsquad.net/



 ___
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 eclipse #2 - problem with missing bundle? null mainBundleName()

2016-10-16 Thread Mark Wardle
Paul, you’re a better man than me! I really will do this now you’ve proven it 
is possible….  probably next week… maybe!

Mark

> On 16 Oct 2016, at 01:05, Paul Hoadley  wrote:
> 
> Hi Mark,
> 
> On 6 Sep 2016, at 10:04 PM, Mark Wardle  > wrote:
> 
>> It isn’t quite right from eclipse. I can run a newly created application 
>> from within eclipse, but when I try to run a migrated application, I get 
>> this error:
>> 
>>  java.lang.ExceptionInInitializerError
>>  at 
>> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
>>  at 
>> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
>>  at 
>> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
>>  at com.webobjects.appserver.WOApplication.(WOApplication.java:779)
>>  at 
>> er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:30)
>>  at 
>> er.extensions.appserver.ERXApplication.(ERXApplication.java:1135)
>>  at com.eldrix.news.app.Application.(Application.java:66)
>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>  at 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>>  at 
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>  at java.lang.Class.newInstance(Class.java:438)
>>  at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>>  at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
>>  at com.eldrix.news.app.Application.main(Application.java:63)
>> Caused by: java.lang.NullPointerException
>>  at 
>> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>>  at 
>> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:682)
>>  at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  at java.lang.reflect.Method.invoke(Method.java:483)
>>  at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
>>  at 
>> com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:2546)
>>  at 
>> com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java:735)
>>  at com.webobjects.foundation.NSBundle.(NSBundle.java:345)
>>  ... 15 more
>> 
>> java.lang.NullPointerException
>>  at 
>> er.extensions.appserver.ERXShutdownHook$1.run(ERXShutdownHook.java:64)
> 
> I just hit this exact issue. You know what it turned out to be? Stale 
> patternsets under woproject—I was migrating a Fluffy Bunny project, and 
> forgot that step. Fixed the patternsets, fixed the NPE.
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/ 
> 
> 
> 

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