This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Mohan Basavarajappa
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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)
 
Elizabeth Lopez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!