tag:blogger.com,1999:blog-30587633.post2296523205344856577..comments2022-04-26T03:37:19.740+05:30Comments on My Wiki: Simple Webservice on JBoss using AxisJaikiranhttp://www.blogger.com/profile/08503182723143814781noreply@blogger.comBlogger89125tag:blogger.com,1999:blog-30587633.post-39464352302999899002012-02-16T22:16:28.750+05:302012-02-16T22:16:28.750+05:30Karthik, what trouble are you running into while d...Karthik, what trouble are you running into while deploying it? And what exact steps are you following?Jaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-44359249795054617732012-02-16T17:33:42.813+05:302012-02-16T17:33:42.813+05:30Hi,
Nice article and i am able to generate everyt...Hi,<br /><br />Nice article and i am able to generate everything. But onething i was not sure is how it is getting deployed in Jboss server. For it is not getting deployed on JBOSS server.<br /><br />I have custom version of JBOSS which is bundled with my application (EMC2 product has JBOSS bundled with it)..<br /><br />We are using that jboss for hosting EMC2 products.<br /><br />We have a requirement to deploy one pure J2ee webservice. That is where i followed your example and it is not getting deployed in JBOSSKarthikhttps://www.blogger.com/profile/00084809260688860091noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-73951795816917523162011-09-21T15:49:40.715+05:302011-09-21T15:49:40.715+05:30Hi... i am new to web services and this post was v...Hi... i am new to web services and this post was very helpful..<br /><br />I am using the same example but my jboss is running on the port 8084 instead of 8080. so i have changed the <br />location="http://localhost:8084/axis/services/HelloWorld" <br />for the target name="generateWSDL" in the build.xml.<br /><br />i am able to see the axis welcome page using the url<br /><br />http://localhost:8084/axis<br /><br />Now, i got an error while deploying the web service.<br /><br />deployWebservice:<br /> [java] - Unable to find required classes (javax.activation.DataHandler and<br />javax.mail.internet.MimeMultipart). Attachment support is disabled.<br /> [java] Processing file E:\SampleWebService\build\wsdd/com/vishal/deploy.wsd<br />d<br /> [java] Exception: AxisFault<br /> [java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userEx<br />ception<br /> [java] faultSubcode:<br /> [java] faultString: java.net.SocketException: Connection reset<br /> [java] faultActor:<br /> [java] faultNode:<br /> [java] faultDetail:<br /> [java] {http://xml.apache.org/axis/}stackTrace:java.net.SocketException<br />: Connection reset<br /> [java] at java.net.SocketInputStream.read(SocketInputStream.java:168)<br /> [java] at java.io.BufferedInputStream.fill(BufferedInputStream.java:218<br />)<br /> [java] at java.io.BufferedInputStream.read(BufferedInputStream.java:237<br />)<br /> [java] at org.apache.axis.transport.http.HTTPSender.readHeadersFromSock<br />et(HTTPSender.java:583)<br /> [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.j<br />ava:143)<br /> [java] at org.apache.axis.strategies.InvocationStrategy.visit(Invocatio<br />nStrategy.java:32)<br /> [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)<br /> [java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)<br /> [java] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)<br /><br /> [java] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)<br /> [java] at org.apache.axis.client.Call.invoke(Call.java:2767)<br /> [java] at org.apache.axis.client.Call.invoke(Call.java:1792)<br /> [java] at org.apache.axis.client.AdminClient.process(AdminClient.java:4<br />39)<br /> [java] at org.apache.axis.client.AdminClient.process(AdminClient.java:4<br />04)<br /> [java] at org.apache.axis.client.AdminClient.process(AdminClient.java:4<br />10)<br /> [java] at org.apache.axis.client.AdminClient.process(AdminClient.java:3<br />20)<br /> [java] at org.apache.axis.client.AdminClient.main(AdminClient.java:463)<br /><br /> [java]<br /> [java] {http://xml.apache.org/axis/}hostname:VishalA-PC<br /> [java]<br /> [java] Java Result: 1<br /><br />i tried the both way, deployed webservice with/without jboss running but getting the same error.<br /><br />can anyone help me with this problem. i badly need an answer because i have to use this in my project. Any help will be appreciated.<br /><br />Thanks in advance,<br />VishalVishalnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-47482316531614990352011-09-02T09:05:08.070+05:302011-09-02T09:05:08.070+05:30Thank you very much . This post helped me a lot .Thank you very much . This post helped me a lot .സ്നേഹിതന്https://www.blogger.com/profile/15608691241439405891noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-56552807428291944642011-08-12T12:16:36.552+05:302011-08-12T12:16:36.552+05:30Hi Your example and Explanation are excellent. But...Hi Your example and Explanation are excellent. But I am unable to create an Ant Target file. Could you please help meRamakrishna.Mhttps://www.blogger.com/profile/11917318426206310015noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-63547270117454696642010-11-19T04:40:48.251+05:302010-11-19T04:40:48.251+05:30@ziaD you must have forgotten to delete common-log...@ziaD you must have forgotten to delete common-logging and log4j jar files.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-22767714008184747712010-10-15T18:07:04.958+05:302010-10-15T18:07:04.958+05:30Hello, I use JBoss 4.2.2 and I'd like to deplo...Hello, I use JBoss 4.2.2 and I'd like to deploy axis 1.4. I followed your instructions, but it didn't worked at all. When I started up JBoss an error occurred. Something like "could not find config file". But I can't figure out what or where this file is. Could someone help me? Thank youziaDhttps://www.blogger.com/profile/08986411780649670447noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-42801331422164133402010-08-18T19:07:58.437+05:302010-08-18T19:07:58.437+05:30Hello all, those who ran the example successfully....Hello all, those who ran the example successfully. I'm having trouble in running the build.xml mentioned in the blog. I get "taskdef class org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask cannot be found" error in build.xml. I have axis-ant.jar and other required jars in classpath. Any advice.Unknownhttps://www.blogger.com/profile/08685124627758749395noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-64922450211950170062010-07-31T01:35:58.578+05:302010-07-31T01:35:58.578+05:30I am getting an error while compiling the stubs:
B...I am getting an error while compiling the stubs:<br />Buildfile: C:\Propworks7.1.1\AppWs\build\build.xml<br />compileStubs:<br /> [javac] Compiling 2 source files to C:\Propworks7.1.1\AppWs\build\classes<br /> [javac] C:\Propworks7.1.1\AppWs\build\wsdd\com\jaikiran\HelloWorldServiceServiceLocator.java:10: com.jaikiran.HelloWorldServiceServiceLocator is not abstract and does not override abstract method getServiceName() in javax.xml.rpc.Service<br /> [javac] public class HelloWorldServiceServiceLocator extends org.apache.axis.client.Service implements com.jaikiran.HelloWorldServiceService {<br /> [javac] ^<br /> [javac] C:\Propworks7.1.1\AppWs\build\wsdd\com\jaikiran\HelloWorldServiceServiceLocator.java:107: getServiceName() in com.jaikiran.HelloWorldServiceServiceLocator cannot implement getServiceName() in javax.xml.rpc.Service; attempting to use incompatible return type<br /> [javac] found : javax.xml.namespace.QName<br /> [javac] required: javax.xml.rpc.namespace.QName<br /> [javac] public javax.xml.namespace.QName getServiceName() {<br /> [javac] ^<br /> [javac] Note: C:\Propworks7.1.1\AppWs\build\wsdd\com\jaikiran\HelloWorldServiceServiceLocator.java uses unchecked or unsafe operations.<br /> [javac] Note: Recompile with -Xlint:unchecked for details.<br /> [javac] 2 errorsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-58871064717218467502010-04-25T23:19:05.905+05:302010-04-25T23:19:05.905+05:30Hi JaiKiran,
Nice article but still need ur help ...Hi JaiKiran,<br /><br />Nice article but still need ur help yaar.<br /><br />I followed the steps which you said. still i am getting this messages <br /><br />Buildfile: /RDOSS WorkSpace/SampleWebservice/build/build.xml<br />clean-all:<br /> [delete] Deleting directory /RDOSS WorkSpace/SampleWebservice/build/classes<br /> [delete] Deleting directory /RDOSS WorkSpace/SampleWebservice/build/wsdl<br /> [delete] Deleting directory /RDOSS WorkSpace/SampleWebservice/build/wsdd<br />compile:<br /> [mkdir] Created dir: /RDOSS WorkSpace/SampleWebservice/build/classes<br /> [javac] Compiling 2 source files to /RDOSS WorkSpace/SampleWebservice/build/classes<br />generateWSDL:<br /> [mkdir] Created dir: /RDOSS WorkSpace/SampleWebservice/build/wsdl<br />[axis-java2wsdl] Apr 25, 2010 11:17:19 PM org.apache.axis.utils.JavaUtils isAttachmentSupported<br />[axis-java2wsdl] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.<br />[axis-java2wsdl] Java2WSDL org.myapp.service.HelloWorldService<br />generateWSDD:<br /> [mkdir] Created dir: /RDOSS WorkSpace/SampleWebservice/build/wsdd<br />[axis-wsdl2java] Apr 25, 2010 11:17:19 PM org.apache.axis.utils.JavaUtils isAttachmentSupported<br />[axis-wsdl2java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.<br />[axis-wsdl2java] WSDL2Java /RDOSS WorkSpace/SampleWebservice/build/wsdl/HelloWorld.wsdl<br />compileStubs:<br /> [javac] Compiling 5 source files to /RDOSS WorkSpace/SampleWebservice/build/classes<br /> [javac] Note: /RDOSS WorkSpace/SampleWebservice/build/wsdd/com/jaikiran/HelloWorldServiceServiceLocator.java uses unchecked or unsafe operations.<br /> [javac] Note: Recompile with -Xlint:unchecked for details.<br />compile-client:<br />build-all:<br />BUILD SUCCESSFUL<br />Total time: 3 seconds<br /><br />can you please let me know what is the issue . And i am not able to get mailapi_1_3_1.jarUnknownhttps://www.blogger.com/profile/00783307812755478344noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-61056880209629105272009-12-22T07:01:28.620+05:302009-12-22T07:01:28.620+05:30Nice post -got things working fairly quickly. I wo...Nice post -got things working fairly quickly. I would add this change to the build file:<br /><br /> for <br /> task as well. Otherwise the package names get messed up.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-72576042200038277142009-12-14T18:49:17.698+05:302009-12-14T18:49:17.698+05:30Hello Jai,
Thanks for the great article!
I was tr...Hello Jai,<br />Thanks for the great article!<br /><br />I was trying to modify the Service class to take a Custom Java Pojo as a parameter to its method, the ant tasks executes fine, it creates correct Class binding as well and even my POJO gets compiled and is present in the jaikiran folder and I copied it to axis/classes.<br />So far so good but the moment I try to deploy this webservice I get the Exception:<br />[WSDDDeployableItem] Unable to deploy typemapping:{http://jaikiran}PreLoadEnrollmentRequestVO<br />java.lang.ClassNotFoundException: jaikiran.PreLoadEnrollmentRequestVO<br /><br />I have compiled the class myself, created a jar and copied to axis/Web-inf/lib but of No help<br /><br />It seems the Service method doesn't supports any CustomClass as a parameter to me.<br /><br />I have no idea as to how I am unable to pass through this basic step could you please help?<br /><br />Thanks in advance.Gopal Patelhttps://www.blogger.com/profile/06418612311826954419noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-86192599648316123812009-10-08T06:28:33.256+05:302009-10-08T06:28:33.256+05:30Hi, great article, explained neatly. Unfortunately...Hi, great article, explained neatly. Unfortunately I could not deploy with the following exception. I followed all steps exactly. Din't change anything, except the port number to 50000. I have other web applications running on the same server instance they work just fine. Axis page also opens up on port 50000. But, my webservice does not get deployed. Can you please throw some light...Thanks a ton.<br /><br /><br />[java] Exception: AxisFault<br />[java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException<br />[java] faultSubcode:<br />[java] faultString: java.net.ConnectException: Connection refused: connect<br />[java] faultActor:<br />[java] faultNode:<br />[java] faultDetail:<br />[java] {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection refused: connect<br />[java] at java.net.PlainSocketImpl.socketConnect(Native Method)<br />[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)<br />[java] atAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-72059202968218709832009-10-02T00:23:52.595+05:302009-10-02T00:23:52.595+05:30Hi Jai,
Can you post areply to this problem
java...Hi Jai,<br /><br />Can you post areply to this problem<br /><br />java] Exception: AxisFault<br />[java] faultCode: {http://xml.apache.org/axis/}HTTP<br />[java] faultSubcode:<br />[java] faultString: (401)Unauthorized<br />[java] faultActor:<br />[java] faultNode:<br />[java] faultDetail:<br />[java] {}:return code: 401<br /><br />thanks<br />sriAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-79588288827895889922009-09-24T02:30:00.011+05:302009-09-24T02:30:00.011+05:30Hi JaiKiran,
Thanks for excellent a...Hi JaiKiran,<br /> Thanks for excellent article, this is very clear and clean ,It works great.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-85044211720975544302009-08-05T19:44:31.907+05:302009-08-05T19:44:31.907+05:30Hi JaiKiran,
Thanks for this fine article..
can y...Hi JaiKiran,<br /><br />Thanks for this fine article..<br />can you please suggest me any pdf's that will explain web services architecture completely<br /><br />Thanks,<br />Kishore ReddyUnknownhttps://www.blogger.com/profile/02484080208613335996noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-57482552988704338602009-06-26T03:03:00.628+05:302009-06-26T03:03:00.628+05:30Hi JaiKiran, thanks for posting this great article...Hi JaiKiran, thanks for posting this great article. It really helped me.<br /><br />Regards<br />SrihariAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-6623218568979174352009-05-21T22:35:13.330+05:302009-05-21T22:35:13.330+05:30I have 2 questions:
1. What changes do I need to m...I have 2 questions:<br />1. What changes do I need to make if I need to deploy this WAR file to Weblogic 8.1? <br /><br />2. What actually happens when webservice is deployed? For eg, what files get copied to which locations?Adminhttps://www.blogger.com/profile/13789219165597092318noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-83809728143334927062009-03-25T19:30:00.000+05:302009-03-25T19:30:00.000+05:30Hi Jaikiran, thanks for this wonderful article. I...Hi Jaikiran, thanks for this wonderful article. I am a newbie in java and this article really helped.<BR/><BR/>My EAR application is moving from weblogic to JBoss. I just want to know what all files are required to be deployed on JBoss. thanks.Madhur Sharmahttps://www.blogger.com/profile/08731476963285408844noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-59979301045069343952009-03-25T07:12:00.000+05:302009-03-25T07:12:00.000+05:30I solved this problem too.server-config.xml file w...I solved this problem too.<BR/>server-config.xml file was missing in the C:\JBoss4\server\default\deploy\axis.war\WEB-INF for no known reason. Service got deployed. And example worked. Thanks Jaikiran. Nice blog.Unknownhttps://www.blogger.com/profile/04978244515735110062noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-24306841048594119782009-03-25T05:56:00.000+05:302009-03-25T05:56:00.000+05:30Now getting following error while deploying WSDD.[...Now getting following error while deploying WSDD.<BR/>[java] org.apache.axis.ConfigurationException: No engine configuration file - aborting!Unknownhttps://www.blogger.com/profile/04978244515735110062noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-58468070433719621622009-03-25T05:19:00.000+05:302009-03-25T05:19:00.000+05:30I solved the problem. I created a new workspace. I...I solved the problem. I created a new workspace. In D:\ drive instead of "C". And this time, gave no "white spaces" in between the workspace name. WSDD got generated.<BR/>Anup.Unknownhttps://www.blogger.com/profile/04978244515735110062noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-39205485665654795192009-03-24T17:36:00.000+05:302009-03-24T17:36:00.000+05:30Generate WSDL is fine. But I get following error w...Generate WSDL is fine. But I get following error while GenerateWSDD.<BR/><BR/>BUILD FAILED<BR/>C:\Documents and Settings\Anup\workspace\Java Web Service\build\build.xml:69: WSDL processing error for C:\Documents and Settings\Anup\workspace\Java Web Service\build\wsdl\HelloWorld.wsdl :<BR/> unknown protocol: c<BR/><BR/>Anup.Unknownhttps://www.blogger.com/profile/04978244515735110062noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-19586314138177349902009-02-16T12:32:00.000+05:302009-02-16T12:32:00.000+05:30Hi All,i created a webservice in tomcat 5.5 using ...Hi All,<BR/>i created a webservice in tomcat 5.5 using axis 2.0 webserver it working fine.now my requirement is to transfer the developed webservice from my system to production system which has JBoss server.so could any one guide me how to transfer webservices.<BR/>Many Thanks in AdvanceUnknownhttps://www.blogger.com/profile/13926694248821588646noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-23921786281513359562009-02-13T15:41:00.000+05:302009-02-13T15:41:00.000+05:30i'm facing a problem when deploy wsdd file to ...i'm facing a problem when deploy wsdd file to the server as below. Pls let me know what i'm wrong. thank you<BR/><BR/> [java] Processing file C:\Documents and Settings\Admin\Desktop\Web Directory\Tutorial\Sample Webservice\build\wsdd/com/jaikiran/deploy.wsdd<BR/> [java] Exception: AxisFault<BR/> [java] faultCode: {http://xml.apache.org/axis/}HTTP<BR/> [java] faultSubcode:<BR/> [java] faultString: (401)Unauthorized<BR/> [java] faultActor:<BR/> [java] faultNode:<BR/> [java] faultDetail:<BR/> [java] {}:return code: 401<BR/> [java] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><BR/> [java] <HTML><HEAD><BR/> [java] <TITLE>401 Unauthorized</TITLE><BR/> [java] </HEAD><BODY><H1>Unauthorized</H1><BR/> [java] </BODY></HTML><BR/> [java] {http://xml.apache.org/axis/}HttpErrorCode:401<BR/> [java] Java Result: 1<BR/>BUILD SUCCESSFUL<BR/>Total time: 2 secondsAnonymousnoreply@blogger.com