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?

Similar Messages

  • How to make use of the portal service "xsltransform"

    Hi all,
    I am using EP5 SP4 and is trying to create a component to do xml transformation by using the portal service "xsltransform". However when I run the code (which is reference to an example on web), the following error occured:
    javax.naming.NotContextException: broker should be a Context
         at com.sapportals.portal.prt.repository.AbstractHierarchicalContext.lookup(AbstractHierarchicalContext.java:139)
         at com.sapportals.portal.prt.repository.AbstractHierarchicalContext.lookup(AbstractHierarchicalContext.java:140)
         at com.sapportals.portal.prt.repository.AbstractHierarchicalContext.lookup(AbstractHierarchicalContext.java:74)
         at javax.naming.InitialContext.lookup(InitialContext.java:345)
         at com.mk.kmbrowserid.MkKmBrowseRID$MkKmBrowseRIDDynPage.doProcessBeforeOutput(MkKmBrowseRID.java:167)
    Here is my code:
    Hashtable env = new Hashtable();
         env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sapportals.portal.prt.registry.PortalRegistryFactory");
         InitialContext context = new InitialContext(env);
         IXSLTransformService xslTransService = (IXSLTransformService) context.lookup("/broker/services/"+IXSLTransformService.KEY);
         //retrieve the xsl file and put into string
         String line;
         StringBuffer styleSheet = new StringBuffer();
         IResourceContext resourceContext = new ResourceContext(myUser);
         IResourceFactory resFactory = ResourceFactory.getInstance();
    Where the problem is occured in line 167 "IXSLTransformService xslTransService = (IXSLTransformService) context.lookup("/broker/services/"+IXSLTransformService.KEY);"
    Do any one know how to solve this problem? And setting / config should be done before the service "xsltransform" can be used?
    Thanks
    Sam

    hi
    I need an example please....
    did any one use that FM
    Regards

  • How does one tell if the J2EE services are running with Unlimited

    How does one tell if the J2EE services are running with Unlimited
    security? We have applied the export Policy to the server but we do notsee any reference to it running with it. .we apply the Service packs SAP now upgrades that JAVA as well . Do that process treat the JAVA
    lib/security area correctly.

    Just out of curiosity... Is there something you do
    like about Mac/Apple?
    To answer your question: no, not really. However, the points that I made here were about Safari and accompanying utilities, not about Apple in general.
    If it makes you feel any better, I am just as, or even more, critical of Micro$oft as the occasions arise...Windoze Vista is the most recent occasion and has given sufficient reasons and opportunities to vent my spleen that I actually have eased up on Apple, politicians, nut-case religious extremists, cell phone owners, and the Department of Homeland Paranioa, etc., due to an exhaustion of creative energy.

  • I have a $10 gift card balance on my Apple ID but when I try to rent a movie it wants me to use my debit card. How can Make it use the iTunes credit?

    I have a $10 gift card balance on my Apple ID but when I try to rent a movie it wants me to use my debit card. How can Make it use the iTunes credit?

    Hi ...
    Select None for payment method > iTunes Store: Changing account information
    Be aware, an auto renewing subsciption by require a credit card.

  • How to start and stop the BI Services in Solaris 10

    Hello All,
    Can anyone guide me on how to start and stop the BI Services in Solaris 10. In windows there are options set in Start->Programs->Middleware_Home->Start/Stop BI Services.
    Primarily after doing changes to the scheduler configuration, I need to restart the services to get it implemented? If yes how can I do it?
    Any help will be appreciated
    Thank you
    Ash
    Edited by: 902739 on Jan 11, 2012 12:17 PM

    Please help me by showing action plan for stop sap , offline backup and then start sap.
    i am little bit confuse How to start and stop SAP on cluster for offline backup
    Below are the systems name with host name , please explain me in sequence
    Systems name                                   Hostname
    # Hope SAP ERP Prod DB Primary       gsgbbux860
    # Hope SAP ERP Prod DB Standby      gsgbbux861
    # Hope SAP ERP Prod Cluster              gsgbbux862
    # Hope SAP ERP App 1                       gsgbbux864
    # Hope SAP ERP App 2                       gsgbbux865
    Thanks in advance
    Zaheer

  • How to make use of the presentation variable in SQL result query

    I have 2 prompts in my dashboard.
    Prompt1 decides the values of Prompt2.
    I have set a presentation Variable (selected_comp) in prompt1 which holds the value selected.
    To populate the values for Prompt2, I need to execute a query using the presenation variable set by Prompt1.
    SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=@{selected_comp}
    the query is resulting into
    SQL Issued: SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=0
    but the value in selected_comp is "ABC".
    Can anybody help in how to make use of the presentation variable in query to get the correct value
    thanks
    Shubha

    Just use constrain check box to filter your 2nd prompt values based on the 1st prompt.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • How to make use of the FM EDIT_TEXT_FORMAT_DOC

    Hi frnz,
    How to make use of the FM
    EDIT_TEXT_FORMAT_DOC
    Could anyone explain with an example how to use this
    regards

    hi
    I need an example please....
    did any one use that FM
    Regards

  • How to make iTunes recognize the music library in my external hard drive after instaIling Yosemite?

    How to make iTunes recognize the music library in my external hard drive after instaIling Yosemite? I tried re-setting the media folder location, but it didn't work. What else should I do?

    The issue is not related to the external drive. iTunes Match has difficulties matching tracks ripped fom CDs because they may differ slightly from the versions on sale in iTunes. You can try the match again. Otherwise do a search of this forum. There are already many discussions on this subject here that may help you.

  • How to make iTunes read the song's name/singer from the file's name itself?

    Hi everyone,
    So I have this file with songs from everywhere. I spent quite some time now to make sure that the structure of each file's name is as such : "Singer - Song name", hoping that everything would be read by iTunes accordingly. However, either iTunes read it well, or it didn't read it at all ("Singer - Song name" appearing in Title alone), or iTunes read the "media" of the file (ie. what the guy I downloaded it from wrote for it in the Preferences, which usually is in capital letters or with a bunch of weird underscores). As I'm OCD and need everything to be neat, I'm highly tensed right now. I really want everything to be neat and clear!
    So, how do I make sure that iTunes reads the files' names such that it knows the structure is "Singer - Song name"? Thanks.

    iTunes doesn't use file names to determine how music appears in your library,  Rather, it uses metadata that is split between:
    data elements that are embedded within the media files
    data elements that are included in the entries in the iTunes database
    No amount of reorganization, renaming or other manipulation at the file level will make any difference to how songs will appear in iTunes.  Using your example:
    the value of the track number element is 1
    the value of the artist element is "Elvis Presley"
    the value of the song name element is "Blue Suede Shoes"
    Depending on how you configure iTunes then the file name is either:
    completely independent of iTunes (i.,e., the file containing this song could be xyz.mp3)
    dependent on the metadata managed by iTunes, (i.e., when you have these two options set:
    then iTunes will set the file name to be 1-01 Blue Suede Shoes.mp3 where:
    the file is in a folder called "Elvis Presley" (the name of the album)
    that folder is in one called "Elvis Presley" (the name of the artist) which is in iTunes Media\Music
    Going back to your question "How to make iTunes read the song's name/singer from the file's name" the answer is simple - you can't, as this is not how iTunes works.  There are some third-party utilities that you can use to set some metadata element values based on parsing of file names which might be a useful first step.  However, to use iTunes effectively you should really forget about / ignore file names - manage your media using appropriate metadata and allow iTunes to look after file names behind the scenes.

  • How to make restriction for the description of value in the transformation

    one infoobject AAAA which has value T001, T002, T003...
    the description of value
    T001 - Heywemay
    T002 - Heyrtya
    T003 - Tyuatyew
    I need to make routine in the transformation, when the description of value that contains "Hey", then we need to load it into infoprovider, otherwise we need to delete data package. Now the issue is  the filed in source is only Key, not description. But, we had maintained the description for infoobject AAAA. Anyboady know how to make restriction in the transformation, ?
    that means we only need to load data into infoprover once the description of value that contains "Hey". Should I add field 0TXTMD into infoprovider and make the link from infoobject AAAA? Thanks for any input.

    Hi,
    Write the Start routine to delete complete data packet whic won't have "Hey".
    DELETE SOURCE_PACKAGE WHERE TXTMD NP '"Hey'.
    If  you want load the data with blank for that InfoObejct if it won't contains "Hye".
    Write this code at TXTMD infoObejct level.
    if  SOURCE_PACKAGE-TXTMD NP 'Hey' .
          RESULT = ' '.
      elseif SOURCE_PACKAGE-TXTMD CP 'Hey' .
          RESULT = SOURCE_PACKAGE-TXTMD.
      endif.
    Note: In the above code I'm giving logic to do the same, but for code corrections please check with ABAPer.
    Thanks
    Reddy
    Edited by: Surendra Reddy on Aug 12, 2009 10:48 AM

  • How to make iTunes detect the new location of music files?

    Hi everyone. I moved all of my music to a different location on my hard drive, and I changed the location in iTunes preferences, but it doesn't seem to detect this, so my library is empty now. I saved an itl, xml, and temp file as well, but I don't know what to do from here.
    I also tried dragging the new music folder onto the "Library" entry in iTunes, and this added everything, but I no longer have my ratings, playlists or anything like that.
    Is there some other way to have iTunes detect the new location? And can I get back my ratings and playlists?
    Thanks.

    iTunes doesn't use file names to determine how music appears in your library,  Rather, it uses metadata that is split between:
    data elements that are embedded within the media files
    data elements that are included in the entries in the iTunes database
    No amount of reorganization, renaming or other manipulation at the file level will make any difference to how songs will appear in iTunes.  Using your example:
    the value of the track number element is 1
    the value of the artist element is "Elvis Presley"
    the value of the song name element is "Blue Suede Shoes"
    Depending on how you configure iTunes then the file name is either:
    completely independent of iTunes (i.,e., the file containing this song could be xyz.mp3)
    dependent on the metadata managed by iTunes, (i.e., when you have these two options set:
    then iTunes will set the file name to be 1-01 Blue Suede Shoes.mp3 where:
    the file is in a folder called "Elvis Presley" (the name of the album)
    that folder is in one called "Elvis Presley" (the name of the artist) which is in iTunes Media\Music
    Going back to your question "How to make iTunes read the song's name/singer from the file's name" the answer is simple - you can't, as this is not how iTunes works.  There are some third-party utilities that you can use to set some metadata element values based on parsing of file names which might be a useful first step.  However, to use iTunes effectively you should really forget about / ignore file names - manage your media using appropriate metadata and allow iTunes to look after file names behind the scenes.

  • Can any body tell me how to make changes in the print layout of Fb03.

    hi,
    Can any body tell me how to make changes in the print layout of Fb03.
    I want to add comapny address on the layout.
    Regards
    Mave

    If you mean the correspondence, you have to change the configuration in Financial Accounting -> AR and AP -> Business Transactions -> Outgoing Invoices -> Carry Out abd Check Settings for Correspondence. There, you need to assign your custom Program or Layout for the Correspondence Type (like SAP19) and Program.
    If you mean the display layout in transaction FB03, You can change a few settings, mainly with BKPF and BSEG fields. I don't think you can add company address, though.
    Good luck,
    Bhanu

  • How to make password for the printer to prevent coping paper from other s

     i have ( hp officejet pro 8600) how can i prevent others from making copies of paper  . when i am outside . i mean how can i lock the printer itself

    iTunes doesn't use file names to determine how music appears in your library,  Rather, it uses metadata that is split between:
    data elements that are embedded within the media files
    data elements that are included in the entries in the iTunes database
    No amount of reorganization, renaming or other manipulation at the file level will make any difference to how songs will appear in iTunes.  Using your example:
    the value of the track number element is 1
    the value of the artist element is "Elvis Presley"
    the value of the song name element is "Blue Suede Shoes"
    Depending on how you configure iTunes then the file name is either:
    completely independent of iTunes (i.,e., the file containing this song could be xyz.mp3)
    dependent on the metadata managed by iTunes, (i.e., when you have these two options set:
    then iTunes will set the file name to be 1-01 Blue Suede Shoes.mp3 where:
    the file is in a folder called "Elvis Presley" (the name of the album)
    that folder is in one called "Elvis Presley" (the name of the artist) which is in iTunes Media\Music
    Going back to your question "How to make iTunes read the song's name/singer from the file's name" the answer is simple - you can't, as this is not how iTunes works.  There are some third-party utilities that you can use to set some metadata element values based on parsing of file names which might be a useful first step.  However, to use iTunes effectively you should really forget about / ignore file names - manage your media using appropriate metadata and allow iTunes to look after file names behind the scenes.

  • How to uncover and use the hidden Service menu on the Galaxy S3

    I ran across this article over at Android Central that appeared interesting, there appears to be a diagnostic menu built into the S3 software to test the hardware for defects, this may be a useful item for any users that feel that they have a defective device...   Check out the article at How to uncover and use the hidden Service menu on the Galaxy S3

    That's good to know that such options exist in phones.

  • How can I turn off the cell service on my phone while traveling out of the country?

    How can I turn off the cell service on my phone while traveling out of the country?

    Airplane Mode

Maybe you are looking for

  • Error in F-51

    Dear All, While posting the document in F-51 I would like to calculate the service tax, but when I simulate it goes to the next screen asking for process open item I have checked all the tax setting everything is correct. Please suggest me what has t

  • Service Module !!

    Hello Experts, how do you rate the service module in SBO, i have one problem as my work is in distributed environment, i have got technicians who are on the field all the time with few equipments. They come office once in a while. I would like to man

  • Arial Font Changed to a different font

    Hi, i have a huge problem with the arial font in my macbook pro. It shows something like this in font book about the Arial font: if you see the background behind font book, you can see that even the font in goole chrome changed. I've tried to reset m

  • How to find  at what time Idoc has gone  out  of  SAP

    Hi Gurus, Could  anybody  let  me  know , how to check at what time Idoc has gone  out  of  SAP in case  of outbound Idoc. I am not  talking  about Idoc creation date which we can  see in control records  in WE05. -B S B

  • Automatically Installing Custom Step Types in TestStand 4.2

    We have developed Custom Step types that needs to be integrated in a deployed TestStand System (customized UI with TestStand RunTime Engine) . We can customize the palette manually and add the related INI file. We also understand that the information