Re: Velocity Template Question
containsObject is an NSArray method, but these objects are actually Entity Modeler's non-WO versions of the EO classes, which are java.util.List/java.util.Set, so if it has any chance of working you will need to use contains instead containsObject. I've never really tried to do this, though, and I don't know what the actual limits of the evaluation engine in velocity are. You're also not showing where the "code" variable came from ... was that a getEntityNamed("something") assignment earlier? On Nov 20, 2009, at 3:46 PM, Andrew Lindesay wrote: > Hi Mike; > > You are right; I'm trying to add a method to the entitys' superclasses for > fetching based on "code" if the "code" attribute is present. I'm trying to > achieve what I had before using velocity. I am doing something like this, > but the #if is not firing; > >> #if ($entity.sortedClassAttributes.containsObject(code)) >> @SuppressWarnings("unchecked") >> public static nz.co.orcon.osm.eo.main.OcnDuration >> fetchByCode(EOEditingContext ec, String code) { >> >> } >> >> ... >> >> #end > > cheers. > > ___ > Andrew Lindesay > www.lindesay.co.nz > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: back to deploy problems , with success
On Nov 20, 2009, at 3:34 PM, Baiss Eric Magnusson wrote: Many thanks, This is good, I got it up for Mind Camp 6 in Seattle tomorrow (as I had hoped for 2 months ago), I've demoed there before. Not sure if I will demo though as it is only now ready for the fun stuff, real programming! Take a look from my home page sometime, it's exploratory in its attempts at making sense to finances, think neal stephenson. mindcamp6.eventbrite.com Changed LOCALROOT to WOROOT in the MacOSClassPath.txt for the line below, the server version was identical so I changed it also, not really knowing which would be invoked at this twelfth hour. The one in WOROOT would be the one that ships with WO. The only in LOCALROOT would likely be the version from Wonder. It is probably on your local machine, but not on the server. Again, embedding frameworks in the app makes it larger but reduces deployment problems. Chuck WOROOT/Library/Frameworks/ JavaWOExtensions.framework/...JavaWOExtensions.jar On Nov 20, 2009, at 2:07 PM, Chuck Hill wrote: On Nov 20, 2009, at 11:33 AM, Baiss Eric Magnusson wrote: Based on Chuck's comments, that seeing the no application instance from a Terminal execution did not really prove the application wouldn't deploy I tried a deploy and the application came up, that was good news! :-) Got through a couple of pages until I required JSConfirmPanel from JavaWOExtensions. I see on the server? That was a question? :-P Look in the classpath file for javawoextensions.jar? Is it there? Is it pointing to where the jar is? Chuck On Nov 19, 2009, at 1:26 PM, Mark Ritchie wrote: On 19/Nov/2009, at 10:30 AM, Baiss Eric Magnusson wrote: And in the browser: "The requested application was not found on this server." To me, that says that the WOAdaptor in the web server or WOTaskd are not configured correctly. What does the WOAdaptorInfo page show you? Setup details have been posted here for future reference: http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-WOAdaptorInfo Best! M. Baiss Eric Magnusson http://www.CascadeWebDesign.com -- 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/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
re: back to deploy problems , with success
Many thanks, This is good, I got it up for Mind Camp 6 in Seattle tomorrow (as I had hoped for 2 months ago), I've demoed there before. Not sure if I will demo though as it is only now ready for the fun stuff, real programming! Take a look from my home page sometime, it's exploratory in its attempts at making sense to finances, think neal stephenson. mindcamp6.eventbrite.com Changed LOCALROOT to WOROOT in the MacOSClassPath.txt for the line below, the server version was identical so I changed it also, not really knowing which would be invoked at this twelfth hour. WOROOT/Library/Frameworks/JavaWOExtensions.framework/...JavaWOExtensions.jar On Nov 20, 2009, at 2:07 PM, Chuck Hill wrote: > > On Nov 20, 2009, at 11:33 AM, Baiss Eric Magnusson wrote: > >> Based on Chuck's comments, that seeing the no application instance from a >> Terminal execution did not really prove the application wouldn't deploy I >> tried a deploy and the application came up, that was good news! > :-) > >> Got through a couple of pages until I required JSConfirmPanel from >> JavaWOExtensions. >> >> I see on the >> server? > > That was a question? :-P > > Look in the classpath file for javawoextensions.jar? Is it there? Is it > pointing to where the jar is? > > Chuck > > >> On Nov 19, 2009, at 1:26 PM, Mark Ritchie wrote: >> >>> On 19/Nov/2009, at 10:30 AM, Baiss Eric Magnusson wrote: And in the browser: "The requested application was not found on this server." >>> >>> To me, that says that the WOAdaptor in the web server or WOTaskd are not >>> configured correctly. >>> What does the WOAdaptorInfo page show you? >>> >>> Setup details have been posted here for future reference: >>> http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-WOAdaptorInfo >>> >>> Best! >>> M. >> >> >> Baiss Eric Magnusson >> http://www.CascadeWebDesign.com >> ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How do I restore the 'previous' page with DirectActions
On Nov 20, 2009, at 11:38 AM, Riccardo De Menna wrote: Hi all, Just a quickie... I want to return the same page a user is viewing after he clicks a directAction. Why a direct action? If the page is the result of a component action, why not use a component action. Specifically I'm talking about a language switch link in the pageWrapper to change languages. I want a simple url like http://www.domain.com/cgi-bin/WebObjects/App.woa/wa/English What I'm doing atm is adding a link with the following binding: LanguageLink : WOHyperlink { directActionName = aLanguage; ?contextID = context.contextID; } And then in my DirectAction.class I'm intercepting it with: public WOActionResults performActionNamed(String anActionName) { ... // Do the language switching here ... String stringContextID = (String)req.formValueForKey("contextID"); return s.restorePageForContextID(stringContextID); } This mostly works... but sometimes I get errors since for no apparent reason the WOHyperlink does not include the ?contextID thing sometimes. Am I doing it correctly? I just want the equivalent of returning null on a component based action. I'd look in the headers for the referrer URL and use a WORedirect to that. Chuck -- 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/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: back to deploy problems
On Nov 20, 2009, at 11:33 AM, Baiss Eric Magnusson wrote: Based on Chuck's comments, that seeing the no application instance from a Terminal execution did not really prove the application wouldn't deploy I tried a deploy and the application came up, that was good news! :-) Got through a couple of pages until I required JSConfirmPanel from JavaWOExtensions. I see on the server? That was a question? :-P Look in the classpath file for javawoextensions.jar? Is it there? Is it pointing to where the jar is? Chuck On Nov 19, 2009, at 1:26 PM, Mark Ritchie wrote: On 19/Nov/2009, at 10:30 AM, Baiss Eric Magnusson wrote: And in the browser: "The requested application was not found on this server." To me, that says that the WOAdaptor in the web server or WOTaskd are not configured correctly. What does the WOAdaptorInfo page show you? Setup details have been posted here for future reference: http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-WOAdaptorInfo Best! M. Baiss Eric Magnusson http://www.CascadeWebDesign.com -- 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/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Velocity Template Question
Hi Mike; You are right; I'm trying to add a method to the entitys' superclasses for fetching based on "code" if the "code" attribute is present. I'm trying to achieve what I had before using velocity. I am doing something like this, but the #if is not firing; > #if ($entity.sortedClassAttributes.containsObject(code)) > @SuppressWarnings("unchecked") > public static nz.co.orcon.osm.eo.main.OcnDuration > fetchByCode(EOEditingContext ec, String code) { > > } > > ... > > #end cheers. ___ Andrew Lindesay www.lindesay.co.nz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Velocity Template Question
i'm not exactly sure what you're trying to do ... are you trying to lookup an attribute named "code" and then ask if the given entity contains that attribute, then you render whatever is in the #if? Maybe i should ask you what you're attempting to achieve. On Nov 20, 2009, at 3:17 PM, Andrew Lindesay wrote: > Hi Mike; > >>> #if ($entity.sortedClassAttributes.containsObject(code)) >> ... >> and "contains" -- it's a List (maybe a Set). and you would have to have >> looked up the attribute "code" already, obviously. > > > Sorry; I'm a bit new to this -- can you elaborate on that? > > cheers. > > ___ > Andrew Lindesay > www.lindesay.co.nz > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Velocity Template Question
Hi Mike; >> #if ($entity.sortedClassAttributes.containsObject(code)) > ... > and "contains" -- it's a List (maybe a Set). and you would have to have > looked up the attribute "code" already, obviously. Sorry; I'm a bit new to this -- can you elaborate on that? cheers. ___ Andrew Lindesay www.lindesay.co.nz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How do I restore the 'previous' page with DirectActions
Hi all, Just a quickie... I want to return the same page a user is viewing after he clicks a directAction. Specifically I'm talking about a language switch link in the pageWrapper to change languages. I want a simple url like http://www.domain.com/cgi-bin/WebObjects/App.woa/wa/English What I'm doing atm is adding a link with the following binding: > LanguageLink : WOHyperlink { > directActionName = aLanguage; > ?contextID = context.contextID; > } And then in my DirectAction.class I'm intercepting it with: > public WOActionResults performActionNamed(String anActionName) { >... > >// Do the language switching here > >... > >String stringContextID = (String)req.formValueForKey("contextID"); >return s.restorePageForContextID(stringContextID); > } This mostly works... but sometimes I get errors since for no apparent reason the WOHyperlink does not include the ?contextID thing sometimes. Am I doing it correctly? I just want the equivalent of returning null on a component based action. rdm ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: back to deploy problems
Based on Chuck's comments, that seeing the no application instance from a Terminal execution did not really prove the application wouldn't deploy I tried a deploy and the application came up, that was good news! Got through a couple of pages until I required JSConfirmPanel from JavaWOExtensions. I see on the server? Thanks for all the helpful comments, On Nov 19, 2009, at 1:26 PM, Mark Ritchie wrote: > On 19/Nov/2009, at 10:30 AM, Baiss Eric Magnusson wrote: >> And in the browser: >> "The requested application was not found on this server." > > To me, that says that the WOAdaptor in the web server or WOTaskd are not > configured correctly. > What does the WOAdaptorInfo page show you? > > Setup details have been posted here for future reference: > http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-WOAdaptorInfo > > Best! > M. Baiss Eric Magnusson http://www.CascadeWebDesign.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
RE: WOWODC 2010 : official date and venue
Greetings Mark, Sounds like a plan. I know of a little hotel named the Orleans that happens to be a 4 or 5 star that would suit us quite nicely. The only trick now is making all arrangements and setting a date. Also, there is a potential down the road for the need of a "Western Small Nerd Ranch" event out here where I work in Ridgecrest, CA. I have word from both the Naval base and the local community college that we could use their facilities for such thing. At least here I can apply a little more influence than what I had at Texas Tech (which was practically none). Later, Daniel Beatty Computer Scientist, Detonation Sciences Branch Code 474300D 2400 E. Pilot Plant Rd. M/S 1109 China Lake, CA 93555 daniel.bea...@navy.mil (760)939-7097 -Original Message- From: webobjects-dev-bounces+daniel.beatty=navy@lists.apple.com [mailto:webobjects-dev-bounces+daniel.beatty=navy@lists.apple.com] On Behalf Of Mark Ritchie Sent: Thursday, November 19, 2009 18:52 To: Daniel Beatty Cc: WebObjects-Dev List Subject: Re: WOWODC 2010 : official date and venue On 19/Nov/2009, at 6:14 PM, Daniel Beatty wrote: > By the way, do we have any WO developers near the Las Vegas or Phoenix > area? I am currently working near enough to be in the So Cal WO > Developer's Group and LV WO Developer's Group if there were such a > thing. LV would be a great place for a mini-WOWODC. I'm in Cupertino... A little far for weekly or monthly events however I could make it for special events! ;-) M. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/daniel.beatty%40navy.mil This email sent to daniel.bea...@navy.mil smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOCommunity screencasts not working
Fixed. the screencasts at http://www.wocommunity.org/webobjects_screencasts.html are not working. I asume they are served with the wrong mimetype: can somebody please fix this? 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: http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca Pascal Robert prob...@macti.ca AIM: MacTICanada Twitter : MacTICanada LinkedIn : http://www.linkedin.com/in/macti ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: unsupported class version error
MIke: I unjar'd my app.jar yesterday and did `file Application.class` and it returned version 49 - so it looked normal. I am running now though. On Eclipse's 'Installed JREs' preference pane, I checked "JVM 1.6.0 (MacOS X Default)." I had previously selected 1.5 there. The compliance setting has always been at 1.5. But my next build ran. The weird thing is that I haven't changed any JVM or java settings in recent weeks. I have no idea why that change effected anything. I hadn't changed any java settings recently. And I have no idea which classes I produced were wrongly versioned since everything I looked at seemed correct. Tim Worman UCLA GSE&IS On Nov 20, 2009, at 5:05 AM, Mike Schrag wrote: > your bootstrap class actually loaded, so it looks like it's one of your other > classes ... In particular, I suspect your Application class is built 1.6, > since it's failing on the first defineClass call. > > unjar your application jar and run > > find . -name '*.class' -exec file {} \; | grep 50 > > I would add a source and target declaration to your wocompile step in > build.xml, or pass in -source and -target to ant. I don't think ant building, > even from eclipse, cares about your JDK setting. > > ms > > On Nov 20, 2009, at 2:35 AM, Tim Worman wrote: > >> I am getting this error all-the-sudden and it appears to be related to this. >> >> java.lang.UnsupportedClassVersionError: Bad version number in .class file >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:675) >> at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:316) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:675) >> at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:316) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) >> >> Obviously something's changed but I haven't changed my setup or installed >> any new components/software. I have done WOLips updates. I did `file >> WOBootstrap.class` and it returned "version 49.0 (Java 1.5)." It was the >> same on the deployment machine. The JDK compliance in Eclipse is set to Java >> 1.5 on my dev machine. >> >> I've been banging my head against it and can't seem to figure what else I >> have to do to get this to run - or why my compile products are different >> suddenly. >> >> Tim Worman >> UCLA GSE&IS >> >> >> >> On Nov 11, 2009, at 8:36 PM, Mike Schrag wrote: >> >>> For anyone who is getting an unexplained UnsupportedClassVersion error at >>> startup -- unjar your WOBoostrap.jar and run file on the WOBoostrap.class. >>> George Domurot and I just discovered that there is at least one >>> WOBoostrap.jar floating around the intertubes that was built with 1.6 and >>> has a 50.0 version number. Possibly this came from a Snow Leopard developer >>> preview? This file comes from whatever machine performed your build and >>> typically is found in >>> /System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBoostrap.jar >>> (though the precise location is defined in your wolips.properties). I >>> don't know how widespread that 1.6 build is, but if you've got it, this >>> might save you a lot of insanity. >>> >>> ms >>> >>> ___ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com >>> >>> This email sent to li...@thetimmy.com >> > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/opti
Re: unsupported class version error
Ha! That's awesome. Tim Worman UCLA GSE&IS On Nov 20, 2009, at 3:38 AM, Kieran Kelleher wrote: > Funny, I got the Mike Schrag version of the error like this: > > java.lang.UnsupportedSpellingError: Bad spelling error in .class file > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:675) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:316) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:675) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:316) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at com.webobjects._bootstrap.WOBoostrap.main(WOBoostrap.java:97) > > Is my system infected with the "Boostrap" virus?! :-) > > > On Nov 20, 2009, at 2:35 AM, Tim Worman wrote: > >> I am getting this error all-the-sudden and it appears to be related to this. >> >> java.lang.UnsupportedClassVersionError: Bad version number in .class file >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:675) >> at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:316) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:675) >> at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:316) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) >> >> Obviously something's changed but I haven't changed my setup or installed >> any new components/software. I have done WOLips updates. I did `file >> WOBootstrap.class` and it returned "version 49.0 (Java 1.5)." It was the >> same on the deployment machine. The JDK compliance in Eclipse is set to Java >> 1.5 on my dev machine. >> >> I've been banging my head against it and can't seem to figure what else I >> have to do to get this to run - or why my compile products are different >> suddenly. >> >> Tim Worman >> UCLA GSE&IS >> >> >> >> On Nov 11, 2009, at 8:36 PM, Mike Schrag wrote: >> >>> For anyone who is getting an unexplained UnsupportedClassVersion error at >>> startup -- unjar your WOBoostrap.jar and run file on the WOBoostrap.class. >>> George Domurot and I just discovered that there is at least one >>> WOBoostrap.jar floating around the intertubes that was built with 1.6 and >>> has a 50.0 version number. Possibly this came from a Snow Leopard developer >>> preview? This file comes from whatever machine performed your build and >>> typically is found in >>> /System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBoostrap.jar >>> (though the precise location is defined in your wolips.properties). I >>> don't know how widespread that 1.6 build is, but if you've got it, this >>> might save you a lot of insanity. >>> >>> ms >>> >>>
Re: Will it be released, ever?
On 2009-11-20, at 8:11 AM, Mike Schrag wrote: >> f I heard well, Pierre said in the Q&A section that Gianduya would probably >> be released in a matter of days. That was 5 month ago. Although month are >> indeed made of days, I was wondering whether the techno was just not ready, >> or whether Apple hold it back intentionnally (perhaps to promote native >> mobile apps). Is there a probability that Gianduya will never be released? > A question only Apple can answer. Which unfortunately, is not a reassuring statement. ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Will it be released, ever?
> f I heard well, Pierre said in the Q&A section that Gianduya would probably > be released in a matter of days. That was 5 month ago. Although month are > indeed made of days, I was wondering whether the techno was just not ready, > or whether Apple hold it back intentionnally (perhaps to promote native > mobile apps). Is there a probability that Gianduya will never be released? A question only Apple can answer. ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: unsupported class version error
your bootstrap class actually loaded, so it looks like it's one of your other classes ... In particular, I suspect your Application class is built 1.6, since it's failing on the first defineClass call. unjar your application jar and run find . -name '*.class' -exec file {} \; | grep 50 I would add a source and target declaration to your wocompile step in build.xml, or pass in -source and -target to ant. I don't think ant building, even from eclipse, cares about your JDK setting. ms On Nov 20, 2009, at 2:35 AM, Tim Worman wrote: > I am getting this error all-the-sudden and it appears to be related to this. > > java.lang.UnsupportedClassVersionError: Bad version number in .class file > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:675) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:316) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:675) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:316) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) > > Obviously something's changed but I haven't changed my setup or installed any > new components/software. I have done WOLips updates. I did `file > WOBootstrap.class` and it returned "version 49.0 (Java 1.5)." It was the same > on the deployment machine. The JDK compliance in Eclipse is set to Java 1.5 > on my dev machine. > > I've been banging my head against it and can't seem to figure what else I > have to do to get this to run - or why my compile products are different > suddenly. > > Tim Worman > UCLA GSE&IS > > > > On Nov 11, 2009, at 8:36 PM, Mike Schrag wrote: > >> For anyone who is getting an unexplained UnsupportedClassVersion error at >> startup -- unjar your WOBoostrap.jar and run file on the WOBoostrap.class. >> George Domurot and I just discovered that there is at least one >> WOBoostrap.jar floating around the intertubes that was built with 1.6 and >> has a 50.0 version number. Possibly this came from a Snow Leopard developer >> preview? This file comes from whatever machine performed your build and >> typically is found in >> /System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBoostrap.jar >> (though the precise location is defined in your wolips.properties). I don't >> know how widespread that 1.6 build is, but if you've got it, this might save >> you a lot of insanity. >> >> ms >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com >> >> This email sent to li...@thetimmy.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: unsupported class version error
oh that's just mean ... :) On Nov 20, 2009, at 6:38 AM, Kieran Kelleher wrote: > Funny, I got the Mike Schrag version of the error like this: > > java.lang.UnsupportedSpellingError: Bad spelling error in .class file > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:675) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:316) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:675) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:316) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at com.webobjects._bootstrap.WOBoostrap.main(WOBoostrap.java:97) > > Is my system infected with the "Boostrap" virus?! :-) > > > On Nov 20, 2009, at 2:35 AM, Tim Worman wrote: > >> I am getting this error all-the-sudden and it appears to be related to this. >> >> java.lang.UnsupportedClassVersionError: Bad version number in .class file >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:675) >> at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:316) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:675) >> at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:316) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) >> >> Obviously something's changed but I haven't changed my setup or installed >> any new components/software. I have done WOLips updates. I did `file >> WOBootstrap.class` and it returned "version 49.0 (Java 1.5)." It was the >> same on the deployment machine. The JDK compliance in Eclipse is set to Java >> 1.5 on my dev machine. >> >> I've been banging my head against it and can't seem to figure what else I >> have to do to get this to run - or why my compile products are different >> suddenly. >> >> Tim Worman >> UCLA GSE&IS >> >> >> >> On Nov 11, 2009, at 8:36 PM, Mike Schrag wrote: >> >>> For anyone who is getting an unexplained UnsupportedClassVersion error at >>> startup -- unjar your WOBoostrap.jar and run file on the WOBoostrap.class. >>> George Domurot and I just discovered that there is at least one >>> WOBoostrap.jar floating around the intertubes that was built with 1.6 and >>> has a 50.0 version number. Possibly this came from a Snow Leopard developer >>> preview? This file comes from whatever machine performed your build and >>> typically is found in >>> /System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBoostrap.jar >>> (though the precise location is defined in your wolips.properties). I >>> don't know how widespread that 1.6 build is, but if you've got it, this >>> might save you a lot of insanity. >>> >>> ms >>> >>> ___
Re: Velocity Template Question
>>> #if ($entity.sortedClassAttributes.code) > >>> #if ($entity.sortedClassAttributes().containsObject(code)) > > or > >>> #if ($entity.sortedClassAttributes.containsObject(code)) and "contains" -- it's a List (maybe a Set). and you would have to have looked up the attribute "code" already, obviously. ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOWODC 2010 : official date and venue
On 20 nov 2009, at 01:18, David Avendasora wrote: > > On Nov 19, 2009, at 3:17 PM, Pascal Robert wrote: > >> it would be great for future WOWODC to move it around to see different >> cities. > > I'm seriously planning on a Gold Coast, Australia WOWODC. > > Who's in? > I'm in, I have friends and family living in Japan and Australia, and it would be a great occasion just to have it combined with work expenses. For those of us having to convince their superior: 'Congres mumble mumble important mumble mumble, mumble coast, mumble august quiet in work' And after booking the tickets: 'I mentioned the Gold Coast! You know that that is in Australia, don't you?' > Dave > > > > David Avendasora > Senior Software Engineer > K12, Inc. > > * > WebObjects Documentation Wiki : > http://wiki.objectstyle.org/confluence/display/WO/ > * > WebObjects API: > http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html > * > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl > > This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: unsupported class version error
Funny, I got the Mike Schrag version of the error like this: java.lang.UnsupportedSpellingError: Bad spelling error in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:316) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:316) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.webobjects._bootstrap.WOBoostrap.main(WOBoostrap.java:97) Is my system infected with the "Boostrap" virus?! :-) On Nov 20, 2009, at 2:35 AM, Tim Worman wrote: I am getting this error all-the-sudden and it appears to be related to this. java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:316) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:316) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) Obviously something's changed but I haven't changed my setup or installed any new components/software. I have done WOLips updates. I did `file WOBootstrap.class` and it returned "version 49.0 (Java 1.5)." It was the same on the deployment machine. The JDK compliance in Eclipse is set to Java 1.5 on my dev machine. I've been banging my head against it and can't seem to figure what else I have to do to get this to run - or why my compile products are different suddenly. Tim Worman UCLA GSE&IS On Nov 11, 2009, at 8:36 PM, Mike Schrag wrote: For anyone who is getting an unexplained UnsupportedClassVersion error at startup -- unjar your WOBoostrap.jar and run file on the WOBoostrap.class. George Domurot and I just discovered that there is at least one WOBoostrap.jar floating around the intertubes that was built with 1.6 and has a 50.0 version number. Possibly this came from a Snow Leopard developer preview? This file comes from whatever machine performed your build and typically is found in / System/Library/WebObjects/JavaApplications/wotaskd.woa/ WOBoostrap.jar (though the precise location is defined in your wolips.properties). I don't know how widespread that 1.6 build is, but if you've got it, this might save you a lot of insanity. ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web
Will it be released, ever?
Thanks to Pascal for letting everybody access WOWODC 2009 content. The app works well, and dowload rates are ok. I cannot tell much about content yet. It is good to see WOCommunity with a kind of ADC of its own, with profiles, assets, etc. Although one might wonder if more AJAX means a better user experience (UI elements moving unexpectedly) ;) I downloaded the JavaScript presentation first (just to understand better what you guys were talking about) which really brings a lot of information. The technology seems promising, especially since it can help building mobile apps, and apps that work in a connected/ diconnected way. Thanks to Mike for his huge work on ERRest! If I heard well, Pierre said in the Q&A section that Gianduya would probably be released in a matter of days. That was 5 month ago. Although month are indeed made of days, I was wondering whether the techno was just not ready, or whether Apple hold it back intentionnally (perhaps to promote native mobile apps). Is there a probability that Gianduya will never be released? JPM ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com