openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò (Created) (JIRA) <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2114) How to handle openjpa-maven-plugin output?
Date Wed, 18 Jan 2012 11:33:39 GMT
How to handle openjpa-maven-plugin output?
------------------------------------------

                 Key: OPENJPA-2114
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2114
             Project: OpenJPA
          Issue Type: Bug
          Components: integration
    Affects Versions: 2.2.0
            Reporter: Francesco Chicchiriccò


When configuring openjpa-maven-plugin with SLF4J (1.6.4) and logback (1.0.0) as follows:

                        <dependency>
                            <groupId>org.slf4j</groupId>
                            <artifactId>slf4j-api</artifactId>
                            <version>${slf4j.version}</version>
                        </dependency>
                        <dependency>
                            <groupId>ch.qos.logback</groupId>
                            <artifactId>logback-core</artifactId>
                            <version>${logback.version}</version>
                        </dependency>
                        <dependency>
                            <groupId>ch.qos.logback</groupId>
                            <artifactId>logback-classic</artifactId>
                            <version>${logback.version}</version>
                        </dependency>
                        <dependency>
                            <groupId>org.slf4j</groupId>
                            <artifactId>jcl-over-slf4j</artifactId>
                            <version>${slf4j.version}</version>
                        </dependency>

every warning about missing SLF4J implementation disappears but I am not able to redirect
all logging output in a separate file.

In fact, when invoking the plugin as

mvn openjpa:sql -Dlogback.configurationFile=src/main/resources/logback.xml

I actually see that the configuration file (logback.xml) is taken into account (a couple of
rows are written in a separate file): unfortunately I'm still getting all this stuff on standard
output:


639  syncopePersistenceUnit  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.H2Dictionary"
(H2 1.3.163 (2011-12-30) ,H2 JDBC Driver 1.3.163 (2011-12-30)).
31  syncopePersistenceUnit  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.H2Dictionary"
(H2 1.3.163 (2011-12-30) ,H2 JDBC Driver 1.3.163 (2011-12-30)).
74  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.SchedTask" with action "buildSchema".
533  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.ConnInstance" with action "buildSchema".
610  syncopePersistenceUnit  WARN   [main] openjpa.Runtime - Found no persistent property
in "org.syncope.core.persistence.beans.role.RDerSchema"
615  syncopePersistenceUnit  WARN   [main] openjpa.Runtime - Found no persistent property
in "org.syncope.core.persistence.beans.role.RVirSchema"
620  syncopePersistenceUnit  WARN   [main] openjpa.Runtime - Found no persistent property
in "org.syncope.core.persistence.beans.user.UDerSchema"
629  syncopePersistenceUnit  WARN   [main] openjpa.Runtime - Found no persistent property
in "org.syncope.core.persistence.beans.user.UVirSchema"
634  syncopePersistenceUnit  WARN   [main] openjpa.Runtime - Found no persistent property
in "org.syncope.core.persistence.beans.membership.MDerSchema"
635  syncopePersistenceUnit  WARN   [main] openjpa.Runtime - Found no persistent property
in "org.syncope.core.persistence.beans.membership.MVirSchema"
715  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.user.UDerAttr" with action "buildSchema".
715  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.role.SyncopeRole" with action "buildSchema".
715  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.user.UAttr" with action "buildSchema".
716  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.SyncPolicy" with action "buildSchema".
716  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.AbstractVirSchema" with action "buildSchema".
716  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.membership.MAttrUniqueValue" with action "buildSchema".
716  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.NotificationTask" with action "buildSchema".
721  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.role.RAttr" with action "buildSchema".
721  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.membership.MVirAttr" with action "buildSchema".
721  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.user.UAttrValue" with action "buildSchema".
721  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.ExternalResource" with action "buildSchema".
721  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.Notification" with action "buildSchema".
733  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.AbstractDerAttr" with action "buildSchema".
733  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.role.RAttrValue" with action "buildSchema".
733  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.AbstractSchema" with action "buildSchema".
733  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.membership.Membership" with action "buildSchema".
733  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.PasswordPolicy" with action "buildSchema".
733  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.membership.MDerSchema" with action "buildSchema".
733  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.AbstractVirAttr" with action "buildSchema".
734  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.role.RDerAttr" with action "buildSchema".
734  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.role.RAttrUniqueValue" with action "buildSchema".
734  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.user.SyncopeUser" with action "buildSchema".
734  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.SyncTask" with action "buildSchema".
741  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.PropagationTask" with action "buildSchema".
749  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.AbstractDerSchema" with action "buildSchema".
749  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.user.USchema" with action "buildSchema".
749  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.AbstractAttrValue" with action "buildSchema".
749  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.SchemaMapping" with action "buildSchema".
749  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.SyncopeConf" with action "buildSchema".
757  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.membership.MDerAttr" with action "buildSchema".
757  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.user.UVirAttr" with action "buildSchema".
757  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.TaskExec" with action "buildSchema".
757  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.membership.MAttr" with action "buildSchema".
757  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.Policy" with action "buildSchema".
757  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.user.UDerSchema" with action "buildSchema".
757  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.membership.MAttrValue" with action "buildSchema".
757  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.Task" with action "buildSchema".
757  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.role.RSchema" with action "buildSchema".
758  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.AbstractAttr" with action "buildSchema".
758  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.UserRequest" with action "buildSchema".
767  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.role.RVirSchema" with action "buildSchema".
767  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.user.UAttrUniqueValue" with action "buildSchema".
768  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.user.UVirSchema" with action "buildSchema".
768  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.role.RVirAttr" with action "buildSchema".
768  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.Entitlement" with action "buildSchema".
768  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.AccountPolicy" with action "buildSchema".
768  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.role.RDerSchema" with action "buildSchema".
768  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.membership.MSchema" with action "buildSchema".
768  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Mapping tool running on type "class
org.syncope.core.persistence.beans.membership.MVirSchema" with action "buildSchema".
768  syncopePersistenceUnit  INFO   [main] openjpa.Tool - Recording mapping and schema changes.
[INFO] ------------------------------------------------------------------------


Can you tell me what I am doing wrong?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message