Create a jar file out of the log4j.properties file and put it beside the
log4j.jar.
jar cf log4jproperties.jar log4j.properties

Upul
On 10/24/07, Michael Kopf <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm having trouble when I try to generate source from wsdl via the
> wsdl2Code-Plugin for maven2. Maven downloads many jars to the local
> repository and also the log4J.jar but then I get always the same error:
>
> [INFO] [axis2-wsdl2code:wsdl2code]
> log4j:WARN No appenders could be found for logger
> (org.apache.axis2.i18n.Project
> ResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
>
> I've tried to put the log4J.properties as resources in the pom
>
> ...
> <build>
>      <resources>
>        <resource>
>          <!-- include config for use with jetty -->
>          <directory>src/main/resources</directory>
>          <includes>
>            <include>log4j.properties</include>
>          </includes>
>        </resource>
>      </resources>
>      <plugins>
>        <plugin>
>          <groupId>org.apache.axis2.maven2</groupId>
>          <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
>          <executions>
>            <execution>
>              <phase>generate-sources</phase>
>              <goals>
>                <goal>wsdl2code</goal>
>              </goals>
>            </execution>
>          </executions>
>          <configuration>
>            <wsdlFile>src/main/wsdl/DPFService.wsdl</wsdlFile>
>            <packageName>com.foo.myservice</packageName>
>          </configuration>
> ...
>
> I also tried to put it beside the log4j.jar.
>
> But the result is the same.
> --
> --
> Kind regards
>
> Michael Kopf
> SEAL Systems AG                 Tel.  : +49 (0) 9195-926-0
> Lohmuehlweg 4                   Fax   : +49 (0) 9195-1739
> D-91341 Roettenbach             mailto:[EMAIL PROTECTED]
> Germany                         WWW:     http://www.sealsystems.de
>
> -------------------------------------------------------
>      PDF/A - eine Norm für die Langzeitarchvierung
>
>             Erzeugen - Prüfen - Korrigieren
> Werkzeuge, Beratung und Integration von SEAL Systems AG
> -------------------------------------------------------
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to