Connection issue to Talend Administration Center during Talend CommandLine's task generation
When generating a Job with the Talend CommandLine, the HTTP connection to Talend Administration Center might fail and you might encounter the following error: 'Unexpected error, contact your administrator'
This article applies to all versions of Talend products.
When generating a Job with the Talend CommandLine, the HTTP connection to Talend Administration Center might fail and you might encounter the following error: 'Unexpected error, contact your administrator'
This is a specific error that sometimes happens if:
- the Talend CommandLine application and the Talend Administration Center server are based on different machines
- the first connection to Talend Administration Center was made on a web browser with "localhost" in the URL instead of a specific hostname or IP address.
This issue can be solved by specifying the static URL of the web application in the configuration file. To do so:
- Make sure the Tomcat server is stopped and open the following file to edit it:
<TomcatPath>/webapps/org.talend.administrator/WEB-INF/classes/configuration.properties
- Uncomment the MISC PARAMETERS part and replace the value of the
conf.applicationStaticLocation parameter with the URL to your Web application,
as shown below:
############################################################### # MISC PARAMETERS ############################################################### # Specify and url for static location or comment the line for dynamic compute: conf.applicationStaticLocation= http://serverName:8080/org.talend.administrator
- Save your changes and re-start your Tomcat server.
From now on, the static URL you defined will be called every time during the task generation process.