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  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: new setup with postgresql

2017-04-02 Thread Paul Hoadley
On 3 Apr 2017, at 07:59, Theodore Petrosky  wrote:

> Just to keep us updated with info

Thanks Ted.


-- 
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: wiki down??

2017-04-02 Thread Ricardo Parada
What link do you use to access it? Maybe my bookmark is outdated. 

Thanks

Sent from my iPhone

> On Apr 2, 2017, at 7:18 PM, Theodore Petrosky  wrote:
> 
> I see it as up and beautiful!!!
> 
> 
> 
> 
>> On Apr 2, 2017, at 7:15 PM, Ricardo Parada  wrote:
>> 
>> The Wonder javadoc is still down right?
>> 
>> Sent from my iPhone
>> 
>>> On Apr 2, 2017, at 2:17 PM, Pascal Robert  wrote:
>>> 
>>> It’s up now.
>>> 
 Le 2 avr. 2017 à 05:45, Musall, Maik  a écrit :
 
 Hi,
 
 the entire server is down. I can't even ssh into it. Someone with access 
 to the hypervisor needs to take care of that.
 
 Maik
 
> Am 02.04.2017 um 09:48 schrieb Paul Hoadley :
> 
> Hi Maik,
> 
>> On 31 Mar 2017, at 8:42 am, Musall, Maik  wrote:
>> 
>> It's back up again now.
> 
> Has it fallen over again?
> 
> 
> -- 
> 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/probert%40macti.ca
 
 This email sent to prob...@macti.ca
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
>>> 
>>> This email sent to rpar...@mac.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/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


Re: wiki down??

2017-04-02 Thread Ricardo Parada
The Wonder javadoc is still down right?

Sent from my iPhone

> On Apr 2, 2017, at 2:17 PM, Pascal Robert  wrote:
> 
> It’s up now.
> 
>> Le 2 avr. 2017 à 05:45, Musall, Maik  a écrit :
>> 
>> Hi,
>> 
>> the entire server is down. I can't even ssh into it. Someone with access to 
>> the hypervisor needs to take care of that.
>> 
>> Maik
>> 
>>> Am 02.04.2017 um 09:48 schrieb Paul Hoadley :
>>> 
>>> Hi Maik,
>>> 
 On 31 Mar 2017, at 8:42 am, Musall, Maik  wrote:
 
 It's back up again now.
>>> 
>>> Has it fallen over again?
>>> 
>>> 
>>> -- 
>>> 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/probert%40macti.ca
>> 
>> This email sent to prob...@macti.ca
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.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

new setup with postgresql

2017-04-02 Thread Theodore Petrosky
So I am in the process of setting up a new machine and I decided to update my 
Postgresql version an check up the postgresql jdbc site. There is a new version 
with a completely new numbering system. Personally I think they are adding a 
little sanity to the numbering. Here is a link to the new driver and the FAQ

https://jdbc.postgresql.org/documentation/faq.html 


https://jdbc.postgresql.org/download.html 


Feb 20 2017

PostgreSQL JDBC Driver 42.0.0 Released!
Just to keep us updated with info
 ___
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 
> wrote:

Hi Mark,

On 2 Apr 2017, at 4:36 pm, Morris, Mark 
> 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: wiki down??

2017-04-02 Thread Pascal Robert
It’s up now.

> Le 2 avr. 2017 à 05:45, Musall, Maik  a écrit :
> 
> Hi,
> 
> the entire server is down. I can't even ssh into it. Someone with access to 
> the hypervisor needs to take care of that.
> 
> Maik
> 
>> Am 02.04.2017 um 09:48 schrieb Paul Hoadley :
>> 
>> Hi Maik,
>> 
>> On 31 Mar 2017, at 8:42 am, Musall, Maik  wrote:
>> 
>>> It's back up again now.
>> 
>> Has it fallen over again?
>> 
>> 
>> -- 
>> 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/probert%40macti.ca
> 
> This email sent to prob...@macti.ca


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

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

Re: wiki down??

2017-04-02 Thread Musall, Maik
Hi,

the entire server is down. I can't even ssh into it. Someone with access to the 
hypervisor needs to take care of that.

Maik

> Am 02.04.2017 um 09:48 schrieb Paul Hoadley :
> 
> Hi Maik,
> 
> On 31 Mar 2017, at 8:42 am, Musall, Maik  wrote:
> 
>> It's back up again now.
> 
> Has it fallen over again?
> 
> 
> -- 
> 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 Paul Hoadley
Hi Mark,

On 2 Apr 2017, at 4:36 pm, Morris, Mark  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: wiki down??

2017-04-02 Thread Paul Hoadley
Hi Maik,

On 31 Mar 2017, at 8:42 am, Musall, Maik  wrote:

> It's back up again now.

Has it fallen over again?


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