Hi Jan
I have jetty-env.xml and jetty-web.xml  under WEB-INF in the war file.  The
purpose of these  two files are to integrate with WELD and  set up
datasource. I follow the document in weld to integrate WELD with jetty
instead of using weld module.

The jetty-env.xml is here:
https://github.com/jasonzhang2022/flexims/blob/master/tomcat_web/src/main/demo/WEB-INF/jetty-env.xml
The jetty-web.xml is here:
https://github.com/jasonzhang2022/flexims/blob/master/tomcat_web/src/main/webapp/WEB-INF/jetty-web.xml

The produced war is here: http://data.flexdms.com/demo1.war

The log file is too big to paste here: I uploaded it here:
http://data.flexdms.com/jetty.log

Thanks


On Sat, Apr 25, 2015 at 11:52 PM, Jan Bartel <[email protected]> wrote:

> And also post the log output with
> -Dorg.eclipse.jetty.webapp.LEVEL=DEBUG
> -Dorg.eclipse.jetty.annotations.LEVEL=DEBUG enabled as well please.
>
> Jan
>
> On 26 April 2015 at 16:38, Jan Bartel <[email protected]> wrote:
> > Jason,
> >
> > Please post how you are deploying and configuring your webapp in jetty
> > - include any context xml files or other jetty xml config files you
> > have altered.
> >
> > Jan
> >
> > On 26 April 2015 at 15:13, jason zhang <[email protected]> wrote:
> >> I have a web application(http://data.flexdms.com/demo.war) which is
> fine
> >> under tomcat. I am trying to enable it under jetty.
> >> I downloaded the latest jetty(jetty-distribution-9.2.10.v20150310)
> >>
> >>
> >> Jetty complains that
> >>
> >>  Multiple servlets map to path: /rs/*:
> >>
> com.flexdms.flexims.jpa.rs.RSApplication,com.flexdms.flexims.jpa.rs.RSApplication
> >>
> >> You can see that all the classes mapped to /rs/* are the same class. I
> >> actually have this mapping in a web-fragment.xml. I use quickstart
> feature
> >> to debug why this is. It turns out jetty finds everything several times.
> >>
> >>
> >> I attached the generated quickstart-web.xml. You can see everything
> >> including jar file, servlet mapping, listener, filter mapping is
> repeated
> >> several times in the quickstart-web.xml. This may be the problem.
> >>
> >> Any suggestion?
> >>
> >> --
> >> -jiesheng
> >>
> >> _______________________________________________
> >> jetty-users mailing list
> >> [email protected]
> >> To change your delivery options, retrieve your password, or unsubscribe
> from
> >> this list, visit
> >> https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> >
> >
> > --
> > Jan Bartel <[email protected]>
> > www.webtide.com
> > 'Expert Jetty/CometD developer,production,operations advice'
>
>
>
> --
> Jan Bartel <[email protected]>
> www.webtide.com
> 'Expert Jetty/CometD developer,production,operations advice'
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>



-- 
-jiesheng
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to