Appclient - fine from localhost, errors from remote machine

Hi,
I've been trying to solve a rather strange problem, but could not find any
help in the documentation or in this Forum. It's probably just some minor
thing that I am missing, but those are always the most difficult to find... ;-)
I have S1AS7 installed on one of our development servers (Linux).
I created a little EJB and packaged it together with a test servlet and a simple
console application (using Studio 5).
Step 1: Using the servlet, everything works fine; EJBs are created and
modified successfully.
Step 2: Using the local appclient on the dev server to run the console
application: everything works fine, too. EJBs are instantiated and everything
is cool.
Step 3: I packaged the appclient (using package-appclient),
copied it to another machine (also Linux) and extracted it there. I modified
all the paths in asenv.conf and adjusted the host and port in
sun-acc.xml. I use the same J2SDK as on the dev server. The specified
port is reachable from the second machine via telnet (rule out firewalls
and alike). This is the error that I get:
[bernd@bambi2 appclient]$ ./bin/appclient -client /home/bernd/tmp/TestAppClient.jar -mainclass test.app.TextClient -xml /home/bernd/tmp/AC7/appclient/config/sun-acc.xml
Dec 30, 2003 2:05:55 PM com.iplanet.ias.appclient.Main <init>
INFO:
---------AppClient Container--------
Dec 30, 2003 2:05:56 PM com.iplanet.ias.appclient.Main setTagetServerProperties
INFO: ACC001:Using ClientContainer file: [/home/bernd/tmp/AC7/appclient/config/sun-acc.xml].
Dec 30, 2003 2:05:57 PM com.iplanet.ias.appclient.Main <init>
INFO: ACC014: ORB host name: [10.10.0.20]
Dec 30, 2003 2:05:57 PM com.iplanet.ias.appclient.Main <init>
INFO: ACC013: ORB port number: [33550]
Dec 30, 2003 2:06:01 PM com.sun.corba.ee.internal.iiop.ConnectionTable getConnection
WARNING:
com.iplanet.ias.cis.connection.ConnectException: com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI_ConnectNative: PR_Connect() failed
        at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:187)
        at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:102)
        at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:118)
        at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:131)
        at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:142)
        at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
        at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
        at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:694)
        at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:630)
        at com.sun.corba.ee.internal.corba.ClientDelegate.request(ClientDelegate.java:955)
        at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
        at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:397)
        at com.sun.enterprise.naming.NamingManagerImpl.<init>(NamingManagerImpl.java:125)
        at com.sun.enterprise.appclient.AppContainer.createManagers(AppContainer.java:134)
        at com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java:73)
        at com.iplanet.ias.appclient.Main.<init>(Main.java:339)
        at com.iplanet.ias.appclient.Main.main(Main.java:93)
Caused by: com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI_ConnectNative: PR_Connect() failed
        at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.connectNative(Native Method)
        at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.doConnect(TCPBlockingChannel.java:171)
        at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.<init>(TCPBlockingChannel.java:54)
        at com.iplanet.ias.cis.channel.tcp.TCPChannelFactory.createChannel(TCPChannelFactory.java:97)
        at com.iplanet.ias.cis.channel.ChannelManager.createChannel(ChannelManager.java:58)
        at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:162)
        ... 16 more
Dec 30, 2003 2:06:01 PM com.iplanet.ias.appclient.Main <init>
WARNING: ACC003: Application threw an exception.
javax.naming.NamingException: Serial Context failure
        at com.sun.enterprise.naming.NamingManagerImpl.<init>(NamingManagerImpl.java:138)
        at com.sun.enterprise.appclient.AppContainer.createManagers(AppContainer.java:134)
        at com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java:73)
        at com.iplanet.ias.appclient.Main.<init>(Main.java:339)
        at com.iplanet.ias.appclient.Main.main(Main.java:93)
Dec 30, 2003 2:06:01 PM com.iplanet.ias.appclient.Main <init>
WARNING: ACC010: Make sure the server port is not disabled and that you are looking up a valid nameI would appreciate any help or hint to solve this problem - or to
find more debugging information; I'm sure it works somehow...
Greetings,
Bernd.

Hi Bernd ;-)
gotta give myself the answer (and keep it here for later reference). This is what I needed to do in order to make it work:
1) Package the appclient.jar as described in the manual and unpack it on the remote host.
2) Package the SDK that the Appserver is using (/usr/java/j2sdk1.4.1_04 in my case) and also unpack the directory tree somewhere on the remote host.
On the remote host (where appclient.jar was unpacked):
3) Adjust the paths in conf/asenv.conf and make sure to specify the SDK copied from the Appserver's host in the variable AS_JAVA.
4) In bin/appclient replace %CONFIG_HOME% with the config path, remove the if-block after that line ("environment set by tools") and add :/path/to/j2ee.jar to the JVM_CLASSPATH variable.
5) Edit config/sun-acc.xml: Replace %%%SERVER_ROOT%%% with the path where appclient is installed and (in my case) make sure to use IP addresses for %%%SERVER_NAME%%% in the following line:
<target-server name="%%%SERVER_NAME%%%" address="%%%SERVER_NAME%%%" port="%%%ORB_LISTENER1_PORT%%%"/>Sounds weird and far-fetched, but it works now. :-)
Bernd.

Similar Messages

  • Error in calling EJB Client from Remote Machine.

    While running the client from local machine, it works perfectly.
    But when I try to run the same client from remote machine it gives me the error.
    I deployed the ejb in sun server 1.4 with jndi as "xxx.xxx.xxx.xxx/MyTemperature".
    Following is the code snippet from the clint.
    Context initial = new InitialContext();
              Object objref = initial.lookup("192.168.0.20/MyTemperature");
              home = (TemperatureHome) PortableRemoteObject.narrow(objref, TemperatureHome.class);
              Temperature degreeConverter = home.create();Following is the error
    E:\EJBRemoteTest>java TempClient.TemperatureClient
    May 14, 2008 10:00:24 AM com.sun.corba.ee.impl.legacy.connection.SocketFactoryCo
    nnectionImpl <init>
    WARNING: ORBUTIL.connectFailure
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
    RBUtilSystemException.java:1739)
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
    RBUtilSystemException.java:1757)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<
    init>(SocketFactoryConnectionImpl.java:74)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl.
    createConnection(SocketFactoryContactInfoImpl.java:77)
            at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begin
    Request(CorbaClientRequestDispatcherImpl.java:152)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaC
    lientDelegateImpl.java:121)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClie
    ntDelegateImpl.java:214)
            at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
            at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java
    :69)
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:58)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:126
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at TempClient.TemperatureClient.main(TemperatureClient.java:17)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection ref
    used: connect
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
    etFactory.java:520)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<
    init>(SocketFactoryConnectionImpl.java:58)
            ... 10 more
    Caused by: java.net.ConnectException: Connection refused: connect
            at sun.nio.ch.Net.connect(Native Method)
            at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
            at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
    etFactory.java:511)
            ... 11 more
    Caught an unexpected Exception!
    javax.naming.CommunicationException: Can't find SerialContextProvider [Root exce
    ption is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: N
    o]
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:66)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:126
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at TempClient.TemperatureClient.main(TemperatureClient.java:17)
    Caused by: org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed:
    No
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
    RBUtilSystemException.java:1739)
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
    RBUtilSystemException.java:1757)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<
    init>(SocketFactoryConnectionImpl.java:74)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl.
    createConnection(SocketFactoryContactInfoImpl.java:77)
            at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begin
    Request(CorbaClientRequestDispatcherImpl.java:152)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaC
    lientDelegateImpl.java:121)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClie
    ntDelegateImpl.java:214)
            at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
            at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java
    :69)
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:58)
            ... 3 more
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection ref
    used: connect
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
    etFactory.java:520)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<
    init>(SocketFactoryConnectionImpl.java:58)
            ... 10 more
    Caused by: java.net.ConnectException: Connection refused: connect
            at sun.nio.ch.Net.connect(Native Method)
            at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
            at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
    etFactory.java:511)
            ... 11 moreThis is a stateless session bean.
    Can anybody provide me solution for this
    I also tried with java.util.Properties class but result is same.

    You are running on Windows 9x or Me, right? The darn OS has 300 or so bytes allocated for environment by default.
    Try setting the Initial environment to 4096 in the Properties|Memory tab for the batch file. That will get rid of "Out of environment space". The syntax error is another matter; Windows (except NT and derivatives) shells do not allow '=' in an environment variables value. You cannot overcome that. Some software (Sybase for instance) interprets # as = just because of that. Unfortunately, the JVM doesn't take such an approach.
    Better, grab copies of Unix utilities for Windows (www.gnu.org) including the wonderful shell 'bash' and write .sh scripts, which are inherently more powerful.

  • Linked server problem, its works locally but not from remote machine

    Hi,
    i am using the application NAV and have written the query in the application. am using automation variable to link to the SQL Server.
    The problem is that , the query which i have written executes only when i am working on local machine .
    I mean when i want to execute the same query from remote machine through my app Dynamics NAV then its not getting executed.
    Thanks in advance

    Depends on what you are trying to do and what security you are using.
    What error did you get?
    If you are using windows authentication then take a look at delegation
    http://www.databasejournal.com/features/mssql/article.php/3696506/Setting-Up-Delegation-for-Linked-Servers.htm
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • How to read file from remote machine

    Hello,
    Hi, i would like to know how to read text file from remote machine using java source code, any code ?
    Thanks very much;
    Best regards
    Kim

    On the server, perform the following steps:
    Parse the request and determine the file to serve
    Open a FileInputStream to the appropriate file
    Obtain a reference to the Servlet OutputStream
    Pipe the bytes from the file to the output stream
    Flush and close the streamYou might want to call HttpServletResponse.setContentType("application/octet") to indicate to the browser that a file download will be occurring. Do so before getting the reference to the Servlet's OutputStream.
    - Saish

  • Launch exe from remote machine

    Hi All,
    How can I launch an executable residing in machine A from machine B?
    I'm trying web services but no luck.
    Am I the wrong track?
    Thanks a lot

    What does "I'm trying web services but no luck." mean? As I see it, you have two separate things to accomplish here. One is the launchiing of the executable locally. The other is the triggering of that event remotely. Deal with one, then the other. Much simpler. That is, encapsulate the launching in a single method call, then work on calling it remotely. Then your problem is simply "How do I call a method remotely?", and entirely decoupled from details such as "launch exe from remote machine"

  • Tail command to read httpd log from remote machine

    hi!
    does anyone know how to read the httpd log file using the tail command froma remote machine?
    i have a mac using osx sharing the internect connection to other machines. this machine has the http server running on it and i would like to check the httpd log file (from this server) from my computer in the same LAN.
    can anyone help please??
    G5 2.5ghz dual   Mac OS X (10.4.4)  

    As Ashish rightly said, you need to use ftp/scp.
    You can create a shell script on unix machine. Which shall copy the file from Windows machine to Unix machine on particular directory. Then you may need to change permissions of the file.
    Once that is done, same shell script can call procedure in oracle.
    You can schedule this shell script in Crontab to run at specified time daily, if you the timing of availability of file.
    Regards,
    Arpit

  • Track flash errors on remote machine

    Hey,
    I'm wondering may I run Adobe Scout to track the flash errors on remote machine?

    You can remotely profile with Scout, so long as the machine running Scout is visible to your remote machine (it has to be able to connect to it). See the section "Local and remote profiling" in the getting started guide for Scout:
    http://www.adobe.com/devnet/scout/articles/adobe-scout-getting-started.html

  • Running ldifmigrator/ldapadd from remote machine

    Hi,
    I installed Infra with OID on machine-1. I am now trying to run ldifmigrator on machine-2 while doing a lookup on the oid on the first machine. Is there some problem with this ?
    The command works fine when I run it locally on machine-1. The command is:
    <--------------------------------------------------------
    ldifmigrator "input_file=d:/config/ldap/system-oid.sbs" "output_file=d:/config/ldap/system-oid.ldif" -lookup "host=machine-1" "port=333" "subscriber=idc" "s_UserCommonNamingAttribute=cn" dn="cn=orcladmin" password=welcome1
    -------------------------------------------------------->
    When I run this command on a remote machine say machine-2 then i get the error:
    <----------------------------------------------------
    Unable to establish connection to directory. Please verify the input parameters:
    host, port, dn & password
    returnInitialLdapContext() times out after 10000 ms - JNDI initialization method
    not returning
    ----------------------------------------------------->
    My http port is 777 and oid port is 333. Another strange thing is that I can only access http://machine-1:777/oiddas from machine-1. This is not possible from machine-2 even though ping works fine.. Hoping for some help !
    Thanks !

    It sounds like your firewall could be preventing external connections. How is that configured?

  • How to retrive data through stored procedure in mysql from remote machine?

    Hello everybody,
    I am having problem in accessing data of mysql through stored procedure. It works fine if I use "jdbc:mysql://localhost:3306/[database name]" instead of "jdbc:mysql://[IP address]:3306/[database name]". The connection is fine for both, but when stored procedure is called the system stops at "stmt.execute();" line in java file while debuging. In case of localhost there is no any problem. The code for connecting procedure is:
    stmt = dbConn.prepareCall("{? = call testing()}"); stmt.registerOutParameter(1, Types.VARCHAR); stmt.execute();
    I have to connect java application running in Windows to the mysql database running in remote machine(RHEL 5).
    I am using "mysql-connector-java-5.1.5-bin.jar", jdk 1.5.0 and remote database Mysql version : 5.0.22.
    There is no exception and application hangs at stmt.execute();
    Can anybody help me with this problem?
    Thank you.

    I got it. its about connection...

  • Using MS Access as Database from Remote Machine

    Hi All
    I am trying to use MS access as Data base, I have done the following.
    1. I have Added the mdb file on a remote machines DSN.(Control Panel->Admin Tools->ODBC->System Tools)
    2. In xMII data services->Data Servers, Copied the Default IDBC Server, renamed it and updated the ServerURL as  jdbc:inetdae:<IP of Remote machine>:1433?database=<DB Name>&sql7=true.
    With these things done, I am not able to get the Data Server Accesible.
    Please correct what mistake I have made.
    Thanks and Regards
    Rupesh

    Rupesh,
    First Access is not a very good database... I would suggest using MSSQL, MySQL, or some other 'real' database. But I digress...
    The only supported way to get the data you want from Access is by... you guessed it... the <b>xMII OLEDB UDS</b>. Sure you could try the JDBC - ODBC bridge, but this seems to be shaky.
    Martin - seriously... I'm trying to get the UDSs out to all of you!

  • Prob in accessing apex from remote machine

    hi,
    i've installed APEX successfully in my server
    and its working fine in the server.
    now i would like to access it from client machines...
    but its not connecting..
    when i tried " ping serverIP " it pings successfully...
    can anyone tel me what the prob is???

    Hi,
    This might help
    http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm#BABBEFAJ
    Check also that your firewall port is open. If you try connect to Apex port 8080 should be open.
    Br,Jari

  • Unable to connect to APEX from remote machine.

    Hi All,
    I have installed APEX 4.2.2 on Oracle 10g XE , the installation was successful and I am able to see the apex home page.
    I have used the port 1234 for the same.
    http://127.0.0.1:1234/apex/f?p=4550:1:14917953436987
    Now I have configured web listener apex_listener2.0.3 for remote machines and used port 8086.
    The listener was started on standalone mode successfully, but when I am trying to access below URL :
    http://localhost:8086/apex/
    I am getting 503 - Service unavailable error.
    I have disabled local listener also , but still it is not woking .
    SQL> exec dbms_xdb.setListenerLocalAccess (l_access => FALSE) ;
    commit;
    Please help .

    Getting below message in console whenever I am trying to access http://localhost:8086/apex/
    SEVERE: The pool named: apex is not correctly configured, error: Connection Caching Not Enabled or Not a Valid Cache Enabled DataSource
    oracle.dbtools.common.jdbc.ConnectionPoolException: The pool named: apex is not correctly configured, error: Connection Caching Not Enabled
    Could you please help me on this.

  • Essbase services from remote machine

    Hi,
    Can anyone suggest if we can start all the essbase services(like foundation services, essbase server, etc) from a remote machine or client machine? Please advice. Can we write a script or is there any other option available?
    Thanks in advance.

    If you want to script it, I can think of three ways (there are probably more):
    1) SC.exe -- http://ryepup.unwashedmeme.com/blog/2007/01/04/restart-a-windows-service-remotely/
    2) psexec.exe -- http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
    3) VBScript (and probably PowerShell but I've never used that) can remotely stop services through WMI -- http://www.computerperformance.co.uk/vbscript/wmi_services.htm
    Regards,
    Cameron Lackpour

  • Listener from remote machine

    Hi,
    I have a unix machine in which database is installed.
    Can I start the listener from other unix machine remotely like using any alias.
    Please let me know!
    Regards,

    Hi,
    If you connect from your remote machine to the Server Machine, then you can do this..!!
    I think it will work.. yes you can try it.. !!
    http://download.oracle.com/docs/cd/B10501_01/network.920/a96580/listener.htm
    - Pavan Kumar N

  • Connection problems with DI-SERVER 2007 & B1WS from remote machine

    Hi,
    Can you please help us better understand what the issue is, and how to solve it?
    I am seeking to get B1WS working on remote machines.
    I have built a small test application, which works fine on the server which also hosts the SQL Server instance and IIS.
    When I move the application to another machine, no connection happens, and it always throws this error:
    Message: 
    "Unable to connect to the remote server"
    Inner Exception:
    "No connection could be made because the target machine actively refused it 127.0.0.1:80"
    Error Code:
    10061
    This configuration works:
    Licensing Server:  Server A
    Database Server:  Server B
    IIS Server (B1WS):  Server B
    Running App:  Server B
    This configuration does not work:
    Licensing Server:  Server A
    Database Server:  Server B
    IIS Server (B1WS): Server B
    Running App:  Workstation C
    I have checked permissions on the web services folder, and gave Everyone all permissions.  The same connection problems persists.
    All help is welcome!
    Thank you in advance,
    Mike

    Dear Michael Gurevich,
    Was resolved?
    Thanks.
    João Paulo

  • Accessing tables from remote machine

    I using the following code, to update the record from the emp table. This table is created locally in my machine.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn;
    String db = "jdbc:odbc:NewDsn";
    String username = "test";
    String password = "test";
    String tableName = "emp";
    conn = DriverManager.getConnection(db, username, password);
    Statement stmt1 = conn.createStatement();
    String update = "update " + tableName +
    " set salary=salary+1000 where empid>200";
    stmt1.executeUpdate(update);
    I want my application to run on two different machine and the update should be made on a single table.
    Please help me, how the user from other machine can access this emp table created in my local machine?

    I completely agree with RPriya.
    jschell, If you think that it is not correct, could you please put some focus on your statementYou mean you want me to explain how database connections work in general and how jdbc drivers would use them?
    Do you know how a socket works? Do you know that it requires a client and a server?
    How does a socket work if there is no server?
    How do database connections work in C, C++, Perl, Ruby, Python, VB, etc, when absolutely none of those use a java type 4 driver?
    Do you know how the oracle oci driver work? It is not a type 4 driver.
    Do you know how the jdbc-odbc bridge works with oracle? With MS SQL Server? The jdbc-odbc bridge is not a type 4 driver.

Maybe you are looking for