[Opensource] Expresso Application in other Database
Peter A. J. Pilgrim
peterp at xenonsoft.demon.co.uk
Wed Sep 4 14:05:50 PDT 2002
I have ``econtent2-01-src.jar' unpacked. I want to install it and
run in a different database context. In MYSQL I created a new
database "cms". I defined a separate
context called "cms" in the `expresso-config.xml' and flagged
it as `notExpresso="y"'. Whenever I try to restart the webserver
and try to access the main expresso home page then I get stacktrace
java.lang.IllegalArgumentException: ConfigManager not initialized
at
com.jcorporate.expresso.core.misc.ConfigManager.getContextPath(ConfigManager.java:1106)
at com.jcorporate.expresso.ext.taglib.StyleSheetTag.doEndTag(StyleSheetTag.java:93)
at org.apache.jsp.error$jsp._jspx_meth_expresso_stylesheet_0(error$jsp.java:172)
at org.apache.jsp.error$jsp._jspService(error$jsp.java:116)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
What have other people done to get other database to work?
I had a look at EDG and read the section on DBOTHERMAPPING, but it seems
very long winded. How could you quickly say that all eContent dbobjects
are mapped automatically to other db `cms'? Instead the EDG you have
go through each one of the tables and manually configure a mapping.
If you create a complex table with 200 tables (sic DBobjects) ....
Oh boy.
There is a mistake in the EDG also it mentions deprecated <hasTables> tag
and also the new "notExpresso" attribute in the same section.
Maybe for the Admin / Applications pages we need to delve into the add
application schema and add any extra field "dbcontext"
for this sort of thing.
PS: I am using the Expresso 4.1 CVS version.
PPS: Are there any web designers or graphics artists or technical authors
on the list interested in helping improvement parts of the look and feel.
The admin pages are looking a little staid compared to say
to the look and feel of Windows XP or KDE.
--
Peter Pilgrim +-----\ +-++----++----+
Java Technologist | | | || || | 'n' Shine
| O | | || --+| ---+
/\ | ._ / | | \ \ | |
/ \ | | \ \ | |+-- || ---+ A new day
/_ _\ "Up" | | | | | || || | is coming
|| +-+ +-+ +-++----++----+
<home page="http://www.xenonsoft.demon.co.uk/" />
More information about the Opensource
mailing list