Hi all!

Our development environment is the following:
client in NT4.0---> JBoss 2.2.1 in NT4.0 with JDK1.3.1---> Oracle7.3 in
HP-UX 11.0,
the client is an applet, and we use the Plug-In 1.3.1. Everything runs
inside the LAN. The applet is downloaded from the same place where jboss is
running (we use apache).

We had some problems with permissions and the applet, and eventually we
solved them by adding the following to the .java.policy file in the user's
home directory:

grant codeBase "http://ip_of_the_jobss_server-";
{
        permission java.security.AllPermission;
};

We are going into production next week, the production environment is just
moving jboss from the NT to the same HP where the DB is hosted, that is:
client in NT4.0---> JBoss 2.2.1 in HP-UX 11.0 with JDK1.3.0 and Oracle7.3,
the client is an applet, and we use the Plug-In 1.3.1. The applet is
downloaded from the same place where jboss is running (we use apache), this
time is the HP.

But the applet is not able to connect properly to jboss, there is a security
exception:

java.security.AccessControlException: access denied
(java.net.SocketPermission 1.0.18.76: 4443 connect,resolve)

at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.checkConnectPermission(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
wn Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
at org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:74)
at sonix.session.UserSHome$Proxy.create(Unknown Source)
at sonix.client.interfaz.Connector.leerParametros(Connector.java:421)
at sonix.client.interfaz.Connector.connect(Connector.java:120)
at sonix.client.interfaz.Principal.init(Principal.java:15)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

We have tried adding the same permissions as in .java.policy to the
server.policy and client.policy in conf/default directory of JBoss, just in
case, but no luck.

If I put all the necesary classes in the client, and run the applet with the
appletviewer, like this:

appletviewer -J"-Djava.security.policy=file:appviewer.policy" -J"-classpath"
-J"classes;..." classes\local.html
where appviewer.policy gives all permissions to the applet, the everything
runs ok.

The only differences between the dev. and production environments are:
1. In HP we had to change a port from 4444 to 4443, 4444 did not work.
2. jdk in HP is 1.3.0, and in NT is 1.3.1
3. HP vs NT

Has someone used jboss in HP with an applet successfully??
Maybe upgrading jboss to 2.2.2 or 2.4B could make any difference?
Someone can think of anything that could help us?

Thanks.

Isidoro Fern�ndez D�az
mailto:[EMAIL PROTECTED]
Software Engineer
TELENIUM, The New Millennium Telecom Company
Agust�n de Fox�, 25, plta. 13
28036 MADRID
Tel. +34 91 315 85 62
Fax +34 91 315 63 37
http://www.telenium.es


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to