karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asookazian2 <asookaz...@gmail.com>
Subject RE: unable to getRealPath for servlet context
Date Thu, 06 Mar 2014 05:49:22 GMT
So I tried the recommended approach in this thread and getting the following
now:

karaf@root()> start 265
karaf@root()> java.lang.NullPointerException
	at
org.eclipse.core.internal.runtime.Activator.getURLConverter(Activator.java:313)
	at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.java:205)
	at
com.foo.bar.config.MyConfigurator.contextInitialized(MyConfigurator.java:54)

The url variable is null in the Eclipse debugger.

NPE is happening in this line: String realPath =
FileLocator.toFileURL(url).getPath(); 

b/c url is null...



--
View this message in context: http://karaf.922171.n3.nabble.com/unable-to-getRealPath-for-servlet-context-tp4032109p4032117.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Mime
View raw message