Axis2 wsdl2java jibx: No mapping defined for element
Hello, Mentioned an incorrect subject line in my earlier mail. My applogies. I am trying to integrate axis2 1.5 with jibx 1.2.1. I am not sure that is a problem with axis2 or jibx. I have the wsdl file and the schema with me. I have used the jibx org.jibx.schema.codegen.CodeGen to generate the objects & the binding file from the schema. I then enhance the classes using the jibx binding compiler way.Uptil now all fine. Then when am trying to generate server side skeletons using: org.apache.axis2.wsdl.WSDL2Java -uri Service.wsdl -d jibx -Ebindingfile binding.xml -s -ss -sd -scn ServiceName referring http://ws.apache.org/axis2/1_1_1/jibx/jibx-codegen-integration.html#wsdl I am getting errors. The stacktrace: Exception in thread "main" org.apache.axis2.wsdl.codegen..CodeGenerationException > java.lang.RuntimeException: No mapping defined for element > {http://sample/types }ElementName I am not sure where I went wrong, also I did find it being mentioned in quite a few number of places such as, http://marc.info/?l=axis-user&m=117028406518758&w=2 But I really did not find any solution, I think somebody has got some workaround for this. If I use jaxb instead of jibx, it works fine, there is not binding file in such a case, is the generated the binding file in correct, I am not really sure so hinting at different things. Can anyone help in some workaround. Regards, Anshuk
Re: Java2WSDL in Axis1.2 gives error java.lang.NoClassDefFoundError: org/apache/axis/wsdlgen/Java2WSDL
Hello, I am trying to integrate axis2 1.5 with jibx 1.2.1. I am not sure that is a problem with axis2 or jibx. I have the wsdl file and the schema with me. I have used the jibx org.jibx.schema.codegen.CodeGen to generate the objects & the binding file from the schema. I then enhance the classes using the jibx binding compiler way.Uptil now all fine. Then when am trying to generate server side skeletons using: org.apache.axis2.wsdl.WSDL2Java -uri Service.wsdl -d jibx -Ebindingfile binding.xml -s -ss -sd -scn ServiceName referring http://ws.apache.org/axis2/1_1_1/jibx/jibx-codegen-integration.html#wsdl I am getting errors. The stacktrace: Exception in thread "main" org.apache.axis2.wsdl.codegen..CodeGenerationException > java.lang.RuntimeException: No mapping defined for element > {http://sample/types }ElementName I am not sure where I went wrong, also I did find it being mentioned in quite a few number of places such as, http://marc.info/?l=axis-user&m=117028406518758&w=2 But I really did not find any solution, I think somebody has got some workaround for this. If I use jaxb instead of jibx, it works fine, there is not binding file in such a case, is the generated the binding file in correct, I am not really sure so hinting at different things. Can anyone help in some workaround. Regards, Anshuk
Accessing Web Service Problem
Hi, I am trying to call a simple RPC web service using the client stubs. But I am getting an error which I am not able to resolve.The error is : AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: White space is required between the public identifier and the system identifier. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException: White space is required between the public identifier and the system identifier. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213 ) at org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDS canner.java:651) at org.apache.xerces.framework.XMLDTDScanner.scanExternalID(XMLDTDScanne r.java:1198) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScann er.java:1104) at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDoc umentScanner.java:2145) at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentSc anner.java:2100) at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispa tch(XMLDocumentScanner.java:831) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at javax.xml.parsers.SAXParser.parse(SAXParser.java:393) at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa tionContextImpl.java:242) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.client.Call.invokeEngine(Call.java:2583) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at DefaultNamespace.LoginSoapBindingStub.login(LoginSoapBindingStub.java :165) at com.northplains.tsweb.soapclient.TSWebSOAPClient.login(TSWebSOAPClien t.java:42) at com.northplains.tsweb.soapclientinterface.login.facade.LoginFacade.lo gin(LoginFacade.java:39) at com.northplains.tsweb.soapclientinterface.login.action.LoginAction.pe rform(LoginAction.java:77) at org.apache.struts.action.Action.execute(Action.java:420) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148 2) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve .java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.Sta
Acessing Web Service Problem
Hi, I am trying to call a simple RPC web service using the client stubs. But I am getting an error which I am not able to resolve.The error is : AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: White space is required between the public identifier and the system identifier. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException: White space is required between the public identifier and the system identifier. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213 ) at org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDS canner.java:651) at org.apache.xerces.framework.XMLDTDScanner.scanExternalID(XMLDTDScanne r.java:1198) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScann er.java:1104) at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDoc umentScanner.java:2145) at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentSc anner.java:2100) at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispa tch(XMLDocumentScanner.java:831) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at javax.xml.parsers.SAXParser.parse(SAXParser.java:393) at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa tionContextImpl.java:242) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.client.Call.invokeEngine(Call.java:2583) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at DefaultNamespace.LoginSoapBindingStub.login(LoginSoapBindingStub.java :165) at com.northplains.tsweb.soapclient.TSWebSOAPClient.login(TSWebSOAPClien t.java:42) at com.northplains.tsweb.soapclientinterface.login.facade.LoginFacade.lo gin(LoginFacade.java:39) at com.northplains.tsweb.soapclientinterface.login.action.LoginAction.pe rform(LoginAction.java:77) at org.apache.struts.action.Action.execute(Action.java:420) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148 2) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve .java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.Sta
Regarding WSDL2Java
Ajith, Thanks a lot about the information regarding the Java2WSDL tool. I have few queries about the present WSDL2Java tool that is already bing released in the 0.94 version in axis2. I am having some issues with it. I want to know the WSDL2Java takes input the wsdl specfic to which spec 1.1 or 2.0?? I am giving a wsdl according to WSDL 1.1 (which is running fine with the WSDL2Java of Axis 1.2.1 and generating client stubs) But in this case of WSDL2Java of Axis2 its throwing an error: C:\WSDLS>java org.apache.axis.wsdl.WSDL2Java -uri RPCServices.wsdl Exception in thread "main" java.lang.NullPointerException at org.apache.axis.wsdl.codegen.CodeGenConfiguration.(CodeGenConfi guration.java:57) at org.apache.axis.wsdl.codegen.CodeGenConfiguration.(CodeGenConfi guration.java:50) at org.apache.axis.wsdl.codegen.CodeGenerationEngine.(CodeGenerati onEngine.java:66) at org.apache.axis.wsdl.WSDL2Code.main(WSDL2Code.java:28) at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:22) Can you let me know what is the problem??? Anshuk --- Ajith Ranabahu <[EMAIL PROTECTED]> wrote: > hi, > there were some code in 0.94 that did this WSDL > generation but it was not > really tested and was not made into a tool. But > recently we've added the > commandline tool support for this tool. You are > welcome to test out > Java2WSDL in the latest codebase. > BTW we only generate doc/lit WSDL's :) > > On 2/2/06, anshuk pal chaudhuri <[EMAIL PROTECTED]> > wrote: > > > > Hi, > > > > In Axis2 to generate a wsdl from the interfaces > and > > different command line parameters (likewise in > > previous axis versions using Java2WSDL) what is > the > > tool that is being used? > > > > Anshuk > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > -- > Ajith Ranabahu > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Wat Java2WSDL equivalent in Axis2?
Hi, In Axis2 to generate a wsdl from the interfaces and different command line parameters (likewise in previous axis versions using Java2WSDL) what is the tool that is being used? Anshuk __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: newbie to Axis2
ok. But actualli I am trying any of the soap engines present generate WSDL2.0 compliant.If any can you please let me know. Thanks, Anshuk --- Deepal Jayasinghe <[EMAIL PROTECTED]> wrote: > well WSDL 2.0 support is not fully completed , Axis2 > can read WSDL 2.0 but > the writing part is not complete , since we are > using WSDL 1.1 writer you > only get WSDL 1.1 doc when you ask for wsdl from > axis2 :) > > Thanks, > Deepal > > ~Future is Open~ > > ----- Original Message - > From: "anshuk pal chaudhuri" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, February 01, 2006 8:30 PM > Subject: Re: newbie to Axis2 > > > > Ajith, > > > > Sorry for the trouble.It must have been some other > > release which I was using.I downloaded the 0.94 > > version and its working ok.I have tried the > > MyService.aar services and its working fine.The > wsdl > > is also generated properly.But the wsdl that is > > generated is compliant to 1.1. > > Axis 2 supports WSDL 2.0.rite??How will one > service > > (say the sample web services)generate a WSDL 2.0 > > compliant wsdl? > > Can you please let me know. > > > > Anshuk > > > > --- Ajith Ranabahu <[EMAIL PROTECTED]> > wrote: > > > >> Hmm.. > >> We've checked and verified that all these > features > >> are available. Is this > >> surely the 0.94 release ? > >> > >> On 2/1/06, anshuk pal chaudhuri > <[EMAIL PROTECTED]> > >> wrote: > >> > > >> > yah Ajith, > >> > > >> > I have got one temporary solution to it.The > >> problem > >> > what i thot was that the servlet getting > created > >> for > >> > the HappyAxis.jsp was happaxis_jsp.java.Check > the > >> name > >> > caps in both the cases.I changed the > HappyAxis.jsp > >> in > >> > the axis2 to happaxis.jsp.Also changed the > >> > corresponding urlin the index.jsp page for the > >> > Validate Link. > >> > > >> > Now the axis is properly as its getting all the > >> the > >> > componenents. > >> > Now The problem that I am still facing is that > the > >> > service which I have deployed (the one with > echo > >> and > >> > ping operations, the userguide examples one),I > am > >> not > >> > able to see the wsdl of the service. > >> > Someone said that the web page where the list > of > >> > services is being displayed, the service name > >> > (MYService in this case) is a hyperlink which > will > >> > lead to the wsdl page.But my Sevice Name is not > >> any > >> > link.So how do I view the wsdl of my service > >> deployed > >> > in axis2 ??? > >> > > >> > Anshuk > >> > > >> > > >> > > >> > --- Ajith Ranabahu <[EMAIL PROTECTED]> > >> wrote: > >> > > >> > > Hmmm... Is this in the 0.94 release ? I'm > >> thinking > >> > > that it's something to > >> > > do with the servlet container setup but need > >> more > >> > > info to confirm. > >> > > You can try deleting the work directory if > you > >> are > >> > > using tomcat. > >> > > BTW can you post the details about your > servlet > >> > > container setup, OS and the > >> > > rest of the environment ? > >> > > > >> > > On 2/1/06, anshuk pal chaudhuri > >> <[EMAIL PROTECTED]> > >> > > wrote: > >> > > > > >> > > > Hi, > >> > > > > >> > > > I have installed axis2 web application but > >> when I > >> > > am > >> > > > trying to view the Axis Happiness Page > using > >> the > >> > > > Validate Link in order to know that whether > >> all > >> > > the > >> > > > componenets are properly installed or > not,its > >> > > throwing > >> > > > an error. > >> > > > > >> > > > java.lang.NoClassDefFoundError: > >> > > > org/apache/jsp/HappyAxis_jsp (wrong name: > >> > > > org/apache/jsp/happyaxis_jsp) > >> > > > > >> java.lang.ClassLoader.defineClass0(Native > >> > > Method) > >> > > > > >> > > > > >> > > > >> > > >> > > > java.lang.ClassLoader.defineClass(ClassLoader.java:537) > >> > > > > >> > > > > >> > > > >> > > >> > > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) > >> > > > > >> > > > > >> > > > >> > > >> > > > java.net.URLClassLoader.defineClass(URLClassLoader.java:251) > >> > > > > >> > > > > >> > > > >> > > >> > > > java.net.URLClassLoader.access$100(URLClassLoader.java:55) > >> > > > > >> > > > > >> > > > >> > > >> > > > java.net.URLClassLoader$1.run(URLClassLoader.java:194) > >> > > > > >> > > > >> > java.security.AccessController.doPrivileged(Native > >> > > > Method) > >> > > > > >> > > > > >> > > > >> > > >> > > > java.net.URLClassLoader.findClass(URLClassLoader.java:187) > >> > > > > >> > > > > >> > > > >> > > >> > > > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:156) > >> > > > > >> > > > > >> > > > >> > > >> > > > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69) > >> > > > > >> > > > > >> > > > === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: newbie to Axis2
Ajith, Sorry for the trouble.It must have been some other release which I was using.I downloaded the 0.94 version and its working ok.I have tried the MyService.aar services and its working fine.The wsdl is also generated properly.But the wsdl that is generated is compliant to 1.1. Axis 2 supports WSDL 2.0.rite??How will one service (say the sample web services)generate a WSDL 2.0 compliant wsdl? Can you please let me know. Anshuk --- Ajith Ranabahu <[EMAIL PROTECTED]> wrote: > Hmm.. > We've checked and verified that all these features > are available. Is this > surely the 0.94 release ? > > On 2/1/06, anshuk pal chaudhuri <[EMAIL PROTECTED]> > wrote: > > > > yah Ajith, > > > > I have got one temporary solution to it.The > problem > > what i thot was that the servlet getting created > for > > the HappyAxis.jsp was happaxis_jsp.java.Check the > name > > caps in both the cases.I changed the HappyAxis.jsp > in > > the axis2 to happaxis.jsp.Also changed the > > corresponding urlin the index.jsp page for the > > Validate Link. > > > > Now the axis is properly as its getting all the > the > > componenents. > > Now The problem that I am still facing is that the > > service which I have deployed (the one with echo > and > > ping operations, the userguide examples one),I am > not > > able to see the wsdl of the service. > > Someone said that the web page where the list of > > services is being displayed, the service name > > (MYService in this case) is a hyperlink which will > > lead to the wsdl page.But my Sevice Name is not > any > > link.So how do I view the wsdl of my service > deployed > > in axis2 ??? > > > > Anshuk > > > > > > > > --- Ajith Ranabahu <[EMAIL PROTECTED]> > wrote: > > > > > Hmmm... Is this in the 0.94 release ? I'm > thinking > > > that it's something to > > > do with the servlet container setup but need > more > > > info to confirm. > > > You can try deleting the work directory if you > are > > > using tomcat. > > > BTW can you post the details about your servlet > > > container setup, OS and the > > > rest of the environment ? > > > > > > On 2/1/06, anshuk pal chaudhuri > <[EMAIL PROTECTED]> > > > wrote: > > > > > > > > Hi, > > > > > > > > I have installed axis2 web application but > when I > > > am > > > > trying to view the Axis Happiness Page using > the > > > > Validate Link in order to know that whether > all > > > the > > > > componenets are properly installed or not,its > > > throwing > > > > an error. > > > > > > > > java.lang.NoClassDefFoundError: > > > > org/apache/jsp/HappyAxis_jsp (wrong name: > > > > org/apache/jsp/happyaxis_jsp) > > > > > java.lang.ClassLoader.defineClass0(Native > > > Method) > > > > > > > > > > > > > > java.lang.ClassLoader.defineClass(ClassLoader.java:537) > > > > > > > > > > > > > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) > > > > > > > > > > > > > > java.net.URLClassLoader.defineClass(URLClassLoader.java:251) > > > > > > > > > > > > > > java.net.URLClassLoader.access$100(URLClassLoader.java:55) > > > > > > > > > > > > > > java.net.URLClassLoader$1.run(URLClassLoader.java:194) > > > > > > > > java.security.AccessController.doPrivileged(Native > > > > Method) > > > > > > > > > > > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:187) > > > > > > > > > > > > > > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:156) > > > > > > > > > > > > > > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69) > > > > > > > > > > > > > > org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java > > > > :548) > > > > > > > > > > > > > > org.apache.jasper.servlet.JspServletWrapper.getServlet( > > > > JspServletWrapper.java:136) > > > > > > > > > > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java > > > > :307) > > > > > > > > > > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > > > > > > > > > > > > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > > > > > > > > > > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > > > > Can anbody let me know what the error can be? > > > > > > > > > > > > Anshuk > > > > > > > > > __ > > > > Do You Yahoo!? > > > > Tired of spam? Yahoo! Mail has the best spam > > > protection around > > > > http://mail.yahoo.com > > > > > > > > > > > > > > > > -- > > > Ajith Ranabahu > > > > > > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > -- > Ajith Ranabahu > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: newbie to Axis2
yah Ajith, I have got one temporary solution to it.The problem what i thot was that the servlet getting created for the HappyAxis.jsp was happaxis_jsp.java.Check the name caps in both the cases.I changed the HappyAxis.jsp in the axis2 to happaxis.jsp.Also changed the corresponding urlin the index.jsp page for the Validate Link. Now the axis is properly as its getting all the the componenents. Now The problem that I am still facing is that the service which I have deployed (the one with echo and ping operations, the userguide examples one),I am not able to see the wsdl of the service. Someone said that the web page where the list of services is being displayed, the service name (MYService in this case) is a hyperlink which will lead to the wsdl page.But my Sevice Name is not any link.So how do I view the wsdl of my service deployed in axis2 ??? Anshuk --- Ajith Ranabahu <[EMAIL PROTECTED]> wrote: > Hmmm... Is this in the 0.94 release ? I'm thinking > that it's something to > do with the servlet container setup but need more > info to confirm. > You can try deleting the work directory if you are > using tomcat. > BTW can you post the details about your servlet > container setup, OS and the > rest of the environment ? > > On 2/1/06, anshuk pal chaudhuri <[EMAIL PROTECTED]> > wrote: > > > > Hi, > > > > I have installed axis2 web application but when I > am > > trying to view the Axis Happiness Page using the > > Validate Link in order to know that whether all > the > > componenets are properly installed or not,its > throwing > > an error. > > > > java.lang.NoClassDefFoundError: > > org/apache/jsp/HappyAxis_jsp (wrong name: > > org/apache/jsp/happyaxis_jsp) > > java.lang.ClassLoader.defineClass0(Native > Method) > > > > > java.lang.ClassLoader.defineClass(ClassLoader.java:537) > > > > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) > > > > > java.net.URLClassLoader.defineClass(URLClassLoader.java:251) > > > > > java.net.URLClassLoader.access$100(URLClassLoader.java:55) > > > > > java.net.URLClassLoader$1.run(URLClassLoader.java:194) > > > java.security.AccessController.doPrivileged(Native > > Method) > > > > > java.net.URLClassLoader.findClass(URLClassLoader.java:187) > > > > > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:156) > > > > > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69) > > > > > org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java > > :548) > > > > > org.apache.jasper.servlet.JspServletWrapper.getServlet( > > JspServletWrapper.java:136) > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java > > :307) > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > > > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > Can anbody let me know what the error can be? > > > > > > Anshuk > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > -- > Ajith Ranabahu > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: newbie to Axis2
Hi, I have installed axis2 web application but when I am trying to view the Axis Happiness Page using the Validate Link in order to know that whether all the componenets are properly installed or not,its throwing an error. java.lang.NoClassDefFoundError: org/apache/jsp/HappyAxis_jsp (wrong name: org/apache/jsp/happyaxis_jsp) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:537) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) java.net.URLClassLoader.defineClass(URLClassLoader.java:251) java.net.URLClassLoader.access$100(URLClassLoader.java:55) java.net.URLClassLoader$1.run(URLClassLoader.java:194) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:187) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:156) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69) org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:548) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:136) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Can anbody let me know what the error can be? Anshuk __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
newbie to Axis2
Hi, I have deployed the sample web services of Axis2 (userguide:example) on Tomcat. But after deploying teh web service how do I view the dynamically generated wsdl like the way we used to do in case of Axis 1.x? Regards, Anshuk __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Query Regarding running custom servlet on axis
Hi, I have a doubt. I am using axis 1.2 on Tomcat 5.0.28 I have made my own custom servlet and put that inside the classes folder of axis.So I have also changed the web.xml file accordingly. I am just trying to print something inside ths servlet.Thats it. I am trying to run that servlet at http://localhost:8080/axis/servlet/MyServlet Now I am getting error exception exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) root cause java.lang.UnsupportedClassVersionError: MyServlet Unsupported major.minor version 49.0) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:537) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) So my doubt is whether it is possible to run my custom servlet on axis or not?Or do I need to put any extra jars? Please let me know.. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Java2WSDL Query
Hi Anne, Thanks for your reply. What I exactly meant was that according to the WSDL spec 1.1 we have an option of adding the soap:header inside the wsdl:binding-->wsdl:operation-->wsdl:input. But that soap:header can be added or can not be,depending upon the needs.(meaning soap:header element is an optional tag in the wsdl) In that context,does the Java2WSDL allows us,while creating the wsdl, to add the soap:header, if we want to? Thanks, Anshuk --- Anne Thomas Manes <[EMAIL PROTECTED]> wrote: > WSDL doesn't provide the ability to define optional > headers. Only mandatory > headers may be defined in WSDL. > > On 10/27/05, anshuk pal chaudhuri > <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Does the Java2WSDL tool allow us to add > soap:header > > element in the WSDL which is optional? > > > > Thanks > > Anshuk > > > > > > > > __ > > Yahoo! FareChase: Search multiple travel sites in > one click. > > http://farechase.yahoo.com > > > __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Java2WSDL Query
Hi, Does the Java2WSDL tool allow us to add soap:header element in the WSDL which is optional? Thanks Anshuk __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
Problem with WSDL4J
I am using wsdl4j apis to manipulate one wsdl file. But I am having one small problem. I am trying to add one message in the wsdl,i am printing the definition whether it is having the msg or not,it is showing the msg in the definition. But when I write with the WSDLWriter the message which I added is not being shown. How can I find out what I am doing wrong ? This is my code WSDLReaderImpl wsdlReaderImpl = new WSDLReaderImpl(); Definition definition = wsdlReaderImpl.readWSDL("One.wsdl"); Part userNamePart = definition.createPart(); userNamePart.setName("i"); userNamePart.setTypeName(new QName("http://www.w3.org/2001/XMLSchema","string";)); Part passwordPart = definition.createPart(); passwordPart.setName("j"); passwordPart.setTypeName(new QName("http://www.w3.org/2001/XMLSchema","string";)); Message msg = definition.createMessage(); QName qName = new QName("msg"); msgSecurity.setQName(qName); msgSecurity.addPart(iPart); msgSecurity.addPart(jPart); definition.addMessage(msg); WSDLWriterImpl wsdlWriterImpl = new WSDLWriterImpl(); wsdlWriterImpl.writeWSDL(definition, System.out); Thanks in advance. Can anyone let me know,whether I need to add anything else or not? Anshuk __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
Regarding SOAP Header Information in WSDL
Hi, I am using Axis 1.2.1 When I am deploying a web service,the WSDL file is being generated. But I want to incorporate inside the WSDL ,that when the client is sending the SOAP Request, he/she must send the SOAP header with some elements inside the header too. This I want to convey inside the WSDL which is being generated. Is it possible? Thanks in advance, Regards, Anshuk __ Yahoo! for Good Donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/
Versions
Guys, I have downloaded Axis 1.2.1 .I want to know that in that particular case what is the Version of the SOAP it using,is it Soap 1.2? And the WSDL being generated for the web services,what is the version of the WSDL?is WSDL 2.0? Anshuk __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Time Analysis
I am invoking external web service from my Axis Client.Now what i wantto do is that is to analyze the performance of the web service from thetime analysis point of view. Say the the total time (T)= ServiceTime(S)+ MessageTime(M)+Waiting Time (W) How do i Do that? Thanksin advance. Anshuk
Need Links
Please give me the useful links for the forums of XMLSecurity using xmlsec.jar (NOT using XSS4J) __ Do you Yahoo!? Yahoo! Personals - Better first dates. More second dates. http://personals.yahoo.com
How does one extract the key (say Symmetric Key) from the Key Info?
How does one extract the value of the symmetric key from the KeyInfo Element from the Encrypted XML Document? That I am trying to use In XML Decryption. And i am trying to do that using XML Security APIS. Looking forward for ur reply. __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs
How does one extract the key (say Symmetric Key) from the Key Info?
--- Davanum Srinivas <[EMAIL PROTECTED]> wrote: > see the code in wss4j > > > On Fri, 11 Mar 2005 06:12:29 -0800 (PST), anshuk pal > chaudhuri > <[EMAIL PROTECTED]> wrote: > > I was trying to implemennt X.509v3 Binary Security > > Token. > > I have encrypted an x.509 cerificate using > > Bse64Encoding and also I have the encrypted value. > > Now, > > How do I decrypt that and get back the > certificate? > > Please help me out > > > > > > __ > > Do you Yahoo!? > > Yahoo! Small Business - Try our new resources > site! > > http://smallbusiness.yahoo.com/resources/ > > > > > -- > Davanum Srinivas - > http://webservices.apache.org/~dims/ > __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
How to implement encryption of soap enveleope messages using wss4j?
I have got the structure of the encrypted body,i mean how it should it look like. which class should we need to use and what are the methods should be used? __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
How to convert Encrypted Binary Token value to a Crypto Instance?
I have the encrpyted Binary Token value. I need to get the crypto instance out of it. How do I do that? Plase help me. __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
Binary Token
My objective is to 1. genearate a binary security token using wss4j apis from a certicate and then again 2. to retrieve back the certicate and its details back from the Binary64 encoded value. My first part is done.What should be the code of the 2nd part? I have this code of generating a certifcate. CertificateFactory certificatefactory = CertificateFactory.getInstance("X.509"); //Open the file. FileInputStream fileinputstream = new FileInputStream("C:/ABC.cer"); // Generate a certificate from the data in the file. X509Certificate x509certificate = (X509Certificate)certificatefactory.generateCertificate(fileinputstream); Now the code for generating the Encoded Binary64 value using wss4j.. WSSConfig wsconfig = WSSConfig.getDefaultWSConfig(); X509Security x509 =new X509Security(wsconfig,doc); x509.setX509Certificate(x509certificate); The request contains the binary token value in the header. How do I retrieve back the certificate details from the generated Encoded Binary64 value using wss4j api? Please send me the code using that. __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
Re: Query Regarding Binary Security Token
i was implementing with wss4j only...the first encoding part is done but i am not able to do that the other round please send me the code. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Query Regarding Binary Security Token
I was trying to implemennt X.509v3 Binary Security Token. I have encrypted an x.509 cerificate using Bse64Encoding and also I have the encrypted value. Now, How do I decrypt that and get back the certificate? Please help me out __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
WSS4J in WebSphere 5.1.2??????
I have a simple Web Service in WebSphere which is working fine. Now I want to secure that service using wss4j UserName Token. I have included the wss4j jar. Then what is the code and way to go ahead to secure the service using the wss4j apis? I have been trying this for a lot many days.But still I am unsuccessful Please help me out... __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail
How do I implement wss4j in Websphere 5.1.2?
I have a simple web service in WSAD. I have also added the wss4j.jar file.Thus I will be able to access the classes. But how do I secure the web service using UserName Token using the wss4j apis in websphere? Please let me know. I am really stuck on that. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com