You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Apfel <ja...@gmail.com> on 2012/03/04 21:38:53 UTC

Maven and dependencies for $CATALINA/lib

Hi,

I'm working on a project that requires me to replace Tomcat's
SessionManager. I've created a src/main/webapp/META-INF/context.xml
(it defines the custom Manager) and I've edited my Maven pom file to
include the requires JARs in the tomcat6-maven-plugin's dependencies
section (see below) but I'm not sure if that actually refers to
$CATALINA/lib or if these dependencies are for something else. It's
failing with a ClassNotFoundException (it can't find the Manager class
as defined in context.xml).

Thanks,
 James



<plugin>
  <groupId>org.apache.tomcat.maven</groupId>
  <artifactId>tomcat6-maven-plugin</artifactId>
  <version>2.0-SNAPSHOT</version>
  <dependencies>
    <dependency>
      <groupId>spy</groupId>
      <artifactId>spymemcached</artifactId>
      <version>2.8.0</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>de.javakaffee.msm</groupId>
      <artifactId>memcached-session-manager-tc6</artifactId>
      <version>1.6.1</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>de.javakaffee.msm</groupId>
      <artifactId>msm-kryo-serializer</artifactId>
      <version>1.6.0</version>
      <scope>runtime</scope>
    </dependency>
  </dependencies>
</plugin>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Maven and dependencies for $CATALINA/lib

Posted by James Apfel <ja...@gmail.com>.
Your change fixed it. Thanks!


On Mon, Mar 5, 2012 at 9:42 AM, Olivier Lamy <ol...@apache.org> wrote:
> 2012/3/5 Olivier Lamy <ol...@apache.org>:
>> 2012/3/4 James Apfel <ja...@gmail.com>:
>>> Hi,
>>>
>>> I'm working on a project that requires me to replace Tomcat's
>>> SessionManager. I've created a src/main/webapp/META-INF/context.xml
>>> (it defines the custom Manager) and I've edited my Maven pom file to
>>> include the requires JARs in the tomcat6-maven-plugin's dependencies
>>> section (see below) but I'm not sure if that actually refers to
>>> $CATALINA/lib or if these dependencies are for something else. It's
>>> failing with a ClassNotFoundException (it can't find the Manager class
>>> as defined in context.xml).
>> Arghh :-)
>> The dependencies for the tomcat start (the plugin create a class
>> loader with needed embeded tomcat jars) are limited to groupId
>> org.apache.tomcat
>> Can you load an issue ? https://issues.apache.org/jira/browse/MTOMCAT
>
> Thanks for the issue entry.
> That should be fixed now. Can you try with last 2.0-SNAPSHOT.
>
>> That's an easy fix.
>>
>>>
>>> Thanks,
>>>  James
>>>
>>>
>>>
>>> <plugin>
>>>  <groupId>org.apache.tomcat.maven</groupId>
>>>  <artifactId>tomcat6-maven-plugin</artifactId>
>>>  <version>2.0-SNAPSHOT</version>
>>>  <dependencies>
>>>    <dependency>
>>>      <groupId>spy</groupId>
>>>      <artifactId>spymemcached</artifactId>
>>>      <version>2.8.0</version>
>>>      <scope>runtime</scope>
>>>    </dependency>
>>>    <dependency>
>>>      <groupId>de.javakaffee.msm</groupId>
>>>      <artifactId>memcached-session-manager-tc6</artifactId>
>>>      <version>1.6.1</version>
>>>      <scope>runtime</scope>
>>>    </dependency>
>>>    <dependency>
>>>      <groupId>de.javakaffee.msm</groupId>
>>>      <artifactId>msm-kryo-serializer</artifactId>
>>>      <version>1.6.0</version>
>>>      <scope>runtime</scope>
>>>    </dependency>
>>>  </dependencies>
>>> </plugin>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>>
>>
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Maven and dependencies for $CATALINA/lib

Posted by Olivier Lamy <ol...@apache.org>.
2012/3/5 Olivier Lamy <ol...@apache.org>:
> 2012/3/4 James Apfel <ja...@gmail.com>:
>> Hi,
>>
>> I'm working on a project that requires me to replace Tomcat's
>> SessionManager. I've created a src/main/webapp/META-INF/context.xml
>> (it defines the custom Manager) and I've edited my Maven pom file to
>> include the requires JARs in the tomcat6-maven-plugin's dependencies
>> section (see below) but I'm not sure if that actually refers to
>> $CATALINA/lib or if these dependencies are for something else. It's
>> failing with a ClassNotFoundException (it can't find the Manager class
>> as defined in context.xml).
> Arghh :-)
> The dependencies for the tomcat start (the plugin create a class
> loader with needed embeded tomcat jars) are limited to groupId
> org.apache.tomcat
> Can you load an issue ? https://issues.apache.org/jira/browse/MTOMCAT

Thanks for the issue entry.
That should be fixed now. Can you try with last 2.0-SNAPSHOT.

> That's an easy fix.
>
>>
>> Thanks,
>>  James
>>
>>
>>
>> <plugin>
>>  <groupId>org.apache.tomcat.maven</groupId>
>>  <artifactId>tomcat6-maven-plugin</artifactId>
>>  <version>2.0-SNAPSHOT</version>
>>  <dependencies>
>>    <dependency>
>>      <groupId>spy</groupId>
>>      <artifactId>spymemcached</artifactId>
>>      <version>2.8.0</version>
>>      <scope>runtime</scope>
>>    </dependency>
>>    <dependency>
>>      <groupId>de.javakaffee.msm</groupId>
>>      <artifactId>memcached-session-manager-tc6</artifactId>
>>      <version>1.6.1</version>
>>      <scope>runtime</scope>
>>    </dependency>
>>    <dependency>
>>      <groupId>de.javakaffee.msm</groupId>
>>      <artifactId>msm-kryo-serializer</artifactId>
>>      <version>1.6.0</version>
>>      <scope>runtime</scope>
>>    </dependency>
>>  </dependencies>
>> </plugin>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Maven and dependencies for $CATALINA/lib

Posted by Olivier Lamy <ol...@apache.org>.
2012/3/4 James Apfel <ja...@gmail.com>:
> Hi,
>
> I'm working on a project that requires me to replace Tomcat's
> SessionManager. I've created a src/main/webapp/META-INF/context.xml
> (it defines the custom Manager) and I've edited my Maven pom file to
> include the requires JARs in the tomcat6-maven-plugin's dependencies
> section (see below) but I'm not sure if that actually refers to
> $CATALINA/lib or if these dependencies are for something else. It's
> failing with a ClassNotFoundException (it can't find the Manager class
> as defined in context.xml).
Arghh :-)
The dependencies for the tomcat start (the plugin create a class
loader with needed embeded tomcat jars) are limited to groupId
org.apache.tomcat
Can you load an issue ? https://issues.apache.org/jira/browse/MTOMCAT
That's an easy fix.

>
> Thanks,
>  James
>
>
>
> <plugin>
>  <groupId>org.apache.tomcat.maven</groupId>
>  <artifactId>tomcat6-maven-plugin</artifactId>
>  <version>2.0-SNAPSHOT</version>
>  <dependencies>
>    <dependency>
>      <groupId>spy</groupId>
>      <artifactId>spymemcached</artifactId>
>      <version>2.8.0</version>
>      <scope>runtime</scope>
>    </dependency>
>    <dependency>
>      <groupId>de.javakaffee.msm</groupId>
>      <artifactId>memcached-session-manager-tc6</artifactId>
>      <version>1.6.1</version>
>      <scope>runtime</scope>
>    </dependency>
>    <dependency>
>      <groupId>de.javakaffee.msm</groupId>
>      <artifactId>msm-kryo-serializer</artifactId>
>      <version>1.6.0</version>
>      <scope>runtime</scope>
>    </dependency>
>  </dependencies>
> </plugin>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org