Getting a 500 Servlet Exception when bring up sitemesh-- any help ?

mike haberman <[email protected]> Mon, 18 Apr 2005 13:51:42 CDT
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <15752240.1113850332983.JavaMail.os-j2ee@opensymphony01.contegix.com>
I'm using
   sitemesh-2.2.1.jar
   resin 3.0.7

Here's the error:

(The full stack trace is at the end)
Caused by: java.lang.IllegalStateException: Cannot load excludes configuration
file from jar

/WEB-INF/sitemesh.xml
             value = "/WEB-INF/decorators.xml" />

   <excludes file = "/WEB-INF/excludes.xml" />
  <!-- I've tried several things here:  "${decorators-file}", no excludes,  -->

   <page-parsers>
      <parser content-type="text/html"
              class="com.opensymphony.module.sitemesh.parser.FastPageParser" />
      <parser content-type="text/html;charset=ISO-8859-1"
              class="com.opensymphony.module.sitemesh.parser.FastPageParser" />
    </page-parsers>

   <decorator-mappers>
      <mapper 
         class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
            <param name="config" value="${decorators-file}" />
       </mapper>
    </decorator-mappers>
</sitemesh>
/WEB-INF/decorators.xml
----------------------------------------
<decorators defaultdir = "/WEB-INF/decorators">
 <decorator name = "main" 
             page = "main.vm">
     <pattern>/*</pattern>
  </decorator>
</decorators>

Thanks for any help..  here's the full stack trace:

com.opensymphony.module.sitemesh.factory.FactoryException: Cannot construct
Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory: java.lang.reflect.InvocationTargetException
        at com.opensymphony.module.sitemesh.Factory.report(Factory.java:87)
        at com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:56)
        at com.opensymphony.module.sitemesh.filter.PageFilter.init(PageFilter.java:86)
        at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:138)
        at com.caucho.server.dispatch.FilterMapper.buildDispatchChain(FilterMapper.java:181)
        at com.caucho.server.webapp.Application.buildInvocation(Application.java:1606)
        at com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:653)
        at com.caucho.server.host.Host.buildInvocation(Host.java:515)
        at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:312)
        at com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:529)
        at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:183)
        at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:258)
        at com.caucho.server.port.TcpConnection.run(TcpConnection.java:323)
        at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:430)
        at com.caucho.util.ThreadPool.run(ThreadPool.java:377)
        at java.lang.Thread.run(Thread.java:552)

Root cause:
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:52)
        at com.opensymphony.module.sitemesh.filter.PageFilter.init(PageFilter.java:86)
        at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:138)
        at com.caucho.server.dispatch.FilterMapper.buildDispatchChain(FilterMapper.java:181)
        at com.caucho.server.webapp.Application.buildInvocation(Application.java:1606)
        at com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:653)
        at com.caucho.server.host.Host.buildInvocation(Host.java:515)
        at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:312)
        at com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:529)
        at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:183)
        at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:258)
        at com.caucho.server.port.TcpConnection.run(TcpConnection.java:323)
        at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:430)
        at com.caucho.util.ThreadPool.run(ThreadPool.java:377)
        at java.lang.Thread.run(Thread.java:552)
Caused by: java.lang.IllegalStateException: Cannot load excludes configuration
file from jar
        at com.opensymphony.module.sitemesh.factory.DefaultFactory.loadExcludes(DefaultFactory.java:192)
        at com.opensymphony.module.sitemesh.factory.DefaultFactory.loadConfig(DefaultFactory.java:121)
        at com.opensymphony.module.sitemesh.factory.DefaultFactory.<init>(DefaultFactory.java:57)
        ... 19 more


~

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=1664&messageID=5096#5096


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]