Re: [Dev] Writing WSO2 carbon component - stub generation error
After adding the repository xml code to the stub pom.xml I got the following log file which include a error message. Currently im using mvn 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it prints the error log. can someone help me on this. Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn clean install -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0 [INFO] Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 2.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom (13 KB at 21.2 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom (23 KB at 26.1 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom (15 KB at 9.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar (23 KB at 24.4 KB/sec) [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ org.wso2.carbon.student.mgt.stub --- [INFO] Deleting /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target [INFO] [INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @ org.wso2.carbon.student.mgt.stub --- [INFO] Source directory: /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/generated-code/src added. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.wso2.carbon.student.mgt.stub --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @ org.wso2.carbon.student.mgt.stub --- [INFO] Executing tasks [java] Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/WSDLException [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: java.lang.ClassNotFoundException: javax.wsdl.WSDLException [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) [java] ... 2 more [java] Java Result: 1 [INFO] Executed tasks [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ org.wso2.carbon.student.mgt.stub --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ org.wso2.carbon.student.mgt.stub --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/src/test/resources [INFO]
Re: [Dev] Writing WSO2 carbon component - stub generation error
Hi Thusara, According to this thread[1]. you should add axis2-client jar dependency to your pom. [1]http://mail.wso2.org/mailarchive/dev/2013-November/024907.html On Mon, Aug 25, 2014 at 12:24 PM, Thushara Ranawaka thusha...@wso2.com wrote: After adding the repository xml code to the stub pom.xml I got the following log file which include a error message. Currently im using mvn 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it prints the error log. can someone help me on this. Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn clean install -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0 [INFO] Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 2.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom (13 KB at 21.2 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom (23 KB at 26.1 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom (15 KB at 9.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar (23 KB at 24.4 KB/sec) [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ org.wso2.carbon.student.mgt.stub --- [INFO] Deleting /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target [INFO] [INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @ org.wso2.carbon.student.mgt.stub --- [INFO] Source directory: /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/generated-code/src added. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.wso2.carbon.student.mgt.stub --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @ org.wso2.carbon.student.mgt.stub --- [INFO] Executing tasks [java] Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/WSDLException [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: java.lang.ClassNotFoundException: javax.wsdl.WSDLException [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) [java] ... 2 more [java] Java Result: 1 [INFO] Executed tasks [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ org.wso2.carbon.student.mgt.stub --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/classes [INFO] [INFO] ---
[Dev] Writing WSO2 carbon component - stub generation error
Hi, After adding the repository xml code to the stub pom.xml I got the following log file which include a error message. Currently im using mvn 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it prints the error log. I found a mail-archive[1] which include the same error log as per the answer he has found including the axis2-client jar dependency to pom.xml but i try to add above dependancy and fail. Can someone help me on this. *axis2-client dependency added to the stub pom.xml(which failed):-* *dependency* *groupIdorg.apache.axis2.wso2/groupId* *artifactIdaxis2-client/artifactId* *version${axis2.client.version}/version* * /dependency* *Log:-* Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn clean install -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0 [INFO] Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 2.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom (13 KB at 21.2 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom (23 KB at 26.1 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom (15 KB at 9.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar (23 KB at 24.4 KB/sec) [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ org.wso2.carbon.student.mgt.stub --- [INFO] Deleting /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target [INFO] [INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @ org.wso2.carbon.student.mgt.stub --- [INFO] Source directory: /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/generated-code/src added. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.wso2.carbon.student.mgt.stub --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @ org.wso2.carbon.student.mgt.stub --- [INFO] Executing tasks [java] Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/WSDLException [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: java.lang.ClassNotFoundException: javax.wsdl.WSDLException [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) [java] ... 2 more [java] Java Result: 1 [INFO] Executed tasks [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ org.wso2.carbon.student.mgt.stub --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to
Re: [Dev] Writing WSO2 carbon component - stub generation error
Kindly fine the requested files. On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com wrote: Hi Can you add the pom.xml and the wsdl used for stub generation? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 12:43 PM, Thushara Ranawaka thusha...@wso2.com wrote: Hi, After adding the repository xml code to the stub pom.xml I got the following log file which include a error message. Currently im using mvn 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it prints the error log. I found a mail-archive[1] which include the same error log as per the answer he has found including the axis2-client jar dependency to pom.xml but i try to add above dependancy and fail. Can someone help me on this. *axis2-client dependency added to the stub pom.xml(which failed):-* *dependency* *groupIdorg.apache.axis2.wso2/groupId* *artifactIdaxis2-client/artifactId* *version${axis2.client.version}/version* * /dependency* *Log:-* Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn clean install -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0 [INFO] Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 2.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom (13 KB at 21.2 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom (23 KB at 26.1 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom (15 KB at 9.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar (23 KB at 24.4 KB/sec) [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ org.wso2.carbon.student.mgt.stub --- [INFO] Deleting /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target [INFO] [INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @ org.wso2.carbon.student.mgt.stub --- [INFO] Source directory: /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/generated-code/src added. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.wso2.carbon.student.mgt.stub --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @ org.wso2.carbon.student.mgt.stub --- [INFO] Executing tasks [java] Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/WSDLException [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: java.lang.ClassNotFoundException: javax.wsdl.WSDLException [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [java] at
Re: [Dev] Writing WSO2 carbon component - stub generation error
Seems you haven't defined the namespaces in the pom. Check [1]. There you can see following line which defines the namespaces mentioned in wsdl. arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.appfactory.application.deployer.stub -ns2p http://deploy.core.appfactory.carbon.wso2.org =org.wso2.carbon.appfactory.application.deployer.stub, http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd / [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com wrote: Kindly fine the requested files. On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com wrote: Hi Can you add the pom.xml and the wsdl used for stub generation? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 12:43 PM, Thushara Ranawaka thusha...@wso2.com wrote: Hi, After adding the repository xml code to the stub pom.xml I got the following log file which include a error message. Currently im using mvn 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it prints the error log. I found a mail-archive[1] which include the same error log as per the answer he has found including the axis2-client jar dependency to pom.xml but i try to add above dependancy and fail. Can someone help me on this. *axis2-client dependency added to the stub pom.xml(which failed):-* *dependency* *groupIdorg.apache.axis2.wso2/groupId* *artifactIdaxis2-client/artifactId* *version${axis2.client.version}/version* * /dependency* *Log:-* Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn clean install -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0 [INFO] Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 2.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom (13 KB at 21.2 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom (23 KB at 26.1 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom (15 KB at 9.9 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar (23 KB at 24.4 KB/sec) [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ org.wso2.carbon.student.mgt.stub --- [INFO] Deleting /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target [INFO] [INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @ org.wso2.carbon.student.mgt.stub --- [INFO] Source directory: /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/generated-code/src added. [INFO] [INFO] ---
Re: [Dev] Writing WSO2 carbon component - stub generation error
Hi Danushka, I also was getting the same error and I tried build with the pom file updated with namespaces. configuration tasks path id=wsdl2java.classpath pathelement location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/ pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar / pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar / /path java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=wsdl2java.classpath / arg line=-uri src/main/resources/StudentManager.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.student.mgt.stub -ns2p http://mgt.student.carbon.wso2.org=org.wso2.carbon.student.mgt.stub, http://data.mgt.student.carbon.wso2.org/xsd=org.wso2.carbon.student.mgt.stub.xsd , http://org.apache.axis2/xsd=org.wso2.carbon.student.mgt.stub.axis2.xsd/ /java /tasks /configuration But still getting the same error. Please be kind enough to give further advice. The tutorial we are following[1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Thanks, Suhan On Mon, Aug 25, 2014 at 2:24 PM, Danushka Fernando danush...@wso2.com wrote: Seems you haven't defined the namespaces in the pom. Check [1]. There you can see following line which defines the namespaces mentioned in wsdl. arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.appfactory.application.deployer.stub -ns2p http://deploy.core.appfactory.carbon.wso2.org =org.wso2.carbon.appfactory.application.deployer.stub, http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd / [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com wrote: Kindly fine the requested files. On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com wrote: Hi Can you add the pom.xml and the wsdl used for stub generation? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 12:43 PM, Thushara Ranawaka thusha...@wso2.com wrote: Hi, After adding the repository xml code to the stub pom.xml I got the following log file which include a error message. Currently im using mvn 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it prints the error log. I found a mail-archive[1] which include the same error log as per the answer he has found including the axis2-client jar dependency to pom.xml but i try to add above dependancy and fail. Can someone help me on this. *axis2-client dependency added to the stub pom.xml(which failed):-* *dependency* *groupIdorg.apache.axis2.wso2/groupId* *artifactIdaxis2-client/artifactId* *version${axis2.client.version}/version* * /dependency* *Log:-* Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn clean install -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0 [INFO] Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom Downloaded:
Re: [Dev] Writing WSO2 carbon component - stub generation error
Hi Thushara, Suhan, Try using axis2-wsdl2code-maven-plugin to generate the stub, instead of using maven-antrun-plugin. plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.6.2/version executions execution goals goalwsdl2code/goal /goals configuration generateServerSidefalse/generateServerSide packageNameorg.wso2.carbon.order.mgt.ui/packageName wsdlFilesrc/main/resources/OrderManager.wsdl/wsdlFile databindingNameadb/databindingName outputDirectorytarget/generated-code/outputDirectory /configuration /execution /executions /plugin Thanks, On Mon, Aug 25, 2014 at 3:24 PM, Suhan Dharmasuriya suh...@wso2.com wrote: Hi Danushka, I also was getting the same error and I tried build with the pom file updated with namespaces. configuration tasks path id=wsdl2java.classpath pathelement location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/ pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar / pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar / /path java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=wsdl2java.classpath / arg line=-uri src/main/resources/StudentManager.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.student.mgt.stub -ns2p http://mgt.student.carbon.wso2.org=org.wso2.carbon.student.mgt.stub, http://data.mgt.student.carbon.wso2.org/xsd=org.wso2.carbon.student.mgt.stub.xsd , http://org.apache.axis2/xsd=org.wso2.carbon.student.mgt.stub.axis2.xsd/ /java /tasks /configuration But still getting the same error. Please be kind enough to give further advice. The tutorial we are following[1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Thanks, Suhan On Mon, Aug 25, 2014 at 2:24 PM, Danushka Fernando danush...@wso2.com wrote: Seems you haven't defined the namespaces in the pom. Check [1]. There you can see following line which defines the namespaces mentioned in wsdl. arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.appfactory.application.deployer.stub -ns2p http://deploy.core.appfactory.carbon.wso2.org =org.wso2.carbon.appfactory.application.deployer.stub, http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd / [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com wrote: Kindly fine the requested files. On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com wrote: Hi Can you add the pom.xml and the wsdl used for stub generation? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 12:43 PM, Thushara Ranawaka thusha...@wso2.com wrote: Hi, After adding the repository xml code to the stub pom.xml I got the following log file which include a error message. Currently im using mvn 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it prints the error log. I found a mail-archive[1] which include the same error log as per the answer he has found including the axis2-client jar dependency to pom.xml but i try to add above dependancy and fail. Can someone help me on this. *axis2-client dependency added to the stub pom.xml(which failed):-* *dependency* *groupIdorg.apache.axis2.wso2/groupId* *artifactIdaxis2-client/artifactId* *version${axis2.client.version}/version* * /dependency* *Log:-* Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn clean install -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while
Re: [Dev] Writing WSO2 carbon component - stub generation error
Thanks a lot Rajith, It is working now... :) :) :) plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.6.2/version executions execution goals goalwsdl2code/goal /goals configuration generateServerSidefalse/generateServerSide packageNameorg.wso2.carbon.student.mgt.stub/packageName wsdlFilesrc/main/resources/StudentManager.wsdl/wsdlFile databindingNameadb/databindingName outputDirectorytarget/generated-code/outputDirectory /configuration /execution /executions /plugin Thanks and Regards, Suhan On Mon, Aug 25, 2014 at 4:00 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Thushara, Suhan, Try using axis2-wsdl2code-maven-plugin to generate the stub, instead of using maven-antrun-plugin. plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.6.2/version executions execution goals goalwsdl2code/goal /goals configuration generateServerSidefalse/generateServerSide packageNameorg.wso2.carbon.order.mgt.ui/packageName wsdlFilesrc/main/resources/OrderManager.wsdl/wsdlFile databindingNameadb/databindingName outputDirectorytarget/generated-code/outputDirectory /configuration /execution /executions /plugin Thanks, On Mon, Aug 25, 2014 at 3:24 PM, Suhan Dharmasuriya suh...@wso2.com wrote: Hi Danushka, I also was getting the same error and I tried build with the pom file updated with namespaces. configuration tasks path id=wsdl2java.classpath pathelement location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/ pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar / pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar / /path java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=wsdl2java.classpath / arg line=-uri src/main/resources/StudentManager.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.student.mgt.stub -ns2p http://mgt.student.carbon.wso2.org=org.wso2.carbon.student.mgt.stub, http://data.mgt.student.carbon.wso2.org/xsd=org.wso2.carbon.student.mgt.stub.xsd , http://org.apache.axis2/xsd=org.wso2.carbon.student.mgt.stub.axis2.xsd/ /java /tasks /configuration But still getting the same error. Please be kind enough to give further advice. The tutorial we are following[1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Thanks, Suhan On Mon, Aug 25, 2014 at 2:24 PM, Danushka Fernando danush...@wso2.com wrote: Seems you haven't defined the namespaces in the pom. Check [1]. There you can see following line which defines the namespaces mentioned in wsdl. arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.appfactory.application.deployer.stub -ns2p http://deploy.core.appfactory.carbon.wso2.org =org.wso2.carbon.appfactory.application.deployer.stub, http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd / [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com wrote: Kindly fine the requested files. On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com wrote: Hi Can you add the pom.xml and the wsdl used for stub generation? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 12:43 PM, Thushara Ranawaka thusha...@wso2.com wrote: Hi,
Re: [Dev] Writing WSO2 carbon component - stub generation error
Thank you rajith aiya.,.,. *Generated On Mon, Aug 25, 2014 at 4:00 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Thushara, Suhan, Try using axis2-wsdl2code-maven-plugin to generate the stub, instead of using maven-antrun-plugin. plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.6.2/version executions execution goals goalwsdl2code/goal /goals configuration generateServerSidefalse/generateServerSide packageNameorg.wso2.carbon.order.mgt.ui/packageName wsdlFilesrc/main/resources/OrderManager.wsdl/wsdlFile databindingNameadb/databindingName outputDirectorytarget/generated-code/outputDirectory /configuration /execution /executions /plugin Thanks, On Mon, Aug 25, 2014 at 3:24 PM, Suhan Dharmasuriya suh...@wso2.com wrote: Hi Danushka, I also was getting the same error and I tried build with the pom file updated with namespaces. configuration tasks path id=wsdl2java.classpath pathelement location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/ pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar / pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar / /path java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=wsdl2java.classpath / arg line=-uri src/main/resources/StudentManager.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.student.mgt.stub -ns2p http://mgt.student.carbon.wso2.org=org.wso2.carbon.student.mgt.stub, http://data.mgt.student.carbon.wso2.org/xsd=org.wso2.carbon.student.mgt.stub.xsd , http://org.apache.axis2/xsd=org.wso2.carbon.student.mgt.stub.axis2.xsd/ /java /tasks /configuration But still getting the same error. Please be kind enough to give further advice. The tutorial we are following[1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Thanks, Suhan On Mon, Aug 25, 2014 at 2:24 PM, Danushka Fernando danush...@wso2.com wrote: Seems you haven't defined the namespaces in the pom. Check [1]. There you can see following line which defines the namespaces mentioned in wsdl. arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.appfactory.application.deployer.stub -ns2p http://deploy.core.appfactory.carbon.wso2.org =org.wso2.carbon.appfactory.application.deployer.stub, http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd / [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com wrote: Kindly fine the requested files. On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com wrote: Hi Can you add the pom.xml and the wsdl used for stub generation? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 12:43 PM, Thushara Ranawaka thusha...@wso2.com wrote: Hi, After adding the repository xml code to the stub pom.xml I got the following log file which include a error message. Currently im using mvn 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it prints the error log. I found a mail-archive[1] which include the same error log as per the answer he has found including the axis2-client jar dependency to pom.xml but i try to add above dependancy and fail. Can someone help me on this. *axis2-client dependency added to the stub pom.xml(which failed):-* *dependency* *groupIdorg.apache.axis2.wso2/groupId* *artifactIdaxis2-client/artifactId* *version${axis2.client.version}/version* * /dependency* *Log:-* Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn clean install
Re: [Dev] Writing WSO2 carbon component - stub generation error
Thanks Ajith, moving forward, will compare pom file with SVN existing stubs... :) Thanks and Regards, Suhan On Mon, Aug 25, 2014 at 4:55 PM, Ajith Vitharana aji...@wso2.com wrote: On Mon, Aug 25, 2014 at 4:42 PM, Suhan Dharmasuriya suh...@wso2.com wrote: Thanks a lot Rajith, It is working now... :) :) :) Why don't you compare the pom file with existing stubs in SVN ? :) -Ajith plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.6.2/version executions execution goals goalwsdl2code/goal /goals configuration generateServerSidefalse/generateServerSide packageNameorg.wso2.carbon.student.mgt.stub/packageName wsdlFilesrc/main/resources/StudentManager.wsdl/wsdlFile databindingNameadb/databindingName outputDirectorytarget/generated-code/outputDirectory /configuration /execution /executions /plugin Thanks and Regards, Suhan On Mon, Aug 25, 2014 at 4:00 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Thushara, Suhan, Try using axis2-wsdl2code-maven-plugin to generate the stub, instead of using maven-antrun-plugin. plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.6.2/version executions execution goals goalwsdl2code/goal /goals configuration generateServerSidefalse/generateServerSide packageNameorg.wso2.carbon.order.mgt.ui/packageName wsdlFilesrc/main/resources/OrderManager.wsdl/wsdlFile databindingNameadb/databindingName outputDirectorytarget/generated-code/outputDirectory /configuration /execution /executions /plugin Thanks, On Mon, Aug 25, 2014 at 3:24 PM, Suhan Dharmasuriya suh...@wso2.com wrote: Hi Danushka, I also was getting the same error and I tried build with the pom file updated with namespaces. configuration tasks path id=wsdl2java.classpath pathelement location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/ pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar / pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar / /path java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=wsdl2java.classpath / arg line=-uri src/main/resources/StudentManager.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.student.mgt.stub -ns2p http://mgt.student.carbon.wso2.org=org.wso2.carbon.student.mgt.stub, http://data.mgt.student.carbon.wso2.org/xsd=org.wso2.carbon.student.mgt.stub.xsd , http://org.apache.axis2/xsd=org.wso2.carbon.student.mgt.stub.axis2.xsd / /java /tasks /configuration But still getting the same error. Please be kind enough to give further advice. The tutorial we are following[1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Thanks, Suhan On Mon, Aug 25, 2014 at 2:24 PM, Danushka Fernando danush...@wso2.com wrote: Seems you haven't defined the namespaces in the pom. Check [1]. There you can see following line which defines the namespaces mentioned in wsdl. arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.appfactory.application.deployer.stub -ns2p http://deploy.core.appfactory.carbon.wso2.org =org.wso2.carbon.appfactory.application.deployer.stub, http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd / [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com wrote: Kindly fine the requested files.
Re: [Dev] Writing WSO2 carbon component - stub generation error
On Mon, Aug 25, 2014 at 4:42 PM, Suhan Dharmasuriya suh...@wso2.com wrote: Thanks a lot Rajith, It is working now... :) :) :) Why don't you compare the pom file with existing stubs in SVN ? :) -Ajith plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.6.2/version executions execution goals goalwsdl2code/goal /goals configuration generateServerSidefalse/generateServerSide packageNameorg.wso2.carbon.student.mgt.stub/packageName wsdlFilesrc/main/resources/StudentManager.wsdl/wsdlFile databindingNameadb/databindingName outputDirectorytarget/generated-code/outputDirectory /configuration /execution /executions /plugin Thanks and Regards, Suhan On Mon, Aug 25, 2014 at 4:00 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Thushara, Suhan, Try using axis2-wsdl2code-maven-plugin to generate the stub, instead of using maven-antrun-plugin. plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.6.2/version executions execution goals goalwsdl2code/goal /goals configuration generateServerSidefalse/generateServerSide packageNameorg.wso2.carbon.order.mgt.ui/packageName wsdlFilesrc/main/resources/OrderManager.wsdl/wsdlFile databindingNameadb/databindingName outputDirectorytarget/generated-code/outputDirectory /configuration /execution /executions /plugin Thanks, On Mon, Aug 25, 2014 at 3:24 PM, Suhan Dharmasuriya suh...@wso2.com wrote: Hi Danushka, I also was getting the same error and I tried build with the pom file updated with namespaces. configuration tasks path id=wsdl2java.classpath pathelement location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/ pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar / pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar / /path java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=wsdl2java.classpath / arg line=-uri src/main/resources/StudentManager.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.student.mgt.stub -ns2p http://mgt.student.carbon.wso2.org=org.wso2.carbon.student.mgt.stub, http://data.mgt.student.carbon.wso2.org/xsd=org.wso2.carbon.student.mgt.stub.xsd , http://org.apache.axis2/xsd=org.wso2.carbon.student.mgt.stub.axis2.xsd / /java /tasks /configuration But still getting the same error. Please be kind enough to give further advice. The tutorial we are following[1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Thanks, Suhan On Mon, Aug 25, 2014 at 2:24 PM, Danushka Fernando danush...@wso2.com wrote: Seems you haven't defined the namespaces in the pom. Check [1]. There you can see following line which defines the namespaces mentioned in wsdl. arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.appfactory.application.deployer.stub -ns2p http://deploy.core.appfactory.carbon.wso2.org =org.wso2.carbon.appfactory.application.deployer.stub, http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd / [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com wrote: Kindly fine the requested files. On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com wrote: Hi Can you add the pom.xml and the wsdl used for stub generation? Thanks
[Dev] Writing WSO2 carbon component - stub generation error
Hi, I was following the tutorial[1] and successfully installed the server instance to carbon. 157 ACTIVE wsdl4j_1.6.2.wso2v4 158 ACTIVE wss4j_1.5.11.wso2v6 159 ACTIVE xmlbeans_2.3.0.wso2v1 160 ACTIVE org.wso2.carbon.student.mgt_4.2.0 when I tried to generate client stubs I'm getting the following error. I have already copied the wsdl file also to the required location as per the tutorial. Suhans-MacBook-Pro:org.wso2.carbon.student.mgt.stub suhanr$ mvn clean install [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ org.wso2.carbon:org.wso2.carbon.student.mgt.stub:[unknown-version], /WSO2/Training/FastTrack/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/pom.xml, line 85, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ org.wso2.carbon:org.wso2.carbon.student.mgt.stub:[unknown-version], /WSO2/Training/FastTrack/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/pom.xml, line 66, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building WSO2 Carbon - Student Manager Stub 4.2.0 [INFO] Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml (604 B at 0.5 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.9/build-helper-maven-plugin-1.9.pom Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.9/build-helper-maven-plugin-1.9.pom (7 KB at 10.8 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/33/mojo-parent-33.pom Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/33/mojo-parent-33.pom (26 KB at 27.5 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom (5 KB at 7.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.9/build-helper-maven-plugin-1.9.jar Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.9/build-helper-maven-plugin-1.9.jar (46 KB at 44.2 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom (2 KB at 1.7 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom (8 KB at 11.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar (12 KB at 18.8 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.pom [WARNING] The POM for org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 is missing, no dependency information available Downloading: http://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.pom [WARNING] The POM for org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4 is missing, no dependency information available Downloading: http://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.pom [WARNING] The POM for wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4 is missing, no dependency information available Downloading: http://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar Downloading: http://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar Downloading: http://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.jar [INFO] [INFO] BUILD FAILURE [INFO]
Re: [Dev] Writing WSO2 carbon component - stub generation error
I got the same issue, Im attaching the full log trance and adding training mail group as well. Could somebody help us? Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$* mvn clean install -e* [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0 [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom (2 KB at 0.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom (8 KB at 11.8 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.pom [WARNING] The POM for org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.pom [WARNING] The POM for org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.pom [WARNING] The POM for wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar Downloading: https://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar Downloading: https://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.jar [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 9.586 s [INFO] Finished at: 2014-08-25T10:38:19+05:30 [INFO] Final Memory: 10M/24M [INFO] [ERROR] Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0: The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4, wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: Could not find artifact org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in central ( https://repo.maven.apache.org/maven2) - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0: The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4, wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: Could not find artifact org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in central ( https://repo.maven.apache.org/maven2) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at
Re: [Dev] Writing WSO2 carbon component - stub generation error
Hi Suhan,Thushara, Add following repositories to the pom.xml file and build it again. repositories repository idwso2-nexus/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository /repositories Thanks, On Mon, Aug 25, 2014 at 10:49 AM, Thushara Ranawaka thusha...@wso2.com wrote: I got the same issue, Im attaching the full log trance and adding training mail group as well. Could somebody help us? Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$* mvn clean install -e* [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0 [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom (2 KB at 0.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom (8 KB at 11.8 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.pom [WARNING] The POM for org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.pom [WARNING] The POM for org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.pom [WARNING] The POM for wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar Downloading: https://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar Downloading: https://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.jar [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 9.586 s [INFO] Finished at: 2014-08-25T10:38:19+05:30 [INFO] Final Memory: 10M/24M [INFO] [ERROR] Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0: The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4, wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: Could not find artifact org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in central ( https://repo.maven.apache.org/maven2) - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0: The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4, wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: Could not find artifact org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in central ( https://repo.maven.apache.org/maven2) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220) at
Re: [Dev] Writing WSO2 carbon component - stub generation error
Hi Suhan, You need to include references to the WSO2 maven repo. Add these to the parent pom and you should be fine. repositories repository idwso2-nexus/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository repository idwso2.releases/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/repositories/releases/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository repository idwso2.snapshots/id nameApache Snapshot Repository/name urlhttp://maven.wso2.org/nexus/content/repositories/snapshots/ /url snapshots enabledtrue/enabled updatePolicydaily/updatePolicy /snapshots releases enabledfalse/enabled /releases /repository /repositories Also make sure that you've correctly specified the paths to the mentioned artifacts in the stub pom's maven-antrun-plugin section. They should point to the physical location on your disk. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Mon, Aug 25, 2014 at 10:45 AM, Suhan Dharmasuriya suh...@wso2.com wrote: Hi, I was following the tutorial[1] and successfully installed the server instance to carbon. 157 ACTIVE wsdl4j_1.6.2.wso2v4 158 ACTIVE wss4j_1.5.11.wso2v6 159 ACTIVE xmlbeans_2.3.0.wso2v1 160 ACTIVE org.wso2.carbon.student.mgt_4.2.0 when I tried to generate client stubs I'm getting the following error. I have already copied the wsdl file also to the required location as per the tutorial. Suhans-MacBook-Pro:org.wso2.carbon.student.mgt.stub suhanr$ mvn clean install [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ org.wso2.carbon:org.wso2.carbon.student.mgt.stub:[unknown-version], /WSO2/Training/FastTrack/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/pom.xml, line 85, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ org.wso2.carbon:org.wso2.carbon.student.mgt.stub:[unknown-version], /WSO2/Training/FastTrack/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/pom.xml, line 66, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building WSO2 Carbon - Student Manager Stub 4.2.0 [INFO] Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml (604 B at 0.5 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.9/build-helper-maven-plugin-1.9.pom Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.9/build-helper-maven-plugin-1.9.pom (7 KB at 10.8 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/33/mojo-parent-33.pom Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/33/mojo-parent-33.pom (26 KB at 27.5 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom (5 KB at 7.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.9/build-helper-maven-plugin-1.9.jar Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.9/build-helper-maven-plugin-1.9.jar (46 KB at 44.2 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom (2 KB at
Re: [Dev] Writing WSO2 carbon component - stub generation error
Hi Rajith/Chamila/Thushara, Thanks a lot. It is working now. :) Thanks and Regards, Suhan On Mon, Aug 25, 2014 at 10:59 AM, Thushara Ranawaka thusha...@wso2.com wrote: Thanx rajith aiya.,.:) *now working On Mon, Aug 25, 2014 at 10:50 AM, Rajith Vitharana raji...@wso2.com wrote: Hi Suhan,Thushara, Add following repositories to the pom.xml file and build it again. repositories repository idwso2-nexus/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository /repositories Thanks, On Mon, Aug 25, 2014 at 10:49 AM, Thushara Ranawaka thusha...@wso2.com wrote: I got the same issue, Im attaching the full log trance and adding training mail group as well. Could somebody help us? Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$* mvn clean install -e* [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0 [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom (2 KB at 0.2 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom (8 KB at 11.8 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.pom [WARNING] The POM for org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.pom [WARNING] The POM for org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.pom [WARNING] The POM for wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar Downloading: https://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar Downloading: https://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.jar [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 9.586 s [INFO] Finished at: 2014-08-25T10:38:19+05:30 [INFO] Final Memory: 10M/24M [INFO] [ERROR] Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0: The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4, wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: Could not find artifact org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in central ( https://repo.maven.apache.org/maven2) - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0: The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4,