Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340811

Summary: [sites] Hosting bundle blows up at launch if jetty http port argument not provided
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2011-03-23 16:55:08 EDT
1. Remove the -Dorg.eclipse.equinox.http.jetty.http.port=8080 from your -vmarags and launch the Orion server
2. When you connect to localhost, you'll get a 500 Error with a huge stack trace. The cause is:

Caused by: java.lang.NumberFormatException: null
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at org.eclipse.orion.internal.server.hosting.HostingActivator.registerHostingService(HostingActivator.java:38)
	at org.eclipse.orion.internal.server.hosting.HostingActivator.start(HostingActivator.java:33)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

If the port isn't supplied, it should not explode here. At worst the site hosting service should be unavailable.