Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340811 - [sites] Hosting bundle blows up at launch if jetty http port argument not provided
Summary: [sites] Hosting bundle blows up at launch if jetty http port argument not pro...
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Mark Macdonald CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-23 16:55 EDT by Mark Macdonald CLA
Modified: 2011-09-01 11:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.