Hostname lookup failure

I am running Oracle 8.17 on a Win2000 PC and my App server on a linux box.
My problem is when connecting the following wont work:
"jdbc:oracle:thin:@my.host.net:1521:mydb"
while
"jdbc:oracle:thin:@192.168.0.7:1521:mydb"
does work
I do have my.host.net set in the /etc/hosts file as 192.168.0.7 and I can ping and traceroute to my.host.net.
Two weeks ago all this code did work and now I am a loss for words.

Update: I used hstrerror() and extracted the error message for the corresponding error when res_init() failed. hstrerror() returned 'Hostname lookup failure' error. Any inputs?

Similar Messages

  • [Solved] A note and question about slow hostname lookups

    I reinstalled Arch recently and the first thing I noticed was slow resolve times on hostname lookups.  This didn't happen on all webpages but did on about 50% of them.  This also happened on downloads from pacman %100 percent of the time.  I have done a good bit of research and most of the points led to nssswich.  One website said to try using this in nsswitch.conf:
    hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return] nis
    With this it appears (after about 20 minutes of testing) that firefox lookups are again behaving normal again.  However, pacman is still having slow lookups (about 30 seconds for each package).  Does anyone know what could be the problem here.  I dont' know much about nsswitch or how it could be the problem.  Is there a way to help return pacman to regular lookup times?
    Last edited by Gen2ly (2010-11-05 18:13:34)

    Yeah, no problem.
    # /etc/hosts: static lookup table for host names
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain localhost pavilion
    # End of file
    # The Hosts File Project http://hostsfile.mine.nu
    # Global Advert Servers Blocklist - Personal Edition
    # Release 2010-1-26
    # Servers Verified as up and running 2010-1-26 (by dns exploration)
    # Updated sorted and maintained by Andrew Short (sh0rtie)
    # Contact: [email protected]
    # A big thank you to all contributers (too many to mention)
    # who really have made this project a success, well done :)
    # Licensed under the LGPL a copy of the license may be viewed at
    # http://www.gnu.org/licenses/lgpl.txt
    # WARNING:
    # This file is *extremely comprehensive* and some sites might be
    # included here that you wish to visit, if this is the case you can
    # deactivate the block on that site by placing a # (octothorpe)symbol
    # before its entry, this will deactivate blocking on that server
    # so for example #127.0.0.1 foobar.com
    # will enable you to visit foobar.com or you can just simply delete
    # the line that contains the site you wish to visit.
    # NB:
    # For some computer software updates you may need to disable
    # this file in order to perform the update, if you have problems
    # rename this file from "hosts" to "hosts.txt" reboot then perform
    # the update and then rename this file back to "hosts" to re-enable it
    # You must keep the below lines
    127.0.0.1 localhost
    127.0.0.1 007arcadegames.com
    127.0.0.1 00fun.com
    127.0.0.1 00inkjets.com
    127.0.0.1 00pro.com
    127.0.0.1 00web.com
    I use the hosts files to to block advertisements which is the stuff trailing on the end and continuing.  Think there might be a problemt here?

  • Error Could not connect to the database - ora-12545: tns:name lookup failure

    Hi,
    I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
    Thanks, Mary

    Copy the tnsname.ora file from Oracle Database serve onto the client PC.
    Path: %Oracle_home%\net80\admin\
    Send me a mail if there is any other issues
    Regards
    Oluseyi Funmi Oduberu
    Oracle Consultant
    Email:[email protected]
    Hi,
    I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
    Thanks, Mary

  • DeserializationException: mapping lookup failure for xml type

    I generated a web-services.xml with the wsdl2Service task without a type mapping. The service is a document/literal based web service. I implemented the Java method, which accepts a single parameter with type javax.xml.soap.SOAPElement and returns javax.xml.soap.SOAPElement. Everytime I invoke the method from a client I get the following error from the server (WebLogic 8.1 SP4):
    weblogic.xml.schema.binding.DeserializationException: mapping lookup failure for xml type ['urn:mytest1']:test and java interface javax.xml.soap.SOAPElement
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:325)
    What could be wrong with my configuration?

    Hi,
    I am also facing the same problem on weblogic8.1SP1.
    If you had rectified this problem, please advice me as well.

  • Nodemanager hostname verification failure

    Hi, on some of my machines I installed WL 9.1 on, registry.xml had the fully qualified hostname (this is good), others did not (this is bad). When the admin server tries to connect to the node manager on these machines, I get hostname verification failure because the certificate has the non qual hostname but is expecting fully qual. Simply editing registry.xml to the good value did not fix the issue.
    How does weblogic determine the value that goes in the certificate and in registry.xml?
    Can I force it somehow?
    Can I have it just regenerate the certificate?
    Any help would be appreciated.
    Thanks

    Matthew Sacks <> wrote:
    does anyone know how i might resolve this issue?
    [[NodeManager:300033]Could not execute command ping on the node manager.
    [[Reason: weblogic.nodemanager.NodeManagerException: [CommandInvoker:
    [[Failed to send command: 'ping to server 'null' to NodeManager at host:
    [['10.32.33.2:5555' with exception [Security:090504]Certificate chain
    [[received from 10.32.33.2 - 10.32.33.2 failed hostname verification
    [[check. Certificate contained qa153 but check expected 10.32.33.2.
    [[Please ensure that the NodeManager is active on the target machine].]Hi,
    - If you are using scripts:
    you can use the following options in your
    scripts: -Dweblogic.security.SSL.ignoreHostnameVerification=true
    - If you want to use it from the adminserver:
    Go to the adminserver in the console
    Go to 'SSL'
    Select 'Advanced'
    Set 'Hostname Verification' to 'none'
    And restart the adminserver.
    cheers,
    Bart
    Schelstraete Bart
    [email protected]
    http://www.schelstraete.org

  • ORA-12545: TNS:name lookup failure ????

    Hello.
    I installed Oracle805, setup 2 patches.
    Now I got such problems:
    1. I could login as internal, sys,system via svrmgr. But couldn't
    loggin like scott/tiger :((
    All this I do logging to linux like Oracle( owner of Oracle :) )
    2. Connecting (afteer startup, lsnr start) to Oracle instance
    either internal, sys, system or scott shows such error:
    SQL*Plus: Release 3.3.2.0.2 - Production on Fri Apr 02 14:25:51
    1999
    Copyright (c) Oracle Corporation 1979, 1994. All rights
    reserved.
    ERROR: ORA-12545: TNS:name lookup failure
    Enter user-name: scott/tiger@805
    ERROR: ORA-12545: TNS:name lookup failure
    HELP PLS.
    null

    ANdrey (guest) wrote:
    1. I could login as internal, sys,system via svrmgr. But
    couldn't loggin like scott/tiger :((
    All this I do logging to linux like Oracle( owner of Oracle :)
    2. Connecting (after startup, lsnr start) to Oracle instance
    like scott only (no any users exist, new DB.)shows such error
    ERROR: ORA-01017: invalid username/password; logon denied
    HELP PLS.
    P.S. In
    LSNRCTL> status
    extproc
    DEDICATED server established:0 refused:0
    LOCAL SERVER
    DISPATCHER established......
    D))) <machine: ..., pid: ...>
    (ADDRESS=(PROTOCOL=ipc)(DEV=16)(KEY=#16229.1))
    the command coml. successfully
    null

  • Intermittent lookup failures and system limits?

    Hi,
    on our deployment system we sometimes see intermitten failures of lookups. E.g. on the Webserver (Apache2.2) with a reverse proxy to an internal machine defined in /etc/hosts we will get "DNS Lookup failure", after a few reloads it works. Or restart of the apache helped, too. In our postgres mirroring script we have a similar problem. A host cannot be found even though the host is defined in /etc/hosts.
    Since the problems are not 100% reproducable, I was thinking about some system limits (open files, processes?)
    Did anybody run into a similar problem or has some hints where to look?
    Christian

    Hi,
    I've been running a reverse proxied Webserver setup to an internal machine for over 4 months and not seen this problem. My reverse proxy instructions are located in /etc/apache2/sites/specifichostfile in the <IfModule modproxybalancer.c> module instructions.
    I just use the internal IP to denote the machine not even bothering with a DNS entry. But an A record could be introduced to lookup the internal machine. If all the traffic on this domain goes to an internal machine you can specify the IP address in the WebService->General panel. In my case I am only diverting the /cgi-bin/ traffic in one case and Rails traffic in another, and so am more selective.
    HTH,
    Harry

  • Participant Lookup Failure

    We are having problems locating participants using findByEmail on our server. Using the ID we successfully lookup the user with DirHumanParticipant. Using the mail property we then attempt to do a findByEmail to get the participant. This fails to locate the participant even though we have verified the participant email in our test is correct. Is there some sort of sync between the DirHumanParticipant info and Particpant info that would cause this lookup failure?
    The code that is failing is as follows:
    dirHumanParticipant = DirHumanParticipant.fetch(session : mySession, id : element.alipid);
    if (dirHumanParticipant != null) {
    email = dirHumanParticipant.mail;
    if (email != null && email != "") {
    ** part = Participant.findByEmail(email : email);
    if (part != null) {
    copy = clone(this);
    copy.leaveData = leaveData;
    copy.participant.next = part;
    else {
    logMessage("......particpant not found ", severity : INFO);
    ** This is the statement that fails to locate the participant, return null;

    Hi,
    Am I correct in thinking that you're using the user ID to get the DirHumanParticipant in order to get the unique email so that you can use that to get the 'Participant' to use? (if not ignore the following :-))
    Because I'm pretty sure the Participant.find(String name) method actually does a lookup by the Participant ID, not the name as the signature states.
    So the following should work too:
    copy = clone(this);
    copy.leaveData = leaveData;
    copy.participant.next = Particpant.find(element.alipid)
    Cheers,
    Tim

  • Hostname Lookup

    Is there a way to implement a different hostname lookup method for OSX?
    I have written a small P2P DNS program for the IPv6 ages. I use it to keep track of my different hosts around different places. So, I am always able to use a specific hostname like mylovelyhost.p2p whatever its IP address is at the moment.
    For Linux I added a module to the NSS system (/etc/nsswitch.conf). So my module gets queried after the hosts file and before DNS and Avahi/Bonjour. If a hostname ends on .p2p, it gets active. Otherwise the query gets passed on to the next module.
    Is there an API within OSX to do the same?
    Kind regards,
    Aiko

    Use the system configuration framework.

  • JNDI lookup failures on messaging bridge startup

    All,
    I'm using WLS 12.1, but got the same behavior with 9.2.
    I have several messaging bridges talking to external systems.  At startup, my log is full of these:
    ####<Jan 16, 2014 9:12:24 AM MST> <Info> <MessagingBridge> <myserver.myhost.com> <busA> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1389888744872> <BEA-200021> <Bridge "RelationshipManagerChangeLocalBridge" failed to get one of the adapters from JNDI (javax.naming.NameNotFoundException: Unable to resolve 'eis.jms.WLSConnectionFactoryJNDINoTX'. Resolved 'eis.jms'; remaining name 'WLSConnectionFactoryJNDINoTX').
    javax.naming.NameNotFoundException: Unable to resolve 'eis.jms.WLSConnectionFactoryJNDINoTX'. Resolved 'eis.jms'; remaining name 'WLSConnectionFactoryJNDINoTX'
        at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1153)
        at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:257)
        at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:175)
        at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:211)
        at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:219)
        at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:219)
        at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:250)
        at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:406)
        at weblogic.jms.bridge.internal.MessagingBridge.startInternal(MessagingBridge.java:573)
        at weblogic.jms.bridge.internal.MessagingBridge.run(MessagingBridge.java:1042)
        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    I'd like to get rid of them because they cause a lot of consternation when watching for startup failures.  I assume the reason this happens is because the jms-notran-adapter.rar hasn't deployed yet.  I know I can influence the order of application deployments, but can I ensure that the adapter deploys and is activated before the bridge tried to use it?
    thanks

    Hi,
    enable this three debug and check what happening there.
    -Dweblogic.debug.DebugMessagingBridgeRuntime=true
    -Dweblogic.debug.DebugMessagingBridgeRuntimeVerbose=true
    -Dweblogic.debug.DebugMessagingBridgeStartup=true
    Regards,
    kal

  • JNDI lookup failure

    Hi Experts!
    I want to execute java proxy call from my standalone java application as described here in the  3.13 section:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd23702
    I imported all the needed jar files I think.
    My project is a simple java project not a ejb one.
    In the ID I generated successfully the proxy object for the interface name FlightSeatAvailabilityQueryOut .
    I could successfully get the initial context to my java application.
    Now I want to look up my object called FlightQueryOut as the pdf said,but I can't, because the error said: <b>Object not found in lookup of FlightQueryOut</b>
    my revelant code:
    Object ref = ctx.lookup("FlightQueryOut");
    How can I my bind my proxy object to my J2ee naming system?
    It is not done automatically when I am generating the proxy in the ID?
    If it does, then where can I see generated proxy object name in JNDI service in the J2ee engine?
    I also tried the Object ref = ctx.lookup("java:comp/env/ejb/FlightQueryOut");
    but it didn't work also.
    Please help

    Hi !
    I made all the configurations and operations until I got to the 'deploy the ear file' point.
    When I want to my deploy my ear file, the deploy tool pops up this message:
      ERROR: Not deployed. Deploy Service returned ERROR:
                         java.rmi.RemoteException: Cannot deploy application sap.com/FlightQueryOut..
                         Reason: Incorrect application sap.com/FlightQueryOut:
                         Bean FlightSeatAvailabilityQueryOut_PortTypeBean: Cannot load class com.sap.xi.xI.demo.agency.FlightSeatAvailabilityQueryOut_PortTypeBean.; nested exception is:
                              com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect application sap.com/FlightQueryOut:
                         Bean FlightSeatAvailabilityQueryOut_PortTypeBean: Cannot load class com.sap.xi.xI.demo.agency.FlightSeatAvailabilityQueryOut_PortTypeBean.
                              at com.sap.engine.services.ejb.deploy.verifier.Verifier.check(Verifier.java:66)
                              at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:253)
                              at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2144)
                              at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)
                              at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321)
                              at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307)
                              at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
                              at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)
                              at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3184)
                              at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:553)
                              at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
                              at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
                              at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                              at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                              at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                              at java.security.AccessController.doPrivileged(Native Method)
                              at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
                              at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
                         ', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect application sap.com/FlightQueryOut:
                         Bean FlightSeatAvailabilityQueryOut_PortTypeBean: Cannot load class com.sap.xi.xI.demo.agency.FlightSeatAvailabilityQueryOut_PortTypeBean.
    <b>I think this says, that my bean class file cannot be loaded</b>. I do not why because, I add my folder to the path, where my class can be found,and the "add  j2ee component "" part of the deploy, where I can set the local remote interfaces no error occurs after saving, so my class can be seen by the tool, because the first step I set it correctly, I think
    Please help.

  • Aware of Gatekeeper address lookup failures

    How can I know when a Gatekeeper send an resolution failure to gateway.
    thanks

    You can use the following commands on the gatekeeper:
    term mon
    debug h225 asn1
    debug gatekeeper main 10
    These will show you the messages sent between the gateway and gatekeeper as well as the gatekeeper logic for accepting or rejecting the call. Be sure to do "undebug all" when you're finished.
    Hope this helps. If so, please rate the post.
    Brandon

  • How to fix "Email address lookup" failure

    Here is a weird one...
    I have created a new nickname object which has three email addresses.
    They all list OK under "View Email Addresses"
    However when testing, GWIA reported "no such user". !!
    After double checking the "View Email Addresses" screen for typo's, I did a Tools | Utilities | Email Address Lookup and it fails on the address, but the other two addresses for this nickname object are found OK.
    So I deleted the nickname object and recreated it, but it still the 3rd email address can't be found.
    Does anyone know why this is the case? Or better yet how to fix this?
    Cheers, Gordon

    Uwe,
    I have synchonised the user object, and strange thing is that the nickname addresses actually appear in the user object under the "View Email Addresses" list, in the "Nickname Email Addresses" section. So the user object looks correct.
    I guess that when the Email Address Lookup utility searches as does GWIA, it accesses an address list and not by actually looking at each individual user object's address list. So I just have to figure out why just one of the three nickname email addresses are not making it to this "Email Address Lookup" list.
    I might look into doing a PO rebuild, unless there are any other less drastic ideas.
    Gordon

  • JBoss and RE Lookup failure

    I have code which looks like the following
    java.lang.Object PDFObject = namingContext.lookup("PDFManipulation");
    After the invocation, PDFObject is null.
    When I list the JNDI objects, I get PDFManipulation
    BindName: [PDFManipulation]ClassName: [com.adobe.service.ConnectionFactoryManagerPeerImpl]
    When I do
    for(NamingEnumeration namingenumeration = namingContext.listBindings(""); namingenumeration.hasMore();)
    try
    Binding binding = (Binding)namingenumeration.next();
    System.out.print("BindName: [" + binding.getName() + "]");
    Any suggestions would be appreciated.

    Are you running your code on a different machine than the server? I've noticed that before with JBoss, though not sure why it happens. The lookup works fine if run on the same machine or with a different app server.
    In any case, it doesn't matter. PDFManipulation is not an EJB so it can't be used remotely. If you need to use RE remotely you'll need to wrap code in an EJB or web service and then call that from the remote machine.
    H.

  • Lookup Failure EJB JNDI - StatelessSession Bean Example on Unix

    Hi,
    I am trying to run weblogic 5.1 on Unix. Earlier on, I tried
    running the ejb example: "StatelessSession" on Windows NT and succeeded.
    However I am unable to do so on unix.
    Error message says that the problem is in URL or JNDI name.
    I started the Weblogic Server on Unix and then started the Console
    on my own Desktop i.e. Windows 2000. Then I was able to connect
    to myserver which was running on Unix and could see the EJB deployed
    all ok.
    Now for running this example as and when I try to run the
    java client code (which is a java application / class) I am unable
    to do a lookup for the context.
    I have verified that the DNS name for the Unix box as well as
    port # is correct. Same is true for the JNDI name. My problem appears
    to be of class path.
    I looked up the log file and found out the problem:
    Tue Mar 13 16:41:40 CST 2001:<E> <ServletContext-General> Cannot
    find resource 'classes/examples/ejb/basic/statelessSession/TraderBe
    anHomeImpl_ServiceStub.class' in document root '/app/weblogic/planit/weblogic/myserver/public_html'
    So that means if I place the client files in this directory (i.e.
    public_html) it would run. But I am wondering where do I need to
    specify that the server should look in "ClientClasses" directory
    and not in "public_html" directory.
    What else could be wrong......
    Sincerely,
    Ahmad

    Ahmad,
    This file gets generated when you run java weblogic.ejbc. This is the last
    step in creating the EJB. From the class files, weblogic needs to create the skelton
    and the stub so that they are able to communicate back and forth...
    Peter
    "Ahmad" <[email protected]> wrote:
    >
    Hi All,
    I took a fresh look at the Error as displayed in the log
    file on the Unix machine:
    It says it Cannot find resource 'classes/examples/ejb/basic/statelessSession/TraderBeanHomeImpl_WLStub.class'
    in document root '/app/weblogic/planit/weblogic/myserver/public_html'
    Now I looked under public_html directory and did not find the "classes"
    directory. What I did was :
    1. Created a new "classes" directory under public_html.
    2. copy the whole directory structure from "clienclasses" directory
    and placed it under the newly created directory.
    However to my surprise, could not find TraderBeanHomeImpl_WLStub.class
    When I tried to look for the same file on NT machine, (where this
    example is running all o.k) I still
    could not find it. When is this class generated and what is happening.
    "Ahmad" <[email protected]> wrote:
    Hello There!!
    My class path on unix is set as follows:
    planit@itd00n15> . ./setEnv.sh
    ============= Setting Environment ================
    WL_HOME=/app/weblogic/planit/weblogic
    JAVA_HOME=/usr/java/jdk122a
    CLIENT_CLASSES=/app/weblogic/planit/weblogic/myserver/clientclasses
    SERVER_CLASSES=/app/weblogic/planit/weblogic/myserver/serverclasses
    SERVLET_CLASSES=/app/weblogic/planit/weblogic/myserver/servletclasses
    PATH=/usr/java/jdk122a/bin:/usr/java/jdk122a/bin:/app/weblogic/planit/weblogic/bin:/usr/java/jdk122a/bin:/oracle/product/8.1.6/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/openwin/bin
    CLASSPATH=/usr/java/jdk122a/lib/tools.jar:/app/weblogic/planit/weblogic/license:/app/weblogic/planit/weblogic/classes:/app/weblogic/planit/weblogic/lib/weblogicaux.jar:/app/weblogic/planit/weblogic/eval/cloudscape/lib/cloudscape.jar:/app/weblogic/planit/weblogic/myserver/clientclasses:/app/weblogic/planit/weblogic/myserver/serverclasses
    LD_LIBRARY_PATH=/oracle/product/8.1.6/lib:/app/weblogic/planit/weblogic/lib/solaris:/app/weblogic/planit/weblogic/lib/solaris:/app/weblogic/planit/weblogic/lib/solaris
    I have no idea what is going on!!
    Ahmad
    "Ahmad" <[email protected]> wrote:
    By the way, we are using service pack 4. Would that matter
    on Unix
    for this kind of exception...
    I am not sure, where would I define the class path to
    the client
    stub classes. I mean in which file!!
    Sincerely,
    Ahmad
    "Ahmad" <[email protected]> wrote:
    What directory Structure should I be in in order to
    run
    the
    client. On NT I have to be in "ClientClasses" directory.
    For
    example following example runs fine on Windows NT:
    C:\weblogic\myserver\clientclasses>java examples.ejb.basic.statelessSession.Client
    Beginning statelessSession.Client...
    Creating a trader
    Buying 100 shares of BEAS.
    Buying 200 shares of MSFT.
    Buying 300 shares of AMZN.
    Buying 400 shares of HWP.
    Selling 100 shares of BEAS.
    Selling 200 shares of MSFT.
    Selling 300 shares of AMZN.
    Selling 400 shares of HWP.
    Removing the trader
    End statelessSession.Client...
    However for unix, I tried different directories, I am
    not sure
    which one in the hierarchy am I supposed to be, in order
    to
    run the client.
    By the way, I tried putting the ctx.lookup method ina
    catch block
    and tried to print the stack trace.
    Here is the error which I am getting, irrespective of
    the directory
    hierarchy I am in:
    planit@itd00n15> java examples.ejb.basic.statelessSession.Client
    Beginning statelessSession.Client...
    About to Lookup the JNDI name !!
    The client was unable to lookup the EJBHome. Pleasemake
    sure
    that you have deployed the ejb with the JNDI name statelessSession.TraderHome
    on the WebLogic server at t3://planit-dev.intranet.sprintspectrum.com:10400
    Printing the Stack Trace :
    javax.naming.CommunicationException. Root exceptionis
    java.lang.ClassNotFoundException:
    class examples.ejb.basic.statelessSession.TraderBeanHomeImpl_ServiceStub
    previously not found
    at java.lang.Throwable.fillInStackTrace(Native
    Method)
    at java.lang.Throwable.fillInStackTrace(Compiled
    Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.ClassNotFoundException.<init>(Compiled
    Code)
    at weblogic.rjvm.MsgAbbrev.read(Compiled Code)
    at weblogic.socket.JVMAbbrevSocket.readMsgAbbrevs(JVMAbbrevSocket.java:505)
    at weblogic.rjvm.MsgAbbrevInputStream.prime(MsgAbbrevInputStream.java:134)
    at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:610)
    at weblogic.rjvm.ConnectionManagerClient.handleRJVM(ConnectionManagerClient.java:34)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:630)
    at weblogic.socket.JVMAbbrevSocket.dispatch(Compiled
    Code)
    at weblogic.socket.JVMSocketT3.dispatch(Compiled
    Code)
    at weblogic.socket.JavaSocketMuxer.processSockets(Compiled
    Code)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.run(Compiled
    Code)
    --------------- nested within: ------------------
    weblogic.rmi.UnmarshalException: Unmarshalling return
    - with nested exception:
    [java.lang.ClassNotFoundException: class examples.ejb.basic.statelessSession.TraderBeanHomeImpl_ServiceStub
    previously not found]
    at java.lang.Throwable.fillInStackTrace(Native
    Method)
    at java.lang.Throwable.fillInStackTrace(Compiled
    Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(IOException.java:47)
    at weblogic.common.T3Exception.<init>(T3Exception.java:47)
    at weblogic.rmi.RemoteException.<init>(RemoteException.java:41)
    at weblogic.rmi.UnmarshalException.<init>(UnmarshalException.java:31)
    at weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.java:256)
    at weblogic.jndi.toolkit.WLContextStub.lookup(Compiled
    Code)
    at javax.naming.InitialContext.lookup(InitialContext.java:349)
    at examples.ejb.basic.statelessSession.Client.lookupHome(Client.java:154)
    at examples.ejb.basic.statelessSession.Client.<init>(Client.java:44)
    at examples.ejb.basic.statelessSession.Client.main(Client.java:86)
    Throwing ne !!
    NamingException Occured!!. Exception Message:
    null
    Sincerely,
    Ahmad
    "Ahmad" <[email protected]> wrote:
    Hi all,
    I am still unable to find out where do I have to
    tell
    weblogic tha the stubs for the client classes are in
    ClientClasses directory.
    Any ideas are welcome.
    Sincerely,
    Ahmad
    "Ahmad" <[email protected]> wrote:
    Hi,
    I am trying to run weblogic 5.1 on Unix. Earlieron,
    I tried
    running the ejb example: "StatelessSession" on Windows
    NT and succeeded.
    However I am unable to do so on unix.
    Error message says that the problem is in URL or
    JNDI
    name.
    I started the Weblogic Server on Unix and then started
    the Console
    on my own Desktop i.e. Windows 2000. Then I was ableto
    connect
    to myserver which was running on Unix and could see
    the
    EJB deployed
    all ok.
    Now for running this example as and when I
    try
    to run the java client code (which is a java application/
    class) I am unable to do a lookup for the context.
    I have verified that the DNS name for the Unix boxas
    well as port # is correct. Same is true for the JNDIname.
    My
    problem appears to be of class path.
    I looked up the log file and found out the problem:
    Tue Mar 13 16:41:40 CST 2001:<E> <ServletContext-General>
    Cannot find 'classes/examples/ejb/basic/statelessSession/TraderBe
    anHomeImpl_ServiceStub.class' in document
    '/app/weblogic/planit/weblogic/myserver/public_html'
    So that means if I place the client files in this
    directory
    (i.e. public_html) it would run. But I am wonderingwhere
    do
    I need to specify that the server should look in
    "ClientClasses" directory and not in "public_html"
    directory.
    What else could be wrong......
    Sincerely,
    Ahmad

Maybe you are looking for