Mohan Basavarajappa

Greenhorn
+ Follow
since Dec 21, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mohan Basavarajappa

Hello,
I am developing webservice using SunMicroSystem JAX-RPC API. I am deploying it on tomcat and it is runing fine. If i try to deploy the same service on Sun Application Server it is not getting deployed and i am not able to access the service.

Can i deploy the service that is developed on the Tomcat on any other server like Sun Application server, JBoss, Oracle, Weblogic. Please give me some suggestion.

Thanking you.

Please send reply to this mail even if you know little bit about this problem.
15 years ago

Originally posted by Jesus Angeles:
Veshnu, have you solved this? I am having the same problem. How did you solve it?

I am trying to run the first example on j2ee jaxr tutorial, JAXRPublish.java 'asant run-publish', using Registry Server.



I have published a webservice in the RegistryServer(i hope you are using JWSDP). i executed the BCLM.bat file to publish my webservice. I followed the steps that are provided in the examples of JWSDP.
15 years ago
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)
15 years ago
Hello,
can anyone send me a document that explains the setps how to create a webservice using JWSDP without making use of IDE. I am not intrested in using IDE.
What is the directory structure to be maintained for deployment on tomcat container. what are tools to be used and when to be used.
The reason is, i am getting the error when i run wsdeploy.bat file.
I have integrated the JWSDP1.5 with tomcat50-jwsdp. This container is the one that is available at sunmicrosystem website


C:\Sun\jwsdp-1.5\jaxrpc\samples\Service>%JWSDP_HOME%\jaxrpc\bin\wsdeploy.bat -verbose -keep -tmpdir
build\tmpdir -o dist/myWStest.war build\myWEB-INF.war
info: created temporary directory: C:\Sun\jwsdp-1.5\jaxrpc\samples\Service\build\tmpdir\jaxrpc-deplo
y-34fcb6
error: java.io.FileNotFoundException: C:\Sun\jwsdp-1.5\jaxrpc\samples\Service\build\tmpdir\jaxrpc-de
ploy-34fcb6\WEB-INF\jaxrpc-ri.xml (The system cannot find the path specified)
java.io.FileNotFoundException: C:\Sun\jwsdp-1.5\jaxrpc\samples\Service\build\tmpdir\jaxrpc-deploy-34
fcb6\WEB-INF\jaxrpc-ri.xml (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:251)
at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)

IS THIS SOMETHING THAT IS RELATED TO MY SYSTEM SETTINGS
15 years ago
Hi
You spoke about the instructions. Can i get from you what is the instruction to be followed.

Thanks
15 years ago
Hello,
Thanks for the reply. I could not understand clearly the thing you liked to express in your reply. i was running the wsdeploy.bat file and it is not related with tomcat, right. The WAR file what we get after running the wsdeploy is deployed on Tomcat.
The Tomcat what you have mentioned is suggested for JWSDP.
Is it possible to solve this issue and get the WAR file, for deployment on tomcat. It wolud be great if i can do this.
Please give me the suggestion
15 years ago
Hello Ranchies,
Thannks for the reply. I have made of registry given in JWSDP and successfully registered and query the registry.
Thanks for the advice that has been given to go through jUDDI. I will look at it.
15 years ago
Hello ,
I am building a webservice for deployment on Tomcat. I made use of JWSDP 1.5 version. When i made use of wsdeploy.bat for generating war file that could be deployed on Tomcat , i am getting this Exception. Should i run first wscompile and then wsdeploy.
Please help me out.
The error message is

C:\Sun\jwsdp-1.5\jaxrpc\samples\StringService>%JWSDP_HOME%\jaxrpc\bin\wsdeploy.bat -verbose -o dist/
myWStest.war build\myWEB-INF.war
info: created temporary directory: C:\DOCUME~1\NODE6\LOCALS~1\Temp\jaxrpc-deploy-1c092c
info: removed temporary directory: C:\DOCUME~1\NODE6\LOCALS~1\Temp\jaxrpc-deploy-1c092c
error: java.io.FileNotFoundException: C:\DOCUME~1\NODE6\LOCALS~1\Temp\jaxrpc-deploy-1c092c\WEB-INF\j
axrpc-ri.xml (The system cannot find the path specified)
java.io.FileNotFoundException: C:\DOCUME~1\NODE6\LOCALS~1\Temp\jaxrpc-deploy-1c092c\WEB-INF\jaxrpc-r
i.xml (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:251)
at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
15 years ago
Hello Ranchis,
I am now learning about JAXR and UDDI. can anyone provide me some information how to setup Registry and make the services publish in that registry and How should clients access to get the service using the registry.


Thanks in advance,




Nice to Share thoughts
15 years ago
Hello,
I have developed web service using the following things,
1. NetBeans IDE 5.0 Beta version
2. Sun Application Server
3. J2EE 1.4 Specification
4. The JSR for web service in J2EE 1.4 platform is JSR 109. I think it is the latest version of JSR for web service.
The service developed is not getting deployed on tomcat. But, i could deploy the Client on Tomcat and access the Web Service running on Sun Application Server. I tried to deploy the webservice on tomcat in other machine, but it is nto working.
I like to know how achive the compatibility between different server while developing the web service. I saw that in JWSDP 1.6 samples there is a fiel called jaxrpc-ri.xml and in the webservice i created i am getting webservices.xml. I think it is on JSR 101, is there any incompatibility during deployment in these two standards.
Which is the latest and which i should learn, Help me out, please.
15 years ago
Hello,
Thanks for the Reply. I got some useful information from the reply you have sent. I am in dilemma with the last sentence of your reply, I will be very kindful to you if you get the same thing in bit elaborated manner.

Thank you once again.
15 years ago
Hello,
I am presently working with JAX-RPC to implement web services and i am a beginner. I just want to know which one is the best to implement web services. I am referring the book MONSON-HAEFEL for web services.
Which one do i choose?
1. JAX-RPC
2. Apache Axis
3. Apache Soap
4. JAX-WS and any other
I need to have compatibility for all server. My intent is to choose one among the above that provides good implementation of web services. I mainly aim at Tomcat.

Hello Monson-Haefel, i have seen you replying to the messages posted. I will be very kindful to you if you reply to this message.

Kindly reply me soon, Thanking you
15 years ago
Hello,
I am new to Java script and AJAX. I am getting a response of xml file (not xml tags or elements) and I have to parse that file and have to display using AJAX - UI. So, I need to parse that xml file (response) in java script. If any one can suggest me how to do it will be helpful.

Thanks in advance.
Hello ,
I am working with web services for first time. Could you provide me information how to work with SAAJ in implementing the web services.
In particular, how we can use SAAJ in implementing the SOAP protocol and work with web services.

Thank you
15 years ago