Re: Maven Archetypes Problem

2013-12-20 Thread Ron X
Thanks a lot!

How can I see the other properties like WebObjectsVersion, TrueWarSupport,
WonderSupport, etc ?

Thanks again!


WebRep
Overall rating

WebRep
Overall rating



2013/12/20 G Brown gsbr...@umich.edu

 Hi Ron

 If you look here:

 http://maven.wocommunity.org/content/groups/public/archetype-catalog.xml

 You will see the correct version of archetype-catalog.xml; save that
 content as archetype-catalog.xml in ~/.m2

 I think the wiki documentation is a little old, maybe quite old. I will
 try to fix it up soon.

 G Brown
 gsbr...@umich.edu




 On Dec 19, 2013, at 1:46 PM, Ron X ron.x.by...@gmail.com wrote:

  Can you give me a link to it?
 
  I've just loaded archetype.xml from wiki and used it as local.
 
  Can you describe how you get the servlet archetype?
 
  Thanks!
 
 
  WebRep
 
  Overall rating
 
 
 
 
 
  WebRep
 
  Overall rating
 
 
 
 
 
 
 
  2013/12/18 gsbr...@umich.edu
  Snapshot? What snapshot?
 
  Try with the released version, which is version 2.1
 
  Maybe your archetypes need updating?
 
  I just did it and it worked.
 
 
 
  On Wed, Dec 18, 2013, at 05:52 AM, Ron X wrote:
  Hello!
  I have troubles with maven archetype for erxapp+servlet:
 
  [INFO] Scanning for projects...
  [INFO]
  [INFO]
 
  [INFO] Building Maven Stub Project (No POM) 1
  [INFO]
 
  [INFO]
  [INFO]  maven-archetype-plugin:2.2:generate (default-cli) @
 standalone-pom 
  [INFO]
  [INFO]  maven-archetype-plugin:2.2:generate (default-cli) @
 standalone-pom 
  [INFO]
  [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @
 standalone-pom ---
  [INFO] Generating project in Interactive mode
  [INFO] No archetype defined. Using maven-archetype-quickstart
 (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
  Choose archetype:
  1: local - org.objectstyle.woproject.maven2:woapplication-archetype
 (basic woapplication)
  2: local - org.objectstyle.woproject.maven2:woframework-archetype
 (basic woframework)
  3: local - org.objectstyle.woproject.maven2:erxapplication-archetype
 (wonder application (snapshot))
  4: local -
 org.objectstyle.woproject.maven2:erxapplication-servlet-archetype (wonder
 servlet application (snapshot))
  Choose a number or apply filter (format: [groupId:]artifactId, case
 sensitive contains): : 4
  Downloading:
 http://maven.wocommunity.org/content/groups/public-snapshots/org/objectstyle/woproject/maven2/erxapplication-servlet-archetype/2.1-SNAPSHOT/maven-metadata.xml
  Downloading:
 http://maven.wocommunity.org/content/groups/public-snapshots/org/objectstyle/woproject/maven2/erxapplication-servlet-archetype/2.1-SNAPSHOT/erxapplication-servlet-archetype-2.1-SNAPSHOT.jar
  [INFO]
 
  [INFO] BUILD FAILURE
  [INFO]
 
  [INFO] Total time: 5:37.362s
  [INFO] Finished at: Wed Dec 18 13:47:58 FET 2013
  [INFO] Final Memory: 7M/81M
  [INFO]
 
  [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
 on project standalone-pom: The desired archetype does not exist
 (org.objectstyle.woproject.maven2:erxapplication-servlet-archetype:2.1-SNAPSHOT)
 - [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with
 the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
  [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
 
  Where can i get this artefact?
 
  Thanks!
 
  ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
  Help/Unsubscribe/Update your Subscription:
 
 https://lists.apple.com/mailman/options/webobjects-dev/gsbrown%40umich.edu
 
  This email sent to gsbr...@umich.edu
 
  --
 
  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/ron.x.by.su%40gmail.com
 
  This email sent to ron.x.by...@gmail.com
 


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

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

Re: Maven Archetypes Problem

2013-12-20 Thread Ron X
And during the mvn clean install i've got:
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 3.538s
[INFO] Finished at: Fri Dec 20 13:07:17 FET 2013
[INFO] Final Memory: 3M/81M
[INFO]

[ERROR] Failed to execute goal on project myprj: Could not resolve
dependencies for project myprj:myprj:war:0.0.1-SNAPSHOT: The following
artifacts could not be resolved: wonder.core:ERExtensions:jar:wo54:6.1,
wonder.core:WOOgnl:jar:wo54:6.1: Failure to find
wonder.core:ERExtensions:jar:wo54:6.1 in
http://maven.wocommunity.org/content/groups/public was cached in the local
repository, resolution will not be reattempted until the update interval of
wocommunity has elapsed or updates are forced - [Help 1]


WebRep
Overall rating

WebRep
Overall rating



2013/12/20 Ron X ron.x.by...@gmail.com

 Thanks a lot!

 How can I see the other properties like WebObjectsVersion, TrueWarSupport,
 WonderSupport, etc ?

 Thanks again!


 WebRep
 Overall rating

 WebRep
 Overall rating



 2013/12/20 G Brown gsbr...@umich.edu

 Hi Ron

 If you look here:

 http://maven.wocommunity.org/content/groups/public/archetype-catalog.xml

 You will see the correct version of archetype-catalog.xml; save that
 content as archetype-catalog.xml in ~/.m2

 I think the wiki documentation is a little old, maybe quite old. I will
 try to fix it up soon.

 G Brown
 gsbr...@umich.edu




 On Dec 19, 2013, at 1:46 PM, Ron X ron.x.by...@gmail.com wrote:

  Can you give me a link to it?
 
  I've just loaded archetype.xml from wiki and used it as local.
 
  Can you describe how you get the servlet archetype?
 
  Thanks!
 
 
  WebRep
 
  Overall rating
 
 
 
 
 
  WebRep
 
  Overall rating
 
 
 
 
 
 
 
  2013/12/18 gsbr...@umich.edu
  Snapshot? What snapshot?
 
  Try with the released version, which is version 2.1
 
  Maybe your archetypes need updating?
 
  I just did it and it worked.
 
 
 
  On Wed, Dec 18, 2013, at 05:52 AM, Ron X wrote:
  Hello!
  I have troubles with maven archetype for erxapp+servlet:
 
  [INFO] Scanning for projects...
  [INFO]
  [INFO]
 
  [INFO] Building Maven Stub Project (No POM) 1
  [INFO]
 
  [INFO]
  [INFO]  maven-archetype-plugin:2.2:generate (default-cli) @
 standalone-pom 
  [INFO]
  [INFO]  maven-archetype-plugin:2.2:generate (default-cli) @
 standalone-pom 
  [INFO]
  [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @
 standalone-pom ---
  [INFO] Generating project in Interactive mode
  [INFO] No archetype defined. Using maven-archetype-quickstart
 (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
  Choose archetype:
  1: local - org.objectstyle.woproject.maven2:woapplication-archetype
 (basic woapplication)
  2: local - org.objectstyle.woproject.maven2:woframework-archetype
 (basic woframework)
  3: local - org.objectstyle.woproject.maven2:erxapplication-archetype
 (wonder application (snapshot))
  4: local -
 org.objectstyle.woproject.maven2:erxapplication-servlet-archetype (wonder
 servlet application (snapshot))
  Choose a number or apply filter (format: [groupId:]artifactId, case
 sensitive contains): : 4
  Downloading:
 http://maven.wocommunity.org/content/groups/public-snapshots/org/objectstyle/woproject/maven2/erxapplication-servlet-archetype/2.1-SNAPSHOT/maven-metadata.xml
  Downloading:
 http://maven.wocommunity.org/content/groups/public-snapshots/org/objectstyle/woproject/maven2/erxapplication-servlet-archetype/2.1-SNAPSHOT/erxapplication-servlet-archetype-2.1-SNAPSHOT.jar
  [INFO]
 
  [INFO] BUILD FAILURE
  [INFO]
 
  [INFO] Total time: 5:37.362s
  [INFO] Finished at: Wed Dec 18 13:47:58 FET 2013
  [INFO] Final Memory: 7M/81M
  [INFO]
 
  [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
 on project standalone-pom: The desired archetype does not exist
 (org.objectstyle.woproject.maven2:erxapplication-servlet-archetype:2.1-SNAPSHOT)
 - [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with
 the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
  [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
 
  Where can i get this artefact?
 
  Thanks!
 
  ___
  Do not post admin requests to the list. They will be 

Re: Maven Archetypes Problem

2013-12-20 Thread Ron X
Sorry, I solve that proplem by removing wonder.classifier,
and build was successful

But at this moment I have problem to build project in WOLips: it fails and
therefore I can not start the project inside eclipse in development mode.


WebRep
Overall rating

WebRep
Overall rating



2013/12/20 Ron X ron.x.by...@gmail.com

 And during the mvn clean install i've got:

 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 3.538s
 [INFO] Finished at: Fri Dec 20 13:07:17 FET 2013
 [INFO] Final Memory: 3M/81M
 [INFO]
 
 [ERROR] Failed to execute goal on project myprj: Could not resolve
 dependencies for project myprj:myprj:war:0.0.1-SNAPSHOT: The following
 artifacts could not be resolved: wonder.core:ERExtensions:jar:wo54:6.1,
 wonder.core:WOOgnl:jar:wo54:6.1: Failure to find
 wonder.core:ERExtensions:jar:wo54:6.1 in
 http://maven.wocommunity.org/content/groups/public was cached in the
 local repository, resolution will not be reattempted until the update
 interval of wocommunity has elapsed or updates are forced - [Help 1]


 WebRep
 Overall rating

 WebRep
 Overall rating



 2013/12/20 Ron X ron.x.by...@gmail.com

 Thanks a lot!

 How can I see the other properties like WebObjectsVersion,
 TrueWarSupport, WonderSupport, etc ?

 Thanks again!


 WebRep
 Overall rating

 WebRep
 Overall rating



 2013/12/20 G Brown gsbr...@umich.edu

 Hi Ron

 If you look here:

 http://maven.wocommunity.org/content/groups/public/archetype-catalog.xml

 You will see the correct version of archetype-catalog.xml; save that
 content as archetype-catalog.xml in ~/.m2

 I think the wiki documentation is a little old, maybe quite old. I will
 try to fix it up soon.

 G Brown
 gsbr...@umich.edu




 On Dec 19, 2013, at 1:46 PM, Ron X ron.x.by...@gmail.com wrote:

  Can you give me a link to it?
 
  I've just loaded archetype.xml from wiki and used it as local.
 
  Can you describe how you get the servlet archetype?
 
  Thanks!
 
 
  WebRep
 
  Overall rating
 
 
 
 
 
  WebRep
 
  Overall rating
 
 
 
 
 
 
 
  2013/12/18 gsbr...@umich.edu
  Snapshot? What snapshot?
 
  Try with the released version, which is version 2.1
 
  Maybe your archetypes need updating?
 
  I just did it and it worked.
 
 
 
  On Wed, Dec 18, 2013, at 05:52 AM, Ron X wrote:
  Hello!
  I have troubles with maven archetype for erxapp+servlet:
 
  [INFO] Scanning for projects...
  [INFO]
  [INFO]
 
  [INFO] Building Maven Stub Project (No POM) 1
  [INFO]
 
  [INFO]
  [INFO]  maven-archetype-plugin:2.2:generate (default-cli) @
 standalone-pom 
  [INFO]
  [INFO]  maven-archetype-plugin:2.2:generate (default-cli) @
 standalone-pom 
  [INFO]
  [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @
 standalone-pom ---
  [INFO] Generating project in Interactive mode
  [INFO] No archetype defined. Using maven-archetype-quickstart
 (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
  Choose archetype:
  1: local - org.objectstyle.woproject.maven2:woapplication-archetype
 (basic woapplication)
  2: local - org.objectstyle.woproject.maven2:woframework-archetype
 (basic woframework)
  3: local - org.objectstyle.woproject.maven2:erxapplication-archetype
 (wonder application (snapshot))
  4: local -
 org.objectstyle.woproject.maven2:erxapplication-servlet-archetype (wonder
 servlet application (snapshot))
  Choose a number or apply filter (format: [groupId:]artifactId, case
 sensitive contains): : 4
  Downloading:
 http://maven.wocommunity.org/content/groups/public-snapshots/org/objectstyle/woproject/maven2/erxapplication-servlet-archetype/2.1-SNAPSHOT/maven-metadata.xml
  Downloading:
 http://maven.wocommunity.org/content/groups/public-snapshots/org/objectstyle/woproject/maven2/erxapplication-servlet-archetype/2.1-SNAPSHOT/erxapplication-servlet-archetype-2.1-SNAPSHOT.jar
  [INFO]
 
  [INFO] BUILD FAILURE
  [INFO]
 
  [INFO] Total time: 5:37.362s
  [INFO] Finished at: Wed Dec 18 13:47:58 FET 2013
  [INFO] Final Memory: 7M/81M
  [INFO]
 
  [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
 on project standalone-pom: The desired archetype does not exist
 (org.objectstyle.woproject.maven2:erxapplication-servlet-archetype:2.1-SNAPSHOT)
 - [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with
 the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  

Application Class Error

2013-12-20 Thread Ron X
I have strange error during the build:

2013-12-20 14:22:02.103:INFO::No Transaction manager found - if your webapp
requires one, please configure one.
java.lang.NoSuchMethodException:
com.connexsphere.app.Application.setup([Ljava.lang.String;)
 at java.lang.Class.getMethod(Class.java:1605)
at
er.extensions.jspservlet.ERXServletAdaptor.invokeApplicationSetupMethod(ERXServletAdaptor.java:52)
 at
er.extensions.jspservlet.ERXServletAdaptor.init(ERXServletAdaptor.java:65)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
 at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

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

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

Error starting WO-app created from archetype

2013-12-20 Thread Ron X
Hello!

I have strange error during the start of application:

No loader:
/Users/esuser/Documents/xprj/conn/target/classes:/Users/esuser/.m2/repository/wonder/core/ERExtensions/6.1/ERExtensions-6.1.jar:/Users/esuser/.m2/repository/wonder/core/ERFoundation/1.0/ERFoundation-1.0.jar:/Users/esuser/.m2/repository/wonder/core/ERWebObjects/1.0/ERWebObjects-1.0.jar:/Users/esuser/.m2/repository/wonder/core/JavaWOExtensions/6.1/JavaWOExtensions-6.1.jar:/Users/esuser/.m2/repository/com/webobjects/JavaXML/5.4.3/JavaXML-5.4.3.jar:/Users/esuser/.m2/repository/com/webobjects/JavaEOControl/5.4.3/JavaEOControl-5.4.3.jar:/Users/esuser/.m2/repository/com/webobjects/JavaJDBCAdaptor/5.4.3/JavaJDBCAdaptor-5.4.3.jar:/Users/esuser/.m2/repository/com/ibm/icu/icu4j/3.8/icu4j-3.8.jar:/Users/esuser/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar:/Users/esuser/.m2/repository/org/slf4j/slf4j-api/1.6.3/slf4j-api-1.6.3.jar:/Users/esuser/.m2/repository/joda-time/joda-time/1.6.2/joda-time-1.6.2.jar:/Users/esuser/.m2/repository/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar:/Users/esuser/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/esuser/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/esuser/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/Users/esuser/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar:/Users/esuser/.m2/repository/wonder/core/ERServlet/1.0/ERServlet-1.0.jar:/Users/esuser/.m2/repository/wonder/core/WOOgnl/6.1/WOOgnl-6.1.jar:/Users/esuser/.m2/repository/ognl/ognl/2.6.7/ognl-2.6.7.jar:/Users/esuser/.m2/repository/wonder/core/ERPrototypes/6.1/ERPrototypes-6.1.jar:/Users/esuser/.m2/repository/com/webobjects/JavaWebObjects/5.4.3/JavaWebObjects-5.4.3.jar:/Users/esuser/.m2/repository/com/webobjects/JavaEOAccess/5.4.3/JavaEOAccess-5.4.3.jar:/Users/esuser/.m2/repository/com/webobjects/JavaWOJSPServlet/5.4.3/JavaWOJSPServlet-5.4.3.jar:/Users/esuser/.m2/repository/com/webobjects/JavaFoundation/5.4.3/JavaFoundation-5.4.3.jar:/Users/esuser/.m2/repository/wonder/businesslogic/ERAttachment/6.1/ERAttachment-6.1.jar:/Users/esuser/.m2/repository/com/drewnoakes/metadata-extractor/2.6.2/metadata-extractor-2.6.2.jar:/Users/esuser/.m2/repository/com/adobe/xmp/xmpcore/5.1.2/xmpcore-5.1.2.jar:/Users/esuser/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar:/Users/esuser/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar:/Users/esuser/.m2/repository/org/apache/httpcomponents/httpcore/4.2.1/httpcore-4.2.1.jar:/Users/esuser/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar:/Users/esuser/.m2/repository/mysql/mysql-connector-java/5.1.27/mysql-connector-java-5.1.27.jar
[2013-12-20 14:56:30 FET] main A fatal exception occurred: null
[2013-12-20 14:56:30 FET] main java.lang.NullPointerException
at
er.extensions.foundation.ERXConfigurationManager.commandLineArgumentProperties(ERXConfigurationManager.java:168)
 at
er.extensions.foundation.ERXConfigurationManager.applyConfiguration(ERXConfigurationManager.java:306)
at
er.extensions.foundation.ERXConfigurationManager.loadConfiguration(ERXConfigurationManager.java:287)
 at er.extensions.ERXExtensions.finishInitialization(ERXExtensions.java:252)
at
er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:94)
 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.NSSelector._safeInvokeMethod(NSSelector.java:122)
at
com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
 at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
at er.extensions.appserver.ERXApplication.init(ERXApplication.java:1146)
 at com.conn.app.Application.init(Application.java:23)
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:355)
 at java.lang.Class.newInstance(Class.java:308)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
 at com.conn.app.Application.main(Application.java:19)
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Error at start with KeyValue

2013-12-20 Thread Ron X
Hello!

I have 2 projects:
1st - in WO-style structure
2nd - the copy of 1st but in maven structure using archetype

1st prj starts using eclipse-wolips perfectly
2nd got an error
Error: com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException
message '[com.webobjects.appserver.WOComponent name: Login subcomponents:
null  valueForKey()]: lookup of unknown key: 'username'. The WOComponent
com.webobjects.appserver.WOComponent does not have an instance variable of
the name username or _username, nor a method of the name username,
_username, getUsername, or _getUsername' object
'com.webobjects.appserver.WOComponent name: Login subcomponents: null '
key 'username'
Reason: [com.webobjects.appserver.WOComponent name: Login subcomponents:
null  valueForKey()]: lookup of unknown key: 'username'. The WOComponent
com.webobjects.appserver.WOComponent does not have an instance variable of
the name username or _username, nor a method of the name username,
_username, getUsername, or _getUsername

and I don't know why

it is strange for me because of the projects are the same!

Could anybody help me?

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

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

shameless plug -

2013-12-20 Thread Jesse Tayler

Hi All,

no mention of WebObjects, but some good stories about NeXT and those days, for 
those interested!

https://twitter.com/tendigi/status/413356798260043776

please re-tweet if you like!

best

jess



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

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

Re: Maven Archetypes Problem

2013-12-20 Thread gsbrown
Hi Ron,



This is wrong: wonder.core:ERExtensions:jar:wo54:6.1



I think it is caused by you having a value
for wonder.classifierwo54/wonder.classifier



Remove the value (edit the pom.xml) .



Also, you are using an erxapplication-servlet-archetype, correct?



Then you are trying to use that in eclipse? and get an error?

I have 2 projects:

1st - in WO-style structure

2nd - the copy of 1st but in maven structure using archetype



1st prj starts using eclipse-wolips perfectly

2nd got an error

Error: com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException
message '[com.webobjects.appserver.WOComponent name: Login
subcomponents: null  valueForKey()]: lookup of unknown key:
'username'. The WOComponent com.webobjects.appserver.WOComponent does
not have an instance variable of the name username or _username, nor a
method of the name username, _username, getUsername, or _getUsername'
object 'com.webobjects.appserver.WOComponent name: Login
subcomponents: null ' key 'username'

Reason: [com.webobjects.appserver.WOComponent name: Login
subcomponents: null  valueForKey()]: lookup of unknown key:
'username'. The WOComponent com.webobjects.appserver.WOComponent does
not have an instance variable of the name username or _username, nor a
method of the name username, _username, getUsername, or _getUsername




I think what you want is a erxapplication-archetype (wonder application
(snapshot)) project. That is similar to the Wonder application you can
create with eclipse.



You should be able to build and run your project from the command line.
Then import your maven project into eclipse for debugging.





On Dec 20, 2013, at 5:16 AM, Ron X wrote:

And during the mvn clean install i've got:

[INFO]
---
-

[INFO] BUILD FAILURE

[INFO]
---
-

[INFO] Total time: 3.538s

[INFO] Finished at: Fri Dec 20 13:07:17 FET 2013

[INFO] Final Memory: 3M/81M

[INFO]
---
-

[ERROR] Failed to execute goal on project myprj: Could not resolve
dependencies for project myprj:myprj:war:0.0.1-SNAPSHOT: The following
artifacts could not be resolved: wonder.core:ERExtensions:jar:wo54:6.1,
wonder.core:WOOgnl:jar:wo54:6.1: Failure to find
wonder.core:ERExtensions:jar:wo54:6.1
in http://maven.wocommunity.org/content/groups/public was cached in the
local repository, resolution will not be reattempted until the update
interval of wocommunity has elapsed or updates are forced - [Help 1]
-- 
  
  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: Maven Archetypes Problem

2013-12-20 Thread Ron X
But I need servlet support to create war
Therefore I used erxapplication-selvlet-archetype


WebRep
Overall rating

WebRep
Overall rating



2013/12/20 gsbr...@umich.edu

  Hi Ron,

 This is wrong: wonder.core:ERExtensions:jar:wo54:6.1

 I think it is caused by you having a value
 for wonder.classifierwo54/wonder.classifier

 Remove the value (edit the pom.xml) .

 Also, you are using an erxapplication-servlet-archetype, correct?

 Then you are trying to use that in eclipse? and get an error?

 I have 2 projects:
 1st - in WO-style structure
 2nd - the copy of 1st but in maven structure using archetype

 1st prj starts using eclipse-wolips perfectly
 2nd got an error
 Error: com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException
 message '[com.webobjects.appserver.WOComponent name: Login subcomponents:
 null  valueForKey()]: lookup of unknown key: 'username'. The WOComponent
 com.webobjects.appserver.WOComponent does not have an instance variable of
 the name username or _username, nor a method of the name username,
 _username, getUsername, or _getUsername' object
 'com.webobjects.appserver.WOComponent name: Login subcomponents: null '
 key 'username'
  Reason: [com.webobjects.appserver.WOComponent name: Login
 subcomponents: null  valueForKey()]: lookup of unknown key: 'username'.
 The WOComponent com.webobjects.appserver.WOComponent does not have an
 instance variable of the name username or _username, nor a method of the
 name username, _username, getUsername, or _getUsername



  I think what you want is a erxapplication-archetype (wonder application
 (snapshot)) project. That is similar to the Wonder application you can
 create with eclipse.

 You should be able to build and run your project from the command line.
 Then import your maven project into eclipse for debugging.


 On Dec 20, 2013, at 5:16 AM, Ron X wrote:


 And during the mvn clean install i've got:
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 3.538s
 [INFO] Finished at: Fri Dec 20 13:07:17 FET 2013
 [INFO] Final Memory: 3M/81M
 [INFO]
 
 [ERROR] Failed to execute goal on project myprj: Could not resolve
 dependencies for project myprj:myprj:war:0.0.1-SNAPSHOT: The following
 artifacts could not be resolved: wonder.core:ERExtensions:jar:wo54:6.1,
 wonder.core:WOOgnl:jar:wo54:6.1: Failure to find
 wonder.core:ERExtensions:jar:wo54:6.1 in
 http://maven.wocommunity.org/content/groups/public was cached in the
 local repository, resolution will not be reattempted until the update
 interval of wocommunity has elapsed or updates are forced - [Help 1]



  --
   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: Qualifier against target entity?

2013-12-20 Thread Aaron Rosenzweig
Hi WOrriors,

A little late to the party but wanted to pass along that if you go to the 
“entity” you can create an “identity qualifier” that works everywhere including 
when you have a compound primary key.

For giggles, it would look something like so:

EOEntity entity = EOUtilities.entityForObject(eo.editingContext(), eo);
EOKeyGlobalID globalID = (EOKeyGlobalID) 
eo.editingContext().globalIDForObject(eo);
NSDictionary primaryKey = entity.primaryKeyForGlobalID(globalID);
EOQualifier identityQualifier = entity.qualifierForPrimaryKey(primaryKey);

Cheers,
AARON ROSENZWEIG / Chat 'n Bike
e:  aa...@chatnbike.com  t:  (301) 956-2319 


On Dec 17, 2013, at 9:22 AM, Ken Anderson kenli...@anderhome.com wrote:

 Samuel,
 
 Thanks - this is the most elegant approach I’ve found!
 
 Ken
 
 On Dec 10, 2013, at 12:49 PM, Samuel Pelletier sam...@samkar.com wrote:
 
 OK, next try…
 
 If you qualify in memory, you may use the key self with an equals operator.
 ERXQ.notEquals(self, studentToRemove);
 
 If you qualify in database, I found a working solution. Add a method to your 
 entity class that return a qualifier like this:
 
 public ERXKeyValueQualifier notMeQualifier() {
  return ERXQ.notEquals(id, 
 ERXEOControlUtilities.primaryKeyObjectForObject(this));
 }
 
 id need to be replaced by your primary key attribute name, this attribute 
 does not need to be visible (class attribute) and this will only work for 
 single column primary key.
 
 Samuel
 
 
 Le 2013-12-10 à 09:34, Ken Anderson kenli...@anderhome.com a écrit :
 
 Samuel,
 
 Yes, of course…  but the qualifier is passed through many levels of API - 
 so not so easy.  Thanks for chiming in.
 
 Ken
 
 On Dec 10, 2013, at 8:23 AM, Samuel Pelletier sam...@samkar.com wrote:
 
 Hi,
 
 A simple solution is to add a line to your fetch method.
 
 students = fetch Students where grade  80 ;
 
 students = ERXArrayUtilities.arrayMinusObject(students, studentToRemove);  
 — Line to add
 return students;
 
 Samuel
 
 Le 2013-12-08 à 12:44, Ken Anderson kenli...@anderhome.com a écrit :
 
 No, I already have an EO I want to exclude...  Not an attribute of an EO.
 
 On Dec 8, 2013, at 12:39 PM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 Student.STUDENT_LAST_NAME.notIn(Smith)
 
 from what I see there is:in, notIn, inObjects, noInObjects
 
 is this what you are looking for?
 
 
 
 
 On Dec 7, 2013, at 11:01 PM, Ken Anderson kenli...@anderhome.com 
 wrote:
 
 All,
 
 I know I’ve done this before, but I do it seldom enough that I can’t 
 remember.  I want to create a qualifier to select a bunch of objects 
 but to exclude one of the objects that might match the qualifier:
 
 Give me all the Students where grade  80 and Student is not “Joe Smith”
 
 How do I do that again?  and is there any special whizzy wonder ERX Key 
 to do it?
 
 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/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/samuel%40samkar.com
 
 This email sent to sam...@samkar.com
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com
 
 This email sent to aa...@chatnbike.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: Qualifier against target entity?

2013-12-20 Thread Ken Anderson
I knew it existed!  Thanks Aaron!

Ken

On Dec 20, 2013, at 11:53 AM, Aaron Rosenzweig aa...@chatnbike.com wrote:

 Hi WOrriors,
 
 A little late to the party but wanted to pass along that if you go to the 
 “entity” you can create an “identity qualifier” that works everywhere 
 including when you have a compound primary key.
 
 For giggles, it would look something like so:
 
 EOEntity entity = EOUtilities.entityForObject(eo.editingContext(), eo);
 EOKeyGlobalID globalID = (EOKeyGlobalID) 
 eo.editingContext().globalIDForObject(eo);
 NSDictionary primaryKey = entity.primaryKeyForGlobalID(globalID);
 EOQualifier identityQualifier = entity.qualifierForPrimaryKey(primaryKey);
 
 Cheers,
 AARON ROSENZWEIG / Chat 'n Bike
 e:  aa...@chatnbike.com  t:  (301) 956-2319
   
 
 On Dec 17, 2013, at 9:22 AM, Ken Anderson kenli...@anderhome.com wrote:
 
 Samuel,
 
 Thanks - this is the most elegant approach I’ve found!
 
 Ken
 
 On Dec 10, 2013, at 12:49 PM, Samuel Pelletier sam...@samkar.com wrote:
 
 OK, next try…
 
 If you qualify in memory, you may use the key self with an equals 
 operator.
 ERXQ.notEquals(self, studentToRemove);
 
 If you qualify in database, I found a working solution. Add a method to 
 your entity class that return a qualifier like this:
 
 public ERXKeyValueQualifier notMeQualifier() {
 return ERXQ.notEquals(id, 
 ERXEOControlUtilities.primaryKeyObjectForObject(this));
 }
 
 id need to be replaced by your primary key attribute name, this attribute 
 does not need to be visible (class attribute) and this will only work for 
 single column primary key.
 
 Samuel
 
 
 Le 2013-12-10 à 09:34, Ken Anderson kenli...@anderhome.com a écrit :
 
 Samuel,
 
 Yes, of course…  but the qualifier is passed through many levels of API - 
 so not so easy.  Thanks for chiming in.
 
 Ken
 
 On Dec 10, 2013, at 8:23 AM, Samuel Pelletier sam...@samkar.com wrote:
 
 Hi,
 
 A simple solution is to add a line to your fetch method.
 
 students = fetch Students where grade  80 ;
 
 students = ERXArrayUtilities.arrayMinusObject(students, studentToRemove); 
  — Line to add
 return students;
 
 Samuel
 
 Le 2013-12-08 à 12:44, Ken Anderson kenli...@anderhome.com a écrit :
 
 No, I already have an EO I want to exclude...  Not an attribute of an EO.
 
 On Dec 8, 2013, at 12:39 PM, Theodore Petrosky tedp...@yahoo.com 
 wrote:
 
 Student.STUDENT_LAST_NAME.notIn(Smith)
 
 from what I see there is:in, notIn, inObjects, noInObjects
 
 is this what you are looking for?
 
 
 
 
 On Dec 7, 2013, at 11:01 PM, Ken Anderson kenli...@anderhome.com 
 wrote:
 
 All,
 
 I know I’ve done this before, but I do it seldom enough that I can’t 
 remember.  I want to create a qualifier to select a bunch of objects 
 but to exclude one of the objects that might match the qualifier:
 
 Give me all the Students where grade  80 and Student is not “Joe 
 Smith”
 
 How do I do that again?  and is there any special whizzy wonder ERX 
 Key to do it?
 
 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/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/samuel%40samkar.com
 
 This email sent to sam...@samkar.com
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com
 
 This email sent to aa...@chatnbike.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: shameless plug -

2013-12-20 Thread Timothy Worman
Thanks for sharing Jesse!

Tim
UCLA GSEIS

On Dec 20, 2013, at 7:39 AM, Jesse Tayler jtay...@oeinc.com wrote:

 
 Hi All,
 
 no mention of WebObjects, but some good stories about NeXT and those days, 
 for those interested!
 
 https://twitter.com/tendigi/status/413356798260043776
 
 please re-tweet if you like!
 
 best
 
 jess
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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