ICEfaces
  1. ICEfaces
  2. ICE-4123

Component-metadata compilation fails.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8RC1
    • Fix Version/s: 1.8RC2, 1.8
    • Component/s: None
    • Labels:
      None
    • Environment:
      icefaces from trunk, revision 18393
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Current workaround is setting failonerror="false" in line 98 of build.xml file.
      like
      <java classname="com.icesoft.faces.metadata.TestValidMetadataXML" failonerror="false" fork="true">
                  <classpath refid="build.classpath" />
       </java>

      Show
      Current workaround is setting failonerror="false" in line 98 of build.xml file. like <java classname="com.icesoft.faces.metadata.TestValidMetadataXML" failonerror="false" fork="true">             <classpath refid="build.classpath" />  </java>

      Description

      Current component-metadata can not be compiled in offline or proxy mode.
      Up to revision 18231 everything was ok.

      Error description

           [java] ---------
           [java] java.net.ConnectException: Connection timed out: connect
           [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
           [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

           [java] java.net.UnknownHostException: java.sun.com
           [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
           [java] at java.net.Socket.connect(Socket.java:519)
           [java] at java.net.Socket.connect(Socket.java:469)
      (...)
           [java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
           [java] at com.icesoft.faces.metadata.TestValidMetadataXML.transform(TestValidMetadataXML.java:112)
           [java] at com.icesoft.faces.metadata.TestValidMetadataXML.setUp(TestValidMetadataXML.java:131)
           [java] at com.icesoft.faces.metadata.TestValidMetadataXML.main(TestValidMetadataXML.java:69)

        Activity

        Hide
        Krashan Brahmanjara added a comment -

        ConnectException cause is searching for url http://java.sun.com/dtd/web-facesconfig_1_1.dtd

        Proxy users can use this patch:

        component-metadata/build.xml, line 102
        <java classname="com.icesoft.faces.metadata.TestValidMetadataXML" failonerror="true" fork="true">
        <classpath refid="build.classpath" />
        > <jvmarg value="-Dhttp.proxyHost=$

        {proxy.host}

        "/>
        > <jvmarg value="-Dhttp.proxyPort=$

        {proxy.port}

        "/>
        > <jvmarg value="-Dhttp.nonProxyHosts=$

        {proxy.nonproxyhosts}

        "/>
        </java>

        build.properties, add to end
        >proxy.host=ip
        >proxy.port=port

        Any solution for offline users?
        >proxy.nonproxyhosts=

        Show
        Krashan Brahmanjara added a comment - ConnectException cause is searching for url http://java.sun.com/dtd/web-facesconfig_1_1.dtd Proxy users can use this patch: component-metadata/build.xml, line 102 <java classname="com.icesoft.faces.metadata.TestValidMetadataXML" failonerror="true" fork="true"> <classpath refid="build.classpath" /> > <jvmarg value="-Dhttp.proxyHost=$ {proxy.host} "/> > <jvmarg value="-Dhttp.proxyPort=$ {proxy.port} "/> > <jvmarg value="-Dhttp.nonProxyHosts=$ {proxy.nonproxyhosts} "/> </java> build.properties, add to end >proxy.host=ip >proxy.port=port Any solution for offline users? >proxy.nonproxyhosts=
        Hide
        Krashan Brahmanjara added a comment -

        Offline compilation broken somewhere between revision 18231 and 18278.

        Show
        Krashan Brahmanjara added a comment - Offline compilation broken somewhere between revision 18231 and 18278.
        Hide
        Frank Ye added a comment -

        change faces-config-base.xml to use local dtd

        Show
        Frank Ye added a comment - change faces-config-base.xml to use local dtd
        Hide
        Krashan Brahmanjara added a comment -

        Ok. I see the problem started with rev.18244.

        Local copy web-facesconfig_1_1.dtd exist in sources and jar's. This is old and not upgraded file. I think that looking fof it in web is not neccesary.

        I suggest restore previous version of this line
        < "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"
        > "dtd/web-facesconfig_1_1.dtd"

        Show
        Krashan Brahmanjara added a comment - Ok. I see the problem started with rev.18244. Local copy web-facesconfig_1_1.dtd exist in sources and jar's. This is old and not upgraded file. I think that looking fof it in web is not neccesary. I suggest restore previous version of this line < "http://java.sun.com/dtd/web-facesconfig_1_1.dtd" > "dtd/web-facesconfig_1_1.dtd"

          People

          • Assignee:
            Unassigned
            Reporter:
            Krashan Brahmanjara
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: