Jetty logging for Maven plugin

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jetty logging for Maven plugin

Wei, Mark
Jetty logging for Maven plugin

Hi,

We used Jetty Maven-plugin (Maven 2) for our web application development. It's very easy to use indeed, very impressive. But I was not able to find the log file of Jetty server even the configuration parameter "requestLog" was add in the pom.xml, as shown below (bolded):

Could you please help figure out what might cause the problem? Did I miss something?

Your help is greatly appreciated.

Mark Wei

MTV Networks
(212)-846-4996

**********************************************  pom.xml *****************************************

<?xml version="1.0" encoding="UTF-8"?>
<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">
  <parent>
    <artifactId>master</artifactId>
    <groupId>com.mtvi.ucsa</groupId>
    <version>2</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>

  <groupId>com.mtvi.ucsa</groupId>
  <artifactId>master-site</artifactId>
  <name>UCSA Master Site Build POM</name>
  <version>2</version>
  <packaging>pom</packaging>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <configuration>
          <useTestClasspath>true</useTestClasspath>
          <systemProperties>
            <systemProperty>
              <name>MTVN_RUNTIME_STAGE</name>
              <value>local</value>
            </systemProperty>
          </systemProperties>
          <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
          <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
            <filename>target/2002_03_11.log</filename>
            <retainDays>10</retainDays>
            <append>true</append>
            <extended>false</extended>
            <logTimeZone>GMT</logTimeZone>
        </requestLog>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>

 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: Jetty logging for Maven plugin

jan_bartel
Hi Mark,

I cut and pasted in your requestLog config into a test pom using 6.1.8 of the
plugin and it worked just fine. The log file was sitting in the target directory.

Which version of the plugin are you using?

cheers
Jan


Wei, Mark wrote:

> Hi,
>
> We used Jetty Maven-plugin (Maven 2) for our web application
> development. It's very easy to use indeed, very impressive. But I was
> not able to find the log file of Jetty server even the configuration
> parameter "requestLog" was add in the pom.xml, as shown below (bolded):
>
> Could you please help figure out what might cause the problem? Did I
> miss something?
>
> Your help is greatly appreciated.
>
> Mark Wei
>
> MTV Networks
> (212)-846-4996
>
> **********************************************  pom.xml
> *****************************************
>
> <?xml version="1.0" encoding="UTF-8"?>
> <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_">
>   <parent>
>     <artifactId>master</artifactId>
>     <groupId>com.mtvi.ucsa</groupId>
>     <version>2</version>
>   </parent>
>
>   <modelVersion>4.0.0</modelVersion>
>
>   <groupId>com.mtvi.ucsa</groupId>
>   <artifactId>master-site</artifactId>
>   <name>UCSA Master Site Build POM</name>
>   <version>2</version>
>   <packaging>pom</packaging>
>
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-war-plugin</artifactId>
>         <configuration>
>           <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
>         </configuration>
>       </plugin>
>       <plugin>
>         <groupId>org.mortbay.jetty</groupId>
>         <artifactId>maven-jetty-plugin</artifactId>
>         <configuration>
>           <useTestClasspath>true</useTestClasspath>
>           <systemProperties>
>             <systemProperty>
>               <name>MTVN_RUNTIME_STAGE</name>
>               <value>local</value>
>             </systemProperty>
>           </systemProperties>
>          
> <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
>          ***** <requestLog
> implementation="org.mortbay.jetty.NCSARequestLog">*
> *            <filename>target/2002_03_11.log</filename>*
> *            <retainDays>10</retainDays>*
> *            <append>true</append>*
> *            <extended>false</extended>*
> *            <logTimeZone>GMT</logTimeZone>*
> *        </requestLog>*
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
>
> </project>
>
>  
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Jetty-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-support


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support