java.lang.RuntimeException: Failed to save resource '{repo1:javax/j2ee/j2ee/1.4/j2ee-1.4.pom}'.

JFrog JIRA | Thibaut Fagart | 9 years ago
  1. 0

    When executing the following command line mvn deploy:deploy-file -Durl=http://localhost:8081/artifactory/extFree -DrepositoryId=extFree -DgroupId=javax.j2ee -Dpackaging=jar -Dfile="j2ee.jar" -DartifactId=j2ee -Dversion=1.4 i get the following maven output [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] J2EE global configuration [INFO] HJF-Core [INFO] HJE-Castor [INFO] HJE-batch [INFO] HJE-Struts [INFO] HJE-JSTL [INFO] HJF-MPCore [INFO] HJF-MPEJB [INFO] HJF-MPCobol [INFO] HJF-MPJ2J [INFO] HJF-MPTXT [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] ---------------------------------------------------------------------------- [INFO] Building J2EE global configuration [INFO] task-segment: [deploy:deploy-file] (aggregator-style) [INFO] ---------------------------------------------------------------------------- [INFO] [deploy:deploy-file] Uploading: http://localhost:8081/artifactory/extFree/javax/j2ee/j2ee/1.4/j2ee-1.4.jar 454K uploaded [INFO] Retrieving previous metadata from extFree [INFO] Uploading repository metadata for: 'artifact javax.j2ee:j2ee' [INFO] Retrieving previous metadata from extFree [WARNING] project information for j2ee 1.4 could not be retrieved from repository: extFree due to an error: Error transferring file [INFO] Repository 'extFree' will be blacklisted [INFO] Uploading project information for j2ee 1.4 (there is a pom in the current folder thus the sub modules notification). THe item of note is [WARNING] project information for j2ee 1.4 could not be retrieved from repository: extFree due to an error: Error transferring file In Artifactory log i can see 2007-08-21 15:39:54.017::WARN: /artifactory/repo/javax/j2ee/j2ee/1.4/j2ee-1.4.pom java.lang.RuntimeException: Failed to save resource '{repo1:javax/j2ee/j2ee/1.4/j2ee-1.4.pom}'. at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:407) at org.artifactory.repo.RemoteRepoBase.getResourceStreamHandle(RemoteRepoBase.java:268) at org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:438) at org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:192) at org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:101) at org.artifactory.webapp.servlet.RepoFilter.handleDownloadRequest(RepoFilter.java:116) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:72) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:81) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.RuntimeException: Failed to execute JcrCallback. at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:190) at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:360) ... 27 more Caused by: javax.jcr.RepositoryException: Failed to import resource '{repo1:javax/j2ee/j2ee/1.4/j2ee-1.4.pom}': The target deployment path 'javax/j2ee/j2ee/1.4/j2ee-1.4.pom' does not match the POM's e xpected path prefix 'javax/j2ee/1.4' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually.: The target deployment path 'j avax/j2ee/j2ee/1.4/j2ee-1.4.pom' does not match the POM's expected path prefix 'javax/j2ee/1.4' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:383) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:362) at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:186) ... 28 more Caused by: javax.jcr.RepositoryException: The target deployment path 'javax/j2ee/j2ee/1.4/j2ee-1.4.pom' does not match the POM's expected path prefix 'javax/j2ee/1.4' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.maven.MavenUtils.validatePomTargetPath(MavenUtils.java:145) at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:362) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:374) ... 30 more THis seems related to http://www.jfrog.org/jira/browse/RTFACT-152 Reexecuting the same command seems to work (no warning in maven output nor exception in artifactory log) Using 1.2.2 (seem to not be released yet ? i downloaded it from the http://www.jfrog.org/sites/artifactory/1.2/index.html site)

    JFrog JIRA | 9 years ago | Thibaut Fagart
    java.lang.RuntimeException: Failed to save resource '{repo1:javax/j2ee/j2ee/1.4/j2ee-1.4.pom}'.
  2. 0

    When executing the following command line mvn deploy:deploy-file -Durl=http://localhost:8081/artifactory/extFree -DrepositoryId=extFree -DgroupId=javax.j2ee -Dpackaging=jar -Dfile="j2ee.jar" -DartifactId=j2ee -Dversion=1.4 i get the following maven output [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] J2EE global configuration [INFO] HJF-Core [INFO] HJE-Castor [INFO] HJE-batch [INFO] HJE-Struts [INFO] HJE-JSTL [INFO] HJF-MPCore [INFO] HJF-MPEJB [INFO] HJF-MPCobol [INFO] HJF-MPJ2J [INFO] HJF-MPTXT [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] ---------------------------------------------------------------------------- [INFO] Building J2EE global configuration [INFO] task-segment: [deploy:deploy-file] (aggregator-style) [INFO] ---------------------------------------------------------------------------- [INFO] [deploy:deploy-file] Uploading: http://localhost:8081/artifactory/extFree/javax/j2ee/j2ee/1.4/j2ee-1.4.jar 454K uploaded [INFO] Retrieving previous metadata from extFree [INFO] Uploading repository metadata for: 'artifact javax.j2ee:j2ee' [INFO] Retrieving previous metadata from extFree [WARNING] project information for j2ee 1.4 could not be retrieved from repository: extFree due to an error: Error transferring file [INFO] Repository 'extFree' will be blacklisted [INFO] Uploading project information for j2ee 1.4 (there is a pom in the current folder thus the sub modules notification). THe item of note is [WARNING] project information for j2ee 1.4 could not be retrieved from repository: extFree due to an error: Error transferring file In Artifactory log i can see 2007-08-21 15:39:54.017::WARN: /artifactory/repo/javax/j2ee/j2ee/1.4/j2ee-1.4.pom java.lang.RuntimeException: Failed to save resource '{repo1:javax/j2ee/j2ee/1.4/j2ee-1.4.pom}'. at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:407) at org.artifactory.repo.RemoteRepoBase.getResourceStreamHandle(RemoteRepoBase.java:268) at org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:438) at org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:192) at org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:101) at org.artifactory.webapp.servlet.RepoFilter.handleDownloadRequest(RepoFilter.java:116) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:72) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:81) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.RuntimeException: Failed to execute JcrCallback. at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:190) at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:360) ... 27 more Caused by: javax.jcr.RepositoryException: Failed to import resource '{repo1:javax/j2ee/j2ee/1.4/j2ee-1.4.pom}': The target deployment path 'javax/j2ee/j2ee/1.4/j2ee-1.4.pom' does not match the POM's e xpected path prefix 'javax/j2ee/1.4' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually.: The target deployment path 'j avax/j2ee/j2ee/1.4/j2ee-1.4.pom' does not match the POM's expected path prefix 'javax/j2ee/1.4' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:383) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:362) at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:186) ... 28 more Caused by: javax.jcr.RepositoryException: The target deployment path 'javax/j2ee/j2ee/1.4/j2ee-1.4.pom' does not match the POM's expected path prefix 'javax/j2ee/1.4' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.maven.MavenUtils.validatePomTargetPath(MavenUtils.java:145) at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:362) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:374) ... 30 more THis seems related to http://www.jfrog.org/jira/browse/RTFACT-152 Reexecuting the same command seems to work (no warning in maven output nor exception in artifactory log) Using 1.2.2 (seem to not be released yet ? i downloaded it from the http://www.jfrog.org/sites/artifactory/1.2/index.html site)

    JFrog JIRA | 9 years ago | Thibaut Fagart
    java.lang.RuntimeException: Failed to save resource '{repo1:javax/j2ee/j2ee/1.4/j2ee-1.4.pom}'.
  3. 0

    In a project we use Logback. We reference {{logback-classic}} and {{logback-core}} in the {{pom.xml}}. Locking into the Logback {{pom.xml}} files I discovered they inherit from {{logback-parent}}. The version is specified as {{<version>$\{parent.version\}</version>}}. This seems to be a problem for Artifactory. The log is full of exceptions like below. The poms of {{logback-classic}} and {{logback-core}} are never downloaded, {{logback-parent}} is not retrieved at all. Please note that without Artifactory, everything is downloaded correctly. 2007-10-30 10:44:54.251::WARN: /artifactory/repo/ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom java.lang.RuntimeException: Failed to save resource '{repo1:ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom}'. at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:407) at org.artifactory.repo.RemoteRepoBase.getResourceStreamHandle(RemoteRepoBase.java:268) at org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:438) at org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:192) at org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:101) at org.artifactory.webapp.servlet.RepoFilter.handleDownloadRequest(RepoFilter.java:116) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:72) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:81) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.RuntimeException: Failed to execute JcrCallback. at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:190) at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:360) ... 27 more Caused by: javax.jcr.RepositoryException: Failed to import resource '{repo1:ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom}': The target deployment path 'ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom' does not match the POM's expected path prefix 'ch/qos/logback/logback-classic/${parent.version}' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually.: The target deployment path 'ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom' does not match the POM's expected path prefix 'ch/qos/logback/logback-classic/${parent.version}' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:383) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:362) at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:186) ... 28 more Caused by: javax.jcr.RepositoryException: The target deployment path 'ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom' does not match the POM's expected path prefix 'ch/qos/logback/logback-classic/${parent.version}' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.maven.MavenUtils.validatePomTargetPath(MavenUtils.java:145) at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:362) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:374) ... 30 more

    JFrog JIRA | 9 years ago | Reinhard Naegele
    java.lang.RuntimeException: Failed to save resource '{repo1:ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom}'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In a project we use Logback. We reference {{logback-classic}} and {{logback-core}} in the {{pom.xml}}. Locking into the Logback {{pom.xml}} files I discovered they inherit from {{logback-parent}}. The version is specified as {{<version>$\{parent.version\}</version>}}. This seems to be a problem for Artifactory. The log is full of exceptions like below. The poms of {{logback-classic}} and {{logback-core}} are never downloaded, {{logback-parent}} is not retrieved at all. Please note that without Artifactory, everything is downloaded correctly. 2007-10-30 10:44:54.251::WARN: /artifactory/repo/ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom java.lang.RuntimeException: Failed to save resource '{repo1:ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom}'. at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:407) at org.artifactory.repo.RemoteRepoBase.getResourceStreamHandle(RemoteRepoBase.java:268) at org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:438) at org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:192) at org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:101) at org.artifactory.webapp.servlet.RepoFilter.handleDownloadRequest(RepoFilter.java:116) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:72) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:81) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.RuntimeException: Failed to execute JcrCallback. at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:190) at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:360) ... 27 more Caused by: javax.jcr.RepositoryException: Failed to import resource '{repo1:ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom}': The target deployment path 'ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom' does not match the POM's expected path prefix 'ch/qos/logback/logback-classic/${parent.version}' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually.: The target deployment path 'ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom' does not match the POM's expected path prefix 'ch/qos/logback/logback-classic/${parent.version}' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:383) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:362) at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:186) ... 28 more Caused by: javax.jcr.RepositoryException: The target deployment path 'ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom' does not match the POM's expected path prefix 'ch/qos/logback/logback-classic/${parent.version}' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.maven.MavenUtils.validatePomTargetPath(MavenUtils.java:145) at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:362) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:374) ... 30 more

    JFrog JIRA | 9 years ago | Reinhard Naegele
    java.lang.RuntimeException: Failed to save resource '{repo1:ch/qos/logback/logback-classic/0.9.8/logback-classic-0.9.8.pom}'.
  6. 0

    We have a multi-module build. The master POM, which also defines the modules, has the version defined as a property: {code:xml} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.foo.bar</groupId> <artifactId>foo-master</artifactId> <version>${pomVersion}</version> <description>Foo</description> <packaging>pom</packaging> ... <modules> <module>foo-child</module> </modules> ... <properties> <pomVersion>1.0</pomVersion> </properties> </project> {code} The module POMs look like this: {code:xml} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.foo.bar</groupId> <artifactId>foo-master</artifactId> <version>${pomVersion}</version> </parent> <artifactId>foo-child</artifactId> ... </project> {code} It is not possible to deploy these artifacts to Artifactory. {noformat} 2007-12-03 11:34:48,261 [ERROR] webapp.servlet.RepoFilter - Upload request failed java.lang.RuntimeException: Failed to save resource '{foo-repo:com/foo/bar/foo-master/1.0/foo-master-1.0.pom}'. at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:407) at org.artifactory.engine.UploadEngine.process(UploadEngine.java:158) at org.artifactory.webapp.servlet.RepoFilter.handleUploadRequest(RepoFilter.java:104) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:75) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:75) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.RuntimeException: Failed to execute JcrCallback. at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:190) at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:360) ... 25 more Caused by: javax.jcr.RepositoryException: Failed to import resource '{foo-repo:com/foo/bar/foo-master/1.0/foo-master-1.0.pom}': The target deployment path 'com/foo/bar/foo-master/1.0/foo-master-1.0.pom' does not match the POM's expected path prefix 'com/foo/bar/foo-master/${pomVersion}' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually.: The target deployment path 'com/foo/bar/foo-master/1.0/foo-master-1.0.pom' does not match the POM's expected path prefix 'com/foo/bar/foo-master/${pomVersion}' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:383) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:362) at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:186) ... 26 more Caused by: javax.jcr.RepositoryException: The target deployment path 'com/foo/bar/foo-master/1.0/foo-master-1.0.pom' does not match the POM's expected path prefix 'com/foo/bar/foo-master/${pomVersion}' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually. at org.artifactory.maven.MavenUtils.validatePomTargetPath(MavenUtils.java:145) at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:362) at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:374) ... 28 more {noformat}

    JFrog JIRA | 9 years ago | Reinhard Naegele
    java.lang.RuntimeException: Failed to save resource '{foo-repo:com/foo/bar/foo-master/1.0/foo-master-1.0.pom}'.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.jcr.RepositoryException

      The target deployment path 'javax/j2ee/j2ee/1.4/j2ee-1.4.pom' does not match the POM's expected path prefix 'javax/j2ee/1.4' (make sure your import path is a m2 repository root). Some files might have been incorrectly imported - Please remove them manually.

      at org.artifactory.maven.MavenUtils.validatePomTargetPath()
    2. org.artifactory.maven
      MavenUtils.validatePomTargetPath
      1. org.artifactory.maven.MavenUtils.validatePomTargetPath(MavenUtils.java:145)
      1 frame
    3. org.artifactory.jcr
      JcrHelper.importStream
      1. org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:362)
      1 frame
    4. org.artifactory.repo
      JcrRepo$9.doInJcr
      1. org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:374)
      2. org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:362)
      2 frames
    5. org.artifactory.jcr
      JcrHelper.doInSession
      1. org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:186)
      1 frame
    6. org.artifactory.repo
      RemoteRepoBase.getResourceStreamHandle
      1. org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:360)
      2. org.artifactory.repo.RemoteRepoBase.getResourceStreamHandle(RemoteRepoBase.java:268)
      2 frames
    7. org.artifactory.engine
      DownloadEngine.process
      1. org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:438)
      2. org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:192)
      3. org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:101)
      3 frames
    8. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.RepoFilter.handleDownloadRequest(RepoFilter.java:116)
      2. org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:72)
      3. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89)
      3 frames
    9. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      1 frame
    10. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:81)
      2. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89)
      2 frames
    11. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      10. org.mortbay.jetty.Server.handle(Server.java:313)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
      16 frames
    12. Jetty Util
      BoundedThreadPool$PoolThread.run
      1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
      1 frame