check for port conflict netstat -a | grep WhateverPortIsUsedToStartJetty in that case quiesce the server
did you install Jetty (make sure org.mortbay.jetty classes are on the CLASSPATH?) ? Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Tue, 20 Jan 2009 10:33:35 +1300 > From: [email protected] > To: [email protected] > Subject: Starting a jetty server > > Hi > As part of my unit tests I use the maven-jetty-plugin to start up a web > server. > > If I run maven from my pc it all works correctly and I get a console like > > [INFO] [jetty:run {execution: start-jetty}] > [INFO] Configuring Jetty for project: ICECream > [INFO] Webapp source directory = C:\Workspace_svn_maven\ICECream > (Trunk)\src\main\webapp > [INFO] Reload Mechanic: automatic > [INFO] web.xml file = C:\Workspace_svn_maven\ICECream > (Trunk)\src\main\webapp\WEB-INF\web.xml > [INFO] Classes = C:\Workspace_svn_maven\ICECream (Trunk)\target\classes > 2009-01-20 10:28:17.138::INFO: Logging to STDERR via > org.mortbay.log.StdErrLog > [INFO] Context path = /ICECream > [INFO] Tmp directory = determined at runtime > [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml > [INFO] Web overrides = none > [INFO] Webapp directory = C:\Workspace_svn_maven\ICECream > (Trunk)\src\main\webapp > [INFO] Starting jetty 6.1H.14.1 ... > 2009-01-20 10:28:17.310::INFO: jetty-6.1H.14.1 > 2009-01-20 10:28:17.591::INFO: No Transaction manager found - if your > webapp requires one, please configure one. > log4j:WARN No appenders could be found for logger > (org.springframework.web.servlet.DispatcherServlet). > log4j:WARN Please initialize the log4j system properly. > 2009-01-20 10:28:18.935:/ICECream:INFO: Loading WebApplicationContext for > Spring FrameworkServlet 'icecream' > 2009-01-20 10:28:19.622::INFO: Started [email protected]:9999 > [INFO] Started Jetty Server > > When I try and use Hudson the jetty web server is not started and nothing is > displayed in the console. I.e there appears to be no attempt at starting the > jetty > > I have no idea what is causing this.... > > > My plugin is configured as follows > > <plugin> > <groupId>org.mortbay.jetty</groupId> > <artifactId>maven-jetty-plugin</artifactId> > <configuration> > <stopPort>9966</stopPort> > <stopKey>stop</stopKey> > </configuration> > <executions> > <execution> > <id>start-jetty</id> > <phase>process-test-classes</phase> > <goals> > <goal>run</goal> > </goals> > <configuration> > <scanIntervalSeconds>0</scanIntervalSeconds> > <daemon>true</daemon> > </configuration> > </execution> > <execution> > <id>stop-jetty</id> > <phase>prepare-package</phase> > <goals> > <goal>stop</goal> > </goals> > </execution> > </executions> > </plugin> _________________________________________________________________ Windows Live⢠Hotmail®: Chat. Store. Share. Do more with mail. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_explore_012009
