Tonight I uninstalled the IAM plugin for Maven and installed m2e.

  m2e - Maven Integration for Eclipse    1.0.200.20111228-1245
org.eclipse.m2e.feature.feature.group

Now I can build and appear to be able to run in debug mode.   This Maven
implementation is using the javax.xml.bind.Marshaller from my JRE (6), not
the Maven repository version (5).   I could never get the IAM tool to
respect this configuration so I'll stick with m2e.

My dependency tree is below.

[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building Ldap Synchronization Connector 2.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ lsc-core ---
[INFO] org.lsc:lsc-core:jar:2.0-SNAPSHOT
[INFO] +- org.apache.ibatis:ibatis-sqlmap:jar:2.3.4.726:compile
[INFO] +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] +- commons-configuration:commons-configuration:jar:1.4:compile
[INFO] |  +- commons-logging:commons-logging-api:jar:1.0.4:compile
[INFO] |  +- commons-digester:commons-digester:jar:1.8:compile
[INFO] |  |  +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] |  |  \- commons-logging:commons-logging:jar:1.1:compile
[INFO] |  |     +- logkit:logkit:jar:1.0.1:compile
[INFO] |  |     \- avalon-framework:avalon-framework:jar:4.1.3:compile
[INFO] |  +- commons-beanutils:commons-beanutils-core:jar:1.7.0:compile
[INFO] |  +- commons-codec:commons-codec:jar:1.3:compile
[INFO] |  \- commons-jxpath:commons-jxpath:jar:1.2:compile
[INFO] |     +- xerces:xerces:jar:1.2.3:compile
[INFO] |     +- javax.servlet:servlet-api:jar:2.2:compile
[INFO] |     +- ant:ant-optional:jar:1.5.1:compile
[INFO] |     +- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] |     \- jdom:jdom:jar:b9:compile
[INFO] +- xmlrpc:xmlrpc-client:jar:3.0:compile
[INFO] |  \- org.apache.xmlrpc:xmlrpc-common:jar:3.0:compile
[INFO] |     \- org.apache.ws.commons:ws-commons-util:jar:1.0.1:compile
[INFO] +- commons-io:commons-io:jar:1.4:compile
[INFO] +- commons-lang:commons-lang:jar:2.5:compile
[INFO] +- com.thoughtworks.xstream:xstream:jar:1.3.1:compile
[INFO] |  \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.6.0:compile
[INFO] +- ch.qos.logback:logback-classic:jar:0.9.21:compile
[INFO] +- ch.qos.logback:logback-core:jar:0.9.21:compile
[INFO] +- hsqldb:hsqldb:jar:1.8.0.10:compile
[INFO] +- rhino:js:jar:1.7R2:compile
[INFO] +- com.sleepycat:je:jar:4.1.10:compile
[INFO] +- bouncycastle:bcprov-jdk16:jar:140:compile
[INFO] +- commons-cli:commons-cli:jar:1.2:compile
[INFO] +- org.samba.jcifs:jcifs:jar:1.2.19:compile
[INFO] +- org.apache.tapestry:tapestry5-annotations:jar:5.2.5:compile
[INFO] +- net.java.dev.stax-utils:stax-utils:jar:20060502:compile
[INFO] +- com.googlecode.jmockit:jmockit:jar:0.999.11:test
[INFO] +- junit:junit:jar:4.10:compile
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.1:compile
[INFO] +- org.reflections:reflections:jar:0.9.5:compile
[INFO] |  +- com.google.guava:guava:jar:r08:compile
[INFO] |  +- javassist:javassist:jar:3.12.1.GA:compile
[INFO] |  \- dom4j:dom4j:jar:1.6.1:compile
[INFO] +- javax.transaction:jta:jar:1.1:compile
[INFO] +- net.java.xadisk:xadisk:jar:1.1:compile
[INFO] +- javax.resource:connector-api:jar:1.5:compile
[INFO] +- javaee:javaee-api:jar:5:compile
[INFO] +- org.codehaus.btm:btm:jar:2.1.0:compile
[INFO] +- org.codehaus.groovy:groovy-all:jar:1.7.0:compile
[INFO] |  \- jline:jline:jar:0.9.94:compile
[INFO] +- org.apache.directory.server:apacheds-all:jar:1.5.7:compile
[INFO] |  +- org.apache.directory.shared:shared-ldap:jar:0.9.19:compile
[INFO] |  |  +- org.apache.directory.shared:shared-i18n:jar:0.9.19:compile
[INFO] |  |  \- antlr:antlr:jar:2.7.7:compile
[INFO] |  +-
org.apache.directory.shared:shared-ldap-schema:jar:0.9.19:compile
[INFO] |  +-
org.apache.directory.shared:shared-ldap-schema-loader:jar:0.9.19:compile
[INFO] |  +-
org.apache.directory.shared:shared-ldap-schema-manager:jar:0.9.19:compile
[INFO] |  +- org.apache.directory.shared:shared-cursor:jar:0.9.19:compile
[INFO] |  +- org.apache.directory.shared:shared-ldap-jndi:jar:0.9.19:compile
[INFO] |  +-
org.apache.directory.shared:shared-asn1-codec:jar:0.9.19:compile
[INFO] |  |  \- org.apache.mina:mina-core:jar:2.0.0-RC1:compile
[INFO] |  +- org.apache.directory.shared:shared-asn1:jar:0.9.19:compile
[INFO] |  +-
org.apache.directory.shared:shared-ldap-constants:jar:0.9.19:compile
[INFO] |  +-
org.apache.directory.shared:shared-ldap-converter:jar:0.9.19:compile
[INFO] |  +-
org.apache.directory.shared:shared-ldap-schema-dao:jar:0.9.19:compile
[INFO] |  +- org.apache.directory.shared:shared-ldif:jar:0.9.19:compile
[INFO] |  \-
org.apache.directory.shared:shared-dsml-parser:jar:0.9.19:compile
[INFO] |     \- xpp3:xpp3:jar:1.1.4c:compile
[INFO] +-
org.apache.directory.server:apacheds-server-integ:jar:1.5.7:compile
[INFO] |  +-
org.apache.directory.server:apacheds-interceptor-kerberos:jar:1.5.7:compile
[INFO] |  |  +- org.apache.directory.server:apacheds-core:jar:1.5.7:compile
[INFO] |  |  |  +-
org.apache.directory.server:apacheds-core-api:jar:1.5.7:compile
[INFO] |  |  |  |  +-
org.apache.directory.server:apacheds-core-entry:jar:1.5.7:compile
[INFO] |  |  |  |  \-
org.apache.directory.server:apacheds-core-constants:jar:1.5.7:compile
[INFO] |  |  |  +-
org.apache.directory.server:apacheds-utils:jar:1.5.7:compile
[INFO] |  |  |  \- bouncycastle:bcprov-jdk15:jar:140:compile
[INFO] |  |  \-
org.apache.directory.server:apacheds-kerberos-shared:jar:1.5.7:compile
[INFO] |  |     +-
org.apache.directory.server:apacheds-core-jndi:jar:1.5.7:compile
[INFO] |  |     \-
org.apache.directory.server:apacheds-protocol-shared:jar:1.5.7:compile
[INFO] |  +- ldapsdk:ldapsdk:jar:4.1:compile
[INFO] |  \-
org.apache.directory.client.ldap:ldap-client-api:jar:0.1:compile
[INFO] |     \- commons-pool:commons-pool:jar:1.5.4:compile
[INFO] \- org.apache.directory.server:apacheds-core-integ:jar:1.5.7:compile
[INFO]    +- org.apache.directory.server:apacheds-i18n:jar:1.5.7:compile
[INFO]    \-
org.apache.directory.server:apacheds-test-framework:jar:1.5.7:compile
[INFO]       \-
org.apache.directory.server:apacheds-server-annotations:jar:1.5.7:compile
[INFO]          +-
org.apache.directory.server:apacheds-core-annotations:jar:1.5.7:compile
[INFO]          |  +-
org.apache.directory.server:apacheds-jdbm-partition:jar:1.5.7:compile
[INFO]          |  |  +-
org.apache.directory.server:apacheds-jdbm-store:jar:1.5.7:compile
[INFO]          |  |  |  +-
org.apache.directory.server:apacheds-jdbm:jar:1.5.7:compile
[INFO]          |  |  |  \-
org.apache.directory.server:apacheds-core-avl:jar:1.5.7:compile
[INFO]          |  |  \-
org.apache.directory.server:apacheds-xdbm-search:jar:1.5.7:compile
[INFO]          |  \-
org.apache.directory.server:apacheds-ldif-partition:jar:1.5.7:compile
[INFO]          |     +-
org.apache.directory.server:apacheds-avl-partition:jar:1.5.7:compile
[INFO]          |     \-
org.apache.directory.server:apacheds-core-mock:jar:1.5.7:compile
[INFO]          +-
org.apache.directory.server:apacheds-protocol-ldap:jar:1.5.7:compile
[INFO]          |  \-
org.apache.directory.server:apacheds-xdbm-tools:jar:1.5.7:compile
[INFO]          |     \-
org.apache.directory.server:apacheds-xdbm-base:jar:1.5.7:compile
[INFO]          \-
org.apache.directory.server:apacheds-protocol-kerberos:jar:1.5.7:compile
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.817s
[INFO] Finished at: Tue May 01 23:31:48 EDT 2012
[INFO] Final Memory: 19M/216M
[INFO]
------------------------------------------------------------------------


On Tue, May 1, 2012 at 10:52 AM, Hugh Kelley <[email protected]> wrote:

> Out of frustration, I created a fresh Eclipse workspace today with the
> https://lsc-project.org/svn/lsc/branches/v2.0/ code.    I am still not
> getting a valid (contains the file-based marshal method) class.
>
> The method marshal(Object, Result) in the type Marshaller is not
> applicable for the arguments (Lsc, File)
> JaxbXmlConfigurationHelper.java
> /lsc-core-v2.0/src/main/java/org/lsc/configuration    line 201    Java
> Problem
>
> My Marshaller class is included via
> Maven\Repository\javaee\javaee-api\5\javaee-api-5.jar, per the pom.xml
> dependency.
>
> Could someone with a working build environment kindly let me know if this
> matches your configuration?
>
> Thank you,
> Hugh
>
>
> On Thu, Apr 26, 2012 at 8:33 PM, Hugh Kelley <[email protected]>wrote:
>
>> I'm closer to sorting out this build issue as well, ironically, with the
>> help of my broken Eclipse Indigo IDE.
>>
>> That environment was using my base JDK for its reference to Marshaller,
>> and it appears to have later version that supports the File-based method
>> signature.
>>
>>         \Java\jdk1.6.0_30\jre\lib\rt.jar
>> javax.xml.bind.Marshaller.marshal(Object, File)
>>
>> The IDE with Maven integration, by contrast, was using the following jar,
>> which must apparently be older.
>>
>>         \Maven\Repository\javaee\javaee-api\5\javaee-api-5.jar
>>
>> Java EE 6 has the same signature as my JDK, but Maven downloaded Java EE
>> 5.
>>
>>
>> http://docs.oracle.com/javaee/6/api/javax/xml/bind/Marshaller.html#marshal%28java.lang.Object,%20java.io.File%29
>>
>> Flipping the build path order in my project (now JDK before Maven) has
>> corrected the issue - but perhaps this should be fixed in pom.xml as well?
>>
>>         <dependency>
>>             <groupId>javaee</groupId>
>>             <artifactId>javaee-api</artifactId>
>>             <version>5</version>
>>         </dependency>
>>
>> Hugh
>>
>>
>> On Thu, Apr 26, 2012 at 2:56 PM, Hugh Kelley <[email protected]>wrote:
>>
>>> Sébastien,  when I used that version (and the following installed
>>> items), Maven worked but the SVN client would not load.   I have
>>> reinstalled the SVN client (including a few of the optional components -
>>> see below) and it seems to be working fine now.  The only build error I'm
>>> seeing now is this.
>>>
>>>        The method marshal(Object, Result) in the type Marshaller is not
>>> applicable for the arguments (Lsc, File)
>>>        org.lsc.configuration.JaxbXmlConfigurationHelper.java    line
>>> 201
>>>
>>> Any ideas?
>>>
>>> I would also propose (it looks like I don't have rights to edit the
>>> wiki) adding a few items to the "Getting the Source Code" section of this
>>> page,
>>> http://lsc-project.org/wiki/documentation/2.0/development/ideintegrationfor 
>>> the benefit of rookies like me.
>>>
>>> Getting the source code
>>>
>>> You have two options to obtain the LSC-sample source code:
>>>
>>>    1. Download a release or a daily snapshot from the download 
>>> area<http://lsc-project.org/wiki/download>.
>>>    Untar the archive in your workspace directory for example.
>>>    2. Take the SVN version (if you want to check for new features,
>>>    etc…):
>>>    1. We recommend using the Subclipse <http://subclipse.tigris.org/>SVN 
>>> plugin for Eclipse. Installation instructions are available on
>>>       their website <http://subclipse.tigris.org/install.html> (it's
>>>       the same way you installed the Maven 2 plugin)
>>>       2. Create a new project from SVN: go to *File* → *New* → *Project…
>>>       *
>>>       3. Scroll down to *SVN* and select *Checkout Projects from SVN*,
>>>       then click on *Next*
>>>       4. Select *Create a new repository location* and click on *Next*
>>>       5. In the *URL* field enter the SVN repository location: *
>>>       https://lsc-project.org/svn/* and click on *Next*
>>>       6. Scroll down and select the *lsc/branches/v2.0/* project and
>>>       click on *Finish*
>>>       7. When prompted, import into the existing project.
>>>       8. In the Eclipse, right-click on the project and select Maven
>>>       dependency management.
>>>       9. Wait while Maven will downloads packages (several hours).
>>>       10. Attempt a build.
>>>
>>>
>>> To summarize, my Eclipse looks like this
>>>
>>> Eclipse IDE for Java Developers
>>> Version: Helios Service Release 2
>>> Build id: 20110218-0911
>>>
>>> Installation Details - Installed Software
>>>   Eclipse IAM    0.11.0.201001181900
>>> org.eclipse.iam.feature.feature.group
>>>     Apache Maven    2.1.0.659801e
>>> org.apache.maven.feature.feature.group
>>>   Eclipse IDE for Java Developers    1.3.2.20110218-0812
>>> epp.package.java
>>>     Eclipse Platform    3.6.2.M20110210-1200    org.eclipse.platform.ide
>>>     EPP Java Package    1.3.2.20110218-0812
>>> org.eclipse.epp.package.java.feature.feature.group
>>>   Subclipse (Required)    1.8.8
>>> org.tigris.subversion.subclipse.feature.group
>>>   Subversion Client Adapter (Required)    1.8.2
>>> org.tigris.subversion.clientadapter.feature.feature.group
>>>   Subversion JavaHL Native Library Adapter    1.7.4.1
>>> org.tigris.subversion.clientadapter.javahl.feature.feature.group
>>>
>>>
>>>
>>> On Thu, Apr 26, 2012 at 8:10 AM, Sébastien Bahloul <
>>> [email protected]> wrote:
>>>
>>>> Hi Hugh,
>>>>
>>>> Sorry to not answering you before. Have you tried with m2e or q4e Maven
>>>> plugin ? I use successfully Eclipse Helios Service Release 2 installation
>>>> with Eclipse.org m2e plugin (version 1.0.100.20110804-1717) and Tigris
>>>> Subversion Client Adapter 1.8.0
>>>>
>>>> You can enforce the src/main/java as source directory to be able to add
>>>> a new class but without maven plugin you won't be able to use it as a true
>>>> IDE (missing dependencies).
>>>>
>>>> Regards,
>>>> Le 25 avr. 2012 18:37, "Hugh Kelley" <[email protected]> a écrit :
>>>>
>>>>>  So far, I'm unable to get a "working" (which I'll define further
>>>>> down) Eclipse environment.  I'm not entirely new to Eclipse but admittedly
>>>>> my familiarity level is very low.
>>>>>
>>>>> I am following the instructions here,
>>>>> http://lsc-project.org/wiki/documentation/2.0/development/ideintegration
>>>>> and am able to download the project, though I chose /lsc/branches/v2.0/
>>>>> rather than lsc-sample since the latter appeared to be empty and the 
>>>>> former
>>>>> sounded more like what I wanted.
>>>>>
>>>>> The project itself seem to load into Eclipse just fine.   The issues
>>>>> comes in when I try to add a class to the org.lsc.service package (or any
>>>>> other).
>>>>>
>>>>> *  When I right-click on the "service" folder and create a new class,
>>>>> the Source folder and Package dialogs shows no entries.
>>>>> *  When I try to select SimpleJndiSrcService as the Superclass it is
>>>>> not an option
>>>>>
>>>>> I've installed the Maven bits, but when I try to right-click on the
>>>>> project and choose "Convert to Maven" it tells me that the "chosen
>>>>> operation is currently unavailable".   I'm not even sure if I should be
>>>>> able to do that, but I was speculating that the faulty project settings
>>>>> might be related to Maven issues.
>>>>>
>>>>> In short, could someone please point me in the right direction?
>>>>>
>>>>> Hugh
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________________________
>>>>> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>>>>>
>>>>> lsc-dev mailing list
>>>>> [email protected]
>>>>> http://lists.lsc-project.org/listinfo/lsc-dev
>>>>>
>>>>>
>>>
>>
>
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to