PDA

View Full Version : Sitemesh + Spring + Acegi


catalin
Aug 24th, 2004, 05:12 AM
Hi,
We tried to integrate this 3 technologies in our app, for this we used the sitemeshacegi.jar and it seems to be a problem with the SitemeshFactory class (Class must implement the inherited abstract method Factory.isPathExcluded(String) ).

When we deploy the app ( jboss 3.2.3) we receive the following error :

ERROR [Engine] StandardContext[/test]:
Exception starting filter sitemesh com.opensymphony.module.sitemesh.factory.FactoryEx ception: Cannot construct Factory : com.opensymphony.module.sitemesh.factory.DefaultFa ctory: java.lang.reflect.InvocationTargetException

Any new versions of this jar are available?[/code]

catalin
Aug 24th, 2004, 05:42 AM
btw is there any example that uses other form of provider other than InMemoryDaoImpl?

Ben Alex
Aug 24th, 2004, 05:31 PM
I've not heard of the sitemeshacegi.jar file. Where did you get that, or what does it comprise? Acegi Security with SiteMesh?

Regarding your other question, there is also the JdbcDaoImpl included with Acegi Security.

catalin
Aug 25th, 2004, 02:10 AM
I don't remember if I made a jar out of some classes or I found the jar already made. The ideea was that all the classes have this :

* @author Ben Alex


the package "com.acegitech.core.sitemesh" contains :


ContextConfigLoader.java
ContextConfigLoaderEditor.java
ContextDecoratorMapper.java
DecoratorMapperFactory.java
SitemeshFactory.java
SpringSitemeshFilter.java


Anyway the problem was that my decoretor xml in WEB-INF was decorator.xml and the default and the way I used it in sitemesf.xml was decorators.xml.
Strange error I might say.

Sorry for all, my mistake.

Best regards,
Catalin