Hello,I am currently working on a java project involving services in axis2.
I have written and compiled my code successfull..in java. I have used Jaxb
in my code. When I deug my code in Eclipse ide, My serivce class methods are
functioning well.M creating an jaxb context as follows in my code..
private JAXBContext jc;
jc = JAXBContext.newInstance(DomainPath);
where DomainPath=com.mds.decision.Response .................(my package
name.)
When i debug my code in java.... jc is created...
But when deploy this service class as my service in axis2 , and prepare a
client in .NET, by adding a web reference to the service deployed... and
invoke this service, a exception is thrown at the above code......
JaxbException....could not find ObjectFactory.class or jaxb.index...
I checked my code but found that ObjectFactory.class was present...but
jaxb.index was no where to be found...I tried googling it...but was no
reference to jaxb.index any where. But I found that it just contains the
entries of the classes with no .class or .java extension each on newline, so
that jaxb should knw which classes to load at runtime. So i myself made a
jaxb.index file and entered all the classes names and redeployed the service
and invoked it via .NET. But the same error....
My specifications are.....
Sun SDK , Eclipse sdk 3.3.01,Apache tomcat 5.5.27 , axis2 1.4
Visual Studio 2005.
Also I recompiled all the source files from my XSD using .....XJC
complier...but the jaxb.index file was not found
Can u Please tell me where am I going Wrong.....Or what may me the source of
my problem.
--
Kiran Narasareddy
Computers make very fast, very accurate mistakes.