NamingException: No location specified and no suitable instance

Hello,
Problem:
I'm trying to deploy an application (an EAR file) and I'm getting the following error:
javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'com.foo.shell.CommandShellLocal' found for the ejb-local-ref CommandShell
The issue is that I'm not sure what exactly this error message is saying is missing from my descriptors.
It mentions "no location" and "no suitable instance".
The instance (meaning, the com.foo.shell.CommandShellLocal class) does exist in the JAR file included in my EAR file. Is the error referring to something else when it says "no suitable instance"?
What about "no location"? What location is the error message referring to? Am I missing env:java/CommandShell or some such?
What I have in my web.xml is this:
<ejb-local-ref>
<ejb-ref-name>CommandShell</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.foo.CommandShellLocalHome</local-home>
<local>com.foo.CommandShellLocal</local>
</ejb-local-ref>
The error message is referring to something in the above definition being wrong. I can't spot an error.... am I doing something wrong?
I also have this in my ejb-jar.xml:
<session>
<description>Command Shell</description>
<display-name>CommandShell</display-name>
<ejb-name>CommandShell</ejb-name>
<local-home>com.foo.shell.CommandShellLocalHome</local-home>
<local>com.foo.shell.CommandShellLocal</local>
<home>com.foo.shell.CommandShellHome</home>
<remote>com.foo.shell.CommandShell</remote>
<ejb-class>com.foo.shell.CommandShellBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
Am I doing something wrong? Missing something? Aaaany help would be muuuuch appreciated. I am trying to migrate from JBoss to OAS and I've been stuck on this for a few days already. :(
Thanks,
Otis

Hello,
Is it possible that something is wrong with my JNDI setup?
The only JNDI reference I see in j2ee/home/config is in file called jndi.properties:
java.naming.factory.initial=com.evermind.server.ApplicationInitialContextFactory
java.naming.provider.url=ormi://localhost:23791
java.naming.security.principal=admin
java.naming.security.credentials=admin2
However, I don't think there is JNDI listening on that 23791 port:
$ telnet localhost 23791
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
Furthermore, I am using OC4J in the OAS context that includes an Admin app. In this app I can see the list of ports that the instance is listening to, but there is no port 23791 and there is nothing labeled as JNDI.
I have a feeling that my EJB cannot be looked up simply because JNDI is not up.
Could anyone help with that? How do I make sure JNDI is up?
Thanks,
Otis

Similar Messages

  • JNDI NamingException: No location specified and no suitable instance

    Hello,
    I'm trying to deply an application (an EAR file) and I'm getting the following error:
    javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'com.foo.shell.CommandShellLocal' found for the ejb-local-ref CommandShell
    So... "no location" and "no suitable instance".
    The instance (meaning, the com.foo.shell.CommandShellLocal class) does exist in the JAR file included in my EAR file. Is the error referring to something else when it says 'instance'?
    What about "no location"? What location is the error message referring to? Am I missing env:java/CommandShell or some such?
    What I have in my web.xml is this:
    <ejb-local-ref>
    <ejb-ref-name>CommandShell</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home>com.foo.CommandShellLocalHome</local-home>
    <local>com.foo.CommandShellLocal</local>
    </ejb-local-ref>
    The error message is referring to something in the above definition being wrong. I can't spot an error.... am I doing something wrong?
    I also have this in my ejb-jar.xml:
    <session>
    <description>Command Shell</description>
    <display-name>CommandShell</display-name>
    <ejb-name>CommandShell</ejb-name>
    <local-home>com.foo.shell.CommandShellLocalHome</local-home>
    <local>com.foo.shell.CommandShellLocal</local>
    <home>com.foo.shell.CommandShellHome</home>
    <remote>com.foo.shell.CommandShell</remote>
    <ejb-class>com.foo.shell.CommandShellBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    Am I doing something wrong? Missing something? Aaaany help would be muuuuch appreciated. I am trying to migrate from JBoss to OAS.
    Thanks,
    Otis

    Hello,
    Does anyone have any ideas about the above? Where should I start looking? Could anyone from Oracle help out? We are trying to migrate from JBoss to OAS. I've been stuck on this for a few days now...and we want to migrate... yesterday. :(
    Thanks,
    Otis

  • REST API: Create Deployment throwing error BadRequest (The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.)

    Hi All,
    We are trying to access the Create Deployment method stated below
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460813
    We have uploaded the Package in the blob and browsing the configuration file. We have checked trying to upload manually the package and config file in Azure portal and its working
    fine.
    Below is the code we have written for creating deployment where "AzureEcoystemCloudService" is our cloud service name where we want to deploy our package. I have also highlighted the XML creation
    part.
    byte[] bytes =
    new byte[fupldConfig.PostedFile.ContentLength + 1];
                fupldConfig.PostedFile.InputStream.Read(bytes, 0, bytes.Length);
    string a = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
    string base64ConfigurationFile = a.ToBase64();
    X509Certificate2 certificate =
    CertificateUtility.GetStoreCertificate(ConfigurationManager.AppSettings["thumbprint"].ToString());
    HostedService.CreateNewDeployment(certificate,
    ConfigurationManager.AppSettings["SubscriptionId"].ToString(),
    "2012-03-01", "AzureEcoystemCloudService", Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot.staging,
    "AzureEcoystemDeployment",
    "http://shubhendustorage.blob.core.windows.net/shubhendustorage/Infosys.AzureEcoystem.Web.cspkg",
    "AzureEcoystemDeployment", base64ConfigurationFile,
    true, false);   
    <summary>
    /// </summary>
    /// <param name="certificate"></param>
    /// <param name="subscriptionId"></param>
    /// <param name="version"></param>
    /// <param name="serviceName"></param>
    /// <param name="deploymentSlot"></param>
    /// <param name="name"></param>
    /// <param name="packageUrl"></param>
    /// <param name="label"></param>
    /// <param name="base64Configuration"></param>
    /// <param name="startDeployment"></param>
    /// <param name="treatWarningsAsError"></param>
    public static
    void CreateNewDeployment(X509Certificate2 certificate,
    string subscriptionId,
    string version, string serviceName, Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot deploymentSlot,
    string name, string packageUrl,
    string label, string base64Configuration,
    bool startDeployment, bool treatWarningsAsError)
    Uri uri = new
    Uri(String.Format(Constants.CreateDeploymentUrlTemplate, subscriptionId, serviceName, deploymentSlot.ToString()));
    XNamespace wa = Constants.xmlNamespace;
    XDocument requestBody =
    new XDocument();
    String base64ConfigurationFile = base64Configuration;
    String base64Label = label.ToBase64();
    XElement xName = new
    XElement(wa + "Name", name);
    XElement xPackageUrl =
    new XElement(wa +
    "PackageUrl", packageUrl);
    XElement xLabel = new
    XElement(wa + "Label", base64Label);
    XElement xConfiguration =
    new XElement(wa +
    "Configuration", base64ConfigurationFile);
    XElement xStartDeployment =
    new XElement(wa +
    "StartDeployment", startDeployment.ToString().ToLower());
    XElement xTreatWarningsAsError =
    new XElement(wa +
    "TreatWarningsAsError", treatWarningsAsError.ToString().ToLower());
    XElement createDeployment =
    new XElement(wa +
    "CreateDeployment");
                createDeployment.Add(xName);
                createDeployment.Add(xPackageUrl);
                createDeployment.Add(xLabel);
                createDeployment.Add(xConfiguration);
                createDeployment.Add(xStartDeployment);
                createDeployment.Add(xTreatWarningsAsError);
                requestBody.Add(createDeployment);
                requestBody.Declaration =
    new XDeclaration("1.0",
    "UTF-8", "no");
    XDocument responseBody;
    RestApiUtility.InvokeRequest(
                    uri, Infosys.AzureEcosystem.Entities.Enums.RequestMethod.POST.ToString(),
    HttpStatusCode.Accepted, requestBody, certificate, version,
    out responseBody);
    <summary>
    /// A helper function to invoke a Service Management REST API operation.
    /// Throws an ApplicationException on unexpected status code results.
    /// </summary>
    /// <param name="uri">The URI of the operation to invoke using a web request.</param>
    /// <param name="method">The method of the web request, GET, PUT, POST, or DELETE.</param>
    /// <param name="expectedCode">The expected status code.</param>
    /// <param name="requestBody">The XML body to send with the web request. Use null to send no request body.</param>
    /// <param name="responseBody">The XML body returned by the request, if any.</param>
    /// <returns>The requestId returned by the operation.</returns>
    public static
    string InvokeRequest(
    Uri uri,
    string method,
    HttpStatusCode expectedCode,
    XDocument requestBody,
    X509Certificate2 certificate,
    string version,
    out XDocument responseBody)
                responseBody =
    null;
    string requestId = String.Empty;
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = method;
                request.Headers.Add("x-ms-Version", version);
                request.ClientCertificates.Add(certificate);
                request.ContentType =
    "application/xml";
    if (requestBody != null)
    using (Stream requestStream = request.GetRequestStream())
    using (StreamWriter streamWriter =
    new StreamWriter(
                            requestStream, System.Text.UTF8Encoding.UTF8))
                            requestBody.Save(streamWriter,
    SaveOptions.DisableFormatting);
    HttpWebResponse response;
    HttpStatusCode statusCode =
    HttpStatusCode.Unused;
    try
    response = (HttpWebResponse)request.GetResponse();
    catch (WebException ex)
    // GetResponse throws a WebException for 4XX and 5XX status codes
                    response = (HttpWebResponse)ex.Response;
    try
                    statusCode = response.StatusCode;
    if (response.ContentLength > 0)
    using (XmlReader reader =
    XmlReader.Create(response.GetResponseStream()))
                            responseBody =
    XDocument.Load(reader);
    if (response.Headers !=
    null)
                        requestId = response.Headers["x-ms-request-id"];
    finally
                    response.Close();
    if (!statusCode.Equals(expectedCode))
    throw new
    ApplicationException(string.Format(
    "Call to {0} returned an error:{1}Status Code: {2} ({3}):{1}{4}",
                        uri.ToString(),
    Environment.NewLine,
                        (int)statusCode,
                        statusCode,
                        responseBody.ToString(SaveOptions.OmitDuplicateNamespaces)));
    return requestId;
    But every time we are getting the below error from the line
     response = (HttpWebResponse)request.GetResponse();
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Code>BadRequest</Code>
      <Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message>
    </Error>
     Any help is appreciated.
    Thanks,
    Shubhendu

    Please find the request XML I have found it in debug mode
    <CreateDeployment xmlns="http://schemas.microsoft.com/windowsazure">
      <Name>742d0a5e-2a5d-4bd0-b4ac-dc9fa0d69610</Name>
      <PackageUrl>http://shubhendustorage.blob.core.windows.net/shubhendustorage/WindowsAzure1.cspkg</PackageUrl>
      <Label>QXp1cmVFY295c3RlbURlcGxveW1lbnQ=</Label>
      <Configuration>77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0NCiAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KDQogIFRoaXMgZmlsZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgdG9vbCBmcm9tIHRoZSBwcm9qZWN0IGZpbGU6IFNlcnZpY2VDb25maWd1cmF0aW9uLkNsb3VkLmNzY2ZnDQoNCiAgQ2hhbmdlcyB0byB0aGlzIGZpbGUgbWF5IGNhdXNlIGluY29ycmVjdCBiZWhhdmlvciBhbmQgd2lsbCBiZSBsb3N0IGlmIHRoZSBmaWxlIGlzIHJlZ2VuZXJhdGVkLg0KDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCi0tPg0KPFNlcnZpY2VDb25maWd1cmF0aW9uIHNlcnZpY2VOYW1lPSJXaW5kb3dzQXp1cmUxIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iMSIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDEyLTA1LjEuNyI+DQogIDxSb2xlIG5hbWU9IldlYlJvbGUxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIyIiAvPg0KICAgIDxDb25maWd1cmF0aW9uU2V0dGluZ3M+DQogICAgICA8U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IkRlZmF1bHRFbmRwb2ludHNQcm90b2NvbD1odHRwcztBY2NvdW50TmFtZT1zaHViaGVuZHVzdG9yYWdlO0FjY291bnRLZXk9WHIzZ3o2aUxFSkdMRHJBd1dTV3VIaUt3UklXbkFrYWo0MkFEcU5saGRKTTJwUnhnSzl4TWZEcTQ1ZHI3aDJXWUYvYUxObENnZ0FiZnhONWVBZ2lTWGc9PSIgLz4NCiAgICA8L0NvbmZpZ3VyYXRpb25TZXR0aW5ncz4NCiAgPC9Sb2xlPg0KPC9TZXJ2aWNlQ29uZmlndXJhdGlvbj4=</Configuration>
      <StartDeployment>true</StartDeployment>
      <TreatWarningsAsError>false</TreatWarningsAsError>
    </CreateDeployment>
    Shubhendu G

  • HT1923 I get a message-error opening installationlog file. Verify that the specified lof file location exists and is writeable-when I try to uninstall iTunes and other components

    I get a message-error opening installationlog file. Verify that the specified lof file location exists and is writeable-when I try to uninstall iTunes and other components. How can I uninstall and reinstall iTunes?

    Hey jemerritt,
    Thanks for the question. I understand you are experiencing issues with iTunes for Windows. The following resources may help to resolve your issue:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thanks,
    Matt M.

  • TRYING TO INSTALL adobe photoshop elements8 AND IM GETTING error opening installation log file. verify that the specified location exists and is writable

    TRYING TO INSTALL adobe photoshop elements8 AND IM GETTING error opening installation log file. verify that the specified location exists and is writable

    Error opening installation log file | Windows

  • Is there any way to open a map to the location specified in a calendar event?

    Besides opening the event, copying the location, and pasting it into google\bing\etc mapping tools I do not see this rather common functionality available in Lightning. Ideally, right clicking on the event in the calendar (without opening the event) would provide an option to open your desired mapping site set to the location specified in the event. Or even if you could open the event and there was a "Map" button next to the location. Is there even a plug in\add on\extension that provides this?

    we are working on server to server APIs that will allow you to fetch data (items) from node.
    when that is available you'll be able to get the user list from the UserManager node.

  • ORA-22275: invalid LOB locator specified

    Hello,
    I use Oracle 11.2.0.3. APEX 4.2.2... Listener 2.0.3 .... Glassfish server 4.0.
    When I run this procedure ( that is used in this tutorial )
    I get ORA-22275: invalid LOB locator specified.
    The error persists over Glass fish 3.0.2, Listener 2.0.1 and 2.0.2.
    Also, I installed this patch 16803775, but to not avail.
    declare
            v_mime  VARCHAR2(48);
            v_length  NUMBER;
            v_file_name VARCHAR2(2000);
            Lob_loc  BLOB;
    BEGIN
            SELECT MIMETYPE, CONTENT, filename,DBMS_LOB.GETLENGTH(content)
                    INTO v_mime,lob_loc,v_file_name,v_length
                    FROM image
                    WHERE id = 70;
                     htp.init;
                  -- set up HTTP header
                        -- use an NVL around the mime type and
                        -- if it is a null set it to application/octect
                        -- application/octect may launch a download window from windows
                        owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
                    -- set the size so the browser knows how much to download
                    htp.p('Content-length: ' || v_length);
                    -- the filename will be used by the browser if the users does a save as
                    htp.p('Content-Disposition:  attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
                    -- close the headers  
                    owa_util.http_header_close;        
                    owa_util.http_header_close;
                    -- download the BLOB
                    wpg_docload.download_file( Lob_loc );
    end  ;
    Any help pls, in getting that procedure works ?
    Regards,
    Fateh

    replace this statement
    select empty_clob() into c_xml from dual for update;
    with
    dbms_lob.createtemporary(c_xml, TRUE);

  • ORA-22275 :invalid LOB locator specified error while loading BLOBs/CLOBS.

    Hello All,
    I am trying to load BLOB/CLOB data from a client oracle DB to the oracle db on our side,we are using ODI version 10.1.3.5.6,which reportedly has the issue of loading BLOB/CLOBS solved.I am using
    The extraction fails in the loading stage when inserting data into the C$ table with the following error.
    "22275:99999 :java.sql.BatchUpdateException:ORA-22275:Invalid LOB locator specified".
    Kindly let me know how I can resolve this issue as the requirement to load this data is very urgent.
    Thanks,
    John

    One alternate way can be done out of ODI as ODI is still not able to resolve this issue. You can trim these fields (CLOB/BLOB) and push this data as separate fields into ODI and at the reporting end you can again concatenate them.
    May be this may solve your problem ....it solved mine.
    --XAT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ORA-22275: invalid LOB locator specified on trigger

    I have a trigger which copies a blob on insert to one table to another.
    CREATE OR REPLACE TRIGGER SWZTPRO.TSWTMPI_BEFORE_INSERT
    BEFORE INSERT
    ON SWZTPRO.TO_TSWTMPI
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    discriminator TO_TSWCRUL.BTC_DIS%TYPE;
    discriminator:=:NEW.BTC_DIS;
    insert into .....
    If using after insert this triggerworks, but if the trigger fails for any reason, the client does not recieve the error.
    If using before insert this fails:
    insert into table, use before insert trigger
    ORA-22275: invalid LOB locator specified
    ORA-06512: at "SWZTPRO.TSWTMPI_BEFORE_INSERT", line 108
    ORA-22275: invalid LOB locator specified
    ORA-04088: error during execution of trigger 'SWZTPRO.TSWTMPI_BEFORE_INSERT'
    Any help would be appreciated

    I have also used a varaiation tirgger to do an instead of on insert on a view and I get the following error:
    ORA-25008: no implicit conversion to LOB datatype in instead-of trigger

  • DBMS_LOB.CONVERTTOBLOB invalid LOB locator specified: ORA-22275

    Hi all,
    the following code has been working great on 11g (and apex.oracle.com)
    now when I try to use this function under 10g XE
    I get following error :
    ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
    ORA-06512: at "SYS.DBMS_LOB", line 696
    ORA-06512: at "RIGHTSHOP.C2B", line 14line 14 being the line with DBMS_LOB.CONVERTTOBLOB
    any ideas ?
    CREATE OR REPLACE FUNCTION c2b( p_clob IN CLOB )
          RETURN BLOB
    is
      temp_blob   BLOB;
      dest_offset NUMBER  := 1;
      src_offset  NUMBER  := 1;
      amount      INTEGER := dbms_lob.lobmaxsize;
      blob_csid   NUMBER  := dbms_lob.default_csid;
      lang_ctx    INTEGER := dbms_lob.default_lang_ctx;
      warning     INTEGER;
    BEGIN
    DBMS_LOB.CREATETEMPORARY(lob_loc=>temp_blob, cache=>TRUE);
      DBMS_LOB.CONVERTTOBLOB(temp_blob, p_clob,amount,dest_offset,src_offset,blob_csid,lang_ctx,warning);
      return temp_blob;
    END;Kr
    Martin

    Can't reproduce
    SQL> CREATE OR REPLACE FUNCTION c2b( p_clob IN CLOB )
    RETURN BLOB
    is
    temp_blob BLOB;
    dest_offset NUMBER := 1;
    src_offset NUMBER := 1;
    amount INTEGER := dbms_lob.lobmaxsize;
    blob_csid NUMBER := dbms_lob.default_csid;
    lang_ctx INTEGER := dbms_lob.default_lang_ctx;
    warning INTEGER;
    BEGIN
    DBMS_LOB.CREATETEMPORARY(lob_loc=>temp_blob, cache=>TRUE);
    DBMS_LOB.CONVERTTOBLOB(temp_blob, p_clob,amount,dest_offset,src_offset,blob_csid,lang_ctx,warning);
    return temp_blob;
    END;  2    3    4    5    6    7    8    9   10   11   12   13   14   15   16 
    17  /
    Function created.
    SQL> declare
      2     b blob;
      3     c clob;
      4  begin
      5     c := 'x';
      6     b := c2b (c);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SQL> and my version (also XE)
    SQL> select *
      2    from v$version
      3  /
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

  • Fresh install of 11.1 and "sqlplus user@instance/password" does not work

    new server, windows server 2008, fresh install of 11.1.0.7 with local instance.
    can connect to the instance using "sqlplus user/password" since ORACLE_SID is set,
    can connect to a 9.2 remote instance using "sqlplus user@remoteinstance/password".
    can't connect using "sqlplus user@localinstance/password".
    <command>
    l:path>set oracle_sid=localinstance
    l:path>sqlplus username/password
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Nov 8 13:11:02 2010
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Release 11.1.0.7.0 - Production
    SQL> exit
    Disconnected from Oracle Database 11g Release 11.1.0.7.0 - Production
    l:\path>sqlplus username@localinstance/password
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Nov 8 13:11:21 2010
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    l:\path>
    l:\path>sqlplus username@remoteinstance/password
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Nov 8 13:11:45 2010
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    SQL> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    l:\path>
    </command>
    what am i doing wrong?
    many thanks in advance,
    stephen.

    =================================
    A couple of important points.
    First, the listener is a server side only process. It's entire purpose in life is to receive requests for connections to databases and set up those connections. Once the connection is established, the listener is out of the picture. It creates the connection. It doesn't sustain the connection. One listener, with the default name of LISTENER, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners or to name the listener as if it belongs to a particular database. That would be like the telephone company building a separate switchboard for each customer.
    Additional notes on the listener: One listener is capable of listening on multiple ports. But please notice that it is the listener using these ports, not the database instance. You can't bind a specific listener port to a specific db instance. Similarly, one listener is capable of listnening on multiple IP addresses (in the case of a server with multiple NICs) But just like the port, you can't bind a specific ip address to a specific db instance.
    Second, the tnsnames.ora file is a client side issue. It's purpose is for address resolution - the tns equivalent of the 'hosts' file further down the network stack. The only reason it exists on a host machine is because that machine can also run client processes.
    Assume you have the following in your tnsnames.ora:
    larry =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = curley)
      )Now, when you issue a connect, say like this:
    $> sqlplus scott/tiger@larrytns will look in your tnsnames.ora for an entry called 'larry'. Next, tns sends a request to (PORT = 1521) on (HOST = myhost) using (PROTOCOL = TCP), asking for a connection to (SERVICE_NAME = curley).
    Where is (HOST = myhost) on the network? When the request gets passed from tns to the next layer in the network stack, the name 'myhost' will get resolved to an IP address, either via a local 'hosts' file, via DNS, or possibly other less used mechanisms. You can also hard-code the ip address (HOST = 123.456.789.101) in the tnsnames.ora.
    Next, the request arrives at port 1521 on myhost. Hopefully, there is a listener on myhost configured to listen on port 1521, and that listener knows about SERVICE_NAME = curley. If so, you'll be connected.
    What can go wrong?
    First, there may not be an entry for 'larry' in your tnsnames. In that case you get "ORA-12154: TNS:could not resolve the connect identifier specified" No need to go looking for a problem on the host, with the listener, etc. If you can't place a telephone call because you don't know the number (can't find your telephone directory (tnsnames.ora) or can't find the party you are looking for listed in it (no entry for larry)) you don't look for problems at the telephone switchboard.
    Maybe the entry for larry was found, but myhost couldn't be resolved to an IP address (say there was no entry for myhost in the local hosts file). This will result in "ORA-12545: Connect failed because target host or object does not exist"
    Maybe there was an entry for myserver in the local hosts file, but it specified a bad IP address. This will result in "ORA-12545: Connect failed because target host or object does not exist"
    Maybe the IP was good, but there is no listener running: "ORA-12541: TNS:no listener"
    Maybe the IP was good, there is a listener at myhost, but it is listening on a different port. "ORA-12560: TNS:protocol adapter error"
    Maybe the IP was good, there is a listener at myhost, it is listening on the specified port, but doesn't know about SERVICE_NAME = curley. "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"
    Third: If the client is on the same machine as the db instance, it is possible to connect without referencing tnsnames and without going through the listener.
    Now, when you issue a connect, say like this:
    $> sqlplus scott/tigertns will attempt to establish an IPC connection to the db instance. How does it know the name of the instance? It uses the current value of the enviornment variable ORACLE_SID. So...
    $> export ORACLE_SID=fred
    $> sqlplus scott/tigerIt will attempt to connect to the instance known as "fred". If there is no such instance, it will, of course, fail. Also, if there is no value set for ORACLE_SID, the connect will fail.
    check executing instances to get the SID
    [oracle@vmlnx01 ~]$ ps -ef|grep pmon|grep -v grep
    oracle    4236     1  0 10:30 ?        00:00:00 ora_pmon_vlnxora1set ORACLE_SID appropriately, and connect
    [oracle@vmlnx01 ~]$ export ORACLE_SID='vlnxora1
    [oracle@vmlnx01 ~]$ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:37 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsNow set ORACLE_SID to a bogus value, and try to connect
    SQL> exit
    [oracle@vmlnx01 ~]$ export ORACLE_SID=FUBAR
    [oracle@vmlnx01 ~]$ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:57 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Enter user-name: Now set ORACLE_SID to null, and try to connect
    [oracle@vmlnx01 ~]$ export ORACLE_SID=
    [oracle@vmlnx01 ~]$ sqlplus /scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:43:24 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specifiedOk, that is how we get from the client connection request to the listener. What about the listener's part of all this?
    The listener is very simple. It's job is to listen for connection requests and make the connection (server process) between the client and the database instance. Once that connection is made, the listener is out of the picture. If you were to kill the listener, all existing connections would continue. The listener is configured with the listener.ora file, but if that file doesn't exist, the listener is quite capable of starting up with all default values. One common mistake with the listner configuration is to specify "HOST=localhost" or "HOST=127.0.01". This is a NONROUTABLE ip address. LOCALHOST and ip address 127.0.0.1 always mean "this machine on which I am sitting". So, all computers are known as "localhost" or "127.0.0.1". If you specify this address, the listener will only be capable of receiving requests from the machine on which it is running. If you specified that address in your tnsnames file - on a remote client machine - the request would be routed to the machine on which the requesting client resides. Probably not what you want.
    =====================================

  • Cannot compile Library project in Flash builder 4: Unable to locate specified base class

    I am migrating from Flex builder 3 to Flash builder 4, during that process I found that Flash builder could'nt compile Flex Library projects which contains components in the form of mxml files. Compiler throws "Unable to locate specified base class".
    I have narrowed it down to by creating a flex library project named test library, below its screenshot with its package structure
    ControlA is based on componentA
    when i compile this project, mxml compiler throws this error
    Unable to locate specified base class 'components.componentA' for component class 'ControlA'.
    I cannot upload project code because file uploads are disabled on this forum so I am going to paste the code for both componentA and controlA
    componentA
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" width="400" height="300">
    </mx:Canvas>
    ControlA
    <?xml version="1.0" encoding="utf-8"?>
    <components:componentA xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" width="400" height="300">
    </components:componentA>
    To further test it, I have made another library project with same package structure using pure AS3, and it compiled without errors

    It might be this happens and other errors if you forget to Run Flash Builder 4.5 Buritto and startup the other version FB4.
    It uses the same project listings and that can be confusing since you're not expecting the old version to be aware of new Buritto (MobileApplications) projects you added (thinking) only to the BETA version installed elseware no doubt.
    Well it might not be your problem but worthy of noting for other's I'm sure.
    Otherwise you've double checked you're using SDK 4.5 Hero with it too! right?

  • This browser no longer exists at the location specified in the preview in browser preferences

    I am creating a new website using Adobe Dreamweaver CC 2014. I tried to preview it in Chrome and I received an error message saying, "This browser no longer exists at the location specified in the Preview in Browser preferences." It previews fine in IE. I use Chrome as my default, but I personally have not gone in and reset anything so I don't understand why this is happening since I created my last Dreamweaver site. Any ideas how I can fix this?
    Jennifer

    Okay, thank you. Inside Dreamweaver, I selected Edit Browser List and then it opened to show Chrome F12 and Internet Explorer. I chose Chrome F12 and I got the following responses in the screenshots below. I don't know what to do about the final image error message.

  • SH: compare and remove found instances

    Forewarning: I'm a scripting beginner and haven't posted in this section before and hope I can describe this properly. Also I'm trying to accomplish this in shell (be it sh, bash, or zsh)...
    Yes, well, basically I'm trying to compare output2 to output1 and if there are anything from output2 found in output1 to remove them from output1. So if I'm checking for something I don't want in output1 I'll use output2 as a reference and if output1 contains, say, two values from output2 it will remove them all. Example:
    "output1" (good values) | "output2" (bad values)
    good mouse | bad cat
    good mouse X | bad cat X
    bad cat XXX | bad cat XX
    good mouse XX | bad cat XXX
    bad cat | bad cat XXXX
    output1 is compared to a reference of output2 and it finds two instances that aren't supposed to be there, regardless of position in either list. Of course when I compare them it wont be as simple as them all starting with the same letters/words. I'm going to be comparing URLs from two outputs.
    I know I can "diff" them like: diff <(output1) <(output2) but like I said they won't be in order and they can't be sorted alphabetically because both lists will usually have different values. I'm just trying to remove a value from one list if it's found in both.
    I've found a simple way of checking a single output for duplicates but this only removes the duplicates and not every instance.
    awk ' !x[$0]++' file
    Also, I hate using temp files. Maybe I could pipe both outputs to fifo? Eh, that's kinda the same thing and not really my main issue.
    So, to make things easier to understand I'm going to be dumping two outputs of URLs and comparing them. One list will have "potential URLs" and the other will have "definitely not". By comparing the two I will tell if a "potential URL" is a "definitely not", and so remove it from the "potential" list. The end result will be a single output of "potentials" that were confirmed good (as they weren't in the "definitely not" output). There's more to the grand scheme but I've already figured out how to pre-pend and append things to everyline (or N line/s) and organize the whole mess but I just haven't figured out this part, so any help is appreciated even if it's just a link for me to read. Be gentle
    Last edited by milomouse (2010-01-16 11:48:41)

    Ooh, a nice cat. :D Yeah, that's what I've been using (also used to be a part of my zsh prompt) but I was trying to find a cleaner solution because I generally abuse grep, cat, awk and pipes. I'm horrible for it. Here's a dirty mock-up of what I'm trying to accomplish:
    function mrr() {
    local env=/tmp/newmirrors
    local fifo1=/tmp/fifo1
    local fifo2=/tmp/fifo2
    mkfifo /tmp/fifo{1,2}
    links -dump 'https://www.archlinux.de/?page=MirrorStatus;orderby=lastsync;sort=1'|\
    grep "tp:/"|head -n 10|awk '{print $1}'|sed "s/$/\$repo\/os\/`arch`/" >! $fifo1 &
    links -dump 'https://www.archlinux.de/?page=MirrorStatus;orderby=avgtime;sort=1'|\
    grep "tp:/"|head -n 10|awk '{print $1}'|sed "s/$/\$repo\/os\/`arch`/" >! $fifo2 &
    grep -xvf $fifo2 <$fifo1|grep -vi i686|head -n 5|sed 's/^/Server = /;s/$//' >! $env
    rm /tmp/fifo{1,2} &>/dev/null
    rankmirrors -n 5 $env >! /tmp/good
    rm $env ; sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-old
    sudo mv /tmp/good /etc/pacman.d/mirrorlist
    So, yeah. Basically a crappy attempt on what I believe Xyne's perl Reflector is doing (although I don't know how to read much Perl to tell). I just wanted something I understood.
    Anyway, I hate how I use fifo as tmp files but I didn't know how else to do it. Also, I had to add the bit about i686 because some servers on the list are i686 only and specify it in their URL so I had to remove them (since I have x86_64). Oh, and the use of "sudo", blech. I guess it works though. Basically it grabs a list of the most recently updated servers and then weeds out the servers with bad response time (if they're on that list, which a few were when I last tested this). Rankmirrors surprisingly yields different results despite the response-time. I guess I could use ping instead of Rankmirrors but I'll do that in the script, not this function. This is the basic reason I needed to compare them, which I hope to expand upon later. I'm sure there's an easier way to do all this but I simply lack the know-how. Again, this is a temporary function I have in my .zsh* file; the script will be different [if I ever finished it].
    edit: typo
    Last edited by milomouse (2010-01-16 15:31:18)

  • Unable to locate specified base class 'resources.style1.HelpButtonIcon' for component class

    Hi,
    I have a Flex (4.1.0) project, which has many skinnable custom components. The application allows a user to choose another style which changes these skins via loading a new compiled CSS. These non-default skins are in a separate Flex project.  I've not had a problem with this method until now.
    The custom component I am skinning contains several icons which are defined in the component like this:
    [SkinPart(required="true", type="mx.core.IVisualElement")]
    public var componentIconHelp:IFactory;
    then I use the iconRendererFunction to return the appropriate component part:
    private function iconRendererFunction(item:Object):IFactory
         //truncated method    
         return componentIconHelp;
    Within the skin for "style1", I then have
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
         xmlns:style1="resources.style1.*">
    <!-- host component -->
    <fx:Metadata>
         [HostComponent("myApp.components.ButtonComponent")]
    </fx:Metadata>
    <fx:Declarations>
         <fx:Component id="componentIconHelp">
              <style1:HelpButtonIcon />
         </fx:Component>
    </Declarations>
    When I try to compile this, I get the "Unable to locate specified base class 'resources.style1.HelpButtonIcon' for component class 'resources.style1.ButtonComponentSkinInnerClass0'" error.
    If I remove the HelpButtonIcon from the <fx:Component> declaration, and just put it in the main body of the skin, it compiles and renders, but I need it to be a component (there's multiple components I have to choose from to display, similar to the ButtonBar skin).
    Any ideas why it's not compiling and what I need to do to achive this?
    Thanks

    Thanks, one step closer (or further away :-)
    I tried adding the airspark.swc to the library path for the project and it made no difference so I added:
    -external-library-path /Applications/Adobe Flash Builder 4/sdks/4.0.0/frameworks/libs/air/airspark.swc
    to the external tools configuration and now get the error:
    command line: Error: unable to open 'Flash'
    The project itself runs fine, it's only the ASDocs that's causing problems.

Maybe you are looking for