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 >
