axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrew vn <andrewvn2...@gmail.com>
Subject Asking about engage rampart with eclipse tools
Date Wed, 16 Feb 2011 07:38:29 GMT
Hi everybody,

I'm learning about building web service with axis2 and using rampart modules
to encrypt and sign SOAP Message. The details of tools:

   - path of axis2: /usr/local/sun/axis2/axis2-1.4.1 (AXIS2_HOME)
   - path of tomcat: /usr/local/sun/tomcat/apache-tomcat-6.0.32
   (TOMCAT_HOME)
   - path of java_home: /usr/local/sun/jdk1.6.0_23/ (JAVA_HOME)
   - eclipse-helios

Then, I've copied from *rampart-1.3* directory

   - 2 file *rampart-1.3.mar* and *rahas-1.3.mar* to
*/usr/local/sun/axis2/axis2-1.4.1/repository/modules
   *
   - copy all* *jar files in* lib *directory to
*/usr/local/sun/axis2/axis2-1.4.1/lib
   *

Here's all the jar files in *lib* directory*
activation-1.1.jar           axis2-jws-api-1.4.1.jar
geronimo-activation-LICENSE.txt       jibx-run-1.1.5.jar
wss4j-1.5.3.jar
activation-LICENSE.txt       axis2-kernel-1.4.1.jar
geronimo-annotation_1.0_spec-1.1.jar  jibx-run-LICENSE.txt
wss4j-1.5.4.jar
annogen-0.1.0.jar            axis2-LICENSE.txt
geronimo-annotation-LICENSE.txt       log4j-1.2.15.jar
wss4j-LICENSE.txt
annogen-LICENSE.txt          axis2-metadata-1.4.1.jar
geronimo-java-mail-LICENSE.txt        log4j-LICENSE.txt
wstx-asl-3.2.4.jar
antlr-LICENSE.txt            axis2-mtompolicy-1.4.1.jar
geronimo-stax-api_1.0_spec-1.0.1.jar  mail-1.4.jar
wstx-LICENSE.txt
axiom-api-1.2.7.jar          axis2-saaj-1.4.1.jar
geronimo-stax-api-LICENSE.txt         mail-LICENSE.txt
xalan-2.7.0.jar
axiom-api-LICENSE.txt        axis2-saaj-api-1.4.1.jar
httpcore-4.0-beta1.jar                mex-1.4.1.jar
xalan-LICENSE.txt
axiom-dom-1.2.7.jar          axis2-spring-1.4.1.jar
httpcore-LICENSE.txt                  neethi-2.0.4.jar
xercesImpl-2.8.1.jar
axiom-dom-LICENSE.txt        axis2-xmlbeans-1.4.1.jar
httpcore-nio-4.0-beta1.jar            neethi-LICENSE.txt
xercesImpl-LICENSE.txt
axiom-impl-1.2.7.jar         backport-util-concurrent-3.1.jar
httpcore-nio-LICENSE.txt              opensaml-1.1.jar
xml-apis-1.3.04.jar
axiom-impl-LICENSE.txt       backport-util-concurrent-LICENSE.txt
jalopy-1.5rc3.jar                     opensaml-LICENSE.txt
xml-apis-LICENSE.txt
axis2-adb-1.4.1.jar          bcprov-ext-jdk16-145.jar
jalopy-LICENSE.txt                    rampart-core-1.3.jar
xmlbeans-2.3.0.jar
axis2-adb-codegen-1.4.1.jar  bcprov-jdk15-132.jar
jaxb-api-2.1.jar                      rampart-core-1.4.jar
xmlbeans-LICENSE.txt
axis2-ant-plugin-1.4.1.jar   bcprov-jdk16-145.jar
jaxb-api-LICENSE.txt                  rampart-policy-1.3.jar
xml-resolver-1.2.jar
axis2-clustering-1.4.1.jar   commons-codec-1.3.jar
jaxb-impl-2.1.6.jar                   rampart-policy-1.4.jar
xml-resolver-LICENSE.txt
axis2-codegen-1.4.1.jar      commons-codec-LICENSE.txt
jaxb-impl-LICENSE.txt                 rampart-trust-1.3.jar
XmlSchema-1.4.2.jar
axis2-corba-1.4.1.jar        commons-fileupload-1.2.jar
jaxb-xjc-2.1.6.jar                    rampart-trust-1.4.jar
XmlSchema-LICENSE.txt
axis2-fastinfoset-1.4.1.jar  commons-fileupload-LICENSE.txt
jaxb-xjc-LICENSE.txt                  soapmonitor-1.4.1.jar
xmlsec-1.4.0.jar
axis2-java2wsdl-1.4.1.jar    commons-httpclient-3.1.jar
jaxen-1.1.1.jar                       woden-api-1.0M8.jar
xmlsec-1.4.1.jar
axis2-jaxbri-1.4.1.jar       commons-httpclient-LICENSE.txt
jaxen-LICENSE.txt                     woden-api-LICENSE.txt
xmlsec-LICENSE.txt
axis2-jaxws-1.4.1.jar        commons-io-1.4.jar
jettison-1.0-RC2.jar                  woden-impl-dom-1.0M8.jar
axis2-jaxws-api-1.4.1.jar    commons-io-LICENSE.txt
jettison-LICENSE.txt                  woden-impl-dom-LICENSE.txt
axis2-jibx-1.4.1.jar         commons-logging-1.1.1.jar
jibx-bind-1.1.5.jar                   wsdl4j-1.6.2.jar
axis2-json-1.4.1.jar         commons-logging-LICENSE.txt
jibx-bind-LICENSE.txt                 wsdl4j-LICENSE.txt

*Then, I start axis2server.sh from bin directory of the axis2:

*/usr/local/sun/axis2/axis2-1.4.1$ bin/axis2server.sh
 Using AXIS2_HOME:   /usr/local/sun/axis2/axis2-1.4.1
 Using JAVA_HOME:       /usr/local/sun/jdk1.6.0_23/
[INFO] [SimpleAxisServer] Starting
[INFO] [SimpleAxisServer] Using the Axis2
Repository/usr/local/sun/axis2/axis2-1.4.1/repository
[SimpleAxisServer] Using the Axis2
Repository/usr/local/sun/axis2/axis2-1.4.1/repository
[SimpleAxisServer] Using the Axis2 Configuration
File/usr/local/sun/axis2/axis2-1.4.1/conf/axis2.xml
[INFO] Deploying module: script-1.41 -
file:/usr/local/sun/axis2/axis2-1.4.1/repository/modules/scripting-1.41.mar
[INFO] Deploying module: metadataExchange-1.41 -
file:/usr/local/sun/axis2/axis2-1.4.1/repository/modules/mex-1.41.mar
[INFO] Deploying module: soapmonitor-1.41 -
file:/usr/local/sun/axis2/axis2-1.4.1/repository/modules/soapmonitor-1.41.mar
[INFO] Deploying module: addressing-1.41 -
file:/usr/local/sun/axis2/axis2-1.4.1/repository/modules/addressing-1.41.mar
[INFO] Deploying module: ping-1.41 -
file:/usr/local/sun/axis2/axis2-1.4.1/repository/modules/ping-1.41.mar
[INFO] Deploying module: rahas-1.3 -
file:/usr/local/sun/axis2/axis2-1.4.1/repository/modules/rahas-1.3.mar
[INFO] Deploying module: rampart-1.3 -
file:/usr/local/sun/axis2/axis2-1.4.1/repository/modules/rampart-1.3.mar
[INFO] Deploying module: smtpfault -
file:/usr/local/sun/axis2/axis2-1.4.1/repository/modules/smtpfault.mar
[INFO] Deploying module: metadataExchange -
file:/usr/local/sun/axis2/axis2-1.4.1/lib/mex-1.4.1.jar
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
[INFO] Listening on port 8080*

I've successfully started the server and deployed module rampart and rahas.

BUT, When i'm using Eclipse to engage 2 modules: rampart and rahas. It have
an error in details:

*[ERROR] The rampart-1.3.mar module, which is not valid, caused
org.apache.rampart.Rampart
org.apache.axis2.deployment.DeploymentException: org.apache.rampart.Rampart
    at
org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:531)
    at
org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:71)
    at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
    at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
    at
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:237)
    at
org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68)
    at
org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63)
    at
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147)
    at
org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229)
    at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68)
    at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
    at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
    at
org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.java:55)
    at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at
org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at
org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)*

Please kindly help me to resolve this problems.

Many thanks

Mime
View raw message