Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 72269 invoked from network); 20 Dec 2006 16:24:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2006 16:24:17 -0000 Received: (qmail 23050 invoked by uid 500); 20 Dec 2006 16:24:15 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 23037 invoked by uid 500); 20 Dec 2006 16:24:15 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 23025 invoked by uid 99); 20 Dec 2006 16:24:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 08:24:14 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of khangaonkar@gmail.com designates 66.249.82.233 as permitted sender) Received: from [66.249.82.233] (HELO wx-out-0506.google.com) (66.249.82.233) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 08:24:04 -0800 Received: by wx-out-0506.google.com with SMTP id h28so1986078wxd for ; Wed, 20 Dec 2006 08:23:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=e+QMGOMz9zJN1t7Ff3plmINfwdYYei+bObebOSapQ6ktadi5Agn8vtrtkNG+Fz8bXbFwwgSNpA96HoqVZTZtzAWqm7RPZ1h7Dk7qjSJG0WD508+UK5Gf0OkB0A+Q+gz9chR54iJvxEBJkyxeYo8CbqWmv2B5bf2Pht8LpgarXRM= Received: by 10.90.119.15 with SMTP id r15mr7403076agc.1166631824034; Wed, 20 Dec 2006 08:23:44 -0800 (PST) Received: by 10.90.96.15 with HTTP; Wed, 20 Dec 2006 08:23:43 -0800 (PST) Message-ID: <541aa82a0612200823l7a491853jc624345229aa0264@mail.gmail.com> Date: Wed, 20 Dec 2006 08:23:43 -0800 From: "Manoj Khangaonkar" To: axis-user@ws.apache.org Subject: Re: Java2wsdl ignorring the classpath? In-Reply-To: <003901c7243a$8a0895b0$c1fc6c50@goliath> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13459_22446904.1166631823992" References: <003901c7243a$8a0895b0$c1fc6c50@goliath> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_13459_22446904.1166631823992 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thomas, With the -cp . (dot) option , I notice that your error is from the jdk jar. Not any of the libraries that AXIS2 brings in. >From your classpath, It seems that you are using JDK 1.6. I have seem emails in this group that there are known problems with JDK1.6 Try JDK 1.5. It has always worked from me. I agree that requiring -cp . is annoying and the script needs to pick up the existing classpath. Mj On 12/20/06, Thomas Bruckmayer wrote: > > Hi all! > > Sorry for the noob-question but i am not able to get java2wsdl running. > > When I'am running java2wsdl without -cp opting i got the following message > An error occured while generating codejava.lang.ClassNotFoundException > > When I'am running java2wsdl with -cp . (current directory) > I get Exception in thread "main" > javax.xml.stream.FactoryConfigurationError: > Provider > javax.xml.stream.XMLInputFactory could not be instantiated: > java.lang.Instantiat > ionException > at > javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158 > ) > at > org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java: > 40) > at > org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.ja > va:66) > at > org.apache.ws.java2wsdl.Java2OMBuilder.generateTypes(Java2OMBuilder.j > ava:153) > at > org.apache.ws.java2wsdl.Java2OMBuilder.generateOM(Java2OMBuilder.java > :122) > at > org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilde > r.java:184) > at > org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCode > genEngine.java:56) > at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:29) > > I've heard that this can be cause when it is not possible to find the > maven > - libs. > > So I tried: > > java2wsdl -cp .;P:\Apache Software Foundation\Maven 1.0.2\lib -cn > src.swa.webservices.SearchDeveloperService.SearchDeveloper -o SearchDevel > operService.wsdl > > But the i get: An error occured while generating > codejava.lang.ClassNotFoundException: src.swa. > webservices.SearchDeveloperService.SearchDeveloper > > Maven and current directory are in the %classpath% variable: > D:\workspace\swa_DMC>echo %classpath% > .;P:\Java\jdk1.6.0\lib;P:\axis\axis2-1.1\lib > ;P:\ant\lib;D:\workspace\swa_DMC > ;P:\ > Apache Software Foundation\Maven 1.0.2\lib > > But axis2wsdl does not care... > OS: Windows XP > > regards > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > ------=_Part_13459_22446904.1166631823992 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Thomas,
 
With the -cp . (dot) option , I notice that your error is from the jdk jar. Not any of the libraries that AXIS2 brings in.
 
From your classpath, It seems that you are using JDK 1.6. I have seem emails in this group that there are known
problems with JDK1.6
 
Try JDK 1.5. It has always worked from me.
 
I agree that requiring -cp . is annoying and the script needs to pick up the existing classpath.
 
Mj
 


 
On 12/20/06, Thomas Bruckmayer <bruckmayer@gmail.com> wrote:
Hi all!

Sorry for the noob-question but i am not able to get java2wsdl running.

When I'am running java2wsdl without -cp opting i got the following message
An error occured while generating codejava.lang.ClassNotFoundException

When I'am running java2wsdl with -cp . (current directory)
I get Exception in thread "main" javax.xml.stream.FactoryConfigurationError :
Provider
javax.xml.stream.XMLInputFactory could not be instantiated:
java.lang.Instantiat
ionException
       at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158
)
       at
org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:
40)
       at
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.ja
va:66)
       at
org.apache.ws.java2wsdl.Java2OMBuilder.generateTypes (Java2OMBuilder.j
ava:153)
       at
org.apache.ws.java2wsdl.Java2OMBuilder.generateOM(Java2OMBuilder.java
:122)
       at
org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilde
r.java:184)
       at
org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCode
genEngine.java:56)
       at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:29)

I've heard that this can be cause when it is not possible to find the maven
- libs.

So I tried:

java2wsdl -cp .;P:\Apache Software Foundation\Maven 1.0.2\lib -cn
src.swa.webservices.SearchDeveloperService.SearchDeveloper -o SearchDevel
operService.wsdl

But the i get: An error occured while generating
codejava.lang.ClassNotFoundException: src.swa.
webservices.SearchDeveloperService.SearchDeveloper

Maven and current directory are in the %classpath% variable:
D:\workspace\swa_DMC>echo %classpath%
.;P:\Java\jdk1.6.0\lib;P:\axis\axis2- 1.1\lib;P:\ant\lib;D:\workspace\swa_DMC
;P:\
Apache Software Foundation\Maven 1.0.2\lib

But axis2wsdl does not care...
OS: Windows XP

regards


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


------=_Part_13459_22446904.1166631823992--