]
Nick Scavelli commented on GTNMGMT-14:
--------------------------------------
Pretty sure the way to specify the config file is the -c or --config option. Try -c
instead of -f.
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: