WebService generation and polymorphic behavior
I have a simple problem.
Class A has an attribute of type Class B
Class B has 2 subclasses, Class C and Class D.
(it holds only a reference to Class B, but at runtime will be assigned
instances of Class C and Class D).
Lets say Stateless EJB has a method called getMyClassA() : Class A
The servicegen tool will not generate mappings or serializers/deserializers
for Class C and Class D because they are not referenced directly
(statically) from within serialized chain of classes. If I make a fake
(unused) attribute in Class A of type Class C and Class D, everything is
created and all works fine.
I tried to use the <autotype> and <source2wsdd> but I need to run then it
twice. Once with the EJB interface, and once with the supporting classes
(class C & D). Unfortunately I then have to manually merge the 2 deployment
descriptors because the <source2wsdd> task doesn't support the
"mergeWithExistingWs" attribute as specified in the documentation.
Has anybody encountered this problem?
Thanks,
Mark
When I upgraded to 8.1 from the beta it seemed to magically work!
Thanks,
Mark
"manoj cheenath" <[email protected]> wrote in message
news:[email protected]...
Thanks for trying out my suggestion.
It looks like the problem is because you are
using 8.1beta. WLS 8.1 GA is available for
download. Please try it out.
I wrote an example similar to your usecase
and it seems to work fine in WLS 8.1.
Checkout the example attached.
Regards,
-manoj
http://manojc.com
"Mark Fine" <[email protected]> wrote in message
news:[email protected]...
Yes, i'm using the WLS8.1beta.
Originally, I was using the "copied.xml" file. That does not "merge".
It
works as stated in the autotype documentation, it excludes the types
specified in the "typeMapping" file so the new types.xml file onlycontains
types that are not in the "copied.xml" file.
The source2wsdd task is needed to merge two deployment descriptors intoone,
but unfortunately the documented parameter "mergeExistingWS" doesn't
work
in
8.1 (documented bug).
Is there any workaround for this other than manually merging thedeployment
descriptors.
M
"manoj cheenath" <[email protected]> wrote in message
news:[email protected]...
You are using WLS 8.1?
Also can you please try the secound autotype with
the copied.xml file. I suspect that the old types.xml
file is overwritten before loading it.
<autotype
javaComponents="${service.class}"
targetNamespace="${webservice.machine.url}"
destDir="${autotype.dir}"
typeMappingFile="${autotype.dir}/copied.xml"
>I have not tried this type of example. So this is a
wild guess :-)
Regards,
-manoj
http://manojc.com
"Mark Fine" <[email protected]> wrote in message
news:[email protected]...
I tried running autotype for both class C & D, and for the EJB. It
simply
overwrites the first types.xml.
To confirm the problem I copied the result of autotype C & D to aseparate
file and saw that its contents were not merged.
Here are my tasks:
<autotype
javatypes="C, D"
targetNamespace="${webservice.machine.url}"
destDir="${autotype.dir}">
<classpath>
<path refid="webservice-build-classpath" />
<pathelement location="${autotype.dir}" />
</classpath>
</autotype>
<copy tofile="${autotype.dir}/copied.xml"
file="${autotype.dir}/types.xml"/>
<autotype
javaComponents="${service.class}"
targetNamespace="${webservice.machine.url}"
destDir="${autotype.dir}"
typeMappingFile="${autotype.dir}/types.xml"
>
<classpath>
<path refid="webservice-build-classpath" />
<pathelement location="${autotype.dir}" />
</classpath>
</autotype>
"manoj cheenath" <[email protected]> wrote in message
news:[email protected]...
In 8.1 you can run autotype on class C and D to generate
the types.xml file. Then run autotype on the ejb interface
by passing in the types.xml file generated before. The
secound autotype should merge the type.xml files. I have
not tried this out, but a similar example is here.
http://www.manojc.com/?sample8
Regards,
-manoj
http://manojc.com
"Mark Fine" <[email protected]> wrote in message
news:[email protected]...
I have a simple problem.
Class A has an attribute of type Class B
Class B has 2 subclasses, Class C and Class D.
(it holds only a reference to Class B, but at runtime will be
assigned
instances of Class C and Class D).
Lets say Stateless EJB has a method called getMyClassA() : Class
A
>>>>>>
The servicegen tool will not generate mappings orserializers/deserializers
for Class C and Class D because they are not referenced directly
(statically) from within serialized chain of classes. If I make
a
fake
(unused) attribute in Class A of type Class C and Class D,
everything
is
created and all works fine.
I tried to use the <autotype> and <source2wsdd> but I need to
run
then
it
twice. Once with the EJB interface, and once with the
supporting
classes
(class C & D). Unfortunately I then have to manually merge the
2
deployment
descriptors because the <source2wsdd> task doesn't support the
"mergeWithExistingWs" attribute as specified in the
documentation.
>>>>>>
Has anybody encountered this problem?
Thanks,
Mark
Similar Messages
-
Can I return my Ipod touch 4th generation and get an Ipad 2, if my ipod is still under warranty?
The warranty doesn't cover that. Sell it and put the money towards a new device.
(79450) -
I just got the new ipod touch (5th generation) and it will show up on my computer but it will not show up on itunes and it won't connect. Please help!
See:
iOS: Device not recognized in iTunes for Windows
You need iTunes version 10.7 -
I just found my old ipod touch (i think 1st generation) and would like to let my toddler use it instead of my phone. I am trying to download apps but it say I need to update to 4.3 but it won't let me update. I have the most recent itunes. any idea why? I saw a thread saying to purchase the newest software (that was posted a few years ago) I paid 4.95 for the software and it's still saying it can't be updated. Am I just SOL??
The 1G iPod can only go as high as 3.1.3. The 1G does not have an internal speaker or volume buttons on the upper left edge.
Identifying iPod models
To more easily find compatible apps:
iOSSearch - search the iTunes store for compatible apps.
Apple Club - filter apps by iOS version. -
My second iPod is a 5th generation and when I try to buy something it says it needs make sure I am who I say I am and it makes me answer security questions. But the problem is I don't know the answers to them. I did not choose them. And if I can't find an answer I can't buy anything!!! Help!!!!
You need to log in to your Apple ID and change you security questions. Take a look at this link, http://www.apple.com/support/appleid/
-
My home button is broken ipod touch 5th generation and wont open and itunes wont recognize it
my home button is broken ipod touch 5th generation and wont open and itunes wont recognize it
Turn on without Home/Power Button
-
We are going o Great Britain this summer. Do we need voltage converters as well as plug adapters for our iPads (one is 2nd generation and one 4th)
No. Since Apple power converter work from 110 to 240 volts, no power converter is reguired.
You will need a pin adaprt. I have found my local Ace hardware store to have the best deal on them.
Allan -
please helpme i block my ipod touch second generation and forget the code, try putting the code so many times that now says connect to itunes, I connect but will not let me do anything that tells me this should unlock with key and I should do for Please help!. thanks
Place the iPOd in recovery mode and then restore. For recovery mode:
iPhone and iPod touch: Unable to update or restore -
Hello,
I recently tried downloading the IOS8 to my iPod 5th generation and when it was almost done the computer said there was an error. Right after that, the iPod shut down completely and now it's on recovery mode. I plugged it in and it said that I had to restore it and update it so I could use it again but it doesn't let me. What can I do? I even did a backup before the update.
I really need help.What happens when you connect to computer and restore via iTunes?
Without knowing that:
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
I just got an iPod 4th generation and Im trying to sync my iTunes songs and books from my dell laptop on to my iPod but it says I need iTunes 10.6.3. So I tryed to download it on the apple website but it keeps saying that there is an error. I have already tryed uninstalling all Apple Inc. programs on my laptop then trying to install iTunes again but that has had no success what so ever. I have started to get very frusterated with this . Hopefully someone can help. I would really appreciate it. Any suggestion?
So I tryed to download it on the apple website but it keeps saying that there is an error.
What does the error message say? (Precise text, please.) -
I don't want to sync what is on my iPod to my iPad. (I have a 32gb iPod but only 16gb on iPad. The iPod I use mostly for music.) I can't seem to add the films I have downloaded onto iPad to iTunes. If I could do that, I could erase them from iPad to create more storage.
This is intensely confusing, sorry.Question.....
"I own an iPhone4, an iPod 3rd generation and an iPad 2. I use the same iTunes library but unfortunately synced iPad with a different computer before syncing to my own. Do I risk losing the films/apps I've downloaded onto my iPad if I sync with my iPod?"
Answer.....
Yes you will lose the films that you downloaded to the iPad when you sync with your own iTunes unless you transfer the purchases into your own iTunes library. Were these movies that you purchased? If so, you might be able to download them again for free. Do you have multiple computers that you sync from or is this someone else's purchased content?
You can select whatever you want to sync to all of your devices in iTunes, you do not have to sync the same content to all device.
iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
iOS: Syncing with iTunes - Support - Apple -
i have an I pod 4th generation and an I phone 5s, now i want to transfer my music files from I pod to I phone via Bluetooth, can you tell me how to do this??
Withour know what the error message said try:
iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues -
I have an iPod nano 6th generation and I downloaded 3 music videos but they won't play on my iPod. They only play on my laptop/iTunes. How can I get it to work? I know that my iPod should take music videos because there is a pre-made playlist called "Music videos". Can anyone help me please????
You can sync the music videos, but they won't play on your 6G Nano, because it does not support video playback. Sorry.
B-rock -
I have the iPod nano 6th generation, and I have had it since Christmas 2011 so it isn't that old; recently I went to listen to my music and found that the volume increase button is stuck (basically it's like when you press the volume button down to increase the volume, except it is stuck down like that and won't come back up) but it was only stuck about 3/4 of the way down. For about a week this was ok, I just had to press the button harder to make it go down and increase the volume, but now it won't increase the volume at all and it feels and looks as though the button is stuck the whole way in, even when I press the button with some force. I was wondering if anyone knew how I could fix it or if I need to take it to an apple store for them to fix it?!
Sorry if the way I have explained the problem is confusing, it's difficult to explain but it's extremely frustrating.This happened to me a few weeks ago. Instead of taking it to the Apple store and paying $ the 99 service charge ( I did give Apple 139.00 13 months ago! for this ipod), I saturated the end of a q-tip w/ WD 40 and carfefully rubbed around the perimeter of the power button. I waited a half hour and then cleaned of the excess WD 40. This unstuck my power button. I guess the WD 40 dissovled all the dirt under and around (also the consrtuction of the buttons is done w/ double sided tape-- maybe a design issue) the button. A friend tried isopropyl alcohol w/ great results. Try this before you give Appple any more $$ or get a new ipod. It's been 6 wks. and my button functions perfectly,
-
I recently purchased the new nano (7th generation) and I love it except for one issue. On my old 2nd generation nano, when I played podcasts, it would play podcasts one at a time. So if I had 20 episodes of a podcast on the device, it would stop at the end of each one.
With the new nano, I can select and play a podcast, but when it’s over, it goes straight to the next one without prompting. It keeps on playing all of the episodes of any podcast until you stop it manually. Setting the repeat function differently does not prevent episodes from being played automatically.
This can be very irritating when I only want to listen to one podcast. I’ve often fallen asleep listening to one episode of a podcast, only to be woken up hours later by the iPod working its way through all subsequent episodes. It is also annoying that any podcast which has started automatically in this way is marked as ‘played’ – even if you stop it within a few seconds. This makes it hard to keep track of what you have actually listened to.
Is there any way to set the iPod to play all the podcasts individually? I have read the User Guide from cover to cover, and can’t find a way of doing this.
MDDude or hot-spur,
Not fishy at all!!!! You really think I would have taken any more of my time to post a bogus rant? We'll no, it is unfortunately all true. I want to hear from anyone who is experiencing such problems not anyone else that wants to put there two cents in. I really don't need anymore hate or negativity. Just people's experiences because I feel like I am the only one having so many problems. Thank you
Yes, I have had some unfortunate bad luck to have so many problems at the same time, but some of them are just things you cannot do on the new OS.
Thank you again
Maybe you are looking for
-
All of my purchases from iTunes are stored on my iPhone and taking up all of my memory. I want to store the music in iCloud if possible, but I can't get it to work. I tried to sync my phone to iTunes, but the library on my computer is all screwed up!
-
Hi All, For one material my client create with the procurement type F wrongly. then they need to change the procurement type as E. but we found that field is grayed. how to chage the field to enterable and we need to change the procurement type thank
-
Idoc fields need to be formatted before being sent
Hi Gurus, I have a problem, Need to format fields, is there a way to formate within an idoc after the idoc has been created, but prior to the idoc being sent. idoc type - Pexr2002 I need to add decimals to the value. Answers are highlu rewarded. T
-
JDBC app like the ones in MS Access
Hi, Pardon me, but I am very new in jdbc databases and what to know where I can find information of how can I make a database application with buttons or links like Next and Previous, Last, First; and to show only 10 registers in a web page in a big
-
Have a developer on my team seeing this issue. It has repeated multiple times in his environment, but none of my other developers are having this issue. Could this be an environment issue or is it a bug? I have not found any other posts or bug with t