NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
adamitj
Joined: 17 Mar 2009 Posts: 6 Location: Brazil
|
Posted: Thu May 07, 2009 1:31 pm Post subject: Question regarding Enterprise Application Clients in NB 6.5 |
|
|
I'm trying to create a new Enterprise Application Client in NB 6.5 to access some EJB's and WS from other Project.
The core classes to access them are working perfectly, even remotely (this is not the problem).
I have 2 questions about these kind of project:
1) Why Swing Frames cannot be open remotely? I deployed a new EAC into a glassfish v2.1 (name "sgp"). I accessed the link "http://machinename:8080/sgp" from other workstation and the JNLP file is downloaded and executed, but no Frame is opened at all. And the javaws.exe process still running. If I run the Jar from NetBeans (not from JNLP), the Frame opens succesfully.
2) How I change the JNLP information like <title>, <vendor>, <homepage>, <description> ? These fields are available only in the Properties menu of "Java Application" projects, but not for "Enterprise Application Client";
P.S.: I'm using Java 1.6 update 13 and Glassfish v2.1 |
|
| Back to top |
|
 |
gavin@bluebox.co.za
Joined: 16 Aug 2008 Posts: 13
|
Posted: Thu May 07, 2009 5:29 pm Post subject: Question regarding Enterprise Application Clients in NB 6.5 |
|
|
Youyr problem is that the javaws in update 13 is broken. You need to down
grade to update 11 on the server machine. Versions prior to 11 also have a
problem but a different problem so ensure you use update 11 and it will then
work.
Gavin Ross
Preferred Partner : The Bluebox
Cell: 0837038110
Email: address-removed
-----Original Message-----
From: adamitj [mailto:address-removed]
Sent: 07 May 2009 03:32 PM
To: address-removed
Subject: [nbj2ee] Question regarding Enterprise Application Clients in NB
6.5
I'm trying to create a new Enterprise Application Client in NB 6.5 to access
some EJB's and WS from other Project.
The core classes to access them are working perfectly, even remotely (this
is not the problem).
I have 2 questions about these kind of project:
1) Why Swing Frames cannot be open remotely? I deployed a new EAC into a
glassfish v2.1 (name "sgp"). I accessed the link
"http://machinename:8080/sgp" from other workstation and the JNLP file is
downloaded and executed, but no Frame is opened at all. And the javaws.exe
process still running. If I run the Jar from NetBeans (not from JNLP), the
Frame opens succesfully.
2) How I change the JNLP information like <title>, <vendor>, <homepage>,
<description> ? These fields are available only in the Properties menu of
"Java Application" projects, but not for "Enterprise Application Client";
P.S.: I'm using Java 1.6 update 13 and Glassfish v2.1
------------------------
Coffee drinker. Java eater.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.325 / Virus Database: 270.12.18/2096 - Release Date: 05/04/09
17:51:00 |
|
| Back to top |
|
 |
adamitj
Joined: 17 Mar 2009 Posts: 6 Location: Brazil
|
Posted: Thu May 07, 2009 8:52 pm Post subject: The solution is... |
|
|
Thanks for your answer, but it's not the problem. After a long, long search over the web I found the solution.
Answer for question #1:
The Enterprise Application Client on Netbeans is able to open Swing forms without problems. The problem was in my Glassfish server configuration.
After hours spent, I had a brilliant idea (!) to watch the Java Web Start console output in my clients. So, there was the error:
| Code: | | WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; <hostname>: 127.0.1.1; port: 3700" |
Where <hostname> is the name of my server.
So, I realized my /etc/hosts file in the server (Ubuntu server) was identifying the machine name as 127.0.1.1. I changed the IP to the *real* network IP address, and restarted network (sudo /etc/init.d/networking restart).
After this, I got no errors.
Answer for question #2:
It is possible to change display name of application at ./src/conf/application-client.xml and by creating another file called ./src/conf/sun-application-client.xml with this content:
| Code: | <?xml version="1.0" encoding="UTF-8"?>
<java-web-start-access>
<!--
Uncomment this element and change its inner value to "false" without quotes to turn Java Web Start off.
<eligible>true</eligible>
-->
<!--
Uncomment this element to change the context of application
<context-root>changeContextTo</context-root>
-->
<vendor>Name of Vendor</vendor>
</java-web-start-access> |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|