Hi all, When running sample "WS-Security Sample on Signature and Encryption"[1]<https://docs.wso2.org/display/AS521/WS-Security+Sample+on+Signature+and+Encryption>user have to follow set up instruction at [2]<https://docs.wso2.org/display/AS521/Building+and+Running+JAX-WS+Samples>. Due to a known issue [3] <https://wso2.org/jira/browse/WSAS-1663>documentation recommends to comment out the parent element in the pom.xml in the <AS_HOME>\samples\ directory. After commenting out the above mentioned parent element build fails with following exception,
[INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.wso2.appserver:wso2appserver-cxf-security-samples:5.2.1 (/home/sameerak/Documents/wso2as-5.2.1/samples/Jaxws-Jaxrs/ws_security/pom.xml) has 2 errors [ERROR] 'groupId' is missing. @ [unknown-group-id]:wso2appserver-samples:[unknown-version], /home/sameerak/Documents/wso2as-5.2.1/samples/pom.xml, line 19, column 106 [ERROR] 'version' is missing. @ [unknown-group-id]:wso2appserver-samples:[unknown-version], /home/sameerak/Documents/wso2as-5.2.1/samples/pom.xml, line 19, column 106 [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/ProjectBuildingException I worked around this problem by adding following version and groupid element to the pom.xml after the commented out parent element. <groupId>org.wso2.appserver</groupId> <version>5.2.1</version> Is this the correct way to build and run this sample? Seems like some thing is missing in the steps presented at [2]<https://docs.wso2.org/display/AS521/Building+and+Running+JAX-WS+Samples> ? Also sample location mentioned in "WS-Security Sample on Signature and Encryption"[1]<https://docs.wso2.org/display/AS521/WS-Security+Sample+on+Signature+and+Encryption> should be corrected as <AS_HOME>\samples\Jaxws-Jaxrs\ws_security\sign_encrypt. Thank you, Sameera Kannangara, Software Engineer, WSO2 Inc. [1] https://docs.wso2.org/display/AS521/WS-Security+Sample+on+Signature+and+Encryption [2] https://docs.wso2.org/display/AS521/Building+and+Running+JAX-WS+Samples [3] https://wso2.org/jira/browse/WSAS-1663
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
