Error 'Unable to access to url' in CommandLine logs, can't generate Job

Problem Description

You are unable to generate Jobs in TAC, and are seeing one of the following errors in the CommandLine logs:

java.lang.IllegalStateException: Unable to access to url:http://hostname:8080/org.talend.administrator 
at org.talend.commandline.cli.CommandLineHandler.computeCommand(CommandLineHandler.java:360) 
at org.talend.commandline.cli.CommandLineHandler.process(CommandLineHandler.java:257) 
at org.talend.commandline.cli.CommandLineHandler.execute(CommandLineHandler.java:209) 
at org.talend.commandline.cli.CommandLineHandler.execute(CommandLineHandler.java:184)

 

Or:
...
java.lang.IllegalStateException: a repository should be initialized
at org.talend.commandline.command.CommandProcessor.checkInitialized(CommandProcessor.java:276)
at org.talend.commandline.command.CommandProcessor.logonProject(CommandProcessor.java:114

 

Root Cause

If the CommandLine and TAC are not on the same machine, you must set up the conf.applicationStaticLocation value in the TAC configuration.properties file.

 

Solution

  1. Edit the TAC configuration.properties file located under TACinstall\apache-tomcat\webapps\org.talend.administrator\WEB-INF\classes.
  2. Uncomment the following parameter and change the hostname/servername to the IP address of TAC:

    #conf.applicationStaticLocation=http://ip of the tac server:8080/org.talend.administrator
  3. Restart TAC.
  4. Clear the CommandLine workspace folder (cmdline\studio\commandline-workspace), then restart the CommandLine.
Version history
Revision #:
4 of 4
Last update:
‎09-29-2018 12:11 AM
Updated by:
 
Labels (2)