The easiest way to use MMBase taglibs is to integrate the MMBase web
applicatioon with the tiles/struts web application.

You only have to merge the 2 WEB-INF/web.xml files to 1 and add the
mmbase jar file (and the additional jars) to the WEB-INF/lib directory.
Oh, and don't forget to move the config dir.

In the merge process, copy the servlets and servlet-mappings for the
version, images and attachment to the struts web.xml and add the mmbase
taglib declaration.

The xerces, xalan and xml-api jars shouldn't be in the WEB-INF/lib dir
when you use tomcat. Fot tomcat, they have to be in the
<TOMCAT>/common/endorsed dir.

Nico Klasens

Finalist IT Group
Java Specialists


> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Namens Curtney Jacobs
> Verzonden: donderdag 9 oktober 2003 1:44
> Aan: [EMAIL PROTECTED]
> Onderwerp: Using mmbase tags within another app context
> 
> 
> Greetings everyone!
> 
> I am new to mmbase.
> 
> I have a website that is already running (using Tiles and 
> Jakarata Struts). 
> 
> Is possible for me to access a mmbase database from my 
> application using 
> mmbase tag libraries?
> 
> Currently, I am recieving the following error when I try to 
> access the 
> database from my app:
> 
> ERROR MMBase has not been started, and cannot be started by 
> this Class. 
> (org.mmbase.bridge.LocalContext).
> 
> It seems like since my application is running in one context 
> and mmbase is 
> running in another I cannot use mmbase taglibs to access the 
> database. 
> 
> Is there a workaround for this?
> 
> 
> Any suggestions or comments are greatly appreciated.
> 
> _CJ
> 
> 


Reply via email to