Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] I need to apply the working configuration for Tomcat into Jetty as part of Eclipse Indigo

The /META-INF/context.xml that you see in Tomcat is a Tomcat only file/feature.

As for Jetty 7+, you can have bundled xml files within the webapp that performs similar functions/features.
See docs about /WEB-INF/jetty-web.xml (for managing WebAppContext)

Syntax is defined at
Example of WebAppContext configuration for managing the context path:

And for managing the JDNI resources, there's a /WEB-INF/jetty-env.xml

The older Jetty 6 documentation for these same features can be found at  ( /WEB-INF/jetty-web.xml Documentation )         ( General Jetty XML Syntax Documentation )   ( /WEB-INF/jetty-env.xml Documentation )

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Developer advice, services and support
from the Jetty & CometD experts

On Mon, Nov 12, 2012 at 7:58 PM, Rob Silver <rss245@xxxxxxxxx> wrote:
It seems I am running jetty-6.1.x. which is built-in to Eclipse Indigo.  Where can I find more information on adapting configuration files e.g context.xml file from a war folder which works in Tomcat 7.0.29
Is there any further documentation on this?

On Fri, Nov 9, 2012 at 11:21 PM, Rob Silver <rss245@xxxxxxxxx> wrote:
I have Eclipse Indigo  IDE.  Everything is working.
What I need to do is take my IDE setup and understand what steps
to take to use a working context.xml file currently working in Tomcat 7.029.   It contains a Microsoft Database connector.
I have heard about the Jetty plugin used for development
In fact the GWT webapp I develop runs in that environment but I
now have to un-comment/comment and compile  code back and
forth - Not so nice. What want to do is use what I believe is called:
"jetty context deployer"

since the database connector working now in
the same tomcat webapps/myProject/WEB-INF folder that
my webapp's web.xml file resides runs fine in Tomcat.
I want to make that file or an equivalent for Jetty work.
I hope this mailing list can be of help in this regard. Let me know what else I can provide. There is not a log of intelligible documentation on this.
e.g  Here is a Tomcat war file , here is the equivalent for configuration
for I believe Eclipse Indigo uses an embeded plugin for Jetty and not an actual server as I see no such server in my process/ task manager when I run. e.g no jetty  process appears  so I think that is correct.

Please advise how this can be accomplished ?? Any detailed documentation can only be helpful so long as it is relevant!!!!

Thank you in advance....

Additional background I have had errors that include:
 at org.mortbay.jetty.servlet.ServletHandler.handle(
In the past
The exact version of Eclipse I run is :
Eclipse Java EE IDE for Web Developers.

Version: Indigo Service Release 2
Build id: 20120216-1857

Also if someone can tell me what the difference is between Java EE Hellios and Indigo versions please help me understand the differences especially if it turns out  I can not use the

jetty-users mailing list

Back to the top