[
http://jira.codehaus.org/browse/MTOMCAT-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olivier Lamy closed MTOMCAT-40.
-------------------------------
Resolution: Won't Fix
Assignee: Olivier Lamy
please have a look at the documentation :
http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html
> Changing the default port
> --------------------------
>
> Key: MTOMCAT-40
> URL: http://jira.codehaus.org/browse/MTOMCAT-40
> Project: Maven 2.x Tomcat Plugin
> Issue Type: Bug
> Affects Versions: 1.0-beta-1
> Environment: Windows XP, RAD7,
> Reporter: Sanjay Kumar Patil
> Assignee: Olivier Lamy
> Priority: Blocker
>
> Hi,
> Does anyone know how to change the default port 8080 within Tomcat Maven
> plugin. I have been trying to run
> mvn war:inplace tomcat:inplace command with the below conf in my pom
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>tomcat-maven-plugin</artifactId>
> <configuration>
> <warSourceDirectory>
> ${basedir}/WebContent
> </warSourceDirectory>
> <path>/jlp_jjs_JJS2Test</path>
> </configuration>
> </plugin>
> but i always get connection refused error. I even tried turning off my
> firewall but no joy.
> Ideally i would want to run my app on port 9080...is this possible to
> configure with tomcat maven
> plugin pom section ?
> Cheers,
> Sanjay Patil
> Log contents
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'war'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building jlp_jjs_JJS2Test_Web
> [INFO] task-segment: [war:inplace, tomcat:inplace]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [war:inplace]
> [INFO] Generating webapp in source directory...
> C:\Work\IDE\workspace\tso006\jlp_jjs_JJS2Test_Tomcat~SP\jlp_jjs_JJS2Test_Web\WebContent
> [INFO] Exploding webapp...
> [INFO] Assembling webapp jlp_jjs_JJS2Test_Web in
> C:\Work\IDE\workspace\tso006\jlp_jjs_JJS2Test_Tomcat~SP\jlp_jjs_JJS2Test_Web\WebContent
> [INFO] [tomcat:inplace]
> [INFO] Deploying war to http://localhost:8080/jlp_jjs_JJS2Test
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Cannot invoke Tomcat manager
> Embedded error: Connection refused: connect
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke Tomcat
> manager
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> 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: Cannot invoke
> Tomcat manager
> at
> org.codehaus.mojo.tomcat.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:149)
> at
> org.codehaus.mojo.tomcat.AbstractWarCatalinaMojo.execute(AbstractWarCatalinaMojo.java:63)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> ... 16 more
> Caused by: java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
> at java.net.Socket.connect(Socket.java:536)
> at java.net.Socket.connect(Socket.java:486)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:397)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:507)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:245)
> at sun.net.www.http.HttpClient.New(HttpClient.java:319)
> at sun.net.www.http.HttpClient.New(HttpClient.java:331)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:821)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:773)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:698)
> at org.codehaus.mojo.tomcat.TomcatManager.invoke(TomcatManager.java:597)
> at
> org.codehaus.mojo.tomcat.TomcatManager.deployImpl(TomcatManager.java:662)
> at org.codehaus.mojo.tomcat.TomcatManager.deploy(TomcatManager.java:245)
> at
> org.codehaus.mojo.tomcat.AbstractDeployMojo.deployWar(AbstractDeployMojo.java:175)
> at
> org.codehaus.mojo.tomcat.AbstractDeployMojo.invokeManager(AbstractDeployMojo.java:85)
> at
> org.codehaus.mojo.tomcat.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:141)
> ... 19 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6 seconds
> [INFO] Finished at: Fri Nov 20 11:36:57 GMT 2009
> [INFO] Final Memory: 6M/30M
> [INFO]
> ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email