Can't import schemas in classpath when generating JAXB

I'm trying to create schemas that are used to provide basic components for more complex schemas, using the same design idea behind creating abstract Java classes and then extending them. I'm having trouble referring to classes in different modules, though. Below is the start of a schema that refers to a schema that is stored in another jar file:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://xml.kitfox.com/schema/tw/ts"
    elementFormDefault="qualified"
    xmlns:tns="http://xml.kitfox.com/schema/tw/ts"
    xmlns:cmn="http://xml.kitfox.com/schema/common">
    <xsd:import schemaLocation="/com/kitfox/common.xsd" namespace="http://xml.kitfox.com/schema/common"/>
    <xsd:complexType name="sourceType">
        <xsd:attribute name="uid" type="cmn:uidType"/>
    </xsd:complexType>I'm generating my JAXB with the following task:
    <target name="bind-preferences" depends="init">
        <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
            <classpath>
                <pathelement path="${javac.classpath}"/>
            </classpath>
        </taskdef>
        <xjc destdir="gen" extension="true" removeOldOutput="true">
            <schema dir="src">
                <include name="**/*.xsd"/>
            </schema>
            <produces dir="gen">
                <include name="**/*.java"/>
            </produces>
        </xjc>
    </target>Unfortunately, this causes the following error:
[WARNING] schema_reference.4: Failed to read schema document '/com/kitfox/common.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
  line 9 of file:/C:/dev/kitfox.com/gameEngine/proj/tileWorld/src/com/kitfox/tw/ts.xsd
[ERROR] src-resolve: Cannot resolve the name 'cmn:uidType' to a(n) 'type definition' component.
  line 24 of file:/C:/dev/kitfox.com/gameEngine/proj/tileWorld/src/com/kitfox/tw/ts.xsd
[ERROR] src-resolve: Cannot resolve the name 'cmn:uidType' to a(n) 'simpleType definition' component.
  line 24 of file:/C:/dev/kitfox.com/gameEngine/proj/tileWorld/src/com/kitfox/tw/ts.xsdI know that the classpath passed into the xjc task contains the jar with my original schema. What can I do so that JAXB finds it? Also, how would I tell JAXB to extend the classes already generated for common.xsd in my original jar rather than regenerating them in the jar I'm compiling?

Thanks. I've looked into using a catalog (the ant task allows you to specify a catalog), but don't think I've got the syntax right. Does the following look right to you?
<!DOCTYPE catalog
  PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
         "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
         prefer="public">
  <uri name="common.xsd"
   uri="../gb/src/com/kitfox/common.xsd"/>
</catalog>I've changed my schema to look like:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://xml.kitfox.com/schema/tw/ts"
    elementFormDefault="qualified"
    xmlns:tns="http://xml.kitfox.com/schema/tw/ts"
    xmlns:cmn="http://xml.kitfox.com/schema/common">
    <xsd:import schemaLocation="common.xsd" namespace="http://xml.kitfox.com/schema/common"/>
    <xsd:complexType name="sourceType">
        <xsd:attribute name="uid" type="cmn:uidType"/>
    </xsd:complexType>I'm still getting errors:
[WARNING] schema_reference.4: Failed to read schema document 'common.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
  line 9 of file:/C:/dev/kitfox.com/proj/tw/src/com/kitfox/tw/ts.xsd
[ERROR] src-resolve: Cannot resolve the name 'cmn:uidType' to a(n) 'type definition' component.
  line 24 of file:/C:/dev/kitfox.com/proj/tw/src/com/kitfox/tw/ts.xsd
[ERROR] src-resolve: Cannot resolve the name 'cmn:uidType' to a(n) 'simpleType definition' component.
  line 24 of file:/C:/dev/kitfox.com/proj/tw/src/com/kitfox/tw/ts.xsdI've tried some variations such as leaving out the import/@schemaLocation attribute and hoping that the catalog could resolve that with the namespace alone or creating a fake http:// url for the schemaLocation, but none of that works. Would you know what I'm doing wrong with this catalog? The catalog and ant file are in the same directory and the relative path to the common.xsd file is correct.

Similar Messages

  • Random Bingads WSDL errors: Parsing WSDL: Couldn't load from...failed to load external entity, Could not connect to host, Parsing Schema: can't import schema from

    Hi,
    I am developing a web tool that accesses client's Bingads accounts via OAUTH2 granting. I am downloading data from clients daily.
    Generally it worked, but for 2 days I am experiencing a weird issue, that in random times (but more and more often though) I receive random error messages from Bing server. I am pasting below a few example from my logs (with timestamp and request/response).
    Must note that I launch these requests from the server where we have the webapp but also I launch it locally. The same is the result.
    The timestamp is in France time (GMT+1).
    Thanks ahead!
    Best regards,
    Steve
    2015-01-14 15:08:05: Service\BingAds::initService => SOAP-ERROR: Parsing Schema: can't import schema from 'https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V9/ReportingService.svc?xsd=xsd0'
    ---------Soap Request:--------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://bingads.microsoft.com/CampaignManagement/v9"><SOAP-ENV:Header><ns1:CustomerAccountId>XXX</ns1:CustomerAccountId><ns1:CustomerId/><ns1:DeveloperToken>XXX</ns1:DeveloperToken><ns1:UserName/><ns1:Password/><ns1:AuthenticationToken>XXX</ns1:AuthenticationToken></SOAP-ENV:Header><SOAP-ENV:Body><ns1:GetDetailedBulkDownloadStatusRequest><ns1:RequestId>108277125</ns1:RequestId></ns1:GetDetailedBulkDownloadStatusRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
    ---------Response:------------------------------------------------
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v9">XXXXX</h:TrackingId></s:Header><s:Body><GetDetailedBulkDownloadStatusResponse
    xmlns="https://bingads.microsoft.com/CampaignManagement/v9"><Errors i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/><PercentComplete>100</PercentComplete><RequestStatus>Completed</RequestStatus><ResultFileUrl>https://download.api.bingads.microsoft.com/ReportDownload/Download.aspx?q=XXX</ResultFileUrl></GetDetailedBulkDownloadStatusResponse></s:Body></s:Envelope>
    2015-01-15 05:41:39: Service\BingAds::getCampaigns => SoapFault: Could not connect to host
    ---------Soap Request:--------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://bingads.microsoft.com/CampaignManagement/v9"><SOAP-ENV:Header><ns1:CustomerAccountId>XXX</ns1:CustomerAccountId><ns1:CustomerId/><ns1:DeveloperToken>XXX</ns1:DeveloperToken><ns1:UserName/><ns1:Password/><ns1:AuthenticationToken>XXX</ns1:AuthenticationToken></SOAP-ENV:Header><SOAP-ENV:Body><ns1:GetCampaignsByAccountIdRequest><ns1:AccountId>XXX</ns1:AccountId></ns1:GetCampaignsByAccountIdRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
    ---------Response:------------------------------------------------
    (empty response logged)
    2015-01-15 05:45:00: Service\BingAds::initService => SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v9/CampaignManagementService.svc?singleWsdl' : failed to load external entity "https://api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v9/CampaignManagementService.svc?singleWsdl"
    2015-01-15 11:58:46: Service\BingAds::getCampaigns =>
    ---------Soap Fault:--------------------------------------------
    SoapFault catched:
    Could not connect to host
    ---------Soap Request:--------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://bingads.microsoft.com/CampaignManagement/v9"><SOAP-ENV:Header><ns1:CustomerAccountId>XXXX</ns1:CustomerAccountId><ns1:CustomerId/><ns1:DeveloperToken>XXXX</ns1:DeveloperToken><ns1:UserName/><ns1:Password/><ns1:AuthenticationToken>XXX</ns1:AuthenticationToken></SOAP-ENV:Header><SOAP-ENV:Body><ns1:GetCampaignsByAccountIdRequest><ns1:AccountId>XXXX</ns1:AccountId></ns1:GetCampaignsByAccountIdRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
    ---------Response:------------------------------------------------
    (empty response logged)
    2015-01-15 11:59:50: Service\BingAds::initService =>
    ---------Soap Fault:--------------------------------------------
    SoapFault catched:
    SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v9/CampaignManagementService.svc?singleWsdl' : failed to load external entity "https://api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v9/CampaignManagementService.svc?singleWsdl"
    ---------Soap Request:--------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://bingads.microsoft.com/CampaignManagement/v9"><SOAP-ENV:Header><ns1:CustomerAccountId>XXX</ns1:CustomerAccountId><ns1:CustomerId/><ns1:DeveloperToken>XXXXX</ns1:DeveloperToken><ns1:UserName/><ns1:Password/><ns1:AuthenticationToken>XXXX</ns1:AuthenticationToken></SOAP-ENV:Header><SOAP-ENV:Body><ns1:GetCampaignsByAccountIdRequest><ns1:AccountId>XXX</ns1:AccountId></ns1:GetCampaignsByAccountIdRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
    ---------Response:------------------------------------------------
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v9">XXXXX</h:TrackingId></s:Header><s:Body><GetCampaignsByAccountIdResponse
    xmlns="https://bingads.microsoft.com/CampaignManagement/v9"><Campaigns xmlns:i="http://www.w3.org/2001/XMLSchema-instance"></Campaign>........</Campaigns></GetCampaignsByAccountIdResponse></s:Body></s:Envelope>
    2015-01-15 12:05:55: Service\BingAds::getCampaigns =>
    ---------Soap Fault:--------------------------------------------
    SoapFault catched:
    Could not connect to host
    ---------Soap Request:--------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://bingads.microsoft.com/CampaignManagement/v9"><SOAP-ENV:Header><ns1:CustomerAccountId>XXXXX</ns1:CustomerAccountId><ns1:CustomerId/><ns1:DeveloperToken>XXXXX</ns1:DeveloperToken><ns1:UserName/><ns1:Password/><ns1:AuthenticationToken>XXXXXX</ns1:AuthenticationToken></SOAP-ENV:Header><SOAP-ENV:Body><ns1:GetCampaignsByAccountIdRequest><ns1:AccountId>XXXXX</ns1:AccountId></ns1:GetCampaignsByAccountIdRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
    ---------Response:------------------------------------------------
    (empty response logged)

    Hi,
    1. I am using the older version of the PHP library provided by Bing (updated on 1/20/2014), so that is doing the WSDL loadings. I initialize the proxy calling OpticoBingAdsClientProxy providing what it needs, and then do the requests.
    2. I have a cron that reads data from client's accounts. I make several calls, like get search query report, get keyword performance report, get keyword bulk data. As the script progressed the first 2 worked and the third gave error. Or in other cases the
    first request failed. The calls have quite some time in between them since I process data (sometimes even 160 seconds)
    3. I did not change the code ion terms of requests, since as I said I use the PHP library (same credentials, ...).
    As of today (2015-01-16 10:30 GMT + 2) running my script, still have the same issues.
    Thank you!
    Steve

  • Create a script that can create entire schema with data when run

    Hi,
    I need to create a script that creates the entire schema on a database when the script is run. the need is that the script should be capable of creating all schema objects with grants and all, including the table data.
    The same objective can be achived through export / import.But we don't want to deliver the dump files instead a script which will be executed on a database created with same database stucture of tablespaces etc.
    I have serched the net but yet to achive the goal.
    Is there any oracle utility / script file that can do this for me ?
    Can Oracle import be used to create the same, the way it is used to create index File ?
    Please suggest !!
    Regards

    You should look at the package dbms_metadata to be able to extract all ddl to recreate a schema. To load the data, you could write scripts that will generate insert statements and spool these to a file (sql generating sql), or you could write scripts that generates a delimited file and use sql loader to load the data into the target system. There are lots of little gotchas in either of these 2 solutions. The biggest 2 right away. 1 - picking a delimiter, 2 - dealing with carriage returns in text data. SQL Developer is able to do some extraction, so before you go writing this stuff yourself, I would check it out to see if it does what you are looking for before you reinvent the wheel.

  • How can i import the AUC value when the project go-live

    Dear all experts,
    please help me on the following issue.
    our SAP project will go live in Jan 2010.
    there are some open investment projects to be imported in the PRD.
    the projects are settled to AUC when it is not completed.
    so the actual cost of open projects are the value of AUC.
    but i can not use AS91 to import the value for the AUC because the asset class is for investment measure.
    so  i want to know how can i import the value to AUC thanks a lot.

    Dear  Judy ZHU,
    You can do manual posting to FI using T code like FB50,
    Dr - Cost element(related to project cost ) & WBS
    Cr- CWIP account.
    After that run CJ88 for that project, your project expenses will be settled into AUC/Cost center.
    This is one proposed solution for this to my knowledge..
    SAP experts,  Please correct this if i'm wrong, since I' have not  practically used this method.
    Regards,
    Sam L.

  • XML Schema mapping error when generating web service

    I have created a method in java that returns an array of an object type (a user defined class). When tried to generate a web service JDeveloper did not allow me to select the method, giving the following "Why not.." explanation: "One or more parameters did not have an XML Schema mapping and/or serializer specified".
    Can anyone help me in this?
    Thanks
    Alina

    Thanks Mike for your advice it did work when I changed the setters and getters names, and managed to create a web service with Apache Soap profile. I created the client stub and client application to run the web service but it keep coming with soap-env error messages.
    Error message I get when running the client side:
    F:\JDev9i-0-3\jdk\bin\javaw.exe -ojvm -classpath F:\JDev9i-0-3\jdev\mywork\OrbatListArray\OrbatClient\classes;F:\JDev9i-0-3\jdev\lib\jdev-rt.jar;F:\JDev9i-0-3\jdev\lib\jdev-rt.jar;F:\JDev9i-0-3\soap\lib\soap.jar;F:\JDev9i-0-3\lib\xmlparserv2.jar;F:\JDev9i-0-3\jlib\javax-ssl-1_2.jar;F:\JDev9i-0-3\jlib\jssl-1_2.jar;F:\JDev9i-0-3\j2ee\home\lib\activation.jar;F:\JDev9i-0-3\j2ee\home\lib\mail.jar;F:\JDev9i-0-3\j2ee\home\lib\http_client.jar orbatclientpackage.OrbatListArrayClient
    [SOAPException: faultCode=SOAP-ENV:Server.BadTargetObjectURI; msg=Unable to resolve target object(orbatlistarraypackage.OrbatListArray): orbatlistarraypackage.OrbatListArray [java.lang.ClassNotFoundException]]     orbatlistarraypackage.OrbatType[] orbatclientpackage.OrbatListArrayStub.getOrbatListArray()          OrbatListArrayStub.java:63     void orbatclientpackage.OrbatListArrayClient.main(java.lang.String[])          OrbatListArrayClient.java:19Exception in thread main
    Process exited with exit code 1.
    My wsdl file is:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!--Generated by the Oracle9i JDeveloper Web Services WSDL Generator-->
    <!--Date Created: Wed Oct 23 11:16:29 BST 2002-->
    <definitions
    name="OrbatListArray"
    targetNamespace="http://orbatlistarraypackage/OrbatListArray.wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://orbatlistarraypackage/OrbatListArray.wsdl"
    xmlns:ns1="http://orbatlistarraypackage/IOrbatListArray.xsd">
    <types>
    <schema
    targetNamespace="http://orbatlistarraypackage/IOrbatListArray.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <complexType name="ArrayOfOrbatType" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <complexContent>
    <restriction base="SOAP-ENC:Array">
    <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:orbatlistarraypackage_OrbatType[]"/>
    </restriction>
    </complexContent>
    </complexType>
    <complexType name="orbatlistarraypackage_OrbatType" jdev:packageName="orbatlistarraypackage" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="OrbatName" type="string"/>
    <element name="OrbatID" type="int"/>
    </all>
    </complexType>
    </schema>
    </types>
    <message name="getOrbatListArray0Request"/>
    <message name="getOrbatListArray0Response">
    <part name="return" type="ns1:ArrayOfOrbatType"/>
    </message>
    <portType name="OrbatListArrayPortType">
    <operation name="getOrbatListArray">
    <input name="getOrbatListArray0Request" message="tns:getOrbatListArray0Request"/>
    <output name="getOrbatListArray0Response" message="tns:getOrbatListArray0Response"/>
    </operation>
    </portType>
    <binding name="OrbatListArrayBinding" type="tns:OrbatListArrayPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getOrbatListArray">
    <soap:operation soapAction="" style="rpc"/>
    <input name="getOrbatListArray0Request">
    <soap:body use="encoded" namespace="orbatlistarraypackage.OrbatListArray" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output name="getOrbatListArray0Response">
    <soap:body use="encoded" namespace="orbatlistarraypackage.OrbatListArray" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    </binding>
    <service name="OrbatListArray">
    <port name="OrbatListArrayPort" binding="tns:OrbatListArrayBinding">
    <soap:address location="http://192.9.200.200:8888/soap/servlet/soaprouter"/>
    </port>
    </service>
    </definitions>
    My OrbatListArrayDescriptor.dd file:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!--Generated by the Oracle9i JDeveloper Web Services Deployment Descriptor Generator-->
    <!--This Deployment Descriptor file is for use with the Oracle9iAS Release 2 / Apache 2.2 SOAP Server SOAP Server-->
    <!--Date Created: Wed Oct 23 11:16:29 BST 2002-->
    <isd:service
    id="orbatlistarraypackage.OrbatListArray"
    xmlns:isd="http://xml.apache.org/xml-soap/deployment">
    <isd:provider
    type="java"
    methods="getOrbatListArray"
    scope="Request">
    <isd:java class="orbatlistarraypackage.OrbatListArray" static="false"/>
    </isd:provider>
    <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
    </isd:service>
    My Client Web Service Stub class file:
    package orbatclientpackage;
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import org.apache.soap.encoding.soapenc.BeanSerializer;
    import org.apache.soap.encoding.SOAPMappingRegistry;
    import org.apache.soap.util.xml.QName;
    import java.net.URL;
    import org.apache.soap.Constants;
    import org.apache.soap.Fault;
    import org.apache.soap.SOAPException;
    import org.apache.soap.rpc.Call;
    import org.apache.soap.rpc.Parameter;
    import org.apache.soap.rpc.Response;
    import java.util.Vector;
    import orbatlistarraypackage.OrbatType;
    import java.util.Properties;
    * Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
    * Date Created: Wed Oct 23 11:19:42 BST 2002
    * WSDL URL: file:/F:/JDev9i-0-3/jdev/mywork/OrbatListArray/OrbatListArrayProject/src/orbatlistarraypackage/OrbatListArray.wsdl
    public class OrbatListArrayStub
    public OrbatListArrayStub()
    m_httpConnection = new OracleSOAPHTTPConnection();
    m_smr = new SOAPMappingRegistry();
    BeanSerializer beanSer = new BeanSerializer();
    m_smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("http://orbatlistarraypackage/IOrbatListArray.xsd", "orbatlistarraypackage_OrbatType"), orbatlistarraypackage.OrbatType.class, beanSer, beanSer);
    public String endpoint = "http://192.9.200.200:8888/soap/servlet/soaprouter";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    private SOAPMappingRegistry m_smr = null;
    public OrbatType[] getOrbatListArray() throws Exception
    OrbatType[] returnVal = null;
    URL endpointURL = new URL(endpoint);
    Call call = new Call();
    call.setSOAPTransport(m_httpConnection);
    call.setTargetObjectURI("orbatlistarraypackage.OrbatListArray");
    call.setMethodName("getOrbatListArray");
    call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    Vector params = new Vector();
    call.setParams(params);
    call.setSOAPMappingRegistry(m_smr);
    Response response = call.invoke(endpointURL, "");
    if (!response.generatedFault())
    Parameter result = response.getReturnValue();
    returnVal = (OrbatType[])result.getValue();
    else
    Fault fault = response.getFault();
    throw new SOAPException(fault.getFaultCode(), fault.getFaultString());
    return returnVal;
    public void setMaintainSession(boolean maintainSession)
    m_httpConnection.setMaintainSession(maintainSession);
    public boolean getMaintainSession()
    return m_httpConnection.getMaintainSession();
    public void setTransportProperties(Properties props)
    m_httpConnection.setProperties(props);
    public Properties getTransportProperties()
    return m_httpConnection.getProperties();
    My Client application main file:
    package orbatclientpackage;
    import java.io.*;
    public class OrbatListArrayClient
    public OrbatListArrayClient()
    public static void main(String[] args) throws Exception
    OrbatListArrayStub s = new OrbatListArrayStub();
    // File xmlFile;
    // BufferedWriter in;
    // xmlFile = new File("f:\\OrbatSoap", "OrbatXMLList.xml");
    // PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(xmlFile)));
    // out.println(s.getOrbatListArray());
    // out.flush();
    System.out.println(s.getOrbatListArray());
    When I deployed it to jar I copied the jar file in the following directory:
    <jdevloper home>\soap\webapps\soap\soap\Web-inf\lib\
    I then tried and created a client stub in the same package using JDeveloper 9.0.3 wizard for creating sample java client and added a line to call my getOrbatListArray method and print it to the screen. I get another soap error message, saying:
    F:\JDev9i-0-3\jdk\bin\javaw.exe -ojvm -classpath F:\JDev9i-0-3\jdev\mywork\OrbatListArray\OrbatListArrayProject\classes;F:\JDev9i-0-3\jdev\lib\jdev-rt.jar;F:\JDev9i-0-3\jdbc\lib\classes12.jar;F:\JDev9i-0-3\jdbc\lib\nls_charset12.jar;F:\JDev9i-0-3\rdbms\jlib\xsu12.jar;F:\JDev9i-0-3\lib\xmlparserv2.jar;F:\JDev9i-0-3\lib\xmlcomp.jar;F:\JDev9i-0-3\jdev\lib\jdev-rt.jar;F:\JDev9i-0-3\soap\lib\soap.jar;F:\JDev9i-0-3\lib\xmlparserv2.jar;F:\JDev9i-0-3\jlib\javax-ssl-1_2.jar;F:\JDev9i-0-3\jlib\jssl-1_2.jar;F:\JDev9i-0-3\j2ee\home\lib\activation.jar;F:\JDev9i-0-3\j2ee\home\lib\mail.jar;F:\JDev9i-0-3\j2ee\home\lib\http_client.jar orbatlistarraypackage.EmbeddedOrbatListArrayStub
    [SOAPException: faultCode=SOAP-ENV:IOException; msg=Connection refused: connect; targetException=java.net.ConnectException: Connection refused: connect]     void org.apache.soap.SOAPException.<init>(java.lang.String, java.lang.String, java.lang.Throwable)          SOAPException.java:77     void oracle.soap.transport.http.OracleSOAPHTTPConnection.send(java.net.URL, java.lang.String, java.util.Hashtable, org.apache.soap.Envelope, org.apache.soap.encoding.SOAPMappingRegistry, org.apache.soap.rpc.SOAPContext)          OracleSOAPHTTPConnection.java:765     org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)          Call.java:253     orbatlistarraypackage.OrbatType1[] orbatlistarraypackage.EmbeddedOrbatListArrayStub.getOrbatListArray()          EmbeddedOrbatListArrayStub.java:70     void orbatlistarraypackage.EmbeddedOrbatListArrayStub.main(java.lang.String[])          EmbeddedOrbatListArrayStub.java:38Process exited with exit code 0.
    Sorry for the length of this message, but I am getting desparate.
    Thanks again for all you help
    Alina

  • Schema/Owner prefix when generating scripts

    I'm trying to create a foreign key between two schema's in designer. I have already added an external reference. However when I look at the code generated then no schema prefix is added and therefore the foreign key is not created.
    Does anyone know how I can make sure the code is generated with the prefix?

    Generating from the DB Admin tab does not prefix the objects I am generating with the schema name. There isn't a generator preference (that I've found at least) to accomplish this. Has anyone been able to generate database objects prefixed with the schema name?
    Thanks,
    Wayne

  • Can't Import netscape.javascript; classpath set properly

    I have an applet that is trying to say
    import netscape.javascript.*No matter how I try to compile it, I get the error
    package netscape.javascript does not existI am primarily using ant for building; here is the pertinent section of my build.xml file:
    <property name="output" location="javaclasses" />
       <target name="compile">
          <javac srcdir="./"
                 destdir="${output}"
                 includes="**/*.java"
                 classpath="./,\
                            javaclasses/packages/epsgraphics.jar,\
                            /usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/lib/plugin.jar,\
                            javaclasses"
                 listfiles="yes">
          </javac>
       </target>Note that plugin.jar is included in my classpath. Using jar -tf <...>/plugin.jar, I can see that it contains the netscape package, the javascript subdirectory, and the JSObject.class I am interested in.
    Attempting to resolve this manually with the command line
    javac -classpath "./;javaclasses/packages/epsgraphics.jar;/usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/lib/plugin.jar;javaclasses" myApplet.javagives the same error.
    Moving plugin.jar to my local directory, or any other directory specified in the classpath (which worked just fine until I tried accessing plugin.jar) and re-jiggering the classpath so it can be located gives the same result: it can't find netscape.javascript.
    I'm using javac from java-1.5.0-sun-1.5.0_update13-sr2 on Suse Linux 10.3.
    What am I missing here?

    As noted, the class is present in the jar file, as revealed with 'jar -tf plugin.jar'
    I've fiddled with separators, as well. You're correct that a colon is used under Linux; that is what I had used in earlier attempts, but wound up copying the latest incarnation, which was desperately cribbed from another forum's example, thinking that Java might have other ideas. None of the variants I tried worked.
    Trying it again, replacing the command line given with colons, still doesn't work; fails with the same message.
    Currently pursuing another Ant solution, with no joy.
    Thanks for your reply.

  • How can I import schema to a different tablespace in a new database?

    Hi,
    I want to transport a schema "abc", which is on 'USERS" tablespace in the old database, to a new database using Data Pump. But on the new server, I want it on a different tablespace, say "TEST". How can I do that? I tried the following but it does not work:
    1. Create a user "abc" on new database, assign "TEST" as its default tablespace;
    2. use impdp to import the dmp file;
    I found that on the new server, the imported tables are still on the "USERS" tablespace.
    Can anyone tell me how to do it? thanks a lot.

    Use the REMAP_TABLESPACE option:
    REMAP_TABLESPACE = source_tablespace:target_tablespace
    Rick

  • What do i do when external optical drive doesn't show up in finder?  how can i import software, music, etc. when the drive isn't recognized/mounted/whatever?

    the internal optical drive on my early 2006 20"imac has mechanical problems ejecting discs.  i've gone thru all the recommended steps to eject discs, and have luckily been able to eject the last 3 discs but only after spending 30-60 minutes going thru all of the steps over and over, and today just trying "eject disc" in itunes since i had itunes open.  i don't want to put another disc in - the drive clearly has problems with the mechanical eject mechanism, and from what i've read that's not unique to my computer.
    i bought an external optical drive: lite on, clamshell design to avoid problems with the eject mechanism; i contacted the mfr who said it's mac compatible.
    the drive plays dvds, which is all i've tried so far, but doesn't show up in finder.  so i don't know how to use it to load software, or music, or anything besides watch dvds.
    is there something i can do to get the drive recognized/mounted/whatever?  i would prefer to not spend the $220 which was quoted to me by an authorized mac repair company, even tho i think that's probably a reasonable cost given the delicacy of the operation as shown on ifixit.com. 
    thanks!

    I have an external LaCie burner and it will not show up on my Mac unless I insert a CD or DVD - in that case, the media will show up (I have these settings in the Pref Pane):
    If you want to burn files or music to blank media, you can use Finder or Disk Utility for files, but should use an iTunes playlist/iTunes for music and a movie burn app for videos/movies (such as iDVD, Roxio Toast, Burn, etc).
    If you simply want to drag files over as a backup, an external hard drive is a much better solution than a burner.

  • Can an unknown font will failed when generating BIP in siebel application?

    Thanks! :)

    ohhhh, Thanks for answering, may BIP failed because of the configurator in Siebel
    by the way, your answer is exactly what will I ask now :)
    now I see why it is printed in ???
    Thanks!!! :)

  • Import schema to a different tablespace

    hi,
    I've exported my instance:
    EXP SYSTEM/MANAGER@OLDINSTANCE FULL=Y FILE=C:\EXP_FILE.DMP LOG=C:\ERROR_EXP.LOG
    after I've created new tablespace and new user:
    CREATE TABLESPACE MAX DATAFILE 'c:\MAX01.dbf' SIZE 3800M REUSE DEFAULT STORAGE
    (INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS 256 PCTINCREASE 0) ONLINE;
    CREATE USER MAX IDENTIFIED BY MAX DEFAULT TABLESPACE MAX TEMPORARY TABLESPACE TEMP;
    finally I've imported tom's objects in MAX:
    IMP SYSTEM/MANAGER@NEWINSTANCE FROMUSER=TOM TOUSER=MAX FILE=C:\EXP_FILE.DMP LOG=C:\ERROR_IMP.log
    but in some tables I get these errors:
    IMP-00017: following statement failed with ORACLE error 1658:
    "CREATE TABLE "AREA" ("OFL" VARCHAR2(4), "OBL" VARCHAR2(32), "OSITE" V"
    "ARCHAR2(32), "OLS" VARCHAR2(32), "OAREA" NUMBER, "DV_ID" VARCHAR2(32), "DP_"
    "ID" VARCHAR2(32), "ODISMESSO" VARCHAR2(2), "OTYPE" VARCHAR2(64), "OCAT" VAR"
    "CHAR2(64), "OOCCUP" NUMBER, "SFL" VARCHAR2(32), "SBL" VARCHAR2(32), "SSITE""
    " VARCHAR2(32), "PRORATE" VARCHAR2(8), "STYPE" VARCHAR2(64), "SCAT" VARCHAR2"
    "(64), "SAREA" NUMBER, "SOCCUP" NUMBER, "AREA_SERV" NUMBER) PCTFREE 10 PCTU"
    "SED 40 INITRANS 1 MAXTRANS 255 LOGGING STORAGE(INITIAL 314572800 NEXT 52428"
    "800 MINEXTENTS 1 MAXEXTENTS 1000 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS "
    "1 BUFFER_POOL DEFAULT) TABLESPACE "TOM""
    IMP-00003: ORACLE error 1658 encountered
    ORA-01658: unable to create INITIAL extent for segment in tablespace TOM
    In new instance there are 2 tablespaces (TOM, MAX)
    I tried 2 solution:
    1) I've taken the tablespace TOM offline in the new instance, but when I import fromuser=TOM touser=MAX.............
    I get error because not exist tablespace TOM
    2)I removed MAX's quota on the TOM tablespace in the new instance.
    ALTER USER MAX QUOTA unlimited ON TOM;
    but when I import I get alway the same error:
    ORA-01658: unable to create INITIAL extent for segment in tablespace TOM
    I know That I must encrease tablespace TOM for avoid this error, but I must create 6 new users in 6 different tablespaces and I'd to increase tablespace TOM too much (how many GB?).
    how can I import schema to a different tablespace?
    Thanks
    Raf

    I don't understand why you cannot import TOM's scheme
    to new instance, because you say that you' ve TOM
    tablespace in the database.
    Check size of it, may be you need to increase size or
    you can TOM tablespace set autoextended.
    Also, you can set MAX tablespace is default in new database and set TOM tablespace is readonly.
    Then import cannot create object in TOM tablespace
    and create this in MAX tablespace.
    Best regards, Victor

  • Can't import P2 Footage after 5.1.2 update

    This one has me stumped. After updating to 5.1.2 I can not import P2 footage.
    When I click on the import Panasonic P2 tab under the import menu, nothing happens. Then, I click on it one more time and the import window loads but there is nothing there (I see the dividing lines but there is no text or buttons to click...just a solid grey background).
    Tried the usual...trashed prefs, rebuilt permissions, downloaded the full FCP update off of the apple website and re-installed.
    Also pulled all my plug-ins out just in case it was somehow related to that issue.
    Still nothing.
    Also, searched this form, creative cow and HVXUSER...no one else seems to have this issue.
    Any thing I am missing?
    - Chad
    Dual 2 Gig G5   Mac OS X (10.4.8)  

    Same problem here on two different G5 machines after installing 5.1.2. Love the new import tool - but 10-20% of our clips just won't import anymore. Done all the recommended clean-ups and like many others on this forum and CreativeCow...it just won't work on some 24PN clips.
    Getting desperate as we have daily shows that go out and need to get the rest of those clips in so I'm looking for any workarounds at this point and hoping Apple has a fix soon. This is clearly related to 5.1.2 as the same clips were previously imported in 5.1.1 and are readable in the P2 viewer and even playable in the 5.1.2 P2 import window.

  • I can't import file.

    Hi. I've downloaded video from youtube and want to edit this video. But I can't import this video. When i select video for import, I recieve this message "After Effects warning: The File <name> could not be found". Who can help me? Thank you very much

    Convert the video using an external tool like ffmpeg/ MPEGStreamclip/ Handbrake or whatever to something AE can actually use.
    Mylenium

  • I can't import my contacts

    Hi guys, anyone has any ideas why I can't import my hotmail contacts, when I check the console it shows this? Is there something wrong with the javascript library for windows live? It would be greatly appreciated if anyone can point us in the right direction.
    Thanks!

    It's really hard to see the screenshot but it sounds like the WL.init function isn't being called by your app so it's unable to make a call to the service with your client_id, redirect_url, scopes, and token/code type.  Are you still seeing issues? 
    If so, you might want to run a fiddler trace to see if a call is being made to
    http://login.live.com to see if it's trying to authenticate and retrieve the token.  I hope that helps.

  • Can´t Import .mxf Files.

    i´ve just updated to premiere pro cc 2014. now i can´t import mxf files anymore. when trying i get an error-message, that something went wrong, but no explanation. so what can i do?, does any body know the problem?
    [Please choose only a short description for the thread title.]
    Message was edited by: Jim Simon

    Try moving or renaming the folder the media is is.

Maybe you are looking for

  • Como identificar no BP o regime de tributação de um fornecedor

    Prezados, Para entregar a obrigação acessória municipal "Nota Carioca" é necessário identificar os pagamentos de serviço feitos no mês para fornecedores optantes pelo simples. O software tributário que utilizamos é o Mastersaf, que por sua vez trata

  • Populate word document with default metadata information

    Problem is revers as it is available in internet.  I have created list and  columns. Which are populated  with default value. I have created word  template. I can enter  data related to "Document properties", ect. When I save that document to documen

  • Help with possible STISIM GUI

    I am working in a psych lab and we use a STISIM drive sim to do some research. The problem is that this sim uses a weird proprietary code that scenarios must be written in. Its simple enough, but a huge time suck. I was hoping there would be some way

  • Create an image scroller with swipe&drag in Edge Animate

    Hi folks! I'm trying to create a image scroller like this one http://www.awwwards.com/demo/touchSwipe-gallery-demo.html. For the Swipe, I use the wonderful JQuery Plugin TouchSwipe http://labs.rampinteractive.co.uk/touchSwipe/demos/, but for the imag

  • Get iViews from Role

    Hi I want to find out on which page a specific iViews is used, that means, where in the (user specific) navigation the iView will be displayed. When I traverse the navigation nodes, I get with getName() something like "ROLES://portal_content/folder/p