Re: M2 + jetty-plugin + sitemesh

2006-11-07 Thread Brett Porter

That looks right. The only difference is I have servlet-api 2.4, but
that shouldn't matter. Perhaps one of the other dependencies pulls in
a servlet API with a different ID? I know there have been some
floating around.

Run mvn with the -X flag and look for a servlet dependency that is not yours.

- Brett

On 08/11/06, noon <[EMAIL PROTECTED]> wrote:


Hi Brett,

This is how I set the servlet-dependency in pom.xml-file:


javax.servlet
servlet-api
2.3
provided


Did you mean this or something else? Otherwise my pom.xml dependecies
constist of (scope)
- spring-2.0 (compile)
- hibernate-3.1.2 (compile)
- log4j-1.2.8 (compile)
- javax.servlet-jstl-1.0.6 (runtime)   << for JSTL tag lib
- sitemesh-2.2.1 (runtime)
- junit-3.8 (test)
- servlet-api-3.2 (provided)
- commons-dbcp-1.2.1 (compile)

It's a really simple CRUD-type of web application. Just wanted to test it
with the Jetty servlet container. I'm first timer with the Jetty, so I might
miss somethiing in my project.

Brett Porter wrote:
>
> yes - see Maven Archiva or Continuum.
>
> The problem is likely that you have too many servlet APIs defined. Try
> setting the scope on any of your own to 'provided'.
>
> - Brett
>
> On 07/11/06, noon <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> Has anybody successfully used the M2 jetty6-plugin with projects that
>> uses
>> e.g. sitemesh filters?
>>
>> The error message is:
>> Embedded error: class com.opensymphony.module.sitemesh.filter.PageFilter
>> is
>> not a javax.servlet.Filter
>>
>> And here's an excerpt from my web.xml where I define the sitemesh filter:
>>
>> 
>>sitemesh
>>
>> 
com.opensymphony.module.sitemesh.filter.PageFilter
>> 
>>
>>
>> --
>> View this message in context:
>> 
http://www.nabble.com/M2-%2B-jetty-plugin-%2B-sitemesh-tf2588353s177.html#a7217312
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Apache Maven - http://maven.apache.org
> "Better Builds with Maven" book - http://library.mergere.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/M2-%2B-jetty-plugin-%2B-sitemesh-tf2588353s177.html#a7218020
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 + jetty-plugin + sitemesh

2006-11-07 Thread noon

Hi Brett, 

This is how I set the servlet-dependency in pom.xml-file:


javax.servlet
servlet-api
2.3
provided


Did you mean this or something else? Otherwise my pom.xml dependecies
constist of (scope)
- spring-2.0 (compile)
- hibernate-3.1.2 (compile)
- log4j-1.2.8 (compile)
- javax.servlet-jstl-1.0.6 (runtime)   << for JSTL tag lib
- sitemesh-2.2.1 (runtime)
- junit-3.8 (test)
- servlet-api-3.2 (provided)
- commons-dbcp-1.2.1 (compile)

It's a really simple CRUD-type of web application. Just wanted to test it
with the Jetty servlet container. I'm first timer with the Jetty, so I might
miss somethiing in my project.

Brett Porter wrote:
> 
> yes - see Maven Archiva or Continuum.
> 
> The problem is likely that you have too many servlet APIs defined. Try
> setting the scope on any of your own to 'provided'.
> 
> - Brett
> 
> On 07/11/06, noon <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> Has anybody successfully used the M2 jetty6-plugin with projects that
>> uses
>> e.g. sitemesh filters?
>>
>> The error message is:
>> Embedded error: class com.opensymphony.module.sitemesh.filter.PageFilter
>> is
>> not a javax.servlet.Filter
>>
>> And here's an excerpt from my web.xml where I define the sitemesh filter:
>>
>> 
>>sitemesh
>>
>> com.opensymphony.module.sitemesh.filter.PageFilter
>> 
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/M2-%2B-jetty-plugin-%2B-sitemesh-tf2588353s177.html#a7217312
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Apache Maven - http://maven.apache.org
> "Better Builds with Maven" book - http://library.mergere.com/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/M2-%2B-jetty-plugin-%2B-sitemesh-tf2588353s177.html#a7218020
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 + jetty-plugin + sitemesh

2006-11-07 Thread Brett Porter

yes - see Maven Archiva or Continuum.

The problem is likely that you have too many servlet APIs defined. Try
setting the scope on any of your own to 'provided'.

- Brett

On 07/11/06, noon <[EMAIL PROTECTED]> wrote:


Hi,

Has anybody successfully used the M2 jetty6-plugin with projects that uses
e.g. sitemesh filters?

The error message is:
Embedded error: class com.opensymphony.module.sitemesh.filter.PageFilter is
not a javax.servlet.Filter

And here's an excerpt from my web.xml where I define the sitemesh filter:


   sitemesh

com.opensymphony.module.sitemesh.filter.PageFilter



--
View this message in context: 
http://www.nabble.com/M2-%2B-jetty-plugin-%2B-sitemesh-tf2588353s177.html#a7217312
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]