In this lesson, you run the new base Web Application Development project on EAServer.
Before you begin this lesson, the SybStore database
must be running and you must be connected to the database in WorkSpace.
See “Starting and connecting to the MySybStore database”.
Start EAServer:
From the Windows Start menu, select Start|Programs|Sybase|Sybase Workspace|EAServer 5.3|Start EAServer (JDK 1.4).
A command line window opens displaying the progress of starting EAServer. When you see this text, minimize, but do not close, the window.
Starting services... Accepting connections. Done binding to all configured Name Servers
Start the Adaptive Server Anywhere tutorial database and connect to it. If you are already connected, go to the step 3.
To verify the database is running and you are connected, in the Enterprise Explorer, expand Databases. If the database is running and you are connected, a small database icon displays under the MySybStore connection profile.
To start the database and connect to it:
In the WorkSpace Navigator, expand MySybStore_Tutorials/Setup/Database.
Right-click MySybStore.bat and select Open With|System Editor from the context menu.
The Adaptive Server Anywhere, Developer Edition pop-up
appears for a few seconds, then the Adaptive Server Anywhere icon
displays in your system tray, indicating that the database is running.
In the Enterprise Explorer, expand Databases to display the current database connection profiles that are used to connect to various databases.
Right-click the MySybStore connection profile and select Connect from the context menu.
A message appears stating that the connection was successful, and a database icon displays under the MySybStore connection profile.
Connect to the default application server connection profile.
In the Enterprise Explorer, expand Application Servers.
Right-click MyAppServer and select Ping from the context menu.
The message, “Ping Succeeded
” displays.
Click OK.
Right-click MyAppServer and select Connect.
A progress window states connections are being created to the application server. Several objects now display under the MyAppServer icon in the Enterprise Explorer view.
In the WorkSpace Navigator, expand MySybStore_Tutorials_Web/webroot/, right-click entrypage.jsp, and select Run from the context menu.
When the Run On Server wizard opens, select Choose an Existing Server, select MyAppServer in the tree view, and click Finish.
The first page of the JSF-based Web application displays.
Click the Inventory link at the bottom of the page to view the Order Entry Page.
Select File|Close to close the Web page.
You have started the Web server and displayed the purchasing Web application order entry page.