3 Replies Latest reply on Aug 21, 2013 11:22 PM by Mason Tran

    Trouble setting up Camel project that use remoteRepositories for JBoss Fuse

    Mason Tran Newbie

      Hello everyone,

       

      I am having some troubles deploy a Maven Camel Spring project to JBoss Fuse Server.

       

      Here are some details of my environment.

           - setup as Fabric Server

           - create a new container name "camel_container", then create a new profile name "my_camel_profile" under "karaf>camel>jboss-fuse-minimal>jboss-fuse-medium".

           - assign this "my_camel_profile" to "camel_container".

           - I am using FUSE IDE for development / deployment.

       

      I know that the local respository for JBoss Fuse is located at this location "jboss-fuse-6.0.0.redhat-024\data\maven\proxy\downloads"

       

      I also know that we can add remoteRepositories by running this command in your Fuse Command window

      config:propappend --pid org.fusesource.fabric.maven remoteRepositories ", http://hostname/svn/path/to/repository"

       

      Question where do setup the user id / password for remote repository?  Do you put that in the "settings.xml" file? if so do you put that file into .m2 folder (outside of JBoss Fuse) or do you put into "jboss-fuse-6.0.0.redhat-024\data\maven\proxy\downloads"?

       

       

      Error in fuse.log file

       

      09:38:18,346 | INFO  | qtp516227519-131 | MavenProxyServletSupport         | 101 - org.fusesource.fabric.fabric-maven-proxy - 7.2.0.redhat-024 | Received upload request for maven metadata : com/project/snc/uc2/com.project.snc.uc2.camel.test/maven-metadata.xml.sha1

      09:38:18,351 | INFO  | qtp516227519-133 | MavenProxyServletSupport         | 101 - org.fusesource.fabric.fabric-maven-proxy - 7.2.0.redhat-024 | Received upload request for maven metadata : com/project/snc/uc2/com.project.snc.uc2.camel.test/0.0.1-SNAPSHOT/maven-metadata.xml.md5

      09:38:18,356 | WARN  | qtp516227519-129 | Response                         | 90 - org.eclipse.jetty.util - 7.6.7.v20120910 | Committed before 405 HTTP method PUT is not supported by this URL

      09:38:18,368 | WARN  | qtp516227519-129 | ServletHandler                   | 90 - org.eclipse.jetty.util - 7.6.7.v20120910 | /maven/upload/com/project/snc/uc2/com.project.snc.uc2.camel.test/maven-metadata.xml.md5

      java.lang.IllegalStateException: Committed

           at org.eclipse.jetty.server.Response.resetBuffer(Response.java:1126)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.server.Response.sendError(Response.java:313)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at javax.servlet.http.HttpServlet.doPut(HttpServlet.java:410)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]

           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]

           at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:193)[100:org.ops4j.pax.web.pax-web-runtime:1.1.11]

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]

           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]

           at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[98:org.ops4j.pax.web.pax-web-jetty:1.1.11]

           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:534)[82:org.eclipse.jetty.security:7.6.7.v20120910]

           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[98:org.ops4j.pax.web.pax-web-jetty:1.1.11]

           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]

           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:83)[98:org.ops4j.pax.web.pax-web-jetty:1.1.11]

           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.server.Server.handle(Server.java:363)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)[79:org.eclipse.jetty.http:7.6.7.v20120910]

           at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[79:org.eclipse.jetty.http:7.6.7.v20120910]

           at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[84:org.eclipse.jetty.server:7.6.7.v20120910]

           at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)[81:org.eclipse.jetty.io:7.6.7.v20120910]

           at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)[81:org.eclipse.jetty.io:7.6.7.v20120910]

           at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[90:org.eclipse.jetty.util:7.6.7.v20120910]

           at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[90:org.eclipse.jetty.util:7.6.7.v20120910]

           at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]

       

       

       

       

      java.lang.Exception: Can not resolve feature:

      Unsatisfied requirement(s):

      ---------------------------

         package:(&(package=javax.annotation)(version>=1.3.9)(!(version>=2.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.filecache)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.mapreduce.lib.output)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.fs)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.io.compress.zlib)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.io.compress)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.conf)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.net)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.util.bloom)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.mapreduce.lib.input)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.io.serializer)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.util.hash)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.mapreduce)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.hibernate.cache)(version>=3.2.6.ga)(!(version>=4.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.io)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

         package:(&(package=org.apache.hadoop.util)(version>=0.20.2)(!(version>=1.0.0)))

            com.project.snc.uc2.camel.test

       

       

                at org.fusesource.fabric.agent.ObrResolver.resolve(ObrResolver.java:215)[238:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]

                at org.fusesource.fabric.agent.DeploymentAgent.updateDeployment(DeploymentAgent.java:566)[238:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]

                at org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:432)[238:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]

                at org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:242)[238:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_25]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_25]

                at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_25]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_25]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_25]

                at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]