Hi Andrey, I responded on the Axis2 list, so please follow up there for now. Thanks,
- Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Andrey A. Chujko wrote: > Hi all, > > I have set of objects being extended from another one: > > <binding xmlns:tns="http://ns.url.com/" force-classes="true" > add-constructors="false"> > ... > <mapping abstract="true" class="model.Product" type-name="tns:Product"> > ... > </mapping> > <mapping abstract="true" class="model.Product" name="Product"> > <structure map-as="tns:Product"/> > </mapping> > > <mapping class="model.Application" name="Application" > extends="model.Product"> > ... > </mapping> > > <mapping class="model.Logo" name="Logo" extends="model.Product"> > ... > </mapping> > </binding> > > > All stubs generated successfully, but compilation is failed with following > messages: > > ... > [javac] /home/zzz/ContentSoap12Stub.java:1734: model.Product is abstract; > cannot be instantiated > [javac] uctx.getUnmarshaller(_type_index8).unmarshal(new > model.Product(), uctx) > [javac] ^ > [javac] /home/zzz/ContentSoap12Stub.java:2407: model.Product is abstract; > cannot be instantiated > [javac] uctx.getUnmarshaller(_type_index8).unmarshal(new > model.Product(), uctx) > [javac] ^ > [javac] /home/zzz/ContentSoap12Stub.java:4545: model.Product is abstract; > cannot be instantiated > [javac] uctx.getUnmarshaller(_type_index8).unmarshal(new > model.Product(), uctx) > [javac] ^ > [javac] /home/zzz/ContentSoap12Stub.java:5302: model.Product is abstract; > cannot be instantiated > [javac] uctx.getUnmarshaller(_type_index8).unmarshal(new > model.Product(), uctx) > [javac] ^ > [javac] /home/zzz/ContentSoapStub.java:1731: model.Product is abstract; > cannot be instantiated > [javac] uctx.getUnmarshaller(_type_index8).unmarshal(new > model.Product(), uctx) > [javac] ^ > [javac] /home/zzz/ContentSoapStub.java:2404: model.Product is abstract; > cannot be instantiated > [javac] uctx.getUnmarshaller(_type_index8).unmarshal(new > model.Product(), uctx) > [javac] ^ > [javac] /home/zzz/ContentSoapStub.java:4542: model.Product is abstract; > cannot be instantiated > [javac] uctx.getUnmarshaller(_type_index8).unmarshal(new > model.Product(), uctx) > [javac] ^ > [javac] /home/zzz/ContentSoapStub.java:5299: model.Product is abstract; > cannot be instantiated > [javac] uctx.getUnmarshaller(_type_index8).unmarshal(new > model.Product(), uctx) > ... > > I'm stuck with that issue. > Does someone of you guys has any idea why it trying to instantiate base > abstract class and how I could solve that? Am I doing something wrong? > > Any help will be appreciated greatly. > > Thanks, > Andrey. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users