Four Stars

org.apache cannot be resolved to a type

Hello,

 

A job that is created and runs in the Open Studio works fine, but after deploying and running by using the TAC I get the following error:

 

At least job "BadDebtors" has a compile errors, please fix and export again.
Error Line: 2210
Detail Message: org.apache cannot be resolved to a type
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.
 at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:201)
 at org.talend.commandline.client.command.extension.AbstractExtensionCommandSwitch.doSwitch(AbstractExtensionCommandSwitch.java:31)
 at org.talend.commandline.command.CommandProcessorSwitch.caseExtensionCommand(CommandProcessorSwitch.java:161)
 at org.talend.commandline.client.util.CommandAbstractSwitch.doSwitch(CommandAbstractSwitch.java:70)
 at org.talend.commandline.command.CommandConsumer.executeCommand(CommandConsumer.java:57)
 at org.talend.commandline.command.CommandConsumer.execute(CommandConsumer.java:35)
 at org.talend.commandline.mode.ServerCommandLine$CommmandConsumerRunnable.run(ServerCommandLine.java:139)
 at java.lang.Thread.run(Thread.java:745)
Caused by: org.talend.designer.runprocess.ProcessorException: org.talend.commons.exception.PersistenceException: org.talend.designer.runprocess.ProcessorException: Job compile errors
At least job "BadDebtors" has a compile errors, please fix and export again.
Error Line: 2210
Detail Message: org.apache cannot be resolved to a type
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.
 at org.talend.commandline.util.JobHandler.export(JobHandler.java:234)
 at org.talend.commandline.command.execute.BuildJobExecuteCommand.execute(BuildJobExecuteCommand.java:143)
 at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:199)
 ... 7 more

 

Is it possible that there are extra JAR files needed in the TAC that are not yet installed for  the TAC, but the Open studio doesn't need these files because it is purely running the job?

2 REPLIES
Six Stars

Re: org.apache cannot be resolved to a type

Hello @EngieNL,

Not sure it will help, try loading the dependency jars in your job using tLibraryLoad. 

- JG
Employee

Re: org.apache cannot be resolved to a type

Is your Nexus configured properly?  Check the User Libraries section in the TAC configuration.

 

The Commandline will need the third party libraries to be able to compile the job (these are the same jars you downloaded in your studio when it first started up).  You have a job compilation error in the commandline.  

If your User Libraries were not configured properly with your Nexus, I will recommend you configure them.  Then create a new workspace in studio and open the project in the new workspace.  This will force the studio to resync the libraries it has downloaded to the Nexus.  Then commandline will be able to download the libraries it need from Nexus through the TAC.

 

 

Are you using job from SVN and using TAC to generate and deploy the job?