users@glassfish.java.net

Re: How to setup Glassfish behind NAT?

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Thu, 17 May 2007 04:42:50 +0200

2007/5/17, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org>:
> Hi, Josh.
> A couple of questions...
> Which profile are you using: developer, cluster?
Glassfish was installed using ant -f setup.xml, it is not cluster
version installation procedure, so I is to be developer.

> Can you reproduce this problem from a system you have access to?
I am not sure what do you mean by 'system I have access to'.
When I launch that application from within LAN (or from the same
computer) using local IP address 192.168.1.202 everything works. When
I try to launch application using computer in separate network
(f.example across the Internet) using my router's public IP address,
then application downloads, but when it is starting, it is trying to
use 192.168.1.202:3700 for IIOP instead of PUBLIC_IP:3700.

>If so, on that system please use the Java Web Start viewer to look at
the JNLP document for the downloaded app. You can start the viewer
using
> javaws -viewer

Here it is:

<jnlp spec="1.0+"
codebase="http://83.23.250.21:8080/__JWSappclients/__appclient/SOP/SOP-app-client/"
href="http://83.23.250.21:8080/__JWSappclients/__appclient/SOP/SOP-app-client/main.jnlp">
  <information>
    <title>SOP-app-client</title>
    <vendor>Application Client</vendor>
    <homepage href="http://83.23.250.21:8080/main-jnlp.html"/>
    <description kind="short">Application description</description>
    <description kind="one-line">SOP-app-client</description>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="timeout" policy="always"/>
  <resources>
    <java version="1.5+"/>
    <jar href="http://83.23.250.21:8080/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar"
download="eager" main="true"/>
    <extension href="http://83.23.250.21:8080/__JWSappclients/__appclient/SOP/SOP-app-client/main-ext.jnlp"
name="mainext"/>
    <extension href="http://83.23.250.21:8080/__JWSappclients/__appclient/SOP/SOP-app-client/client-client.jnlp"
name="appclient"/>
    <property name="javax.xml.parsers.SAXParserFactory"
value="com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"/>
    <property name="javax.xml.parsers.DocumentBuilderFactory"
value="com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
    <property name="javax.xml.transform.TransformerFactory"
value="com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"/>
    <property name="org.xml.sax.parser"
value="org.xml.sax.helpers.XMLReaderAdapter"/>
    <property name="org.xml.sax.driver"
value="com.sun.org.apache.xerces.internal.parsers.SAXParser"/>
    <property name="java.util.logging.manager"
value="com.sun.enterprise.server.logging.ACCLogManager"/>
    <property name="javax.enterprise.resource.corba.level" value="FINE"/>
    <property name="java.naming.factory.initial"
value="com.sun.enterprise.naming.SerialInitContextFactory"/>
    <property name="java.naming.factory.url.pkgs"
value="com.sun.enterprise.naming"/>
    <property name="java.naming.factory.state"
value="com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl"/>
    <property name="com.sun.aas.jws.iiop.defaultHost" value="83.23.250.21"/>
    <property name="com.sun.aas.jws.iiop.defaultPort" value="3700"/>
    <property name="com.sun.aas.jws.retainTempFiles" value="false"/>
    <property name="com.sun.aas.jws.isJWS" value="true"/>
    <property name="com.sun.aas.jws.download.host" value="83.23.250.21"/>
    <property name="com.sun.aas.user.code.signed" value="true"/>
  </resources>
  <application-desc
main-class="com.sun.enterprise.appclient.jws.boot.JWSACCMain">
    <argument>-mainclass</argument>
    <argument>pl.ibpolsoft.sop.client.Main</argument>
  </application-desc>
</jnlp>
-----------------------------------------------

Below is once again what I can see on the Java Console, in my previous
post I did not paste from the very beginning:

2007-05-17 04:39:53 com.sun.enterprise.appclient.MainWithModuleSupport
prepareSecurity
INFO: Security Manager is ON.
2007-05-17 04:39:53 com.sun.enterprise.appclient.MainWithModuleSupport
setTargetServerProperties
INFO: ACC001:Using ClientContainer file:
[C:\DOCUME~1\WitoldSz\USTAWI~1\Temp\sunacc56463.xml].
2007-05-17 04:39:53 com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
INFO: ACC014: ORB host name: [83.23.250.21]
2007-05-17 04:39:53 com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
INFO: ACC013: ORB port number: [3700]
2007-05-17 04:40:03
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname: 192.168.1.202; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2371)
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2392)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:230)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:243)
        at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:104)
        at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:165)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:154)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:294)
        at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
        at org.omg.CosNaming.NamingContextHelper.narrow(Unknown Source)
        at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:114)
        at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:169)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:326)
        at javax.naming.InitialContext.lookup(Unknown Source)

Thanks in advance,
josh

> - Tim
> [Message sent by forum member 'tjquinn' (tjquinn)]
>
> http://forums.java.net/jive/thread.jspa?messageID=217528
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>