users@glassfish.java.net

JWS Application Client behind Apache2/Iptables

From: Dennis Gesker <dennis_at_gesker.com>
Date: Thu, 21 Jun 2007 18:22:44 -0600

I have an enterprise application that is exposed outside my LAN using
Apache2 with mod_jk. This combination has worked nicely while the enterprise
application was primarily a web application.

However, with the addition of an application client to the enterprise
application project the combination it isn't working as well. The web
portion still works fine but I'm unable to launch the application client.
(Also, the application also works fine when accessed directly on the LAN
independent of apache2)

The first thing that seems odd is that the application client doesn't seem
to share the same root-context as the web-module of the Enterprise
Application of which both are a part (this isn't a big deal or maybe how its
supposed to be). The application resides at /aesop (which is what is set for
the web-module ) and the client application resides at /EA/EA-app-client.
The ear is EA.ear.

At first client application could not be found at all from outside (apache
side) of the LAN so I added a couple of additional worker maps for it (/EA
& /__JWSappclients) in my apache2 uriworkmap.properties file. Finally, I
allowed traffic through the firewall on port 3700. This got me a little
closer as now the JWS at least begins to start. But eventually JWS fails
with the error:

Jun 21, 2007 5:41:27 PM
com.sun.corba.ee.impl.encoding.CDRInputStream_1_0readRMIIIOPValueType
WARNING: "IOP00810210: (MARSHAL) Error from readValue on ValueHandler in
CDRInputStream"
org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 210 completed: Maybe
[snip]
Caused by: java.lang.InternalError: Error loading
com.sun.corba.ee.impl.io.IIOPInputStream
[snip]
Caused by: java.lang.ExceptionInInitializerError
[snip]
Caused by: java.security.AccessControlException: access denied (
java.util.PropertyPermission com.sun.corba.ee.ORBInitDebug read)
[snip]
Exception in thread "AWT-EventQueue-0" javax.ejb.EJBException: nested
exception is: java.rmi.MarshalException: CORBA MARSHAL 1398079698 Maybe;
nested exception is:
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 210 completed: Maybe
[snip]
And so on...

Could anyone offer a hint on what to try next? I would really like to be
able to launch the client application from the outside world.



<http://aesop.alamon.com:80/__JWSappclients/__appclient/EA/EA-app-client/main.jnlp>