Lab 16 Notes:
Part 2:
Step 4: Create only the Web project, no EAR. Be sure to create
a Web deployment descriptor on the last page of the wizard.
Steps 7 and 8: Replace with the following:
- Create a file named context.xml in the WebContent/META-INF folder
(be sure to put it in META-INF, not WEB-INF):
- In web.xml, add the following:
jdbc/flier
javax.sql.DataSource
Container
Shareable
- In Windows Explorer or My Computer, navigate to
C:\Program Files\IBM\WebSphere\AppServer\derby\lib
Select the derby.jar file and copy it to the clipboard.
Paste it twice:
- In Windows Explorer to the -TOMCAT INSTALL DIR\lib- folder
- In RAD, to the Lab16Part1Web project's WEB-INF\lib folder
Part 4:
Step 1c: The data-source configuration should look like (note
the jndi-name is different than in the book):