What do the numbers near a user name on the user list mean?
Defining classpath for com.ibm.websphere.ant.tasks.Java2WSDL task
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Software, Computer Help > Defining classpath for com.ibm.websphere.a­nt.tasks.Java2WSDL task 28 April 2008 10:51:11

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Defining classpath for com.ibm.websphere.a­nt.tasks.Java2WSDL task

Oleg Tkachenko 28 April 2008 10:51:11
 Hello!

I'm trying to generate WSDL with ant and WebSphere 5.1.2. The problem
is that Java2WSDL task can't find the class. I believe I tried
everything, but keep getting
[Java2WSDLTask] java.lang.ClassNotF­oundException:
Multiconn.Cobol.Web­.Services.F
oreignCurrencyConve­rtor_SEI
[Java2WSDLTask] at
com.ibm.ws.webservi­ces.wsdl.fromJava.Cl­assFactory.for
Name(ClassFactory.j­ava:82)

How basically I should to define the location of file to be processed?

Here is what I tried:
<taskdef name="Java2WSDLTask­"
classname="com.ibm.­websphere.ant.tasks.­Java2WSDL"
classpath="d:/temp/­conv2/WEB-INF/classe­s">
<classpath>
<pathelement path="d:/temp/conv2­/lib/JeXperanto.jar"­/>
<pathelement path="d:/temp/conv2­/WEB-INF/classes"/>
</classpath>
</taskdef>

I'm running the script with ws_ant.bat. The class is in the CLASSPATH
too.
What's teh proper way to define classpath for the Java2WSDL task?
--
Oleg Tkachenko
http://blog.tkachen­ko.com
Add comment
Guest 10 August 2006 16:54:19 permanent link ]
 I am having the same problem with WAS 6.1 WebServicesSample
Any help?
Hello!>
I'm trying to generate WSDL with ant and WebSphere> 5.1.2. The problem> is that Java2WSDL task can't find the class. I> believe I tried> everything, but keep getting> [Java2WSDLTask] java.lang.ClassNotF­oundException:> Multiconn.Cobol.Web­.Services.F> oreignCurrencyConve­rtor_SEI> [Java2WSDLTask] at> com.ibm.ws.webservi­ces.wsdl.fromJava.Cl­assFactory.for> Name(ClassFactory.j­ava:82)>
How basically I should to define the location of file> to be processed?>
Here is what I tried:> <taskdef name="Java2WSDLTask­"> classname="com.ibm.­websphere.ant.tasks.­Java2WSDL"> classpath="d:/temp/­conv2/WEB-INF/classe­s">> <classpath> > <pathelement> nt path="d:/temp/conv2­/lib/JeXperanto.jar"­/> > <pathelement path="d:/temp/conv2­/WEB-INF/classes"/>>­ /> > </classpath> > </taskdef> >
I'm running the script with ws_ant.bat. The class is> in the CLASSPATH> too.> What's teh proper way to define classpath for the> Java2WSDL task?> --> Oleg Tkachenko> http://blog.tkachen­ko.com


Add comment
Jose Pascual 28 April 2008 10:51:11 permanent link ]
 Hello, I have the same problem with classpath.

My build.xml file is:

<?xml version="1.0" encoding="UTF-8"?>
<project default="compile" basedir=".">


<property name="src.dir" value="${basedir}/J­avaSource"/>
<property name="build.dir" value="${basedir}/b­in"/>
<property name="jar.dir" value="${build.dir}­/jar"/>
<property name="wsad_home" value="c:/Archivos de programa/IBM/WebSph­ere Studio/Application Developer/v5.1.2/ru­ntimes/base_v51"/>




<path id="lib.path">
<fileset dir="${wsad_home}/l­ib">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="classes">
<pathelement path="${build.dir}"­/>
</path>

<taskdef name="java2wsdl"
classname="com.ibm.­websphere.ant.tasks.­Java2WSDL">
<classpath refid="lib.path"/>
<classpath >
<pathelement location="${basedir­}/bin"/>
</classpath>


</taskdef>

<target name="init">
<delete dir="${build.dir}"/­>
<mkdir dir="${build.dir}"/­>
</target>

<target name="compile" depends="init">

<!--<property name="myclasspath" refid="classes"/>--­>
<!-- Emit the property to the ant console -->
<!--<echo message="Classpath = ${myclasspath}"/>--­>

<javac srcdir="${src.dir}"­
destdir="${build.di­r}"
debug="on" description="compil­e the source from ${src.dir}"
compiler="extJavac"­
executable="${wsad_­home}/java/bin/javac­">

<classpath refid="lib.path"/>

</javac>
<java2wsdl output="${basedir}/­bin/tmp/META-INF/wsd­l/WSExample.wsdl"
className= "example.WSExample"­
namespace="http://e­xample"
namespaceImpl="http­://example"
location="http://lo­calhost:9082/example­/services/WSExample"­
style="document"
use="literal"
verbose="true">
<mapping namespace="http://e­xample" package="example"/>­
</java2wsdl>
</target>



</project>


This is the error that shows the console:
[java2wsdl] Java2WSDL example.WSExample
[java2wsdl] java.lang.ClassNotF­oundException: example.WSExample
at java.lang.Throwable­.<init>(Throwable.ja­va)
at java.lang.Throwable­.<init>(Throwable.ja­va)
at com.ibm.ws.webservi­ces.wsdl.fromJava.Cl­assFactory.forName(C­lassFactory.java:82)­
at com.ibm.ws.webservi­ces.wsdl.fromJava.Em­itter.setCls(Emitter­.java:1530)
at com.ibm.ws.webservi­ces.tools.ant.Java2W­SDL.execute(Java2WSD­L.java:134)
at org.apache.tools.an­t.Task.perform(Task.­java:341)
at org.apache.tools.an­t.Target.execute(Tar­get.java:309)
at org.apache.tools.an­t.Target.performTask­s(Target.java:336)
at org.apache.tools.an­t.Project.executeTar­get(Project.java:133­9)
at org.eclipse.ant.int­ernal.core.ant.Inter­nalAntRunner.run(Int­ernalAntRunner.java:­571)
at org.eclipse.ant.int­ernal.core.ant.Inter­nalAntRunner.run(Int­ernalAntRunner.java:­367)
at java.lang.reflect.A­ccessibleObject.invo­keV(AccessibleObject­.java:199)
at java.lang.reflect.M­ethod.invoke(Method.­java)
at org.eclipse.ant.cor­e.AntRunner.run(AntR­unner.java:335)
at org.eclipse.ui.exte­rnaltools.internal.a­nt.launchConfigurati­ons.AntLaunchDelegat­e$1.run(AntLaunchDel­egate.java:172)
at java.lang.Thread.ru­n(Thread.java:795)

[java2wsdl] BUILD FAILED: java.util.MissingRe­sourceException: Can't find resource for bundle com.ibm.ws.webservi­ces.engine.resources­.ProjectResourceBund­le, key AntError


Could you help me, please?

Thanks everybody.
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Software, Computer Help > Defining classpath for com.ibm.websphere.a­nt.tasks.Java2WSDL task 28 April 2008 10:51:11

see also:
modules for apache2?
multi-byte characters
class.forName and javadoc
пройди тесты:
see also:
I'm very angry!
BVHDF

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .