XML-RPC with Servlet Example

Hi,
I was wondering if someone could point me to a good, simple example of using XML-RPC with a servlet. I have tried Apache's site where they write: "A full example servlet is included in the package" but I've downloaded it twice from two different mirrors and it is not there. Neither is the entire "examples" directory listed in the README. Hence, my request here. Thanks for any help you can provide.

Push...

Similar Messages

  • XML RPC with LabVIEW

    Has anyone written VIs or similair to handle XML-RPC communciation over HTTP? I don't want to reinvent the wheel. Thanks!

    I'm starting a thread on NI Community to build a XML-RPC client for LabVIEW. Please contribute your feature requests and feedback there.
    http://decibel.ni.com/content/docs/DOC-13287
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Servlets & XML-RPC Example

    Since I am not having any luck on the Java & XML forum (http://forum.java.sun.com/thread.jsp?forum=34&thread=512728&tstart=0&trange=15)
    I thought I would try here. Does anyone know of a good example on the web they can point me to that shows XML-RPC with servlets as I cannot find any and the examples dir from the Apache distribution of XML-RPC (which is supposed to have such an example) is MIA. Thanks.

    hello,
    I am looking for the same servlet xml-rpc example, Have you found it ?
    nojkan

  • Help needed. Problem with servlet.

    Hello ppl. Ok. I've never really needed to implement servlets in my projects before but I experimented by writing a simple helloworld servlet. It compiled successfully and I tested it in the examples servlet dir and it worked. To test it in the ROOT dir, I placed the servlet in the ROOT/WEB-INF/classes folder and edited the web.xml file with:
    <servlet>
              <servlet-name>HelloWorldExample</servlet-name>
              <servlet-class>HelloWorldExample</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>HelloWorldExample</servlet-name>
              <url-pattern>servlet/*</url-pattern>
         </servlet-mapping>
    When I try and execute the servlet by using this URL: localhost:8080/servlet/helloworld I get an internal server error and the server crashes. I removed the entry from the web.xml file and Tomcat started up again. What went wrong? Can someone enlighten me in how to get my test servlet working becuase i may use them in the future. Thanks.

    Nope, Still didnt work. As soon as I put in:
    <servlet>
         <servlet-name>HelloWorldExample</servlet-name>
         <servlet-class>HelloWorldExample</servlet-class>
         </servlet>
         <servlet-mapping>
         <servlet-name>HelloWorldExample</servlet-name>
         <url-pattern>servlet/HelloWorldExample</url-pattern>
         </servlet-mapping>
    Tomcat went offline!
    I have another entry which is:
    <servlet>
              <servlet-name>org.apache.jsp.index_jsp</servlet-name>
              <servlet-class>org.apache.jsp.index_jsp</servlet-clas
    >
         </servlet>
         <servlet-mapping>
              <servlet-name>org.apache.jsp.index_jsp</servlet-name>
              <url-pattern>/index.jsp</url-pattern>
         </servlet-mapping>
    Do you think they may be conflicting? Thanks.Tomcat going offline is quite weird. However,
    <url-pattern>/index.jsp</url-pattern>
    this is perfectly valid. Lemme ask you this: did u come up with this stuff on your own or was it generated for you by the container? It looks like it was generated upon compilation of the jsp. If that is the case it should cause any conflicts. However now if you want to invoke the servlet/jsp you must use a URL like:
    http://localhost:<PORT_NO>/index.jsp
    Cheers

  • Doing XML-RPC on J2ME devices

    I'm interested in doing some very simple XML-RPC (http://www.xmlrpc.com/) on a MIDP1.0 type of device.
    I discovered the useful but now apparently defunct kxmlrpc (http://kxmlrpc.objectweb.org/project/aboutProject/index.html). After spending two days chasing, and finally "fixing", an obscure, missing invocation of parser.skip() in XmlRPCParser.parseValue(), I concluded there has to be a better way to do XML-RPC on J2ME.
    I discovered JSR 172, but it looks like the API encourages SOAP programming, which doesn't meet my XML-RPC requirement. I could find no examples illustrating how to to XML-RPC with JSR 172 interfaces, although this doesn't prove one can't.
    How are people doing XML-RPC on J2ME these days? I'm baffled.
    Thanks.

    For those who may be interested, here are the mods I made to the kxmlrpc XML-RPC parser:
    1. In XmlRpcParser.java, add a parser.skip() before the parser.read() in parseValue()
    parser.skip();
    parser.read( Xml.START_TAG, "", "value" );
    2. In XmlRpcWriter.java, add a writeLegacy() before the methodCall start tag is written in writeCall()
    writer.writeLegacy(Xml.PROCESSING_INSTRUCTION,"xml version=\"1.0\"");
    writer.startTag( "methodCall" );
    Both of these changes probably a result of the difference in the XML-RPC server I used vs. what the author of kxmlrpc used. My XML-RPC server refused to accept the call without the XML processor instruction <?xml version="1.0"?>. And the parser was thowing 'unexpected' exceptions before the whtespace was stripped off the front end of <value> tags coming back in the response.
    In all, kxmlrpc seems to work fine for the basic data structures I'm dealing with (Strings, simple structs). I just wish there was a standard J2ME way of doing this sort of web service.
    http://kxmlrpc.objectweb.org/project/aboutProject/index.html

  • Weblogic with XML-RPC RuntimeModelerException

    I am having problems invoking a SOAP Web Service from an XML-RPC Web Service. They are both deployed on WebLogic.
    Here are the details:
    We have ported a JBOSS .esb application that implements XML-RPC Web Services to a WebLogic .ear application. The porting was successful. Bellow you can see the the .ear archive structure:
        xmlrpc-services-app.ear
            + lib
                + aopalliance-1.0.jar
                + aspects-5.2.0.jar
                + commons-codec-1.3.jar
                + commons-collections-3.2.jar
                + commons-lang-2.4.jar
                + commons-logging-1.1.jar
                + container-common-api-5.2.0.jar
                + jettison-1.2.jar
                + junit-3.8.1.jar
                + log4j-1.2.16.jar
                + mysql-connector-java-5.1.12.jar
                + openads-api-xmlrpc-1.xmlrpc3.cmt_fix.2.jar
                + snmpTrapAppender-1.2.9.jar
                + spring-aop-3.0.1.RELEASE.jar
                + spring-asm-3.0.1.RELEASE.jar
                + spring-beans-3.0.1.RELEASE.jar
                + spring-context-3.0.1.RELEASE.jar
                + spring-context-support-3.0.1.RELEASE.jar
                + spring-core-3.0.1.RELEASE.jar
                + spring-expression-3.0.1.RELEASE.jar
                + spring-jdbc-3.0.1.RELEASE.jar
                + spring-ldap-1.2.1.jar
                + spring-security-core-2.0.5.RELEASE.jar
                + spring-tx-3.0.1.RELEASE.jar
                + spring-web-3.0.1.RELEASE.jar
                + lib-common-tools-1.5.jar
                + lib-security-1.5.jar
                + stax-api-1.0.1.jar
                + ws-commons-util-1.0.2.jar
                + xml-apis-1.0.b2.jar
                + xmlrpc-client-3.1.3.jar
                + xmlrpc-common-3.1.3.jar
                + xmlrpc-server-3.1.3.jar
            + META-INF
                + MANIFEST.MF
                + application.xml
                + weblogic-application.xml
            + xmlrpc-services-app.war
                + META-INF - generated by Maven
                + WEB-INF
                    + classes
                    + jboss-web.xml
                    + lib
                        + apache-mime4j-0.6.1.jar
                        + commons-codec-1.4.jar
                        + commons-logging-1.1.jar
                        + httpclient-4.2-beta1.jar
                        + httpcore-4.2-beta1.jar
                        + httpmime-4.2-beta1.jar
                        + servlet-api-2.3.jar
                        + offersService-Client-1.0.jar
                    + web.xml
                + index.jsp - not really usedThe `offersService-Client-1.0.jar` contains a Web Service definition (not the implementation) and is used to invoke the Offers Web Service. The WS client and the jar were created using JDeveloper. The key files inside this jar are:
        GetOfferRequest.class
        ObjectFactory.class
        Offer.class
        OffersPortType.class
        OffersSchema.xsd
        OffersService.class
        OffersService.wsdl
        OffersService.xmlWhen invoking this WS from a class in the xmlrpc-services-app.ear, I get the following error:
        com.sun.xml.ws.model.RuntimeModelerException: A WebService annotation is not present on class: offers.OffersPortType
                at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:237)
                at com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:762)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.buildRuntimeModel(WLSProvider.java:982)
                at com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:746)
                at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:737)
                at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:361)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.internalGetPort(WLSProvider.java:934)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate$PortClientInstanceFactory.createClientInstance(WLSProvider.java:1039)
                at weblogic.wsee.jaxws.spi.ClientInstancePool.takeSimpleClientInstance(ClientInstancePool.java:376)
                at weblogic.wsee.jaxws.spi.ClientInstancePool.take(ClientInstancePool.java:232)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:852)
                at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
                at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
                at javax.xml.ws.Service.getPort(Service.java:92)
                at offers.OffersService.getOffersPort(OffersService.java:68)HOWEVER, when I invoke it from a simple Web Service created in JDeveloper and deployed on WebLogic or even from the command line (so outside the WebLogic context), I do not get this error.
    Here is how I create the client for the service:
    OffersService offersService = new OffersService();
    OffersPortType offersPortType = offersService.getOffersPort(); // it crashes hereDo you have any idea of what might be wrong?
    If you need any other details, please do not hesitate to ask.

    carYang wrote:
    > Can you use cfinvoke with XML-RPC arguments or is it
    just for SOAP methods?
    >
    > Does anyone have an example of passing XML-RPC?
    http://www.fusionteam.co.uk/blog/2008/02/19/xml-rpc-using-coldfusion-and-microsoftxmlhttp- com-object/
    But you can also do it with CFHTTP.
    Mack

  • How to develope a XML-RPC client with PL/SQL

    Anyone know how to develop a XML-RPC client with PL/SQL?
    I've oracle 8i.
    Have you some example of code?
    Thanks
    Paolo

    So, you actually want to create the physical directory using JAVA?
    Then see:
    http://www.oracle-base.com/articles/8i/shell-commands-from-plsql.php

  • Explain about xml schema with example

    Hi,
    Kindly anybody explain about xml schema with example?
    With Regards,
    L.rajesh

    Maybe this is what you are looking for ??? If not give us more info...
    Re: How it work?

  • Example of xml file with connection pool SAP

    Hi Everyone
    I need a .xml file with pool connection SAP to run on weblogic 8.1.
    Where do I get it?
    Thanks

    Stefan
    Whether your XML is stored using structured storage or not is determined by the way your initially register the schema, not by the way the XML is delivered into the database. Even when performing, for example, and INSERT using a CLOB value, this CLOB will be 'shredded' into the structured storage tables if you have created them appropriately. If not, it will be stored as a simple CLOB.
    Allan

  • Problems with XML-RPC

    Hi everybody.
    Sorry, I've got a french accent, then if you don't understand, dont' be worry ^^
    I try using the apache's xmpl-rpc package, and I have got some problems with the xml-rpc client.
    Here my source :
    public interface ICalculator {
         public int add(int i1, int i2);
         public int subtract(int i1, int i2);
    public class Calculator implements ICalculator {
         public int add(int i1, int i2) {
              return i1 + i2;
         public int subtract(int i1, int i2) {
              return i1 - i2;
    import org.apache.xmlrpc.server.PropertyHandlerMapping;
    import org.apache.xmlrpc.server.XmlRpcServer;
    import org.apache.xmlrpc.server.XmlRpcServerConfigImpl;
    import org.apache.xmlrpc.webserver.WebServer;
    public class Server {
    private static final int port = 8080;
    public static void main(String[] args) throws Exception {
    WebServer webServer = new WebServer(port);
    XmlRpcServer xmlRpcServer = webServer.getXmlRpcServer();
    PropertyHandlerMapping phm = new PropertyHandlerMapping();
    phm.addHandler(Calculator.class.getName(), Calculator.class);
    phm.addHandler(ICalculator.class.getName(), ICalculator.class);
    xmlRpcServer.setHandlerMapping(phm);
    XmlRpcServerConfigImpl serverConfig =
    (XmlRpcServerConfigImpl) xmlRpcServer.getConfig();
    serverConfig.setEnabledForExtensions(true);
    serverConfig.setContentLengthOptional(false);
    webServer.start();
    System.out.println("Serveur XML-RPC is ready");
    import org.apache.xmlrpc.client.XmlRpcClient;
    import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
    import org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory;
    import org.apache.xmlrpc.client.util.ClientFactory;
    public class Client {
    public static void main(String[] args) throws Exception {
    // create configuration
    XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
    config.setServerURL(new URL("http://127.0.0.1:8080/xmlrpc"));
    config.setEnabledForExtensions(true);
    config.setConnectionTimeout(60 * 1000);
    config.setReplyTimeout(60 * 1000);
    XmlRpcClient client = new XmlRpcClient();
    System.out.println("Connection");
    // use Commons HttpClient as transport
    client.setTransportFactory(
    new XmlRpcCommonsTransportFactory(client));
    // set configuration
    client.setConfig(config);
    ClientFactory factory = new ClientFactory(client);
    ICalculator calc = (ICalculator)factory.newInstance(ICalculator.class); //Problems here !!!
    System.out.println("Calculing");
    System.out.println("Result : " + calc.add(2, 3));
    And the error is:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpException
         at org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory.getTransport(XmlRpcCommonsTransportFactory.java:31)
         at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
         at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
         at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
         at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
         at org.apache.xmlrpc.client.util.ClientFactory$1.invoke(ClientFactory.java:104)
         at $Proxy0.add(Unknown Source)
         at projet.Client.main(Client.java:45)
    Can you help please ?

    The problem is not related to your code, but it seems that there is a missing jar which contains the class org.apache.commons.httpclient.HttpException or perhaps the jar isn't included in your CLASSPATH.
    The jar seems to be commons-httpclient.jar you can found at http://jakarta.apache.org/commons/httpclient

  • Package javax.servlet.* and javax.xml.rpc.*

    Which jar file(s) in Oracle WebLogic Server 10.3 contain these two packages: package javax.servlet.* and javax.xml.rpc.*? Where are they located? Thanks

    I don't have access to my WLS installation right now, but normally I use a class finder utility like this one to answer questions like this:
    http://www.inetfeedback.com/jarscan/

  • Convert an excel (*.xls) file to a xml file with Java Beans

    Hi to all............
    I am new to this ,
    I have a requirement that
    i want to read excel (*.xls ) file which is having some data going to be persist in database. Before going to persist process i want to read that data from xls file and convert those data into xml file.
    Can any one help me how can i do this using java classes?
    Please guide me what are the necessary libraries and requirements to do this?
    If any one have an idea then help me with some example code
    Thanks in advance for your great replay
    Sathish A

    this is the full stack trace i am getting jboss server console
    09:57:17,922 ERROR [application] org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
    javax.faces.el.EvaluationException: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at javax.faces.component.UICommand.broadcast(UICommand.java:387)
         at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
         at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
         at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
         at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:469)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
         at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:86)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
         at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
         at java.lang.Thread.run(Thread.java:636)
    Caused by: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
         at org.apache.xerces.dom.CoreDocumentImpl.createElement(Unknown Source)
         at org.domain.DigesterDemo.session.ViewList.generateXML(ViewList.java:275)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:616)
         at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
         at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
         at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
         at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
         at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
         at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52)
         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
         at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
         at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
         at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
         at org.domain.DigesterDemo.session.ViewList_$$_javassist_2.generateXML(ViewList_$$_javassist_2.java)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:616)
         at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
         at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
         at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
         at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
         at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
         at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
         ... 51 more
    Thanks for your replay

  • A problem with servlet  mapping , using a servlet to produce some chart in

    Hi
    Thank you for reading my post.
    My problem is about using a Chart library which works well in jsf application but it does not works in JSF portlets.
    I think i find the problem but i do not know the solution.
    to use this charting library we should add a servlet to web.xml
    something like :
    <servlet>
    <servlet-name>Jenia internal servlet</servlet-name>
    <servlet-class>org.jenia.faces.util.Servlet</servlet-class>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Jenia internal servlet</servlet-name>
    <url-pattern>/jenia4faces/*</url-pattern>
    </servlet-mapping>
    so , when we try to load a chart , it will make the chart image source
    something like
    http://localhost:28080/Adv/jenia4faces/chart/OAReport.jspBarChart3d_id0.png
    in the above sample , adv is the name of web application which is
    deployed in a servlet container.
    and filter applied to make the chart render-able.
    to use the chart library in jsf portlet , i add the servlet
    description as i did for web application , so i add
    <servlet>
    <servlet-name>Jenia internal servlet</servlet-name>
    <servlet-class>org.jenia.faces.util.Servlet</servlet-class>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Jenia internal servlet</servlet-name>
    <url-pattern>/jenia4faces/*</url-pattern>
    </servlet-mapping>
    to my portlet web.xml file.
    when we have portlet , the url to access that portlet (which indeed is a
    web application) changes
    for example
    url for a sample portlet with same web application name
    will be like
    http:// localhost:28080/pluto/portal/Adv/
    as you can see there are some prefix to web application name in the url
    , but when i use chart component to show
    same chart , it still look for the chart in url like :
    http://localhost:28080/Adv/jenia4faces/chart/OAReport.jspBarChart3d_id0.png
    As you may already sugest , the image will not render because browser is
    looking in wrong place.
    now i
    think if i find some way to map that servlet to correct url
    pattern it will works.
    my question is :
    1-what will be new servlet url pattern ?
    2-is my assumption correct ?
    Thank you very much for reading such a long post

    i wrote an app i.e servlet which would select the data from the database and retrive the data.but i want to send this data to normal java file(which is not a servlet) and i want to display results in the normal java file.
    can any body help this concept........
    send me mail:[email protected]

  • Javax.xml.rpc.soap.SOAPFaultException +HttpBinding Adapter 11g

    Hi all,
    when i am trying to use HttpBinding Adapter with Type= 'Service' , Verb='POST' ,*Operation Type='Request-Response'* , after these settings when i deploy my application on Enterprise Manager than my operation works fine but i get following error in log file.
    Please suggest me what am i doing wrong...................
    <javax.xml.rpc.soap.SOAPFaultException: Waiting for response has timed out. The conversation id is null. Please check the process instance for detail.
         at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.generateSoapFaultException(WebServiceEntryBindingComponent.java:1052)
         at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:889)
         at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1187)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1081)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:581)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:192)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:484)
         at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Edited by: 835461 on Jul 19, 2011 4:07 AM

    This operation is assyncronous ?

  • Javax.xml.rpc.soap.SOAPFaultException: Server Error

    Hi,
    <P>
    I have Dyn Pro application deployed on NW app server. The application uses webservices on PI and the whole process working until a month back. Recently the application stopped working and throwing following error. Also I use following code for Authentication.
    <P>
    <P>
    I am not sure where the issue is? I looked at forums before posting and could not find anything. I wonder if any one ran into the issue and how is it fixed? I appreciate your help.
    <P>
    <P>
    CODE
    <P>
    <P>
    if ( port instanceof Stub ) {
    final Stub stub = (Stub)port;  stub._setProperty(Stub.USERNAME_PROPERTY,  "abcd");
    stub._setProperty(Stub.PASSWORD_PROPERTY, "123");
    } else if (port instanceof DInterfaceInvoker) {
    final DInterfaceInvoker invoker = (DInterfaceInvoker)port;
    invoker.setProperty(Stub.USERNAME_PROPERTY,  "abcd");
    invoker.setProperty(Stub.PASSWORD_PROPERTY, "123");
    <P>
    <P>
    Exception is:
    <P>
    <P>
    java.lang.RuntimeException: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'C:
    cliqbook
    wsdl
    MI_Project_Search_Request_Response1.wsdl' with operation 'MI_Project_Search_Request_Response' in interface 'MI_Project_Search_Request_Response' at com.app.freeman.search.cliqbook.CliqBookSearch.executeRequest_MI_Project_Search_Request_Response(CliqBookSearch.java:294) at com.app.freeman.search.cliqbook.wdp.InternalCliqBookSearch.executeRequest_MI_Project_Search_Request_Response(InternalCliqBookSearch.java:387) at com.app.freeman.search.cliqbook.CliqBookSearchView.onActionSearch(CliqBookSearchView.java:160) at com.app.freeman.search.cliqbook.wdp.InternalCliqBookSearchView.wdInvokeEventHandler(InternalCliqBookSearchView.java:380) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132) at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176) Caused by: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'C:
    cliqbook
    wsdl
    MI_Project_Search_Request_Response1.wsdl' with operation 'MI_Project_Search_Request_Response' in interface 'MI_Project_Search_Request_Response' ... 33 more Caused by: java.lang.reflect.InvocationTargetException: Server Error at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:927) at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1440) at MI_ProjectSearchRequestResponseBindingStub._invoke(MI_ProjectSearchRequestResponseBindingStub.java:99) at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceInvokerImpl.invokeOperation(DInterfaceInvokerImpl.java:63) at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:68) at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClassExecutable.execute(WSTypedModelClassExecutable.java:46) at com.app.freeman.search.cliqbook.CliqBookSearch.executeRequest_MI_Project_Search_Request_Response(CliqBookSearch.java:248) ... 32 more Caused by: javax.xml.rpc.soap.SOAPFaultException: Server Error at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.buildFaultException(MimeHttpBinding.java:737) at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:860) ...
    <P>
    Thank you,
    Balaji

    Ganga,
    Thank you for the reply. THe stand alone webservice runs fine on PI. I have already tested with stansalone client and it works. It seems to be webdyn pro failing in the following code.
    public void executeRequest_MI_Project_Search_Request_Response( )
        //@@begin executeRequest_MI_Project_Search_Request_Response()
        //$$begin Service Controller(763118099)
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
      try
         wdContext.currentRequest_MI_Project_Search_Request_ResponseElement().modelObject().wdSetInvocationModifier(new WSDLAuthentication());
          wdContext.currentRequest_MI_Project_Search_Request_ResponseElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
          wdContext.nodeMT_Project_Search_Response().invalidate();
          wdContext.nodeRecords().invalidate();
          wdContext.nodeReturn().invalidate();    
        catch(Exception e)
          manager.reportException(e.getMessage(), false);     
          throw new RuntimeException(e.fillInStackTrace());
        //$$end
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      private final class WSDLAuthentication implements IWDWSInvocationModifier {
                public void doModifyInvocation(final Object port) {
                        if ( port instanceof Stub ) {
                               final Stub stub = (Stub)port;
                               stub._setProperty(Stub.USERNAME_PROPERTY,  "abc");
                               stub._setProperty(Stub.PASSWORD_PROPERTY, "123");
                        } else if (port instanceof DInterfaceInvoker) {
                               final DInterfaceInvoker invoker = (DInterfaceInvoker)port;
                               invoker.setProperty(Stub.USERNAME_PROPERTY,  "abc");
                               invoker.setProperty(Stub.PASSWORD_PROPERTY, "123");
                        } else
                               throw new RuntimeException("Error");
                        public void doModifyAfterInvocation() {}
    Thankyou,
    Balaji
    Edited by: balaji uppalapati on Jul 27, 2010 3:17 PM

Maybe you are looking for

  • Application server does not start

    Hi, in 8.48 on Win 2003 server, AS does not start with following : 84808\appserv\MYDB\CACHE\PSAPPSRV_2\ PSAPPSRV.4384 (0) [01/06/10 18:31:10](1) GenMessageBox(200, 0, M): SQL Access Ma nager: SQL error. Stmt #: 2  Error Position: 0  Return: 404 - [Mi

  • Components required for outdoor network?

    Hi all, My parents for the last few years have discussed a desire to be able to get internet access out at their pond.  The pond is located about 200 feet or so from the house.  Roughly between the house and pond is our barn. I would like to set up a

  • 11i Java Color Scheme set_canvas_property question

    Hi, I've modified the custom.pll to change a canvas color to red based on some data criteria using the set_canvas_property command. I want to set it canvas back to the original color when they create a new record. My question is how can I programmati

  • Cannot connect to tengo internet

    Please help with log in procedures for tengo internet?????

  • LOGINserver problem

    I am posting this in the Leopard forum because I have been attempting to reconstruct my iMac (early 2008) after my harddrive apparently failed.  Prior to this I was running Mountain Lion but found it was running very slow, ostensibly dues to the fail