Gretty is really helpful to my development, thanks for making this. Now I get an issue, when I type gradle appRun without any network connection (network cable unplugged & wifi turned off), it will fail to start. This scenario is common in China: we don't always have network.
Could you please help check it? Thanks.
Exception stacktrace:
$ gradle appRun
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:prepareInplaceWebAppClasses UP-TO-DATE
:prepareInplaceWebAppFolder UP-TO-DATE
:prepareInplaceWebApp UP-TO-DATE
:appRun
Enabling hot deployment with interval of 1 second(s)
Exception in thread "Thread-3" org.gradle.api.artifacts.ResolveException: Could
not resolve all dependencies for configuration ':grettyRunnerJetty9'.
at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfigurat
ion.rethrowFailure(DefaultLenientConfiguration.java:52)
at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfigura
tion.rethrowFailure(DefaultResolvedConfiguration.java:36)
at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR
esolver$FilesAggregatingResolvedConfiguration.rethrowFailure(SelfResolvingDepend
encyResolver.java:110)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep
endencyResolver$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingA
rtifactDependencyResolver.java:180)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:444)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getFiles(DefaultConfiguration.java:205)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getFiles(Unknown Source)
at org.gradle.api.internal.file.CompositeFileCollection.getFiles(Composi
teFileCollection.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.MethodMetaProperty$GetBeanMetho
dMetaProperty.getProperty(MethodMetaProperty.java:73)
at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.get
Property(GetEffectivePojoPropertySite.java:61)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty
(AbstractCallSite.java:227)
at org.akhikhl.gretty.DefaultLauncher.getRunnerClassPath(DefaultLauncher
.groovy:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(C
losureMetaClass.java:368)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(Po
goMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
tractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
tractCallSite.java:137)
at org.akhikhl.gretty.DefaultLauncher$_javaExec_closure2.doCall(DefaultL
auncher.groovy:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(C
losureMetaClass.java:278)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
at groovy.lang.Closure.call(Closure.java:423)
at groovy.lang.Closure.call(Closure.java:439)
at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedActi
on.java:63)
at org.gradle.api.internal.file.DefaultFileOperations.javaexec(DefaultFi
leOperations.java:144)
at org.gradle.api.internal.project.AbstractProject.javaexec(AbstractProj
ect.java:784)
at org.gradle.api.internal.project.AbstractProject.javaexec(AbstractProj
ect.java:780)
at org.gradle.api.Project$javaexec$10.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
at org.akhikhl.gretty.DefaultLauncher.javaExec(DefaultLauncher.groovy:48
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(C
losureMetaClass.java:368)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(Po
goMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
tractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
tractCallSite.java:141)
at org.akhikhl.gretty.LauncherBase$_launchThread_closure6.doCall(Launche
rBase.groovy:216)
at org.akhikhl.gretty.LauncherBase$_launchThread_closure6.doCall(Launche
rBase.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(C
losureMetaClass.java:278)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
at groovy.lang.Closure.call(Closure.java:423)
at groovy.lang.Closure.call(Closure.java:417)
at groovy.lang.Closure.run(Closure.java:504)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not
resolve org.glassfish:javax.el:[3.0.0,).
Required by:
:rainbow:unspecified > org.akhikhl.gretty:gretty-runner-jetty9:1.1.8 > org.e
clipse.jetty:jetty-jsp:9.2.3.v20140905 > org.glassfish.web:javax.servlet.jsp:2.3
.2
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DynamicVersio
nResolver.resolve(DynamicVersionResolver.java:74)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryCha
inAdapter.resolve(RepositoryChainAdapter.java:52)
at org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectDep
endencyResolver.resolve(ProjectDependencyResolver.java:48)
at org.gradle.api.internal.artifacts.ivyservice.VersionForcingDependency
ToModuleResolver.resolve(VersionForcingDependencyToModuleResolver.java:50)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe
ndencyGraphBuilder$ModuleVersionSelectorResolveState.resolveModuleRevisionId(Dep
endencyGraphBuilder.java:860)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe
ndencyGraphBuilder$DependencyEdge.resolveModuleRevisionId(DependencyGraphBuilder
.java:232)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe
ndencyGraphBuilder.traverseGraph(DependencyGraphBuilder.java:119)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe
ndencyGraphBuilder.resolveDependencyGraph(DependencyGraphBuilder.java:94)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.Depe
ndencyGraphBuilder.resolve(DependencyGraphBuilder.java:84)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep
endencyResolver$1.execute(DefaultDependencyResolver.java:122)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep
endencyResolver$1.execute(DefaultDependencyResolver.java:88)
at org.gradle.internal.Transformers$4.transform(Transformers.java:136)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager
.withIvy(DefaultIvyContextManager.java:61)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager
.withIvy(DefaultIvyContextManager.java:39)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep
endencyResolver.resolve(DefaultDependencyResolver.java:88)
at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver$1.run(CacheLockingArtifactDependencyResolver.java:42)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:187)
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:175)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De
faultPersistentDirectoryStore.java:106)
at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.
useCache(DefaultCacheFactory.java:187)
at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.useCache(DefaultCacheLockingManager.java:64)
at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:40)
at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR
esolver.resolve(SelfResolvingDependencyResolver.java:45)
at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigs
ArtifactDependencyResolver.resolve(ShortcircuitEmptyConfigsArtifactDependencyRes
olver.java:55)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep
endencyResolver.resolve(ErrorHandlingArtifactDependencyResolver.java:47)
at org.gradle.api.internal.artifacts.ivyservice.DefaultConfigurationReso
lver.resolve(DefaultConfigurationResolver.java:46)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.resolveNow(DefaultConfiguration.java:250)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getResolvedConfiguration(DefaultConfiguration.java:240)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getResolvedConfiguration(Unknown Source)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:442)
... 71 more
Caused by: org.gradle.internal.resource.ResourceException: Failed to list versio
ns for org.glassfish:javax.el.
at org.gradle.api.internal.artifacts.repositories.resolver.ChainedVersio
nLister$1.visit(ChainedVersionLister.java:55)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResou
rceResolver.listVersionsForAllPatterns(ExternalResourceResolver.java:132)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResou
rceResolver.doListModuleVersions(ExternalResourceResolver.java:121)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResou
rceResolver.access$100(ExternalResourceResolver.java:54)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResou
rceResolver$RemoteRepositoryAccess.listModuleVersions(ExternalResourceResolver.j
ava:387)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockRele
asingModuleComponentsRepository$LockReleasingRepositoryAccess$1.run(CacheLockRel
easingModuleComponentsRepository.java:57)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def
aultCacheAccess.java:237)
at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def
aultCacheAccess.java:308)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunning
Operation(DefaultPersistentDirectoryStore.java:114)
at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.
longRunningOperation(DefaultCacheFactory.java:179)
at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.longRunningOperation(DefaultCacheLockingManager.java:56)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockRele
asingModuleComponentsRepository$LockReleasingRepositoryAccess.listModuleVersions
(CacheLockReleasingModuleComponentsRepository.java:55)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule
ComponentRepository$ResolveAndCacheRepositoryAccess.listModuleVersions(CachingMo
duleComponentRepository.java:268)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.BaseModuleCom
ponentRepositoryAccess.listModuleVersions(BaseModuleComponentRepositoryAccess.ja
va:34)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMe
moryCachedModuleComponentRepository$CachedAccess.listModuleVersions(InMemoryCach
edModuleComponentRepository.java:63)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DynamicVersio
nResolver$RepositoryResolveState.process(DynamicVersionResolver.java:169)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DynamicVersio
nResolver$RepositoryResolveState.resolve(DynamicVersionResolver.java:161)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DynamicVersio
nResolver.findLatestModule(DynamicVersionResolver.java:106)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DynamicVersio
nResolver.findLatestModule(DynamicVersionResolver.java:90)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DynamicVersio
nResolver.resolve(DynamicVersionResolver.java:63)
... 101 more
Caused by: org.gradle.internal.resource.ResourceException: Unable to load Maven
meta-data from https://jcenter.bintray.com/org/glassfish/javax.el/maven-metadata
.xml.
at org.gradle.api.internal.artifacts.repositories.resolver.MavenMetadata
Loader.load(MavenMetadataLoader.java:51)
at org.gradle.api.internal.artifacts.repositories.resolver.MavenVersionL
ister$1.visit(MavenVersionLister.java:47)
at org.gradle.api.internal.artifacts.repositories.resolver.ChainedVersio
nLister$1.visit(ChainedVersionLister.java:47)
... 121 more
Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Cou
ld not GET 'https://jcenter.bintray.com/org/glassfish/javax.el/maven-metadata.xm
l'.
at org.gradle.internal.resource.transport.http.HttpClientHelper.performR
equest(HttpClientHelper.java:80)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performR
awGet(HttpClientHelper.java:66)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performG
et(HttpClientHelper.java:70)
at org.gradle.internal.resource.transport.http.HttpResourceAccessor.getR
esource(HttpResourceAccessor.java:53)
at org.gradle.internal.resource.transport.http.HttpResourceAccessor.getR
esource(HttpResourceAccessor.java:36)
at org.gradle.internal.resource.transport.DefaultExternalResourceReposit
ory.getResource(DefaultExternalResourceRepository.java:52)
at org.gradle.api.internal.artifacts.repositories.resolver.MavenMetadata
Loader.parseMavenMetadataInfo(MavenMetadataLoader.java:57)
at org.gradle.api.internal.artifacts.repositories.resolver.MavenMetadata
Loader.load(MavenMetadataLoader.java:47)
... 123 more
Caused by: java.net.UnknownHostException: jcenter.bintray.com
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:907)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:130
2)
at java.net.InetAddress.getAllByName0(InetAddress.java:1255)
at java.net.InetAddress.getAllByName(InetAddress.java:1171)
at java.net.InetAddress.getAllByName(InetAddress.java:1105)
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefa
ultDnsResolver.java:45)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHost
name(DefaultClientConnectionOperator.java:278)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnect
ion(DefaultClientConnectionOperator.java:162)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedCli
entConnectionImpl.java:294)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(Default
RequestDirector.java:640)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultReq
uestDirector.java:479)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl
ient.java:906)
at org.apache.http.impl.client.DecompressingHttpClient.execute(Decompres
singHttpClient.java:137)
at org.apache.http.impl.client.DecompressingHttpClient.execute(Decompres
singHttpClient.java:118)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performH
ttpRequest(HttpClientHelper.java:111)
at org.gradle.internal.resource.transport.http.HttpClientHelper.executeG
etOrHead(HttpClientHelper.java:87)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performR
equest(HttpClientHelper.java:78)
... 130 more
Hi, akhikhl,
Gretty is really helpful to my development, thanks for making this. Now I get an issue, when I type
gradle appRun
without any network connection (network cable unplugged & wifi turned off), it will fail to start. This scenario is common in China: we don't always have network.Could you please help check it? Thanks.
Exception stacktrace: