2 Replies Latest reply on Jul 24, 2007 3:14 AM by paata lominadze

    can't build jboss seam 2.0 beta

    paata lominadze Master

      hi all,
      i got jboss seam from cvs repository ( 20.07.07),
      but when i tried to build it by ant, first i got warnings :

      [java] [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from repository.jboss.com
       [java] [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-resources-plugin' could not be retrieved from repository: repository.jboss.com due to an error: Error transferring file
       [java] [INFO] Repository 'repository.jboss.com' will be blacklisted
       [java] Downloading: http://repo1.maven.org/maven2/org/ajax4jsf/cdk/maven-cdk-plugin/1.1.1/maven-cdk-plugin-1.1.1.pom
       [java] [WARNING] Unable to get resource 'org.ajax4jsf.cdk:maven-cdk-plugin:pom:1.1.1' from repository central (http://repo1.maven.org/maven2)
       [java] Downloading: http://repository.jboss.com/maven2/org/ajax4jsf/cdk/maven-cdk-plugin/1.1.1/maven-cdk-plugin-1.1.1.pom
       [java] [WARNING] Unable to get resource 'org.ajax4jsf.cdk:maven-cdk-plugin:pom:1.1.1' from repository repository.jboss.com (http://repository.jboss.com/maven2)
       [java] Downloading: http://download.java.net/maven/1/org.ajax4jsf.cdk/poms/maven-cdk-plugin-1.1.1.pom
      [java] [WARNING] Unable to get resource 'org.ajax4jsf.cdk:maven-cdk-plugin:pom:1.1.1' from repository maven1.java.net (http://download.java.net/maven/1)
       [java] Downloading: http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//org/ajax4jsf/cdk/maven-cdk-plugin/1.1.1/maven-cdk-plugin-1.1.1.pom
       [java] [WARNING] Unable to get resource 'org.ajax4jsf.cdk:maven-cdk-plugin:pom:1.1.1' from repository gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
       [java] Downloading: http://download.java.net/maven/glassfish//org/ajax4jsf/cdk/maven-cdk-plugin/1.1.1/maven-cdk-plugin-1.1.1.pom
      

      i am behind a proxy but i have ant_opts into my environment :
      -Dhttp.proxyHost=192.168.9.5 -Dhttp.proxyPort=8080
      i don't understand why it could not get packages from repository :(

      after build failed, but i did not see any errors :(


        • 1. Re: can't build jboss seam 2.0 beta
          paata lominadze Master

          is there anybody who can help me ? :(
          i can't build seam manually from cvs repository.

          • 2. FacesMessages,Seam Ajax4JSF
            paata lominadze Master

            hi all,
            i tried to use faces messages for ajax commandbutton (a4j:commandButton)
            but message is not appears, i got warnind on server side :

            23:15:48,021 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
            sourceId=null[severity=(INFO 0), summary=(Too Long Property Name. Please Trye Again), detail=(Too Long Property Name. Please Trye Again)]
            

            here is my example :
            1.xhtml view :
            <table border="0" cellpadding="4" cellspacing="0" width="100%">
             <tr>
             <td>
             <h:message styleClass="cntError"/>
             </td>
             </tr>
             <tr>
             td>
             <a4j:commandButton action="#{propertyBean.addProperty}" value="Add Property"/>
             </td>
             </tr>
            </table>
            

            2.Backing Bean :
            public void addProperty(){
             try {
             if (property.getPropertyName().length()>10) {
             FacesMessages.instance().add("Too Long Property Name. Please Trye Again");
             return;
             }
             Users user = (Users)sessionContext.get("currentUser");
             property.setRecStatus(new Long(1));
             property.setRegDate(new java.sql.Date(System.currentTimeMillis()));
             property.setRemark("Property Parameter For User");
             property.setUserId(user);
             em.persist(property);
             } catch (Exception e) {
             e.printStackTrace();
             FacesMessages.instance().add("Could not Register. Please Trye Again");
             }
             }
            


            but message is not appears,
            any idea will be appreciated.


            _______________________
            Regards
            Paata