Hi Suneel,
I just tried to build this example directory:

$ mvn package
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Mahout Examples 0.9-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
mahout-examples ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.017s
[INFO] Finished at: Wed Dec 04 20:09:08 CET 2013
[INFO] Final Memory: 30M/487M
[INFO] ------------------------------------------------------------------------

So this worked but no war was created:

$ find . -name "*.war"
$

So currently I would say the web.xml is an orphan from taste-web which was 
removed in an earlier version so the web.xml should be deleted as well.

People looking for a modern web service for recommendations should look into:
https://github.com/ManuelB/facebook-recommender-demo
or
https://github.com/plista/kornakapi
or
https://github.com/cloudera/oryx

Hope that helps
    Manuel

On 04.12.2013, at 19:57, Suneel Marthi wrote:

> Manuel,
> 
> I wasn't referring to ur sample application (which is good). 
> 
> I was referring to 'examples/src/webapp/web.xml' in Mahout trunk which still 
> refers to an old DTD and the Mahout pom files which r still at servlet 2.5 
> spec.
> 
> It would be nice if there was a patch to fix that.
> 
> 
> 
> 
> 
> 
> On Wednesday, December 4, 2013 1:40 PM, Manuel Blechschmidt 
> <[email protected]> wrote:
> 
> Hi Suneel,
> what file are you referring to?
> 
> taste-web?
> 
> Actually I already wrote a sample application that uses Java EE 6 API (EJB, 
> JAX-RS, JAX-WS):
> https://github.com/ManuelB/facebook-recommender-demo
> 
> /Manuel
> 
> On 04.12.2013, at 18:04, Suneel Marthi wrote:
> 
>> Thinking loud here.
>> 
>> Mahout's still using servlet 2.5 and jsp 2.1 api (from what's in the pom 
>> today), may be its time to upgrade to be JEE 6 compliant - viz. support 
>> servlet 3.x and jsp 2.2. 
>> 
>> Looking at the web.xml, it still refers to web app 2.3 DTD; which could be 
>> the reason for the CDI deployment failure on Glassfish 4.
>> 
>> {Code}
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
>> 2.3//EN"
>>          "http://java.sun.com/dtd/web-app_2_3.dtd";>
>> 
>> {Code}
>> 
>> 
>> It would be a welcome contribution if somebody volunteers to fix this and 
>> bring Mahout to JEE 6 standards.
>> 
>> 
>> 
>> 
>> 
>> 
>> On Wednesday, December 4, 2013 11:33 AM, Mario Levitin 
>> <[email protected]> wrote:
>> 
>> Hi Manuel, thank you for both of your answers.
>> I have checked your dacebook-recommender-demo, it uses GlassFish 3, my
>> problem occurs with GlassFish 4.
>> 
>> 
>> 
>> 
>> On Tue, Dec 3, 2013 at 9:23 PM, Manuel Blechschmidt <
>> [email protected]> wrote:
>> 
>>> The following project might help:
>>> 
>>> https://github.com/ManuelB/facebook-recommender-demo
>>> 
>>> If you need more support I would recommend to contact one of
>> the
>>> supporting companies like MapF, Cloudera or Apaxo (my own company).
>>> 
>>> /Manuel
>>> 
>>> On 02.12.2013, at 22:49, Mario Levitin wrote:
>>> 
>>>> Hi,
>>>> I'm trying to build a web service for Mahout.
>>>> If I use GlassFish 3.x there is no problem. However, when I change to
>>>> GlassFish 4, during deployment the following error occurs: (by the way,
>>>> GlassFish 4 works fine for my other web service implementations, my
>>>> suspicion is that there is some inconsistency between GlassFish 4 and the
>>>> dependencies needed for Mahout)
>>>> 
>>>> SEVERE:   Exception during lifecycle processing
>>>> 
>> org.glassfish.deployment.common.DeploymentException: CDI deployment
>>>> failure:WELD-001408 Unsatisfied dependencies for type [Set<Service>] with
>>>> qualifiers [@Default] at injection point [[BackedAnnotatedParameter]
>>>> Parameter 1 of [BackedAnnotatedConstructor] @Inject
>>>> com.google.common.util.concurrent.ServiceManager(Set<Service>)]
>>>> Any help will be greatly appreciated.
>>> 
>>> --
>>> Manuel Blechschmidt
>>> M.Sc. IT Systems Engineering
>>> Dortustr. 57
>>> 14467 Potsdam
>>> Mobil: 0173/6322621
>>> Twitter: http://twitter.com/Manuel_B
> 
>>> 
> 
> -- 
> Manuel Blechschmidt
> M.Sc. IT Systems Engineering
> Dortustr. 57
> 14467 Potsdam
> Mobil: 0173/6322621
> Twitter: http://twitter.com/Manuel_B

-- 
Manuel Blechschmidt
M.Sc. IT Systems Engineering
Dortustr. 57
14467 Potsdam
Mobil: 0173/6322621
Twitter: http://twitter.com/Manuel_B

Reply via email to