NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Question regarding Enterprise Application Clients in NB 6.5

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
adamitj



Joined: 17 Mar 2009
Posts: 6
Location: Brazil

PostPosted: Thu May 07, 2009 1:31 pm    Post subject: Question regarding Enterprise Application Clients in NB 6.5 Reply with quote

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

PostPosted: Thu May 07, 2009 5:29 pm    Post subject: Question regarding Enterprise Application Clients in NB 6.5 Reply with quote

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

PostPosted: Thu May 07, 2009 8:52 pm    Post subject: The solution is... Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo