Re: Build Path issue - unbound Wonder frameworks

2015-11-05 Thread John Huss
Create a new eclipse workspace

On Thu, Nov 5, 2015 at 7:06 AM Calven Eggert  wrote:

> I've just completed going thru this entire process of setting up Eclipse
> Mars,  java 1.8 and Wonder in El Capitan.  Which OS are you using?  Can you
> share the error messages?
>
> Calven
>
> ---
> I’m warming up my WO development environment after a year or so. I still
> have a working Eclipse 3.8/Java 1.6 installation.
> I’m using Mars release of Eclipse
> WOLips 4.4
> Wonder 7 frameworks are installed <
> https://wiki.wocommunity.org/display/documentation/Binary+Frameworks+Installation+and+Upgrade?src=search>
> in /Library/Frameworks
>
> Java 1.8
>
> It seems I can build & run WebObjects applications but not Wonder
> applications. I created the wo apps using the templates.
>
> I haven’t see the unbound issue before in the Build Path window:
>
>
>
> I’m missing something, but I don’t see it (Ich muß Tomaten of the Augen
> haben). Any ideas?
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: WOOpenURL

2015-10-02 Thread John Huss
Just run this in Terminal:

ln -s /usr/bin/open /System/Library/WebObjects/Executables/WOOpenURL

On Thu, Oct 1, 2015 at 11:41 AM Gino Pacitti  wrote:

> Hi Group
>
> Just updated to El Capitan and WOAutoOpenInBrowser not working… my console
> 'Unable to locate WOOpenURL on your computer, AutoOpen launch will not work’
>
> Anyone else notice this?
>
> This is running in Eclipse
>
> G
>
>
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: WO Maven getting started

2015-09-19 Thread John Huss
On Friday, September 18, 2015, Ramsey Gurley 
wrote:

> So the reason it doesn’t find the main component: It looks like I’m
> getting a NSFluffyBunnyProjectBundle instead of NSMavenProjectBundle.
>
> NSStandardProjectBundle$Factory expects to find
>
> "org.maven.ide.eclipse.maven2Nature".equals(nature)
>
> in the .project natures but my .project has
> org.eclipse.m2e.core.maven2Nature instead. The last nature on the list is
> org.objectstyle.wolips.incrementalapplicationnature, which matches
>
> nature.startsWith("org.objectstyle.wolips.”)
>
> So I get a fluffy bunny instead. I modified my .project and added
>
>
> org.sonar.ide.eclipse.core.sonarNature 
> org.eclipse.m2e.core.maven2Nature
> *org.maven.ide.eclipse.maven2Nature*
>
> org.eclipse.jdt.core.javanature 
> org.objectstyle.wolips.incrementalapplicationnature
>
> And now the main component will load. Is this an issue with the .project
> file in the archetype, or is this something that should instead be updated
> in the NSStandardProjectBundle$Factory class? It seems if it looked for
> nature.contains(“maven”) that would be sufficient.
>
> Also, is there some reason there’s no source for ERWebObjects and
> ERFoundation in the wonder repo? This would have been a lot easier to debug
> with that.
>

These were closed source contributions from Apple.  Pretty sketchy, but it
is what it is.


>
>
> On Sep 18, 2015, at 12:40 PM, Hugi Thordarson  > wrote:
>
> Did you find out how to solve the problem of the application not looking
> for templates at the correct path?
>
>
> Not yet. I think I need to remove all the wonder stuff from my workspace
> and import it again as Maven projects. Right now they don’t have the little
> M beside them and I suspect that’s part of the problem.
>
>
> OK. I’m going to try to work this out on this side as well.
>
>
> Thanks, btw, for starting the discussion and thanks to Henrique for the
> work on the software. This is proving immensely useful and I swear, I’m
> going to complete my migration to Maven this time!
>
>
> Same here. If any maven fans are wondering what finally put a fire under
> me, I want to use dependency-check-maven and sonarqube. I realize neither
> of these things strictly require maven, but it seems they are both much
> easier to use in conjunction with maven.
>
>
> For me (apart for similar reasons as yours) it’s that as a java developer,
> my world depends (bad pun fully intended) on having managed and versioned
> dependencies. I actually write a lot of code that’s not only intended for
> consumption within a WO universe. I’ve moved my most used WO projects to
> Ivy for dependency management (as an addition to Ant) but that feels kind
> of hacky. Probably because it’s a hack.
>
> The entire modern world is versioned and dependency managed and the old
> guys can’t just laugh maven off any more as “too complicated". This is the
> *the* part about WO that doesn’t feel right and makes me feel ashamed to
> introduce it to new developers.
>
> For this project, I’m more than willing to put in time for creating
> documentation. Wish I could also contribute to the development part, but
> I’m pretty thin on knowledge for both Eclipse and Maven plugin
> development. But if there’s development workings that needs’a’done-ings,
> I’m pretty willing to learn, so do tell.
>
> - 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: ERDistribution

2015-09-15 Thread John Huss
It's intended for JavaClient apps that aren't DirectToJC.  It is mostly to
add logging and enable easier debugging. The deserialization fails randomly
in my experience, and I needed the logging to see that.   EODistribution
COULD be used without Swing to enable remote EOF operations between servers
(or in Android!), which is kind of cool.  However, I don't recommend using
EODistribution or JavaClient -- there are bugs in it and they will never be
fixed.

Cayenne has a similar technology that works better, but it also has some
issues, mostly just because of a small user base.  The big advantage
Cayenne has is that any bugs you find can actually be fixed.

John

On Tue, Sep 15, 2015 at 6:42 AM John Pollard  wrote:

> Can anyone say what ERDistribution adds and whether it should be used as a
> drop in replacement for EODistribution for Java Client apps? Is there any
> documentation around it, the wodev list seems to draw a blank on this
> topic. I currently use EODistribution.
>
> I spotted it only because after updating my copy of Wonder, the only error
> I see relates to ERDistribution, JavaClient WO saying: Either one of
> 'applicationClassName' or 'interfaceControllerClassName' should be bound.
> If anyone can explain why that error is present, that would also be of
> interest.
>
> Many thanks,
> John
>
>
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Organising Libraries folder with Fluffy Bunny layout and Wonder build.xml

2015-06-22 Thread John Huss
Yes, just add another star to the copy rule for Libraries in build.xml:
Libraries/**
On Mon, Jun 22, 2015 at 5:03 AM Paul Hoadley  wrote:

> Hello,
>
> I’m working on a project that requires a bunch of third party JARs, and by
> “bunch” I mean something ridiculous like about 20. (Alright, it’s Jersey.)
> To maintain some sanity in Libraries, I created Libraries/Jersey and threw
> them in there. While this works fine in Eclipse once they’re all on the
> classpath, the best I seem to be able to do with the ‘woapplication’ Ant
> task is get them copied into the same subdirectory in
> Contents/Resources/Java/Jersey, and then they don’t seem to be found on
> launch (though at the moment I’m only seeing the symptoms (Jersey classes
> not found) in WOUnit tests, because the app itself isn’t running yet).
> Actually, maybe it _is_ WOUnit, because I’m seeing all the entries in
> UNIXClassPath.txt pointing into the Jersey sub-directory, which makes me
> think this should just work.
>
> I could probably post-process the built application bundle and “flatten”
> everything in Contents/Resources/Java, but is this a solved problem? Does
> anyone else put sub-folders in Libraries and if so, what do you do about it
> at build time? Or just not worth the bother?
>
>
> --
> 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Ajax & Servlet Deployment

2015-05-20 Thread John Huss
If you are aren't on a recent version of Wonder, you need to be for this to
work - Ajax in servlet. Probably fixed about a year ago.
On Tue, May 19, 2015 at 4:14 PM Kevin Hinkson  wrote:

> Hi,
> I am attempting to deploy a web page where the page uses an
> AjaxFlexibleFileUpload component. This works in the development setup.
> However, once the page with the AjaxFlexibleFileUpload loads on the server
> the two XHRs that run come back with 200 responses but they are completely
> empty of content. This results in no file dialog appearing when a user
> attempts to select an image for upload.
>
> The errors that show in the browser JS console are
> "JSONRpcClientException: error parsing result”, ReferenceError: Can't find
> variable: jsonrpc_0 and  ReferenceError: Can't find variable: jsonrpc_1.
>
> My local development setup is a (reverse) proxy through NGINX. The
> deployment is to a AWS Elastic Beanstalk, in Tomcat 7, Java 7 which uses
> Apache as a reverse proxy.
>
> I’ll admit I know very little about WebObjects and Ajax. It is not clear
> to me that I have all the correct steps for using Ajax components. One
> thing I did was to override pageWithName in the Application class.
>
> @Override
> public WOComponent pageWithName(String name, WOContext context)
> {
> log.error("application pageWithName " + name + " " + context);
> WOComponent page = super.pageWithName(name, context);
> log.error("got page " + page);
> return page;
> }
>
> I noticed that when run locally there is nothing in the logs for the XHR
> requests because they load fine. However, when deployed to a Beanstalk
> instance I get the following.
>
> ERROR 20:32:35 (com.adnero.finance.web.Application:?)  -application
> pageWithName null  requestSenderID=0.17.1.1.1.0.1 elementID=null
> sessionID=GpMB9KKAiBu1Rdv4MqVNu0
> request= ( headers={accept=[*/*], accept-encoding=[gzip, deflate],
> accept-language=[en-us], connection=[Keep-Alive], content-length=[50],
> content-type=[text/plain],
> cookie=[JSESSIONID=727EEEFD467421EFD51BB2A65A0707BF], dnt=[1],
> host=[replaced.host.url], origin=[http://replaced.host.url], referer=[
> http://replaced.host.url/WebObjects/AdneroWeb.woa/wo/0.0.0.17.1],
> remote_addr=[104.200.104.189], user-agent=[Mozilla/5.0 (Macintosh; Intel
> Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6
> Safari/600.6.3], x-forwarded-host=[replaced.host.url],
> x-forwarded-server=[ip-172-31-26-217.ec2.internal],
> x-requested-with=[XMLHttpRequest], x-webobjects-adaptor-version=[5.2],
> x-webobjects-servlet-server-name=[replaced.host.url],
> x-webobjects-servlet-server-port=[80]} content-length=50 cookies=null
> userInfo={ServletConfig=org.apache.catalina.core.StandardWrapperFacade@7f127e0,
> ServletContext=org.apache.catalina.core.ApplicationContextFacade@6970e732,
> HttpServletRequest=org.apache.catalina.connector.RequestFacade@2b18fb03,
> HttpServletResponse=org.apache.catalina.connector.ResponseFacade@7507980f}
> storePageInBacktrackCache=true >) method=POST
> uri=/WebObjects/AdneroWeb.woa/ajax/0.0.17.1.1.1.0.1
> defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO
> formValueEncoding=UTF-8 formValues={WOIsmapCoords =
> ("{"id":1,"method":"system.listMethods","params":[]}"); } > response=null
> pageElement=null pageComponent=null currentComponent=null
> url=/WebObjects/AdneroWeb.woa urlApplicationNumber=-1
> distributionEnabled=false pageChanged=false pageReplaced=false>
>
> ERROR 20:32:35 (com.adnero.finance.web.Application:?)  -got page
>  subcomponents: null >
>
>
> I am guessing that this differences means that the ajax requests are not
> being handled by the Ajax Handler but are getting caught by the default
> handler or that they are falling back to pageWithName, (which then falls
> back to Main.class) when they should not be?
>
> My apache config for the proxy looks like this:
>
> RewriteEngine On
>
> RewriteCond %{REQUEST_URI} ^/WebObjects/Frameworks/ [NC]
> RewriteRule ^/WebObjects/Frameworks/(.+)$
> /WebServerResources/Frameworks/$1 [PT]
>
> RewriteCond %{REQUEST_URI} ^/WebObjects/Contents/ [NC]
> RewriteRule ^/WebObjects/Contents/(.+)$ /WebServerResources/Contents/$1
> [PT]
>
> RewriteCond %{REQUEST_URI}
> ^/WebObjects/AdneroWeb.woa/Contents/WebServerResources/ [NC]
> RewriteRule ^/WebObjects/AdneroWeb.woa/Contents/WebServerResources/(.+)$
> /WebServerResources/Contents/WebServerResources/$1 [PT]
>
> RewriteCond %{REQUEST_URI} ^/ishealthy$ [NC]
> RewriteRule ^/ishealthy$
> /WebObjects/AdneroWeb.woa/ra/Healthcheck/ishealthy [PT]
>
> 
> Order deny,allow
> Allow from all
> 
>
> ProxyPass / http://localhost:8080/ retry=0
> ProxyPassReverse / http://localhost:8080/
> ProxyPreserveHost on
>
> LogFormat "%h (%{X-Forwarded-For}i) %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\""
> ErrorLog /var/log/httpd/elasticbeanstalk-error_log
> TransferLog /var/log/httpd/elasticbeanstalk-access_log
>
>
>
> I am completely lost as to what to try next. Any help in identif

Re: first version of deployment config scripts for Ubuntu/AWS

2015-03-06 Thread John Huss
There's a note in the build file -- due to WO bug don't use tomcat 8 unless
you replace WOJavaServletAdapter or whatever its called.  Use tomcat 7.

On Fri, Mar 6, 2015, 9:09 AM John Huss  wrote:

> Here's what I can do now:
>
> https://www.dropbox.com/s/bfgmzkrz6cyw1xe/buid.xml?dl=1
>
> https://www.dropbox.com/s/56cojqgulc7sezj/Application.java?dl=1
>
>
> On Thu, Mar 5, 2015 at 2:49 PM Paul Hoadley  wrote:
>
>> Hi John,
>>
>> On 6 Mar 2015, at 2:01 am, John Huss  wrote:
>>
>> Are you doing any of this in practice?  How do you handle session
>> persistence?
>>
>> Yes, I have a very high traffic WO app deployed this way -- but it is
>> purely web services and javascript, no components.  It used EOF originally,
>> but now uses Cayenne instead.
>>
>> I have another app which is a more traditional one with many pages
>> deployed this way as well, but it is not really in use yet.  It has passed
>> testing and works well.
>>
>> I'm not doing session persistence.  My web service/javascript app doesn't
>> use sessions; the other app does.  The elastic load balancer supports
>> sticky sessions, so sessions are routed to the same instance.  This isn't
>> ideal for many reasons but it is the same thing you get with a traditional
>> deployment, so it's not a point for or against anything.
>>
>>
>> It's interesting to know that ELB-based sticky sessions works for WO.
>> Without session persistence, though, isn't auto-scaling going to be a bit
>> rough?  If my session is stuck to an instance that auto-scaling is about to
>> kill, my session is going to disappear, isn't it?  Do you handle (or intend
>> to handle) that in some way?  Also, are the EC2 instances you're talking
>> about here each running a single servlet app instance, or do you have some
>> other setup for this?
>>
>> It's easy to get started with a WAR deployment - the only thing you have
>> to do that isn't built-in is to put your web service resources in the
>> WEB-INF/static folder and set the base url for them.  The standard
>> build.xml file should be changed to do this automatically, but no one
>> maintains wolips anymore.
>>
>>
>> Can you commit the change anyway?  Interested parties (like me) could
>> then just grab that file.
>>
>> Thanks for discussing what you're doing here, very interesting.
>>
>>
>> --
>> 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: first version of deployment config scripts for Ubuntu/AWS

2015-03-06 Thread John Huss
Here's what I can do now:

https://www.dropbox.com/s/bfgmzkrz6cyw1xe/buid.xml?dl=1

https://www.dropbox.com/s/56cojqgulc7sezj/Application.java?dl=1


On Thu, Mar 5, 2015 at 2:49 PM Paul Hoadley  wrote:

> Hi John,
>
> On 6 Mar 2015, at 2:01 am, John Huss  wrote:
>
> Are you doing any of this in practice?  How do you handle session
> persistence?
>
> Yes, I have a very high traffic WO app deployed this way -- but it is
> purely web services and javascript, no components.  It used EOF originally,
> but now uses Cayenne instead.
>
> I have another app which is a more traditional one with many pages
> deployed this way as well, but it is not really in use yet.  It has passed
> testing and works well.
>
> I'm not doing session persistence.  My web service/javascript app doesn't
> use sessions; the other app does.  The elastic load balancer supports
> sticky sessions, so sessions are routed to the same instance.  This isn't
> ideal for many reasons but it is the same thing you get with a traditional
> deployment, so it's not a point for or against anything.
>
>
> It's interesting to know that ELB-based sticky sessions works for WO.
> Without session persistence, though, isn't auto-scaling going to be a bit
> rough?  If my session is stuck to an instance that auto-scaling is about to
> kill, my session is going to disappear, isn't it?  Do you handle (or intend
> to handle) that in some way?  Also, are the EC2 instances you're talking
> about here each running a single servlet app instance, or do you have some
> other setup for this?
>
> It's easy to get started with a WAR deployment - the only thing you have
> to do that isn't built-in is to put your web service resources in the
> WEB-INF/static folder and set the base url for them.  The standard
> build.xml file should be changed to do this automatically, but no one
> maintains wolips anymore.
>
>
> Can you commit the change anyway?  Interested parties (like me) could then
> just grab that file.
>
> Thanks for discussing what you're doing here, very interesting.
>
>
> --
> 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: first version of deployment config scripts for Ubuntu/AWS

2015-03-05 Thread John Huss
Oh, I should say also -- I have a Play 2 app running on beanstalk deployed
inside a docker container also.  Play provides built-in support for
building a docker image.  However, it is not complicated to do yourself
(with WO for example).

I still have some other WO apps running internally outside of amazon.  When
the container server is out of beta I plan to move them to amazon.  They
use EOF and are database-heavy, so many app instances are required in order
get a reasonable number of database connections.  With a WAR deployment
many instances means many machines, which is more expensive than necessary
compared to running multiple instances on a single machine -- which is what
the container service allows you to do.

On Thu, Mar 5, 2015 at 9:31 AM John Huss  wrote:

> On Wed, Mar 4, 2015 at 4:01 PM Paul Hoadley  wrote:
>
>> Hi John,
>>
>> On 5 Mar 2015, at 7:13 am, John Huss  wrote:
>>
>> You're missing out big time using the traditional deployment model on
>> AWS.  If you instead use an deployment model that includes an elastic load
>> balancer you get a ton of benefits:
>>
>> 1) it automatically replaces dead instances.
>> 2) it can automatically scale up if needed
>> 3) lots of free monitoring graphs, etc
>> 4) highly available = the load balancer never fails (unlike wotaskd and
>> pals)
>>
>> For simplicity I recommend using elastic beanstalk and deploying a WAR
>> file.  But you could also build a docker image and deploy a traditional app
>> instead (using beanstalk), but without the cruft of wotaskd and javamonitor.
>>
>> In the long term - the AWS container service is in beta and allows
>> deploying docker images across a fleet of EC2 instances.  This the best
>> model for deploying WO apps since you typically want to have multiple app
>> processes running on each machine rather than a single monolithic process
>> (which is what WAR deployment gives you).
>>
>>
>> Are you doing any of this in practice?  How do you handle session
>> persistence?
>>
>
> Yes, I have a very high traffic WO app deployed this way -- but it is
> purely web services and javascript, no components.  It used EOF originally,
> but now uses Cayenne instead.
>
> I have another app which is a more traditional one with many pages
> deployed this way as well, but it is not really in use yet.  It has passed
> testing and works well.
>
> I'm not doing session persistence.  My web service/javascript app doesn't
> use sessions; the other app does.  The elastic load balancer supports
> sticky sessions, so sessions are routed to the same instance.  This isn't
> ideal for many reasons but it is the same thing you get with a traditional
> deployment, so it's not a point for or against anything.
>
> It's easy to get started with a WAR deployment - the only thing you have
> to do that isn't built-in is to put your web service resources in the
> WEB-INF/static folder and set the base url for them.  The standard
> build.xml file should be changed to do this automatically, but no one
> maintains wolips anymore.
>
> John
>
>
>>
>> --
>> 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: first version of deployment config scripts for Ubuntu/AWS

2015-03-05 Thread John Huss
On Wed, Mar 4, 2015 at 4:01 PM Paul Hoadley  wrote:

> Hi John,
>
> On 5 Mar 2015, at 7:13 am, John Huss  wrote:
>
> You're missing out big time using the traditional deployment model on
> AWS.  If you instead use an deployment model that includes an elastic load
> balancer you get a ton of benefits:
>
> 1) it automatically replaces dead instances.
> 2) it can automatically scale up if needed
> 3) lots of free monitoring graphs, etc
> 4) highly available = the load balancer never fails (unlike wotaskd and
> pals)
>
> For simplicity I recommend using elastic beanstalk and deploying a WAR
> file.  But you could also build a docker image and deploy a traditional app
> instead (using beanstalk), but without the cruft of wotaskd and javamonitor.
>
> In the long term - the AWS container service is in beta and allows
> deploying docker images across a fleet of EC2 instances.  This the best
> model for deploying WO apps since you typically want to have multiple app
> processes running on each machine rather than a single monolithic process
> (which is what WAR deployment gives you).
>
>
> Are you doing any of this in practice?  How do you handle session
> persistence?
>

Yes, I have a very high traffic WO app deployed this way -- but it is
purely web services and javascript, no components.  It used EOF originally,
but now uses Cayenne instead.

I have another app which is a more traditional one with many pages deployed
this way as well, but it is not really in use yet.  It has passed testing
and works well.

I'm not doing session persistence.  My web service/javascript app doesn't
use sessions; the other app does.  The elastic load balancer supports
sticky sessions, so sessions are routed to the same instance.  This isn't
ideal for many reasons but it is the same thing you get with a traditional
deployment, so it's not a point for or against anything.

It's easy to get started with a WAR deployment - the only thing you have to
do that isn't built-in is to put your web service resources in the
WEB-INF/static folder and set the base url for them.  The standard
build.xml file should be changed to do this automatically, but no one
maintains wolips anymore.

John


>
> --
> 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: first version of deployment config scripts for Ubuntu/AWS

2015-03-04 Thread John Huss
My own 2 cents --

You're missing out big time using the traditional deployment model on AWS.
If you instead use an deployment model that includes an elastic load
balancer you get a ton of benefits:

1) it automatically replaces dead instances.
2) it can automatically scale up if needed
3) lots of free monitoring graphs, etc
4) highly available = the load balancer never fails (unlike wotaskd and
pals)

For simplicity I recommend using elastic beanstalk and deploying a WAR
file.  But you could also build a docker image and deploy a traditional app
instead (using beanstalk), but without the cruft of wotaskd and javamonitor.

In the long term - the AWS container service is in beta and allows
deploying docker images across a fleet of EC2 instances.  This the best
model for deploying WO apps since you typically want to have multiple app
processes running on each machine rather than a single monolithic process
(which is what WAR deployment gives you).

John

On Sat, Feb 28, 2015 at 2:47 PM Ken Anderson  wrote:

> This is how we do it too - much safer.
>
> On Feb 28, 2015, at 3:02 PM, Matthew Ness  wrote:
>
> > Hi Ray,
> >
> > We do a lot of deployment to AWS environments (although not Ubuntu,
> > still linux). One thing I would recommend here is with this step:
> >
> >> - change the security group to add the ability to allow an inbound
> >>  connection to the instance on port 56789.
> >>
> >> - ssh into the new instance and then do:
> >>
> >>  % sudo sh
> >>  # curl 'http://opencalaccess.org/wo/deploy' | /bin/sh
> >>
> >> ... and there is no step three.
> >>
> >> It runs for a few minutes and then I can use a web browser to go to:
> >>
> >>  http://:56789/
> >
> >
> > We don't expose that port through EC2 Security Groups. Rather,
> > port-forward from your maintenance machine:
> >
> > ssh -i ~/.ssh/[your-aws-pem-file].pem -L 56789:localhost:56789
> > [your-user]@[your-domain]
> >
> > Then launch your user-agent of choice at: http://localhost:56789
> >
> > This might seem tedious but if you script it then it's painless. If you
> > get adventurous you could write a simple client app which uses an IAM
> > role to find all EC2 instances in your AWS account tagged as "wo-server"
> > or somesuch and provide a label and button for each which does the above
> > for you (incrementing the host port of course).
> >
> > Cheers,
> >
> > Matt
> >
> >
> > --
> > Matt
> > http://logicsquad.net
> >
> >
> >
> >>
> >> And it works. Of course, it is not done. I have not yet done any apache
> >> setup. But I am hopeful that I will be able to do the apache setup ONLY
> >> ONE F-ING TIME MORE and wouldn't that be wonderful. We will see.
> >>
> >> I am also going to try to create re-usable, containerized scripts to:
> >> - install JDK, fetch Wonder source, build and install
> >> - install above and install/setup Jenkins.
> >>
> >> We will see. If anyone has information, or can tell me which of the
> >> crufty and duplicative wocommunity.org pages can be ignored, and which
> >> might be helpful, please do not be shy.
> >>
> >> cheers - ray
> >> ___
> >> Do not 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
> > ___
> > Do not 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/kenlists%40anderhome.com
> >
> > This email sent to kenli...@anderhome.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Wonder D2W App Tomcat Deployment

2015-02-23 Thread John Huss
Yes, in web.xml, but I think you can just set it in the ant build file.
Sorry, I don't have any more time to help today.

On Mon, Feb 23, 2015 at 9:26 AM Kevin Hinkson  wrote:

> Hi John,
> Thanks for the reply.
>
> Could you explain what you think is happening in a little more detail? By
> use ERXServletAdaptor do you mean I need to replace the WOServletAdaptor in
> the web.xml file with with ERXServletAdaptor?
>
>
>
>
> On Feb 23, 2015, at 11:22 AM, John Huss  wrote:
>
> You have to use ERXServletAdaptor or copy it and write your own (it's
> short).
>
> On Sun Feb 22 2015 at 1:23:14 PM Kevin Hinkson  wrote:
>
>> Hi,
>>
>> I am able to deploy other Wonder apps to Tomcat without any problems but
>> I cannot get even an empty D2W app to deploy.  I’m attempting to deploy to
>> Tomcat 7 Java 7 and I get the following for an empty D2W app with the only
>> change being to enable servlet deployment:
>>
>> INFO: Command line argument: -Djava.awt.headless=true
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
>> log
>> INFO: Command line argument: -Djava.endorsed.dirs=
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
>> log
>> INFO: Command line argument: -Djava.io.tmpdir=/var/cache/tomcat7/temp
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
>> log
>> INFO: Command line argument: -Djava.util.logging.config.
>> file=/usr/share/tomcat7/conf/logging.properties
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
>> log
>> INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.
>> ClassLoaderLogManager
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.AprLifecycleListener
>> lifecycleEvent
>> INFO: The APR based Apache Tomcat Native library which allows optimal
>> performance in production environments was not found on the
>> java.library.path: /usr/java/packages/lib/amd64:/
>> usr/lib64:/lib64:/lib:/usr/lib
>> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
>> INFO: Initializing ProtocolHandler ["http-bio-8080"]
>> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
>> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 1885 ms
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardService
>> startInternal
>> INFO: Starting service Catalina
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardEngine
>> startInternal
>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
>> Feb 22, 2015 7:08:33 PM org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO: 
>> validateJarFile(/usr/share/tomcat7/webapps/ROOT/WEB-INF/lib/javaxml.jar)
>> - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
>> javax/servlet/Servlet.class
>> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TldConfig
>> tldScanWebXml
>> WARNING: Failed to process TLD with path 
>> [/WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld]
>> and URI [/WOtaglib]. The specified path does not exist.
>> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TaglibUriRule body
>> INFO: TLD skipped. URI: com.webobjects.taglib_1_0 is already defined
>> Found MainBundle at: /usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa
>> Classpath for WebObjects classloader is /usr/share/tomcat7/webapps/
>> ROOT/WEB-INF/Resources/Java/:/usr/share/tomcat7/webapps/
>> ROOT/WEB-INF/EC2Test.woa/Contents/Resources/Java/ec2test.jar:/usr/share/
>> tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/
>> Frameworks/ERExtensions.framework/Resources/Java/
>> ERExtensions.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/
>> EC2Test.woa/Contents/Frameworks/ERJars.framework/
>> Resources/Java/ERJars.jar:/usr/share/tomcat7/webapps/
>> ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.
>> framework/Resources/Java/ERFoundation.jar:/usr/share/
>> tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/
>> Frameworks/ERJars.framework/Resources/Java/ERWebObjects.
>> jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.
>> woa/Contents/Frameworks/ERJars.framework/Resources/
>> Java/commons-cli-1.2.jar:/usr/share/tomcat7/webapps/ROOT/
>> WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/
>> Resources/Java/commons-codec-1.6.jar:/usr/sha

Re: Wonder D2W App Tomcat Deployment

2015-02-23 Thread John Huss
You have to use ERXServletAdaptor or copy it and write your own (it's
short).

On Sun Feb 22 2015 at 1:23:14 PM Kevin Hinkson  wrote:

> Hi,
>
> I am able to deploy other Wonder apps to Tomcat without any problems but I
> cannot get even an empty D2W app to deploy.  I’m attempting to deploy to
> Tomcat 7 Java 7 and I get the following for an empty D2W app with the only
> change being to enable servlet deployment:
>
> INFO: Command line argument: -Djava.awt.headless=true
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
> log
> INFO: Command line argument: -Djava.endorsed.dirs=
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
> log
> INFO: Command line argument: -Djava.io.tmpdir=/var/cache/tomcat7/temp
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
> log
> INFO: Command line argument: -Djava.util.logging.config.
> file=/usr/share/tomcat7/conf/logging.properties
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
> log
> INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.
> ClassLoaderLogManager
> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path: /usr/java/packages/lib/amd64:/
> usr/lib64:/lib64:/lib:/usr/lib
> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-8080"]
> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1885 ms
> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
> Feb 22, 2015 7:08:33 PM org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO: validateJarFile(/usr/share/tomcat7/webapps/ROOT/WEB-INF/lib/javaxml.jar)
> - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
> javax/servlet/Servlet.class
> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TldConfig
> tldScanWebXml
> WARNING: Failed to process TLD with path 
> [/WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld]
> and URI [/WOtaglib]. The specified path does not exist.
> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: com.webobjects.taglib_1_0 is already defined
> Found MainBundle at: /usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa
> Classpath for WebObjects classloader is /usr/share/tomcat7/webapps/
> ROOT/WEB-INF/Resources/Java/:/usr/share/tomcat7/webapps/
> ROOT/WEB-INF/EC2Test.woa/Contents/Resources/Java/ec2test.jar:/usr/share/
> tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERExtensions.
> framework/Resources/Java/ERExtensions.jar:/usr/share/
> tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/
> Frameworks/ERJars.framework/Resources/Java/ERJars.jar:/
> usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/
> Contents/Frameworks/ERJars.framework/Resources/Java/
> ERFoundation.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/
> EC2Test.woa/Contents/Frameworks/ERJars.framework/
> Resources/Java/ERWebObjects.jar:/usr/share/tomcat7/
> webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/
> ERJars.framework/Resources/Java/commons-cli-1.2.jar:/usr/
> share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/
> Frameworks/ERJars.framework/Resources/Java/commons-codec-
> 1.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.
> woa/Contents/Frameworks/ERJars.framework/Resources/
> Java/commons-io-2.2.jar:/usr/share/tomcat7/webapps/ROOT/
> WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/
> Resources/Java/commons-lang-2.6.jar:/usr/share/tomcat7/
> webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/
> ERJars.framework/Resources/Java/commons-lang3-3.1.jar:/
> usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/
> Contents/Frameworks/ERJars.framework/Resources/Java/
> commons-logging-1.2.jar:/usr/share/tomcat7/webapps/ROOT/
> WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/
> erxservletadaptor.jar:/usr/share/tomcat7/webapps/ROOT/
> WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/
> Resources/Java/fluent-hc-4.3.6.jar:/usr/share/tomcat7/
> webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/
> ERJars.framework/Resources/Java/httpclient-4.3.6.jar:/
> usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/
> Contents/Frameworks/ERJars.framework/Resources/Java/
> httpclient-cache-4.3.6.jar:/usr/share/tomcat7/webapps/
> ROOT/W

WOLips for Eclipse 4.4 binary

2015-01-14 Thread John Huss
If anyone has a build of WOLips for Eclipse 4.4 that mostly works, can you
provide a binary?  I don't really want to build my own, and I bet many
others would also appreciate it.

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

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

Re: How to automate split installs with maven

2014-12-31 Thread John Huss
I wouldn't bother with a split install.  Just serve the web server
resources directly from tomcat/jetty.  That's one of the main advantages of
using a war in the first place - a much simpler deployment that just
works.  Everything third question on this list is from someone having a
problem deploying their app.

Both tomcat and jetty will automatically serve static files placed in the
"static" folder like the screenshot below:


You can make WO generate the correct path by setting frameworksBaseURL or
extending ERXServletApplication.

For ANT here's the code to copy the files:

 

 

 

  

 

  

 

 


On Tue Dec 30 2014 at 12:01:49 PM Faizel Dakri  wrote:

> How are maven folks doing split installs when packaging as a true war
> for tomcat (or whatever container)? I've recently converted my app to a
> true war, but the webserver resources are now bundled in the war and
> there is no webserver-resources archive generated anymore (at least not
> that I can find).
>
> I have many static resources that are inside embedded frameworks and
> these are now packaged inside the framework jar files which are embedded
> in my war file. Some of these static resources are css files that have
> relative file urls in them, but these don't get get resolved when
> serving static files via the container, which is why I'm wondering how
> to build a split install package that bundles all static resources for
> the app, as well as its frameworks.
>
> I recall there being support (i.e. Generating a tar archive with all
> static resources) for this in the traditional ant-based builds and when
> packaging as a woa in maven, but could not find a way when packaging as
> war in maven. Am I missing something?
>
> Thanks for any advice or pointers.
>
> F
>
> --
> Faizel Dakri
> list...@dakri.com
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/
> johnthuss%40gmail.com
>
> This email sent to johnth...@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

Deploying to tomcat 8

2014-11-21 Thread John Huss
FYI, for the few people who might be deploying with Tomcat:

In the recently released Tomcat 8, there is a breaking change that causes
WO apps which use the generated WOClasspath to break (fail to load).

The call to servletContext.getRealPath("WEB-INF") in WOServletAdaptor now
fails and needs to be changed to use an absolute path like so:
servletContext.getRealPath("/WEB-INF").

I don't see anyway to override the old class, so if you have this problem
you'll have to either replace WOServletAdaptor or use a custom web.xml file
that doesn't depend on WEBINFROOT being defined.  I love WO!   ;-)

John
 ___
Do not 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: EOCustomObject valueForKey avoiding infinite recursion

2014-10-09 Thread John Huss
m, hairy palms, not sure I want that, but thanks for this anyway. The
> related attribute is a to-one relationship, does that mean it is a FK
> attribute? It is the to-one relationship that becomes null against my will
> and I need to find out where/why.
>
> I have now cobbled some code up in takeStoredValueForKey() which avoids
> the recursion when checking the existing value using storedValueForKey() and
> ignores the (temp) null value caused by clearProperties() when the EO is
> invalidated. Hence I believe I now have the code to scream if my property
> is set to null from a pre-existing value and I should get an email + stack
> trace to report the exciting news. These intermittents are about once every
> two months so will have to wait.
>
> On 11 Sep 2014, at 23:04, Chuck Hill  wrote:
>
>  You are going to grow hair on your palms doing this but…
>
>  willRead();
> Object value = __dictionary().valueForKey(“your attribute”);
>
>  Should, I think, do what you want.  Of course, it is package protected
> so you will need to use reflection to get access.  And the result may be
> null if the object is still a fault.
>
>  Is this an FK or PK by chance?
>
>
>  Chuck
>
>
>
>
>
>   On 2014-09-11, 12:22 PM, "John Pollard" wrote:
>
>   Apologies, I meant takeStoredValueForKey(). Within there, how can I
> safely see what the value currently is when when this method is called,
> before I invoke super. takeStoredValueForKey() to take on the new value?
> John
>
>  On 11 Sep 2014, at 18:10, John Huss  wrote:
>
>  The order of calls is:
>
>  takeValueForKey -> setXXX -> takeStoredValueForKey
>
>  All of these maybe skipped except for takeStoredValueForKey, so that is
> the only one you should override to see what is getting saved.
>
>
> On Thu, Sep 11, 2014 at 8:55 AM, John Pollard  wrote:
>
>> Hi List,
>>
>> In some debugging within takeValueForKey() I want to find out if the key
>> already has a value set. If I call valueForKey() or storedValueForKey() and
>> the value isn't already set I get infinite recursion as it triggers a fault
>> and tries to load with takeValueForKey() and so on.
>>
>> I am trying to debug where a value is being set to null, but apparently
>> not going via validateXXX() or setXXX() methods, so I want to trap the case
>> where the takeValueForKey() is passed null when the key value was
>> previously non-null and log a stack trace.
>>
>> Thanks
>> John
>>  ___
>> Do not 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/johnthuss%40gmail.com
>>
>> This email sent to johnth...@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/john%40pollardweb.com
>
> This email sent to j...@pollardweb.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: REST authentication

2014-10-05 Thread John Huss
REST basically just means HTTP, so the answer is to use HTTP auth, most
likely BASIC auth.  This can be done two ways:

1) If your apps are fronted by Apache (which they probably are), then you
can use Apache's bult-in authorization functionality, the simplist form of
which is just to declare users in flat text files.  There are probably many
other ways to store the user info.

2) You can do the auth inside your app.  Globally in
Application.dispatchRequest or more granularly in your route class (which
is just a DirectAction subclass) in DirectAction.performAction.  You just
have to read the Authorization header and parse it, then check for the user
and password in your database or whatever.  I don't believe there is an
implementation in Wonder, but if not there should be.


On Sat, Oct 4, 2014 at 9:01 AM, Gabor Raz  wrote:

>  Hi Guys,
>
> I normally make my own projects with Node.js. Most of them with the
> MEAN.IO framework. But I also came in touch with WebObjects / Project
> WOnder during my training.
>
> Now I would like to convert a node application into a wonder application.
> And here I have a question. How do I create a authentication via REST and
> make my routes only available for authenticated users?
>
> Thanks in advance
> Gabor Raz
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Access to EOF/WebObjects source files - plan for the future?

2014-09-18 Thread John Huss
Regardless, no one is forcing to use Java 9.  Stay with Java 6 if you like.
On Sep 18, 2014 5:38 PM, "Joseph Pachod"  wrote:

> We agree with your statement, our worry was more whether we could still
> compile our code against WO java 1.5 jars. Looks like it as well in the end.
>
> 2014-09-18 18:22 GMT+02:00 Ramsey Gurley :
>
>> My understanding is that Java 9 will still be able to run Java 5
>> bytecode, it just won’t be able to compile for Java 5 and below. WO should
>> still work fine on new deployments.
>>
>> On Sep 18, 2014, at 2:36 AM, Joseph Pachod 
>> wrote:
>>
>> Hi
>>
>> We're discussing how we/wonder could/would handle a new Java version not
>> being backward compatible in regard to source code, as it has been rumored
>> to be the plan for Java 9.
>>
>> As far as I've found, the source code of EOF/WebObjects is closed source,
>> not accessible and not modifiable. Is this right ?
>>
>> If, for some reason, EOF/Wonder wouldn't compile any more against Java 9,
>> what could be done ? Is it about a major rewrite or could it be "not this
>> bad" ? Is there any plan?
>>
>> Thanks in avance
>>
>> Best,
>> --
>> Joseph Pachod, Intuitive Healthcare Solutions
>> Equipe Technique
>> 08.11.69.63.86
>> http://bugreport.resurgences.com
>> http://www.resurgences.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/rgurley%40smarthealth.com
>>
>> This email sent to rgur...@smarthealth.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/jpachod%40improve.fr
>>
>> This email sent to jpac...@improve.fr
>>
>
>
>
> --
> Joseph Pachod, Intuitive Healthcare Solutions
> Equipe Technique
> 08.11.69.63.86
> http://bugreport.resurgences.com
> http://www.resurgences.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: EOCustomObject valueForKey avoiding infinite recursion

2014-09-11 Thread John Huss
The order of calls is:

takeValueForKey -> setXXX -> takeStoredValueForKey

All of these maybe skipped except for takeStoredValueForKey, so that is the
only one you should override to see what is getting saved.


On Thu, Sep 11, 2014 at 8:55 AM, John Pollard  wrote:

> Hi List,
>
> In some debugging within takeValueForKey() I want to find out if the key
> already has a value set. If I call valueForKey() or storedValueForKey() and
> the value isn't already set I get infinite recursion as it triggers a fault
> and tries to load with takeValueForKey() and so on.
>
> I am trying to debug where a value is being set to null, but apparently
> not going via validateXXX() or setXXX() methods, so I want to trap the case
> where the takeValueForKey() is passed null when the key value was
> previously non-null and log a stack trace.
>
> Thanks
> John
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Switching to Maven

2014-09-03 Thread John Huss
Here are the parts I remember doing.  There may be more. You have to have
WO installed, and if WO is in the standard directories it is easier.

# this file is attached
mv archetype-catalog.xml ~/.m2/

mvn wobootstrap:install

# Optional
#mvn install:install-file -Dfile=/Users/john/Downloads/ERServlet-1.0.jar
-DgroupId=er.extensions.jspservlet -DartifactId=ERServlet -Dversion=1.0
-Dpackaging=jar

mvn archetype:generate -DarchetypeArtifactId=erxapplication-archetype
-DarchetypeGroupId=org.objectstyle.woproject.maven2 -DartifactId=MyApp



On Wed, Sep 3, 2014 at 9:10 AM, John Huss  wrote:

>
>
>
> On Wed, Sep 3, 2014 at 7:39 AM, Ken Anderson 
> wrote:
>
>> All,
>>
>> I’ve decided to bite the bullet and try and integrate Maven into my
>> WOrkflow.  Any hints or tips?  Is the WOProject-Maven page (
>> http://wiki.wocommunity.org/display/WOL/WOProject-Maven) up to date?  It
>> was last edited in 2011…
>>
>
> No, you have to hodge-podge instructions together using the wiki and the
> mailing list.  I did get it working eventually though.
>
>
>>
>> Thanks!
>>
>> Ken
>>
>>
>>  ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>>
>> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>>
>> This email sent to johnth...@gmail.com
>
>
>

http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0 http://maven.apache.org/xsd/archetype-catalog-1.0.0.xsd";
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  

  org.objectstyle.woproject.maven2
  woframework-archetype
  2.1
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  woframework-archetype
  2.0.17
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  woframework-archetype
  2.0.16
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  woapplication-servlet-archetype
  2.1
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  woapplication-archetype
  2.1
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  woapplication-archetype
  2.0.17
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  woapplication-archetype
  2.0.16
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  woapplication-archetype
  2.0.15
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  woapplication-archetype
  2.0.14
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  partial-woapplication-servlet-archetype
  2.1
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  maven-archetype-woapplication
  2.0.17
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  maven-archetype-woapplication
  2.0.16
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  maven-archetype-woapplication
  2.0.15
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  maven-archetype-woapplication
  2.0.14
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  erxapplication-servlet-archetype
  2.1
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  erxapplication-d2w-archetype
  2.1
  http://maven.wocommunity.org/content/groups/public


  org.objectstyle.woproject.maven2
  erxapplication-archetype
  2.1
  http://maven.wocommunity.org/content/groups/public

  

 ___
Do not 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: Switching to Maven

2014-09-03 Thread John Huss
On Wed, Sep 3, 2014 at 7:39 AM, Ken Anderson  wrote:

> All,
>
> I’ve decided to bite the bullet and try and integrate Maven into my
> WOrkflow.  Any hints or tips?  Is the WOProject-Maven page (
> http://wiki.wocommunity.org/display/WOL/WOProject-Maven) up to date?  It
> was last edited in 2011…
>

No, you have to hodge-podge instructions together using the wiki and the
mailing list.  I did get it working eventually though.


>
> Thanks!
>
> Ken
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>
> This email sent to johnth...@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: ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread John Huss
Nope


On Tue, Aug 26, 2014 at 6:50 AM, Fred Opims  wrote:

> Hello!
> I'm using ERRest  and  to create an entry, I'm using the POST HTTP method
> with JSON format.
> Is there a way to create multiple entries in one time with curl or any
> other http client ?
>
> Thank you!
>
> Best!
>
> Fred
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: SSDD and taglib definition

2014-08-25 Thread John Huss
Unless you're actually using JSPs (if so, God help you) you can just add a
replace call in the build.xml file at the bottom of the ssdd target to
remove that whole section from the web.xml file.  I don't have an example
on this machine, but here is the doc:

https://ant.apache.org/manual/Tasks/replace.html


On Mon, Aug 25, 2014 at 9:27 PM, Tarun Reddy  wrote:

> I've recently updated my deployment environment to centos 7 and the built
> in tomcat 7.0.42. Previously I had been running on 7.0.33 and in between
> this section of the web.xml went from a ignored error to a fatal error:
>
>   
>   
> /WOtaglib
>
> /WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld
>   
>
> With this being thrown:
>
> java.lang.IllegalArgumentException: taglib definition not consistent with
> specification version
> at
> org.apache.catalina.startup.TaglibLocationRule.begin(WebRuleSet.java:1274)
> at
> org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
> at.
>
> I *believe* that this only requires changing this to
>
> 
>   
>   
> /WOtaglib
>
> /WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld
>   
>   
>
> but I can't find out where (the proper way) to do it.. any ideas? So far,
> I'm hacking with sed before deploying. :-)
>
> Tarun
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: How to fetch an entity from an id ?

2014-08-20 Thread John Huss
.../Person/100

It's /


On Wed, Aug 20, 2014 at 12:26 PM, Fred Opims  wrote:

> Hello!
> I'm using ErRest and i would like to fetch an entity from an id.
>
> So far  I'm using an keyName (attribute) to fetch an entity. For the case
> i'm working on, I only have its id.
>
> Do you know how to do that ?
>
> Thank you
>
> Best!
>
> Fred
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: "WOWebServicePatch" - Wonder apps now require JavaXML.framework?

2014-08-19 Thread John Huss
Sorry about that - I have a change coming to address it.


On Tue, Aug 19, 2014 at 9:41 AM, Hugi Thordarson  wrote:

> Hi all.
>
> After upgrading to the latest version of Wonder my Applications fail to
> start, complaining that something called WOWebServicePatch can’t find the
> class org/apache/axis/EngineConfiguration.
>
> Turns out the class is in JavaXML.framework, which I’ve stopped including
> in my projects (since it often accounts for over half of my applications’
> weight).
>
> Is there any way this class could be moved to a different location or it’s
> invocation somehow made conditional? Or should I just bite the bullet and
> add that 40MB hunk of jar pollution (JavaXML.framework) to all my apps
> again?
>
> 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Kill hung instances

2014-08-14 Thread John Huss
Do you have WOTaskd.forceQuitTaskEnabled turned on for wotaskd in your
launchd plist?


wotaskd
-WOPort
1085
-_DeploymentDebugging
false
*-WOTaskd.forceQuitTaskEnabled*
*true*




On Thu, Aug 14, 2014 at 1:13 PM, Ramsey Gurley 
wrote:

> Is there a built in way through java monitor to kill any instance that
> becomes non-responsive automatically? I’d rather not reinvent the wheel if
> something like this exists already.
>
> Also, is there any good documentation on enabling JMX monitoring of
> woapps? In combination with a monitoring tool like Nagios or some other
> monitoring solution?
>
> Thanks,
>
> Ramsey
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Clustered Databases

2014-07-21 Thread John Huss
URL = jdbc:sqlserver://MIQSQL.name.ca :1234;


On Mon, Jul 21, 2014 at 9:14 AM, Calven Eggert 
wrote:

> I've just been told that one of the databases my WO application is talking
> to has changed and it should now connect to a clustered database.
>
> Currently I connect to the previous database like so: (In the eomodel)
>
> URL = jdbc:sqlserver://123.456.789.01:1234;
>
> I've been told to connect to a string that looks something like this "
> MIQSQL.name.ca".  I've also been told that this is a FQDN. (whatever that
> is)
>
> hmmm, I'm not sure how to use this new information.  Anyone else know?
>
> Calven
>
>
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: ERXEOControlUtilities usage and Scala

2014-07-10 Thread John Huss
Try using the Scala templates instead - available here.

http://wiki.wocommunity.org/plugins/servlet/mobile#content/view/2622529
 On Jul 10, 2014 10:50 AM, "Larry Mills-Gahl"  wrote:

> Hello...
>
> I’m using scala with WebObjects/Wonder for a number of apps including a
> bunch of data loading/analyzation utilities (also exposed as services)
>
> This works extremely well and seamlessly (thanks to some of the
> scala.collection.JavaConversions._ and other bits), but there are a couple
> things about using EO’s that I’m working around and I wonder if someone
> here has more insight into where this mismatch is happening.
>
> Using ERXEOControlUtilities.createAndInsertObject(…) results in errors
> that the EOClassDescription cannot be found.
>
> Calling:
> val lab = ERXEOControlUtilities.createAndInsertObject(emrec,
> "BloodMeasurement").asInstanceOf[BloodMeasurement]
>
> ...will fail (
>
> but
> val lab = new BloodMeasurement()
> emrec.insertObject(lab)
>
> … works normally (but feels so 1998)
>
> It looks like scala is not getting the class descriptions from the model,
> but I wouldn’t expect it to care if ERXEOControlUtilities is the class that
> needs the model.
>
> As long as I’m asking Scala questions, is there a way to use the static
> fields of the eogenerated classes without addressing them directly?
> (Perhaps this is an Eclipse issue, but the compiler doesn’t seem to know
> about BloodMeasurement.ENTITY_NAME, but it does know about
> _BloodMeasurement.ENTITY_NAME. I imagine this has something to do with how
> Scala treats “companion objects” in relation to static fields in Java, but
> I don’t know if there is a way to deal with this more elegantly (as there
> is with all of the collections and functional goodness in Scala)
>
>
> Larry Mills-Gahl
> elem...@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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Accessing a framework's resources in WOUnit tests

2014-07-09 Thread John Huss
Sorry, how is WOUnit involved?


On Wed, Jul 9, 2014 at 10:09 AM, Musall Maik  wrote:

> Hi,
>
> I have an application that uses a few custom frameworks. When I use
>
> WOResourceManager resourceManager =
> WOApplication.application().resourceManager();
> URL url = resourceManager.pathURLForResourceNamed( "foo.dat", null, null
> );
>
> from within the main application, I get a proper URL to my resource file.
> But when I use
>
> WOResourceManager resourceManager =
> WOApplication.application().resourceManager();
> URL url = resourceManager.pathURLForResourceNamed( "bar.dat",
> "MyFramework", null );
>
> with the second parameter (framework name) given, I only get back null.
> Regardless of whether
> this is called from within the main application or from the framework's
> code itself.
>
> Does anybody have a hint for me?
>
> Thanks
> Maik
>
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: WebObjects not working!

2014-07-08 Thread John Huss
Eclipse 3.3 is ancient and no longer supported.  You must use a newer
version - 3.7 or 3.8 would be best.


On Tue, Jul 8, 2014 at 10:21 AM, Pawan Tiwari  wrote:

> When i run woapplication on eclipse europa 3.3.0 with same configuration
> then it works fine but not works on any other eclipse or heiger version of
> eclipse and i have not found any maven plugin for eclipse europa.When i
> have try to  install the maven (M4Eclipse)on europa then wolips property
> becomes disable.
>
>  I have to work on maven so is there any solution that i can install maven
> in Europa .If any links for maven url then please send me!
>
>
> Thanks & Regards
> Pawan Kumar tiwari
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Webobject project is not runing!

2014-07-07 Thread John Huss
Also, make sure your project folder has the same name and case as your
application name.  So for an app named "YourApp" the project folder should
also be called "YourApp", not "yourapp".


On Mon, Jul 7, 2014 at 4:54 PM, Chuck Hill  wrote:

>  When NSBundle can’t find the main bundle, it falls back to using
> JavaFoundation.  I have no idea why it does this, maybe it had a use in the
> past.
>
>  So the question here is, why is it not finding the main bundle?  Two
> likely answers are that the Launch config is eclipse is using the wrong
> working directory or that the Maven layout of this project is incomplete or
> incorrect and so NSBundle does not see it as a Maven project.
>
>  This could also be a mismatch between a bundle-less build and a
> traditional build.
>
>
>  Chuck
>
>
>   On 2014-07-07, 2:46 PM, "Philippe Rabier" wrote:
>
>   I don't think so.
>
>  I got something similar several years ago: it was unable to find the
> Application class.
>
>  I was unable to fix it and I think I reinstalled everything on another
> computer I guess.
>
>  Do you have a Mac? Can you try also to create a Wonder app?
>
>  Philippe Rabier
>  -
>  http://twitter.com/prabier
>
> Sent from my iPhone
>
> On 07 Jul 2014, at 22:27, Ted Archibald  wrote:
>
>   Your app name is JavaFoundation?
>
>
> On Mon, Jul 7, 2014 at 2:03 PM, Pawan Tiwari  wrote:
>
>> FYI
>>
>>
>> -- Forwarded message --
>> From: Pawan Tiwari 
>> Date: Tue, Jul 8, 2014 at 1:30 AM
>> Subject: Webobject project is not runing!
>> To: Webobjects-dev@lists.apple.com
>>
>>
>> I have latest eclipse (Eclipse juno 4.2 ) and i have installed wolips
>> plugin accoriding your instruction that are given in wocommunity .I have
>> make a simple programe and run it then it gives the error .I have attached
>> the error log.
>>
>>   Please help us! Actually my main purpose is to run the woapplication
>> project using maven,but doing before we have to run a simple woapplication
>> project.
>>
>>  Note:-I tried on almost ever Eclipse version of Indigo and Juno but
>> gives the same error.
>>
>>  Thanks & Regards
>>
>>  Pawan Kumar tiwari
>>
>>
>>  ___
>> Do not 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/ted.archibald%40gmail.com
>>
>> This email sent to ted.archib...@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/prabier%40icloud.com
>
> This email sent to prab...@icloud.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Amazon EC

2014-06-30 Thread John Huss
All of these apps are stateless - no sessions.  Just web services backing
up native mobile apps and GWT web apps.

There is just a checkbox to enable session support, and it works.  The load
balancing is a lot more tricky if you have a high traffic website that is
using sessions.  At the least you will need a fair bit more capacity.  If
you can use persistent sessions and have a stateless load balancer (which
would probably require additional code) that would be ideal.  But for lower
traffic sites it probably doesn't matter.



On Sat, Jun 28, 2014 at 8:14 PM, Paul Hoadley  wrote:

> On 29 Jun 2014, at 11:01 am, John Huss  wrote:
>
> Yes, with a couple WO apps and a couple non WO apps.  There are some
> things to learn, like configuring the firewall rules (security groups) but
> it's very nice.
>
>
> I had a look at it when it first came out, trying to get a WO app launched
> as a WAR, but never succeeded.  (Didn’t try very hard—was just seeing if it
> was feasible.)  It’s good to know it’s possible, maybe I’ll look at it
> again at some stage.
>
> How do you handle sessions, especially if auto-scaling is involved?
>
>
> --
> 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: Amazon EC

2014-06-27 Thread John Huss
Amazon's Elastic Beanstalk is the easiest way to deploy, provided you can
package your app as a .war file.  You just upload your app and tell how
many servers to use and where your database is and you're done.  And it can
auto-scale if you want.

Use RDS for your database.

John


On Fri, Jun 27, 2014 at 7:04 AM, Paul Hoadley  wrote:

> Hi Gino,
>
> On 27/06/2014, at 8:11 PM, Gino Pacitti  wrote:
>
> > I want to move one of my clients to AmazonEC but there seems to be a
> whole array of choices..
> >
> > I need to have a machine running monitor routing instance requests to 2
> or more servers that can then read/write to a separate database server so I
> was thinking of a set of 4 servers. It might need to grow with additional
> instances…
> >
> > Any suggestions?
>
> There are a number of groups represented on this list, including Logic
> Squad, that have been deploying WebObjects apps on AWS for years.  What
> you've described above is perfectly feasible.  Let us know if you have any
> more specific questions.  There's a Wiki page on deploying on EC2:
>
> http://wiki.wocommunity.org/display/documentation/Deploying+on+Amazon+EC2
>
> Note the last-modified date, though—it may be a little stale.  We use our
> own fairly customised scripts and workflows (as, I imagine, does everyone
> else), but that's probably a reasonable place to start exploring the idea.
>
>
> --
> 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: ERXKey not added to model class files

2014-06-25 Thread John Huss
You have to enter _WonderEntity.java for the superclass template.


On Wed, Jun 25, 2014 at 8:10 AM, Pascal Robert  wrote:

> Maybe I have not done enough WO dev in the last 12 months, but if I
> remember well, the ERXKey variables were automatically added to the
> generated EO class files? Because my new project doesn't. Eclipse 3.8.2
> with WOLips 3.7.20130521.41.
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: basic use of migrations with MySQL...

2014-06-24 Thread John Huss
Sorry, I missed the snippet of code you are using that has the problem.


On Tue, Jun 24, 2014 at 2:59 PM, Ray Kiddy  wrote:

>
> I should have been using migrations for a long time, but I have not. I
> have just never had the time to add another thing that might break. But
> you know. But I thought I knew the theory of it.
>
> So, the only place I am seeing basic documentation on the wocommunity
> site is in the page on creating an ERRest application. Is this right?
> Did I miss something? I know there have been WOWODC presentations, but
> that is not completely a replacement for a simple how-to document.
>
> But starting out, migrations seemed pretty easy to use. Ok, setting the
> encoding of the tables to latin1 instead of utf-8 was not amazingly
> helpful, but I can deal.
>
> But then I tried my first table change, as opposed to a create.
>
> alter table foo_table null column1 column2 varchar(10);
>
> Hm. Not helpful. I guess falling back to reasonable defaults is not
> what happens here. I tried adding things to my classpath, such as the
> Wonder MySQL plugin framework. No difference.
>
> So, I now use my migration java sources as a convenient place for the
> comments which give me the SQL I have to execute manually to make this
> work. This is probably not the best use of this feature, though.
>
> Any obvious things I am missing before I try to debug this and,
> perhaps, put some basic documentation on the site?
>
> thanx - ray
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: any reason not to be building Utilities/NSFoundation?

2014-06-07 Thread John Huss
It's an open source implementation of NSFoundation.  It's not really
intended for WO so much as for Android or GWT - places where you can't
legally use apples jar.
On Jun 6, 2014 7:38 PM, "Chuck Hill"  wrote:

>  I have no idea what that is then.
>
>   On 2014-06-06, 5:29 PM, "Ray Kiddy" wrote:
>
>   On Fri, 6 Jun 2014 23:49:54 +
> Chuck Hill  wrote:
>
>  IIRC, it is a manual build and the jar is then added to ERJars.
>
>
>  I am not sure that makes sense.
>
>  The contents of the Utilities/NSFoundation project seem to be the same
> as the contents of Q's repo:
>
>https://github.com/qdolan/NSFoundation4J
>
>  The contents of the jar file here:
>
>~/Roots/ERJars.framework/Resources/Java/ERFoundation.jar
>
>  seem to be different. There are fewer classes in ERFoundation than in
> the NSFoundation project. And there are classes in ERFoundation which
> have no corresponding java file in Wonder.
>
>  So what the heck this means, I have no idea. O well. Whatever.
>
>  - ray
>
>
>   On 2014-06-06, 4:37 PM, "Ray Kiddy" wrote:
>  This is not being built by ant in Wonder. I was just going to check in
> changes to build it. But then I thought I would check.
>  It is not in Archives. Any reason not to build it? Perhaps it was
> deliberately left out?
>  - ray
> ___
> Do not 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/chill%40global-village.net
>  This email sent to
> ch...@global-village.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/chill%40global-village.net
>
>  This email sent to ch...@global-village.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: EO advice

2014-06-06 Thread John Huss
On Fri, Jun 6, 2014 at 9:43 AM, Theodore Petrosky  wrote:

>
> so it seems to me that the answer is to use  awakeFromInsertion, but do
> the check to be sure that the global id is NOT temporary or rather, in my
> case put my relationship creation code in a block that first checks if the
> global id is temporary as I only want this to run when I create a new EO.
>
>
>  @Override
>   public void awakeFromInsertion(EOEditingContext ec) {
>   super.awakeFromInsertion(ec);
>   EOGlobalID gid = ec.globalIDForObject(this);
>
>
>   if(gid.isTemporary()) {
>
>
> for (Person aPerson: Person.fetchPersons(ec, Person.IS_PRIMARY.eq(
> true).and(Person.CURRENT.eq(true)), null)) {
>   ShowPerson.createShowPerson(ec, aPerson, this);
> }
>   }
>
>
>   }
>
>
Which is exactly what Wonder's awakeFromInsertion does for you so you can
just put your code in init.
 ___
Do not 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: EO advice

2014-06-06 Thread John Huss
Except awakeFromInsertion is buggy and replaced by init in Wonder:

/**
* used for initialization stuff instead of awakeFromInsertion.
* awakeFromInsertions is buggy because if an EO is deleted
* and then its EOEditingContext is reverted using 'revert' for example then
* EOF will -insert- this EO again in its EOEditingContext which in turn
* calls awakeFromInsertion again.
* /
protected void init(EOEditingContext ec)



On Fri, Jun 6, 2014 at 9:18 AM, Ken Anderson  wrote:

> Please read the relevant commandment - :)
>
>
> http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-The+EOF+Commandments
>
> Ken
>
> On Jun 6, 2014, at 10:17 AM, Theodore Petrosky  wrote:
>
> Why did you choose this method to override?
>
> Why do you not use the init method? Does the awake method happen later in
> the creation of the Entity?
>
> Ted
>
>
> On Jun 6, 2014, at 10:05 AM, Ken Anderson  wrote:
>
> Ted,
>
> I put this type of stuff in:
>
> public void awakeFromInsertion(EOEditingContext ec) {
> super.awakeFromInsertion(ec);
>
> // my code
> }
>
> Ken
>
> On Jun 6, 2014, at 9:51 AM, Theodore Petrosky  wrote:
>
> I am starting a project. a booking app for a theater. basically I want to
> assign all my primary players to a show date when I create a new show date
> (event).
>
> I could have 50 musicians, but only 10 are the primary players. my Person
> entity has a boolean 'isPrimary' to indicate that this person is a primary
> player.
>
> Entity ShowDate has a to many relationship to showPerson
> Entity Person has a to many relationship to showPerson
>
> In my init method of ShowDate I added:
>
>   public void init(EOEditingContext ec) {
> super.init(ec);
>
> for (Person aPerson: Person.fetchPersons(ec, Person.IS_PRIMARY.eq(true
> ).and(Person.CURRENT.eq(true)), null)) {
>   ShowPerson.createShowPerson(ec, aPerson, this);
> }
>   }
>
> This is working beautifully. When I create a new ShowDate, I get all the
> primary musicians added to the date.
>
> am I stepping on myself? Since the init method is only called when we
> create a new instance of an entity, this can only get called once, yes?
> There isn't a betterer (that's real good english) way? Or a more WO
> prescribed way?
>
> I am making this up as I go and when I stumble across a method that works,
> I question when it is so easy.
>
> 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/kenlists%40anderhome.com
>
> This email sent to kenli...@anderhome.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Can we use servlet API in webobjects

2014-05-28 Thread John Huss
On Wed, May 28, 2014 at 3:27 AM, Butchi Reddy Velagala <
v.butchire...@gmail.com> wrote:

> Hi all,
>Good day Wishes !!
>
>   We would like to use servlet API in webobjects. Because we need to
> call third party api method with HttpServletRequest and HttpServletResponse
> as parameters.
>
> Now we are accepting the DirectAction request and we need to call that
> third party api. So we need to convert the WORequest to HttpServletRequest
> in DirectAction. *But we don't want to deploy this application in other
> servers.* We should have to deploy this only in webobjects.
>
> So please let me know, how to convert WORequest to HttpServletRequest
> or else the other choice.
>

Whatever library you are using should provide an API that does not require
HttpServletRequest.  For example, GWT has some built-in servlet classes,
but these are just thin wrappers around another API that doesn't depend on
the servlet API.  Other projects should be the same.

Besides WO there are other more popular frameworks (like Play in
particular) that don't use servlets, so library vendors should respect that
fact.

The direct answer is you'll have to get a jar with the implementation of
the servlet api and do the conversion manually.  But don't.


>
> Thanks & regards,
> Butchi Reddy Velagala
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: implementing HTTPServlet with WebObjects

2014-05-27 Thread John Huss
You can get the WOServletContext and the WOServletRequest from the userInfo
in the WORequest using these keys:

aRequest.userInfo().get("HttpServletRequest")
aRequest.userInfo().get("HttpServletResponse")
aRequest.userInfo().get("ServletConfig")
aRequest.userInfo().get("ServletContext")

While using strings in this way is somewhat questionable, at least you
don't have to worry about a future release of WO changing it.

If you just need the ServletContext you would be better off subclassing
ERXServletAdaptor and overriding init().  But if you do that you'll have to
change the web.xml file during the build process to reference your
subclass.  In the "ssdd" target add a line to do a string replace:

 





On Tue, May 27, 2014 at 9:36 AM, John Huss  wrote:

> Yes, WOServletAdaptor (or ERXServletAdaptor) is just an HttpServlet class
> that forwards to the regular WO stack.
>
> If you need to serve your static web server resources through the app
> also, or if you need to add other servlets or filters within the same app,
> then you have to change the build.xml a bit.
>
>
> On Tue, May 27, 2014 at 3:47 AM, Butchi Reddy Velagala <
> v.butchire...@gmail.com> wrote:
>
>> Hi All,
>>
>>  We have a requirement to implement the HttpServlet interface in
>> webobjects application. We all know that "WebObjects applications can be
>> deployed as servlets inside a servlet container". But our requirement is to 
>> *deploy
>> the servlet application in webobjects server*.
>>
>> Please clarify me on the following.
>>   * Do we have servlet container inside our webobjects server?
>>   * Can we implement HttpServlet interface in webobjects applications?
>>
>> Thanks in advance,
>> Butchi Reddy Velagala
>>
>>  ___
>> Do not 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/johnthuss%40gmail.com
>>
>> This email sent to johnth...@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: How to create a non-web EOF application

2014-04-25 Thread John Huss
In your main method do this:

 ERXExtensions.initApp(Application.class, new String[0]);

OR this

ERXExtensions.initEOF(new String[0]);

Having an Application class is weird since you don't need it, but there are
a few places where things can break if WOApplication.application() returns
null.  I'd start with the initEOF call and switch to initApp if it blows up.




On Fri, Apr 25, 2014 at 9:43 AM, John Pollard  wrote:

> Hi List,
>
> What is the sensible way to create a new application in Eclipse that uses
> EOF and a model, plus draws on Wonder bits and bobs, but isn't a web app
> i.e. has no web front end? I think Eclipse once had an EOF Application
> type, or I may have mis-remembered that.
>
> I can create a new Wonder app in eclipse and just not have any request /
> responses and launch my code from Application(), but that feels a bit
> wrong. I don't want it to talk to wotaskd or be started from JavaMonitor.
>
> Thanks in advance.
>
> John
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread John Huss
Are you restarting the app server or just uninstalling the war?  You have
to restart the server I think.


On Thu, Apr 24, 2014 at 7:59 AM, Matthias Jakob  wrote:

> Hi Theodore,
> thank you for your help!
>
> - WebSphere or Glassfish its the same.
> - Microsoft SQL Server
> - Remote Server
> - second start with deleted Tables - no connection on Startup!!?!?
>
> - Only _dbupdater and my single demo Table was deleted … No Database Drop
> … its already there ...
>
> ;-(
>
> Its really strange …
>
> Matthias
>
>
> Am 24.04.2014 um 14:52 schrieb Theodore Petrosky :
>
> > what is the deployment environment?
> > what database?
> > is the database on the same machine?
> > what do the logs of the database say? (can you increase the logging to
> verbose?)
> > at least then you would know if your app is trying to talk to the
> backend.
> >
> > migrations can not create the database. it must exist (empty or if not,
> the migration table should be at the correct level [you are specifying 0])
> >
> >
> >
> > On Apr 24, 2014, at 8:23 AM, Matthias Jakob  wrote:
> >
> >> Thank you David, John,
> >>
> >> Tested and found out that the first deployment on a fresh server works
> fine with migrations. Uninstall WAR Application, delete Tables, Install
> again - start - no migrations are executed  ;-(
> >> Glassfish, Websphere same behavior ...
> >>
> >>
> >> Why? Confused ;-(
> >>
> >> Thank you,
> >> Matthias
> >>
> >>
> >> Am 23.04.2014 um 20:29 schrieb David Avendasora <
> webobje...@avendasora.com>:
> >>
> >>> I may be incorrect, but I don’t think migrations have ever been able
> to *create* a database. I think you have always needed the DB to exist
> first, then migrations can create schemas, tables, constraints, etc.
> >>>
> >>> It has been a long time since I tried to start from scratch, so it is
> entirely possible that I’m completely wrong. :-) (shocking, I know)
> >>>
> >>> Sir Socks
> >>>
> >>>
> >>>
> >>> On Apr 22, 2014, at 6:22 PM, Matthias Jakob  wrote:
> >>>
>  Hi there!
>  I’ve got a problem with my web.xml JNDI JDBC entry in Servlet
> Deployment and migrations.
> 
>  Using the web.xml entry
> 
>  
>  MS SQL Server
>  jdbc/TEST
>  javax.sql.DataSource
>  Container
>  Shareable
>  
> 
>  It works fine with an already created database  and a „Properties"
> database config.
>  With an already created database and a switch from properties to JNDI
> JDBC all is fine ;-) (database operations are done ..)
> 
>  But if I clean my DB and start form zero, no migration is done with
> JNDI/JDBC entry?
> 
>  It’s an ERXApplication, the properties are right I think:
> 
>  # Migrations
>  er.migration.migrateAtStartup=true
>  er.migration.createTablesIfNecessary=true
>  er.migration.modelNames=Test
> 
> er.extensions.migration.ERXMigration.useDatabaseSpecificMigrations=false
> 
>  Test.InitialMigrationVersion=0
>  Test.MigrationClassPrefix=xx.xx.Test
> 
>  JNDI JDBC is a must have, because of a large deployment environment,
> properties conf is not an option ;-(
> 
>  What is wrong, what can I do to fix the problem?
> 
> 
>  Please help!
> 
>  Matthias
>  ___
>  Do not 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/webobjects%40avendasora.com
> 
>  This email sent to webobje...@avendasora.com
> >>>
> >>>
> >>> —
> >>> WebObjects - so easy that even Dave Avendasora can do it!™
> >>> —
> >>> David Avendasora
> >>> Senior Software Abuser
> >>> Nekesto, Inc.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >> ___
> >> Do not post admin requests to the list. They will be ignored.
> >> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> >> Help/Unsubscribe/Update your Subscription:
> >>
> https://lists.apple.com/mailman/options/webobjects-dev/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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-22 Thread John Huss
I think the migrations are run in Application.finishInitialization, but I
could be wrong.  So make sure you are calling super if you are overriding
it.  You could at ERXApplication to find where it is called.

The simple solution is to turn off "migrateAtStartup" and just add a call
to run them yourself.


On Tue, Apr 22, 2014 at 5:22 PM, Matthias Jakob  wrote:

> Hi there!
> I’ve got a problem with my web.xml JNDI JDBC entry in Servlet Deployment
> and migrations.
>
> Using the web.xml entry
>
> 
> MS SQL Server
> jdbc/TEST
> javax.sql.DataSource
> Container
> Shareable
> 
>
> It works fine with an already created database  and a „Properties"
> database config.
> With an already created database and a switch from properties to JNDI JDBC
> all is fine ;-) (database operations are done ..)
>
> But if I clean my DB and start form zero, no migration is done with
> JNDI/JDBC entry?
>
> It’s an ERXApplication, the properties are right I think:
>
> # Migrations
> er.migration.migrateAtStartup=true
> er.migration.createTablesIfNecessary=true
> er.migration.modelNames=Test
> er.extensions.migration.ERXMigration.useDatabaseSpecificMigrations=false
>
> Test.InitialMigrationVersion=0
> Test.MigrationClassPrefix=xx.xx.Test
>
> JNDI JDBC is a must have, because of a large deployment environment,
> properties conf is not an option ;-(
>
> What is wrong, what can I do to fix the problem?
>
>
> Please help!
>
> Matthias
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Linking iOS and WebObjects

2014-02-27 Thread John Huss
I've not used it.  It looks very convenient, however, this sort of approach
does have pitfalls - mainly that firing a faulted relationship results in a
network request and it will probably run on the main thread unless you're
being very careful.  It is sort of a mine field that way.  I would much
rather explicitly fetch data as needed.


On Thu, Feb 27, 2014 at 3:00 AM, Mark Wardle  wrote:

> Related to this, has anyone used NSIncrementalDataStore as the glue
> linking core data to the remote API?
>
> Mark
>
> On 20 Feb 2014, at 09:59, Mark Wardle  wrote:
>
> Wow Ken - that sounds fantastic.
>
> I'm just at the early stages - but would rather work on something more
> generic than a quick-and-dirty model-specific solution - but was going to
> go for latter due to time constraints... perfection being enemy of the
> productive...
>
> Mark
>
> On 18 Feb 2014, at 22:56, Ken Anderson  wrote:
>
> Mark,
>
> I built a library on both iOS and WO that syncs a data model between the
> 2.  It has some pretty decent features, like you can define an ownership
> key path on the server side, and only those EO's owned by the person
> syncing are sent over.
>
> It's not really documented yet or anything, but I could probably put
> something together to share.
>
> The big difference between mine and other sync mechanisms is I don't keep
> a log of everything to send to everybody (my data model is big, so it would
> get painful).  Also, it's reasonably smart about doing things offline (like
> maintaining relationships even when a number of transactions have happened
> on the device without an internet connection).
>
> Let me know if this interests you enough for me to spruce it up.
>
> Ken
>
> On Feb 18, 2014, at 3:51 PM, Mark Wardle  wrote:
>
> Hi. Glad it is a common use-case. Not sure if you have misunderstood my
> intentions but I was asking for advice rather than planning a super-duper
> automatic EOF to obj-c/core data magic converter - although I had hoped
> someone else had already invented such a wonder (no pun intended).
>
> Am experimenting with the iOS library RestKit which I think can make a
> core data model from what it receives from a REST service automagically... I
> think...
>
> Mark
> On 14 Feb 2014, at 14:41, Jesse Tayler  wrote:
>
>
> FANTASTIC!
>
> yes, ERSync is not going to work for the main question which is how to
> store a local object graph that loads as the user sees things, and keep it
> updated while still being able to rationally send data back to the server
> in a way that can handle offline or poor network conditions etc.
>
> ERRest is SUPER-FAB for being the server of an iPhone client and there's
> quite a few tricks we can and should compile together.
>
> So, definitely call upon me to have something to say about all this and
> I've been at it a few years now, so I have gone through all this at least
> once or twice.
>
> greatly looking forward!
>
> jess
>
>
>
>
> On Feb 14, 2014, at 9:37 AM, Mark Wardle  wrote:
>
> Hi all,
>
> I am starting to work on a new presentation layer for our web application
> using the iOS SDK. We plan on writing custom small iOS apps that integrate
> with the larger more complex backend web-application built in WebObjects.
>
> I can see ERSync but note it is not in Wonder yet. Is this still in
> development or is it ready for deployment? It certainly looks an easy way
> to get started.
>
> However, we might want more finely grained control anyway. We've been
> adding REST interfaces to the backend. Does anyone have any recommendations
> for an iOS client library to make this work trivial? I would think that we
> could create some stub object-graph in objective c that then gets sent to
> the server semi-automatically? Is there something that would take an
> EOModel and create a core data equivalent or skeleton classes?
>
> I can see various references on the mailing list but nothing on the wiki.
>
> Any pointers (*) much appreciated!
>
> Mark
> (*) you can tell I'm back to coding in C and not just using java (!)
> --
> Dr. Mark Wardle
> Consultant Neurologist, University Hospital Wales, Cardiff, UK
> Email: mark.war...@wales.nhs.uk or m...@wardle.org  Twitter: @mwardle
> Telephone: 02920745274 (secretary) or facsimile: 02920744166
>
>
>
>
>
> ___
> Do not 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/jtayler%40oeinc.com
>
> This email sent to jtay...@oeinc.com
>
>
>
> --
> Dr. Mark Wardle
> Consultant Neurologist, University Hospital Wales, Cardiff, UK
> Email: mark.war...@wales.nhs.uk or m...@wardle.org  Twitter: @mwardle
> Telephone: 02920745274 (secretary) or facsimile: 02920744166
>
>
>
>
>
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webo

Re: joda LocalDateTime

2013-11-15 Thread John Huss
JDBC still relies on java.sql.Timestamp, etc, which uses the system's time
zone when saving and loading data.  Usually the easiest solution is to set
the default time zone to UTC by adding a VM argument -Duser.timezone=UTC

Then when you need to display date times you can choose a different time
zone for display purposes explicitly.


On Thu, Nov 14, 2013 at 10:51 PM, Jeffrey Schmitz wrote:

> Hello List,
>A simple question about a time value (as if any quesiton about
> webobjects and time is simple :-)), I have a field I've defined using the
> jodaLocalDateTime prototype.  I was assuming that if I save the value 
> 2013-11-14T12:00:00.000
> to my EO, the database would save exactly that, using 12:00:00 for the
> time.  However when I go to the database, the actual time saved is 6:00:00,
> so obviously it is assuming the time I'm saving is in Greenwich time and
> converting it to Local time.  By the name, maybe that makes sense, but I
> was thinking LocalTime meant time zone free.
>
> What makes this more maddening is that when I go to display the time from
> my EO, it displays it as 6:00:00, so in essence, it's doing the conversion
> on the save, but not on the retrieve.  What am I missing here?
>
> Thanks!
> Jeff
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: EOAdaptorDebugEnabled issue in lastest WOLips43 ??

2013-10-24 Thread John Huss
Check your Run configuration in eclipse.


On Thu, Oct 24, 2013 at 9:10 AM, Raymond NANEON  wrote:

> Hi List,
>
> I updated my WOLips37 to WOLips43 since I'm on Kepler and I have an
> EOAdaptorDebugEnabled problem.
> In my parameters I turn it to false but nothing isn't applied. I have some
> SQL expressions in my console.
>
> Is there big changes in the new WOLips which create this issue? Or there
> is another parameter to check?
>
> Thanks
>
> Envoyé depuis iCloud
>
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Wonder and Java Client

2013-10-11 Thread John Huss
Yes, Wonder will work on the client.  But like David said it is somewhat of
a mine-field because the some code in Wonder is not client-safe, but you
won't know until it blows up.

Sounds like you already have a JavaClient app.  If so, go for it.  If
you're writing something new or are open to more change you would probably
be better off using Cayenne along with it's ROP support which is an
alternative to EOF for Java client apps.  It has bugs too, but probably not
as many as JavaClient and at least you can fix them.

John


On Fri, Oct 11, 2013 at 3:37 AM, John Pollard  wrote:

> Has anyone used any Wonder frameworks in a Java Client application?
> I have a long-standing JC app which uses Wonder on the server side, but
> not on the client side; what if anything from Wonder might be useful on the
> client?
>
> These are the WO jars the client uses at present:
>
> 
> 
> 
> 
> 
> 
>
> Many thanks,
> John
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Help with updateValuesInRowDescribedByQualifier

2013-10-09 Thread John Huss
This is an optimistic locking error - the record was changed by another
user concurrently or you have precision differences (like in NSTimestamps)
that are causing the DB and memory to not match.


On Wed, Oct 9, 2013 at 8:59 AM, Jesse Tayler  wrote:

>
> what’s this? unknown source? caught my eye...
>
> at boise.app.components.PersonnelDetail.inviteUser(Unknown Source)
>
> yes, it does seem like maybe your model is out of sync, at least you’re
> not getting much information back about it in the trace.
>
> did you turn on SQL debugging and generally check out that method
> inviteUser?
>
>
>
> On Oct 9, 2013, at 9:52 AM, Paul Yu  wrote:
>
> > Greetings
> >
> > I'm getting errors like this in my production system.  What should I be
> looking for to fix these type of issues?  I saw a previous post that the
> EOModel may be out of synch with the DB?
> >
> > Thanks in advance...
> >
> > Paul
> >
> > *** UNCAUGHT EXCEPTION ***
> > com.webobjects.eoaccess.EOGeneralAdaptorException:
> updateValuesInRowDescribedByQualifier
> > er.extensions.jdbc.ERXJDBCAdaptor$Channel method failed to update row in
> database
> >   at
> com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java:4504)
> >   at
> com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6216)
> >   at
> com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
> >   at
> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
> >   at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176)
> >   at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)
> >   at boise.app.components.PersonnelDetail.inviteUser(Unknown Source)
> >   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >   at java.lang.reflect.Method.invoke(Method.java:597)
> >   at
> com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
> >   at
> com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
> >   at
> com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
> >   at
> com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
> >   at
> com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
> >   at
> com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
> >   at
> com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
> >   at boise.components.BoiseComponent.valueForKeyPath(Unknown Source)
> >   at
> com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
> >   at
> er.extensions.components.ERXComponentUtilities.valueForBinding(ERXComponentUtilities.java:539)
> >   at
> er.extensions.components.ERXDynamicElement.valueForBinding(ERXDynamicElement.java:161)
> >   at
> er.ajax.AjaxSubmitButton.handleRequest(AjaxSubmitButton.java:330)
> >   at er.ajax.AjaxSubmitButton.invokeAction(AjaxSubmitButton.java:320)
> >   at
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> >   at
> er.extensions.components.conditionals.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:116)
> >   at
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> >   at
> er.extensions.components.conditionals.ERXWOConditional.invokeAction(ERXWOConditional.java:108)
> >   at
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> >   at
> er.extensions.components.conditionals.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:116)
> >   at
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> >   at
> er.extensions.components.conditionals.ERXWOConditional.invokeAction(ERXWOConditional.java:108)
> >   at
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> >   at
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> >   at
> er.extensions.components._private.ERXWOForm.invokeAction(ERXWOForm.java:218)
> >   at
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> >   at
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> >   at
> er.ajax.AjaxDynamicElement.invokeAction(AjaxDynamicElement.java:50)
> >   at
> er.ajax.AjaxUpdateContainer.invokeAction(Aj

Re: Bulding a true war

2013-10-04 Thread John Huss
The default build.xml file (non-maven) you get with a new Wonder
Application contains a war target.  It should just work.


On Thu, Oct 3, 2013 at 10:13 PM, Gintautas Sulskus  wrote:

> Hello all,
>
> I am trying to build a true WebObjects WAR. Unfortunately, no luck so far.
>
> Is this tutorial is still valid?
>
> http://wiki.wocommunity.org/display/WOL/Packaging+WO+Applications+as+true+WAR+with+Maven
>
> So now I have a maven project that builds my app.jar and packages it into
> a war (including ALL libraries).
>
> Initial project was created with archetype plugin as woapplication with
> true war support.
>
> Please, could you provide me with any hints what may went wrong. I would
> really appreciate more documentation on this.
>
> I followed the steps closely and bumped into a few exception while
> deploying on JBOSS AS 1.7:
>
> 03:59:22,894 INFO  [stdout] (MSC service thread 1-7) MainBundle will be
> set to projext_X
> 03:59:23,005 ERROR [stderr] (MSC service thread 1-7) [2013-10-4 3:59:23
> BST]  Couldn't load properties file:
> /Users/user/WebObjects.properties at path: /Users/user
> 03:59:23,009 ERROR [stderr] (MSC service thread 1-7)
> java.lang.reflect.InvocationTargetException
> 03:59:23,010 ERROR [stderr] (MSC service thread 1-7) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 03:59:23,010 ERROR [stderr] (MSC service thread 1-7) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 03:59:23,010 ERROR [stderr] (MSC service thread 1-7) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 03:59:23,011 ERROR [stderr] (MSC service thread 1-7) at
> java.lang.reflect.Method.invoke(Method.java:597)
> 03:59:23,016 ERROR [stderr] (MSC service thread 1-7) Caused by:
> java.lang.NullPointerException
> 03:59:23,016 ERROR [stderr] (MSC service thread 1-7) at
> com.webobjects.appserver.WOApplication.primeApplication(WOApplication.java:618)
> 03:59:23,017 ERROR [stderr] (MSC service thread 1-7) at
> com.webobjects.appserver.WOApplication.primeApplication(WOApplication.java:675)
> 03:59:23,017 ERROR [stderr] (MSC service thread 1-7) ... 19 more
>
> 03:59:23,017 INFO
>  
> [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/project_X]]
> (MSC service thread 1-7) Marking servlet WOServletAdaptor as unavailable
> 03:59:23,018 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/project_X]]
> (MSC service thread 1-7) Servlet /project_X threw load() exception:
> javax.servlet.UnavailableException: Error initializing servlet adaptor: null
>  at
> com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServletAdaptor.java:442)
> [JavaWOJSPServlet-5.4.3.jar:5.4.1]
>
> Best Regards,
> Gintautas Sulskus
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: The coming WOpocalypse?

2013-08-16 Thread John Huss
I just means you won't be able to use JDK9 to compile your WO apps that
have to run on Java 1.5.  If you are running with a new version of Java
there is no problem.  Or if you use an older compiler, there is no problem.
 Wonder has already deprecated support for 1.5, so I don't see any issue.
 The release date for JDK9 is like 2015.


On Fri, Aug 16, 2013 at 11:58 AM, Ramsey Gurley wrote:

> I should add, I assume that
>
> "Under this policy, javac will still be able to recognize and process
> class files of all previous JDKs, going back to version 45.3 class files
> generated by JDK 1.0.2, which first shipped in 1996."
>
> means we will be fine, but thought I would ask :)
>
> On Aug 16, 2013, at 9:54 AM, Ramsey Gurley wrote:
>
> > It's been too long since there was a "WO is dead!!" thread, so let me
> beat the bushes here. I read this recently
> >
> > http://openjdk.java.net/jeps/182
> >
> > Which made me wonder what version WO is compiled in..
> >
> > jar xf javafoundationcopy.jar
> > file ./com/webobjects/foundation/NSTimestamp.class
> > ./com/webobjects/foundation/NSTimestamp.class: compiled Java class data,
> version 49.0 (Java 1.5)
> >
> > So does this mean that apps reliant on WO 5.4.3 will no longer compile
> after JDK 8?
> >
> > Ramsey
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>
> This email sent to johnth...@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: ERXEC question

2013-08-12 Thread John Huss
No, what you described is the standard behavior.  Wonder (ERXEC) provides a
way to include the unsaved changes if you desire, but this is not the
default/standard.


On Mon, Aug 12, 2013 at 2:31 PM, Lars Sonchocky-Helldorf <
lars.sonchocky-helld...@xyrality.com> wrote:

> So you're suggesting that the behavior we are seeing here is specific to
> ERXECs and not to "normal" ECs?
>
> cheers,
>
> Lars
>
> Am 12.08.2013 um 21:26 schrieb Dev WO :
>
> > Hi Lars,
> >
> > You could overwrite (or create another) method
> "fetchAllPaymentCustomers" to apply:
> > setIncludeEditingContextChanges(true)
> >
> > I recall a discussion about this stating it was "on purpose" that Wonder
> doesn't do it by default. So you have to manually deal with it that way you
> actually know you are manipulating objects that may not all already be
> committed to the datastore.
> >
> > Xavier
> >
> >
> > On 12 août 2013, at 19:37, Lars Sonchocky-Helldorf <
> lars.sonchocky-helld...@xyrality.com> wrote:
> >
> >> Hi list,
> >>
> >> we are creating a new EO and insert it into an ERXEC like this:
> >>
> >> public static PaymentCustomer createPaymentCustomer(EOEditingContext
> editingContext, Integer creditScore, String fullQualifiedClassName, Integer
> ingameId)
> >> {
> >>   PaymentCustomer eo = (PaymentCustomer)
> EOUtilities.createAndInsertInstance(editingContext,
> _PaymentCustomer.ENTITY_NAME);
> >>   eo.setCreditScore(creditScore);
> >>   eo.setFullQualifiedClassName(fullQualifiedClassName);
> >>   eo.setIngameId(ingameId);
> >>   return eo;
> >> }
> >>
> >> later we want to access this EO like this (before calling savingChanges
> of the ERXEC, the edtingContext is the same):
> >>
> >> NSArray paymentCustomerTest =
> PaymentCustomer.fetchAllPaymentCustomers(this.editingContext());
> >>
> >> this results in an empty NSArray.
> >>
> >>
> >> Debugging this code revealed that there's nothing in _insertedObjects
> of this ERXEC but in _unprocessedInserts. When calling
> processRecentChanges() of this ERXEC before "fetching" everything works
> like expected.
> >>
> >>
> >> My Question now is: why is this call to processRecentChanges()
> necessary at all and is it the right solution for our problem?
> http://comments.gmane.org/gmane.comp.web.webobjects.devel/24056 seems to
> suggest otherwise. So what would be "the right thing to do™"?
> >>
> >>
> >> best regards,
> >>
> >>  Lars
> >> ___
> >> Do not 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/webobjects%40anazys.com
> >>
> >> This email sent to webobje...@anazys.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: @Override of EO?

2013-08-02 Thread John Huss
You can override didInsert in your Poster EO class.


On Fri, Aug 2, 2013 at 1:39 PM, Jesse Tayler  wrote:

>
> it likely should be another way entirely, but I don’t think the primary
> key would be already set at that time unless I saved changes during the
> relationship setter which might be both dangerous and obtuse.
>
>
>
> On Aug 2, 2013, at 2:25 PM, Theodore Petrosky  wrote:
>
> > the awake method may be better, but shouldn't this be
> >
> > but you would have to override the original signature.
> >
> > public void setPoster(com.something.Poster value) {
> > NSLog.out.appendln("  com.something.Poster this is the override " +
> value);
> > takeStoredValueForKey(value, _Poster.POSTER_KEY);
> > }
> >
> > I just played with this and it works. But I'm willing to bet there is a
> good reason (that I don't know) not to do it.
> >
> > Ted
> >
> > On Aug 2, 2013, at 1:21 PM, Jesse Tayler  wrote:
> >
> >>
> >> I have an override of a normal EO setter, but for some reason, it isn’t
> called but the value does get updated
> >>
> >> I really just want to fire off a unix process once a new posterId has
> been set, so maybe there’s a smarter way but I thought this would be
> reliably called once and only after there’s a known primary key id for that
> poster (ERAttachment)
> >>
> >> Any thoughts on that?
> >>
> >>
> >>@Override
> >>public void setPosterId(Integer value) {
> >>
> >>
> >>
> >>
> >> ___
> >> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Snow Leopard, Java 1.7, WebObjects

2013-07-31 Thread John Huss
# JVM  == /System/Library/Frameworks/JavaVM.framework/Versions/
Current/Commands/java
(which points to java 1.7)

You know the pound sign means this line is commented out, right?


On Wed, Jul 31, 2013 at 12:48 AM, Johan Henselmans wrote:

>
> Op 30 jul. 2013, om 19:10 heeft Gavin Eadie  het
> volgende geschreven:
>
> > On Jul 30, 2013, at 5:21 AM, Johan Henselmans  wrote:
> >
> >> Unsupported major.minor version 51.0
> >
> > It means that you compiled your classes under a specific JDK, but then
> try to run them under older version of JDK. So, you can't run classes
> compiled with JDK 6.0 under JDK 5.0. The same with classes compiled under
> JDK 7.0 when you try to run them under JDK 6.0.
>
> Thanks Gavin, I understood that, I know I am running 1.6 VM.
>
> The question was why it did not run with a 1.7 VM.
> I added
> # JVM  ==
> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
> (which points to java 1.7)
> to MacOSClasspath.txt in the MacOS folder, the logging shows that the
> arguments it is using for firing up is indeed
> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
> and still it is displaying this Unsupported major.minor version.
>
> I seems that, although wotaskd displays the correct arguments for starting
> up the application, it actually uses a different way to fire up the app.
>
> If I start up the app from the command-line it runs with java 1.7.
>
> I am lost.
>
> > ___
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-deploy mailing list  (webobjects-dep...@lists.apple.com)
> > Help/Unsubscribe/Update your Subscription:
> >
> https://lists.apple.com/mailman/options/webobjects-deploy/johan%40netsense.nl
> >
> > This email sent to jo...@netsense.nl
>
> Johan Henselmans
> jo...@netsense.nl
>
>
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-deploy mailing list  (webobjects-dep...@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-deploy/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Apple developer site hacked, looks like Java data structures being involved

2013-07-22 Thread John Huss
Wow, Apple is using GWT, and even GWT-RPC!  I didn't know that.


On Mon, Jul 22, 2013 at 10:29 AM, David LeBer
wrote:

> Or an issue with what information is accessible without auth/privs through
> calls to the rpc service gwt is talking to.
>
> D
>
> --
> David LeBer
> Codeferous Software
>
> On 2013-07-22, at 10:41 AM, Ken Anderson  wrote:
>
> > I agree - seems like an issue around GWT.
> >
> > On Jul 22, 2013, at 10:39 AM, Jean-François Veillette <
> jean_francois_veille...@yahoo.ca> wrote:
> >
> >> It look like a RPC communication stream between the client (?GWT?) and
> server.
> >>
> >>
> >> Le 2013-07-22 à 04:06, Helmut Tschemernjak  a écrit :
> >>
> >>> I just watched this video and can see some data structures related to
> Java.
> >>> http://www.youtube.com/watch?v=q000_EOWy80
> >>>
> >>> So far I don't know if it is related to WebObjects, does somebody else
> know more?
> >>>
> >>> In case it is WO related we need to get active.
> >>>
> >>> Regards
> >>>
> >>> Helmut
> >>
> >>
> >> ___
> >> Do not 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/kenlists%40anderhome.com
> >>
> >> This email sent to kenli...@anderhome.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/dleber_wodev%40codeferous.com
> >
> > This email sent to dleber_wo...@codeferous.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Same value with different precision causes database updates

2013-07-16 Thread John Huss
I would just override takeStoredValueForKey in your EOs base class, or
change the setters for these fields in your EO template.

On Tuesday, July 16, 2013, Henrique Prange wrote:

> Hi all,
>
> Is there a general way to make EOF use the compareTo method for
> BigDecimals instead of equals? I'm having problems with a property of
> precision 10. Because of the way the value is formatted, EOF always trigger
> an update even though the values are the same (and not changed by anyone).
>
> Cheers,
>
> Henrique
>
 ___
Do not 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: Compiling Apache adaptor on Mac OS X 10.8

2013-07-15 Thread John Huss
You mean the XCode beta?  It's not final, so it's not surprising that it's
not supported yet.  I would suspect there is still a way to get gcc even if
it isn't installed by default anymore.


On Mon, Jul 15, 2013 at 2:14 PM, Samuel Pelletier  wrote:

> If I specify only CGI, it build. Any other fail with the errors I quoted.
>
> The build script probably broke with the xCode release that removed gcc
> many months ago. It just seems people are not compiling adaptor often.
>
> Samuel
>
> Le 2013-07-15 à 13:00, John Huss  a écrit :
>
> Try this  - from BuildingInstructions.html:
>
>1. Select the adaptor that you want to build by editing the ADAPTORS 
> variable
>in make.config. You can build multiple adaptors for different web
>servers at the same time.
>
>
>
> On Mon, Jul 15, 2013 at 11:19 AM, Samuel Pelletier wrote:
>
>> Hi,
>>
>> I try to compile an Apache adaptor on Mac OS X 10.8 with the xCode 4.6
>> command line tools installed.
>>
>> The default make stop at FastCGI with an error:
>> lipo: can't figure out the architecture type of:
>> /var/folders/jz/k0w8zpfd7w7b04zt077cs114gn/T//ccc2vy1M.out
>>
>> If I go to the Apache2.2 directory and make, another error:
>> libtool: compile: unable to infer tagged configuration
>> libtool: compile: specify a tag with `--tag'
>>
>> In Apache 2.4, same error.
>>
>> I tried to add this --tag=CC thing that seems missing somewhere but I
>> cannot figure where it should be added. Adding it to a gcc line produce
>> another error:
>> cc1: error: unrecognized command line option "-ftag=CC"
>>
>> Is there someone who understand all these makefile and flags to help me
>> fix this?
>>
>> 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/johnthuss%40gmail.com
>>
>> This email sent to johnth...@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: Compiling Apache adaptor on Mac OS X 10.8

2013-07-15 Thread John Huss
Try this  - from BuildingInstructions.html:

   1. Select the adaptor that you want to build by editing the
ADAPTORS variable
   in make.config. You can build multiple adaptors for different web
   servers at the same time.



On Mon, Jul 15, 2013 at 11:19 AM, Samuel Pelletier wrote:

> Hi,
>
> I try to compile an Apache adaptor on Mac OS X 10.8 with the xCode 4.6
> command line tools installed.
>
> The default make stop at FastCGI with an error:
> lipo: can't figure out the architecture type of:
> /var/folders/jz/k0w8zpfd7w7b04zt077cs114gn/T//ccc2vy1M.out
>
> If I go to the Apache2.2 directory and make, another error:
> libtool: compile: unable to infer tagged configuration
> libtool: compile: specify a tag with `--tag'
>
> In Apache 2.4, same error.
>
> I tried to add this --tag=CC thing that seems missing somewhere but I
> cannot figure where it should be added. Adding it to a gcc line produce
> another error:
> cc1: error: unrecognized command line option "-ftag=CC"
>
> Is there someone who understand all these makefile and flags to help me
> fix this?
>
> 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Broken Javamonitor and wotaskd apps and builds.

2013-07-03 Thread John Huss
Personally, I can't see why you would want to get these apps from Maven
instead from the Jenkins build server.  The jenkins builds have all the
frameworks embedded.


On Wed, Jul 3, 2013 at 10:18 AM, Henrique Prange  wrote:

> Hi Greg,
>
> Wonder version of JavaMonitor and wotaskd are built with the
> skipAppleProvidedFrameworks option active. Which means that the WebObjects
> jars are not included in the final package. We decided to package Wonder
> applications this way to avoid overloading our servers space too fast.
>
> Anyway, I can change the Maven configuration for these applications if the
> community consider important to have those applications in the Maven
> repository.
>
> Cheers,
>
> Henrique
>
> On Jun 30, 2013, at 10:38 AM, G Brown  wrote:
>
> > Fun.
> >
> > Apple updates leads to broken Javamonitor and wotaskd.
> >
> > This was on an older snow leopard system, so I thought–after too much
> time of googling around–maybe it is time to use the updated Web objects
> community version of Javamonitor and wotaskd.
> >
> > Try 1:
> >
> > All these things should be built and downloadable from the nexus library
> (maven) . Should be easy, right? I go to the repository and download
> Javamonitor; move it into place, and then I look what's inside of it. No
> application, no wobootstrap, etc. All the wonder applications are built
> wrong in the maven repositories.
> >
> > Try 2:
> >
> > Well let's go back to the source and rebuild it. We switch to the 5.8
> release and try to compile. Something's broken, lots of errors with rest
> stuff. Build failed.
> >
> >
> > * wonder_5   e10c06a [pw/wonder_5] Wonder 5.8.2
> release. Commits from integration branch from October 09th 2012 to November
> 07th 2012.
> >
> >
> >
> > global.dummy:
> > [wocompile] Compiling 28 source files to /Users/gb/Roots/classes/ERRest
> > [wocompile]
> /Users/gb/SoftwareProjects/woprojects/wondergit/Frameworks/EOF/ERRest/Sources/er/rest/routes/ERXRouteRequestHandler.java:737:
> cannot find symbol
> > [wocompile] symbol  : method notEqual(java.lang.Class extends er.rest.routes.ERXRouteController>,java.lang.Class extends er.rest.routes.ERXRouteController>)
> > [wocompile] location: class org.apache.commons.lang.ObjectUtils
> > [wocompile]   boolean isDifferentController =
> ObjectUtils.notEqual(duplicateRoute.controller(), route.controller());
> > [wocompile]
>  ^
> > [wocompile]
> /Users/gb/SoftwareProjects/woprojects/wondergit/Frameworks/EOF/ERRest/Sources/er/rest/routes/ERXRouteRequestHandler.java:738:
> cannot find symbol
> > [wocompile] symbol  : method notEqual(java.lang.String,java.lang.String)
> > [wocompile] location: class org.apache.commons.lang.ObjectUtils
> > [wocompile]   boolean isDifferentAction =
> ObjectUtils.notEqual(duplicateRoute.action(), route.action());
> > [wocompile]  ^
> > [wocompile] Note:
> /Users/gb/SoftwareProjects/woprojects/wondergit/Frameworks/EOF/ERRest/Sources/er/rest/routes/ERXRouteRequestHandler.java
> uses unchecked or unsafe operations.
> > [wocompile] Note: Recompile with -Xlint:unchecked for details.
> > [wocompile] 2 errors
> >
> > BUILD FAILED
> > /Users/gb/SoftwareProjects/woprojects/wondergit/build.xml:12: The
> following error occurred while executing this line:
> >
> /Users/gb/SoftwareProjects/woprojects/wondergit/Build/build/build.xml:1377:
> The following error occurred while executing this line:
> >
> /Users/gb/SoftwareProjects/woprojects/wondergit/Build/build/build.xml:1368:
> The following error occurred while executing this line:
> >
> /Users/gb/SoftwareProjects/woprojects/wondergit/Build/build/build.xml:119:
> The following error occurred while executing this line:
> >
> /Users/gb/SoftwareProjects/woprojects/wondergit/Build/build/generic.xml:270:
> Compile failed; see the compiler error output for details.
> >
> > Total time: 17 seconds
> >
> >
> > Try 3:
> >
> > Maybe the web apps which Jenkins builds will work. What version they are
> who knows, and who knows if it will work with Snow Leopard and Java 6.
> Let's try! Download the items and put them in the right spot. Doesn't work.
> They have quarantine attributes, so I remove those from everything, and
> they still don't work. Looking closer inside, the woa/Javamonitor has the
> wrong permissions. _Appserver tries to run these applications, but root and
> wheel own them, so they don't run. I fixed the permissions and now they do
> run.
> >
> > Tomorrow I will try to figure out how to put these issues into the issue
> tracker; unless everything else breaks.
> >
> > G Brown
> > 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/hprange%40gmail.

Re: Good WO/Wonder way to react to different browsers?

2013-06-20 Thread John Huss
session().browser()

ERXBrowser


On Thu, Jun 20, 2013 at 2:36 PM, Ken Anderson wrote:

> All,
>
> Does anyone have a good formula for reacting to different browser?  If my
> WOApp is being used on mobile safari, I need to include URL scheme of my
> app so that a user can go directly to the app.
>
> Thanks for any thoughts, and hope to see many of you Saturday!
>
> Ken
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Webobjects-dev Digest, Vol 10, Issue 389

2013-06-17 Thread John Huss
On Monday, June 17, 2013, Johnny Miller wrote:

> Hi John,
>
> I definitely agree it's not the most efficient (or even an efficient) way
> to do it.  But the problem I'm trying to solve is how do you get one of the
> JavaScript frameworks to play nice with component actions?
>
> It seems like the dilemma is if you want an "app like" UI you need to
> completely buy into a solution that has a JavaScript client with a REST
> backend.
>

Yes, I suppose that's right.  But don't over-estimate the difficulty of
this task.  It's really not that difficult to get something simple working.
 If you want to go lightweight, on the server you just need a direct action
and a json library, like Gson for instance.  On the client JQuery makes it
pretty easy to make requests and transform page elements.  But prototype.js
(which the Ajax framework uses already) is fairly easy too.

 I'm just wondering if there is some kind of middle ground where you can
> enhance the existing Ajax framework which lets you use component actions
> and D2W to give it a little more app quality to it.  It'll never be as good
> as these other frameworks but it's an incremental improvement of what we
> have now.
>
>
> best,
>

To me this is a dead end.  The separation of client and server becomes more
the norm every day with native clients on iOS and Android taking over.
 Having a REST backend and a JavaScript frontend is really preferable in
that case because it makes everything consistent.

To address the specific implementation question - to use a component action
in Javascript all you need is a component action URL, which you can get by
calling context.componentActionURL (if memory serves) or by adding a
hidden wo:link or a WOGenericContainer.  Then you replace the /wo/ request
handler with the Ajax request handler (/ja/ or /ajax/) and fire off your
HTTP request.  Now you have Ajax component actions.


> Johnny
>
> On Jun 17, 2013, at 11:59 AM, John Huss  wrote:
>
> Making a server round-trip to update your UI in real time in response to a
> mouse event is, at best, inefficient.  This sort of thing should be done
> client-side (read: in javascript) unless you have a special security
> concern or an algorithm that can only realistically be performed on the
> server.
>
>
> On Mon, Jun 17, 2013 at 2:51 PM, Johnny Miller wrote:
>
> Thank you Samuel, that's very interesting.  On something like editing a
> pages document or a spreadsheet - do you think the browser sends every
> change to the server where the document's "state" is maintained?  Or do you
> think it builds the document locally and periodically sends the changes to
> the server?  I haven't tried it yet - do you know if you can work with the
> iCloud versions of iWork offline?
>
> As a side note (OK complete tangent) I've been thinking a lot about
> Project Wonder's Ajax framework and your comment kind of reminds me about
> an idea I had for creating an ajax element component.  The ajax element
> would work like the ajax slider where every change (even keystroke) sends a
> async request to the server to update the bound object with the new value.
>  Then the ajax element could broadcast a custom event to the other objects
> in the browser that it's value has changed.  Other ajax elements like ajax
> update containers could subscribe for that event and when they receive it
> initiate their own request to the server to see if their value has changed.
>  This way Wonder could imitate the bidirectional communication that you see
> in other frameworks i.e. http://montagejs.org/docs/data-binding.html
>
> Sorry to go off on a tangent like that but it's been what I've been
> thinking about this weekend and I haven't had anybody to discuss it with ;)
>
> Best,
>
> Johnny
>
>
> On Jun 17, 2013, at 4:34 AM, Samuel Pelletier  wrote:
>
> > The are many javascript libraries in the source, the credits part list
> Jison, Sizzle, BinaryAjax, Javascript EXIF Reader, Prototype, jQuery,
> Sproutcore and yui.
> >
> > For the server part, the Ajax url are not like WO urls. For such a large
> scale and very specialized deployment they probably have something very
> optimized for fast response with async server side processing of the
> validation and save to persistent storage. This way, you can batch many
> small transactions into a single IO intensive process. Almost every
> keystrokes create a request like google apps.
> >
> > Samuel
> >
> > Le 2013-06-16 à 15:25, Johnny Miller  a écrit :
> >
> >> Sproutcore?
> >>
> >>
> >>
> >> On Jun 16, 2013, at 6:29 AM, Ramsey Gurley 
> wrote:
> >>
> >>> 

Re: Webobjects-dev Digest, Vol 10, Issue 389

2013-06-17 Thread John Huss
Making a server round-trip to update your UI in real time in response to a
mouse event is, at best, inefficient.  This sort of thing should be done
client-side (read: in javascript) unless you have a special security
concern or an algorithm that can only realistically be performed on the
server.


On Mon, Jun 17, 2013 at 2:51 PM, Johnny Miller wrote:

> Thank you Samuel, that's very interesting.  On something like editing a
> pages document or a spreadsheet - do you think the browser sends every
> change to the server where the document's "state" is maintained?  Or do you
> think it builds the document locally and periodically sends the changes to
> the server?  I haven't tried it yet - do you know if you can work with the
> iCloud versions of iWork offline?
>
> As a side note (OK complete tangent) I've been thinking a lot about
> Project Wonder's Ajax framework and your comment kind of reminds me about
> an idea I had for creating an ajax element component.  The ajax element
> would work like the ajax slider where every change (even keystroke) sends a
> async request to the server to update the bound object with the new value.
>  Then the ajax element could broadcast a custom event to the other objects
> in the browser that it's value has changed.  Other ajax elements like ajax
> update containers could subscribe for that event and when they receive it
> initiate their own request to the server to see if their value has changed.
>  This way Wonder could imitate the bidirectional communication that you see
> in other frameworks i.e. http://montagejs.org/docs/data-binding.html
>
> Sorry to go off on a tangent like that but it's been what I've been
> thinking about this weekend and I haven't had anybody to discuss it with ;)
>
> Best,
>
> Johnny
>
>
> On Jun 17, 2013, at 4:34 AM, Samuel Pelletier  wrote:
>
> > The are many javascript libraries in the source, the credits part list
> Jison, Sizzle, BinaryAjax, Javascript EXIF Reader, Prototype, jQuery,
> Sproutcore and yui.
> >
> > For the server part, the Ajax url are not like WO urls. For such a large
> scale and very specialized deployment they probably have something very
> optimized for fast response with async server side processing of the
> validation and save to persistent storage. This way, you can batch many
> small transactions into a single IO intensive process. Almost every
> keystrokes create a request like google apps.
> >
> > Samuel
> >
> > Le 2013-06-16 à 15:25, Johnny Miller  a écrit :
> >
> >> Sproutcore?
> >>
> >>
> >>
> >> On Jun 16, 2013, at 6:29 AM, Ramsey Gurley 
> wrote:
> >>
> >>> I'm gonna go out on a limb and say, something closed source that they
> have no plan to ever share with us :-)
> >>>
> >>> On Jun 16, 2013, at 9:04 AM, Stavros Panidis wrote:
> >>>
>  Well, what is the technology Apple uses for iWork for iCloud?
> 
>  Stavros Panidis
> 
> > --
> >
> > Message: 7
> > Date: Sat, 15 Jun 2013 08:54:28 -0700
> > From: Chuck Hill 
> > To: Baiss Eric Magnusson 
> > Cc: WebObjectsDev 
> > Subject: Re: Can WOWODC folks make this happen some day
> > Message-ID: <1b9c50e3-f156-4538-baf2-e70a736a4...@global-village.net
> >
> > Content-Type: text/plain; charset=windows-1252
> >
> > I, for one, see no value in Obj-C WebObjects.  Server side, Java is
> where its at.
> >
> > Chuck
> >
> >
> > On 2013-06-15, at 8:09 AM, Baiss Eric Magnusson wrote:
> >
> >> Interesting discussion,
> >>
> >>  
> >>
> >> I would like it if WO went back to Objective-C. Eclipse is not
> happening.
> >>
> >>
> >> 
> >> Baiss Eric Magnusson
> >> Cascade Web Design
> >>
> >>
> >>
> >> ___
> >> Do not 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/chill%40global-village.net
> >>
> >> This email sent to ch...@global-village.net
> >
> > --
> > Chuck Hill
> > Executive Managing Partner, VP Development and Technical Services
> >
> > Practical WebObjects - for developers who want to increase their
> overall knowledge of WebObjects or who are trying to solve specific
> problems.
> > http://www.global-village.net/gvc/practical_webobjects
> >
> > Global Village Consulting ranks 13th in 2012 in BIV's Top 100
> Fastest Growing Companies in B.C!
> >
> > Global Village Consulting ranks 44th in 25th annual PROFIT 500
> ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
> 
> 
>  ___
>  Do not post admin requests to the list. They will be ignored.
>  Webobjects-dev mailing list  (Webobjects-de

Re: Wonder Issue: ERXServletAdaptor cannot find Properties file

2013-06-13 Thread John Huss
The number of WO people building with maven and deploying as a servlet is
probably 1 - i.e. you.  So bugs in this area would not be surprising.


On Thu, Jun 13, 2013 at 4:31 PM,  wrote:

>  Hi All,
>
> ** **
>
> Issue:  after upgrading  my web.xml file to use the ERXServletAdaptor
> instead of the WOServletAdaptor, I get a “Main bundle 'Properties' file
> can't be read” exception.
>
> ** **
>
> Note:  The application works with the WOServletAdaptor, so I believe
> everything is generally configured correctly.
>
> ** **
>
> Quick App Description:
>
> **· **WO:  5.4.3
>
> **· **Wonder:  6.1
>
> **· **Built using maven
>
> **· **Application class is an extension of ERXApplication
>
> **· **Packaged as a true war
>
> **o   **i.e. the Properties file is packaged inside a jar 
>
> ** **
>
> After looking at the collectMainProps method in ERXApplication, I got this
> working in a hacky way.  
>
> ** **
>
> To get it to work:
>
> **· **Unpacked my APP.war
>
> **· **cd WEB-INF/lib
>
> **· **mv APP-1.0-SNAPSHOT.jar APP.jar
>
> **· **repack my APP.war
>
> ** **
>
> Q:  is it possible that ERXServletAdaptor is not passing the correct
> mainBundle to the ERXApplication?
>
> ** **
>
> Q: is the a property that can be set to specify the mainBundle?
>
> ** **
>
> Q: other ideas?
>
> ** **
>
> Thanks,
>
> Mike
>
> ** **
>
> Exception:
>
> java.lang.reflect.InvocationTargetException
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 
>
> at java.lang.reflect.Method.invoke(Method.java:601)
>
> at
> com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServletAdaptor.java:421)
> 
>
> at
> com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdaptor.java:95)
> 
>
> at
> com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java:652)
> 
>
> at
> er.extensions.jspservlet.ERXServletAdaptor.init(ERXServletAdaptor.java:66)
> 
>
> at javax.servlet.GenericServlet.init(GenericServlet.java:160)
>
> at
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
> 
>
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
> 
>
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)**
> **
>
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
> 
>
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
> 
>
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> 
>
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)***
> *
>
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
>
> at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)
> 
>
> at
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)
> 
>
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)***
> *
>
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 
>
> at java.lang.Thread.run(Thread.java:722)
>
> Caused by: java.lang.ExceptionInInitializerError
>
> at
> com.webobjects.appserver.WOApplication.primeApplication(WOApplication.java:665)
> 
>
> ... 26 more
>
> Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file
> can't be read.  Did you run as a Java Application instead of a
> WOApplication in WOLips?
>
> Please post your deployment configuration in the Wonder mailing list.
>
> at
> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:769)
> 
>
> at
> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:666)
> 
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 
>
> a

Re: centos 6.2 - pulling my hair out

2013-05-08 Thread John Huss
> > In wotaskd.woa/Contents/Resources there is a file named SpawnOfWotaskd.sh
> > The default is this:
> > $@ 1>/dev/null 2>&1 &
>
> I'll try this next. Thanks for all the suggestions.
>
> > Change that to a real path and see if you get anything useful.
>

This will tell you why it is failing to launch.  Do this.
 ___
Do not 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: WOMetaRefresh anyone?

2013-05-08 Thread John Huss
You can always use the actual component name: 

John


On Wed, May 8, 2013 at 8:58 AM, Lars Sonchocky-Helldorf <
lars.sonchocky-helld...@xyrality.com> wrote:

> Hi List,
>
> is WOMetaRefresh still available with wonder? What would be the
> appropriate tag? I tried  but that doesn't seem to work.
> Google did not bring up something particular useful (or I am just to
> stupid).
>
> cheers,
>
> Lars
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Determining database plugin at runtime

2013-03-30 Thread John Huss
On Sat, Mar 30, 2013 at 1:36 AM, Paul Hoadley  wrote:

> Hello,
>
> I (think I) want to determine what plugin is in use for a particular model
> at runtime.  What's the easiest way?  (I see EOAdaptor.pluginName(), but,
> somewhat embarrassingly, I can't quite work out how to get the EOAdaptor
> object for a model.)
>

I wrote some utility methods to provide an easier and more obvious way to
access parts of the EOF stack - maybe it will help you or someone else in
the future.

John


EOFStack.java
Description: Binary data
 ___
Do not 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: some infinite loop on startup?

2013-03-14 Thread John Huss
Increase the heap size.  Add to VM arguments: -Xmx512m
Or a larger number if needed.


On Thu, Mar 14, 2013 at 12:08 PM, James Cicenia  wrote:

> Hello -
>
> This application runs fine on my computer.
> Did a new Eclipse, WO/Wonder install.
> Ran the app:
>
> Ran my app and now get this error (the app runs fine on my computer):
>
> DEBUG (ERXNSLogLog4jBridge.java:47) - Creating LifebeatThread now with:
> PurplePush -1 MP41.local/192.168.1.64 1085 3
>
> WARN  (ERXNSLogLog4jBridge.java:44) - A fatal exception occurred:
> java.lang.OutOfMemoryError: Java heap space
>
> [2013-3-14 12:5:30 CDT] 
> com.webobjects.foundation.NSForwardException [java.lang.OutOfMemoryError]
> Java heap space:java.lang.OutOfMemoryError: Java heap space
>
> at
> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(
> NSForwardException.java:43)
>
> at com.webobjects.foundation.NSSelector._safeInvokeMethod(
> NSSelector.java:124)
>
> at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(
> NSNotificationCenter.java:588)
>
> at com.webobjects.foundation.NSNotificationCenter.postNotification(
> NSNotificationCenter.java:532)
>
> at er.extensions.appserver.ERXApplication.(ERXApplication.java:1146)
>
> at com.pp.app.Application.(Application.java:27)
>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:39)
>
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>
> at java.lang.Class.newInstance0(Class.java:357)
>
> at java.lang.Class.newInstance(Class.java:310)
>
> at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>
> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:861)
>
> at com.pp.app.Application.main(Application.java:30)
>
> Caused by: java.lang.OutOfMemoryError: Java heap space
>
> at com.webobjects.foundation.NSDictionary._ensureCapacity(
> NSDictionary.java:151)
>
>
>
> Thanks
>
> James
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: development throughout apache??

2013-03-01 Thread John Huss
1) Install wotaskd and JavaMonitor
2) For wotaskd set WOHost=localhost
3) Run them
4) Configure mod_WebObjects for apache
5) Turn off direct connect in your app (eclipse run configuration)


On Fri, Mar 1, 2013 at 2:26 PM, Theodore Petrosky  wrote:

> I do not know how I screwed this up. I was looking over the wiki section
> on running my development through apache (so the port number is at the end)
> and some how I screwed up so that if I don't put the WebServerResources
> folder into the document root of apache, apache can not find my css and
> other resources.
>
> I found a paragraph that was talking about creating a soft link from the
> build folder to the document root of apache. I could not get that to work
> and I finally gave up and copied the .woa from the build folder to the
> apache document root.
>
> is there a short cheat sheet that describes the steps (without detail) of
> running development through apache? I swear I followed the steps on the
> wiki and now I am ready to throw in the towel and ask for help.
>
> 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: WOCommunity Association is now a non-profit corporation

2013-01-31 Thread John Huss
The fact that Cayenne is still being updated and maintained is important.
 It's biggest technical advantage is that it is not single threaded like
EOF, which provides better performance and more flexible deployment.

John

On Wednesday, January 30, 2013, Ken Anderson wrote:

> Pascal,
>
> Maybe I'm missing something - what does Cayenne offer that EOF doesn't do?
>
> Ken
>
> On Jan 30, 2013, at 3:20 PM, Pascal Robert  wrote:
>
> > By getting money to rewrite WO on top of other tools like Cayenne! The
> take over will start with the Cayenne Training Day at WOWODC 2013 :-)
> >
> >> Now, how do we take over the world with this? :)
> >>
> >> -Lon
> >>
> >> On Wed, Jan 30, 2013 at 1:08 PM, Pascal Robert 
> wrote:
> >>>
> >>> Le 2013-01-30 à 13:38, "Beatty, Daniel D CIV NAVAIR, 474300D" <
> daniel.bea...@navy.mil> a écrit :
> >>>
>  Congratulations Pascal and the Daves,
> >>>
> >>> No Daves involved in this, maybe that's why it worked :-P Current
> directors are Chuck, Stephen Smith and myself:
> >>>
> >>>
> https://www.ic.gc.ca/app/scr/cc/CorporationsCanada/fdrlCrpDtls.html?corpId=8369305
> >>>
>  This is exciting news and good work.  I encourage continued good work
> and efforts on this front.  WebObjects and associated technologies have
> made some unique contributions.  This association looks to be a significant
> contribution to the community.  May we continue to contribute to both our
> own community and share with others as good citizens of this cloud/web
> ecosystem.
> 
>  V/R,
> 
>  Daniel Beatty, Ph.D.
>  Computer Scientist, Detonation Sciences Branch
>  Code 474300D
>  1 Administration Circle M/S 1109
>  China Lake, CA 93555
>  daniel.bea...@navy.mil
>  (LandLine) (760)939-7097
>  (iPhone) (806)438-6620
> 
> 
> 
> 
>  On 1/30/13 8:53 AM, "David Aspinall" 
> wrote:
> 
>  This link may have some boiler plate content that we can use.
> 
>  http://bigonbloor.com/by-law/BIG%20Bylaw%201-%20Final.doc
> 
>  David
> 
>  Sent from my mobile, where brevity is beautiful.
> 
>  On 2013-01-30, at 11:03 AM, Pascal Robert  wrote:
> 
>  FYI, I got confirmation that the WOCommunity Association is now a
> non-profit corporation! We still have to open a bank account and write the
> by-laws, but at least the first part is done.
> 
>  If someone wants to contribute or comment the by-laws, I wrote a
> draft in the wiki:
> 
>  http://wiki.wocommunity.org/display/WOCOM/Organization+Incorporation
> 
>  Please be aware that we defined two classes of members:
> 
>  «
> 
>  The corporation is authorized to establish Class A members and Class
> B members as follows :
> 
>  (1) The Class A members shall be entitled to receive notice of and to
> attend all meetings of the members of the Corporation and each Class A
> member shall have one (1) vote at each such meeting, except for meetings at
> which only members of another class are entitled to vote separately as a
> class.
> 
>  (2) Except as otherwise provided by the Canada Not-for-Profit
> Corporations Act, S.C. 2009, c.23 the Class B members shall not be entitled
> to receive notice of, attend or vote at meetings of the members of the
> Corporation.
> 
>  »
> 
>  The by-laws needs to define who is going in each class.
>  ___
>  Do not post admin requests to the list. They will be ignored.
>  Webobjects-dev mailing list >
> https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
> >
> > This email sent to kenli...@anderhome.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray

2013-01-21 Thread John Huss
Probably the "selectionList" needs to be bound to a NSMutableArray not an
NSArray.  NSArray is IMmutable.


On Mon, Jan 21, 2013 at 12:10 PM, Lars Sonchocky-Helldorf <
lars.sonchocky-helld...@hamburg.de> wrote:

> Hi folks,
>
> I get the following exception when normally submitting a form which
> contains some AJAX stuff (which works by itself). None of my own code is
> involved, so how would I solve this?
>
> java.lang.UnsupportedOperationException: addAll is not a supported
> operation in com.webobjects.foundation.NSArray
> [2013-1-21 18:55:27 MEZ] 
> java.lang.UnsupportedOperationException: addAll is not a supported
> operation in com.webobjects.foundation.NSArray
> at com.webobjects.foundation.NSArray.addAll(NSArray.java:917)
> at
> er.extensions.foundation.ERXPatcher$DynamicElementsPatches$Browser.setSelectionListInContext(ERXPatcher.java:533)
> at
> com.webobjects.appserver._private.WOBrowser._fastTakeValuesFromRequest(WOBrowser.java:123)
> at
> com.webobjects.appserver._private.WOBrowser.takeValuesFromRequest(WOBrowser.java:138)
> at
> com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
> at
> er.ajax.AjaxDynamicElement.takeValuesFromRequest(AjaxDynamicElement.java:125)
> at
> er.ajax.AjaxUpdateContainer.takeValuesFromRequest(AjaxUpdateContainer.java:63)
> .
> .
> .
>
>
> cheers & thanks,
>
> Lars
>
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Why no javadocs?

2013-01-07 Thread John Huss
> > Does linking the javadocs to eclipse  work?
>
> It should, though if you are using Wonder source within Eclipse you get
> Javadocs for free anyways ;-)
>

If you are using Wonder BINARIES within Eclipse you get Javadocs for free also
- via the src.jar that is included.
 ___
Do not 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: Why no javadocs?

2013-01-06 Thread John Huss
The docs are available to download -- via XCode -- the doc set is called
WebObjects or Legacy, I don't recall which.

On Sunday, January 6, 2013, G Brown wrote:

> Hello,
>
> I have been setting up a new machine and therefore doing the basic project
> wonder installation. I think I will have a separate post on that, but
> shouldn't downloading the java docs be right there with downloading and
> installing all the other components?
>
> One question: why are there no Java docs that I can download?
>
> If we think of the Apple Java docs those have not changed in a very long
> time. And yet it seems the only form in which those are available is online
> – not as a download. Let's think about this. If I want to look up
> something, even though it hasn't changed in years, the only form in which
> it is available is via HTML, which means: 1. I must have a live Internet
> connection, 2. A live server, 3. The Internet path and routers working. So
> forget looking something up if you are traveling or somewhere without a
> Wi-Fi connection. (We will probably have to burn more coal to provide the
> electricity to do all of this as well.)
>
> This is also true for the project wonder Java docs. Now they may change
> more often than apples Java docs, but still the same considerations apply
> to them as well.
>
> Can we put the Java docs into a compressed tar ball that people can
> download and install on their machine? Can Jenkins provide this for project
> wonder?
>
> Now if I can only get them to work with eclipse.
>
>
>
> G Brown
> 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


Re: wolips compile docs

2013-01-05 Thread John Huss
WOLips is an eclipse plugin - it has to be developed with eclipse.

On Saturday, January 5, 2013, Theodore Petrosky wrote:

> Can someone point me to the WOLips docs. Specifically, I have opened
> WOLips in the current 4.5.2 Xcode and I want to understand how to compile
> and run. Obviously, I am not understanding something because I can only get
> errors and complaints from Xcode.
>
> 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Direct Action help?

2012-12-21 Thread John Huss
A redirect does not have a content body, just a status code and a Location
header.


On Fri, Dec 21, 2012 at 3:48 PM, Mai Nguyen wrote:

> Hi List,
> I have read David LeBer's very good blog about Direct Actions, but I am
> still unclear how to get the http response returned by a DA? Or is it
> possible?
>
> For example, I have the following code, as the redirect is needed to call
> a DA to do further validation.
> The DA inside the URL (that I do not control) will return an HTTP Response
> with the proper status etc.
>
>
> redirectL = new WORedirect(context());
> redirectL.setUrl(validateURLS()); // the validateURLS contains a DA with a
> set of params
>
> responseL = redirectL.generateResponse(); // How to get the HTTP response
> from above DA?
>
> // DEBUG
> responseL.contentString(); ==> Return NULL / Empty string
>
> The above response  is returned as empty, and I get an error "Your request
> generates an error" ,so how do you grab an HTTP response back from a DA?
>
> Thanks for any hints,
>
> mai
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: WOResponse HandleException problem

2012-12-19 Thread John Huss
Looks like someone reversed the order of the arguments to
NSDictionary.setObjectForKey.


On Wed, Dec 19, 2012 at 10:06 AM, Calven Eggert wrote:

> My URL looks like this when the error page is displayed:
>
> .../cgi-bin/WebObjects/CRR.woa/wo/1uoeYYmtvWCOQKj2xVio70/4.0.99.1.1.21
>
> Then it looks like this when i click on the button: (And stays on the same
> page instead of executing the action in that button and going to my login
> page)
>
>
> .../cgi-bin/WebObjects/CRR.woa/wo/1uoeYYmtvWCOQKj2xVio70/4.0.99.1.1.21?1=Submit+and+Return+to+Login+Page
>
> That looks strange. what's with the ?1=...
>
> Anyone know why it looks like this?
>
>
> On 2012-12-19, at 10:32 AM, John Huss wrote:
>
> You need to examine the urls and the session ID (cookie or url) and see
> where/what they are.
>
>
> On Wed, Dec 19, 2012 at 9:15 AM, Calven Eggert wrote:
>
>> that doesn't seem to make a difference.
>>
>> What I can't figure out is that I've set a breakpoint on the loginPage
>> method and it never gets there.  I click on the button and the page reloads
>> again.  What would make the error page load a second time?
>>
>>
>> On 2012-12-19, at 8:41 AM, John Huss wrote:
>>
>> WORedirect should be created using pageWithName. May not matter though.
>>
>> On Wednesday, December 19, 2012, Calven Eggert wrote:
>>
>>> *bump*
>>>
>>> anyone have any ideas?
>>>
>>> Begin forwarded message:
>>>
>>> *From: *Calven Eggert 
>>> *Subject: **WOResponse HandleException problem*
>>> *Date: *17 December, 2012 4:04:00 PM EST
>>> *To: *webobjects-dev@lists.apple.com
>>>
>>> I have a framework that has overridden WOResponse HandleException for
>>> many years.
>>>
>>> Today I have discovered that there is a problem with the page I display
>>> to the user.  The page shows text and a button at the bottom of the page is
>>> labelled "Go to Login Page".  It used to go to the login page of the
>>> application but now when clicked on it seems to do nothing.  When clicked
>>> on a second time it then correctly goes to the login page.
>>>
>>> I can't seem to figure out why it's no longer working.  I can confirm
>>> that it was working properly in May of 2011.  I haven't a clue when it
>>> stopped working.  Some kind of upgrade may have caused it to stop.  Java
>>> version, Eclipse no idea.
>>>
>>> This is how it is handled:
>>>
>>> public WOResponse handleException(Exception anException, WOContext
>>> aContext)
>>> {
>>> super.handleException(anException, aContext);
>>> COREErrorPage errorPage = (COREErrorPage) pageWithName(
>>> "COREErrorPage", aContext);
>>> errorPage.initialize(true, anException, theUser, "", "", null);
>>> return errorPage.generateResponse();
>>> }
>>>
>>>
>>> My error page does this when the user clicks on the button, but only the
>>> second time it is clicked:
>>>
>>> public WOComponent loginPage() {
>>> WORedirect redirect = new WORedirect(context());
>>> try {
>>>
>>>   redirect.setUrl(((COREApplication)application()).logoutLink());
>>> } catch (Exception e) {
>>> e.printStackTrace();
>>> e = null;
>>>
>>>   redirect.setUrl(((COREApplication)application()).logoutLink());
>>> }
>>> ((CORESession)session()).terminate();
>>> return redirect;
>>> }
>>>
>>> Any help in solving this mystery is appreciated.
>>>
>>> Calven
>>>
>>>
>>>
>>
>
>
 ___
Do not 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: WOResponse HandleException problem

2012-12-19 Thread John Huss
You need to examine the urls and the session ID (cookie or url) and see
where/what they are.


On Wed, Dec 19, 2012 at 9:15 AM, Calven Eggert wrote:

> that doesn't seem to make a difference.
>
> What I can't figure out is that I've set a breakpoint on the loginPage
> method and it never gets there.  I click on the button and the page reloads
> again.  What would make the error page load a second time?
>
>
> On 2012-12-19, at 8:41 AM, John Huss wrote:
>
> WORedirect should be created using pageWithName. May not matter though.
>
> On Wednesday, December 19, 2012, Calven Eggert wrote:
>
>> *bump*
>>
>> anyone have any ideas?
>>
>> Begin forwarded message:
>>
>> *From: *Calven Eggert 
>> *Subject: **WOResponse HandleException problem*
>> *Date: *17 December, 2012 4:04:00 PM EST
>> *To: *webobjects-dev@lists.apple.com
>>
>> I have a framework that has overridden WOResponse HandleException for
>> many years.
>>
>> Today I have discovered that there is a problem with the page I display
>> to the user.  The page shows text and a button at the bottom of the page is
>> labelled "Go to Login Page".  It used to go to the login page of the
>> application but now when clicked on it seems to do nothing.  When clicked
>> on a second time it then correctly goes to the login page.
>>
>> I can't seem to figure out why it's no longer working.  I can confirm
>> that it was working properly in May of 2011.  I haven't a clue when it
>> stopped working.  Some kind of upgrade may have caused it to stop.  Java
>> version, Eclipse no idea.
>>
>> This is how it is handled:
>>
>> public WOResponse handleException(Exception anException, WOContext
>> aContext)
>> {
>> super.handleException(anException, aContext);
>> COREErrorPage errorPage = (COREErrorPage) pageWithName(
>> "COREErrorPage", aContext);
>> errorPage.initialize(true, anException, theUser, "", "", null);
>> return errorPage.generateResponse();
>> }
>>
>>
>> My error page does this when the user clicks on the button, but only the
>> second time it is clicked:
>>
>> public WOComponent loginPage() {
>> WORedirect redirect = new WORedirect(context());
>> try {
>>
>>   redirect.setUrl(((COREApplication)application()).logoutLink());
>> } catch (Exception e) {
>> e.printStackTrace();
>> e = null;
>>
>>   redirect.setUrl(((COREApplication)application()).logoutLink());
>> }
>> ((CORESession)session()).terminate();
>> return redirect;
>> }
>>
>> Any help in solving this mystery is appreciated.
>>
>> Calven
>>
>>
>>
>
 ___
Do not 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: WOResponse HandleException problem

2012-12-19 Thread John Huss
WORedirect should be created using pageWithName. May not matter though.

On Wednesday, December 19, 2012, Calven Eggert wrote:

> *bump*
>
> anyone have any ideas?
>
> Begin forwarded message:
>
> *From: *Calven Eggert  'cegg...@uhnresearch.ca');>>
> *Subject: **WOResponse HandleException problem*
> *Date: *17 December, 2012 4:04:00 PM EST
> *To: *webobjects-dev@lists.apple.com  'webobjects-dev@lists.apple.com');>
>
> I have a framework that has overridden WOResponse HandleException for many
> years.
>
> Today I have discovered that there is a problem with the page I display to
> the user.  The page shows text and a button at the bottom of the page is
> labelled "Go to Login Page".  It used to go to the login page of the
> application but now when clicked on it seems to do nothing.  When clicked
> on a second time it then correctly goes to the login page.
>
> I can't seem to figure out why it's no longer working.  I can confirm that
> it was working properly in May of 2011.  I haven't a clue when it stopped
> working.  Some kind of upgrade may have caused it to stop.  Java version,
> Eclipse no idea.
>
> This is how it is handled:
>
> public WOResponse handleException(Exception anException, WOContext
> aContext)
> {
> super.handleException(anException, aContext);
> COREErrorPage errorPage = (COREErrorPage) pageWithName(
> "COREErrorPage", aContext);
> errorPage.initialize(true, anException, theUser, "", "", null);
> return errorPage.generateResponse();
> }
>
>
> My error page does this when the user clicks on the button, but only the
> second time it is clicked:
>
> public WOComponent loginPage() {
> WORedirect redirect = new WORedirect(context());
> try {
> redirect.setUrl(((COREApplication)application()).logoutLink());
> } catch (Exception e) {
> e.printStackTrace();
> e = null;
> redirect.setUrl(((COREApplication)application()).logoutLink());
> }
> ((CORESession)session()).terminate();
> return redirect;
> }
>
> Any help in solving this mystery is appreciated.
>
> Calven
>
>
>
 ___
Do not 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: Rép : Re: Wonder 5.8.2 and 6.0

2012-12-07 Thread John Huss
What is your problem??


On Wed, Dec 5, 2012 at 8:05 AM, Raymond NANEON  wrote:

> Hi Pascal,
>
> It's normal to have empty String when we want to check WO Version
> (JavaWebObjects) in the ERXProperties.class of the new Wonder?
> With Wonder 5.4 it works fine but with the new Wonder nothing works.
>
> When have Big diffrence between these methods :
>
> WONDER 5.8.X
>
> public static String versionStringForFrameworkNamed(String frameworkName) {
> return
> valueFromPlistBundleWithKey(NSBundle.bundleForName(frameworkName),
> "CustomInfo.plist", "CFBundleShortVersionString");
> }
>
> public static String valueFromPlistBundleWithKey(NSBundle bundle, String
> plist, String key) {
> if (bundle == null)
> return "";
>
> String dictString = new String(bundle.bytesForResourcePath(plist));
> NSDictionary versionDictionary =
> NSPropertyListSerialization.dictionaryForString(dictString);
>
> String versionString = (String)
> versionDictionary.objectForKey(key);
> return versionString == null  ?  ""  :  versionString.trim(); //
> trim() removes the line ending char
> }
>
> WONDER 5.4
>
> public static String versionStringForFrameworkNamed(String frameworkName) {
> NSBundle bundle = NSBundle.bundleForName(frameworkName);
> if (bundle == null)  return "";
>
> String versionString = (String) bundle.infoDictionary()
>
> .objectForKey("CFBundleShortVersionString");
> return versionString == null  ?  ""  :  versionString.trim(); //
> trim() removes the line ending char
> }
>
> Thanks for détails
>
> Envoyé depuis iCloud
>
>
> Le 02 déc 2012 à 15:38, Pascal Robert  a écrit :
>
> New frameworks usually have examples with them.
>
> > Hi Pascal,
> >
> > Can we have example apps with the new Wonder's evolutions?
> >
> > Thanks
> > Envoyé depuis iCloud
> >
> > Le 02 déc 2012 à 13:01, Pascal Robert  a écrit :
> >
> >> Hello everyone,
> >>
> >> Wonder 5.8.2 have been released today. All changes between 5.8.1 and
> 5.8.2:
> >>
> >>
> https://github.com/projectwonder/wonder/compare/wonder-5.8.1%E2%80%A6wonder-5.8.2
> >>
> >> Work on Wonder 6.0 have begun. The big changes have been added to the
> integration branch. Please check if the following changes affects you:
> >>
> >> https://github.com/projectwonder/wonder/pull/321
> >> https://github.com/projectwonder/wonder/pull/315
> >>
> https://github.com/pascalrobert/wonder/commit/1d7907152db2f44218e0fdf5c40096254550e0c2
> >> https://github.com/projectwonder/wonder/pull/309
> >> https://github.com/projectwonder/wonder/pull/298
> >> https://github.com/projectwonder/wonder/pull/336
> >>
> >> It have built fine with Jenkins on jenkins.wocommunity.org so it
> should build fine for everyone.
> >>
> >> Wonder 6.0 will be merged into the master branch in the week of January
> 7th.
> >> ___
> >> Do not 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/rnaneon%40me.com
> >>
> >> This email sent to rnan...@me.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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Dev/Deploy

2012-12-06 Thread John Huss
I would expect that to do it.  But you can also override isDevelopmentMode
in Application and return false I believe.

On Thursday, December 6, 2012, Ron X wrote:

> i unchecked in WOLips eclipse -WOIDE WOLips
> than saw in app.launch file:
> -WOIDE<>WOLips<>false<>
>
> - everything seemed to be good,
> but after launch in eclipse i got debug mode((
>
>
> 2012/12/6 Ron X  'ron.x.by...@gmail.com');>>
>
>> i built woa with maven plugin and have debug((
>> how can i disable this -DWOIDE=WOLips ?
>>
>> -DWOIDE=NO - will it work?
>>
>>
>>
>> 2012/12/5 John Huss > 'johnth...@gmail.com');>>
>>
>>> Inside eclipse when you run it automatically adds an argument:
>>> -DWOIDE=WOLips
>>> That triggers debug mode.  Outside eclipse you won't have the arg, so
>>> debug will be off.
>>>
>>>
>>> On Wednesday, December 5, 2012, Ron X wrote:
>>>
>>>> hi!
>>>>
>>>> how can i disable debug mode?
>>>> i want to disable:
>>>>
>>>> Log4J
>>>> D2W
>>>> CSS
>>>> Toggle SQL (off)
>>>> Clear D2W Cache
>>>> Page Metrics (off)
>>>> Created keys
>>>> Localization
>>>> WOStats
>>>> Run Test
>>>>
>>>> down the page
>>>>
>>>> i wrote in WebObjects.properties
>>>> WODebuggingEnabled = false
>>>>
>>>> but nothing happened
>>>>
>>>
>>
>
 ___
Do not 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: Dev/Deploy

2012-12-05 Thread John Huss
Inside eclipse when you run it automatically adds an argument:
-DWOIDE=WOLips
That triggers debug mode.  Outside eclipse you won't have the arg, so debug
will be off.

On Wednesday, December 5, 2012, Ron X wrote:

> hi!
>
> how can i disable debug mode?
> i want to disable:
>
> Log4J
> D2W
> CSS
> Toggle SQL (off)
> Clear D2W Cache
> Page Metrics (off)
> Created keys
> Localization
> WOStats
> Run Test
>
> down the page
>
> i wrote in WebObjects.properties
> WODebuggingEnabled = false
>
> but nothing happened
>
 ___
Do not 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: WOServletAdaptor decompile

2012-12-05 Thread John Huss
Decompilers don't always produce correct or identical code - it's more of
an art than a science.

On Wednesday, December 5, 2012, Ron X wrote:

> hello everybody
> i have some proplem with WOServletAdaptor
> i have decompiled it and that put it in my own class.
> than i ran application, which runs good when use WOServletAdaptor.
> when use own Adaptor which is a decompiled copy of WOServletAdaptor i get:
> [2012-12-5 14:16:39 FET]  The bundle
> LegalSoundsRedesign has malformed version number:
> NSProperties.NestedProperties.load(): /Users/esuser/WebObjects.properties
> [2012-12-5 14:16:39 FET] 
> WebObjects version = 5.4.3
> No loader:
> /Users/esuser/Downloads/apache-tomcat-7.0.32/bin/bootstrap.jar:/Users/esuser/Downloads/apache-tomcat-7.0.32/bin/tomcat-juli.jar
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> 
>
>
>
>
 ___
Do not 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: school project

2012-11-29 Thread John Huss
First, let me go on record by saying that I think this is a bad idea and
unlikely to have the effect you desire.  You would be better off using
functionality that is built-in to the platform (SQL, JDBC, and
JavaDB/Derby) for a small exercise like this.  Using a large, complex,
relatively unknown third-party framework with likely just make your
professor confused and frustrated.

That said, if you want to use WO for this, I would avoid using Wonder and
just stick to the core.  All you need to do is get the model loaded by
running something like:
EOModelGroup.defaultGroup.addModel(...).

Then everything will just work.

John



On Thu, Nov 29, 2012 at 7:55 AM, gabor raz  wrote:

> Its local on the same machine.
>
> On 29.11.2012, at 14:21, John Huss  wrote:
>
> Is it accessing a local DB on the same machine or a remote DB?
>
> On Thursday, November 29, 2012, gabor raz wrote:
>
>> Hey guys,
>>
>> I am learning WebObjects and WOnder and I really enjoy it. It make fun!
>> But at the moment we make in my school a project where we create multiuser
>> database application with java and the user interface with java swing.
>> I would like to use WebObject to create the application but i have to
>> create the user interface with java swing. Dose anyone have a quick
>> solution how to do that? It don't have to be nice just work :) its
>> only for the school and I want to show my teacher how nice
>> WebObjects/WOnder is.
>> Its a really simple application just to save a book with a title and an
>> author name
>> into the database, nothing more.
>>
>>
>> Gabor Raz
>>  ___
>> Do not 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/johnthuss%40gmail.com
>>
>> This email sent to johnth...@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: school project

2012-11-29 Thread John Huss
Is it accessing a local DB on the same machine or a remote DB?

On Thursday, November 29, 2012, gabor raz wrote:

> Hey guys,
>
> I am learning WebObjects and WOnder and I really enjoy it. It make fun!
> But at the moment we make in my school a project where we create multiuser
> database application with java and the user interface with java swing.
> I would like to use WebObject to create the application but i have to
> create the user interface with java swing. Dose anyone have a quick
> solution how to do that? It don't have to be nice just work :) its
> only for the school and I want to show my teacher how nice
> WebObjects/WOnder is.
> Its a really simple application just to save a book with a title and an
> author name
> into the database, nothing more.
>
>
> Gabor Raz
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Strange Googlebot activity

2012-10-31 Thread John Huss
ja is the WO 5.4 ajax request handler.

On Wed, Oct 31, 2012 at 8:55 PM, Paul Hoadley  wrote:

> Hello,
>
> I noticed some strange requests in the log of a live application the other
> day:
>
> 66.249.74.173 - - [25/Oct/2012:10:19:42 +] "GET
> /SurvStar/1/ja/bTJaOg4yM8yusyH07q7Fsw/0.0.43.1 HTTP/1.1" 200 1997
> 66.249.74.173 - - [25/Oct/2012:10:21:48 +] "GET
> /SurvStar/1/ja/bPCp9YKaWJtYnBAbefb3rg/0.0.43.1 HTTP/1.1" 200 1997
> 66.249.74.173 - - [25/Oct/2012:10:24:53 +] "GET
> /SurvStar/1/ja/bPYhQJ0ZxsN6ps2AsILtBg/0.0.43.1 HTTP/1.1" 200 1996
> 66.249.74.173 - - [25/Oct/2012:10:27:42 +] "GET
> /SurvStar/1/ja/0zwYRxtDseruVePtbAddHw/0.0.43.1 HTTP/1.1" 200 1999
>
> (And dozens more.)  That IP address belongs to Google:
>
> $ nslookup 66.249.74.173
> Server: 192.231.203.132
> Address: 192.231.203.132#53
>
> Non-authoritative answer:
> 173.74.249.66.in-addr.arpa name = crawl-66-249-74-173.googlebot.com.
>
> The 200 response it's getting is the session restoration error page, as
> those session IDs are bogus.  Has anyone seen anything like this?  Remind
> me—what's the "ja" request handler?  Any thoughts on where it would be
> pulling these (presumably never existent) session IDs from?
>
>
> --
> 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: EOF Multi-tenancy

2012-10-19 Thread John Huss
TopLink is just another JPA implementation which is not much different than
Hibernate.  You're not missing anything.

On Fri, Oct 19, 2012 at 11:45 AM, Chuck Hill wrote:

>
> On 2012-10-19, at 7:21 AM, Dov Rosenberg wrote:
>
> > Thanks everyone. With the emphasis on moving everything to the cloud
> this type of capability is very desirable. Hibernate supports it. Jpa is
> making progress toward it.
> >
> > I wish we could move to cayenne but I think we are going to get pushed
> to top link eventually.
>
> Isn't TopLink very much like WO?  I recall looking at it some time before
> Oracle bought it and it seems like a near carbon copy.  I could not
> understand why Apple did not sue them.
>
> Chuck
>
>
> >
> > Dov
> >
> > Sent from my iPhone
> >
> > On Oct 19, 2012, at 9:51 AM, Andrus Adamchik 
> wrote:
> >
> >> Or use Cayenne 3.1 ;)
> >>
> >> On Oct 19, 2012, at 4:16 PM, Pascal Robert  wrote:
> >>
> >>> Check:
> >>>
> >>> https://github.com/hprange/multi-tenant-prototype
> >>>
> >>> I think Michael Gargano is using it with good success. Check the
> "model connections to multiple DBs" thread from April 2011 and "Different
> Database Connection per session for the same model" from June 2012.
> >>>
>  We are looking into converting our existing EOF based apps to support
> multi-tenancy. Today we can support multiple customers in a single schema
> using relationships to separate the data. EOF works fine in this model. We
> even implemented the multiple EOObjectStore coordinators for additional
> scalability.
> 
>  Has anyone figured out how to support separate schema based
> multi-tenancy with EOF? i.e. each customer gets a separate schema and
> requests for that customer load data from that schema only? I know we can
> deploy our app multiple times - each time pointing to a different schema.
> Ideally though we would be able to share binaries and swap schemas on a per
> request basis.
> 
>  I am thinking some mojo would have to occur along the lines of the
> following:
> 
>    • Load the EOModel once - this assumes that all customers would
> share the same DB structure
>    • DO NOT pre-load any data at start up unless it is stored in per
> customer caches
>    • As each request comes in -
>    • identify the customer
>    • either create a new connection or grab one from a pool. In
> the case of EOF I think that implies that there would be separate object
> store coordinators per customer
>    • Hook the object store up with the model
>    • execute the request
>    • break everything back down
> 
>  Is this even possible with EOF/Project Wonder?
> 
>  Thanks
> 
>  Dov Rosenberg
>  ___
>  Do not 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/andrus%40objectstyle.org
> >>>
> >>> This email sent to and...@objectstyle.org
> >>
> >>
> >> ___
> >> Do not 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/dov%40cfl.rr.com
> >>
> >> This email sent to d...@cfl.rr.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/chill%40global-village.net
> >
> > This email sent to ch...@global-village.net
>
> --
> Chuck Hill Senior Consultant / VP Development
>
> Practical WebObjects - for developers who want to increase their overall
> knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/gvc/practical_webobjects
>
> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest
> Growing Companies in B.C!
> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of
> Canada’s Fastest-Growing Companies by PROFIT Magazine!
>
>
>
>
>
>
>
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscript

Re: Creating a Git Server

2012-10-16 Thread John Huss
With gitolite you can deny write permission for a branch (like master) for
a group of users.  That's what we do.  Devs push their changes to their own
feature branch.  The branch is reviewed by the project lead and then merged
into master by him.

On Tue, Oct 16, 2012 at 10:09 AM, Klaus Berkling wrote:

> Hi All.
>
> I realize this is a bit off topic.  I find myself needing pull requests,
> or the option to not accept changes from another group. I suspect that I
> need more then just git via ssh.  Can anyone confirm this?
>
> Thanks
>
> kib
>
> *"Live as if you were to die tomorrow. Learn as if you were to live
> forever."*
> Mahatma Gandhi
>
> Klaus Berkling
> Web Application Dev. & Systems Administrator
> DynEd International, Inc.
> www.dyned.com | blog 
>
>
>
>
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Creating a Git Server

2012-10-08 Thread John Huss
I use gitolite and it works well.  But I wouldn't say it is simple to start
using.  The documentation is there but it's not really well organized or
very comprehensive - descriptions and examples are very brief.

If you don't want to invest much time to get that working, I think the
atlassian product sounds great as an alternative!

Also bitbucket.org provides free private hosting if you are ok with having
your code in the cloud.

John

On Monday, October 8, 2012, Roger Perryman wrote:

> I have some questions about how to setup a git repository for my projects.
> I reviewed Kieran's presentation on git from WOWODC 2012. It does a great
> job discussing git from the client's perspective but I didn't see anything
> about setting my own repository. I realize that it is distributed but I
> think a "central repository" can still be used. If I am misunderstanding
> the way git works, feel free to correct me.
>
> What connection method is the best to use and what are people using?
> SSH -- Allows tracking of individual user commits
> HTTP -- Seems best for read-only access
> Other -- ???
>
> What are the pros/cons of each connection method?
>
>
> Thanks,
>
> Roger
>
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: JAX-WS Endpoint within a WOApplication

2012-10-02 Thread John Huss
The WO web service stuff is just a wrapper around Axis 1.4, which is a
generic java library, so I would be surprised if it wouldn't work.  That
said, Axis 1.4 is quite old now, and using something newer is a good
option.  The port thing doesn't matter -- 8080 is just the standard J2EE
port, but you should have no problem using a regular WO url without a port.
 Yes, you'll probably a custom request handler, although the direct action
handler would work too.

On Tue, Oct 2, 2012 at 7:26 AM, Matteo Centro wrote:

> Hi list,
>
> I'm trying to implement a webservice using JAX-WS after I concluded
> that the app that needs to talk with mine can't speak through
> WOWebServices...
> All the examples I found make a webservice server by
>
> javax.xml.ws.Endpoint.publish("http://localhost:8080/WS/NameOfService";,
> implementor);
>
>
> This of course works even from within a WO Application but it starts
> to listen on a new port, which is not good for me.
> Is it possible to publish an Endpoint that goes through the usual
> WOPort maybe by using a new request handler?
> Anybody already did that?
>
> Thanks in advance,
>
>
> Matteo
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Callstacks in jenkins-built apps without line numbers

2012-09-27 Thread John Huss
You probably need to do a clean so everything gets re-compiled.

On Thu, Sep 27, 2012 at 5:08 AM, Maik Musall  wrote:

> Hmm, doesn't work yet. My wocompile now looks like this:
>
>  "1024m" fork="true" encoding="utf-8" debug="on" debuglevel=
> "lines,vars,source">
>
> Java 6.
>
> Any suggestions?
>
> Maik
>
>
> Am 26.09.2012 um 16:37 schrieb Maik Musall :
>
> Hi Johann (and thanks, John),
>
> Am 26.09.2012 um 16:10 schrieb Johann Werner :
>
> Hi Maik,
>
> congrats to mastering jenkins :)
>
>
> Thanks :)
>
> To have more info in your stack traces you have to disable optimization
> during the compilation. Check your wocompile ant task:
>
>  target="${compiler.target}"
> deprecation="${compile.deprecation}" *debug="on" optimize="off"*
> encoding="utf8" includeantruntime="false">
>
> Important is to add the optimize=off otherwise the reported line numbers
> can differ from your source code line numbers.
>
>
> I looked up the ant docs, and there it says:
>
> optimizeIndicates whether source should be compiled with optimization;
> defaults to off. *Note* that this flag is just ignored by Sun's javac starting
> with JDK 1.3 (since compile-time optimization is unnecessary).
>
> So, I guess the optimize="off" is both redundant and without effect ;)
>
>
> Maik
>
> ___
> Do not 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/maik%40selbstdenker.ag
>
> This email sent to m...@selbstdenker.ag
>
>
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Callstacks in jenkins-built apps without line numbers

2012-09-26 Thread John Huss


On Wed, Sep 26, 2012 at 8:51 AM, Maik Musall  wrote:
> Hi,
>
> I recently started using Jenkins for my builds. Due to our complicated
structure of Wonder, company-specific generic frameworks and
project-specific frameworks with all sorts of interdependencies, it took a
lot of build.xml tweaking, ERJenkins changes and stuff, but now the first
Jenkins-built release is running in production.
>
> The only thing that bugs me is if the app throws an exception, the
callstack has lines like this:
>
> com.selbstdenker.foo.Bar.myMethod(Unknown Source)
>
> whereas previously it was:
>
> com.selbstdenker.foo.Bar.myMethod(Bar.java:123)
>
> What could have caused that information to be not contained any more in
the builds?
>
> Thanks
> Maik
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Migrations and dev cycle

2012-09-20 Thread John Huss
On Thursday, September 20, 2012, Paul Hoadley wrote:

> Hi Pascal,
>
> On 21/09/2012, at 4:52 AM, Pascal Robert wrote:
>
> I was wondering how do you deal with situations where your development
> branch is having migrations that are NOT part of trunk/current release but
> that you need to do a migration for a fix in trunk?
>
> Let's say trunk is at migration 2 (on the prod database), but the "super
> new features" branch is at migration 5 (on the dev database), creating a
> migration 3 in trunk will create problems when trunk is merged with the
> "super new features" branch, and doing a migration 6 in trunk will make
> that migration 3-4-5 won't be executed in prod since prod will already be
> at version 6.
>
> Any solutions?
>
>
> Assuming that (a) you can trash and re-create your development database at
> will, and (b) this fix in the master branch is destined to be merged into
> the development branch (either or both of which might be false), I would:
>
> 1.  Create migration 3 in the master (or hotfix, or whatever) branch to
> fix the problem.
>
> 2.  When you're ready to merge in the fix, bump 3, 4 and 5 in development
> up to 4, 5 and 6, and at the same time merge in the new 3 and whatever else
> is part of the fix.
>
> At that point you'd obviously drop and re-create the development database
> with the new chain of migrations.  Does this fit your constraints?
>

Yeah that describes what I do.  Dealing with the merge conflicts between
branches is certainly a pain, but it's tolerable.

>
 ___
Do not 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: Velocity Template examples on Wiki

2012-09-19 Thread John Huss
http://wiki.wocommunity.org/display/WOL/EOGenerator+Templates+and+Additions

On Wed, Sep 19, 2012 at 12:56 PM, David Holt  wrote:
> Hi all,
>
> There used to be a page of example Entity.java _Entity.java class templates 
> and snippets on the wiki. I cannot find it anymore, does anyone know whether 
> it has been removed or deleted?
>
> Thanks,
>
> David
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: PostgreSQL announcement ?

2012-09-13 Thread John Huss
Not really.  The JSON support really just does two things:

1) validates that what you are saving is actually valid JSON
2) allows you to convert a row(s) to json

The conversion could be useful because it is likely to be much faster and
memory efficient by doing it in the DB rather than in memory.  However, you
would have to write raw SQL to use that feature, and you lose the ability
to modify the JSON in your app.

But the overall performance improvements in 9.2 sound great!

John

On Thu, Sep 13, 2012 at 5:36 AM, Theodore Petrosky wrote:

> does this actually do anything for webobojects? (I am of course referring
> to the JSON support)
>
> The PostgreSQL Global Development Group today released PostgreSQL 9.2,
> which offers index-only scan, cascading replication, range types and more,
> resulting in dramatic performance improvements. The newly introduced JSON
> support meets the need of web developers by allowing storage and retrieval
> in JSON formats.
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: Rép : Re: Rewrite WO app URL

2012-09-12 Thread John Huss
>
> > Hi List,
> >
> > I disabled WOAdaptorURL, direct connect, restarted httpd and apache with
> these new settings :
> >
> > apache.conf :
> >
> > RewriteRule ^/Etudiant(.*)$
> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]
> >
> > properties file
> >
> >
> er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa
> > er.extensions.ERXApplication.replaceApplicationPath.replace=/Etudiant
> >
> > The url :http://agecanonix-form.utt.fr/Etudiant/myDefault works great
> but I have the old url which appears again when I navigate between my app
> links.
> >
> > How I fix it to maintain all links in this format :
> http://agecanonix-form.utt.fr/Etudiant/...
>
> Just remove the "/wa" from your patterns
 ___
Do not 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: WOWorkerThread deadlocks

2012-09-12 Thread John Huss
>
> >>> The state the app was in when I took that jstack was that no login was
> possible and user's requests would not return, ultimately running into "no
> instance" responses after the timeout elapsed.
> >>
> >> Grep the app logs for OutOfMemory, that is one possibility.  They look
> ready to accept connections.  It could also be that they got so back logged
> that wotaskd gave up on them and decided they were dead.  Having the lower
> numbers above should help in this respect - the app will be able to recover
> more quickly.
> >
> > Never out of memory. The app is allowed to grow up to 24 GByte, stays in
> the 1-4 GByte range in normal use and occasionally grows up to 12 GByte
> with the most advanced statistics that tend to suck in the whole database.
> >
> > That's also the reason though that I can't use separate EOF stacks for
> the statistics, because as soon as there were more than one of them, I'd
> have multiple 10 GByte-ish snapshot caches. The server has 48 GByte and I
> don't really want to hit that limit... and with separate stacks, it also
> would be difficult to keep the stats reflect current changes in the other
> stacks.
>
>
> I am not sure about the background threads (depends on how long OSC locks
> are held), but using ECs sharing the same EOF stack with regular requests
> is likely to cause problems like you are seeing.


Do you mean that the application would be unresponsive while the lock was
held in the background thread, or that simply doing it that way will lead
to unrecoverable deadlocks?
 ___
Do not 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: Rép : Re: Rewrite WO app URL

2012-09-11 Thread John Huss
On Tue, Sep 11, 2012 at 9:56 AM, Raymond NANEON  wrote:

> Hi Pascal,
>
> I tried all possibilities but nothing work :(
>
> apache.conf
>
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule WebObjects_module modules/mod_WebObjects.so
>
> ...
>
> RewriteEngine On
> RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1
> [PT,L]
>
> httpd.conf
>
> 
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule WebObjects_module modules/mod_WebObjects.so
>
> webobjects.conf
>
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule WebObjects_module modules/mod_WebObjects.so
>
> ...
>
> RewriteEngine On
> RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1
> [PT,L]
>
>
> Result : *
> http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault
> *
>
>
> And you are 100% sure that you are not using direct connect and that the
> app is running with Apache, wotaskd and the adaptor?
> ===> I don't know it the server is using direct connect. I know if we turn
> off wotaskd, all apps continue to work. How can I configue my app to run
> with apache?
>

You ARE using direct connect.  You can tell because of the colon and port
number after the host name in the url.  You can disable it using the
Properties file:

WODirectConnectEnabled = false
But if you are running through eclipse you will probably need to change
your launch arguments on the WO tab.

John
 ___
Do not 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: classes.include.patternset and difference between Eclipse and Jenkins

2012-09-07 Thread John Huss
The ant build doesn't work correctly in this regard - it will not obey the
patternset and will just include .class files.  You can work around it by
modifying your build.xml to add the desired resources to the jar after it
is built.  Or just put them in Resources/ instead.

John

On Fri, Sep 7, 2012 at 11:53 AM, Larry Mills-Gahl  wrote:

> I am trying to track down a problem that I think is a difference between
> the compilation process within Eclipse and the process in Jenkins.
>
> I have stylesheets that are used for transforms and I address them from
> within the jar (it's easier that way when the process is called from not
> just woapps).
> If I compile and deploy the embedded package from Eclipse, all is good.
> If I deploy the successful jenkins build of the same code (same version
> confirmed in the console output) I get malformed URL errors because it
> can't locate the resource from the class loader.
>
> I really would like to get this part of the build fix so that the tests
> that succeed in Eclipse succeed in Jenkins. (also, I'm sick of uploading
> the entire package for this app when the jenkins server is so much closer
> to the deployment environment)
>
> My classes.include.patternset is:
>
> **/*.class
> *.properties
> **/*.png
> **/*.xsl
> **/*.xml
>
>
>
> which I would expect to work (and it does in Eclipse)
>
> Any suggestions about what might be causing this or strategies for
> debugging would be greatly appreciated.
>
> Thanks
>
>
> Larry
>
>  ___
> Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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: ERXExtensions have not been initialized persists

2012-09-04 Thread John Huss
Try putting a breakpoint in the ERXApplication.Loader class, or commenting
parts of it out.  This checking is not essential.  Also, the newest wonder
has a debug setting for this code that would probably tell you why it isn't
working.

John

On Tue, Sep 4, 2012 at 9:24 PM, Ângelo Andrade Cirino wrote:

> Hi all,
>
> I sang victory too soon. After shutting down and restarting Eclipse
> (installed with Golipse) the problem raised again. The console output is
> this:
>
> [2012-9-4 23:21:50 BRT]  Creating LifebeatThread now with:
> HelloWorld -1 localhost/127.0.0.1 1085 3
> [2012-9-4 23:21:50 BRT]  A fatal exception occurred: ERXExtensions
> have not been initialized. Please report the classpath and the rest of the
> bundles to the Wonder mailing list:
> Remaining frameworks: [ERPrototypes, WOOgnl]
> Classpath:
> /Users/aacirino/WO/projectwonder/Frameworks/Core/ERPrototypes/bin:/Users/aacirino/WO/projectwonder/Frameworks/Core/WOOgnl/bin:/Users/aacirino/empty_workspace/HelloWorld/build/HelloWorld.woa/Contents/Resources/Java:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERExtensions/build/ERExtensions.framework/Resources/Java:/Users/aacirino/WO/projectwonder/Frameworks/Core/JavaWOExtensions/build/JavaWOExtensions.framework/Resources/Java:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/ERFoundation.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/ERWebObjects.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/commons-lang-2.6.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/erxservletadaptor.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/junit-4.8.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/icu4j-3_8_1.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/slf4j-api-1.6.5.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/slf4j-log4j12-1.6.5.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/ognl-2.6.7.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/joda-time-1.6.2.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/joda-time-1.6.2-sources.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/log4j-1.2.16.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/commons-codec-1.6-sources.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERJars/Libraries/commons-codec-1.6.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/WOOgnl/Libraries/WOOgnl53.jar:/Users/aacirino/WO/projectwonder/Frameworks/Core/WOOgnl/Libraries/WOOgnl54.jar
> [2012-9-4 23:21:50 BRT]  java.lang.RuntimeException: ERXExtensions
> have not been initialized. Please report the classpath and the rest of the
> bundles to the Wonder mailing list:
> Remaining frameworks: [ERPrototypes, WOOgnl]
> Classpath:
> /Users/aacirino/WO/projectwonder/Frameworks/Core/ERPrototypes/bin:/Users/aacirino/WO/projectwonder/Frameworks/Core/WOOgnl/bin:/Users/aacirino/empty_workspace/HelloWorld/build/HelloWorld.woa/Contents/Resources/Java:/Users/aacirino/WO/projectwonder/Frameworks/Core/ERExtensions/build/ERExtensions.framework/Resources/Java:/Users/aacirino/WO/projectwonder/Frameworks/Core/JavaWOExtensions/build/JavaWOExtensions.framework/Resources/Java:/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar:/Library/WebObjec

Re: creating a second database connection

2012-08-23 Thread John Huss
Not .DBURL, just .URL

On Thu, Aug 23, 2012 at 8:12 PM, Theodore Petrosky wrote:

> ojdbc14.jar is in /Library/Java/Extensions
>
> it is also in the framework itself.
>
> interesting after experimenting I find I can use the properties file for:
>
> # SPAccessModel.DBURL=jdbc:oracle:thin:@10.1.3.250:1521/XE
> # SPAccessModel.DBPlugin=com.webobjects.jdbcadaptor.OraclePlugIn
> # SPAccessModel.DBDriver=oracle.jdbc.OracleDriver
>  SPAccessModel.DBUser=user
>  SPAccessModel.DBPassword=pw
>
> I have tried:
>
> SPAccessModel.DBURL
> SPAccessModel.URL
> SPAccessModel.DBUrl
>
> but until I comment it out and copy the connection string into the eomodel
> file, it does not connect.
>
> from the docs:
>
> To do this for Oracle you can either specify on a per model basis or on a
> global basis.
>
>  Global:
>   dbConnectServerGLOBAL = myDatabaseServer
>   dbConnectUserGLOBAL = me
>   dbConnectPasswordGLOBAL = secret
>   dbConnectPluginGLOBAL = Oracle
>  Per Model for say model ER:
>   ER.DBServer = myDatabaseServer
>   ER.DBUser = me
>   ER.DBPassword = secret
>   ER.DBPlugin = Oracle
>
>  Openbase: same, with DBDatabase and DBHostname
>
>  JDBC: same with dbConnectURLGLOBAL, or ER.DBURL
>
> i am going home for the night. maybe tomorrow i will see the error.
>
> Ted
>
> --- On Thu, 8/23/12, prob...@macti.ca  wrote:
>
> > From: prob...@macti.ca 
> > Subject: Re: creating a second database connection
> > To: "Theodore Petrosky" 
> > Cc: "Tim Worman" , "WebObjects Development" <
> webobjects-dev@lists.apple.com>
> > Date: Thursday, August 23, 2012, 8:56 PM
> > Do you have the JDBC driver for
> > Oracle in the class path?
> >
> > Envoyé de mon iPhone
> >
> > Le 2012-08-23 à 20:24, "Theodore Petrosky" 
> > a écrit :
> >
> > > Tim,
> >
> > >
> > > This is almost perfect. I used this example and 'fixed'
> > the postgresql framework to work correctly with the
> > properties file.
> > >
> > > now the oracle property is giving grief. this is what I
> > have:
> > >
> > > # Connection Dictionary
> > >
> > SPAccessModel.URL=
> jdbc:oracle:thin:@10.1.3.250:1521/XE?capitalizeTypenames=true&zeroDateTimeBehavior=convertToNull
> > > SPAccessModel.DBPlugin=OraclePlugIn
> > > SPAccessModel.DBDriver=com.oracle.Driver
> > > SPAccessModel.DBUser=user
> > > SPAccessModel.DBPassword=pw
> > >
> > > I must not have the correct name for the plugin and
> > Driver.
> > >
> > >
> > >
> > > --- On Thu, 8/23/12, Tim Worman 
> > wrote:
> > >
> > >> From: Tim Worman 
> > >> Subject: Re: creating a second database connection
> > >> To: "Theodore Petrosky" 
> > >> Cc: "Chuck Hill" ,
> > "WebObjects Development" 
> > >> Date: Thursday, August 23, 2012, 7:51 PM
> > >> I have connection settings for all of
> > >> my databases in properties. They all work. When a
> > Wonder app
> > >> starts, it logs out all properties being used by
> > the
> > >> application. You won't even need to try and use the
> > app - if
> > >> they aren't there, they weren't discovered. If your
> > app is a
> > >> Wonder app, ERXConfiguationManager will discover
> > all the
> > >> properties.
> > >>
> > >> At launch, if your props are being improperly
> > overwritten
> > >> then you need to do a file search in your project
> > for where
> > >> they are being overridden. You cannot use any
> > global
> > >> settings if you are using more than one database
> > since
> > >> globals will be applied to every db connection.
> > >>
> > >> your individual database properties will be named
> > as such:
> > >>
> > >> MyModel.URL = jdbc:urlForDatabaseConnection
> > >> MyModel.DBDriver = com.openbase.jdbc.ObDriver
> > (whatever)
> > >> MyModel.DBPlugin = OpenBasePlugIn (whatever)
> > >> MyModel.DBUser = user
> > >> MyModel.DBPassword = password
> > >>
> > >> Where your EOModel is named "MyModel.eomodeld." It
> > will work
> > >> if you're not accidentally overriding the
> > properties
> > >> elsewhere.
> > >>
> > >> T
> > >>
> > > ___
> > > Do not 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/johnthuss%40gmail.com
>
> This email sent to johnth...@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 ar

Re: what did I break with ant?

2012-08-02 Thread John Huss
On Thu, Aug 2, 2012 at 10:42 AM, Jesse Tayler  wrote:

>
> I may have two troubles at once here.
>
> I removed the refs to the ERSync and I'm able to build and run the app
> from the command line as I'd expect.
>
> When I move to the server, I run the app and again, I get zero output
> after the first warning.
>
> WOMan.woa/WOMan
> WOMan: NEXT_ROOT environment variable is not set! Terminating.
> [helloworld tmp]$
>
>
> Why would WO simply Terminate like that?
>

WOMan: NEXT_ROOT environment variable is not set! Terminating.
 ___
Do not 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   >