Results 1 to 5 of 5

Thread: The booking-faces sample does not build in new Webflow 2.2.0 Release ?

  1. #1

    Exclamation The booking-faces sample does not build in new Webflow 2.2.0 Release ?

    Hi, have downloaded the latest 2.2.0 release with an interest in Primefaces (integration) and have attempted the build (ant jar) the booking faces demo app but am seeing ivy unresolved dependencies, see below;
    Have tried adding these across from the SWF2.2.0.RELEASE distribution but then IVY seems unable to resolve the primefaces jar nor the com.sun.faces jsf jars.

    Anybody else having troubles with booking-faces on SWF 2.2.0 ?

    <code>
    C:\spring-webflow-2.2.0.RELEASE\projects\spring-webflow-samples\booking-faces>ant jar
    Buildfile: build.xml
    Trying to override old definition of task dist-jar

    ivy.init:

    ivy.file.exists:

    resolve.init:

    resolve.compile:
    [ivy:cachepath] :: Ivy 2.0.0 - 20090108225011 :: http://ant.apache.org/ivy/ ::
    :: loading settings :: file = C:\spring-webflow-2.2.0.RELEASE\projects\build-spr
    ing-webflow\ivysettings.xml
    [ivy:cachepath] [2.2.0.RELEASE] org.springframework.webflow#org.springfr
    amework.js;latest.integration
    [ivy:cachepath] [2.2.0.RELEASE] org.springframework.webflow#org.springfr
    amework.webflow;latest.integration
    [ivy:cachepath] [2.2.0.RELEASE] org.springframework.webflow#org.springfr
    amework.faces;latest.integration
    [ivy:cachepath]
    [ivy:cachepath] :: problems summary ::
    [ivy:cachepath] :::: ERRORS
    [ivy:cachepath] org.springframework.webflow#org.springframework.js ;2.2.0
    .RELEASE!org.springframework.js-sources.jar(src) origin location must be absolut
    e: /home/rossen/dev/sources/springframework-svn/swf/tags/spring-webflow-2.2.0.RE
    LEASE/spring-webflow/../integration-repo/org.springframework.webflow/org.springf
    ramework.js/2.2.0.RELEASE/org.springframework.js-sources-2.2.0.RELEASE.jar
    [ivy:cachepath]
    [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

    BUILD FAILED
    C:\spring-webflow-2.2.0.RELEASE\projects\spring-build\common\common.xml:91: impo
    ssible to resolve dependencies:
    java.lang.IllegalArgumentException: org.springframework.webflow#org.spri
    ngframework.js;2.2.0.RELEASE!org.springframework.j s-sources.jar(src) origin loca
    tion must be absolute: /home/rossen/dev/sources/springframework-svn/swf/tags/spr
    ing-webflow-2.2.0.RELEASE/spring-webflow/../integration-repo/org.springframework
    .webflow/org.springframework.js/2.2.0.RELEASE/org.springframework.js-sources-2.2
    .0.RELEASE.jar
    </code>

  2. #2

    Red face reran 'ant jar' in build-spring-webflow to fix

    run 'ant jar' in build-spring-webflow which restored the missing (probably inadvertedly moved) directories, then 'ant jar' in booking faces works...

  3. #3
    Join Date
    Oct 2010
    Posts
    11

    Default

    I am also running in to the same issue, so ran the build as you suggested :-

    I now get 2 errors and build failed. Below are the errors :-

    [s:javac] 811. ERROR in C:\mydev\spring\spring-webflow-2.2.0.RELEASE\projects\spring-webflow\src\main\java\org\springframework\webflow\ upgrade\WebFlowUpgrader.java (at line 34)
    [s:javac] import com.sun.org.apache.xml.internal.serializer.OutputP ropertiesFactory;
    [s:javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [s:javac] The import com.sun.org.apache.xml.internal.serializer cannot be resolved
    [s:javac] ----------
    [s:javac] 812. ERROR in C:\mydev\spring\spring-webflow-2.2.0.RELEASE\projects\spring-webflow\src\main\java\org\springframework\webflow\ upgrade\WebFlowUpgrader.java (at line 87)
    [s:javac] transformer.setOutputProperty(OutputPropertiesFact ory.S_KEY_INDENT_AMOUNT, "4");
    [s:javac] ^^^^^^^^^^^^^^^^^^^^^^^
    [s:javac] OutputPropertiesFactory cannot be resolved

  4. #4
    Join Date
    Oct 2010
    Posts
    11

    Default

    I ran in to the above issue because I was using IBM JDK. Changing to SUN jDK resolves the issue.

    There is already a bug logged in for this issue (defect)

    I also found a related FAQ on SUN's site : http://java.sun.com/products/jdk/faq...-packages.html

  5. #5
    Join Date
    Oct 2010
    Posts
    11

    Default

    I modified \org\springframework\webflow\upgrade\WebFlowUpgrad er.java to remove references to com.sun.org.apache.xml.internal.serializer.OutputP ropertiesFactory

    I didn't think this class has any role to play during runtime, I just had get pass the compilation error with ibm jdk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •