<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Using Apache Axis in NetBeans 5.0</title>
	<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/</link>
	<description>Java programming tips and advice, and other topics</description>
	<pubDate>Wed, 07 Jan 2009 06:46:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: israr</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-11039</link>
		<pubDate>Sun, 10 Sep 2006 08:33:29 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-11039</guid>
					<description>I tried to follow the instructions using NetBeans 5.0 and when compiling the server I got the following error:

- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Java2WSDL test.HelloService
java.lang.ClassNotFoundException: test.HelloService
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1166)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1107)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1197)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:990)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2079)
at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:188)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)

C:\AxisTest\build.xml:102: Error while running org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask


I've added activation framework in my classpath using the following command and akso in libraries of the project.

set classpath = %classpath%;c:activation.jar


i'm also trying to build the server side using command prompt but same error is occuring.</description>
		<content:encoded><![CDATA[<p>I tried to follow the instructions using NetBeans 5.0 and when compiling the server I got the following error:</p>
<p>- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.<br />
Java2WSDL test.HelloService<br />
java.lang.ClassNotFoundException: test.HelloService<br />
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1166)<br />
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1107)<br />
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977)<br />
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)<br />
at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1197)<br />
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:990)<br />
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)<br />
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)<br />
at java.security.AccessController.doPrivileged(Native Method)<br />
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)<br />
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)<br />
at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2079)<br />
at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:188)<br />
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)<br />
at org.apache.tools.ant.Task.perform(Task.java:364)<br />
at org.apache.tools.ant.Target.execute(Target.java:341)<br />
at org.apache.tools.ant.Target.performTasks(Target.java:369)<br />
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)<br />
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)<br />
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)<br />
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)<br />
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)<br />
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)<br />
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)</p>
<p>C:\AxisTest\build.xml:102: Error while running org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask</p>
<p>I&#8217;ve added activation framework in my classpath using the following command and akso in libraries of the project.</p>
<p>set classpath = %classpath%;c:activation.jar</p>
<p>i&#8217;m also trying to build the server side using command prompt but same error is occuring.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Eddy</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-10424</link>
		<pubDate>Thu, 24 Aug 2006 19:03:28 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-10424</guid>
					<description>Tak,

Notice that this post explains how to use build.xml and Apache Axis to deploy and consume web services, and does not use the features built in NetBeans for web services.

Eddy</description>
		<content:encoded><![CDATA[<p>Tak,</p>
<p>Notice that this post explains how to use build.xml and Apache Axis to deploy and consume web services, and does not use the features built in NetBeans for web services.</p>
<p>Eddy
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: tak</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-10421</link>
		<pubDate>Thu, 24 Aug 2006 18:05:17 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-10421</guid>
					<description>what version of tomcat are you guys using? I hvae the bundle tomcat with netbeans ide 5.0, tomcat 5.0, and tomcat 5.5 (latest).

Using tomcat 5.5 or the bundle one - i get an error saying my server does not support JAXRPC. (i added libraries of whatever in the axis/lib folder to the project.

using 5.0 tomcat (which i got from the sun jwsdp), i can add web services, but it complained "JSR-109 is only supported with J2EE 1.4.)

If i look what version of 1.4 i have the server set to --- all fo them says 1.4..

wtf?!</description>
		<content:encoded><![CDATA[<p>what version of tomcat are you guys using? I hvae the bundle tomcat with netbeans ide 5.0, tomcat 5.0, and tomcat 5.5 (latest).</p>
<p>Using tomcat 5.5 or the bundle one - i get an error saying my server does not support JAXRPC. (i added libraries of whatever in the axis/lib folder to the project.</p>
<p>using 5.0 tomcat (which i got from the sun jwsdp), i can add web services, but it complained &#8220;JSR-109 is only supported with J2EE 1.4.)</p>
<p>If i look what version of 1.4 i have the server set to &#8212; all fo them says 1.4..</p>
<p>wtf?!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Eddy</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-9849</link>
		<pubDate>Fri, 11 Aug 2006 11:24:28 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-9849</guid>
					<description>Peter,

It looks like you don't have the required Java Activation Framework in your classpath. The Apache Axis website has more details about how to get that JAR.

Good luck.

Eddy</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>It looks like you don&#8217;t have the required Java Activation Framework in your classpath. The Apache Axis website has more details about how to get that JAR.</p>
<p>Good luck.</p>
<p>Eddy
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Peter V</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-9848</link>
		<pubDate>Fri, 11 Aug 2006 11:12:25 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-9848</guid>
					<description>I tried to follow the instructions using NetBeans 5.0 and when compiling the server I got the following error:

- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Java2WSDL test.HelloService
java.lang.ClassNotFoundException: test.HelloService
        at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1166)
        at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1107)
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1197)
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:990)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
        at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
        at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2079)
        at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:188)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
T:\MyProject\AxisTest\build.xml:130: Error while running org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask
BUILD FAILED (total time: 2 seconds)</description>
		<content:encoded><![CDATA[<p>I tried to follow the instructions using NetBeans 5.0 and when compiling the server I got the following error:</p>
<p>- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.<br />
Java2WSDL test.HelloService<br />
java.lang.ClassNotFoundException: test.HelloService<br />
        at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1166)<br />
        at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1107)<br />
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977)<br />
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)<br />
        at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1197)<br />
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:990)<br />
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)<br />
        at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)<br />
        at java.security.AccessController.doPrivileged(Native Method)<br />
        at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)<br />
        at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)<br />
        at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2079)<br />
        at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:188)<br />
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)<br />
        at org.apache.tools.ant.Task.perform(Task.java:364)<br />
        at org.apache.tools.ant.Target.execute(Target.java:341)<br />
        at org.apache.tools.ant.Target.performTasks(Target.java:369)<br />
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)<br />
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)<br />
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)<br />
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)<br />
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)<br />
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)<br />
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)<br />
T:\MyProject\AxisTest\build.xml:130: Error while running org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask<br />
BUILD FAILED (total time: 2 seconds)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Eddy</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-9822</link>
		<pubDate>Thu, 10 Aug 2006 15:24:44 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-9822</guid>
					<description>Unfortunately, it is difficult to provide a solution without looking at the actual code.</description>
		<content:encoded><![CDATA[<p>Unfortunately, it is difficult to provide a solution without looking at the actual code.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Saeed</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-9821</link>
		<pubDate>Thu, 10 Aug 2006 15:04:51 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-9821</guid>
					<description>Hi,
I'd deeply appreciate any hint on the problem I have, described below:

Problem: I have a web service, deployed on Tom cat on FreeBSD, which tests OK using the test interface on Tomcat. I can also invoke the web service method successfully through a test Java prog, if compiled using javac on CLI. 
Problem: The test client I developed in NetBeans is generating a strange exception when compiling the code: The WS method takes the following data types as parameteres:
        String
        String  
        String[] 
        String[] 
        String[] 
       
 The compiler rejects the parameters in the invokation and requires the object type: javax.xml.soap.SOAPElement
Here is the error:

myWSmethod(javax.xml.soap.SOAPElement) in examples.myWSComponent cannot be applied to
(java.lang.String,java.lang.String,java.lang.String[],java.lang.String[],java.lang.String[])
       

I've included the AXIS and other jar files I successfully used in the CLI test in the NetBeans libraray and added the library tot he Project. And the Test Operation utility runs OK on the web service methods inside the project web references. NetBeans in ver 5.5, JDK 1.5. And all are services are running locally on the same machine.

Could you tell me what I’m missing?

Thanks

Saeed</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;d deeply appreciate any hint on the problem I have, described below:</p>
<p>Problem: I have a web service, deployed on Tom cat on FreeBSD, which tests OK using the test interface on Tomcat. I can also invoke the web service method successfully through a test Java prog, if compiled using javac on CLI.<br />
Problem: The test client I developed in NetBeans is generating a strange exception when compiling the code: The WS method takes the following data types as parameteres:<br />
        String<br />
        String<br />
        String[]<br />
        String[]<br />
        String[] </p>
<p> The compiler rejects the parameters in the invokation and requires the object type: javax.xml.soap.SOAPElement<br />
Here is the error:</p>
<p>myWSmethod(javax.xml.soap.SOAPElement) in examples.myWSComponent cannot be applied to<br />
(java.lang.String,java.lang.String,java.lang.String[],java.lang.String[],java.lang.String[])</p>
<p>I&#8217;ve included the AXIS and other jar files I successfully used in the CLI test in the NetBeans libraray and added the library tot he Project. And the Test Operation utility runs OK on the web service methods inside the project web references. NetBeans in ver 5.5, JDK 1.5. And all are services are running locally on the same machine.</p>
<p>Could you tell me what I’m missing?</p>
<p>Thanks</p>
<p>Saeed
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Eddy</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-6559</link>
		<pubDate>Fri, 16 Jun 2006 10:51:37 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-6559</guid>
					<description>Fasil,

Yes, this is the procedure that needs to be followed for consuming web services. But you may want to check out the new NetBeans documentation as support for working with WS has been improved.

Regards,
Eddy</description>
		<content:encoded><![CDATA[<p>Fasil,</p>
<p>Yes, this is the procedure that needs to be followed for consuming web services. But you may want to check out the new NetBeans documentation as support for working with WS has been improved.</p>
<p>Regards,<br />
Eddy
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Fasil</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-6558</link>
		<pubDate>Fri, 16 Jun 2006 10:36:53 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-6558</guid>
					<description>Hi,

Is this the same procdure used for consuming a webservice.
I want to consume a webserivce. I have Netbeans installed on my machine.

Is this the procedure I have to follow.


Thanks and regards,

Fasil.ak</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is this the same procdure used for consuming a webservice.<br />
I want to consume a webserivce. I have Netbeans installed on my machine.</p>
<p>Is this the procedure I have to follow.</p>
<p>Thanks and regards,</p>
<p>Fasil.ak
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Eddy</title>
		<link>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-2533</link>
		<pubDate>Thu, 16 Feb 2006 22:55:11 +0000</pubDate>
		<guid>http://coding.moris.org/archives/2005/08/26/using-apache-axis-in-netbeans-50/#comment-2533</guid>
					<description>That post does include a link to a KB article about how to do web services in web application with NetBeans 5.0.

http://www.netbeans.org/kb/50/jaxws20.html

If that does not work, I'm afraid you'll have to ask help from the mailing list. Or, you could e-mail the Geertjan who will be happy to help, I'm sure.

Good luck!</description>
		<content:encoded><![CDATA[<p>That post does include a link to a KB article about how to do web services in web application with NetBeans 5.0.</p>
<p><a href='http://www.netbeans.org/kb/50/jaxws20.html' rel='nofollow'>http://www.netbeans.org/kb/50/jaxws20.html</a></p>
<p>If that does not work, I&#8217;m afraid you&#8217;ll have to ask help from the mailing list. Or, you could e-mail the Geertjan who will be happy to help, I&#8217;m sure.</p>
<p>Good luck!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
