Hi, According to the [1], it seems that this is a issue with maven-war-plugin [1] - http://stackoverflow.com/questions/7539970/cannot-construct-org-apache-maven-plugin-war-util-webappstructure-as-it-does-not But I was able to build the java8support branch without any issue. Can you update the maven-war-plugin version in VirtualDirectoryListing sample and check?
Thanks Best Regards On Fri, May 8, 2015 at 6:35 PM, Niranjan Karunanandham <niran...@wso2.com> wrote: > Hi Kasun, > > Am using apache-maven-3.0.5. > > Regards, > Nira > > On Fri, May 8, 2015 at 6:33 PM, Kasun Gajasinghe <kas...@wso2.com> wrote: > >> Can you check the maven version you are using? >> >> On May 8, 2015, at 5:14 PM, Niranjan Karunanandham <niran...@wso2.com> >> wrote: >> >> Hi, >> >> I deleted my .m2 repo and tried to build the java8suport branch of >> product-as [1] and I got the error in [2]. As anyone encountered this error? >> >> I am currently using JDK 1.7.0_45 >> >> [1] - https://github.com/wso2/product-as/tree/java8support >> [2] - *[INFO] Sample/Mail Transport ............................. >> SUCCESS [0.051s]* >> *[INFO] Sample/HelloWorldWebapp ........................... SUCCESS >> [0.160s]* >> *[INFO] Sample/WebappVersioning ........................... SUCCESS >> [0.071s]* >> *[INFO] Sample/VirtualDirectoryListing .................... FAILURE >> [39.630s]* >> *[INFO] Sample/EJBLibrary ................................. SKIPPED* >> *[INFO] Library EJB module ................................ SKIPPED* >> *[INFO] Library EAR Archive ............................... SKIPPED* >> *[INFO] Sample/GenericJavaBean ............................ SKIPPED* >> *[INFO] Sample/JDBCDataSource ............................. SKIPPED* >> *[INFO] CarbonDataSourceAccessSample ...................... SKIPPED* >> *[INFO] Samples/LogModule ................................. SKIPPED* >> *[INFO] Entitlement_Sample_WebApp ......................... SKIPPED* >> *[INFO] WSO2 AppServer - Samples Parent ................... SKIPPED* >> *[INFO] WSO2 Stratos AppServer - Samples ................. SKIPPED* >> *[INFO] WSO2 AS - Sample SimpleStockQuoteService .......... SKIPPED* >> *[INFO] WSO2 Stratos AppServer - Sample Installer ......... SKIPPED* >> *[INFO] WSO2 AS - Example webapp .......................... SKIPPED* >> *[INFO] WSO2 AppServer - Features Parent .................. SKIPPED* >> *[INFO] WSO2 AppServer - Features Aggregator Module ....... SKIPPED* >> *[INFO] WSO2 AppServer - Style Features ................... SKIPPED* >> *[INFO] WSO2 AppServer - Utils Features ................... SKIPPED* >> *[INFO] WSO2 AppServer - Nested Feature Categories ........ SKIPPED* >> *[INFO] Application Management ............................ SKIPPED* >> *[INFO] Application Hosting ............................... SKIPPED* >> *[INFO] Javaee Runtime .................................... SKIPPED* >> *[INFO] Miscellaneous ..................................... SKIPPED* >> *[INFO] Tenancy Management ................................ SKIPPED* >> *[INFO] User Management ................................... SKIPPED* >> *[INFO] Single Sign On(SAML2) ............................. SKIPPED* >> *[INFO] Registry/Repository ............................... SKIPPED* >> *[INFO] Monitoring ........................................ SKIPPED* >> *[INFO] AppServer Tools ................................... SKIPPED* >> *[INFO] AppServer Styles .................................. SKIPPED* >> *[INFO] WSO2 Stratos AppServer - Features Aggregator Module SKIPPED* >> *[INFO] WSO2 Stratos AppServer - Style Features ........... SKIPPED* >> *[INFO] WSO2 Stratos AppServer - Utils Features ........... SKIPPED* >> *[INFO] WSO2 Stratos AppServer - Dashboard UI ............ SKIPPED* >> *[INFO] WSO2 Stratos AppServer - Dashboard UI Features .... SKIPPED* >> *[INFO] WSO2 Stratos AppServer - Sample installer UI Features SKIPPED* >> *[INFO] WSO2 AS - Login User Interface .................... SKIPPED* >> *[INFO] WSO2 Stratos AppServer - Deployment Features ...... SKIPPED* >> *[INFO] WSO2 AppServer - AppServer Profile Generation ..... SKIPPED* >> *[INFO] WSO2 AppServer - Distribution ..................... SKIPPED* >> *[INFO] >> ------------------------------------------------------------------------* >> *[INFO] BUILD FAILURE* >> *[INFO] >> ------------------------------------------------------------------------* >> *[INFO] Total time: 14:57.734s* >> *[INFO] Finished at: Fri May 08 17:07:42 IST 2015* >> *[INFO] Final Memory: 52M/580M* >> *[INFO] >> ------------------------------------------------------------------------* >> *[ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war (default-war) on >> project wso2appserver-samples-VirtualDirectoryListing: Execution >> default-war of goal >> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war failed: Cannot >> construct org.apache.maven.plugin.war.util.WebappStructure as it does not >> have a no-args constructor : Cannot construct >> org.apache.maven.plugin.war.util.WebappStructure as it does not have a >> no-args constructor* >> *[ERROR] ---- Debugging information ----* >> *[ERROR] message : Cannot construct >> org.apache.maven.plugin.war.util.WebappStructure as it does not have a >> no-args constructor* >> *[ERROR] cause-exception : >> com.thoughtworks.xstream.converters.reflection.ObjectAccessException* >> *[ERROR] cause-message : Cannot construct >> org.apache.maven.plugin.war.util.WebappStructure as it does not have a >> no-args constructor* >> *[ERROR] class : >> org.apache.maven.plugin.war.util.WebappStructure* >> *[ERROR] required-type : >> org.apache.maven.plugin.war.util.WebappStructure* >> *[ERROR] path : /webapp-structure* >> *[ERROR] line number : 1* >> *[ERROR] -------------------------------* >> *[ERROR] -> [Help 1]* >> *[ERROR] * >> *[ERROR] To see the full stack trace of the errors, re-run Maven with the >> -e switch.* >> *[ERROR] Re-run Maven using the -X switch to enable full debug logging.* >> *[ERROR] * >> *[ERROR] For more information about the errors and possible solutions, >> please read the following articles:* >> *[ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException >> <http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException>* >> *[ERROR] * >> *[ERROR] After correcting the problems, you can resume the build with the >> command* >> *[ERROR] mvn <goals> -rf :wso2appserver-samples-VirtualDirectoryListing* >> >> >> Regards, >> Nira >> >> -- >> >> *Niranjan Karunanandham* >> Senior Software Engineer - WSO2 Inc. >> WSO2 Inc.: http://www.wso2.com >> >> > > > -- > > *Niranjan Karunanandham* > Senior Software Engineer - WSO2 Inc. > WSO2 Inc.: http://www.wso2.com > -- Thusitha Dayaratne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com About http://about.me/thusithathilina
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev