I have no prooblem using japserreprot 3.10 against my jrxml files,
perhaps you need to add log4j into your plugin's dep?

-D

On Mon, Oct 13, 2008 at 10:31 AM, Lammert Westerhoff
<[EMAIL PROTECTED]> wrote:
> Did you configure the log4j properties? If not, you might wanna give that a
> try.
>
> 2008/10/13 Dan Tran <[EMAIL PROTECTED]>
>>
>> does beta-1 have the same problem?
>>
>> file a JIRA with a small jasper file to reproduce the problem
>>
>> -D
>>
>> On Mon, Oct 13, 2008 at 2:36 AM, Pieter Claassen <[EMAIL PROTECTED]>
>> wrote:
>> >
>> > I am having a very hard time making jasperreports work in
>> > eclipse using maven2.
>> >
>> > Here is the error that I get and I include the POM as well. Any ideas
>> > or suggestions on how to fix this problem?
>> >
>> > I know log4j 1.2.14 is in my maven repository (I also tried with
>> > 1.2.15 and had the same error).
>> >
>> >
>> >
>> > [ERROR] FATAL ERROR
>> > [INFO] ------------------------------
>> > ------------------------------------------
>> > [INFO] null
>> > org/apache/log4j/Logger
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Trace
>> > java.lang.ExceptionInInitializerError
>> >    at
>> > net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:203)
>> >    at
>> > net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:168)
>> >    at
>> > net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152)
>> >    at
>> >
>> > net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:115)
>> >    at
>> >
>> > org.codehaus.mojo.jasperreports.JasperReportsMojo.compile(JasperReportsMojo.java:242)
>> >    at
>> >
>> > org.codehaus.mojo.jasperreports.JasperReportsMojo.execute(JasperReportsMojo.java:194)
>> >    at
>> >
>> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:896)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:739)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:510)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>> >    at
>> >
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>> >    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>> >    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>> >    at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>> >    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >    at
>> >
>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> >    at
>> >
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> >    at java.lang.reflect.Method.invoke(Method.java:585)
>> >    at
>> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> >    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> >    at
>> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> >    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> > Caused by: org.apache.commons.logging.LogConfigurationException:
>> > org.apache.commons.logging.LogConfigurationException: No suitable Log
>> > constructor [Ljava.lang.Class;@5332ca for
>> > org.apache.commons.logging.impl.Log4JLogger
>> >    at
>> >
>> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
>> >    at
>> >
>> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
>> >    at
>> >
>> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
>> >    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
>> >    at
>> >
>> > net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.<clinit>(JRXmlDigesterFactory.java:176)
>> >    ... 28 more
>> > Caused by: org.apache.commons.logging.LogConfigurationException: No
>> > suitable
>> > Log constructor [Ljava.lang.Class;@5332ca for
>> > org.apache.commons.logging.impl.Log4JLogger
>> >    at
>> >
>> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:432)
>> >    at
>> >
>> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
>> >    ... 32 more
>> > Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
>> >    at java.lang.Class.getDeclaredConstructors0(Native Method)
>> >    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>> >    at java.lang.Class.getConstructor0(Class.java:2671)
>> >    at java.lang.Class.getConstructor(Class.java:1629)
>> >    at
>> >
>> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:429)
>> >    ... 33 more
>> >
>> >
>> >
>> >
>> > Here is my pom.xml
>> >
>> > <project xmlns="http://maven.apache.org/POM/4.0.0";
>> >    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> >    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> > http://maven.apache.org/maven-v4_0_0.xsd";>
>> >
>> >    <modelVersion>4.0.0</modelVersion>
>> >    <groupId>com.musmato</groupId>
>> >    <artifactId>practice</artifactId>
>> >    <packaging>war</packaging>
>> >    <version>1.0</version>
>> >    <!-- TODO project name  -->
>> >    <name>practice101</name>
>> >    <description></description>
>> >
>> >    <!-- TODO
>> >        <organization>
>> >        <name>company name</name>
>> >        <url>company url</url>
>> >        </organization>
>> >    -->
>> > <repositories>
>> > <repository>
>> >    <id>java.net</id>
>> >    <name>java.net</name>
>> >    <url>http://download.java.net/maven/2/</url>
>> > </repository>
>> >
>> >    <repository>
>> >      <id>Codehaus Snapshots</id>
>> >      <url>http://snapshots.repository.codehaus.org/</url>
>> >      <snapshots>
>> >        <enabled>true</enabled>
>> >      </snapshots>
>> >      <releases>
>> >        <enabled>false</enabled>
>> >      </releases>
>> >    </repository>
>> >  </repositories>
>> >  <pluginRepositories>
>> >    <pluginRepository>
>> >      <id>Codehaus Snapshots</id>
>> >      <url>http://snapshots.repository.codehaus.org/</url>
>> >      <snapshots>
>> >        <enabled>true</enabled>
>> >      </snapshots>
>> >      <releases>
>> >        <enabled>false</enabled>
>> >      </releases>
>> >    </pluginRepository>
>> >
>> >  </pluginRepositories>
>> >
>> >
>> >    <licenses>
>> >        <license>
>> >            <name>The Apache Software License, Version 2.0</name>
>> >            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
>> >            <distribution>repo</distribution>
>> >        </license>
>> >    </licenses>
>> >
>> >    <dependencies>
>> >        <!--  WICKET DEPENDENCIES -->
>> >        <dependency>
>> >            <groupId>org.apache.wicket</groupId>
>> >            <artifactId>wicket</artifactId>
>> >            <version>${wicket.version}</version>
>> >        </dependency>
>> >            <dependency>
>> >            <groupId>com.db4o</groupId>
>> >            <artifactId>db4o-java5</artifactId>
>> >            <version>7.4.60.11658</version>
>> >            <scope>compile</scope>
>> >            </dependency>
>> >        <dependency>
>> >            <groupId>log4j</groupId>
>> >            <artifactId>log4j</artifactId>
>> >            <version>1.2.14</version>
>> >        </dependency>
>> >        <dependency>
>> >    <groupId>javax.jms</groupId>
>> >    <artifactId>jms</artifactId>
>> >    <version>1.1</version>
>> > </dependency>
>> > <dependency>
>> >    <groupId>com.sun.jdmk</groupId>
>> >    <artifactId>jmxtools</artifactId>
>> >    <version>1.2.1</version>
>> > </dependency>
>> >
>> >        <!--  JUNIT DEPENDENCY FOR TESTING -->
>> >         <dependency>
>> >                 <groupId>junit</groupId>
>> >                 <artifactId>junit</artifactId>
>> >                 <version>3.8.2</version>
>> >                 <scope>test</scope>
>> >         </dependency>
>> >
>> >        <!--  JETTY DEPENDENCIES FOR TESTING  -->
>> >
>> >        <dependency>
>> >            <groupId>org.mortbay.jetty</groupId>
>> >            <artifactId>jetty</artifactId>
>> >            <version>${jetty.version}</version>
>> >            <scope>provided</scope>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.mortbay.jetty</groupId>
>> >            <artifactId>jetty-util</artifactId>
>> >            <version>${jetty.version}</version>
>> >            <scope>provided</scope>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.mortbay.jetty</groupId>
>> >            <artifactId>jetty-management</artifactId>
>> >            <version>${jetty.version}</version>
>> >            <scope>provided</scope>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.hibernate</groupId>
>> >            <artifactId>hibernate</artifactId>
>> >            <version>3.2.6.ga</version>
>> >            <scope>compile</scope>
>> >        </dependency>
>> >
>> >    </dependencies>
>> >
>> >    <build>
>> >
>> >        <resources>
>> >            <resource>
>> >                <filtering>false</filtering>
>> >                <directory>src/main/resources</directory>
>> >            </resource>
>> >            <resource>
>> >                <filtering>false</filtering>
>> >                <directory>src/main/java</directory>
>> >                <includes>
>> >                    <include>**</include>
>> >                </includes>
>> >                <excludes>
>> >                    <exclude>**/*.java</exclude>
>> >                </excludes>
>> >            </resource>
>> >        </resources>
>> >        <testResources>
>> >            <testResource>
>> >                <filtering>false</filtering>
>> >                <directory>src/test/java</directory>
>> >                <includes>
>> >                    <include>**</include>
>> >                </includes>
>> >                <excludes>
>> >                    <exclude>**/*.java</exclude>
>> >                </excludes>
>> >            </testResource>
>> >        </testResources>
>> >        <plugins>
>> >
>> >
>> >      <plugin>
>> >          <groupId>org.codehaus.mojo</groupId>
>> >          <artifactId>jasperreports-maven-plugin</artifactId>
>> >         <version>1.0-beta-2-SNAPSHOT</version>
>> >          <executions>
>> >            <execution>
>> >              <goals>
>> >                <goal>compile-reports</goal>
>> >              </goals>
>> >            <phase>compile</phase>
>> >            </execution>
>> >          </executions>
>> >          <dependencies>
>> >            <dependency>
>> >              <groupId>jasperreports</groupId>
>> >              <artifactId>jasperreports</artifactId>
>> >              <version>3.1.0</version>
>> >            </dependency>
>> >          </dependencies>
>> >        </plugin>
>> >
>> >
>> > <plugin>
>> >    <artifactId>maven-clean-plugin</artifactId>
>> >    <configuration>
>> >      <filesets>
>> >        <fileset>
>> >    <directory>*</directory>
>> >          <excludes>
>> >            <exclude>**/.svn</exclude>
>> >          </excludes>
>> >        </fileset>
>> >      </filesets>
>> >    </configuration>
>> >  </plugin>
>> >
>> >    <plugin>
>> >                <groupId>org.mortbay.jetty</groupId>
>> >                <artifactId>maven-jetty-plugin</artifactId>
>> >                <configuration>
>> >                    <scanIntervalSeconds>15</scanIntervalSeconds>
>> >                        <contextPath>/practice</contextPath>
>> >                        <scanTargetPatterns>
>> >            <scanTargetPattern>
>> >              <directory>src/</directory>
>> >              <includes>
>> >                <include>**/*.html</include>
>> >                <include>**/*.java</include>
>> >              </includes>
>> >            </scanTargetPattern>
>> >          </scanTargetPatterns>
>> >
>> >                </configuration>
>> >            </plugin>
>> > <plugin>
>> >            <groupId>org.apache.maven.plugins</groupId>
>> >            <artifactId>maven-compiler-plugin</artifactId>
>> >            <configuration>
>> >                <source>1.5</source>
>> >                <target>1.5</target>
>> >            </configuration>
>> >        </plugin>
>> > </plugins>
>> >
>> >
>> >    </build>
>> >    <properties>
>> >        <wicket.version>1.3.4</wicket.version>
>> >        <jetty.version>6.1.4</jetty.version>
>> >    </properties>
>> >
>> > </project>
>> > --
>> > View this message in context:
>> > http://www.nabble.com/maven2%2C-jasperreports-and-log4j-problem-tp19951498p19951498.html
>> > Sent from the mojo - dev mailing list archive at Nabble.com.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe from this list, please visit:
>> >
>> >    http://xircles.codehaus.org/manage_email
>> >
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>
>
> --
> Lammert Westerhoff
> [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to