[gatein-issues] [JBoss JIRA] Closed: (GTNMGMT-14) Command line tool fails if EPP is started with -b <IP> and arg.hostname is used
Nick Scavelli (JIRA)
jira-events at lists.jboss.org
Mon Sep 19 14:46:26 EDT 2011
[ https://issues.jboss.org/browse/GTNMGMT-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Scavelli closed GTNMGMT-14.
--------------------------------
Resolution: Done
The property in the properties file should be arg.host not arg.hostname.
> Command line tool fails if EPP is started with -b <IP> and arg.hostname is used
> -------------------------------------------------------------------------------
>
> Key: GTNMGMT-14
> URL: https://issues.jboss.org/browse/GTNMGMT-14
> Project: GateIn Management
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: cli
> Affects Versions: 1.0.0-Alpha02
> Reporter: Martin Weiler
> Assignee: Nick Scavelli
>
> Bind EPP at specific IP, eg: ./bin/run.sh -c test -b 10.32.160.109
> Running CLI with -f import.properties fails with:
> {noformat}
> Exception in thread "main" java.lang.RuntimeException: Could not obtain rest context for portal container 'portal'
> at org.gatein.management.portalobjects.client.impl.RestfulPortalObjectsMgmtClient.getRestContext(RestfulPortalObjectsMgmtClient.java:166)
> at org.gatein.management.portalobjects.client.impl.RestfulPortalObjectsMgmtClient.<init>(RestfulPortalObjectsMgmtClient.java:120)
> at org.gatein.management.portalobjects.client.api.PortalObjectsMgmtClient$Factory.create(PortalObjectsMgmtClient.java:97)
> at org.gatein.management.portalobjects.cli.exporter.Exporter.doExport(Exporter.java:145)
> at org.gatein.management.portalobjects.cli.exporter.ExportMain.main(ExportMain.java:154)
> at org.gatein.management.portalobjects.cli.Main.main(Main.java:54)
> Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
> {noformat}
> import.properties contains the following entry:
> arg.hostname=<SAME_IP_AS_ABOVE>
> Problem: The uri variable in getRestContext is set to: http://localhost:8080/gatein-management
> Starting the import with -h <SAME_IP_AS_ABOVE> (instead of using the file) works.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list