Hello Forum,
I have the DukesBank application from the Java EE Tutorial working against the localhost URL in Glassfish 2-b58g. But I need remote access to the DukesBank application. I have reconfigured the Glassfish App Server, the DB & the DukesBank application
Now the JSF logon page is served but when the submit button is hit the "Directory Listing For /" is displayed. I think the Entity Bean is failing so have coded the Customer entity to use EAGER fetch type. However it still does not work.
Any advice would be greatly appreciated. I have summarized the five steps already taken. Thank-you.
1. ping myDomainName -> Reply received from x.x.x.x
2. Configure Glassfish:
expand App Server, General Tab, Name:myDomainName
expand Configuration -> HTTP Service -> HTTP Listeners
http-listener-1, enabled, IP x.x.x.x, port 8080, default virtual server = server, server name alias=myDomainName:8080
http-listener-2, enabled, IP x.x.x.x, port 8181, default virtual server = server, server name alias=myDomainName:8080
Distributing myEar.ear to [myDomainName:4848_server]
3. Set entity\Customer.java to use eager fetch:
public class Customer implements java.io.Serializable {
@ManyToMany(fetch=FetchType.EAGER, mappedBy = "customers")
4. Also set request\SessionBean to implement Serializable
@Remote
public interface CustomerController { ...}
@Stateful
public class CustomerControllerBean implements CustomerController,Serializable
5. Re-build the application with build properties set to javaee.server.name=myDomainName and db.host=myDomainName
with private.properties set to
j2ee.server.instance=deployer:Sun:AppServer::myDomainName:4848
with APP_dukesbank-ejb.dbschema set to
<_url>jdbc:derby://myDomainName:1527/sun-appserv-samples;create=true</_url>
[Message sent by forum member 'emo123' (emo123)]
http://forums.java.net/jive/thread.jspa?messageID=239037