A few questions all bundled into one e-mail.  First, I'm attempting to use the 
jasper plug-in for struts 2, and have a maven archetype as my starting point.  
I uncommented these lines in my pom.xml:

      <dependency>
          <groupId>jasperreports</groupId>
          <artifactId>jasperreports</artifactId>
          <version>1.2.1</version>
      </dependency>

I then followed this guide (I don't know of any difference between what I've 
done and what's in this tutorial):

 http://struts.apache.org/2.x/docs/jasperreports-tutorial.html

I get the following stack trace:

Error building results for action myJasperTest in namespace  - action - 
file:/home/ddurham/IdeaProjects/profileReports/target/profileReports/WEB-INF/classes/struts.xml:33:74
   
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:173)
   
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:248)
   
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:723)
   
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
   
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:97)
   
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:46)
   
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getMapping(DefaultActionMapper.java:238)
   
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:227)
   
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
   
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
   
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:118)

This indicates there's a problem in this section of struts.xml:

      <action name="myJasperTest" class="com.vailsys.dba.JasperAction">
          <result name="success" type="jasper">
              <param name="location">/jasper/compiled_template.jasper</param>
              <param name="dataSource">myList</param>
              <param name="format">PDF</param>
          </result>
      </action>

I checked that the struts2 jasper reports plugin and jasper reports jars are in my 
WEB-INF/lib directory, just in case the root cause is "no class definition 
found."  Speaking of root cause, I can't find it.  Here's my logging configuration.  
First the pom.xml modification:

      <dependency>
          <groupId>log4j</groupId>
          <artifactId>log4j</artifactId>
          <version>1.2.13</version>
      </dependency>

Now my log4j.xml (relevant entries only):

  <category name="org.apache" additivity="false">
      <level value="debug"/>
      <appender-ref ref="console"/>
  </category>

  <category name="com.opensymphony" additivity="false">
      <level value="debug"/>
      <appender-ref ref="console"/>
  </category>


But I don't get DEBUG messages from struts in catalina.out.  I only see INFO 
messages.  I do see DEBUG messages from my action classes.  I haven't checked 
struts 2 source code to see if there are any DEBUG statements (just assuming 
that there are).  So, anyone working with struts 2 and jasper?  My biggest 
problem is not seeing log messages from these classes.  Thanks for any help,

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to