Almost there.
This is what I added to OC4J/config/data-sources.xml:
<data-source class="com.evermind.sql.DriverManagerDataSource" name="rollerdb" location="jdbc/rollerdb" connection-driver="org.gjt.mm.mysql.Driver" username="scott" password="tiger" url="jdbc:mysql://localhost:3306/roller?autoReconnect=true" inactivity-timeout="30" schema="database-schemas/my-sql.xml" />This is what I added to Roller's web.xml:
<resource-ref> <res-ref-name>jdbc/rollerdb</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
It is late and I'm tired of this experiment in install-blogging, so I'm gonna call it a night. I hope I haven't bored you to tears and caused you to unsubscribe from my RSS feed. I'll wrap things up tomorrow night and give you a final report.
OC4J can't handle JDK 1.4?
Add this to the entry for the JSP servlet in config/global-web-application.xml:
<init-param> <param-name>javaccmd</param-name> <param-value>/usr/java/j2sdk1.4.1/bin/javac</param-value> </init-param>Add this to the end of config/server.xml:
<compiler executable="javac" classpath="/usr/java/j2sdk1.4.1/jre/lib/rt.jar" />
Deployment on OC4J.
I dumped Roller in OC4J/home/roller and then added the following to OC4J/home/config/server.xml:
<application name="roller" path="../roller" />this to OC4J/home/config/application.xml:
<web-module id="roller" path="../../home/roller" />and this to OC4J/home/config/http-web-site.xml:
<web-app application="default" name="roller" root="/roller" />Now I'm getting a string of error messages that indicate that OC4J is attempting to deploy Roller. Good.
Starting OC4J.
Getting started with OC4J.
No docs were included in the 24MB OC4J download, so I hit the Oracle OTN site and found the Oracle9iAS Containers for J2EE User's Guide. Chapter 2 is what I want. I think I want to run just a single instance, but the docs make that sounds a little naughty - "this undermines the enterprise management provided by the Enterprise Manager." Whatever. Uh oh, Leo is awake and he is not happy about his cold.
Oracle OC4J 9.0.3.
The Cabin.
I thank my parents and my sister for an awesome childhood - where life was simple and dreams were boundless. [<a href= "http://www.raibledesigns.com/page/rd/20021016#the_cabin">Matt Raible, The Cabin]Excellent story Matt, and those pictures are wonderful.