axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mans Tanneryd <m...@tanneryd.com>
Subject RE: Axis Test Rearchitecture, I'm failing miserably to run 'singular' test
Date Fri, 30 Apr 2004 14:23:21 GMT
Removing xmlsec.jar just gave me another error...

adminClient:
     [java] - SimpleAxisServer starting up on port 8080.
     [java] Processing file
E:\workspace\svnwork\ws-axis\java\build\work\test\wsdl\echo\deploy.wsdd
     [java] java.lang.NoClassDefFoundError: org/apache/xml/security/Init
     [java]     at
samples.security.ClientSigningHandler.<clinit>(ClientSigningHandler.java:34)

It seems as if the the following row from client-config.wsdd in
test/wsdl/echo is the 'reason' for failure.

    <parameter name="keystore" value="samples/security/keystore.jks"/>

It assumes that your current directory is ${axis.home} when running the
test, which it apparently is not. If it was possible to somehow say

<parameter name="keystore"
value="${axis.home}/samples/security/keystore.jks"/>

I think it would work a whole lot better. Am I correct or is it something
else I'm missing out on here?

/Mans

> -----Original Message-----
> From: Davanum Srinivas [mailto:dims@yahoo.com]
> Sent: den 29 april 2004 00:20
> To: axis-dev@ws.apache.org
> Subject: RE: Axis Test Rearchitecture, I'm failing miserably to run
> 'singular' test
>
>
> delete xmlsec.jar and re-rerun as per tom's instruction.
>
> --- Mens_Tenneryd <mans@tanneryd.com> wrote:
> > > -----Original Message-----
> > > From: Tom Jordahl [mailto:tomj@macromedia.com]
> > > Sent: den 28 april 2004 23:08
> > > To: 'axis-dev@ws.apache.org'
> > > Cc: 'Mens Tenneryd'
> > > Subject: RE: Axis Test Rearchitecture, I'm failing miserably to run
> > > 'singular' test
> > >
> > >
> > >
> > > Just cd to the directory and run ant:
> > >
> > > % cd test/wsdl/echo
> > > % ant clean compile run
> > >
> > > The test suite is set up to do exactly what you are trying to
> do (which is
> > > why is runs all tests so slowly...)
> > >
> > >
> > > --
> > > Tom Jordahl
> > > Macromedia Server Development
> >
> > Tried it, still screaming at me for a missing file that is not missing,
> > really! Feels like a search path is getting smashed somewhere.
> I'm pretty
> > sure I'm doing something stupid but, for the life of me, I
> cannot figure out
> > what it is.
> >
> > So, what did I do?
> >
> > 1. checked out a fresh copy of ws-axis from cvs.apache.org.
> > 2. ant clean functional-tests (seemed to run just fine except
> for an error
> > message claiming the build failed at the end when all the tests
> had run and
> > claiming their success)
> >
> > 3. cd test/wsdl/echo
> > 4. ant clean compile run
> >
> >
> > Below is a printout from my futile efforts at point 4 above.
> >
> >
> ------------------------------------------------------------------
> ----------
> > --------
> >
> > E:\workspace\svnwork\ws-axis\java\test\wsdl\echo>ant clean compile run
> > Buildfile: build.xml
> >
> > clean:
> >      [echo] Removing
> > E:\workspace\svnwork\ws-axis\java\build/classes/test/wsdl/echo and
> > E:\workspace\svnwork\ws-axis\jav
> > a\build/work/test/wsdl/echo
> >    [delete] Deleting directory
> > E:\workspace\svnwork\ws-axis\java\build\classes\test\wsdl\echo
> >    [delete] Deleting directory
> > E:\workspace\svnwork\ws-axis\java\build\work\test\wsdl\echo
> >
> > axis-clover-setenv:
> >
> > axis-clover-setup:
> >
> > setenv:
> >
> > copy:
> >
> > compile:
> >      [echo] Compiling test.wsdl.echo
> > [wsdl2java] WSDL2Java
> > E:\workspace\svnwork\ws-axis\java/test/wsdl/echo/echo.wsdl
> >      [copy] Copying 2 files to
> > E:\workspace\svnwork\ws-axis\java\build\work\test\wsdl\echo
> >     [javac] Compiling 7 source files to
> > E:\workspace\svnwork\ws-axis\java\build\classes
> >
> > run:
> >
> > axis-clover-setenv:
> >
> > axis-clover-setup:
> >
> > setenv:
> >
> > execute-Component:
> >
> > start-signature-signing-and-verification:
> >
> > start-functional-test-http-server:
> >      [echo] Starting test http server.
> >      [java] - SimpleAxisServer starting up on port 8080.
> >      [java] Processing file
> >
> E:\workspace\svnwork\ws-axis\java/samples/security/serversecurityd
> eploy.wsdd
> >      [java] Beginning Client signing...
> >      [java] java.io.FileNotFoundException: samples\security\keystore.jks
> > (The system cannot find the path specified)
> >      [java]     at java.io.FileInputStream.open(Native Method)
> >      [java]     at
> java.io.FileInputStream.<init>(FileInputStream.java:106)
> >      [java]     at
> java.io.FileInputStream.<init>(FileInputStream.java:66)
> >      [java]     at
> > samples.security.SignedSOAPEnvelope.init(SignedSOAPEnvelope.java:88)
> >      [java]     at
> > samples.security.SignedSOAPEnvelope.<init>(SignedSOAPEnvelope.java:65)
> >      [java]     at
> >
> samples.security.ClientSigningHandler.invoke(ClientSigningHandler.java:50)
> >      [java]     at
> >
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStra
> tegy.java:
> > 32)
> >      [java]     at
> > org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >      [java]     at
> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> >      [java]     at
> > org.apache.axis.client.AxisClient.invoke(AxisClient.java:131)
> >      [java]     at
> org.apache.axis.client.Call.invokeEngine(Call.java:2710)
> >      [java]     at org.apache.axis.client.Call.invoke(Call.java:2693)
> >      [java]     at org.apache.axis.client.Call.invoke(Call.java:1742)
> >      [java]     at
> > org.apache.axis.client.AdminClient.process(AdminClient.java:318)
> >      [java]     at
> > org.apache.axis.client.AdminClient.process(AdminClient.java:297)
> >      [java]     at
> > org.apache.axis.client.AdminClient.process(AdminClient.java:304)
> >      [java]     at
> > org.apache.axis.client.AdminClient.process(AdminClient.java:255)
> >      [java]     at
> > org.apache.axis.client.AdminClient.main(AdminClient.java:340)
> >      [java] Exception: AxisFault
> >      [java]  faultCode:
> > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> >      [java]  faultSubcode:
> >      [java]  faultString: java.lang.RuntimeException:
> > java.io.FileNotFoundException: samples\security\keystore.jks (The
> > system cannot find the path specified)
> >      [java]  faultActor:
> >      [java]  faultNode:
> >      [java]  faultDetail:
> >      [java]
> > {http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException:
> > java.io.FileNotFoundException: sampl
> > es\security\keystore.jks (The system cannot find the path specified)
> >      [java]     at
> > samples.security.SignedSOAPEnvelope.init(SignedSOAPEnvelope.java:129)
> >      [java]     at
> >
> samples.security.SignedSOAPEnvelope.&lt;init&gt;(SignedSOAPEnvelop
> e.java:65)
> >      [java]     at
> >
> samples.security.ClientSigningHandler.invoke(ClientSigningHandler.java:50)
> >      [java]     at
> >
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStra
> tegy.java:
> > 32)
> >      [java]     at
> > org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >      [java]     at
> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> >      [java]     at
> > org.apache.axis.client.AxisClient.invoke(AxisClient.java:131)
> >      [java]     at
> org.apache.axis.client.Call.invokeEngine(Call.java:2710)
> >      [java]     at org.apache.axis.client.Call.invoke(Call.java:2693)
> >      [java]     at org.apache.axis.client.Call.invoke(Call.java:1742)
> >      [java]     at
> > org.apache.axis.client.AdminClient.process(AdminClient.java:318)
> >      [java]     at
> > org.apache.axis.client.AdminClient.process(AdminClient.java:297)
> >      [java]     at
> > org.apache.axis.client.AdminClient.process(AdminClient.java:304)
> >      [java]     at
> > org.apache.axis.client.AdminClient.process(AdminClient.java:255)
> >      [java]     at
> > org.apache.axis.client.AdminClient.main(AdminClient.java:340)
> >
> >
> >
> ------------------------------------------------------------------
> ----------
> > --------
> >
> >
> > >
> > > -----Original Message-----
> > > From: Mens Tenneryd [mailto:mans@tanneryd.com]
> > > Sent: Wednesday, April 28, 2004 3:09 PM
> > > To: axis-dev@ws.apache.org
> > > Subject: Axis Test Rearchitecture, I'm failing miserably to
> run 'singular'
> > > test
> > >
> > > Hello everybody!
> > >
> > > How do I run a single test, for example the echo test in
> test/wsdl/echo?
> > > I've tried to follow the instructions in Axis Test Rearchitecture
> > > as well as
> > > trying out other more or less illuminated variants. None of
> them works for
> > > me.
> > >
> > > ant -buildfile buildTest.xml echo -> Target `echo' does not
> exist in this
> > > project.
> > > ant -buildfile test/wsdl/echo/build.xml run ->
> > > java.io.FileNotFoundException: samples\security\keystore.jks
> (The system
> > > cannot find the path specified)
> > >
> > > What am I doing wrong?
> > >
> > > /Mens Tenneryd
> > >
> >
> >
>
>
> =====
> Davanum Srinivas - http://webservices.apache.org/~dims/
>



Mime
View raw message