• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jakarta commons and diggester

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there! I'm trying to use commons chains on my project. Here's a piece of my web.xml:

<context-param>
<param-name>org.apache.commons.chain.CONFIG_CLASS_RESOURCE</param-name>
<param-value>catalog.xml</param-value>
</context-param>

<listener>
<listener-class>org.apache.commons.chain.web.ChainListener</listener-class>
</listener>

My catalog.xml is located inside web-inf/classes

here's how it looks like:

<chains>
<chain name="validarRegraCompraPlanoCobertura">
<command className="com.araujo.convenios.view.administrarregracompra.action.commands.InitSalvarRegraCompraCommand"/>
<command className="com.araujo.convenios.view.administrarregracompra.action.commands.RemoveItensCommand"/>
<command className="com.araujo.convenios.view.administrarregracompra.action.commands.AssembleUpdateRegraCompraCommand"/>
</chain>
</chains>

Ok. So I start my app on jboss 4.0.1. It outputs:


18:26:18,470 INFO [ChainListener] Initializing chain listener
18:26:18,720 WARN [Digester] Empty stack (returning null)

Well, so I guess It wasn't able to load the catalog right? When trying to load the catalog from webcontext it returns null. Any ideas please?

Best regards

Vinicius
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic