Cannot run "Publish PL/SQL as a Web Service" example

Hello!
I have Oracle 8.1.7 AS and 9i JDeveloper running on Windows 2000. I'm trying to run the "Publish PL/SQL as a Web Service" example, but am encountering errors I believe are related to my hostname/IP address/DNS entry. Of course, I could be wrong.
Here is some information:
==========================================================
1. I was able to successfully initialize Containers for J2EE. However, when I was trying to deploy the PL/SQL example, it inserted this information:
C:\oracle\jdev9i\j2ee\home>C:\oracle\jdev9i\jdk\bin\java.exe -jar C:\oracle\jdev9i\j2ee\home\oc4j.jar
Node started with id=-1753996682
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
Error updating application PLSQL-PLSQL-WS: Error loading web-app 'WebServices' at
C:\oracle\jdev9i\j2ee\home\applications\PLSQL-PLSQL-WS\WebServices:
resource-ref 'jdbc/testCoreDS' referenced from resource-ref-mapping not found
==========================================================
2. I went through the instructions from the website, and when I began the deployment process it generated this information:
---- Deployment started. ---- Jan 17, 2003 1:20:27 PM
Wrote WAR file to C:\oracle\jdev9i\jdev\plsql-webexample\Project1\WebSe[i]Long postings are being truncated to ~1 kB at this time.

Couple of suggestions despite your post being cut off with what might be useful information (please post the rest if these suggestions don't help):
1. There are some bugs with Personal Oracle and Web services, notably Oracle9i Personal that may apply also to 8.1.7. If you have a MetaLink account it is logged as bug 2591731.
2. As you are using your local machine, make sure your proxies are turned off (Tools-Preferences Web Browser/Proxy)
3. I've noticed problems when folks use a JDK with a version lower than 1.3.1_02 to run OC4J - it is certified only with 1.3.1_02 or higher. If you are using the built-in JDeveloper JDK to start up OC4J (e.g. <Jdev_home>\jdk\bin\java.exe) you should be fine. But if you are just typing in java -jar oc4j.jar it is worth checking. Check the your default JDK version by typing in: java -version. If it is lower, then download a new version from http://java.sun.com/j2se/1.3/download.html.
4. For level setting it is best to be using build 1035 of JDeveloper, the current production release and either the OC4J embedded in it or the stand-alone version here on OTN.
Hope these point in the right direction.
Mike.

Similar Messages

  • Publish PL/SQL procedures as web services?

    I am investigating JDeveloper for possible use in a project we are starting. We already have existing PL/SQL Procedures that we want to use and I have done a prototype using XSQL and OWA in JDeveloper 9i Candidate version. I am trying to figure out what the changes and improvements are in the most recent version of JDeveloper. On this page http://technet.oracle.com/products/jdev/htdocs/jdev903_fo.html#web_services it says there is broader support for Publishing PL/SQL procedures as web services. Is there any more information out there on this? What exactly has been improved and what are the current limitations. I did find some documentation in the Oracle9i Application Server Developers Guide on the limitations (release 2 (9.0.2) http://download-west.oracle.com/docs/cd/A97329_01/web.902/a95453/plsqlservices.htm#1030066 Do I assume this is the same limitations for JDeveloper since the Oracle9iAS included with it? I am getting confused by all this documentation.
    Thanks for any help
    Natalie

    Natalie,
    Please take a look at the tutorials on
    http://otn.oracle.com/tech/webservices/database.html
    Also, read the Web Service discussion forum where you will find some useful hints. Using 9.2.x DB, OC4J 9.0.4 and JDev9.0.3.1 it is really funny to start publishing PL/SQL as Web Service.
    Flemming

  • Missing Technet Video - Publish PL/SQL as a Web Service

    When I try to view the video for "Publish PL/SQL as a Web Service" (http://www.oracle.com/technology/tech/webservices/htdocs/series/plsql/index.html) I get an invalid URL message from Real Player.
    Is this video no longer available?

    Sorry; that content is no longer available. For a more recent document we suggest this URL:
    http://www.oracle.com/technology/pub/articles/price_10gws.html
    Cheers, OTN

  • URGENT = Publish PL/SQL as a WEB Service - JAVA ERROR on config.........

    I am getting this error on WEB SERVICE Creation :
    =========================================
    MY Configuration :
    ORACLE VERSION = 10g Express Edition Release 10.2.0.1.0
    OC4J VERSION = oc4j_extended_101300.zip
    ORACLE DRIVER = ojdbc14.jar
    JAVA_HOME=/opt/jdk1.5.0_06
    J2EE_HOME=/usr/lib/oracle/xe/app/OC4J/j2ee/home
    ORACLE_HOME=/usr/lib/oracle/xe/app/OC4J
    CLASSPATH=.:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc14.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/j2ee/home/oc4j.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/webservices/lib/wsdl.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/webservices/lib/soap.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/xmlparserv2.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/activation.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/mail.jar:/opt/jdk1.5.0_06/lib/tools.jar:/opt/jdk1.5.0_06/jre/lib/rt.jar
    DATA-SOURCE.XML.........................
    vbdba : ../config ]> cat data-sources.xml
    <?xml version="1.0" standalone='yes'?>
    <data-sources
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd"
    schema-major-version="10"
    schema-minor-version="1"
    >
    <data-sources>
    <connection-pool name="ConnectionPool1">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
    url="jdbc:oracle:thin:@localhost:1521:XE"
    user="store" password="store"/>
    </connection-pool>
    <managed-data-source connection-pool-name="ConnectionPool1"
    jndi-name="jdbc/OracleDS" name="OracleDS"/>
    </data-sources>
    </data-sources>
    Fri Mar 24 11:48:35
    vbdba : ../config ]>
    =========================================
    MY config.xml
    vbdba : ../config ]> cat data-sources.xml
    <?xml version="1.0" standalone='yes'?>
    <data-sources
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd"
    schema-major-version="10"
    schema-minor-version="1"
    >
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="OracleDS"
    location="jdbc/OracleDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/OracleDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="store"
    password="store"
    url="jdbc:oracle:thin:@local:1521/XE"
    />
    </data-sources>
    Fri Mar 24 11:48:35
    vbdba : ../config ]> vbdba : ../D_My_Apps ]> cat config.xml
    <web-service>
    <display-name>PLSQL Web Service</display-name>
    <description>PLSQL Sample</description>
    <destination-path>./dbfunc.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/plsqlsample</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>store/store</schema>
    <db-url>jdbc:oracle:thin:@localhost:1521:XE</db-url>
    <prefix>db.func.place.order</prefix>
    <db-pkg-name>dbfunc</db-pkg-name>
    </jar-generation>
    <uri>/dbfunc</uri>
    <database-JNDI-name>jdbc/OracleDS</database-JNDI-name>
    </stateless-stored-procedure-java-service>
    <wsdl-gen>
    <wsdl-dir>wsdl</wsdl-dir>
    <option name="force">true</option>
    <option name="httpServerURL">http://localhost:8888</option>
    </wsdl-gen>
    <proxy-gen>
    <proxy-dir>proxy</proxy-dir>
    <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    Fri Mar 24 11:47:38
    vbdba : ../D_My_Apps ]>
    =========================================
    WEB SERVICE Creation
    vbdba : ../xe ]> java -jar ${ORACLE_HOME}/webservices/lib/WebServicesAssembler.jar -config ${ORACLE_HOME}/D_My_Apps/config.xml
    Please wait ...
    STORE.DBFUNC
    java.lang.NullPointerException
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.hasDefault(SqlTypeWithMethods.java:359)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.reflectMethods(SqlTypeWithMethods.java:151)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.getDeclaredMethods(SqlTypeWithMethods.java:38)
    at oracle.jpub.publish.SqlPackageWriter.<init>(SqlPackageWriter.java:39)
    at oracle.jpub.publish.JavaPublisher.publish(JavaPublisher.java:266)
    at oracle.jpub.DoitImpl.mainSql(DoitImpl.java:326)
    at oracle.jpub.DoitImpl.main(DoitImpl.java:99)
    at oracle.jpub.Doit.main(Doit.java:46)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:263)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    Exception in thread "main" java.util.zip.ZipException: ZIP file must have at least one entry
    at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:291)
    at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:141)
    at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:310)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:290)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:257)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:266)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    Fri Mar 24 10:27:58
    vbdba : ../xe ]>
    =========================================

    Oracle AS 10.1.3
    Oracle DB 10.1.0.5
    I found below error,when i create ear file
    # java -jar ${ORACLE_HOME}/webservices/lib/WebServicesAssembler.jar -config ${ORACLE_HOME}/D_My_Apps/config.xml
    Please wait ...
    Please wait ...
    VCMGR.W4_XMLSVC
    java.lang.NullPointerException
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.hasDefault(SqlTypeWithMethods.java:359)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.reflectMethods(SqlTypeWithMethods.java:151)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.getDeclaredMethods(SqlTypeWithMethods.java:38)
    at oracle.jpub.publish.SqlPackageWriter.<init>(SqlPackageWriter.java:39)
    at oracle.jpub.publish.JavaPublisher.publish(JavaPublisher.java:266)
    at oracle.jpub.DoitImpl.mainSql(DoitImpl.java:326)
    at oracle.jpub.DoitImpl.main(DoitImpl.java:99)
    at oracle.jpub.Doit.main(Doit.java:46)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:263)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    Exception in thread "main" java.util.zip.ZipException: ZIP file must have at least one entry
    at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:291)
    at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:141)
    at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:310)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:290)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:257)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:266)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    config file
    <web-service>
    <display-name>PLSQL Web Service</display-name>
    <description>PLSQL Sample</description>
    <destination-path>./w4_xmlsvc.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/w4svcplsql</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>user/password</schema>
    <db-url>jdbc:oracle:thin:@databasehost:1521:DB</db-url>
    <prefix>w4.xmlsvc.order</prefix>
    <db-pkg-name>w4_xmlsvc</db-pkg-name>
    </jar-generation>
    <uri>/w4_xmlsvc</uri>
    <database-JNDI-name>jdbc/OracleDSw4SAP</database-JNDI-name>
    </stateless-stored-procedure-java-service>
    <wsdl-gen>
    <wsdl-dir>wsdl</wsdl-dir>
    <option name="force">true</option>
    <option name="httpServerURL">http://localhost:4100</option>
    </wsdl-gen>
    <proxy-gen>
    <proxy-dir>proxy</proxy-dir>
    <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    So Goto Oracle database server
    and create sqlj
    #sqlplus / as sysdba @sqljutl.sql
    and recreate ear file again
    Message was edited by:
    HunterX (Surachart Opun)

  • Publishing PL/SQL procedures as web service

    Hi,
    Is there a way to publish a PL/SQL procedure as a web service in APEX?
    Thanks
    AK

    Bob,
    watch this viewlet, maybe it gives you a helping hand
    http://otn.oracle.com/products/jdev/viewlets/10g/WS_PLSQL_Demo_viewlet_swf.html
    Frank

  • Publishing PL/SQL Package as Web Service

    I am trying to build a PL/SQL Web Service following the "Build a PL/SQL Web Service" paper by Jason Price.
    This used the standalone OC4J.
    When I run the WebServicesAssember (page 4 of article):
    java -jar %ORACLE_HOME%\webservices\lib\WebServicesAssembler.jar -config config.xml
    I get the following error message:
    Exception in thread "main"
    java.lang.NullPointerException:
    Class db.func.place.order.dbfuncUser not found
    The database connection works, the package is created.
    Anyone have any ideas ??
    Thanks, Bob Larsen

    Hi
    I too got the same problem and I am finding for the solution. If you have found it please reply me as soon as possible.
    my email: [email protected]
    I appreciate your answer and many other problems regarding it. I hope u knw the answer...If you can please help me out
    with regards,
    chaitanya

  • Running PL/SQL Web Service Example

    Hi,
    I followed all the steps as mentioned in the example "Publish PL/SQL as a Web Service" but I am getting the following error:
    [SOAPException: faultCode=SOAP-ENV:Server; msg=[SOAPException: faultCode=SOAP-ENV:Server; msg=]]
         scott.Employee mypackage1.CompanyStub.getemp(java.math.BigDecimal)
              CompanyStub.java:111
         void mypackage1.CompanyStub.main(java.lang.String[])
              CompanyStub.java:68
    Process exited with exit code 0.
    Can anyone please help me resolve this error?
    Thanks in advance,
    Jatinder

    Well the good news is that you got the row added so the SOAP messaging is at least working. It seems odd that you can add
    the employee and not have the same error ... the add process should run into difficulties with the same class presumably that you
    are having with the getemp one.
    I am grasping at straws here ... are you using a JDK that is JDK 1.3.1_02 or higher? I know OC4J has some problems with 1.3.1_01.
    I see you are on Solaris ... is that JDev or just the app server? DB version shouldn't matter if your install worked fine.
    Perhaps the last thing you could post is the full log of the error message you see in JDev that might have some clues too. If you are
    running JDev on Windows, if you start it up with jdev.exe instead of jdevw.exe it will also put up an internal logging DOS window that
    may have some other pointers.
    That's about all I can think of.
    Mike.

  • Problems deploying PL/SQL Web Service example to standalone OC4J

    I have built the PL/SQL Web Service example EMP_FETCHER in the tutorials that come with JDeveloper. When run with the embedded OC4J container, the web service works ok using the autogenerated client. However, while I can then successfully deploy the web service to a standalone OC4j instance running on a separate database server, when I point the client at it, a NoSuchMethodError exception is thrown by oc4j with the following stacktrace;
    at tutorial_jdbc_connection.Emp_fetcher.get_emp(Emp_fetcher.sqlj:43)
    at tutorial_jdbc_connection.__Emp_fetcherSPWrapper.invokeMethod(__Emp_fetcherSPWrapper.java:73)
    at oracle.j2ee.ws.InvocationWrapper.invoke(InvocationWrapper.java:98)
    at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:359)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:652)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Looks like I'm missing some support libraries but I'm unsure which ones they are, and why they wouldn't be part of a standard OC4J installation.
    I've tried including the SQLJ runtime and Oracle JDBC library support in the deployment and redeploying but the same error persists.
    Any assistance would be appreciated
    Regards
    Michael

    You have an old version of java installed. That is what "java.lang.UnsupportedClassVersionError" tells.

  • Publishing BC4J Components as a Web Services Link????

    Hi,
    can someone give us the link about the tutorial
    "Publishing BC4J Components as a Web Services" for Jdeveloper 10g?
    Thanks

    I copied your question and pasted it to Google. And here is the link
    http://www.oracle.com/technology/tech/webservices/htdocs/series/pattern/
    To use Google for your search, type www.google.com in a web browser URL field. You will be amazed what you find by using it
    Frank

  • SQL injections in web services

    Hi,
    I am new to SQL Injections, i am going to work with SQL injections in web services.
    could anyone please help me for any documentation..
    thanks in advance..
    Thanks & Regards,
    Raju

    Hello Raju,
    Please go through the below link:
    http://www.testingexperience.com/testingexperience04_08.pdf
    Hope the information is useful
    Regards,
    Swetha

  • Help needed in web service example. Thank!!!

    Hi,
    I tested WebLogic 6.1 message-style web service example. For the
    ProducerClient.java example, I tested successfully. But for
    the ConsumerClient.java example, I kept getting error messages.
    Can any expert offers some explanation or advice? Need to
    show my boss the cool thing. Any help is highly appreciated.
    Thanks.
    David
    The server-side message is:
    Servlet failed with Exception
    java.lang.NullPointerException
    at weblogic.soap.server.servlet.QueueReceiveAdapter.doPost(QueueReceiveA
    dapter.java:124)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:263)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2390)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1959)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    The client-side message:
    Server returned HTTP response code: 500 for URL: http://localhost:70
    01/msg/receiveMsg
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:674)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURL
    Connection.java:1163)
    at weblogic.soap.WebServiceProxy.getSessionCookie(WebServiceProxy.java:5
    09)
    at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:477)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:431)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at ConsumerClient.main(ConsumerClient.java:52)

    Hi,
    I tested WebLogic 6.1 message-style web service example. For the
    ProducerClient.java example, I tested successfully. But for
    the ConsumerClient.java example, I kept getting error messages.
    Can any expert offers some explanation or advice? Need to
    show my boss the cool thing. Any help is highly appreciated.
    Thanks.
    David
    The server-side message is:
    Servlet failed with Exception
    java.lang.NullPointerException
    at weblogic.soap.server.servlet.QueueReceiveAdapter.doPost(QueueReceiveA
    dapter.java:124)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:263)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2390)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1959)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    The client-side message:
    Server returned HTTP response code: 500 for URL: http://localhost:70
    01/msg/receiveMsg
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:674)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURL
    Connection.java:1163)
    at weblogic.soap.WebServiceProxy.getSessionCookie(WebServiceProxy.java:5
    09)
    at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:477)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:431)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at ConsumerClient.main(ConsumerClient.java:52)

  • Email web service example as an Adaptive Web Service Model

    Hi All,
    I am using email web service example as an Adaptive Web Service Model in my Web DynPro application (The WSDL of the application that I use is:
    http://www.abysal.com/soap/AbysalEmail.wsdl).  While loading the WSDL file I am getting following error in log file. Could someone please help me what would be the problem?
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:149)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:49)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:411)
         ... 53 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:146)
         ... 56 more
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Cannot connect to http://www.abysal.com/soap/AbysalEmail.wsdl, passing via http proxy: :80: Connection refused: connect -> java.io.IOException: Cannot connect to http://www.abysal.com/soap/AbysalEmail.wsdl, passing via http proxy: :80: Connection refused: connect
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1028)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1115)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
         ... 57 more
    Caused by: java.io.IOException: Cannot connect to http://www.abysal.com/soap/AbysalEmail.wsdl, passing via http proxy: :80: Connection refused: connect
         at com.sap.engine.services.webservices.tools.WSDLDownloadResolver.resolveEntity(WSDLDownloadResolver.java:161)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1008)
         ... 59 more
    Thanks,
    Naresh

    Hi Naresh,
    See if any of the following threads help, all are related to the same wsdl:
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=54635">https://www.sdn.sap.com/irj/sdn/thread?threadID=54635</a>
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=95335">https://www.sdn.sap.com/irj/sdn/thread?threadID=95335</a>
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=58137">https://www.sdn.sap.com/irj/sdn/thread?threadID=58137</a>
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=36756">https://www.sdn.sap.com/irj/sdn/thread?threadID=36756</a>
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=204762">https://www.sdn.sap.com/irj/sdn/thread?threadID=204762</a>
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=37640">https://www.sdn.sap.com/irj/sdn/thread?threadID=37640</a>
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=80384">https://www.sdn.sap.com/irj/sdn/thread?threadID=80384</a>
    In most of these threads, the suggestion given has been to try using the following wsdl:
    <a href="http://www.mindreef.net/tide/scopeit/start.do?referer=xmethods&url=http://www.abysal.com/soap/AbysalEmail.wsdl">http://www.mindreef.net/tide/scopeit/start.do?referer=xmethods&url=http://www.abysal.com/soap/AbysalEmail.wsdl</a>
    Tutorial related to this web service is:
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c6e81e5-0601-0010-e8b0-8d5c74a21cd1">https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c6e81e5-0601-0010-e8b0-8d5c74a21cd1</a>
    (page 181)
    Bye
    Ankur
    Reward points if it helps!!

  • Problem with Google Web-Service Example

    Hi guys,
    i have a problem with the Google Web-Service Example.
    I am running EP6.0 SP9 and NWDVST 2.0.9
    I did everything according to the tutorial. Got my google license key too.
    When i test the web-service i get the following exception:
    +
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/com.studie.webdynpro1/com.Allgemein.Allgemein/com.Allgemein.iViews/com.Allgemein.Google
    Component class : com.tutorial.wsdl2service.MyGooglePage
    User : Administrator
    at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
    at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
    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:94)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: Exception during PageProcessorComponent.doContent()
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:139)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    ... 29 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    ... 32 more
    Caused by: com.sapportals.portal.prt.service.ServiceException: Service not found: MyGoogleService
    at com.sapportals.portal.prt.core.service.ServiceManager.getPortalServiceItem(ServiceManager.java:384)
    at com.sapportals.portal.prt.core.service.ServiceManager.get(ServiceManager.java:184)
    at com.sapportals.portal.prt.runtime.Portal$RuntimeResources.getService(Portal.java:132)
    at com.tutorial.wsdl2service.MyGooglePage$GoogleDynPage.onSearchButtonClicked(MyGooglePage.java:98)
    ... 39 more+
    My XML File has the following content:
    ++
    The MyGooglePage.java includes the following line:
    IMyGoogleService googleService = (IMyGoogleService) PortalRuntime.getRuntimeResources().getService("MyGoogleService");
    any ideas what the problem is? I read all of the existing forum threads about this topic but could not solve the problem.
    Message was edited by: Dirk Jäckel

    no ideas so far?

  • Where can I down a web service example  of jbuilder?

    Where can I down a web service example of jbuilder?
    I find everywhere, most is by .net.
    Can you give me a example !

    Hi
    first you go through this site http://www.service-architecture.com/
    this has very good description and illustrate the what are the prerequisites of service oriented architecture.
    web service is a connection technlogy in this we are using WSDS for describing the webservice,UDDI for register or publish web service and SOAP
    regarding web service ie., SOA you have any queries feel free make a mail
    regards
    [email protected]

  • Hello REST web service example deployment fails when using EJB

    I was able to successfully deploy the hello REST web service example. But when I attempted to lookup an EJB via the following code I get an error message.
    try {
    ic = new InitialContext();
    DirectoryBean db = (DirectoryBean)ic.lookup("java:comp/env/ejb/DirectoryBean");
    } catch (NamingException ex) {
    ex.printStackTrace();
    Here is the error message in the NetBeans console window:
    Deploying application in domain failed; Error loading deployment descriptors for module [hello] -- com.sun.enterprise.deployment.annotation.context.WebBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat com.sun.enterprise.deployment.annotation.AnnotationInfo@15f1fa0
    D:\java\Sun\swdp-tutorial-1.0\examples\rest\hello\nbproject\build-impl.xml:450: Deployment error:

    I think the problem may be that the SimpleServlet example uses an apt feature to generate a web.xml which will replace any web.xml you already have in the project (and lose any references etc you might have in it). To work around this problem first copy the necessary lines from the web.xml in the generates .war file - they should look something like this:
    <servlet>
    <servlet-name>RESTBeans Application</servlet-name>
    <servlet-class>com.sun.ws.rest.impl.container.servlet.ServletAdaptor</servlet-class>
    <init-param>
    <param-name>resourcebean</param-name>
    <param-value>com.sun.ws.rest.samples.servlet.resources.RESTBeansResources</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>RESTBeans Application</servlet-name>
    <url-pattern>/restbean/*</url-pattern>
    </servlet-mapping>
    Add these to your project web.xml, replacing any lines that look similar (the web.xml in the sample project has these lines that you'll need to replace:
    <servlet>
    <servlet-name>ServletAdaptor</servlet-name>
    <servlet-class>com.sun.ws.rest.impl.servlet.ServletAdaptor</servlet-class>
    <init-param>
    <param-name>resources</param-name>
    <param-value>test1</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <!-- this is a comment -->
    <servlet-name>ServletAdaptor</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    Now you need to turn off automatic web.xml generation by adding <option key="noservlet"/> to the apt task option in build.xml (look for the apt child of the -pre-compile task in build.xml).
    Clean and rebuild and make sure that the web.xml in the generated .war file now matches the project web.xml file.
    Marc.

Maybe you are looking for

  • IP address on MP keeps resetting

    *H/W Involved:* '06 MP (connected to an Airport Express via Ethernet. APX is set up as remote) '08 MBP '09 MBP '09 Airport Extreme (dual band model, set up with independent dual bands, DCHP) OS: 10.6.2 Problem: periodically my MP will display 2 messa

  • How to setup a live USB stick using the latest archlinux 201405

    Hello, long time reader, first time poster.  I recently purchased a new computer, and I would like to setup arch linux as host OS, so I can see if I could build a LFS system from the Arch Linux live USB drive.  When I run the following command "dd if

  • Timezone in JServer

    Can anyone tell me where one can define the timezone for JServer. I have Oracle installed on a machine where the local timezone is GMT+10. Here's my test script ... create or replace and compile java source named JTime as public class JTime public st

  • How to measure Availability Complexity Operation & Maintenance Costs etc

    Dear All We have multiple configurations for attaining High Availability, Maximum Availability with and / or across data centers for databases. Some employ Active - Active Clustering Solution while Some use Active - Passive Solution. Some employ only

  • Socks Proxy with Gtalk?

    Is it possible to use a socks proxy with a Google Talk iChat account? I see the option for the AIM account but it's missing for Google Talk. I'm using iChat 4.0.7.