Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » http preview server at local host
http preview server at local host [message #1051682] Mon, 29 April 2013 05:28 Go to next message
Sam S is currently offline Sam SFriend
Messages: 3
Registered: April 2013
Junior Member
Hi,

I am trying to start http preview server at local host and getting the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/WebAppContext
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.webapp.WebAppContext
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I am using the following
Version: Juno Service Release 2
Build id: 20130225-0426
on mac os x

Thanks
Re: http preview server at local host [message #1052050 is a reply to message #1051682] Mon, 29 April 2013 14:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3245
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 4/29/2013 8:02 AM, Sam S wrote:
> Hi,
>
> I am trying to start http preview server at local host and getting the
> following error:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/jetty/webapp/WebAppContext
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.jetty.webapp.WebAppContext
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> I am using the following
> Version: Juno Service Release 2
> Build id: 20130225-0426 on mac os x
>
> Thanks

You don't say what sort of project you're working on, but clearly you've
not alerted (usually via Build Path) Eclipse to a Jetty JAR.
Re: http preview server at local host [message #1052068 is a reply to message #1052050] Mon, 29 April 2013 15:14 Go to previous messageGo to next message
Sam S is currently offline Sam SFriend
Messages: 3
Registered: April 2013
Junior Member
I was trying to build a static web page, irrespective of the project also when i add the preview server and start it the same error is thrown.
Re: http preview server at local host [message #1052173 is a reply to message #1052068] Mon, 29 April 2013 18:44 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2333
Registered: July 2009
Senior Member
Quoting http://www.eclipse.org/forums/index.php/mv/msg/458827/1018786/#msg_1018786 :
"This is Bug 402848 [1] that was only recently fixed [2].

Cheers,
Larry

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=402848
[2]
http://git.eclipse.org/c/servertools/webtools.servertools.git/commit/?id=96172e91638fb5b1204a9497609f58f1aa09f5f7 "


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: http preview server at local host [message #1052281 is a reply to message #1052173] Mon, 29 April 2013 22:29 Go to previous message
Sam S is currently offline Sam SFriend
Messages: 3
Registered: April 2013
Junior Member
I did read about the bug, but i am not sure how to apply the patch any help regarding the application of patch will be highly appreciated.
Previous Topic:Help needed
Next Topic:Cannot create extension
Goto Forum:
  


Current Time: Mon Nov 24 04:09:59 GMT 2014

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

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