JWSC in weblogic 10.3

Hi,
We are currently do the migration of our application from weblogic 8.1 to 10.3.
As a part of the migration, we need to migrate our web services developed in our application.
We made web service war file using JWSC task and deployed in the server.
While traversing to the web service link, it is still showing as Weblogic 8.1 header screen.
Is there any configuration we need to updated to change the header section and we hope it mainly comes from oracle library.
Please provide your inputs to resolve this issue.
Thanks,
Senthil

Hi,
We are currently do the migration of our application from weblogic 8.1 to 10.3.
As a part of the migration, we need to migrate our web services developed in our application.
We made web service war file using JWSC task and deployed in the server.
While traversing to the web service link, it is still showing as Weblogic 8.1 header screen.
Is there any configuration we need to updated to change the header section and we hope it mainly comes from oracle library.
Please provide your inputs to resolve this issue.
Thanks,
Senthil

Similar Messages

  • How to include .xml on .war generated by jwsc?

    Hello there!
    When i build my web service i cannot be able to put in the war file my .xml files they are copy out of the war :__ I need those files because are for ibatis
    This is my build.xml
    <target name="build.WebService">
         <jwsc
         srcdir="${src.dir}/ActivacionBlackBerryWS"
         destdir="${dest.dir}"
         keepGenerated="yes" >
              <module contextPath="test" name="testWS">
                   <jwsfileset srcdir="${src.dir}/testWS">
                        <include name="**/*.java" />
                   </jwsfileset>
              </module>
         </jwsc>
                        <copy todir="${dest.dir}">
                        <fileset dir="${src.dir}/testWS" excludes="**/*.java"/>
                        </copy>
    </target>
    i have 2 packages... 1 for web service and the other one with sqlMapConfig.xml and statements.xml
    and the result is a .war with my WS but out of this files are the package with the .xml
    what can i do??
    thanx in advance

    Hi,
    Try using the following to Update your WAR/EAR file...:
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" />
        <target name="build-target">
            <jwsc srcdir="src" destdir="${ear-dir}" listfiles="true">
                 <jws file="TargetImpl.java" compiledWsdl="${cowDir}/target/Target_wsdl.jar" type="JAXWS"/>
            </jwsc>
    <font color=maroon>
             <zip destfile="${ear-dir}/jws.war" update="true">
                 <zipfileset dir="src/examples/webservices/callback" prefix="wsdls">
                     <include name="Callback*.wsdl"/>
                 </zipfileset>
             </zip>
    </font>
        </target>
    For real demo of this <Zip> tag please refer to : http://weblogic-wonders.com/weblogic/2010/01/09/username-token-in-jaxws-webservice/
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic/webservices/  (WebLogic Wonders Are Here)

  • Not much information from jwsc

    I am using jwsc to build my weblogic 10 artifacts. jwsc also compiles the files. It is giving me an error:
    UILD FAILED
    C:\bea10\user_projects\Sept23workspace\BVoIPServicesWeb\build.xml:91: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: C:\bea10\user_projects\Sept23workspace\BVoIPServicesWeb\src\com\qwest\bvoipservices\webservices\compression\Compression.java
    Not much else
    How do I get more details? I have tried setting verbose (tried "true", "yes", "on") with no success.
    What is weird is that the same java file compiles doing an Eclipse build.. and it also compiles without error in a different target in the same build.xml file. Here is the one that works (buildClasses) followed by the jwsc one that doesnt (buildWebservices):
    <!-- Target that compiles the Module -->
         <target name="buildClasses">
         <mkdir dir="build/classes"/>
         <echo message="${ant.project.name}: ${ant.file}" />
         <javac destdir="build/classes" debug="true">
         <src path="src" />     
         <src path=".apt_src" />     
         <classpath refid="project.classpath" />
         </javac>
         </target>     
         <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" classpathref="project.classpath" />
         <target name="buildWebservices">
              <mkdir dir="build/webserviceclasses"/>               
              <jwsc                
                   srcdir="src"
                   verbose="yes"               
                   deprecation="on"               
                   classpathref="project.classpath"
                   source="1.5"
                   destdir="${ear.content.dir}">
                   <module contextPath="BVoIPServices" name="BVoIPServicesWeb" >
                        <jwsfileset srcdir="src/com/qwest/bvoipservices/webservices/" >
                             <include name="compression/Compression.java" />
                        </jwsfileset>
                   </module>               
              </jwsc>
         </target>

    teach5 wrote:
    I discovered tonight while on the phone that I get good volume from the right speaker and a whole lot less from the left.
    Hopefully, no sound vs. less.
    Phil

  • How to make jwsc of the hello_world service work?

    Experts there,
    I encountered a problem when tried to build the hello_world service, the output of ant task like this:
    $ ant build-service
    Buildfile: build.xml
    build-service:
    [echo] destdir is: output/helloWorldEar
    [jwsc] 1 JWS files will be processed.
    [jwsc] Processing JWS: S:\webservices\hello_world\src\examples\webservices\hello_world\HelloWorldImpl.java
    [jwsc] JWS: S:\webservices\hello_world\src\examples\webservices\hello_world\HelloWorldImpl.java Validated.
    [jwsc] Compiling 1 source file to S:\tmp\_qybxji0
    [AntUtil.deleteDir] Deleting directory S:\tmp\_qybxji0
    BUILD FAILED
    S:\webservices\hello_world\build.xml:43: Deployment descriptor: S:\tmp\_qybxji0\web.xml does not exist.
    Total time: 23 seconds
    Here is my build.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <project name="webservices-hello_world" default="all">
    <property name="wls.username" value="weblogic" />
    <property name="wls.password" value="weblogic" />
    <property name="wls.hostname" value="localhost" />
    <property name="wls.port" value="7001" />
    <property name="wls.server.name" value="webservices" />
    <property name="ear.deployed.name" value="helloWorldEar" />
    <property name="ear-dir" value="output/helloWorldEar" />
    <property name="tmp-dir" value="s:/tmp" />
    <property name="clientclass-dir" value="${example-output}/clientclasses"/>
    <property name="WEBLOGIC_SERVER_LIB" value="c:/bea/weblogic90/server/lib"/>
    <property name="JAVA_HOME" value="c:/JDKs/jdk1.5.0_06"/>
    <path id="project.class.path">
    <fileset dir="${WEBLOGIC_SERVER_LIB}">
    <include name="**/*.jar"/>
    </fileset>
    <fileset dir="${JAVA_HOME}">
    <include name="**/*.jar"/>
    </fileset>
    <pathelement path="${java.class.path}"/>
    <pathelement path="${clientclass-dir}"/>
    </path>
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath refid="project.class.path"/>
    </taskdef>
    <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask">
    <classpath refid="project.class.path"/>
    </taskdef>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    <classpath refid="project.class.path"/>
    </taskdef>
    <target name="build-service">
    <echo>destdir is: ${ear-dir}</echo>
    <jwsc
    tempdir="${tmp-dir}"
    srcdir="src"
    destdir="${ear-dir}"
    classpathref="project.class.path"
    keepGenerated="true" debug="on">
    <jws file="examples/webservices/hello_world/HelloWorldImpl.java"/>
    </jwsc>
    </target>
    <target name="clean" depends="undeploy">
    <delete dir="${example-output}"/>
    </target>
    <target name="deploy">
    <wldeploy action="deploy" name="${ear.deployed.name}"
    source="${ear-dir}" user="${wls.username}"
    adminurl="t3://${wls.hostname}:${wls.port}"
    targets="${wls.server.name}" />
    </target>
    <target name="undeploy">
    <wldeploy action="undeploy" name="${ear.deployed.name}"
    failonerror="false"
    user="${wls.username}" password="${wls.password}" verbose="true"
    adminurl="t3://${wls.hostname}:${wls.port}"
    targets="${wls.server.name}" />
    </target>
    <target name="client">
    <clientgen wsdl="http://${wls.hostname}:${wls.port}/HelloWorldImpl/HelloWorldImpl?WSDL"
    destDir="${clientclass-dir}"
    packageName="examples.webservices.hello_world.client"/>
    <javac
    srcdir="${clientclass-dir}" destdir="${clientclass-dir}"
    includes="**/*.java"/>
    <javac
    srcdir="src" destdir="${clientclass-dir}"
    includes="examples/webservices/hello_world/client/**/*.java"/>
    </target>
    <target name="run">
    <java classname="examples.webservices.hello_world.client.Main" fork="true" failonerror="true" >
    <classpath refid="client.class.path"/>
    <arg line="http://${wls.hostname}:${wls.port}/HelloWorldImpl/HelloWorldImpl"/>
    </java>
    </target>
    </project>
    I'm wondering why it put the web.xml to temporary directory then delete immediately, since it needs to use it later? Is this a weblogic bug?

    If I set explode="true" in jws, it gave me this error:
    java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.ApplicationBeanImpl
    What's going on?

  • JWSC parsing error

    I am migrating 8.1.6 webservices (jws files) to Weblogic 10. I ran the migration tool which added annotations and created .java files.
    The Eclipse builds work fine.. But I added a jwsc target in my ant build.xml to generate the webservice related files:
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" classpathref="project.classpath" />
    and I keep getting this error:
    [jwsc] com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in C:\bea10\user_projects\Sept23workspace\BVoIPServicesWeb\src\com\qwest\bvoipservices\webservices\compression\Compression.java at line 73. Most likely, an annotation is declared whose type has not been imported.
    I have googled and all the suggestions are to add all the weblogic jars to the build.xml - classpath - but that hasn't helped.
    What else could be causing it?
    WEBLOGIC_HOME=C:/bea10/wlserver_10.0
    weblogic.home=${WEBLOGIC_HOME}
    wls.home=${weblogic.home}/server
    Here is the classpath in my build.xml -
    <path id="project.classpath">
         <pathelement location="build/classes" />          
              <fileset dir="${app.lib.dir}">
              <include name="**/*.jar" />
              </fileset>
              <fileset dir="${wl.home}">
                   <include name="**/*.*" />
              </fileset>     
         <fileset dir="${wls.home}">
         <include name="**/*.jar" />
         </fileset>          
              <fileset dir="${wls.home}/lib">
              <include name="*.*" />
              </fileset>     
         <fileset dir="${ear.project.dir}/EarContent">
         <include name="*.jar" />
         </fileset>
         <fileset dir="${bea.home}/modules">
         <include name="*.jar" />
         </fileset>
              <fileset dir="${bea.home}/modules/features">
                   <include name="*.jar" />
              </fileset>
              <fileset dir="${bea.home}/modules/org.apache.ant_1.6.5/lib">
                   <include name="*.jar" />
              </fileset>          
              <fileset dir="${bea.home}/wlserver_10.0/beehive/apache-beehive-svn-snapshot/lib/controls">
              <include name="beehive-controls.jar" />
              </fileset>
              <fileset dir="${bea.home}/wlserver_10.0/beehive/apache-beehive-svn-snapshot/lib/controls">
              <include name="beehive-jdbc-control.jar" />
              </fileset>
              <fileset dir="${bea.home}/modules">
              <include name="javax.annotation_1.0.jar" />
              </fileset>
              <fileset dir="${bea.home}/modules">
              <include name="javax.ejb_3.0.jar" />
              </fileset>
              <fileset dir="${bea.home}/modules">
              <include name="javax.xml.soap_1.3.0.0.jar" />
              </fileset>
              <fileset dir="${bea.home}/wlserver_10.0/beehive/weblogic-beehive/lib/controls/runtime">
              <include name="weblogic-controls.jar" />
              </fileset>
              <fileset dir="${bea.home}/wlserver_10.0/beehive/weblogic-beehive/lib/controls">
              <include name="weblogic-webservice-control.jar" />
              </fileset>
              <fileset dir="${bea.home}/modules">
              <include name="xmlbeans-1.0.jar" />
              </fileset>
              <fileset dir="${java.home}/../lib" includes="tools.jar" />
         </path>
    Edited by: user12042334 on Oct 11, 2009 11:09 AM
    Edited by: user12042334 on Oct 11, 2009 1:58 PM

    Laura,
    You can ignore that error message, which results from a bug in the object dependencies routines. They scan all your source code where database objects might be referenced and create functions or procedures in your application's schema in order to produce a report based on the all_dependencies view. In the case of non-boolean expressions like yours, the logic should try to compile a function using an "l_value := <condition>" construct if compilation fails using the "if <condition> then ..." construct. But it doesn't so it's a bug.
    Scott

  • Jwsc Error - Only HTTP ports are supported for JAX-WS

    Hi
    I am trying to create a Webservice from wsdl. I have been able to generate java files and jar file with wsdlc ant task.
    However when i try jwsc I get follwoing error
    [jwsc] [ERROR] - Only HTTP ports are supported for JAX-WS.
    <----- follwowing task for generating java files --->
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask"/>     
    <target name="generate-from-wsdl">
              <wsdlc
                   srcWsdl="wsdl_files/UserPrefWebService.wsdl"
                   destJwsDir="web/web-inf/lib"
                   destImplDir="src"
                   packageName="com.ws.userpref"
                   type="JAXWS"/>
         </target>
    <----- follwowing task for generating class files ----THIS IS FAILING --->
         <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" />      
         <target name="build-service">
              <jwsc srcdir="src" destdir="ear">
                   <jws file="com/ws/userpref/UserPrefWebServiceImpl.java"
                        compiledWsdl="web/web-inf/lib/UserPrefWebService_wsdl.jar"
                        type="JAXWS"/>
              </jwsc>
         </target>
    <----- This is the Error --->
    C:\Development\CFCDemoWorkspace\UserPreferencesServer>ant build-service
    Buildfile: build.xml
    build-service:
    [jwsc] JWS: processing module /com/ws/userpref/UserPrefWebServiceImpl
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module /com/ws/userpref/UserPrefWebS
    erviceImpl
    [jwsc] C:\Development\CFCDemoWorkspace\UserPreferencesServer\src\com\ws\use
    rpref\UserPrefWebServiceImpl.java 18:8
    [jwsc] [ERROR] - Only HTTP ports are supported for JAX-WS.
    [AntUtil.deleteDir] Deleting directory C:\DOCUME~1\138904\LOCALS~1\Temp\_3os716
    BUILD FAILED
    C:\Development\CFCDemoWorkspace\UserPreferencesServer\build.xml:24: weblogic.wse
    e.tools.WsBuildException: JWS Validation failed.
    Total time: 10 seconds
    Does any one has any input on this error?
    Thanks
    Srikant

    Thanks David,
    Below is the wsdl
    <s0:message name="ws_getUserPreference">
    <s0:part element="s1:ws_getUserPreference" name="parameters"/>
    </s0:message>
    <s0:message name="ws_getUserPreferenceResponse">
    <s0:part element="s1:ws_getUserPreferenceResponse" name="parameters"/>
    </s0:message>
    <s0:portType name="UserPrefWebServicePort">
    <s0:operation name="ws_getUserPreference" parameterOrder="parameters">
    <s0:input message="s1:ws_getUserPreference"/>
    <s0:output message="s1:ws_getUserPreferenceResponse"/>
    </s0:operation>
    </s0:portType>
    <s0:binding name="UserPrefWebServiceSoapBinding" type="s1:UserPrefWebServicePort">
    <s2:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <s0:operation name="ws_getUserPreference">
    <s2:operation soapAction="" style="document"/>
    <s0:input>
    <s2:body parts="parameters" use="literal"/>
    </s0:input>
    <s0:output>
    <s2:body parts="parameters" use="literal"/>
    </s0:output>
    </s0:operation>
    </s0:binding>
    <s0:service name="UserPrefWebService">
    <s0:port binding="s1:UserPrefWebServiceSoapBinding" name="UserPrefWebServicePortSoapPort">
    <s2:address location="https://localhost:7001/UserPrefService/UserPref"/>
    </s0:port>
    </s0:service>
    </s0:definitions>
    do i need to add <wlhttptransport/> in jws during the buid?

  • Include jar in the war generated by jwsc

    Hello,
    How can i add jar's in the war archive generated by jwsc ?
    Regards,
    Fabrice

    Weblogic 9.2 does not support zip need to add sepate task like below
    <project name="webservices-complex" default="build-service">
    <path id="dependencyfinder">
    <pathelement location="C:/bea/weblogic92/server/lib/weblogic.jar"/>
    </path>
         <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
              <classpath refid="dependencyfinder"/>
         </taskdef>
         <target name="build-service">
              <jwsc srcdir="src"
                   destdir="." keepGenerated="true" verbose="on" debug="true"
                   debuglevel="lines,vars,source"
                   listfiles="true" classpathref="dependencyfinder">
                   <classpath>
                   <pathelement path="${java.class.path}" />
                   <pathelement path="c:/CustInfo.jar" />
                   </classpath>               
                   <jws file="ServiceConsumer.java" >
                   </jws>
              </jwsc>
              <zip destfile="ServiceConsumer.war" update="true">
                   <zipfileset dir="src" prefix="docs/user-guide"/>
                   <zipfileset dir="build" prefix="build"/>
                   <zipfileset dir="Webcontent/WEB-INF/lib" includes="CustInfo.jar" fullpath="WEB-INF/lib/CustInfo.jar"/>
              </zip>
         </target>
    </project>

  • Use of JAX RPC Weblogic Callback Capability

    Just walking through the Callback example in the bea documentation at:
    http://edocs.bea.com/wls/docs100/webserv_adv/callback.html#wp259721
    But I can't seem to get the example to build properly, anyone else have troubles with this?
    Anyone else using callbacks at all?
    Code trying to build:
    = = = = = = = = = = = = = = = = = =
    package jsip.jaxrpc.services;
    import weblogic.jws.WLHttpTransport;
    import weblogic.jws.*;
    import weblogic.wsee.jws.CallbackInterface;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService(name="CallbackPortType",
    serviceName="WhereIsWaldo",
    targetNamespace="http://examples.org/")
    @WLHttpTransport(contextPath="callback",
    serviceUri="WhereIsWaldo",
    portName="WhereIsWaldo")
    public class JaxrpcAsyncReqRes
    @Callback
    CallbackInterface callback;
    @WebMethod
    public void callbackOperation (String message)
    callback.callbackOperation (message);
    Error produced:
    = = = = = = = = = = == = =
    [jwsc] [ERROR] - weblogic.jws.CallbackService Annotation must be present on weblogic.wsee.jws.CallbackInterface.
    [jwsc] [ERROR] - The annotation weblogic.jws.Exclude is not allowed on callback interface weblogic.wsee.jws.CallbackInterface.
    Error message when building:

    Hi Akhil,
    This JAX-RPC 1.0 implementation, is in the WLS 7.0 product itself. Refer to the
    following link for details:
    http://edocs.bea.com/wls/docs70/webserv/index.html
    Regards,
    Mike Wooten
    "Akhil Nagpal" <[email protected]> wrote:
    >
    HI,
    where i can find weblogic implementation of jax-rpc...please help.
    Thanks in advance
    Akhil Nagpal

  • Taskdef class weblogic.wsee.tools.anttasks.JwscTask cannot be found

    Hi,
    I use ant to deploy adf web applications. However, I get errors:
    --------------error----------------
    Buildfile: E:\SOAworkspace\ANT\Project1\build2.xml
    [echo] Classpath: D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin\weblogic.jar
    BUILD FAILED
    E:\SOAworkspace\ANT\Project1\build2.xml:14: taskdef class weblogic.wsee.tools.anttasks.JwscTask cannot be found
    Total time: 0 seconds
    --------------ant------------------
    <project default="all">
    <property name="weblogic.jar.classpath" value="D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin\weblogic.jar"/>
    <echo>Classpath: ${weblogic.jar.classpath}</echo>
    <target name="all" depends="clean,build-service,deploy" />
    <target name="clean">
    <delete dir="output" />
    </target>
    <path id="my.path">
    <pathelement path="D:\weblogicSA2011\jdk160_18\lib\tools.jar"/>
    <pathelement path="D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin\weblogic.jar"/>
    </path>
    <taskdef name="jwsc"
    classname="weblogic.wsee.tools.anttasks.JwscTask" classpath="D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin\weblogic.jar" />
    <target name="build-service">
    <jwsc srcdir="HelloWorld" destdir="c:\helloWorldEar">
    <jws file="ping.java" type="JAXWS"/>
    </jwsc>
    </target>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="D:\weblogicSA2011\wlserver_10.3\server\lib\weblogic.jar"/>
    <target name="deploy">
    <wldeploy action="deploy"
    name="otnapp_application1.ear"
    source="E:\SOAworkspace\otnapp\deploy\" user="weblogic"
    password="welcome1"
    adminurl="t3://localhost:7001"
    targets="wl_server"/>
    </target>
    </project>

    Those taskdefs are in the %WL_HOME%/server/lib/weblogic.jar file. Are you sure that you have that file in a <path> element of the Ant build.xml script (or in the CLASSPATH environment variable that Ant is using)?

  • Fail to create web service with user-defined data type using jwsc Ant task!

    Hello every body!
    I used JAXWS to create WSDL from a jws file.
    This is my jws:
    package ws;
    import javax.jws.WebService;
    import javax.jws.WebMethod;
    import ws.MyDataType;
    *@WebService*
    *public class MyWebService {*
    public MyWebService()
    *@WebMethod*
    public MyDataType MyWebMethod(MyDataType mdt)
    *// mdt.setS("I got it!");*
    return mdt;
    and this is my data type:
    package ws;
    *public class MyDataType {*
    String s;
    public MyDataType()
    *public String getS() {*
    return s;
    *public void setS(String s) {*
    this.s = s;
    and this is my Ant build.xml
    *<project default="all">*
    *<property name="weblogic.jar.classpath" value="D:/Projects/bea103/wlserver_10.3/server/lib"/>*
    *<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">*
    *<classpath>*
    *<path id="weblogic.classpath">*
    *<pathelement path="WEBLOGIC_HOME"/>*
    *<fileset dir="${weblogic.jar.classpath}">*
    *<include name="weblogic.jar"/>*
    *</fileset>*
    *</path>*
    *</classpath>*
    *</taskdef>*
    *<target name="all" depends="clean,build-service"/>*
    *<target name="clean">*
    *<delete dir="output"/>*
    *</target>*
    *<target name="build-service">*
    *<!--add jwsc and related tasks here -->*
    *<jwsc srcdir="" destdir="wsoutput">*
    *<jws file="MyWebService.java" type="JAXWS"/>*
    *</jwsc>*
    *</target>*
    *<!--<target name="deploy"> --><!--add wldeploy task here --><!-- </target>-->*
    *</project>*
    I run the Ant task but I get this error:
    Buildfile: build.xml
    clean:
    build-service:
    [jwsc] JWS: processing module /MyWebService
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module /MyWebService
    *[jwsc] [JAM] Warning: failed to resolve class MyDataType*
    [jwsc] JWS: C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\MyWebService.java Validated.
    [jwsc] Processing 1 JAX-WS web services...
    *[jwsc] error: Could not get TypeDeclaration for: MyDataType in apt round: 1*..........
    BUILD FAILED
    C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\build.xml:
    19: weblogic.wsee.tools.WsBuildException: Error processing JAX-WS web services
    Please help me to solve this issue.
    Thank you,
    Mojir

    Thank u very much Jay SenSharma this was helpful
    and thank u sandeep_singh this is the answer,
    I find another answer too :
    adding my class files to the path remove the error:
    <project default="all">
    <property name="weblogic.jar.classpath" value="D:/Projects/bea103/wlserver_10.3/server/lib"/>
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath>
    <path id="my.path">
    <pathelement path="D:/Projects/bea103/jdk160_05/lib/tools.jar"/>
    <pathelement path="D:/Projects/bea103/wlserver_10.3/server/lib/weblogic.jar"/>
    *<pathelement path="D:/Projects/LifeInsurance Project Original/BusinessModule/classes/"/>* adding this line solved my problem.
    <pathelement path="${java.class.path}"/>
    </path>
    <path id="weblogic.classpath">
    <pathelement path="WEBLOGIC_HOME"/>
    <fileset dir="${weblogic.jar.classpath}">
    <include name="weblogic.jar"/>
    </fileset>
    </path>
    </classpath>
    </taskdef>
    <target name="all" depends="clean,build-service"/>
    <target name="clean">
    <delete dir="output"/>
    </target>
    <target name="build-service">
    <jwsc sourcepath="mytype" classpathref="my.path" debug="true" srcdir="" destdir="wsoutput">
    <jws file="NegotiationService.java" generatewsdl="true" type="JAXWS"/>
    </jwsc>
    </target>
    </project>
    Thank u very much,
    Mojir

  • JWSC Ant task with JAXWS web services failed

    Hi,
    I do not manage to generate my JAXWS web services using jwsc ant task. It worked when my web services were JAX-RPC web services but now I have an error.
    In my build process, I generate first the web service artifacts from wsdl files using wsdlc :
    <path id="bea-ant-task.classpath">
      <pathelement location="${java.home}/../lib/tools.jar" />
      <fileset dir="${bea.home.dir}/wlserver_10.0/server/lib"/>
      <fileset dir="${bea.home.dir}/modules"/>
    </path>
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask">
      <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-artifacts">
       <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlarmWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
       <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlertWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    </target>Then I tried to generate my web services with jwsc :
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
      <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-webservices">
      <jwsc srcdir="src" destdir="${ear.dir}" keepGenerated="yes" classpathref="compile.classpath" >
           <module contextpath="myappli" name="webservices.jar" explode="true">
          <jws type="JAXWS" file="${myappli.path}/alarm/jwsendpoint/AlarmBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlarmWS_wsdl.jar"/>
          <jws type="JAXWS" file="${myappli.path}/alert/jwsendpoint/AlertBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlertWS_wsdl.jar"/>
        </module>
      </jwsc>
    </target>This task generate the following error :
    generate-webservices:
         [jwsc] JWS: processing module webservices.jar
         [jwsc] Parsing source files
         [jwsc] Parsing source files
         [jwsc] 2 JWS files being processed for module webservices.jar
         [jwsc] JWS: C:\projects\appli\main\src\net\aze\appli\services\alarm\jwsendpoint\AlarmBean.java Validated.
         [jwsc] JWS: C:\projects\appli\main\src\net\aze\appli\services\alert\jwsendpoint\AlertBean.java Validated.
         [jwsc] Processing 2 JAX-WS web services...
         [jwsc] warning: Annotation types without processors: [javax.ejb.Stateless, javax.annotation.Resource, javax.annotation.security.RolesAllowed]
         [jwsc] C:\DOCUME~1\wg\LOCALS~1\Temp\_jg4rtr3\net\aze\appli\jws\alert\PTAlert.java:33: The endpoint interface net.aze.appli.jws.alarm.PTAlarm does not match the interface net.aze.appli.jws.alert.PTAlert.
         [jwsc] public interface PTAlert {
         [jwsc]        ^
         [jwsc] 1 error
         [jwsc] 1 warning
         [jwsc] Command invoked: apt C:\apps\bea10\JROCKI~1\jre\bin\java.exe -classpath C:\projects\appli\lib\common\caplib.jar;C:\pr......[pre]
    C:\projects\aze\main\bea-build.xml:15: The following error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:46: The following error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:110: weblogic.wsee.tools.WsBuildException: Error processing JAX-WS web servicesHere is my bean implementation :
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName = "applids", type = DataSource.class)
    @WebService(endpointInterface = "net.aze.appli.jws.alarm.PTAlarm")
    @HandlerChain(file = "../../../handler/alarmHandlerChain.xml")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlarmBean implements PTAlarm {
        @Resource
        private SessionContext sessionContext;
        public AlarmCreateOut persist(AlarmCreateIn in) {
            return AlarmDelegate.getInstance(sessionContext).persist(in);
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName = "applids", type = DataSource.class)
    @WebService(endpointInterface = "net.aze.appli.jws.alert.PTAlert")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlertBean implements PTAlert {
        @Resource
        private SessionContext sessionContext;
        public AlertCreateOut persist(AlertCreateIn in) {
            return AlertDelegate.getInstance(sessionContext).persist(in);
    }Jwsc seems to mix the interfaces... If I try to generate only one bean in jwsc it works...
    Any ideas? I can't find the solution, could it be a bug?
    Thanks for your help.
    Edited by will_mad at 09/11/2007 1:56 AM

    Hi,
    I do not manage to generate my JAXWS web services
    using jwsc ant task. It worked when my web services
    were JAX-RPC web services but now I have an error.
    In my build process, I generate first the web service
    artifacts from wsdl files using wsdlc :
    <path id="bea-ant-task.classpath">
    <pathelement location="${java.home}/../lib/tools.jar" />
    <fileset dir="${bea.home.dir}/wlserver_10.0/server/lib"/>
    <fileset dir="${bea.home.dir}/modules"/>
    </path>
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-artifacts">
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlarmWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlertWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    </target>Then I tried to generate my web services with jwsc :
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-webservices">
    <jwsc srcdir="src" destdir="${ear.dir}" keepGenerated="yes" classpathref="compile.classpath" >
    <module contextpath="myappli" name="webservices.jar" explode="true">
    <jws type="JAXWS" file="${myappli.path}/alarm/jwsendpoint/AlarmBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlarmWS_wsdl.jar"/>
    <jws type="JAXWS" file="${myappli.path}/alert/jwsendpoint/AlertBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlertWS_wsdl.jar"/>
    </module>
    </jwsc>
    </target>This task generate the following error :
    generate-webservices:
    [jwsc] JWS: processing module webservices.jar
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 2 JWS files being processed for module
    odule webservices.jar
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\alar
    m\jwsendpoint\AlarmBean.java Validated.
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\aler
    t\jwsendpoint\AlertBean.java Validated.
    [jwsc] Processing 2 JAX-WS web services...
    [jwsc] warning: Annotation types without
    thout processors: [javax.ejb.Stateless,
    javax.annotation.Resource,
    javax.annotation.security.RolesAllowed]
    [jwsc]
    jwsc]
    C:\DOCUME~1\wg\LOCALS~1\Temp\_jg4rtr3\net\aze\appli\jw
    s\alert\PTAlert.java:33: The endpoint interface
    net.aze.appli.jws.alarm.PTAlarm does not match the
    interface net.aze.appli.jws.alert.PTAlert.
    [jwsc] public interface PTAlert {
    [jwsc]        ^
    [jwsc] 1 error
    [jwsc] 1 warning
    [jwsc] Command invoked: apt
    : apt C:\apps\bea10\JROCKI~1\jre\bin\java.exe
    -classpath
    C:\projects\appli\lib\common\caplib.jar;C:\pr......[pr
    e]
    C:\projects\aze\main\bea-build.xml:15: The following
    error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    46: The following error occurred while executing this
    line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    110: weblogic.wsee.tools.WsBuildException: Error
    processing JAX-WS web servicesHere is my bean implementation :
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alarm.PTAlarm")
    @HandlerChain(file =
    "../../../handler/alarmHandlerChain.xml")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlarmBean implements PTAlarm {
    @Resource
    private SessionContext sessionContext;
    public AlarmCreateOut persist(AlarmCreateIn in)
    in) {
    return
    return
    n
    AlarmDelegate.getInstance(sessionContext).persist(in);
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alert.PTAlert")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlertBean implements PTAlert {
    @Resource
    private SessionContext sessionContext;
    public AlertCreateOut persist(AlertCreateIn in)
    in) {
    return
    return
    n
    AlertDelegate.getInstance(sessionContext).persist(in);
    }Jwsc seems to mix the interfaces... If I try to
    generate only one bean in jwsc it works...
    Any ideas? I can't find the solution, could it be a
    bug?
    Thanks for your help.
    Edited by will_mad at 09/11/2007 1:56 AM
    Hi,
    I do not manage to generate my JAXWS web services
    using jwsc ant task. It worked when my web services
    were JAX-RPC web services but now I have an error.
    In my build process, I generate first the web service
    artifacts from wsdl files using wsdlc :
    <path id="bea-ant-task.classpath">
    <pathelement location="${java.home}/../lib/tools.jar" />
    <fileset dir="${bea.home.dir}/wlserver_10.0/server/lib"/>
    <fileset dir="${bea.home.dir}/modules"/>
    </path>
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-artifacts">
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlarmWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlertWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    </target>Then I tried to generate my web services with jwsc :
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-webservices">
    <jwsc srcdir="src" destdir="${ear.dir}" keepGenerated="yes" classpathref="compile.classpath" >
    <module contextpath="myappli" name="webservices.jar" explode="true">
    <jws type="JAXWS" file="${myappli.path}/alarm/jwsendpoint/AlarmBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlarmWS_wsdl.jar"/>
    <jws type="JAXWS" file="${myappli.path}/alert/jwsendpoint/AlertBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlertWS_wsdl.jar"/>
    </module>
    </jwsc>
    </target>This task generate the following error :
    generate-webservices:
    [jwsc] JWS: processing module webservices.jar
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 2 JWS files being processed for module
    odule webservices.jar
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\alar
    m\jwsendpoint\AlarmBean.java Validated.
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\aler
    t\jwsendpoint\AlertBean.java Validated.
    [jwsc] Processing 2 JAX-WS web services...
    [jwsc] warning: Annotation types without
    thout processors: [javax.ejb.Stateless,
    javax.annotation.Resource,
    javax.annotation.security.RolesAllowed]
    [jwsc]
    jwsc]
    C:\DOCUME~1\wg\LOCALS~1\Temp\_jg4rtr3\net\aze\appli\jw
    s\alert\PTAlert.java:33: The endpoint interface
    net.aze.appli.jws.alarm.PTAlarm does not match the
    interface net.aze.appli.jws.alert.PTAlert.
    [jwsc] public interface PTAlert {
    [jwsc]        ^
    [jwsc] 1 error
    [jwsc] 1 warning
    [jwsc] Command invoked: apt
    : apt C:\apps\bea10\JROCKI~1\jre\bin\java.exe
    -classpath
    C:\projects\appli\lib\common\caplib.jar;C:\pr......[pr
    e]
    C:\projects\aze\main\bea-build.xml:15: The following
    error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    46: The following error occurred while executing this
    line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    110: weblogic.wsee.tools.WsBuildException: Error
    processing JAX-WS web servicesHere is my bean implementation :
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alarm.PTAlarm")
    @HandlerChain(file =
    "../../../handler/alarmHandlerChain.xml")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlarmBean implements PTAlarm {
    @Resource
    private SessionContext sessionContext;
    public AlarmCreateOut persist(AlarmCreateIn in)
    in) {
    return
    return
    n
    AlarmDelegate.getInstance(sessionContext).persist(in);
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alert.PTAlert")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlertBean implements PTAlert {
    @Resource
    private SessionContext sessionContext;
    public AlertCreateOut persist(AlertCreateIn in)
    in) {
    return
    return
    n
    AlertDelegate.getInstance(sessionContext).persist(in);
    }Jwsc seems to mix the interfaces... If I try to
    generate only one bean in jwsc it works...
    Any ideas? I can't find the solution, could it be a
    bug?
    Thanks for your help.
    Edited by will_mad at 09/11/2007 1:56 AMI too am getting similar error. If you hit a solution, do let me know :)

  • Help with jwsc !!

    Hi all,
    I would like to use jwsc ant task but I want to avoid executing setDomainEnv.cmd first Is this possible?
    I tried to include all required libraries in the classpath of the jwsc and taskdef name="jwsc" but this didn't work.
    Find below the build.xml file that I'm using.
    Keep in mind that I'm trying to build the simple HelloWorld Web Service provided by bea at: http://edocs.bea.com/wls/docs91/webserv/use_cases.html#221901
    Thanks in advance.
    build.xml:
    <project name="webservices-hello_world" default="all">
    <path id="main-classpath">
    <fileset dir="E:/bea9/weblogic91/server/lib">
    <include name="**/*.jar"/>
    </fileset>
              <fileset dir="E:/bea9/jdk150_04/lib/">
                   <include name="pbclient51.jar"/>
    </fileset>
              <fileset dir="E:/bea9/weblogic91/common/eval/pointbase/lib">
                   <include name="pbclient51.jar"/>
    </fileset>
         </path>
         <taskdef name="jwsc"
              classname="weblogic.wsee.tools.anttasks.JwscTask"
              classpathref="main-classpath"
              />
         <target name="build-service">
              <jwsc
                   srcdir="src"
                   destdir="output/helloWorldEar"
                   classpathref="main-classpath">
                   <jws file="examples/webservices/hello_world/HelloWorldImpl.java" />
              </jwsc>
         </target>
    </project>

    Is wsdlc supposed to generate a Jar file with the source code (*.java files) or with the classes (*.class files) inside it?
    I am using wsdlc for the TemperatureService example and it creates a TemperatureService_wsdl.jar file but the jar file only contains the TemperaturePortType.java file inside it?
    Because of this, jwsc which follows fails to find the TemperatureService class.

  • JWSC error: ClassCastException SoapArrayType to ByNameBean

    Hi,
    The jwsc throws weblogic.wsee.tools.WsBuildException: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    The full trace is pasted at bottom.
    ================================================================
    Here is the method defintion in the class WSConfiguration. The returned parameter type is ConfigurationGetListRet, it contains Configuration[] array.
    * Outer getList method that takes a filter parameter.
    @WebMethod(operationName="Configuration_getList")
    @WebResult(name="Configuration_getList_Ret",
    targetNamespace="http://ws.cm.ml.com")
    public ConfigurationGetListRet getList(
    @WebParam(name="Configuration_getList_int", targetNamespace="http://ws.cm.ml.com")
    int sessionKey,
    @WebParam(name="Configuration_getList_filter", targetNamespace="http://ws.cm.ml.com")
    ConfigurationFilter filter){
    ConfigurationGetListRet ret = null;
    try{
    InitialContext ic = new InitialContext();
    ConfigurationHome configurationHome =
    (ConfigurationHome) ic.lookup("java:comp/env/ejb/ConfigurationReference");
    ConfigurationObject configurationService = configurationHome.create();
    ret = configurationService.getList(sessionKey, filter);
    }catch(CMException cmex){
    ret = new CMReturnType(new CMReturnStatus(cmex), null);
    } catch (Exception e) {
    ret = new CMReturnType( new CMReturnStatus(new CMException(-1, "Exception in calling EJB: Configuration.getList", e)), null );
    return ret;
    ========================================================================
    /build/cashMgr/dev/sye/jcash/src/jcashws/ws.xml:26: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: /build/cashMgr/dev/sye/jcash/src/jcash/src/com/ml/cm/ws/WSConfiguration.java
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:234)
    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.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: /build/cashMgr/dev/sye/jcash/src/jcash/src/com/ml/cm/ws/WSConfiguration.java
    at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:526)
    at weblogic.wsee.tools.jws.build.JwsCompiler.compile(JwsCompiler.java:483)
    at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:376)
    at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:255)
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:227)
    ... 12 more
    Caused by: weblogic.wsee.tools.WsBuildException: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCWebServiceInfo.createBindings(JAXRPCWebServiceInfo.java:227)
    at weblogic.wsee.tools.jws.wsdl.WsdlBuilder.processImpl(WsdlBuilder.java:43)
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCProcessor.process(JAXRPCProcessor.java:27)
    at weblogic.wsee.tools.jws.process.CompositeProcessor.process(CompositeProcessor.java:47)
    at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:522)
    ... 16 more
    Caused by: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    at com.bea.staxb.buildtime.Java2Schema.createBindingTypeFor(Java2Schema.java:897)
    at com.bea.staxb.buildtime.Java2Schema.findOrCreateBindingTypeFor(Java2Schema.java:735)
    at com.bea.staxb.buildtime.Java2Schema$1.findOrCreateBindingTypeFor(Java2Schema.java:173)
    at com.bea.staxb.buildtime.internal.facade.BtsPropgenFacade.getQnameFor(BtsPropgenFacade.java:292)
    at com.bea.staxb.buildtime.internal.facade.BtsPropgenFacade.setType(BtsPropgenFacade.java:199)
    at com.bea.staxb.buildtime.Java2Schema.createPropgenFacade(Java2Schema.java:2005)
    at com.bea.staxb.buildtime.Java2Schema.processProperty(Java2Schema.java:1840)
    at com.bea.staxb.buildtime.Java2Schema.bindProperties(Java2Schema.java:1441)
    at com.bea.staxb.buildtime.Java2Schema.createBindingTypeFor(Java2Schema.java:920)
    at com.bea.staxb.buildtime.Java2Schema.findOrCreateBindingTypeFor(Java2Schema.java:735)
    at com.bea.staxb.buildtime.Java2Schema.internalBind(Java2Schema.java:485)
    at com.bea.staxb.buildtime.BindingCompiler.bind(BindingCompiler.java:125)
    at com.bea.staxb.buildtime.BindingCompiler.bindAsExplodedTylar(BindingCompiler.java:161)
    at weblogic.wsee.bind.buildtime.internal.SoapAwareJava2Schema.bindAsExplodedTylar(SoapAwareJava2Schema.java:1412)
    at weblogic.wsee.bind.buildtime.internal.TylarJ2SBindingsBuilderImpl.createBuildtimeBindings(TylarJ2SBindingsBuilderImpl.java:216)
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCWebServiceInfo.createBindings(JAXRPCWebServiceInfo.java:223)
    ... 20 more
    --- Nested Exception ---
    weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: /build/cashMgr/dev/sye/jcash/src/jcash/src/com/ml/cm/ws/WSConfiguration.java
    at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:526)
    at weblogic.wsee.tools.jws.build.JwsCompiler.compile(JwsCompiler.java:483)
    at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:376)
    at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:255)
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:227)
    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.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: weblogic.wsee.tools.WsBuildException: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCWebServiceInfo.createBindings(JAXRPCWebServiceInfo.java:227)
    at weblogic.wsee.tools.jws.wsdl.WsdlBuilder.processImpl(WsdlBuilder.java:43)
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCProcessor.process(JAXRPCProcessor.java:27)
    at weblogic.wsee.tools.jws.process.CompositeProcessor.process(CompositeProcessor.java:47)
    at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:522)
    ... 16 more
    Caused by: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    at com.bea.staxb.buildtime.Java2Schema.createBindingTypeFor(Java2Schema.java:897)
    at com.bea.staxb.buildtime.Java2Schema.findOrCreateBindingTypeFor(Java2Schema.java:735)
    at com.bea.staxb.buildtime.Java2Schema$1.findOrCreateBindingTypeFor(Java2Schema.java:173)
    at com.bea.staxb.buildtime.internal.facade.BtsPropgenFacade.getQnameFor(BtsPropgenFacade.java:292)
    at com.bea.staxb.buildtime.internal.facade.BtsPropgenFacade.setType(BtsPropgenFacade.java:199)
    at com.bea.staxb.buildtime.Java2Schema.createPropgenFacade(Java2Schema.java:2005)
    at com.bea.staxb.buildtime.Java2Schema.processProperty(Java2Schema.java:1840)
    at com.bea.staxb.buildtime.Java2Schema.bindProperties(Java2Schema.java:1441)
    at com.bea.staxb.buildtime.Java2Schema.createBindingTypeFor(Java2Schema.java:920)
    at com.bea.staxb.buildtime.Java2Schema.findOrCreateBindingTypeFor(Java2Schema.java:735)
    at com.bea.staxb.buildtime.Java2Schema.internalBind(Java2Schema.java:485)
    at com.bea.staxb.buildtime.BindingCompiler.bind(BindingCompiler.java:125)
    at com.bea.staxb.buildtime.BindingCompiler.bindAsExplodedTylar(BindingCompiler.java:161)
    at weblogic.wsee.bind.buildtime.internal.SoapAwareJava2Schema.bindAsExplodedTylar(SoapAwareJava2Schema.java:1412)
    at weblogic.wsee.bind.buildtime.internal.TylarJ2SBindingsBuilderImpl.createBuildtimeBindings(TylarJ2SBindingsBuilderImpl.java:216)
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCWebServiceInfo.createBindings(JAXRPCWebServiceInfo.java:223)
    ... 20 more

    Hi,
    The jwsc throws weblogic.wsee.tools.WsBuildException: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    The full trace is pasted at bottom.
    ================================================================
    Here is the method defintion in the class WSConfiguration. The returned parameter type is ConfigurationGetListRet, it contains Configuration[] array.
    * Outer getList method that takes a filter parameter.
    @WebMethod(operationName="Configuration_getList")
    @WebResult(name="Configuration_getList_Ret",
    targetNamespace="http://ws.cm.ml.com")
    public ConfigurationGetListRet getList(
    @WebParam(name="Configuration_getList_int", targetNamespace="http://ws.cm.ml.com")
    int sessionKey,
    @WebParam(name="Configuration_getList_filter", targetNamespace="http://ws.cm.ml.com")
    ConfigurationFilter filter){
    ConfigurationGetListRet ret = null;
    try{
    InitialContext ic = new InitialContext();
    ConfigurationHome configurationHome =
    (ConfigurationHome) ic.lookup("java:comp/env/ejb/ConfigurationReference");
    ConfigurationObject configurationService = configurationHome.create();
    ret = configurationService.getList(sessionKey, filter);
    }catch(CMException cmex){
    ret = new CMReturnType(new CMReturnStatus(cmex), null);
    } catch (Exception e) {
    ret = new CMReturnType( new CMReturnStatus(new CMException(-1, "Exception in calling EJB: Configuration.getList", e)), null );
    return ret;
    ========================================================================
    /build/cashMgr/dev/sye/jcash/src/jcashws/ws.xml:26: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: /build/cashMgr/dev/sye/jcash/src/jcash/src/com/ml/cm/ws/WSConfiguration.java
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:234)
    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.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: /build/cashMgr/dev/sye/jcash/src/jcash/src/com/ml/cm/ws/WSConfiguration.java
    at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:526)
    at weblogic.wsee.tools.jws.build.JwsCompiler.compile(JwsCompiler.java:483)
    at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:376)
    at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:255)
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:227)
    ... 12 more
    Caused by: weblogic.wsee.tools.WsBuildException: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCWebServiceInfo.createBindings(JAXRPCWebServiceInfo.java:227)
    at weblogic.wsee.tools.jws.wsdl.WsdlBuilder.processImpl(WsdlBuilder.java:43)
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCProcessor.process(JAXRPCProcessor.java:27)
    at weblogic.wsee.tools.jws.process.CompositeProcessor.process(CompositeProcessor.java:47)
    at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:522)
    ... 16 more
    Caused by: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    at com.bea.staxb.buildtime.Java2Schema.createBindingTypeFor(Java2Schema.java:897)
    at com.bea.staxb.buildtime.Java2Schema.findOrCreateBindingTypeFor(Java2Schema.java:735)
    at com.bea.staxb.buildtime.Java2Schema$1.findOrCreateBindingTypeFor(Java2Schema.java:173)
    at com.bea.staxb.buildtime.internal.facade.BtsPropgenFacade.getQnameFor(BtsPropgenFacade.java:292)
    at com.bea.staxb.buildtime.internal.facade.BtsPropgenFacade.setType(BtsPropgenFacade.java:199)
    at com.bea.staxb.buildtime.Java2Schema.createPropgenFacade(Java2Schema.java:2005)
    at com.bea.staxb.buildtime.Java2Schema.processProperty(Java2Schema.java:1840)
    at com.bea.staxb.buildtime.Java2Schema.bindProperties(Java2Schema.java:1441)
    at com.bea.staxb.buildtime.Java2Schema.createBindingTypeFor(Java2Schema.java:920)
    at com.bea.staxb.buildtime.Java2Schema.findOrCreateBindingTypeFor(Java2Schema.java:735)
    at com.bea.staxb.buildtime.Java2Schema.internalBind(Java2Schema.java:485)
    at com.bea.staxb.buildtime.BindingCompiler.bind(BindingCompiler.java:125)
    at com.bea.staxb.buildtime.BindingCompiler.bindAsExplodedTylar(BindingCompiler.java:161)
    at weblogic.wsee.bind.buildtime.internal.SoapAwareJava2Schema.bindAsExplodedTylar(SoapAwareJava2Schema.java:1412)
    at weblogic.wsee.bind.buildtime.internal.TylarJ2SBindingsBuilderImpl.createBuildtimeBindings(TylarJ2SBindingsBuilderImpl.java:216)
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCWebServiceInfo.createBindings(JAXRPCWebServiceInfo.java:223)
    ... 20 more
    --- Nested Exception ---
    weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: /build/cashMgr/dev/sye/jcash/src/jcash/src/com/ml/cm/ws/WSConfiguration.java
    at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:526)
    at weblogic.wsee.tools.jws.build.JwsCompiler.compile(JwsCompiler.java:483)
    at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:376)
    at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:255)
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:227)
    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.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: weblogic.wsee.tools.WsBuildException: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCWebServiceInfo.createBindings(JAXRPCWebServiceInfo.java:227)
    at weblogic.wsee.tools.jws.wsdl.WsdlBuilder.processImpl(WsdlBuilder.java:43)
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCProcessor.process(JAXRPCProcessor.java:27)
    at weblogic.wsee.tools.jws.process.CompositeProcessor.process(CompositeProcessor.java:47)
    at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:522)
    ... 16 more
    Caused by: java.lang.ClassCastException: com.bea.staxb.buildtime.internal.bts.SoapArrayType cannot be cast to com.bea.staxb.buildtime.internal.bts.ByNameBean
    at com.bea.staxb.buildtime.Java2Schema.createBindingTypeFor(Java2Schema.java:897)
    at com.bea.staxb.buildtime.Java2Schema.findOrCreateBindingTypeFor(Java2Schema.java:735)
    at com.bea.staxb.buildtime.Java2Schema$1.findOrCreateBindingTypeFor(Java2Schema.java:173)
    at com.bea.staxb.buildtime.internal.facade.BtsPropgenFacade.getQnameFor(BtsPropgenFacade.java:292)
    at com.bea.staxb.buildtime.internal.facade.BtsPropgenFacade.setType(BtsPropgenFacade.java:199)
    at com.bea.staxb.buildtime.Java2Schema.createPropgenFacade(Java2Schema.java:2005)
    at com.bea.staxb.buildtime.Java2Schema.processProperty(Java2Schema.java:1840)
    at com.bea.staxb.buildtime.Java2Schema.bindProperties(Java2Schema.java:1441)
    at com.bea.staxb.buildtime.Java2Schema.createBindingTypeFor(Java2Schema.java:920)
    at com.bea.staxb.buildtime.Java2Schema.findOrCreateBindingTypeFor(Java2Schema.java:735)
    at com.bea.staxb.buildtime.Java2Schema.internalBind(Java2Schema.java:485)
    at com.bea.staxb.buildtime.BindingCompiler.bind(BindingCompiler.java:125)
    at com.bea.staxb.buildtime.BindingCompiler.bindAsExplodedTylar(BindingCompiler.java:161)
    at weblogic.wsee.bind.buildtime.internal.SoapAwareJava2Schema.bindAsExplodedTylar(SoapAwareJava2Schema.java:1412)
    at weblogic.wsee.bind.buildtime.internal.TylarJ2SBindingsBuilderImpl.createBuildtimeBindings(TylarJ2SBindingsBuilderImpl.java:216)
    at weblogic.wsee.tools.jws.jaxrpc.JAXRPCWebServiceInfo.createBindings(JAXRPCWebServiceInfo.java:223)
    ... 20 more

  • What are the steps to create a webservice from java

    i followed the doc. of weblogic 10.3 but something is missing..i am using ubuntu
    1)
    i created a webservice ping.java which placed in myproject/HelloWorld directory
    package HelloWorld;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;
    import javax.xml.ws.BindingType;
    @WebService(name="SimplePortType", serviceName="SimpleService",
    targetNamespace="http://example.org")
    @SOAPBinding
    @BindingType
    public class ping {
    @WebMethod
    public String main(String p){
    System.out.println("sayHello:" + p);
    return "Here is the message: '" + p + "'";
    2) and created a build.xml and placed it in myproject folder
    <project default="all">
    <target name="all"
    depends="clean,build-service,deploy" />
    <target name="clean">
    <delete dir="output" />
    </target>
    <path id="*my.path*">
         <pathelement path="/home/suresh/bea/jdk160_05/lib/tools.jar"/>
    <pathelement path="/home/suresh/bea/wlserver_10.3/server/lib/weblogic.jar"/>
    </path>
    <taskdef name="jwsc"
    classname="weblogic.wsee.tools.anttasks.JwscTask" classpath="/home/suresh/bea/wlserver_10.3/server/lib/weblogic.jar" />
    <target name="build-service">
    <jwsc srcdir="HelloWorld" destdir="output/helloWorldEar">
    <jws file="ping.java" type="JAXWS"/>
    </jwsc>
    </target>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="/home/suresh/bea/wlserver_10.3/server/lib/weblogic.jar"/>
    <target name="deploy">
    <wldeploy action="deploy"
    name="myproject"
    source="output/helloworldEar" user="weblogic"
    password="weblogic"
    adminurl="t3://${wls.hostname}:${wls.port}"
    targets="${wls.server.name}"/>
    </target>
    </project>
    3) after that how to start weblogic and how to set any needed env or domain properties.How to publish it to server?
    4) how to configure security
    can i use netbeans to do all the above things?
    Thanks
    Suresh

    what my.path indicates in the above wsdl?
    or which path i have to give there?

  • Exported ant script -- NoClassDefFound?

    I've exported ant script from workshop (wls9.2 eclipse) and I was able to build the app.war (web services) ok.
    However I saw message like this:
    "assembly: Imput fileset contained no files, nothing to do."
    And when I deployed the war to server and tried to access the webservices, it gave me NoClassDefFound error.
    Also I noticed that the ".staging" directory has empty "lib" dir under it.
    Does anyone know how to fix it?
    Here is the generated build.xml and workspace.xml.
    ========================= workspace.xml==============
    <?xml version="1.0" encoding="UTF-8"?>
    <node name="metadata">
    <node name="projects">
    <node name="billingservice">
    <attribute name="location" value="C:/home/rlee/projects/telepacific/billingservice"/>
    </node>
    </node>
    <node name="library-modules">
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/wls-commonslogging-bridge.war"/>
    </node>
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/weblogic-controls-1.0.war"/>
    </node>
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/beehive-controls-1.0.war"/>
    </node>
    </node>
    <node name="server-runtimes">
    <node name="BEA WebLogic v9.2">
    <attribute name="location" value="%wl.home%"/>
    </node>
    </node>
    <node name="vm-locations">
    <attribute name="defaultVM" value="C:/bea/wls922/jdk150_10"/>
    <node name="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/BEA WebLogic v9.2 JRE">
    <attribute name="location" value="c:/bea/wls922/jrockit90_150_10"/>
    </node>
    </node>
    <node name="classpath-vars">
    <node name="SDKS_HOME">
    <attribute name="value" value="c:/home/rlee/projects/mpower/sdks"/>
    </node>
    <node name="WEBLOGIC_HOME">
    <attribute name="value" value="%wl.home%"/>
    </node>
    </node>
    </node>
    ======================= end of workspace.xml==============
    ==================== exported build.xml ====================
    <project default="build">
    <description>
    Project build script. All public targets require the "workspace" property to be
    set at invocation. It can either point at the Eclipse workspace directory that
    this project belongs to or an exported workspace.xml file. The wl.home property
    may also need to be specified unless WL_HOME environment variable is defined.
    </description>
    <target name="init.env" unless="init.env.executed">
    <property name="init.env.executed" value="true"/>
    <property environment="env"/>
    <condition property="wl.home" value="${env.WL_HOME}">
    <isset property="env.WL_HOME"/>
    </condition>
    <fail unless="wl.home" message="The wl.home property needs to be set!"/>
    </target>
    <target name="init.typedefs" depends="init.env" unless="init.typedefs.executed">
    <property name="init.typedefs.executed" value="true"/>
    <typedef resource="com/bea/wlw/antlib/antlib.xml">
    <classpath>
    <fileset dir="${wl.home}">
    <include name="workshop/lib/wlw-antlib.jar"/>
    <include name="workshop/lib/wlw-util.jar"/>
    <include name="workshop/lib/wlw-libmodules.jar"/>
    <include name="workshop/lib/wlw-splitsrc.jar"/>
    <include name="server/lib/ant/ant-contrib-1.0b1.jar"/>
    </fileset>
    </classpath>
    </typedef>
    </target>
    <target name="init" depends="init.env,init.typedefs" unless="init.executed">
    <property name="init.executed" value="true"/>
    <fail unless="workspace" message="The workspace property needs to be set!"/>
    <dirname property="project.dir" file="${ant.file}"/>
    <property name="echo.metadata" value="false"/>
    <mdimport workspace="${workspace}" pjdir="${project.dir}" echo="${echo.metadata}">
    <option name="skipAnnotationProcessors" value="com.bea.wlw.webservices.core"/>
    </mdimport>
    <property name="archive.name" value="${project.name}.war"/>
    <property name="uri" value="${archive.name}"/>
    <taskdef name="xmlbean"
    classname="org.apache.xmlbeans.impl.tool.XMLBean">
    <classpath>
    <pathelement path="${wl.home}/common/lib/apache_xbean.jar"/>
    <pathelement path="${wl.home}/common/eclipse/plugins/com.bea.eclipse.common.lib.apache_xbean2/jsr173_api.jar"/>
    </classpath>
    </taskdef>
    <property name="generated.module.root" value="${project.dir}/build/weboutput"/>
    <property name="assembly.src" value="${project.dir}/build/assembly/.src"/>
    </target>
    <target name="build" depends="init" description=" compiles the source files; does not package the results">
    <for list="0,1,2,3,4,5,6,7,8,9" param="i">
    <sequential>
    <if>
    <and>
    <isset property="xbean.src.@{i}.dir"/>
    <available file="${xbean.src.@{i}.dir}"/>
    </and>
    <then>
    <fileset id="xbean.src.paths.@{i}"
    dir="${xbean.src.@{i}.dir}"
    includes="${xbean.src.@{i}.include}"
    excludes="${xbean.src.@{i}.exclude}"/>
    </then>
    <else>
    <fileset id="xbean.src.paths.@{i}"
    file="null_file_set"/>
    </else>
    </if>
    </sequential>
    </for>
    <if>
    <isset property="xbean.include-classpath-contributions"/>
    <then>
    <path id="xbean.classpath">
    <path refid="java.classpath"/>
    </path>
    </then>
    <else>
    <path id="xbean.classpath">
    <pathelement location="${wl.home}/common/lib/apache_xbean.jar"/>
    </path>
    </else>
    </if>
    <mkdir dir="${xbean.src.output.dir}"/>
    <mkdir dir="${xbean.bin.output.dir}"/>
    <xmlbean
    javasource="${xbean.java-version}"
    download="${xbean.download-network-urls}"
    typesystemname="${xbean.schema-type-name}"
    noupa="${xbean.unique-particle-attribution}"
    nopvr="${xbean.particle-valid-restriction}"
    noannotations="${xbean.skip-annotations}"
    ignoreDuplicatesInNamespaces="${xbean.namespaces-to-ignore-dups}"
    srcgendir="${xbean.src.output.dir}"
    classgendir="${xbean.bin.output.dir}"
    classpathref="xbean.classpath"
    srconly="true">
    <fileset refid="xbean.src.paths.0"/>
    <fileset refid="xbean.src.paths.1"/>
    <fileset refid="xbean.src.paths.2"/>
    <fileset refid="xbean.src.paths.3"/>
    <fileset refid="xbean.src.paths.4"/>
    <fileset refid="xbean.src.paths.5"/>
    <fileset refid="xbean.src.paths.6"/>
    <fileset refid="xbean.src.paths.7"/>
    <fileset refid="xbean.src.paths.8"/>
    <fileset refid="xbean.src.paths.9"/>
    </xmlbean>
    <if>
    <isreference refid="apt.factory.path"/>
    <then>
    <mkdir dir="${apt.src.output.dir}"/>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <apt
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    preprocessdir="${apt.src.output.dir}"
    classpathref="java.classpath"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false"/>
    </then>
    </if>
    </for-each-java-src-path>
    </then>
    </if>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <javac
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    classpathref="java.classpath"
    debug="on"/>
    </then>
    </if>
    </for-each-java-src-path>
    <delete dir="${generated.module.root}"/>
    <mkdir dir="${generated.module.root}"/>
    <resolve-path property="user.web.xml" path="WEB-INF/web.xml"/>
    <resolve-path property="user.weblogic.xml" path="WEB-INF/weblogic.xml"/>
    <copy todir="${generated.module.root}/WEB-INF" file="${user.web.xml}" />
    <copy todir="${generated.module.root}/WEB-INF" file="${user.weblogic.xml}" failonerror="false" />
    </target>
    <target name="clean" depends="init" description=" removes the files and directories generated by the build target">
    <if>
    <available file="${xbean.src.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${xbean.src.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <if>
    <available file="${xbean.bin.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${xbean.bin.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <if>
    <available file="${apt.src.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${apt.src.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.output}"/>
    <then>
    <if>
    <equals arg1="${.java.src.dir}" arg2="${.java.src.output}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${.java.src.output}">
    <or>
    <filename name="**/*.class"/>
    <and>
    <type type="dir"/>
    <depth min="0"/>
    </and>
    </or>
    </fileset>
    </delete>
    </then>
    <else>
    <delete includeEmptyDirs="true">
    <fileset dir="${.java.src.output}" includes="**/*"/>
    </delete>
    </else>
    </if>
    </then>
    </if>
    </for-each-java-src-path>
    <delete dir="${assembly.src}"/>
    <delete dir="${generated.module.root}"/>
    <mkdir dir="${generated.module.root}"/>
    </target>
    <target name="assemble" depends="init" description=" assembles the project for iterative dev deployment; requires that the "ear.root" property is specified">
    <property name="prefix" value=""/>
    <for-each-resource-path>
    <link ear="${ear.root}" source="${.resource.path}" target="${prefix}${uri}/${.resource.prefix}"/>
    </for-each-resource-path>
    <!-- Link in referenced utility projects into the WEB-INF/lib directory. -->
    <for-each-referenced-component>
    <if>
    <and>
    <equals arg1="${.referenced.component.type}" arg2="project"/>
    <equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
    </and>
    <then>
    <antex
    antfile="${.referenced.component.handle}/build.xml"
    dir="${.referenced.component.handle}"
    target="assemble"
    inheritUserProps="false"
    inheritAll="false"
    inheritRefs="false">
    <property name="wl.home" value="${wl.home}"/>
    <property name="patch.home" value="${patch.home}"/>
    <property name="workspace" value="${workspace}"/>
    <property name="init.typedefs.executed" value="true"/>
    <property name="ear.root" value="${ear.root}"/>
    <property name="prefix" value="${uri}/WEB-INF/lib/"/>
    </antex>
    </then>
    </if>
    </for-each-referenced-component>
    <link ear="${ear.root}" source="${xbean.bin.output.dir}" target="${link.target}"/>
    <link ear="${ear.root}" source="${generated.module.root}" target="${uri}"/>
    <antcall target="assembly" inheritAll="true" inheritRefs="true" >
    <param name="ear.root" value="${ear.root}"/>
    </antcall>
    <antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
    </target>
    <target name="stage" depends="init" description=" copies all of project's resources and build artifacts into a form that's ready for archive creation; staging directory can be overridden via the "staging.dir" property">
    <antcall target="assembly" inheritAll="true" inheritRefs="true" >
    <param name="ear.root" value="${ear.staging.dir}"/>
    </antcall>
    <antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
    <property name="staging.dir" value="${project.dir}/.staging"/>
    <delete dir="${staging.dir}" quiet="true"/>
    <mkdir dir="${staging.dir}"/>
    <for-each-resource-path>
    <if>
    <available file="${.resource.path}"/>
    <then>
    <if>
    <isfile path="${.resource.path}"/>
    <then>
    <copy file="${.resource.path}" tofile="${staging.dir}/${.resource.prefix}"/>
    </then>
    <else>
    <copy todir="${staging.dir}/${.resource.prefix}">
    <fileset dir="${.resource.path}" includes="${.resource.include}" excludes="${.resource.exclude}"/>
    </copy>
    </else>
    </if>
    </then>
    </if>
    </for-each-resource-path>
    <!-- Packaged referenced utility projects into the WEB-INF/lib directory. -->
    <property name="webinflib" value="${staging.dir}/WEB-INF/lib"/>
    <mkdir dir="${webinflib}"/>
    <for-each-referenced-component>
    <if>
    <and>
    <equals arg1="${.referenced.component.type}" arg2="project"/>
    <equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
    </and>
    <then>
    <antex
    antfile="${.referenced.component.handle}/build.xml"
    dir="${.referenced.component.handle}"
    target="archive"
    inheritUserProps="false"
    inheritAll="false"
    inheritRefs="false">
    <property name="wl.home" value="${wl.home}"/>
    <property name="patch.home" value="${patch.home}"/>
    <property name="workspace" value="${workspace}"/>
    <property name="init.typedefs.executed" value="true"/>
    <property name="archive.dir" value="${webinflib}"/>
    </antex>
    </then>
    </if>
    </for-each-referenced-component>
    <copy todir="${staging.dir}/${xbean.deploy.prefix}">
    <fileset dir="${xbean.bin.output.dir}"/>
    </copy>
    <if>
    <available file="${generated.module.root}"/>
    <then>
    <copy todir="${staging.dir}" overwrite="true">
    <fileset dir="${generated.module.root}"/>
    </copy>
    </then>
    </if>
    <taskdef name="build-manifests"
    classname="weblogic.ant.taskdefs.build.AnnotationManifestTask"
    onerror="fail" />
    <path id="annotation.manifest.search.path">
    <fileset dir="${staging.dir}">
    <include name="WEB-INF/lib/*.jar"/>
    </fileset>
    <pathelement location="${staging.dir}/WEB-INF/classes"/>
    </path>
    <path id="annotation.manifest.class.path">
    <path refid="annotation.manifest.search.path"/>
    <path refid="java.classpath"/>
    </path>
    <build-manifests moduleDir="${staging.dir}"
    searchClasspathRef="annotation.manifest.search.path"
    classpathRef="annotation.manifest.class.path"
    verbose="true"
    version=""
    stagingDir="${java.io.tmpdir}/.manifest"/>
    </target>
    <target name="archive" depends="stage" description=" creates an archive containing all projects's resources and build artifacts; archive name and location can be overridden via the "archive.path" property">
    <property name="archive.dir" value="${project.dir}"/>
    <mkdir dir="${archive.dir}"/>
    <zip destfile="${archive.dir}/${archive.name}" encoding="UTF8" whenempty="create">
    <fileset dir="${staging.dir}"/>
    </zip>
    </target>
    <target name="stage.to.ear" depends="init">
    <property name="prefix" value=""/>
    <antcallex target="archive" inheritUserProps="false" inheritAll="false" inheritRefs="false">
    <param name="wl.home" value="${wl.home}"/>
    <param name="patch.home" value="${patch.home}"/>
    <param name="workspace" value="${workspace}"/>
    <param name="init.typedefs.executed" value="true"/>
    <param name="archive.dir" value="${ear.staging.dir}${prefix}"/>
    <param name="ear.staging.dir" value="${ear.staging.dir}"/>
    </antcallex>
    </target>
    <target name="generated.root.init" depends="init">
    <property name="generated.module.root" value="${project.dir}/build/weboutput"/>
    </target>
    <target name="assembly" depends="init,generated.root.init">
    <taskdef name="assemble"
    classname="com.bea.control.assembly.AssembleTask"
    classpathref="java.classpath"
    onerror="report" />
    <property name="assembly.src.output" value="${java.src.0.output}"/>
    <mkdir dir="${assembly.src}"/>
    <path id="assembly.classpath">
    <path refid="java.classpath" />
    <pathelement location="${assembly.src.output}" />
    <pathelement path="${java.outpath}" />
    <pathelement path="${java.sourcepath}"/>
    </path>
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
    <apt
    srcdir="${assembly.src}"
    preprocessdir="${apt.src.output.dir}"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false">
    <classpath refid="assembly.classpath" />
    </apt>
    <javac
    srcdir="${assembly.src}"
    destdir="${assembly.src.output}"
    debug="on">
    <classpath refid="assembly.classpath" />
    </javac>
    </target>
    <target name="webservice.build" depends="init,generated.root.init">
    <path id="jwsc.srcpath">
    <path path="${java.sourcepath}" />
    <pathelement path="build/assembly/.src" />
    </path>
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" />
    <property name="jwsc.module.root" value="${project.dir}/build/weboutput"/>
    <property name="jwsc.contextpath" value="billingservice"/>
    <property name="jwsc.srcpath.prop" refid="jwsc.srcpath"/>
    <path id="jwsc.classpath">
    <path refid="java.classpath" />
    <pathelement path="${java.outpath}" />
    </path>
    <jwsc
    destdir="${project.dir}/build"
    classpathref="jwsc.classpath"
    >
    <module name="weboutput" explode="true" contextPath="${jwsc.contextpath}">
    <jwsFileSet srcdir="${jwsc.srcpath.prop}">
    <include name="**/*.java"/>
    </jwsFileSet>
    <descriptor file="${jwsc.module.root}/WEB-INF/web.xml" />
    <descriptor file="${jwsc.module.root}/WEB-INF/weblogic.xml" />
    </module>
    </jwsc>
    </target>
    </project>
    ==================== end of exported build.xml =========
    Thanks!
    Edited by renqili at 08/09/2007 10:52 AM

    It looks a bug to me. The exported ant script does not take care the jar files setup in the classpath in workshop/eclipes and copy them to the WEB-INFO/lib directory.

Maybe you are looking for