14.01.2013 Views

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.6. Running the Generated Application<br />

4.6.1. TroubleShooting<br />

When the <strong>JHeadstart</strong> Application Generator has completed successfully, you can run and<br />

test your application.<br />

Before running the generated application, it is a good habit to always rebuild it first<br />

(causing the project files to be copied to the class path). You can rebuild it in one of the<br />

following ways:<br />

• Right click the ViewController project in the Navigator, and choose Rebuild<br />

• Click the Rebuild icon in the JDeveloper toolbar<br />

You can run the generated Application in one of the following ways:<br />

• Run the ViewController project (using right-mouse-click in the Navigator or<br />

using the Run button in the JDeveloper tool bar),<br />

The <strong>JHeadstart</strong> Application Generator has automatically set the first generated<br />

page of the first group to be the default run target<br />

• To directly run a specific page, select one of the generated .jspx files in the<br />

Application Navigator, right-mouse-click and choose Run.<br />

• Open the ‘faces-config.xml’ in Diagram view and right click a .jspx page to run.<br />

If the application page does not show, and your browser “hangs” or gives a Gateway<br />

Timeout, it could be that the proxy settings of your browser don't make an exception for<br />

the host name or IP address used by embedded OC4J. Go to the menu option Tools -><br />

Embedded OC4J Server Preferences, and click on Startup below the Global node. Select<br />

4 - 22 Using the <strong>JHeadstart</strong> Addins <strong>JHeadstart</strong> Developer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!