I just noticed three things, first, I should use rampart 1.3 version as this version is suggested on axis2 website http://ws.apache.org/axis2/modules/index.html
Secondly, i think I dont need rahas-1.4.mar as its written in the readme.txt of rampart binary (version 1.4) that rahas-1.4.mar is for Security Token Service (STS) module - to be used to add STS operations to a service Third point is, since I am interested only in ws-security so I should only use the rampart-core dependency as per as http://ws.apache.org/rampart/developer-guide.html So that means, I should use only two dependencies with the version 1.3 <dependency> <groupId>org.apache.rampart</groupId> <artifactId>rampart-core</artifactId> <version>${rampart.version}</version> </dependency> <dependency> <groupId>org.apache.rampart</groupId> <artifactId>rampart</artifactId> <type>mar</type> <version>${rampart.version}</version> </dependency> So when i use the version 1.3 for {rampart.version} I get this error, [INFO] Unable to find resource 'org.apache.rampart:rampart-project:pom:1.3-SNAPSHOT' in repository apache.snapshots (http://repository.apache.org/snapshots) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.rampart:rampart:mar:${rampart.mar.version} Reason: Cannot find parent: org.apache.rampart:rampart-project for project: org.apache.rampart:rampart:mar:${rampart.mar.version} for project org.apache.rampart:rampart:mar:${rampart.mar.version} [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.apache.rampart:rampart:mar': Cannot find parent: org.apache.rampart:rampart-project for project: org.apache.rampart:rampart:mar:${rampart.mar.version} for project org.apache.rampart:rampart:mar:${rampart.mar.version} org.apache.rampart:rampart:mar:1.3 from the specified remote repositories: apache.snapshots (http://repository.apache.org/snapshots), codehaus.snapshots (http://snapshots.repository.codehaus.org), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) In addition, I am not able to download the Rampart 1.3 release from http://ws.apache.org/rampart/download/1.3/download.cgi and not even the rampart-documentation, Is there some problem on the mirror/website? I get the following error Not Found The requested URL /ws/rampart/1_3/rampart-1.3.zip was not found on this server. ------------------------------ Apache/2.2.3 (Debian) PHP/5.2.0-8+etch15 mod_chroot/0.5 Server at apache.multidist.com Port 80 Kindly correct me if I am making some mistake. Thank you. Best Regards, Rahul On Sun, Jul 19, 2009 at 3:07 PM, rahul.soa <[email protected]> wrote: > Hello Nandana, > > That error (missing artifact) is solved now, but I have dependencies > problem. > > So what i did so far is, I have added the following dependencies in the > axis2 pom > > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart-policy</artifactId> > </dependency> > > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart-trust</artifactId> > </dependency> > > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart-core</artifactId> > </dependency> > > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart</artifactId> > <type>mar</type> > </dependency> > > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rahas</artifactId> > <type>mar</type> > </dependency> > > and then I added the following dependencies in the Geronimo server's pom, > with the {rampart.version} as 1.4 in the root > > > > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart-policy</artifactId> > <version>${rampart.version}</version> > </dependency> > > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart-trust</artifactId> > <version>${rampart.version}</version> > </dependency> > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart-core</artifactId> > <version>${rampart.version}</version> > </dependency> > > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart</artifactId> > <type>mar</type> > <version>${rampart.version}</version> > </dependency> > > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rahas</artifactId> > <type>mar</type> > <version>${rampart.version}</version> > </dependency> > > And, when I build the axis2 module then I get the "Dependencies have > changed:" error and I see the the long list of dependencies under > /G/plugins/axis2/axis2/src/main/history/*dependencies.added.xml* > > I can add a few depnendencies (such as rahas, rampart, rampart-core, > rampart-trust, rampart-policy, wss4j, xmlsec, bouncycastle, xalan) in the > dependencies.xml as I think we will need them and can exclude a few > dependencies (such as commons-logging, servlet-api, xml-apis) and add the > under the exclusion in the Geronimo server's pom > > But since this is a long list and dont really know what and how many > dependencies I should add or remove, I am stuck here. You can find the * > dependencies.added.xml* on the following link: > > http://rifers.org/paste/show/9428 > > I will really appreciate, If you can help me in this about adding/removing > the dependencies. > > > Thank you. > > Best Regards, > Rahul > > > On Sun, Jul 19, 2009 at 11:36 AM, rahul.soa <[email protected]>wrote: > >> Hello Nandana, >> >> Thank you for your reply and the wishes. >> >> My Gsoc project [1] is about configuring the ws-security (UsernameToken >> profile and X.509 in particular) in the axis2 and cxf for Apache Geronimo >> [2]. (Geronimo has two web container Tomcat (by default asix2 is used for >> Tomcat) and Jetty (by defalut CXF is used for Jetty)). At this moment, I am >> working on the basic ws-security support (without ws-policy) for the same. >> By default axis2 module of Geronimo does not have the required jars of >> ws-security and I think axis2 is using the rampart module for the same. So >> for me very first step is to get the rampart jar files in the axis2 which I >> am trying to do by adding the rampart dependencies in the axis2 pom file. So >> that I can do something for configuing ws-security in Geronimo/Axis2. I >> think this can give you some indication about what I am trying to do. >> >> I am still having the* "missing artifact"* error if I just try adding one >> of the dependencies, for instance, Rampart Policy one in the pom.xml of >> axis2 in Geronimo. However, I have built the separate rampart module >> successfully on my system. >> >> For Jarek, I am adding those dependencies provided by Nandana under >> /home/rahul/G/plugins/axis2/axis2/pom.xml and trying to build the axis2 >> module. Am I adding in the right pom.xml? >> >> Thanks again for your quick help. >> >> Best Regards, >> Rahul >> >> PS: In the path, /home/rahul/*G*/plugins/axis2/axis2/pom.xml, *G* refers >> to Geronimo Server >> >> >> [1] >> https://issues.apache.org/jira/browse/GERONIMO-4642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716145#action_12716145 >> >> [2] http://geronimo.apache.org/ >> >> >> On Sun, Jul 19, 2009 at 5:44 AM, Nandana Mihindukulasooriya < >> [email protected]> wrote: >> >>> Hi Rahul, >>> If you want to use Rampart in your project, you will need some >>> of >>> the following dependencies. If you can brief me with what you are trying >>> to >>> do with Rampart, I can further help you to decide which dependencies you >>> will need. All the best with your GSoC program. >>> >>> 1.) Rampart Policy >>> <dependency> >>> <groupId>org.apache.rampart</groupId> >>> <artifactId>rampart-policy</artifactId> >>> <version>${rampart.version}</version> >>> </dependency> >>> >>> 2.) Rampart Trust >>> <dependency> >>> <groupId>org.apache.rampart</groupId> >>> <artifactId>rampart-trust</artifactId> >>> <version>${rampart.version}</version> >>> </dependency> >>> >>> 3.) Rampart Core >>> <dependency> >>> <groupId>org.apache.rampart</groupId> >>> <artifactId>rampart-core</artifactId> >>> <version>${rampart.version}</version> >>> </dependency> >>> >>> 4.) Rampart Axis2 module >>> <dependency> >>> <groupId>org.apache.rampart</groupId> >>> <artifactId>rampart</artifactId> >>> <type>mar</type> >>> <version>${rampart.version}</version> >>> </dependency> >>> >>> 5.) Rahas Axis2 module >>> <dependency> >>> <groupId>org.apache.rampart</groupId> >>> <artifactId>rahas</artifactId> >>> <type>mar</type> >>> <version>${rampart.version}</version> >>> </dependency> >>> >>> regards, >>> Nandana >>> >>> On Sun, Jul 19, 2009 at 3:51 AM, rahul.soa <[email protected]> >>> wrote: >>> >>> > Hello Devs, >>> > >>> > I am new to Rampart. I am working on my Google Summer of Code [1] >>> project >>> > with Apache Geronimo and typing to configure the ws-security for axis2 >>> > module in Geronimo. For this I need the required ws-security jar files >>> and >>> > in my understanding axis2 uses the rampart for this. So I am trying to >>> pull >>> > all the required jar files in the axis2 plugin of Apache Geronimo. For >>> this >>> > I am adding the following dependency in the axis2 pom.xml. >>> > >>> > <dependency> >>> > <groupId>org.apache.rampart</groupId> >>> > <artifactId>rampart-project</artifactId> >>> > <version>1.4</version> >>> > </dependency> >>> > >>> > So first question is, is this the only one dependency I need to add to >>> get >>> > all the required jar files? >>> > >>> > Second, after adding the above dependency and then while building the >>> axis2 >>> > mnodule of Apache Geronimo I am getting the following error ("artifact >>> is >>> > missing."): >>> > so can you please help me in fixing this problem? and plz also guide me >>> if >>> > I >>> > am missing anything to get all the security jar files in the axis2. >>> > >>> > >>> > >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [INFO] Building Geronimo Plugins, AXIS2 :: AXIS2 >>> > [INFO] task-segment: [install] >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [INFO] [genesis:validate-configuration {execution: default}] >>> > Downloading: >>> > >>> > >>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom >>> > [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' >>> in >>> > repository apache-snapshots ( >>> > http://people.apache.org/repo/m2-snapshot-repository) >>> > Downloading: >>> > >>> > >>> http://ws.zones.apache.org/repository2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom >>> > [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' >>> in >>> > repository apache-ws-snapshots2 ( >>> http://ws.zones.apache.org/repository2) >>> > Downloading: >>> > >>> > >>> http://repo1.maven.org/maven2//org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom >>> > [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' >>> in >>> > repository maven2 (http://repo1.maven.org/maven2/) >>> > Downloading: >>> > >>> > >>> http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom >>> > [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' >>> in >>> > repository central (http://repo1.maven.org/maven2) >>> > Downloading: >>> > >>> > >>> http://people.apache.org/repo/m2-snapshot-repository/opensaml/opensaml/1.1/opensaml-1.1.pom >>> > [INFO] Unable to find resource 'opensaml:opensaml:pom:1.1' in >>> repository >>> > apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository >>> ) >>> > Downloading: >>> > >>> > >>> http://ws.zones.apache.org/repository2/opensaml/opensaml/1.1/opensaml-1.1.pom >>> > [INFO] Unable to find resource 'opensaml:opensaml:pom:1.1' in >>> repository >>> > apache-ws-snapshots2 (http://ws.zones.apache.org/repository2) >>> > Downloading: >>> > http://repo1.maven.org/maven2//opensaml/opensaml/1.1/opensaml-1.1.pom >>> > [INFO] Unable to find resource 'opensaml:opensaml:pom:1.1' in >>> repository >>> > maven2 (http://repo1.maven.org/maven2/) >>> > Downloading: >>> > http://repo1.maven.org/maven2/opensaml/opensaml/1.1/opensaml-1.1.pom >>> > [INFO] Unable to find resource 'opensaml:opensaml:pom:1.1' in >>> repository >>> > central (http://repo1.maven.org/maven2) >>> > Downloading: >>> > >>> > >>> http://people.apache.org/repo/m2-snapshot-repository/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom >>> > [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in >>> > repository apache-snapshots ( >>> > http://people.apache.org/repo/m2-snapshot-repository) >>> > Downloading: >>> > >>> > >>> http://ws.zones.apache.org/repository2/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom >>> > [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in >>> > repository apache-ws-snapshots2 ( >>> http://ws.zones.apache.org/repository2) >>> > Downloading: >>> > >>> > >>> http://repo1.maven.org/maven2//bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom >>> > [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in >>> > repository maven2 (http://repo1.maven.org/maven2/) >>> > Downloading: >>> > >>> > >>> http://repo1.maven.org/maven2/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom >>> > [INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in >>> > repository central (http://repo1.maven.org/maven2) >>> > Downloading: >>> > >>> > >>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/santuario/xmlsec/1.4.1/xmlsec-1.4.1.pom >>> > [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.1' >>> in >>> > repository apache-snapshots ( >>> > http://people.apache.org/repo/m2-snapshot-repository) >>> > Downloading: >>> > >>> > >>> http://ws.zones.apache.org/repository2/org/apache/santuario/xmlsec/1.4.1/xmlsec-1.4.1.pom >>> > [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.1' >>> in >>> > repository apache-ws-snapshots2 ( >>> http://ws.zones.apache.org/repository2) >>> > Downloading: >>> > >>> > >>> http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/1.4.1/xmlsec-1.4.1.pom >>> > [INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.1' >>> in >>> > repository central (http://repo1.maven.org/maven2) >>> > Downloading: >>> > >>> > >>> http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.jar >>> > [INFO] Unable to find resource >>> 'org.apache.rampart:rampart-project:jar:1.4' >>> > in repository central (http://repo1.maven.org/maven2) >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [ERROR] BUILD ERROR >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [INFO] Failed to resolve artifact. >>> > >>> > Missing: >>> > ---------- >>> > 1) org.apache.rampart:rampart-project:jar:1.4 >>> > >>> > Try downloading the file manually from the project website. >>> > >>> > Then, install it using the command: >>> > mvn install:install-file -DgroupId=org.apache.rampart >>> > -DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar >>> > -Dfile=/path/to/file >>> > >>> > Alternatively, if you host your own repository you can deploy the file >>> > there: >>> > mvn deploy:deploy-file -DgroupId=org.apache.rampart >>> > -DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar >>> > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] >>> > >>> > Path to dependency: >>> > 1) org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT >>> > 2) org.apache.rampart:rampart-project:jar:1.4 >>> > >>> > ---------- >>> > 1 required artifact is missing. >>> > >>> > for artifact: >>> > org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT >>> > >>> > from the specified remote repositories: >>> > apache.snapshots (http://repository.apache.org/snapshots), >>> > codehaus.snapshots (http://snapshots.repository.codehaus.org), >>> > central (http://repo1.maven.org/maven2), >>> > apache.org (http://people.apache.org/repo/m2-snapshot-repository) >>> > >>> > >>> > >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [INFO] Trace >>> > org.apache.maven.lifecycle.LifecycleExecutionException: Missing: >>> > ---------- >>> > 1) org.apache.rampart:rampart-project:jar:1.4 >>> > >>> > Try downloading the file manually from the project website. >>> > >>> > Then, install it using the command: >>> > mvn install:install-file -DgroupId=org.apache.rampart >>> > -DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar >>> > -Dfile=/path/to/file >>> > >>> > Alternatively, if you host your own repository you can deploy the file >>> > there: >>> > mvn deploy:deploy-file -DgroupId=org.apache.rampart >>> > -DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar >>> > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] >>> > >>> > Path to dependency: >>> > 1) org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT >>> > 2) org.apache.rampart:rampart-project:jar:1.4 >>> > >>> > ---------- >>> > 1 required artifact is missing. >>> > >>> > for artifact: >>> > org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT >>> > >>> > from the specified remote repositories: >>> > apache.snapshots (http://repository.apache.org/snapshots), >>> > codehaus.snapshots (http://snapshots.repository.codehaus.org), >>> > central (http://repo1.maven.org/maven2), >>> > apache.org (http://people.apache.org/repo/m2-snapshot-repository) >>> > >>> > >>> > at >>> > >>> > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:695) >>> > at >>> > >>> > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) >>> > at >>> > >>> > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) >>> > at >>> > >>> > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) >>> > at >>> > >>> > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) >>> > at >>> > >>> > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) >>> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) >>> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) >>> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) >>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> > at >>> > >>> > >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> > at >>> > >>> > >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> > at java.lang.reflect.Method.invoke(Method.java:597) >>> > at >>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >>> > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >>> > at >>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >>> > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >>> > Caused by: >>> > org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: >>> > Missing: >>> > ---------- >>> > 1) org.apache.rampart:rampart-project:jar:1.4 >>> > >>> > Try downloading the file manually from the project website. >>> > >>> > Then, install it using the command: >>> > mvn install:install-file -DgroupId=org.apache.rampart >>> > -DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar >>> > -Dfile=/path/to/file >>> > >>> > Alternatively, if you host your own repository you can deploy the file >>> > there: >>> > mvn deploy:deploy-file -DgroupId=org.apache.rampart >>> > -DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar >>> > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] >>> > >>> > Path to dependency: >>> > 1) org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT >>> > 2) org.apache.rampart:rampart-project:jar:1.4 >>> > >>> > ---------- >>> > 1 required artifact is missing. >>> > >>> > for artifact: >>> > org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT >>> > >>> > from the specified remote repositories: >>> > apache.snapshots (http://repository.apache.org/snapshots), >>> > codehaus.snapshots (http://snapshots.repository.codehaus.org), >>> > central (http://repo1.maven.org/maven2), >>> > apache.org (http://people.apache.org/repo/m2-snapshot-repository) >>> > >>> > >>> > at >>> > >>> > >>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:360) >>> > at >>> > >>> > >>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304) >>> > at >>> > >>> > >>> org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1492) >>> > at >>> > >>> > >>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:435) >>> > at >>> > >>> > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) >>> > ... 16 more >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [INFO] Total time: 25 seconds >>> > [INFO] Finished at: Sun Jul 19 02:04:36 CEST 2009 >>> > [INFO] Final Memory: 61M/508M >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [ra...@localhost axis2]$ >>> > [ra...@localhost axis2]$ >>> > >>> > >>> > Thanks in advance for the help. >>> > >>> > Best Regards, >>> > Rahul >>> > >>> > [1] http://code.google.com/soc/ >>> > >>> >>> >>> >>> -- >>> Nandana Mihindukulasooriya >>> WSO2 inc. >>> >>> http://nandana83.blogspot.com/ >>> http://www.wso2.org >>> >> >> >
