9.0.3 plsql web service bug?

I've been building plsql web services for several days, and everything has been fine. I've been adding new functions on the database side, and editing my web services using the JDev wizard.
Now it's all stopped working, and I'm getting an "unexpected error" every time I try to generate the service. The "details" for the error looks like the stuff at the end of this message.
Before this happened, I did two potentially problematic things. I was (I thought) done with my testing, so I was cleaning up. So, I removed some functions on the plsql side. And I also did "remove from IDE" for my existing web service project, so I could start building a clean version that had just what I needed. It was when creating the fresh web service in the new project that things exploded.
As far as I can tell from the IDE, it generates the various serialization/deserialization files and the main web service class but fails before it can create the WSDL, web.xml, and deployment stuff.
-- jim
java.io.FileNotFoundException: /C:/Data/jdev9i/NEIEN1/Project1/src/__temp_java_wrappers/factlocal/Pk_web_service_test1.java (The system cannot find the file specified.
     void java.io.FileInputStream.open(java.lang.String)
          native code
     void java.io.FileInputStream.<init>(java.lang.String)
          FileInputStream.java:64
     java.io.InputStream oracle.ide.net.FileURLFileSystemHelper.openInputStream.java.net.URL)
          FileURLFileSystemHelper.java:415
     java.io.InputStream oracle.ide.net.URLFileSystem.openInputStream(java.net.URL)
          URLFileSystem.java:955
     void oracle.jdevimpl.webservices.generator.WrapperClassGenerator$1.run()
          WrapperClassGenerator.java:315
     void oracle.jdevimpl.webservices.util.ThreadUtil$NonThrowingRunnable.run()
          ThreadUtil.java:106
     void java.awt.event.InvocationEvent.dispatch()
          InvocationEvent.java:147
     void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
          EventQueue.java:337
     boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
          EventDispatchThread.java:131
     void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
          EventDispatchThread.java:98
     void java.awt.Dialog.show()
          Dialog.java:380
     void java.awt.Component.show(boolean)
          Component.java:946
     void java.awt.Component.setVisible(boolean)
          Component.java:903
     boolean oracle.bali.ewt.dialog.JEWTDialog.runDialog()
     void oracle.ide.dialogs.ProgressBar.start(java.lang.String, java.lang.String)
          ProgressBar.java:274
     void oracle.jdevimpl.webservices.generator.SPWebServiceGenerator.generate(oracle.jdevimpl.webservices.wizard.publish.SPPublishModel, oracle.jdevimpl.webservices.util.JavaXSDTypeMap)
          SPWebServiceGenerator.java:187
     void oracle.jdevimpl.webservices.wizard.SPWebServicePublishWizard.wizardFinished(oracle.bali.ewt.wizard.WizardEvent)
          SPWebServicePublishWizard.java:391
     void oracle.bali.ewt.wizard.BaseWizard.processWizardEvent(oracle.bali.ewt.wizard.WizardEvent)
     void oracle.bali.ewt.wizard.BaseWizard.processEventImpl(java.awt.AWTEvent)
     void oracle.bali.ewt.LWComponent.processEvent(java.awt.AWTEvent)
     void oracle.bali.ewt.wizard.BaseWizard.doFinish()
     void oracle.bali.ewt.wizard.BaseWizard$Action.actionPerformed(java.awt.event.ActionEvent)
     void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
          AbstractButton.java:1450
     void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
          AbstractButton.java:1504
     void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
          DefaultButtonModel.java:378
     void javax.swing.DefaultButtonModel.setPressed(boolean)
          DefaultButtonModel.java:250
     void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
          BasicButtonListener.java:216
     void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
          Component.java:3715
     void java.awt.Component.processEvent(java.awt.AWTEvent)
          Component.java:3544
     void java.awt.Container.processEvent(java.awt.AWTEvent)
          Container.java:1164
     void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
          Component.java:2593
     void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
          Container.java:1213
     void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
          Component.java:2497
     void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
          Container.java:2451
     boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
          Container.java:2216
     boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
          Container.java:2125
     void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
          Container.java:1200
     void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
          Window.java:922
     void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
          Component.java:2497
     void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
          EventQueue.java:339
     boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
          EventDispatchThread.java:131
     void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
          EventDispatchThread.java:98
     void java.awt.Dialog.show()
          Dialog.java:380
     void java.awt.Component.show(boolean)
          Component.java:946
     void java.awt.Component.setVisible(boolean)
          Component.java:903
     boolean oracle.bali.ewt.wizard.WizardDialog.runDialog()
     boolean oracle.ide.wizard.TitledWizardDialog.runDialog()
          TitledWizardDialog.java:147
     boolean oracle.jdevimpl.webservices.wizard.SPWebServicePublishWizard.runWizard()
          SPWebServicePublishWizard.java:404
     boolean oracle.jdevimpl.webservices.wizard.SPWebServicePublish.invoke(oracle.ide.addin.Context, java.lang.String[])
          SPWebServicePublish.java:221
     void oracle.ide.WizardManager$1.run()
          WizardManager.java:450
     void java.awt.event.InvocationEvent.dispatch()
          InvocationEvent.java:154
     void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
          EventQueue.java:337
     boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
          EventDispatchThread.java:131
     void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
          EventDispatchThread.java:98
     void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
          EventDispatchThread.java:93
     void java.awt.EventDispatchThread.run()
          EventDispatchThread.java:85

Could be. Here's what the console has on it. Of course, contrary to the message, it is an Oracle database. Good luck!
Invoking JPublisher with command line:
-user=w19572/w19572
-driver=oracle.jdbc.driver.OracleDriver
-url=jdbc:oracle:thin:@localhost:1521:HUDSOJ
-numbertypes=objectjdbc
-lobtypes=jdbc
-usertypes=oracle
-builtintypes=jdbc
-case=mixed
-encoding=Cp1252
-methods=named
-plsqlmap=true
-transitive=true
-omit_schema_names
-dir=C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers
-package=factlocal
-input=C:\TEMP\input59112.jpub
C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
_test2.sqlj:43.5-44.17: Warning: You are using an Oracle JDBC driver, but connec
ting to an non-Oracle database. SQLJ will perform JDBC-generic SQL checking.
C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
test2.sqlj:43.5-44.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_NAME. Ther
e is no stored procedure or function of this name.
C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
test2.sqlj:53.5-54.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_SIC. There
is no stored procedure or function of this name.
C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
test2.sqlj:63.5-64.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_SICLIST. T
here is no stored procedure or function of this name.
C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
test2.sqlj:73.5-74.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_SIC_TABLE.
There is no stored procedure or function of this name.
C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
test2.sqlj:83.5-84.15: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_WHEREDATA.
There is no stored procedure or function of this name.
C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
test2.sqlj:94.5-96.21: Error: Not found: PKWEB_SERVICE_TEST2.UPDATE_NAME. Ther
e is no stored procedure or function of this name.
Total 6 errors and 1 warning.

Similar Messages

  • Problem with CLOB in PLSQL Web Service.

    Hi-
    I have Oracle Package that accepts CLOB as IN parameter and another CLOB as an OUT parameter. I went thru the tutorial in how to publish a database
    PLSQL package as a web service with out any problem. I was able to publish and call successfully my PLSQL web service thru a browser and thru a simple C# application. It's been working fine until I receive an XML file which is bigger than 32766:
    java.sql.SQLException: setString can only process strings of less than 32766 chararacters at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)]
    JDeveloper version: JDeveloper 10g (10.1.2.2.0) Build 1929
    Oracle Application Server 10g
    I'm newbie in JDeveloper so any help is greatly appreciated.
    Thanks!

    well Shay,
    i've used JDev's tools to developer and to deploy the web service: the war and ear files are automatically generates you to the end of the process.
    I have included all the files java and the compiled classes, but I do not have files jar.
    But don't works: if i create only one java class with all code inside then it works fine!!
    Daniele

  • Eclipelink plsql web services multiple operation

    Hi,
    In 11.1.2.2 jdev, I can generate a toplink/eclipse link plsql web services easily for one SQL (dbws).
    Can I change the web services to support multiple operations, each for different select sql?
    I've tried to changed the wsdl file to have multiple operations
    and amend eclipse link-dbws.XML to include multiple query tags.
    The web services can be run with multiple operation wsdl but the response of each operation
    (using Jdev http analyzer) return only the result of the first operaton.
    Can anyone help?
    Regards,
    Neln
    Edited by: Nelson Ng on Nov 10, 2012 8:45 PM

    Hi,
    I think you are asking for multiple select statements processed by a single TopLink DB Service Provider configuration. As far as I know its exactly one per project and service. However, as this feature is coming from EclipseLink you may want to verify it there
    Frank

  • Develop PLSQL web services using JDeveloper.

    Dear Sir,
    1. Must we use OC4J to generate PLSQL webservices? or we can use any other J2EE compliant app server?
    2. Does it mean in Oracle environment, we can only use JAVA and not other language to wrap PLSQL stored procedures to create PLSQL web services?
    Please advise.
    Thank you.

    You don't need OC4J - you can use JDeveloper to generate Web services from PL/SQL
    You can manuall wrap PL/SQL into web services with any language - however JDeveloper uses Java to do this without the need for you to code anything.

  • Can use PLSQL to develop PLSQL web services?

    Hi,
    I know we can use JDeveloper to create PLSQL web services.
    How about if we want to develop plsql web services using PLSQL itself, is that possible?
    Please advise.
    Thank you.

    I found the article on how to call web services from within database.
    http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html?_template=/ocom/technology/content/print
    The example is for oracle9iR2.
    It's looks like it's quite a bit of work compare to use java to call web services. I wonder with Oracle10g database, is there any improvement that will simply the steps? Would appreciate some advice as i don't have oracle10g environment in my place.
    Thank you.

  • Plsql web services from xform

    hi ...
    I've just read on the internet, that in oracle database 10g, it'll be
    posible to expose plsql packages/procedures as web-services, directly
    from the database, and without any help from the applicacion server.
    Is that true?
    When is gonna be available oracle database 10g???
    Is there gonna be a linux version, free of charge for
    development-purposes? (just as with 9i)
    Do u know anything about oracle's xforms implementation? ... I mean,
    when are gonna be released the "real" products ...I hope that besides
    the IE plugin, there'll be other options from oracle. And I suppose that
    oracle xforms implementation is gonna be compatible with oracle plsql
    exposed as database web services , don't they?
    Thanks in advance.
    salu2
    dario estepario ...

    For questions about Oracle Database 10g, please visit the Database forums here:
    Forums Home � Oracle Technology Network (OTN) � Products � Database
    With the Wireless Client (i.e. the "IE plugin"), you will be able to call any web service. We are currently preparing an OTN sample to demonstrate this capability.
    Oracle also has developed server-side support for XForms in the latest version of Oracle Application Server Wireless. You can find more information in the documentation here:
    http://download-west.oracle.com/docs/cd/B10464_01/wireless.904/b10948/nuxhtml.htm#1032529
    Regards,
    Phil

  • Deploy PLSQL web services on weblogic for 11g-URI not working

    Dear all,
    Scenario:
    Using JDeveloper I deployed a web service from a PLSQL package to a war file. After that I deployed that war file on a weblogic (10.3.5) server manually not by using JDeveloper.
    The deployment of the admin on the admin server is successfully done. While testing the application on the server itself again successful.
    Problem:
    But having an issue while trying to do the same using the URL giving in the application server.
    404 -Not Found error is coming up.
    Solutions tried so far:
    Tried putting a html file to the created application in order to get the  job done- Did not work out
    Please I have no idea how to proceed. Quick responses are much appreciated.
    Thank you

    Hi. The [Service]-mapping.xml file is a standard "JAX-RPC mapping file" according the JSR-109 spec and WebLogic 9.2 doc ([1],[2]). That's the file that references the class. Here's a fragment:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>co.com.acme.services</package-type>
    <namespaceURI>urn:Service/types</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>co.com.acme.services</package-type>
    <namespaceURI>urn:Services/wsdl</namespaceURI>
    </package-mapping>
    <java-xml-type-mapping>
    <java-type>co.com.acme.services.ServiceSEI_serviceOperation_RequestStruct</java-type>
    <root-type-qname xmlns:typeNS="urn:Service/types">typeNS:serviceOperation</root-type-qname>
    <qname-scope>complexType</qname-scope>
    <variable-mapping>
    <java-variable-name>String_1</java-variable-name>
    <xml-element-name>String_1</xml-element-name>
    </variable-mapping>
    </java-xml-type-mapping>
    I'll take a look at the ant task.
    Thank you very much.
    [1]http://download.oracle.com/otndocs/jcp/websvcs-1.0-fr-spec-oth-JSpec/
    [2]http://otndnld.oracle.co.jp/document/products/wls/docs92/webserv/jsr109.html

  • PLSQL web service returning multiple records

    Hello,
    I am trying to create a web service using oracle 11g which should be able to return multiple records.
    Based on hints and code samples found on the internet here is my code :
    CREATE OR REPLACE TYPE test_rec is OBJECT (
        s_nume_adre                    NUMBER ,
        c_eta_civi                     VARCHAR2(4 BYTE),
        l_nom1_comp                    VARCHAR2(40 BYTE),
        l_nom2_comp                    VARCHAR2(40 BYTE),
        l_nom3_comp                    VARCHAR2(40 BYTE),
        l_pren_comp                    VARCHAR2(30 BYTE),
        d_date_nais                    DATE);
    CREATE OR REPLACE TYPE test_array AS TABLE OF test_rec;
    CREATE OR REPLACE PACKAGE test_pkg AS
      function get_rows(snume_adre in number) return test_array;
    END;
    CREATE OR REPLACE PACKAGE BODY test_pkg AS
      function get_rows(snume_adre in number) return test_array is
        v_rtn   test_array := test_array(null);
        v_first boolean := true;
        cursor c_get_rows(snume_adre in number) is
          SELECT a.s_nume_adre,
                 nvl(a.c_eta_civi, '') c_eta_civi,
                 nvl(a.l_nom1_comp, '') l_nom1_comp,
                 nvl(a.l_nom2_comp, '') l_nom2_comp,
                 nvl(a.l_nom3_comp, '') l_nom3_comp,
                 nvl(a.l_pren_comp, '') l_pren_comp,
                 nvl(a.d_date_nais, to_date('01.01.1900', 'dd.mm.yyyy')) d_date_nais
        FROM bro.z45 a
      where a.s_nume_adre = snume_adre or snume_adre is null;
      begin
        for rec in c_get_rows(snume_adre) loop
          if v_first then
            v_first := false;
          else
            v_rtn.extend;
          end if;
        v_rtn(v_rtn.last) := test_rec(rec.s_nume_adre, rec.c_eta_civi, rec.l_nom1_comp, rec.l_nom2_comp,
                                    rec.l_nom3_comp, rec.l_pren_comp, rec.d_date_nais);
        end loop;  
        return v_rtn;
      end;
    END;
    --select * from table (test_pkg.get_rows(null));
    I am able to retrieve the data using the select.
    However when I try to access its wsdl I get an error :
    <soap:Envelope>
       <soap:Body>
          <soap:Fault>
             <faultcode>soap:Client</faultcode>
             <faultstring>Error processing input</faultstring>
             <detail>
                <OracleErrors></OracleErrors>
             </detail>
          </soap:Fault>
       </soap:Body>
    </soap:Envelope>
    If I comment the function call in the package declaration I get a "correct" wsdl :
    <definitions name="GET_ROWS" targetNamespace="http://xmlns.oracle.com/orawsv/TEST/TEST_PKG/GET_ROWS" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/TEST/TEST_PKG/GET_ROWS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/TEST/TEST_PKG/GET_ROWS" elementFormDefault="qualified">
          <xsd:element name="GET_ROWSInput">
            <xsd:complexType>
              </xsd:complexType>
          </xsd:element>
          <xsd:element name="GET_ROWSOutput">
            <xsd:complexType>
              </xsd:complexType>
          </xsd:element>
       </xsd:schema>
      </types>
      <message name="GET_ROWSInputMessage">
        <part name="parameters" element="tns:GET_ROWSInput"/>
      </message>
      <message name="GET_ROWSOutputMessage">
        <part name="parameters" element="tns:GET_ROWSOutput"/>
      </message>
      <portType name="GET_ROWSPortType">
      <operation name="GET_ROWS">
          <input message="tns:GET_ROWSInputMessage"/>
          <output message="tns:GET_ROWSOutputMessage"/>
        </operation>
      </portType>
      <binding name="GET_ROWSBinding" type="tns:GET_ROWSPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="GET_ROWS">
          <soap:operation soapAction="GET_ROWS"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="GET_ROWSService">
        <documentation>Oracle Web Service</documentation>
        <port name="GET_ROWSPort" binding="tns:GET_ROWSBinding">
           <soap:address location="http://server.domain.ch:8080/orawsv/TEST/TEST_PKG/GET_ROWS"/>
         </port>
      </service>
    </definitions>
    Any hint as how to create and access pl sql web service returning multiple rows?
    I don't use java and don't have access to tools like JDeveloper.
    Thanks!

    The actual issue is that collection types are not supported for return parameters.
    The solution is to wrap the collection into another object.
    Here's a working example based on your settings :
    CREATE OR REPLACE TYPE test_rec is OBJECT ( 
      empno  number(4)
    , ename  varchar2(10)
    , hiredate date
    CREATE OR REPLACE TYPE test_array AS TABLE OF test_rec; 
    CREATE OR REPLACE TYPE test_array_wrapper is OBJECT ( arr test_array );
    CREATE OR REPLACE PACKAGE test_pkg AS 
      function get_rows(p_deptno in number) return test_array_wrapper; 
    END; 
    CREATE OR REPLACE PACKAGE BODY test_pkg AS 
      function get_rows(p_deptno in number) return test_array_wrapper is 
        results  test_array; 
      begin 
        select test_rec(empno, ename, hiredate)
        bulk collect into results
        from scott.emp
        where deptno = p_deptno;    
        return test_array_wrapper(results); 
      end; 
    END; 
    The wsdl is then generated correctly :
    SQL> select httpuritype('http://DEV:dev@localhost:8080/orawsv/DEV/TEST_PKG/GET_ROWS?wsdl').getxml() from dual;
    HTTPURITYPE('HTTP://DEV:DEV@LOCALHOST:8080/ORAWSV/DEV/TEST_PKG/GET_ROWS?WSDL').GETXML()
    <definitions name="GET_ROWS" targetNamespace="http://xmlns.oracle.com/orawsv/DEV/TEST_PKG/GET_ROWS" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/DEV/TEST_PKG/GET_
    ROWS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/DEV/TEST_PKG/GET_ROWS" elementFormDefault="qualified">
          <xsd:element name="CTEST_ARRAY_WRAPPER-GET_ROWSInput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="P_DEPTNO-NUMBER-IN" type="xsd:double"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="GET_ROWSOutput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="RETURN" type="tns:TEST_ARRAY_WRAPPERType"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:complexType name="TEST_ARRAY_WRAPPERType">
            <xsd:sequence>
              <xsd:element name="TEST_ARRAY_WRAPPER">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="ARR">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="TEST_REC" type="tns:TEST_REC_IntType" maxOccurs="unbounded" minOccurs="0"/>
                        </xsd:sequence>
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
          <xsd:complexType name="TEST_REC_IntType">
            <xsd:sequence>
              <xsd:element name="EMPNO" type="xsd:double"/>
              <xsd:element name="ENAME">
                <xsd:simpleType>
                  <xsd:restriction base="xsd:string">
                    <xsd:maxLength value="10"/>
                  </xsd:restriction>
                </xsd:simpleType>
              </xsd:element>
              <xsd:element name="HIREDATE" type="xsd:date"/>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:schema>
      </types>
      <message name="GET_ROWSInputMessage">
        <part name="parameters" element="tns:CTEST_ARRAY_WRAPPER-GET_ROWSInput"/>
      </message>
      <message name="GET_ROWSOutputMessage">
        <part name="parameters" element="tns:GET_ROWSOutput"/>
      </message>
      <portType name="GET_ROWSPortType">
        <operation name="GET_ROWS">
          <input message="tns:GET_ROWSInputMessage"/>
          <output message="tns:GET_ROWSOutputMessage"/>
        </operation>
      </portType>
      <binding name="GET_ROWSBinding" type="tns:GET_ROWSPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="GET_ROWS">
          <soap:operation soapAction="GET_ROWS"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="GET_ROWSService">
        <documentation>Oracle Web Service</documentation>
        <port name="GET_ROWSPort" binding="tns:GET_ROWSBinding">
          <soap:address location="http://localhost:8080/orawsv/DEV/TEST_PKG/GET_ROWS"/>
        </port>
      </service>
    </definitions>

  • Regarding PLSQL web services

    I'm calling a plsql stored procedure on PHP. The URL looks something like
    http://<servername><port>/pls/<DAD>/packagename.procedurename
    I get HTTP 404 error if the procedure has a PLSQL table type parameter in it.
    Any ideas why it's so? Has the mod_plsql settings got something to do with this, because this behavior is not seen on all environments?
    DB version: 8.1.7.3.0

    Check SICF that the service is activated.
    Go to ST01, start an authorisation trace. Attempt to use the service, then look at the trace to check if it's an auth issue.
    Check SM21 for any indication of an issue at that time.
    The problems I've encountered have been the service not being activated, the role not having the service included with the correct hash entry as in USOBHASH, or other authorisation errors.
    Finally, go to SMICM, and using one of the options there, up the trace level to 3. But if you get to that stage, you're really getting into networking type knowledge.

  • 9.0.3 two web services questions

    OK, I'm trying to get web services to work and having two problems.
    The (hopefully) simple one: I want to install a web service on the local OC4J, and I can't seem to get the connection to work. Getting connection refused. Not sure why. Didn't see any problems like this with 9.0.2, but we mostly installed them on 9iAS.
    The more complex one: I started working with a PLSQL web service. While I can't execute it yet (see above), I can create one with a simple return type. For example, something like f_seq_to_name (i_seq in number) return varchar2. And the stub is pretty easy.
    But if I want to return a rowtype, for example
    f_seq_to_row (i_seq in number) return facility_table%rowtype,
    the routine is grayed out because JDev decides there is an out parameter of type "null". I could explicitly include each individual parameter, but that seems like a waste of developer effort. And this happens for both rowtypes and ref cursors, so it will be pretty hard to move any significant amount of data. So am I missing something, or is this a bug? If it's a bug, will it be fixed in 9.0.3 production?
    Of course, I can go over to BC4J and try this there with view objects. But I'm looking to see which of the tools are usable.
    -- jim

    Here is some pointers that might help:
    1. A PL/SQL Web Services Tutorial using Oracle9i JDeveloper 9.0.3 including the setup necessary to configure OC4J. As you will see you don't have to actually create a SOAP connection in JDev; for PL/SQL you simply need to have an app server connection as per the writeup. See:
    http://otn.oracle.com/tech/webservices/htdocs/series/plsql/content.html
    2. To see what data types are supported for PL/SQL take a look at:
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a95453/plsqlservices.htm#1030045
    ROWTYPE and REFCURSOR are not supported. This does not appear to change between 9.0.3 preview and 9.0.3 production. There are some other approaches to consider, though your milage may vary. For example, VARRAYS and abstract datatypes are supported - you can see the ADT support in the above tutorial and try VARRAYs by tweaking it to return an array of employees rather than a single employee.
    Hope this gets you going.
    Mike.

  • Invoking Web Service From PL SQL package

    Below is the sample code to invoke web service from pl/sql package using UTL_HTTP:
    Declare
    http_req UTL_HTTP.req;
    http_resp UTL_HTTP.resp;
    Begin
    http_req :=
    UTL_HTTP.begin_request
    'http://'
    || lv_hosturl
    -- || '.net/soa-infra/services/finance_rt/Payments/paymentsprocess_client_ep',
    --new url
    || '.net/soa-infra/services/finance_rt/PaymentsReq/paymentsprocess_client_ep?WSDL',
    'POST',
    'HTTP/1.1'
    UTL_HTTP.set_header (http_req, 'Content-Type', 'text/xml');
    -- since we are dealing with plain text in XML documents
    UTL_HTTP.set_header (http_req,
    'Content-Length',
    LENGTH (lv_soap_request)
    UTL_HTTP.set_header (http_req, 'SOAPAction', '');
    -- required to specify this is a SOAP communication
    UTL_HTTP.write_text (http_req, lv_soap_request);
    http_resp := UTL_HTTP.get_response (http_req);
    UTL_HTTP.read_text (http_resp, lv_soap_respond);
    UTL_HTTP.end_response (http_resp);
    resp := XMLTYPE.createxml (lv_soap_respond);
    End;

    Hi,
    there are a lot of option to make plsql web services .
    First you can stay with jdev 10.1.3
    Use the xmldb servlets
    use jdev 11g tp4 to create plsql ws and upgrade to jdev 11g production
    And I think in the next release of jdev it will be back , there are more options which disappeared like the adf bc sdo ws or jmx datacontrol etc.
    thanks Edwin

  • Support for Creating Web Service from pl/sql package in JDeveloper 11

    We have been creating all of our web services from pl/sql packages in our Oracle database using JDeveloper 10.1.3.1. I understand that this capability is not supported in Jdev 11. We have been mandated to either move up to JDeveloper 11, or consider switching to eclipse, or even VS2008 and run .NET services from IIS. I have seen work-around solutions using TopLink and Jdev 11. Are there plans to revive this feature in the near future? We're now looking at switching to .NET since we could scrap our OAS instances and use IIS to publish web services. The only reason we were sticking with Oracle was the ease in converting all our existing package to web services with Jdev.
    Is anyone else in the same situation. If so, what solutions are you considering?

    Hi,
    there are a lot of option to make plsql web services .
    First you can stay with jdev 10.1.3
    Use the xmldb servlets
    use jdev 11g tp4 to create plsql ws and upgrade to jdev 11g production
    And I think in the next release of jdev it will be back , there are more options which disappeared like the adf bc sdo ws or jmx datacontrol etc.
    thanks Edwin

  • Problem while invoking web service.

    Hi,
    I am migrating plsql web services created in Jdeveloper to Weblogic 9.2 and I am having a jdbc problem. The database driver configure in weblogic is weblogic.jdbcx.oracle.OracleDataSource. And I have a statement in my implementation as below
    __sJT_st = (oracle.jdbc.OracleCallableStatement) __sJT_cc.prepareCall("BEGIN :1 := \"ABC_CLASS_API\".GET_ABC_PERCENT(:2 ); END;");
    I have included the stack trace below ? Any idea what the problem is ?
    Thanks
    Upake
    java.lang.ClassCastException: weblogic.jdbc.wrapper.CallableStatement_weblogic_jdbcx_base_BaseCallableStatementWrapper
    at services.MyWebService1Base._getAbcPercent(MyWebService1Base.java:49)
    at services.MyWebService1User.getAbcPercent(MyWebService1User.java:25)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:99)
    at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:64)
    at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:127)
    at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:85)
    at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
    at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
    at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
    at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:181)
    at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:92)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    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:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    Hi.
    __sJT_st = (oracle.jdbc.OracleCallableStatement) __sJT_cc.prepareCall("BEGIN :1 := \"ABC_CLASS_API\".GET_ABC_PERCENT(:2 ); END;");
    1 - Why are you casting to a concrete Oracle driver class? Won't a standard
    java.sql.CallableStatement work for you?
    2 - I would recommend using the standard JDBC format for prepared SQL:
    prepareCall("{ ? = call( GET_ABC_PERCENT(?) }");

  • ClassDefNotFound Exception when calling PL/SQL Web Service

    Hi to all J2EE'ers.
    I'm trying to construct a sample PLSQL Web Service. I'm using a 10g R1 Database Server, Apache HTTP Server from the 10g Companion CD, and OC4J 9.0.4 (I think it's called "standalone" OC4J), all on Linux (Suse 9.1).
    I set up a simple package on the DB server, containing a simple method named "get_payload(p_arg in varchar2) return varchar2".
    Assembling and deploying worked well (i.e., java -jar WebServiceAssembler.jar -config config-payload.xml, followed by java -jar admin.jar ormi://localhost admin admin -deploy ... and -bindWebApp ...), and after deployment I am able to navigate to the service endpoint, but when trying to test the method named "getPayload(String param0)", after entering the parameter value and clicking "Invoke" I receive an error from the Web Server:
    500 Internal Server Error
    java.lang.NoClassDefFoundError: oracle/aurora/ncomp/java/ClassNotFound
         at oracle.j2ee.ws.StatelessStoredProcRpcWebService.getGenerator(StatelessStoredProcRpcWebService.java:17)
         at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebService.java:443)
         at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:396)
         at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:514)
         at oracle.j2ee.ws.RpcWebService.doGetRequest(RpcWebService.java:613)
         at oracle.j2ee.ws.BaseWebService.doGet(BaseWebService.java:1117)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:733)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Here's the file config-payload.xml I used for assembling the service (access data has been obfuscated):
    <web-service>
    <display-name>Payload Sample Web Service</display-name>
    <description>Stateless Java Document Stye Web Service Example</description>
    <destination-path>./PayloadSampleService.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/payloadws</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>Username/Password</schema>
    <db-url>jdbc:oracle:thin:@Server:1521:ServiceName</db-url>
    <db-pkg-name>sample_websrv_pkg</db-pkg-name>
    </jar-generation>
    <uri>/payload</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>
    I scanned the web up and down to find references to similar problems, but to no avail. Any ideas how I could nail down the issue? WHAT class def can not be found? What code is around line 17 of StatelessStoredProcRpcWebService.java?
    TIA for any input.
    Werner

    www.proxy.us.oracle.com -> www-proxy.us.oracle.com - looks like set in the obsetenv.bat file

  • 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)

Maybe you are looking for

  • How to modify item layout in F-28 / FB03?

    Hi all, I would like to add fields in item line specific to customer such as Asset, Purch. Doc., Sales Doc. in transaction F-28. And of course in the transaction FB03 for displaying the document. I thaught that there was a screen layout associated to

  • Urgent : how to make customised jre  by removing unwanted classes

    dear all, We have developed a application in java , we want to provide this as a downloadable application so we want it to be of less size.To run this java application we need jre.As the jre size is more and we are not using most of the classes , we

  • Vilidity Dates different between KONH and A004 Pricing Conditions Tables

    During the price increase project we loaded new prices for each material via a load program that imitates VK11. That created a new condition record for each material with new validity dates, the previous one expired and the new condition record for a

  • Re: Lenovo G780 freezes

    I just want to say to all of you that this is more than unacceptable.I see that you view this thread (96 views) and still no answer.This is an official forum of Lenovo and when someone requests help you should answer him.I am more than sure that you

  • Backup 3 ceases to function under Lion for external HD?

    Since the installation of Mac OS X Lion, my Backup 3 (version 3.2 (v417)) application no longer functions for backup to an external HD.  Error exhibits "Failed Backup".  The following console error info appears: An internal application error has occu