Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Error deploying java application with a war embedded with jetty(Error deploying java application with a war embedded with jetty)
Error deploying java application with a war embedded with jetty [message #671367] Tue, 17 May 2011 16:05 Go to next message
realname  is currently offline realname Friend
Messages: 1
Registered: May 2011
Junior Member
Hi,
I'm having an error deploying java application with a war embedded with jetty

I tryed this example of an embedding war into a jetty:
public class OneWebApp
{
    public static void main(String[] args) throws Exception
    {
        String jetty_home = System.getProperty("jetty.home","..");
 
        Server server = new Server(8080);
 
        WebAppContext webapp = new WebAppContext();
        webapp.setContextPath("/");
        webapp.setWar(jetty_home+"/webapps/test.war");
        server.setHandler(webapp);
 
        server.start();
        server.join();
} 


When I debug on eclipse everything its ok and the webservices is deployed fine in port 8080, but when I make a jar with this program and put into a server (I tried into a tomcat 5.5 and into a jetty 7.4.1) when I start the program, when I started the jetty server appears this exception:

7641 [qtp21021313-35] ERROR configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
7641 [qtp21021313-35] WARN configuration.EngineConfigurationFactoryServlet - Unable to load/create servlet engine config file, attempting internal default (from jar).

Only the default webservices methos are deployed (AdminService and Version)
The wsdd its fine. If I deploy this war into a server it works perfectly
Can ayone help me? thanks a lot
Re: Error deploying java application with a war embedded with jetty [message #671444 is a reply to message #671367] Tue, 17 May 2011 22:57 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Did you follow these directions - http://help.eclipse.org/helios/topic/org.eclipse.platform.do c.isv/guide/ua_help_war.htm ?

The help servlets require the Equinox servlet bridge to work correctly in a war file.
Previous Topic:InfoCenter supported web browser vendors and versions?
Next Topic:How to use org.eclipse.ui.decorators location=REPLACE?
Goto Forum:
  


Current Time: Fri Nov 28 09:01:44 GMT 2014

Powered by FUDForum. Page generated in 0.04709 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software