Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Object return type in JAR-RPC WebService?????

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello JavaRanchies,
I am trying to develop a webservice that Should return Object as return type(i.e., java.util.Object). I am unable to return the object in my program.

I am getting the following error message.
error: invalid type for JAX-RPC structure: java.lang.Object

I am using NetBeans 5.0 IDE.In this they have provided the option to return the Object.

Please give me suggestion

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Copying 2 files to D:\NetBeans 5.0 IDE Project WorkSpace\HashMapWS\build\web
library-inclusion-in-archive:
library-inclusion-in-manifest:
wscompile-init:
HashService_wscompile:
command line: wscompile "C:\Program Files\Java\jdk1.5.0_01\jre\bin\java.exe" -classpath "C:\Program Files\Java\jdk1.5.0_01\lib\tools.jar;D:\Sun\AppServer\lib\j2ee.jar;D:\Sun\AppServer\lib\saaj-api.jar;D:\Sun\AppServer\lib\saaj-impl.jar;D:\Sun\AppServer\lib\jaxrpc-api.jar;D:\Sun\AppServer\lib\jaxrpc-impl.jar;D:\NetBeans 5.0 IDE Project WorkSpace\HashMapWS\build\web\WEB-INF\classes" com.sun.xml.rpc.tools.wscompile.Main -d "D:\NetBeans 5.0 IDE Project WorkSpace\HashMapWS\build\generated\wsbinary" -define "-features:useonewayoperations, documentliteral, strict" -keep -mapping "D:\NetBeans 5.0 IDE Project WorkSpace\HashMapWS\build\web\WEB-INF\HashService-mapping.xml" -nd "D:\NetBeans 5.0 IDE Project WorkSpace\HashMapWS\build\web\WEB-INF\wsdl" -s "D:\NetBeans 5.0 IDE Project WorkSpace\HashMapWS\build\generated\wsservice" -verbose -Xprintstacktrace "D:\NetBeans 5.0 IDE Project WorkSpace\HashMapWS\src\java\org\kaizen\eagleeye\test\HashService-config.xml"
[creating model: HashService]
[creating service: HashService]
[creating port: org.kaizen.eagleeye.test.HashServiceSEI]
[creating operation: returnHashMap]
invalid type for JAX-RPC structure: java.lang.Object
at com.sun.xml.rpc.processor.modeler.rmi.LiteralTypeModeler.modelTypeLiteral(LiteralTypeModeler.java:330)
at com.sun.xml.rpc.processor.modeler.rmi.LiteralTypeModeler.modelTypeLiteral(LiteralTypeModeler.java:52)
at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.processDocumentLiteralMethod(RmiModeler.java:1202)
at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.processMethod(RmiModeler.java:826)
at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.processInterface(RmiModeler.java:748)
at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.modelPort(RmiModeler.java:683)
at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.buildLiteralModel(RmiModeler.java:603)
at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.buildModel(RmiModeler.java:457)
at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:88)
at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:63)
at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:714)
at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
at com.sun.xml.rpc.tools.wscompile.Main.main(Main.java:22)
error: invalid type for JAX-RPC structure: java.lang.Object
D:\NetBeans 5.0 IDE Project WorkSpace\HashMapWS\nbproject\build-impl.xml:292: wscompile failed
BUILD FAILED (total time: 1 second)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having the same problem and I'm also using NetBeans 5.0. Did you ever get this resolved?
Thanks,
Elizabeth
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic