Anna,

Try 'mvn compile -Dlog4j.configuration=file://path/to/log4j.properties'

For testing purposes you could also try putting the log4j.properties
file into src/main/resources -- this is not advised as a general
solution to the issue.

- Jeff

On Sun, Nov 16, 2008 at 4:56 PM, asilchenko <[EMAIL PROTECTED]> wrote:
>
> I have created directory with my log4j.properties file and JARed properties
> file but neither worked.
> CLASSPATH=$CLASSPATH:$LOG4J_PROP_HOME:$LOG4J_PROP_HOME/log4jproperties.jar:.
>
> I am running "mvn compile" on wsdl-first example:
> [EMAIL PROTECTED]:~/programs/iona/fuse-esb-3.3.1.11/examples/wsdl-first$ mvn
> compile
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   ServiceMix :: Samples :: WSDL first
> [INFO]   ServiceMix :: Samples :: WSDL first :: JSR181
> [INFO]   ServiceMix :: Samples :: WSDL first :: HTTP
> [INFO]   ServiceMix :: Samples :: WSDL first :: SA
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Samples :: WSDL first
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [build:copy {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Samples :: WSDL first :: JSR181
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://repo.open.iona.com/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> Downloading:
> http://repo.open.iona.com/maven2-all/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> Downloading:
> http://download.java.net/maven/1/org.apache.santuario/poms/xmlsec-1.4.0.pom
> Downloading:
> http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
> Downloading:
> http://repo.open.iona.com/maven2/opensaml/opensaml/1.1/opensaml-1.1.pom
> Downloading:
> http://repo.open.iona.com/maven2-all/opensaml/opensaml/1.1/opensaml-1.1.pom
> Downloading: http://download.java.net/maven/1/opensaml/poms/opensaml-1.1.pom
> Downloading:
> http://repo1.maven.org/maven2/opensaml/opensaml/1.1/opensaml-1.1.pom
> Downloading:
> http://repo.open.iona.com/maven2/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> Downloading:
> http://repo.open.iona.com/maven2-all/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> Downloading:
> http://download.java.net/maven/1/bouncycastle/poms/bcprov-jdk13-132.pom
> Downloading:
> http://repo1.maven.org/maven2/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
> [INFO] [xfire:wsgen {execution: default}]
> [INFO] Executing XFire WsGen task with url:
> file:/home/anna/programs/iona/fuse-esb-3.3.1.11/examples/wsdl-first/wsdl-first-jsr181-su/src/main/resources/person.wsdl
> [ERROR] log4j:WARN No appenders could be found for logger
> (org.codehaus.xfire.gen.Wsdl11Generator).
> [ERROR] log4j:WARN Please initialize the log4j system properly.
> org/apache/servicemix/samples/wsdl_first/types/GetPerson.java
> org/apache/servicemix/samples/wsdl_first/types/GetPersonResponse.java
> org/apache/servicemix/samples/wsdl_first/types/ObjectFactory.java
> org/apache/servicemix/samples/wsdl_first/types/UnknownPersonFault.java
> org/apache/servicemix/samples/wsdl_first/types/package-info.java
> org/apache/servicemix/samples/wsdl_first/Person.java
> org/apache/servicemix/samples/wsdl_first/PersonServiceClient.java
> org/apache/servicemix/samples/wsdl_first/UnknownPersonFault.java
> [INFO] [build:copy {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [jbi:generate-depends-file]
> [INFO] Created:
> /home/anna/programs/iona/fuse-esb-3.3.1.11/examples/wsdl-first/wsdl-first-jsr181-su/target/classes/META-INF/maven/dependencies.properties
> [INFO] [compiler:compile]
> [INFO] Compiling 8 source files to
> /home/anna/programs/iona/fuse-esb-3.3.1.11/examples/wsdl-first/wsdl-first-jsr181-su/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Samples :: WSDL first :: HTTP
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [build:copy {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [jbi:generate-depends-file]
> [INFO] Created:
> /home/anna/programs/iona/fuse-esb-3.3.1.11/examples/wsdl-first/wsdl-first-http-su/target/classes/META-INF/maven/dependencies.properties
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Samples :: WSDL first :: SA
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [jbi:generate-jbi-service-assembly-descriptor]
> [INFO] Generating jbi.xml
> [INFO] Determining component name for service unit wsdl-first-jsr181-su
> [INFO] Project MavenProject:
> org.apache.servicemix:servicemix-jsr181:3.3.1.11-fuse @  packaged
> jbi-component
> [INFO] Determining component name for service unit wsdl-first-http-su
> [INFO] Project MavenProject:
> org.apache.servicemix:servicemix-http:3.3.1.11-fuse @  packaged
> jbi-component
> [INFO] [jbi:generate-depends-file]
> [INFO] Created:
> /home/anna/programs/iona/fuse-esb-3.3.1.11/examples/wsdl-first/wsdl-first-sa/target/classes/META-INF/maven/dependencies.properties
> [INFO] [build:copy {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO]
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> ------------------------------------------------------------------------
> [INFO] ServiceMix :: Samples :: WSDL first ................... SUCCESS
> [1.507s]
> [INFO] ServiceMix :: Samples :: WSDL first :: JSR181 ......... SUCCESS
> [20.992s]
> [INFO] ServiceMix :: Samples :: WSDL first :: HTTP ........... SUCCESS
> [0.750s]
> [INFO] ServiceMix :: Samples :: WSDL first :: SA ............. SUCCESS
> [0.764s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 26 seconds
> [INFO] Finished at: Sun Nov 16 19:38:02 EST 2008
> [INFO] Final Memory: 25M/45M
>
> Thank you,
> Anna
> --
> View this message in context: 
> http://www.nabble.com/ERROR-log4j%3AWARN-No-appenders-could-be-found-for-logger-%28org.codehaus.xfire.gen.Wsdl11Generator%29.-tp20521893p20532178.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to