Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » jetty upgrade problem(classNotFound - java.net.url)
jetty upgrade problem [message #1771211] Wed, 23 August 2017 04:58 Go to next message
hsen paws is currently offline hsen pawsFriend
Messages: 1
Registered: August 2017
Junior Member
I am trying to upgrade from jetty6 to jetty9 and getting below error on app start.

Can you please advise, why Jetty is not able to read rt.jar? It is in classpath.
Also how i can enable more logging .

I am using JAVA8, Jetty 9.4.5

 INFO log - Logging initialized @2562ms to org.eclipse.jetty.util.log.Slf4jLog
 INFO ContextRepositorySelector - Registering org.apache.log4j.Hierarchy@7586beff for context startJarLoader@4e7dc304
 INFO Server - jetty-9.4.5.v20170502
 INFO AbstractNCSARequestLog - Opened C:\myhome\jetty\jetty-bb\instance-bulsim\logs\request.log.2017_08_23
 INFO ScanningAppProvider - Deployment monitor [file:///C:/myhome/jetty/jetty-bb/instance-bulsim/contexts/] at interval 1
 INFO IndividualTimeoutUserCache - IndividualTimeoutUserCache initalised with timeout [10] minutes
 INFO indoniSybDriver - Registered com.bmh.gunsulting.indoni.sybase.indoniSybDriver[com.sybase.jdbc4.jdbc.SybDriver@25df00a0]
 INFO DatabaseLoginRealm - New realm <Bulk Payment Service> @ jdbc:indoni-sybase:Tds:bd_syb_BSDEV1.macbank:20003
 INFO ContextRepositorySelector - Created org.apache.log4j.Hierarchy@5a37d3ed from file:/C:/myhome/jetty/jetty-bb/instance-bulsim/resources/log4j.prop
erties for context WebAppClassLoader=1188401255@46d59067
 INFO AnnotationConfiguration - Scanning elapsed time=2484ms
 WARN WebAppContext - Failed startup of context o.e.j.w.WebAppContext@5db6b9cd{/trillion-ballarat,file:///C:/myhome/jetty/jetty-bb/instance-bulsim/work
/jetty-trillion-1.0.0-SNAPSHOT.war-_trillion-ballarat-any-/webapp/,UNAVAILABLE}{/trillion-1.0.0-SNAPSHOT.war}
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:491)
        at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:83)
        at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:70)
        at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:408)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1461)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785)
        at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)
        at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
        at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:502)
        at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:150)
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
        at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:453)
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
        at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
        at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:150)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:564)
        at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:239)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
        at org.eclipse.jetty.server.Server.start(Server.java:452)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
        at org.eclipse.jetty.server.Server.doStart(Server.java:419)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1511)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1438)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1437)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:491)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:221)
        at org.eclipse.jetty.start.Main.start(Main.java:499)
        at org.eclipse.jetty.start.Main.main(Main.java:78)
Caused by: java.lang.ClassNotFoundException: java.net.url
        at java.net.URLClassLoader$1.run(URLClassLoader.java:365)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:353)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at org.eclipse.jetty.server.handler.ContextHandler.loadClass(ContextHandler.java:1735)
        at org.eclipse.jetty.plus.webapp.PlusDescriptorProcessor.visitResourceRef(PlusDescriptorProcessor.java:252)
        ... 46 more
 INFO Server - Started @7722ms

Re: jetty upgrade problem [message #1771324 is a reply to message #1771211] Thu, 24 August 2017 05:58 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6365
Registered: July 2009
Senior Member
Please ask at the jetty forum
Previous Topic:Does anyone test e(fx)clipse applications?
Next Topic:@ContextValue problem
Goto Forum:
  


Current Time: Fri Dec 15 14:18:50 GMT 2017

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

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