Files missing in the ear and client jar

Hi,
I'm following the examples to build a web service using ANT servicegen task. My
web service calls a lot of other java classes, and those java classes in turn
call other classes. When I used the following taskes to generate the service and
client code, I found the generated ear, war and client jar files only contain
the compiled classes which are used directly by the web service class. Those classes
called indirectly by web service are missing.
<target name="ear">
<servicegen
destEar="${build}/${ear_file}"
warName="${war_file}">
<service
javaClassComponents="com.iit.integration.txlife.txlife28.txlifeProcessor.TxlifeProcessor"
targetNamespace="${namespace}"
serviceName="TxlifeWebService"
serviceURI="/txlifews"
     generateTypes="True"
expandMethods="True">
<client
packageName="com.iit.integration.txlife.txlife28.client"
clientJarName="${client_jar_file}"
/>
</service>
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
</target>
<!-- generate the client jar and build the client calling class -->
<target name="client" depends="ear">
<clientgen
ear="${build}/${ear_file}"
warName="${war_file}"
packageName="com.iit.integration.txlife.txlife28.client"
clientJar="${client}/${client_jar_file}">
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</clientgen>
So when I invoked the client code, I always got the class not found exception.
Not sure if I missed anything here.
Thanks a lot,
Henry
[build.xml]

Any required support classes have to be in the client's/server's classpath. Or
at least that's what I do.
"Henry Niu" <[email protected]> wrote:
>
>
>
Hi,
I'm following the examples to build a web service using ANT servicegen
task. My
web service calls a lot of other java classes, and those java classes
in turn
call other classes. When I used the following taskes to generate the
service and
client code, I found the generated ear, war and client jar files only
contain
the compiled classes which are used directly by the web service class.
Those classes
called indirectly by web service are missing.
<target name="ear">
<servicegen
destEar="${build}/${ear_file}"
warName="${war_file}">
<service
javaClassComponents="com.iit.integration.txlife.txlife28.txlifeProcessor.TxlifeProcessor"
targetNamespace="${namespace}"
serviceName="TxlifeWebService"
serviceURI="/txlifews"
     generateTypes="True"
expandMethods="True">
<client
packageName="com.iit.integration.txlife.txlife28.client"
clientJarName="${client_jar_file}"
/>
</service>
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
</target>
<!-- generate the client jar and build the client calling class -->
<target name="client" depends="ear">
<clientgen
ear="${build}/${ear_file}"
warName="${war_file}"
packageName="com.iit.integration.txlife.txlife28.client"
clientJar="${client}/${client_jar_file}">
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</clientgen>
So when I invoked the client code, I always got the class not found exception.
Not sure if I missed anything here.
Thanks a lot,
Henry

Similar Messages

  • [svn] 3037: Update flex-config. xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path .

    Revision: 3037
    Author: [email protected]
    Date: 2008-08-29 06:54:15 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Update flex-config.xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path. This will allow the correct playerglobal.swc to be located when the target player version is set in the flex-config.xml or passed to mxmlc or compc.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/resources/config/flex-config.xml

    Unfortunately I don't have the
    "org.eclipse.swt.win32.win32.x86_3.1.2.jar" file. On my computer
    the folder is not set up the same way (C:\Program Files\Adobe\Flex
    Builder 2\plugins) instead it is set up as (C:\Program
    Files\Adobe\Flex Builder 2\metadata\plugins) but I've looked in
    everything and that file just isn't in there. I've re downloaded it
    twice. Still not there. Is there anything else i can do.

  • HT1766 Hello there, started to sinc my iPad 3 to my iPhone 5 with iCloud and a lot off the items did copy over, I was connected to a power supply but for some reason it's still missing half the items and I am struggling to retrieve them can you help pleas

    Hello there, started to sinc my iPad 3 to my iPhone 5 with iCloud and a lot off the items did copy over, I was connected to a power supply but for some reason it's still missing half the items and I am struggling to retrieve them can you help please.
    Thank you Callum Gordon

    Well the term "hotlined" I have never heard before. In any case many states (like NY) just passed regulatory powers to the State Public Service Commission of which it may be called something different in your state. You could file a complaint with them. Or file a complaint with your state attorney generals office, they also take on wireless providers.
    The problem here is the staff you speak to are poorly trained, in days gone by it took one call to them and they pulled up your account and see the error and had the authority to remove any errors. They did not remove legitimate account actions, but used their heads instead of putting a customer off or worse lying to the customer.
    Its a shame you have to go through what you going through.
    Good Luck

  • After loading the latest Aperture 3 update, aperture will not load and it appears to have corrupted 10.6.  10.6.7 now appears to be missing from the computer and my administrator status has changed to standard.

    After loading the latest Aperture 3 update, aperture will not load and it appears to have corrupted 10.6.7. and now appears to be missing from the computer and my administrator status has changed to standard.  Update Software says I need to do update to 10.6.7 which I can't do because administrator privileges are gone.   I didn't back-up with Time Machine ,BAD, but I have all files backed-up on another hard drive.  Should I just reformat and start over?  Any ideas or help would be appreciated.

    PROBLEM SOLVED! For me at least!
    Apple Support gave me the clue - I had run Migration Assistant, and it had obligingly replaced a system file (/Library/Frameworks/PluginManager.framework/Versions/B/PluginManager) with the equivalent from my old system.
    I reinstalled 10.6.7 using the DVD supplied and all is well.
    The moral is - don't use Migration Assistant.
    Along the way Apple Support provided me with a link to download Combo update 10.6.7: this could not be installed on my iMac.
    Hope this helps.

  • The pop message "Encountered an error while parsing" will occur if the .adml files missing in the %windir%\PolicyDefinitions\en-US

    while editing  via GPMC we are getting below error Encountered an error while parsing” will occur if the .adml files missing in the %windir%\PolicyDefinitions\en-US
    Mukesh Saini

    Hi sainimuk,
    Remember that the ADML-files are language specific and stored in language specific folders. The ADLM-files is used to present information in ADMX files in a localized manner.
    To create the Central Store:
    ADMX-files goes here:
    \\domain.com\SYSVOL\domain.com\Policies\PolicyDefinitions
    ADML-files goes here:
    \\domain.com\SYSVOL\domain.com\Policies\PolicyDefinitions\EN-US (For US English)
    \\domain.com\SYSVOL\domain.com\Policies\PolicyDefinitions\NB-NO (For Norwegian)
    \\domain.com\SYSVOL\domain.com\Policies\PolicyDefinitions\KO-KR (For Korean).. and so on...
    So if you have your EN-US folder populated with all relevant ADML-files, but open GPMC from, lets say a Workstation with Norwegian language, it will try to access the nb_NO Folder. If no files are there, an error is presented.
    For all i know, maybe some of your ADMX / ADML files are broken.
    It should be no problem to re-download them and replace the ones you are having problems with.
    Download ADMX (With ADML-files for 34 languages) for Windows Server 2008 here:
    http://www.microsoft.com/en-us/download/details.aspx?id=14355
    -tsh

  • HT201210 Itunes will no longer open with the error message MSVCR80.dII is missing from the computer, and I'm advised to reinstall itunes but that hasn't worked.  What else can I try?

    Itunes will no longer open with the error message MSVCR80.dII is missing from the computer, and I'm advised to reinstall itunes but that hasn't worked.  What else can I try?
    Thanks for your help
    Pippa

    Click here and follow the instructions.
    (98708)

  • HT1343 On my 4 1/2 year old Macbook I could select multiple files  by highlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    ghlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    Holding down the control key will invoke "right-click."
    Depending on the View, holding down Shift will with either toggle the selection (Icon View), or it will make a continuous selection from the previous selection (List View or Column View).
    The only way to make a continuous selection in Icon View is to drag out a selection marquee around or through the icons.
    I can't remember the behavior of previous OS's.

  • Is it ok to put Photoshop files (.PSD) on the iPod, and into iPhoto?

    is it ok to put Photoshop files (.PSD) on the iPod, and into iPhoto?
    please advise

    i would like to vew them. actually some came up in iPhoto as "unable to read because of photoshop layers" others were fine. havent put them on the iPod yet. do you think its ok?

  • HT203433 How do I retrieve an app that I bought.  The icon is in my library.  But the program isn't in my device. When I look in the file that contain the app and try to open it,  It doesn't open.

    How do I retrieve an app that I bought.  The icon is in my library.  But the program isn't in my device. When I look in the file that contains the app and try to open it, it doesn't open.

    Howdy Hestersfree,
    This can be done through the App Store on the device that you'd like the app installed on.
    Apps on iOS
    Open the App Store on your device.
    Make sure you are signed in with the same Apple ID used for the original purchase.
    Tap Updates from the bottom navigation bar. 
    Tap Purchased on the resulting screen.
    Locate the app in your Purchased tab.
    Tap the download button.
    The app will begin downloading and you'll be taken back to your home screen. 
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Cheers,
    Allen

  • When I try to reinstall Photoshop Element 13, I get the message "cannot write file". i own the program and I don't want to subscribe to Creative Cloud. What can I do?

    When I try to reinstall Photoshop Element 13, I get the message "cannot write file". i own the program and I don't want to subscribe to Creative Cloud. What can I do?

    This has nothing to do with CC or any of that. You have insufficient user privileges to write files locally on your computer or a technical issue gets in teh way. Since you have not provided any system info or otehr details, we cannot tell you more than that.
    Mylenium

  • I was using photoshop CC as normal, when suddenly it started going haywire. It has corrupted all the one PSD files by distorting the images and colour. Does anyone know how to recover the original images?

    I was using photoshop CC as normal, when suddenly it started going haywire. It has corrupted all the open PSD files by distorting the images and colour. They are now completely unrecognisable and unusable. Does anyone know how to recover the original images as I was saving them as I went along but the files are now corrupt?

    What version of Photoshop are you running?
    I've seen a couple of instances over the last week or two where Photoshop has added masks, strange colours and also merged content from two separate PSD files that were open at the same time.
    This has occurred on two different iMacs, (both 10.10.x) running Photoshop CC 2014.2.2 (20141204.r.310 x64).
    see image below for example:

  • Extract assets doesn't extract the 0.5x or 0.25x files but does the 2x and 3x, why?

    Dear Photoshop Community,
    I'm trying to extract assets but this doesn't extract the 0.5x or 0.25x files but does the 2x and 3x, why?
    I get the original file, and 2 folders, one named scaled-at-200 and one named scaled-at-300.
    I am using Photoshop CC 2014 on windows 7 and i don't get any other extracted assets.
    However using Photoshop CC 2014 on my windows 8.1 machine i get all the assets and two additional folders scaled-at-50 and scaled-at-25.
    Why is this? Is there a fix for this issue?
    Thanks,
    Craig Williams.

    Hi Ganesh,
    Thank you for your reply.
    However I don't think the problem I got is related to the boldFont object. I actually want all the column hearders to be bold so I did the following codings and it works:
    Font headerFont = table.getTableHeader().getFont();
    Font boldFont = new Font(headerFont.getFontName(), Font.BOLD, headerFont.getSize());
    table.getTableHeader().setFont(boldHeaderFont);
    It is actually working - it changes all the headers (except for the column0 which has its own hearderRenderer) to be bold. So I think the object boldFont itself is ok.
    My problem is that when I set the boldFont to the myHeaderRenderer for colomn 0, I just can't that that column header to be bold. I guess the problem is related to the header renderer.
    -wdyaoj

  • Starting yesterday I can scan a pdf file in from the scanner and can not send a pdf in an email attachment

    Starting yesterday I can scan a pdf file in from the scanner and can not send a pdf in an email attachment.  What happened?  Windows 8

    Adobe Reader can't scan documents. What software do you use?

  • What is the relation betweent stubs and client jars?

    I'm new to EJB and I was trying to have a stateless EJB A call another stateless EJB B that's in the same JVM but in another EAR? I believe to do this my EJB A needs to have the stubs from EJB B. Correct? How do I generate them using WSAD 5 if anyone knows? Are these stubs that I need part of client jars?
    Vishal

    Well I figured it out. For those that need to know the answer when trying to make a call from one ejb to another ejb that's in a different ear you have to get a client jar. The client jar has the remote home and remote interface stubs. The reason you need a client jars so that you can cast your reference after doing a JNDI lookup.
    In WSAD (Websphere Studio 5) there is no real functionality built in to create client jar so what you have to do is create an EJB Jar and then delete all classes except for the stubs that I mentioned above. This client jar is then imported into your EJB project as a library jar. Now you can import this package in you EJB session bean and use it to cast you reference.
    Vishal

  • How to deploy the .ear and the .war file

    Hi all,
    I am using Jdev 11.1.1.0 and weblogic 10.3.1 and I want to deploy a very simple application.
    I have successfully deployed it to an ear file, so I have in my folders two file: a .war file and a .ear file.
    Now, what steps have I to do to deploying my application on WebLogic Server?
    I have searched in the forum and in the manual, and this link ( http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDFJADJ ) but I can't find nothing that help me
    Thanks
    Edited by: user10799119 on 25-ago-2009 7.45

    Thanks, I have just read http://radalcove.com/blog/?p=34 and http://radalcove.com/blog/?p=48.
    I am in my weblogic console, I have clicked Install --> I have choose my ear file --> activate changes, but I had this error: No credential mapper entry found for password indirection user=myUser for data source myConnection.
    I have read some post in the blog and I have unchecked Auto generate and sinchronize weblogic-jdbc.xml descriptors during deployment.
    Clicking in activate changes, it works, and the deployment is in the state "prepared".
    When I click on start I have this error: No credential mapper entry found for password indirection user=myUser for data source myConnection (without the final DS).
    I have seen that in myJDBCConnection --> configuration --> connection pool, I have not the user name and the password. I have inserted them, but I have the same error.
    Any ideas?
    Thanks again

Maybe you are looking for

  • !Question about EventReaderToWriter

    I am trying to store the content from a query result result to a document, I do like this: // write the start document and root element xWriter.writeStartDocument(NULL, NULL, NULL); // no XML decl xWriter.writeStartElement((const unsigned char *)"_ro

  • Intel Core 2 Duo...good video making system???

    First off...we have tried in a school district environment with our Mac lab on a network to start a videography educational direction. I have about 60 hours invested after school hours in this learning curve, and the last week especially I've called,

  • BPM in NW CE compared with Workflow

    Hello, I have aquestion regarding the positioning of BPM as a process modelling tool. At the moment it seems only to work with webdynpro Java screens in the 711 EHP1 download. I read on sdn the VC is also supported, and that WD ABAP is to be supporte

  • Transferring audio from cassette to iTunes

    How can I transfer audio from a cassette tape to my iTunes library? Thanks in advance! lin817 iBook G4   Mac OS X (10.3.5)  

  • How to improve the performance of the Data Migration program ?

    Hi All, I have written a program for Data Migration of Opportunities, but it is taking a lot of time to create or update opportunities. I have used so many function modules like " 'CONVERSION_EXIT_ALPHA_INPUT' " -- 8 TIMES "GUID_CREATE'"  -- 4 TIMES