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