• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Compilation errors when adding PostgresqlPlugin to maven-woapplication-project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compilation errors when adding PostgresqlPlugin to maven-woapplication-project


  • Subject: Re: Compilation errors when adding PostgresqlPlugin to maven-woapplication-project
  • From: Paul Dunkler <email@hidden>
  • Date: Fri, 02 Dec 2011 00:28:51 +0100

Hi Henrique,

Are you adding the PostgresqlPlugin dependency after the ERExtensions dependency in the pom.xml? Wonder solution to enhance the NSArray class requires the ERExtension framework to be loaded before the JavaFoundation framework, which is transitively added by the PostgresqlPlugin.

Exactly that was it, what was wrong :) Thank you very much!


Cheers,

Henrique

On 01/12/2011, at 14:49, Ramsey Gurley wrote:


On Dec 1, 2011, at 9:44 AM, Paul Dunkler wrote:

NSArray doesn't have a var args constructor

http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/foundation/NSArray.html

Only wonder's version of NSArray has that.

Okay, but that isn't an explanation for the broken compile, is it?

I won't pretend to understand Maven :-)  I'll leave the rest of your  question to someone who just loves dependency management.  I'm only pointing out that it's possibly finding the WO version before the Wonder one.

Ramsey

I mean it works if i remove the PostgresqlPlugin... And if i remove the plugin, my code will not change... the var args constructor is then still there... I don't understand that


Ramsey

On Dec 1, 2011, at 7:25 AM, Paul Dunkler wrote:

Hi Guys,

i´m currently trying to convert our deployment scenario to maven. Therefore i am currently creating the pom-hierarchy plus the pom's for the different projects which build our products.

Well i've put the PostgresqlPlugin in one of these builds and it is broken now. It is throwing creepy compilation errors when inserted into the pom:
[ERROR] /Users/paul/XYRALITY/Source/BKWorldServer/Sources/com/xyrality/bk/actions/BKDirectAction.java:[125,48] cannot find symbol
symbol  : constructor NSArray(com.webobjects.eocontrol.EOQualifier,com.webobjects.eocontrol.EOQualifier)
location: class com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOQualifier>
[ERROR] /Users/paul/XYRALITY/Source/BKWorldServer/Sources/com/xyrality/bk/actions/AllianceAction.java:[823,142] cannot find symbol
symbol  : constructor NSArray(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
location: class com.webobjects.foundation.NSArray<java.lang.String>
[ERROR] /Users/paul/XYRALITY/Source/BKWorldServer/Sources/com/xyrality/bk/actions/ProfileAction.java:[88,107] cannot find symbol
symbol  : constructor NSArray(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
location: class com.webobjects.foundation.NSArray<java.lang.String>
[ERROR] /Users/paul/XYRALITY/Source/BKWorldServer/Sources/com/xyrality/bk/actions/ProfileAction.java:[159,106] cannot find symbol
symbol  : constructor NSArray(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
location: class com.webobjects.foundation.NSArray<java.lang.String>

It feels like the PostgresqlPlugin overwritten the NSArray-Class or why doesn't it find the var args-constructors for it?
If i delete the dependency the build will run fine... any ideas? I am using the version wonder version 5.4.2 and webobjects version 5.4.3 with the following dependencies:

    <dependency>
      <groupId>${wonder.core.groupId}</groupId>
      <artifactId>ERExtensions</artifactId>
    </dependency>
    <dependency>
      <groupId>${wonder.core.groupId}</groupId>
      <artifactId>WOOgnl</artifactId>
    </dependency>
    <dependency>
      <groupId>${wonder.core.groupId}</groupId>
      <artifactId>ERPrototypes</artifactId>
    </dependency>
    <dependency>
      <groupId>${webobjects.groupId}</groupId>
      <artifactId>JavaWebObjects</artifactId>
    </dependency>
      <dependency>
        <groupId>${webobjects.groupId}</groupId>
        <artifactId>JavaEOAccess</artifactId>
      </dependency>
<dependency>
    <groupId>postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>9.0-801.jdbc4</version>
</dependency>

Maven version number:
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)

OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"


Lifecycle and compiler plugin are the following:
      <plugin>
        <groupId>org.objectstyle.woproject.maven2</groupId>
        <artifactId>maven-wolifecycle-plugin</artifactId>
        <version>2.2.1</version>
        <extensions>true</extensions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>${jvmtarget}</source>
          <target>${jvmtarget}</target>
        </configuration>
      </plugin>

Would very nice if someone can help :) 


--
Mit freundlichen Grüßen

Paul Dunkler



<xyrality_logo_medium.png>

-----------------------------------------------------
XYRALITY GmbH • Lerchenstraße 28a • 22767 Hamburg
Paul Dunkler • Softwareentwickler
Mail: email@hidden
Tel: +49 (0) 40 23 51 78 97
Mobil: +49 (0) 151 252 228 42
Fax: +49 (0) 40 23 51 78 98
Web: http://www.xyrality.com/
Registergericht: Hamburg HRB 115332
Geschäftsführer: Sven Ossenbrüggen & Alexander Spohr
-----------------------------------------------------
--
Mit freundlichen Grüßen

Paul Dunkler





-----------------------------------------------------
XYRALITY GmbH • Lerchenstraße 28a • 22767 Hamburg
Paul Dunkler • Softwareentwickler
Mail: email@hidden
Tel: +49 (0) 40 23 51 78 97
Mobil: +49 (0) 151 252 228 42
Fax: +49 (0) 40 23 51 78 98
Web: http://www.xyrality.com/
Registergericht: Hamburg HRB 115332
Geschäftsführer: Sven Ossenbrüggen & Alexander Spohr
-----------------------------------------------------

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Compilation errors when adding PostgresqlPlugin to maven-woapplication-project (From: Paul Dunkler <email@hidden>)
 >Re: Compilation errors when adding PostgresqlPlugin to maven-woapplication-project (From: Ramsey Gurley <email@hidden>)
 >Re: Compilation errors when adding PostgresqlPlugin to maven-woapplication-project (From: Paul Dunkler <email@hidden>)
 >Re: Compilation errors when adding PostgresqlPlugin to maven-woapplication-project (From: Ramsey Gurley <email@hidden>)
 >Re: Compilation errors when adding PostgresqlPlugin to maven-woapplication-project (From: Henrique Prange <email@hidden>)

  • Prev by Date: Re: custom handling of edit/inspect buttons on list page
  • Next by Date: AjaxObserveField observeFieldFrequency problem
  • Previous by thread: Re: Compilation errors when adding PostgresqlPlugin to maven-woapplication-project
  • Next by thread: Re: Question on WebObjects, WOLips and Wonder Tutorial, part 2
  • Index(es):
    • Date
    • Thread