You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Great Man <gr...@yahoo.com> on 2007/04/10 18:53:31 UTC

Can not build sample projects of Axis2

I am trying to build Axis2 samples project (quickstartadb) and I have jdk1.5 in my system and I am getting following exception. Any idea why it is complaining ???

E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
Buildfile: build.xml

init:
generate.service:
BUILD FAILED
E:\axis2-1.1.1\samples\quickstartadb\build.xml:56: java.util.zip.ZipException: The system cannot find the file specified

Total time: 1 second


Any help would be really appreciated.

Petr

       
---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

Re: Can not build sample projects of Axis2

Posted by Martin Gainty <mg...@hotmail.com>.
Peter--

I think this brings up the subject of how does one iterate thru a collection of interfaces?

Being mindful that this is not a class and this is not instantiating a class which may implement one or more interface(s) but an attempt to iterate thru a collection of just plain Interfaces

take a gander at 
\samples\quickstartadb\build\service\src\samples\quickstart\service\adb\StockQuoteMessageReceiveInOnly.java
where the parameter env we are (supposedly) iterating on is SOAPEnvelope which IS an interface
How is any iteration on an (non static) interface possible???

 /**
        *  A utility method that copies the namepaces from the SOAPEnvelope
        */
        private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
        java.util.Map returnMap = new java.util.HashMap();
        java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
        while (namespaceIterator.hasNext()) {
        org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
        returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
        }
        return returnMap;
        }
the workaround is to pass in SOAPPart on the stack and then in the body of the code
SOAPEnvelope env = sp.getEnvelope();

Comments/Advice/Suggestions?
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  ----- Original Message ----- 
  From: Great Man 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, April 10, 2007 12:53 PM
  Subject: Can not build sample projects of Axis2


  I am trying to build Axis2 samples project (quickstartadb) and I have jdk1.5 in my system and I am getting following exception. Any idea why it is complaining ???

  E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
  Buildfile: build.xml

  init:
  generate.service:
  BUILD FAILED
  E:\axis2-1.1.1\samples\quickstartadb\build.xml:56: java.util.zip.ZipException: The system cannot find the file specified

  Total time: 1 second


  Any help would be really appreciated.

  Petr



------------------------------------------------------------------------------
  We won't tell. Get more on shows you hate to love
  (and love to hate): Yahoo! TV's Guilty Pleasures list.

Re: Can not build sample projects of Axis2

Posted by Davanum Srinivas <da...@gmail.com>.
Which version of ant?

-- dims

On 4/10/07, Great Man <gr...@yahoo.com> wrote:
> Has not any one seen this problem ???  I freshly installed
> jdk1.5/Axis/Ant/TomCat on new machine and still seeing the same issue .
> First I thought that it was some configuration issue but more likely it is
> now looking as some bug.
>
> Please help me.
>
> Thanks,
>
> Petr.
>
>
> Great Man <gr...@yahoo.com> wrote:
>  I am trying to build Axis2 samples project (quickstartadb) and I have
> jdk1.5 in my system and I am getting following exception. Any idea why it is
> complaining ???
>
> E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
> Buildfile: build.xml
>
> init:
> generate.service:
> BUILD FAILED
> E:\axis2-1.1.1\samples\quickstartadb\build.xml:56:
> java.util.zip.ZipException: The system cannot find the file specified
>
> Total time: 1 second
>
>
> Any help would be really appreciated.
>
> Petr
>  ________________________________
> We won't tell. Get more on shows you hate to love
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
>
>
>  ________________________________
> Looking for earth-friendly autos?
>  Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
>
>


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Can not build sample projects of Axis2

Posted by Great Man <gr...@yahoo.com>.
Okay I solved this issue. You can not build sample projects with ant 1.7. You have to use ant1.6.2 for that Could some one please point to docs team of Axis. to put it on web site.


Great Man <gr...@yahoo.com> wrote: Has not any one seen this problem ???  I freshly installed jdk1.5/Axis/Ant/TomCat on new machine and still seeing the same issue . First I thought that it was some configuration issue but more likely it is now looking as some bug.

Please help me.

Thanks,

Petr.

Great Man <gr...@yahoo.com> wrote: I am trying to build Axis2 samples project (quickstartadb) and I have jdk1.5 in my system and I am getting following exception. Any idea why it is complaining ???

E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
Buildfile: build.xml

init:
generate.service:
BUILD FAILED
E:\axis2-1.1.1\samples\quickstartadb\build.xml:56: java.util.zip.ZipException: The system cannot find the file specified

Total time: 1 second


Any help would be really  appreciated.

Petr
        

---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
            

---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

       
---------------------------------
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.

Re: Can not build sample projects of Axis2

Posted by Great Man <gr...@yahoo.com>.
Has not any one seen this problem ???  I freshly installed jdk1.5/Axis/Ant/TomCat on new machine and still seeing the same issue . First I thought that it was some configuration issue but more likely it is now looking as some bug.

Please help me.

Thanks,

Petr.

Great Man <gr...@yahoo.com> wrote: I am trying to build Axis2 samples project (quickstartadb) and I have jdk1.5 in my system and I am getting following exception. Any idea why it is complaining ???

E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
Buildfile: build.xml

init:
generate.service:
BUILD FAILED
E:\axis2-1.1.1\samples\quickstartadb\build.xml:56: java.util.zip.ZipException: The system cannot find the file specified

Total time: 1 second


Any help would be really appreciated.

Petr
        

---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

        
---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.