Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Problem in: Jetty/Tutorial/Jetty-OSGi SDK(context.getServer() seems to be returning null)
Problem in: Jetty/Tutorial/Jetty-OSGi SDK [message #663067] Sun, 03 April 2011 05:53
No real name is currently offline No real nameFriend
Messages: 1
Registered: April 2011
Junior Member
I am a noob trying to learn about using OSGi and Jetty (and eclipse IDE). So I was running through this tutorial at http://wiki.eclipse.org/Jetty/Tutorial/Jetty-OSGi_SDK and I got down to the part titled "Create a first web-bundle ". When I try running the configuration it says:
...
22:02:30.739 [Framework Event Dispatcher] DEBUG org.eclipse.jetty.util.log - loaded class org.eclipse.jetty.webapp.WebAppContext from org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@aa37a6
22:02:30.739 [Framework Event Dispatcher] WARN org.eclipse.jetty.util.log - Failed startup of context WebAppContext@92dcdb>@92dcdb /app1,null,D:\dev\workspace\org.eclipse.jetty.example.webapp /war1
java.lang.NullPointerException: null
at org.eclipse.jetty.webapp.WebInfConfiguration.getCanonicalNam eForWebAppTmpDir(WebInfConfiguration.java:561) ~[org.eclipse.jetty.webapp_7.1.3.v20100526.jar:7.1.3.v201005 26]
at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDire ctory(WebInfConfiguration.java:266) ~[org.eclipse.jetty.webapp_7.1.3.v20100526.jar:7.1.3.v201005 26]
at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(We bInfConfiguration.java:43) ~[org.eclipse.jetty.webapp_7.1.3.v20100526.jar:7.1.3.v201005 26]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext .java:379) ~[org.eclipse.jetty.webapp_7.1.3.v20100526.jar:7.1.3.v201005 26]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Abs tractLifeCycle.java:55) [org.eclipse.jetty.util_7.1.3.v20100526.jar:7.1.3.v20100526]
...

When I look at the source code for line 561 of org.eclipse.jetty.webapp.WebInfConfiguration, it says:
Connector[] connectors = context.getServer().getConnectors();

I followed the tutorial instructions precisely. I am about to do it all again on another machine to verify. But I would appreciate any help in resolving what is going wrong.

I was wondering once I get it working in eclipse IDE, is there any way to just push an button and have it output a standalone app? Be nice if the tutorial showed how to do that.

Thanks for listening. I can post more debug output if needed. Doesn't seem to be any errors or warning mentioned above that, and there are quite a few lines of output.
Previous Topic:Access restriction exception when using JAXB under Java 1.5
Next Topic:Debugging an update site
Goto Forum:
  


Current Time: Wed Apr 24 23:02:14 GMT 2024

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

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

Back to the top