|
From: zalym <moh...@gm...> - 2007-05-07 05:05:43
|
appreciate some help here. How do we setup artifactory for a corporate env on a common ip? zalym wrote: > > I setup jetty to use an IP other than 127.0.0.1, I am able to access the > repository using the new ip, but am unable to deploy. > > my jetty.xml > <?xml version="1.0"?> > <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" > "http://jetty.mortbay.org/configure.dtd"> > > <!-- =============================================================== --> > <!-- Configure the Jetty Server --> > <!-- =============================================================== --> > <Configure id="Server" class="org.mortbay.jetty.Server"> > > <!-- =========================================================== --> > <!-- Server Thread Pool --> > <!-- =========================================================== --> > <Set name="ThreadPool"> > <New class="org.mortbay.thread.BoundedThreadPool"> > <Set name="minThreads">10</Set> > <Set name="lowThreads">50</Set> > <Set name="maxThreads">250</Set> > </New> > </Set> > > <!-- =========================================================== --> > <!-- Set connectors --> > <!-- =========================================================== --> > <!-- One of each type! --> > <!-- =========================================================== --> > > <!-- Use this connector for many frequently idle connections > and for threadless continuations. > --> > <Call name="addConnector"> > <Arg> > <New class="org.mortbay.jetty.nio.SelectChannelConnector"> > <Set name="port"><SystemProperty name="jetty.port" > default="2906"/></Set> > <Set name="host">192.168.15.102</Set> > <Set name="maxIdleTime">30000</Set> > <Set name="Acceptors">1</Set> > <Set name="lowResourceMaxIdleTime">3000</Set> > </New> > </Arg> > </Call> > > <!-- AJP13 Connector configuration --> > <Call name="addConnector"> > <Arg> > <New class="org.mortbay.jetty.ajp.Ajp13SocketConnector"> > <Set name="port">8011</Set> > <Set name="host">192.168.15.102</Set> > </New> > </Arg> > </Call> > > <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > --> > <!-- To add a HTTPS SSL listener > --> > <!-- see jetty-ssl.xml to add an ssl connector. use > --> > <!-- java -jar start.jar etc/jetty.xml etc/jetty-ssl.xml > --> > <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > --> > > > <!-- ======================================================= --> > <!-- Configure artifactory --> > <!-- ======================================================= --> > <New id="artifactory" class="org.mortbay.jetty.webapp.WebAppContext"> > <Call name="setContextPath"> > <Arg>/artifactory</Arg> > </Call> > <Call name="setWar"> > <Arg><SystemProperty name="artifactory.home" > default="."/>/webapps/artifactory.war</Arg> > </Call> > <Get name="SessionHandler"> > <Set name="SessionManager"> > <New class="org.mortbay.jetty.servlet.HashSessionManager"> > <Set name="maxInactiveInterval">1600</Set> > </New> > </Set> > </Get> > <Set name="VirtualHosts"> > <Array type="java.lang.String"> > <Item>192.168.15.102</Item> > <Item>127.0.0.1</Item> > </Array> > </Set> > </New> > > <!-- =========================================================== --> > <!-- Set handler Collection Structure --> > <!-- =========================================================== --> > <Set name="handler"> > <New id="handlers" > class="org.mortbay.jetty.handler.HandlerCollection"> > <Set name="handlers"> > <Array type="org.mortbay.jetty.Handler"> > <Item> > <New id="contexts" > class="org.mortbay.jetty.handler.ContextHandlerCollection"> > <Call name="addHandler"> > <Arg><Ref id="artifactory"/></Arg> > </Call> > </New> > </Item> > <Item> > <New id="defaultHandler" > class="org.mortbay.jetty.handler.DefaultHandler"/> > </Item> > <Item> > <New id="requestLog" > class="org.mortbay.jetty.handler.RequestLogHandler"/> > </Item> > </Array> > </Set> > </New> > </Set> > > <!-- =========================================================== --> > <!-- Configure Request Log --> > <!-- =========================================================== --> > <Ref id="requestLog"> > <Set name="requestLog"> > <New id="requestLogImpl" > class="org.mortbay.jetty.NCSARequestLog"> > <Arg><SystemProperty name="artifactory.home" > default="."/>/logs/yyyy_mm_dd.request.log</Arg> > <Set name="retainDays">90</Set> > <Set name="append">true</Set> > <Set name="extended">false</Set> > <Set name="LogTimeZone">GMT</Set> > </New> > </Set> > </Ref> > > <!-- =========================================================== --> > <!-- extra options --> > <!-- =========================================================== --> > <Set name="stopAtShutdown">true</Set> > <!-- ensure/prevent Server: header being sent to browsers --> > <Set name="sendServerVersion">true</Set> > > </Configure> > > > Effective settings: > > <?xml version="1.0"?><settings> > <localRepository>C:\Documents and > Settings\Administrator\.m2\repository</localRepository> > <proxies> > <proxy> > <active>true</active> > <host>213.42.1.19</host> > </proxy> > </proxies> > <servers> > <server> > <username>saleem</username> > <password>saleem</password> > <id>libs-releases</id> > </server> > <server> > <username>saleem</username> > <password>saleem</password> > <id>libs-snapshots</id> > </server> > <server> > <username>saleem</username> > <password>saleem</password> > <id>3rdp-releases</id> > </server> > </servers> > <mirrors> > <mirror> > <mirrorOf>*</mirrorOf> > <name>Intranel Maven Proxy</name> > <url>http://192.168.15.102:2906/artifactory/repo</url> > <id>Intranet mirror</id> > </mirror> > </mirrors> > <profiles> > <profile> > <properties> > > <artifactory-repository>192.168.15.102:2906</artifactory-repository> > </properties> > <id>zafin</id> > </profile> > <profile> > <properties> > <container>localhost:2906</container> > </properties> > <id>development</id> > </profile> > </profiles> > <activeProfiles> > <activeProfile>zafin</activeProfile> > </activeProfiles> > </settings> > > ERROR > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying > artifact: Failed to transfer file: > http://192.168.15.102:2906/artifactory/libs > -releases/com/zafinlabs/projects/zafin-project/1.0/zafin-project-1.0.pom. > Return code is: 503 > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying > artifact: Failed to transfer file: > http://192.168.15.102:2906/artifactory/l > ibs-releases/com/zafinlabs/projects/zafin-project/1.0/zafin-project-1.0.pom. > Return code is: 503 > at > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:174) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) > ... 16 more > Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: > Error deploying artifact: Failed to transfer file: > http://192.168.15.102:29 > 06/artifactory/libs-releases/com/zafinlabs/projects/zafin-project/1.0/zafin-project-1.0.pom. > Return code is: 503 > at > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94) > at > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:152) > ... 18 more > Caused by: org.apache.maven.wagon.TransferFailedException: Failed to > transfer file: > http://192.168.15.102:2906/artifactory/libs-releases/com/zafinlabs > /projects/zafin-project/1.0/zafin-project-1.0.pom. Return code is: 503 > at > org.apache.maven.wagon.providers.http.LightweightHttpWagon.put(LightweightHttpWagon.java:172) > at > org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:222) > at > org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:151) > at > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80) > ... 19 more > > > Appreciate your help. > -- View this message in context: http://www.nabble.com/deploy-error-when-setting-jetty-to-something-other-than-127.0.0.1-tf3700062.html#a10352207 Sent from the Artifactory-Users mailing list archive at Nabble.com. |