Log4J - cannot find symbol - method trace(String)

2014-04-30 Thread Dušan Rychnovský
Hi everyone, I have the following dependency in my project's POM: ... dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.17/version /dependency ... The artifact is downloaded to my local repository, but, during the compile phase, the following error is emitted and

Re: Log4J - cannot find symbol - method trace(String)

2014-04-30 Thread Nick Stolwijk
You can use the dependency:tree[1] goal to view a tree of your dependencies to see if the correct version of Log4J is being included in the compiler classpath. [1] https://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html Hth, Nick Stolwijk ~~~ Try to leave this world a little

Re: Log4J - cannot find symbol - method trace(String)

2014-04-30 Thread Stuart McCulloch
Also check your java imports, just in case you’ve imported a different Logger by mistake (such as java.util.logging.Logger) On 30 Apr 2014, at 12:48, Nick Stolwijk nick.stolw...@gmail.com wrote: You can use the dependency:tree[1] goal to view a tree of your dependencies to see if the correct

Re: Log4J - cannot find symbol - method trace(String)

2014-04-30 Thread Dušan Rychnovský
Thank you both for your help. Unfortunatelly, neither seems to be the case. * dependency:tree confirmed that version 1.2.17 is beeing used indeed (log4j:log4j:jar:1.2.17:compile), * I have verified that the import statement is correct (import org.apache.log4j.Logger;). Dušan 2014-04-30

Re: Log4J - cannot find symbol - method trace(String)

2014-04-30 Thread Nick Stolwijk
Could you check your checksum on the log4j jar file? Maybe there is some corruption in your repository. 02:28:40 ~/.m2/repository/log4j/log4j/1.2.17$ ls -altr log4j-1.2.17.jar -rw-r--r-- 1 nick nick 489884 Jan 8 13:31 log4j-1.2.17.jar 02:28:45 ~/.m2/repository/log4j/log4j/1.2.17$ sha1sum

Re: Log4J - cannot find symbol - method trace(String)

2014-04-30 Thread Ron Wheeler
Are you using Eclipse? What does the editor say about the error? Quick fix? If you can download Eclipse/STS which includes Maven support and load up your project, you will find the error pretty quickly. Ron On 30/04/2014 8:00 AM, Dušan Rychnovský wrote: Thank you both for your help.

Re: Log4J - cannot find symbol - method trace(String)

2014-04-30 Thread Nick Stolwijk
And for another thought: maybe of your other dependencies include the org.apache.log4j.Logger class but with a different version. Check with maven copy dependencies and a grep over the contents of all the jar files. Here is how I do it: 02:40:48 {master} ~/sandbox/bowling-nickstolwijk$ mvn

Re: Log4J - cannot find symbol - method trace(String)

2014-04-30 Thread Dušan Rychnovský
Thank you all, I have finally managed to find the root of the problem. Nick's warning about the possibility of a different Log4J version as a transitive dependency got me thinking and I tried disabling the dependencies, one at a time, to see what would happen. The errors disappeared after

Re: Help with converting existing ant build to maven is required - forking

2014-04-30 Thread Maxim Solodovnik
I'm afraid I don't understand your advice :( Sorry maybe you have example project available? Or maybe you can take a look at my project parent http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/pom.xml?revision=HEADview=markup util

Re: Help with converting existing ant build to maven is required - forking

2014-04-30 Thread Ron Wheeler
I don't have time to look at code and projects for free. If you need consulting to move forward, there are others here that do Maven for a business and can help you better than I can. Have you tried making the red5 scope provided. What does this do to your build? Does it get eliminate the red5

Finding unused dependencies

2014-04-30 Thread Lahiru Gunathilake
Hi Users, I wonder whether there's an easy way to find unused dependencies for a module.I have a module which has bunch of dependencies, I have removed most of them but I wonder whether there's an easy way rather manually doing it. I there a way to get a warning about unused dependency in a pom

Re: Finding unused dependencies

2014-04-30 Thread Curtis Rueden
Hi Lahiru, I there a way to get a warning about unused dependency in a pom file for a given module. mvn dependency:analyze Regards, Curtis On Wed, Apr 30, 2014 at 3:35 PM, Lahiru Gunathilake glah...@gmail.comwrote: Hi Users, I wonder whether there's an easy way to find unused

Multimodule Configuration of Checkstyle-plugin errors

2014-04-30 Thread Aleksandr Fedorov
Hi everyone! I added checkstyle-plugin in the project according to the site - http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html But I got an error: [INFO] Scanning for projects ... [ERROR] The projects in the reactor contain a cyclic reference: Edge between

Netbeans maven project with invalid POM/classpath problem

2014-04-30 Thread Mark
Hi , I am new to Maven and Glassfish (and pretty new to Java and Netbeans!) and am struggling to build a JPA based 'injection' project that I want to run as an application client (using Glassfish appclient) to inject rows from an Oracle db table into a JMS queue. Specifically the problem

Re: Netbeans maven project with invalid POM/classpath problem

2014-04-30 Thread Barrie Treloar
On 1 May 2014 06:48, Mark mark@gmail.com wrote: Browsing the local Maven repository using Netbeans I find the following if I right-click on the ojdbc 11.2.0 jar and select 'View Details' -- org.apache.maven.project.InvalidProjectModelException: 1 problem was encountered while

Re: Help with converting existing ant build to maven is required - forking

2014-04-30 Thread Maxim Solodovnik
Thanks for your time I have started with making red5 provided but the build failed since necessary classes were not found. May be is there any way to provide dependency before build ... If not I will try to create optional dependency and another one subproject, not sure if it will work. I

Re: Help with converting existing ant build to maven is required - forking

2014-04-30 Thread Maxim Solodovnik
Make the dependency optional seems to help :) On Thu, May 1, 2014 at 7:43 AM, Maxim Solodovnik solomax...@gmail.comwrote: Thanks for your time I have started with making red5 provided but the build failed since necessary classes were not found. May be is there any way to provide dependency