Two classes have the same XML type name??? Please, help...

Hello!
I have a simple web service class. I generated the ws server-side classes using wsgen.
I created a jar file from the generated code.
Then :
Endpoint endPoint = Endpoint.create(
new WebServicesUnitImpl()
String wsFinalName = "http://localhost:9999/akarmi";
endPoint.publish( wsFinalName );
The web service started fine.
Then called wsimport, and the generated classes have been placed into a jar file.
Then called the code like this:
WebServicesUnitImplService service = new WebServicesUnitImplService();
WebServicesUnitImpl unit = service.getWebServicesUnitImplPort();
unit.serviceXXX();
but the code doesn't work at all, resulting this error message:
Two classes have the same XML type name "{http://ws.components.core.ilogique.vii.com/}getMessages". Use @XmlType.name and @XmlType.namespace to assign different names to them.
     this problem is related to the following location:
          at com.vii.ilogique.core.components.ws.GetMessages
          at public com.vii.ilogique.core.components.ws.GetMessages com.vii.ilogique.core.components.ws.ObjectFactory.createGetMessages()
          at com.vii.ilogique.core.components.ws.ObjectFactory
     this problem is related to the following location:
          at com.vii.ilogique.core.components.ws.GetMessages
I have this error report on all generated class file! How can i fix this?
What is the main problem? The SE usage? I copied the lates jax-ws jars into endorsed lib resulting the same.
Any help is appreciate.

Hello!
I have a simple web service class. I generated the ws server-side classes using wsgen.
I created a jar file from the generated code.
Then :
Endpoint endPoint = Endpoint.create(
new WebServicesUnitImpl()
String wsFinalName = "http://localhost:9999/akarmi";
endPoint.publish( wsFinalName );
The web service started fine.
Then called wsimport, and the generated classes have been placed into a jar file.
Then called the code like this:
WebServicesUnitImplService service = new WebServicesUnitImplService();
WebServicesUnitImpl unit = service.getWebServicesUnitImplPort();
unit.serviceXXX();
but the code doesn't work at all, resulting this error message:
Two classes have the same XML type name "{http://ws.components.core.ilogique.vii.com/}getMessages". Use @XmlType.name and @XmlType.namespace to assign different names to them.
     this problem is related to the following location:
          at com.vii.ilogique.core.components.ws.GetMessages
          at public com.vii.ilogique.core.components.ws.GetMessages com.vii.ilogique.core.components.ws.ObjectFactory.createGetMessages()
          at com.vii.ilogique.core.components.ws.ObjectFactory
     this problem is related to the following location:
          at com.vii.ilogique.core.components.ws.GetMessages
I have this error report on all generated class file! How can i fix this?
What is the main problem? The SE usage? I copied the lates jax-ws jars into endorsed lib resulting the same.
Any help is appreciate.

Similar Messages

  • Getting the JAXB exception like "Two classes have the same XML type name-"

    Getting the JAXB exception like "Two classes have the same XML type name...",
    Here is the exception details:
    Exception in thread "main" com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions Two classes have the same XML type name "city". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.model.City at public com.model.City com.model.Address.getCurrentCity() at com.model.Address this problem is related to the following location: at com.common.City at public com.common.City com.model.Address.getPreviousCity() at com.model.Address
    at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(Unknown Source) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.xml.bind.ContextFinder.newInstance(Unknown Source) at javax.xml.bind.ContextFinder.find(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at com.PojoToXSD.main(PojoToXSD.java:17)
    I took the example like:
    package com.model; ---->this package contains 'Address' class and 'City' class
    public class Address {
    private String areaName; private City currentCity; private com.common.City previousCity;
    package com.model;
    public class City {
    private String cityName;
    Another city class in "com.common" package.
    package com.common;
    public class City {
    private String pinCode;
    We need to create XSDs and needs to do the Marshalling and unmarshalling with the existing code in our project(like as above example code), code does not have any annotations like "@XmlRootElement/@XmlType" and we can not able to change the source code.
    I would like to know is there any solution to fix the above issue or any other ways to create XSDs and marshaling/unmarshalling(like MOXy..etc)?
    It would be great if i can get the solution from any one....May thanks in advance.
    Thanks,
    Satya.

    Getting the JAXB exception like "Two classes have the same XML type name...",
    Here is the exception details:
    Exception in thread "main" com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions Two classes have the same XML type name "city". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.model.City at public com.model.City com.model.Address.getCurrentCity() at com.model.Address this problem is related to the following location: at com.common.City at public com.common.City com.model.Address.getPreviousCity() at com.model.Address
    at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(Unknown Source) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.xml.bind.ContextFinder.newInstance(Unknown Source) at javax.xml.bind.ContextFinder.find(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at com.PojoToXSD.main(PojoToXSD.java:17)
    I took the example like:
    package com.model; ---->this package contains 'Address' class and 'City' class
    public class Address {
    private String areaName; private City currentCity; private com.common.City previousCity;
    package com.model;
    public class City {
    private String cityName;
    Another city class in "com.common" package.
    package com.common;
    public class City {
    private String pinCode;
    We need to create XSDs and needs to do the Marshalling and unmarshalling with the existing code in our project(like as above example code), code does not have any annotations like "@XmlRootElement/@XmlType" and we can not able to change the source code.
    I would like to know is there any solution to fix the above issue or any other ways to create XSDs and marshaling/unmarshalling(like MOXy..etc)?
    It would be great if i can get the solution from any one....May thanks in advance.
    Thanks,
    Satya.

  • Two R3 servers have the same logical system name?

    Can two R3 servers have the same logical system name present in the same network? We plan to clone our production server and let the clone reside in the same network. The clone is identical with the production server with the same SID, hostname, logical system name, but different IP address.

    Hi
    Check this  [Link|http://help.sap.com/saphelp_nw70/helpdata/EN/da/5990df015b5b43a36f6ce7fa1ee8c0/content.htm]will cleare you doubt
    Regards
    Uday

  • Can two Iphones have the same account/email address?

    Can two iphones have the same account/email address? I bought two phones-one for my wife and the other for myself. They are both under the same account /itunes account /email address-Would this cause a conflict with the two phones?

    No, as long as you want to share the same account for iCloud's services like Mail, Calendars, Contacts, Reminders, Notes, iCloud, Documents etc.
    I personally would create two accounts so that everyone could have and use  heir own mail account, address book, create meetings, reminders etc. without reading and deleting stuff of the other person.

  • TS3899 Can two people have the same email address and password on their phone?

    Can two people have the same email address and password on their phone?

    I guess so.    But the email content will mirror on both phones.
    If you are talking about your Apple ID and iCloud email, yes, it is possible, but again the phones will mirror.   You should not have the same Apple ID and iCloud both.  
    Why?
    If you explain the reason for the question we may have a solution that works for you.

  • LMDB - SLD "Source and target system have the same object server name"

    Hi,
    the system is a SM7.1 SP1
    For some reason (Object-Server-Name changed), the job that syncs the sld and lmdb cancels...
    I set the LMDB-Object-Server-Name to its original Name...
    Now i've deleted the sync-config in the solman_setup and try to start a new sync, but i get the following error, when i try to configure the source-system:
    'Source and target system have the same object server name: CISM318'
    But the names are different: 'SM3' (LMDB) and 'CISM318' (SLD)
    Any suggestions ?
    best regards
    Christoph
    Edited by: Christoph Bastian on Aug 26, 2011 9:37 AM
    Edited by: Christoph Bastian on Aug 26, 2011 11:18 AM

    problem solved...
    Apparently the sync needs some hours to finish a object-server-name-change...
    best regards
    Christoph

  • My iPad and iPhone have the same syncing calendar but my Windows 7 PC with iCloud does not sync/show the same calendar...please help!

    My iPad and iPhone have the same syncing calendar but my Windows 7 PC with iCloud does not sync/show the same calendar...please help!

    iCloud will not sycn a calendar from an external source.  In order to use iCloud to sync it, you would have to move it to iCloud and stop using Google.  I know how to do that on a Mac, but I'm not sure how to do it on a PC.  If you're using Outlook, I suspect you export it as an .ics file to your desktop, then import it to the iCloud account in Outlook.  I'm sure you could use Google to find the specific steps.
    However, there's really no reason not to just use Google to sync your calendar across your devices.  Instead, just continue to use Goole calendar on all your devices and they should stay in sync.  Take a look at this video: http://www.youtube.com/watch?v=C0Jj0KFgbYI.

  • My iMac suddenly has a USB problem. I can connect to drives and printers. I am able to pul info off from drives. When I try to send info to a drive or printer, the connection is lost. All USB ports appear to have the same problem. Can anyone help?

    My iMac suddenly has a USB problem. I can connect to drives and printers. I am able to pul info off from drives. When I try to send info to a drive or printer, the connection is lost. All USB ports appear to have the same problem. Can anyone help?

    Please do 2-3 SMC and PRAM resets back to back and retest. Also use new cables, they can go bad.
    Intel iMac SMC and PRAM resets

  • We lost access to are computers in the last two month and we want to know how to deauthorize two computers from the itunes account can you please help us?

    We lost access to are computers in the last two months and we want to know how to deauthorize two computers from the ituns account can you please help me please?

    If you don't have access to the computers to manually deauthorize them (they were sold, stolen, etc), then you have to log into your account, deauthorize all computers, and then re-authorize the machine(s) that you want to have access. This page explains how.

  • How do I get rid of the Microsoft Setup Assistant loop? I migrated my software/documents from another laptop so don't have the disk to reinstall. Please help! Can't open any Microsoft Office software, like Word, and stuck in a loop?

    I migrated my software/documents from another laptop so don't have the disk to reinstall. Please help! Can't open any Microsoft Office software, like Word (for 2008), and stuck in a loop?
    Whenever I select Word Microsoft Setup Assistant appears, asks for feedback, then after selecting okay (both on saying yes or no to feedback) goes on to a registration page. When I click on this it says I've already registered so I just click okay, and then move on to a update page. After this, if I click on Word, the process repeats itself.
    As I said, I don't have the disk to reinstall, and can't find the Office Settings to delete as many pages have suggested I should try. Safe Boot restarting also hasn't worked... Really stuck and need Word very soon for work.
    If you can help, that would be great, and feel free to ask any questions about the situation as I'm not an expert here.
    Cheers,
    Jack

    First, export your contact from iCloud.com and save them on your computer in a safe spot some where (like you desktop).  Use this to help you do this: http://support.apple.com/kb/PH3606
    Next, on both of your devices, go to Settings > iCloud and turn on contacts and select Merge. Then turn off contacts and select 'Delete form my [device]' when prompted.
    Now go back to iCloud.com and select a contact (yes they will all be messed up again) and select Command+A on a Mac or Control+A on a PC to select all of the contacts.  Tap the delete key on your keyboard (or right click /control click a contact and select delete).
    You iPhone, iPad and iCloud.com should not be empty for contacts.
    Go back to Settings > iCloud on both devices and turn on contacts again (you should not see merge this time).
    Next, go back to iCloud.com and import your contacts (those exported .vcards).  You can either drag and drop them into the empty contacts list in your web browser, or you can use the gear icon to import.
    You cleaned up contacts should import correctly into iCloud.com and sync to both of your devices.
    Good luck.

  • When i turn on itunes, it crashes automatically with the error message saying "itunes has encountered a problem and needs to close." I've tried reinstalling itunes but its the same. CAN SOMEONE PLEASE HELP!!!

    when i turn on itunes, it crashes automatically with the error message saying "itunes has encountered a problem and needs to close." I've tried reinstalling itunes but its the same. CAN SOMEONE PLEASE HELP!!!

    Try:
    iOS: If you can't back up or restore from a backup in iTunes

  • Testing if two tables have the same structure

    Hi,
    I am looking for a tool that provides support for verifying whether two tables or databases schemas are same or not.
    I want to input two sql script files:
    1. one containing the create table for creating a table with name, id and email
    2. other containing the create table for creating a table with name, id and an alter table statement for adding the email.
    Now i have to test whether above two sql scripts will have the same impact on database.
    This is just the simpler form of veru complex sql script file that i am working on.
    Can DBunit do this and how.
    Its very urgent. I will appreciate any help.

    Repeated thread at: more clarification about previous problem

  • I cannot log onto firefox. When I try I keep getting the same message: sorry for the crash shall we restart? When I click on restart the same message appears. I ried re-booting but the same message appears. Please help.

    Firefox might have crashed permanently, I don't know. I have tried repeatedly to log on but continue to get the same message "sorry we have crashed" I clicked re-start but the exact same message appears. Please help.

    Do a clean reinstall and delete the Firefox program folder before (re)installing a fresh copy of the current Firefox release.
    *Download the full Firefox installer and save the file to the desktop<br>https://www.mozilla.org/en-US/firefox/all/
    If possible uninstall your current Firefox version to cleanup the Windows registry and settings in security software.
    *Do NOT remove "personal data" when you uninstall your current Firefox version, because this will remove all profile folders and you lose personal data like bookmarks and passwords including data in profiles created by other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure NOT to remove personal data when you uninstall Firefox as that will remove all Firefox profile folders and you lose your personal data.
    If you keep having problems then also create a new profile.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • HT204074 I wish to re attach my device to my iTunes account but I do not appear to have the manage devices option - someone please help

    I wish to re attach my device to my iTunes account but I do not appear to have the manage devices option - someone please help

    If you want to add it then you need to do one of the 3 things mentioned on that page e.g. use iTunes Match on your iPad, use automatic downloads on it, or redownload one of your past purchases. I think that the 'manage devices' section will only show when you have one or more devices/computers associated to your account, if you don't have any associated then it won't appear.

  • Parametric inner classes have the same parametric tpye?

    The qestion I have is:
    If you have a parametric inner class with the name of the type parameter the same as the one of the parametric "outer" class. Are they the same?
    I think they should be, but I just made an obeservation that they probably aren't.
    The follwing code does not compile
    public class POC<E> {
        public Iterator<E> iterator() {
            return null;
        private class Magic<E> {
            private Iterator<E> iterator;
            public Magic() {
                Magic.this.iterator = POC.this.iterator();
    }What actually bugs me, is the error I got:
    incompatible types
    found: java.uti.Iterator<E>
    required: java.util.Iterator<E>
    hu? To me this looks like a match.
    I could get it to compile with an Instance of Iterator<E> passed to the constructor in stead of getting it by myself.
    And I use 1.5rc

    Probably because types E and T are not correlated:
    public class POC<E> {
        public Iterator<E> iterator() {
            return null;
        private class Magic<T> {
            private Iterator<T> iterator;
            public Magic() {
                Magic.this.iterator = POC.this.iterator();
    }The error message in this case is:
    POC.java: : incompatible types
    found   : java.util.Iterator<E>
    required: java.util.Iterator<T>
                Magic.this.iterator = POC.this.iterator();I've succeded to compile the following two programs:
    //1.
    public class POC<E> {
        public Iterator<E> iterator() {
            return null;
        private class Magic<E> {
            private Iterator<E> iterator;
            public Magic() {
                POC<E>  p = new POC<E>();
                iterator = p.iterator();
    // 2.
    public class POC<E> {
        public static <E> Iterator<E> iterator() {
            return null;
        private static class Magic<E> {
            private Iterator<E> iterator;
            public Magic() {
                iterator = POC.iterator();
    }Which one suits you best?
    Best regards,
    Andrej

Maybe you are looking for

  • I don't trust my iPhoto Library!

    I am in the process of archiving old photos, and I would like to figure out the best way for me to do this. I have about 6,000 photos that span back to 2005 on my current laptop. I recently upgraded from my original operating system to Snow Leopard.

  • Cropping Images with Opacity Masks | Learn Illustrator CS6 | Adobe TV

    In this video you will learn a versatile method for cropping images in Adobe Illustrator CS6 and CS5. Using opacity masks allows you to retain the area of the image you cropped out, modify the clipping path later, and use complex blending modes, tran

  • Report designer requirement

    hi, in query data is displaying in this way matno     salesno       matquan        price m001        s001             10             1000     -                s002             11             2000     -                s003             12             3

  • Overexposed images when not

    I got this problem in Photoshop CS3 and Bridge where all RAW/JPGS files appear to be overexposed when they are not. I had my computer repaired and after uninstalling and reinstalling the program, this problem shows up. All video drivers are okay and

  • BI Authorisations - before or after SQL

    Just wanted to clarify for my own piece of mind If you have a infobject that for example you specify as user input AND then have a authorisation object Does (as I believe) the full result set gets selected from the database and then the OLAP processo