Details
Description
Maven/Java newbie here.
I'm developing a Spring/MVC/Maven Web app in Eclipse. The use case is for the app to call Talend jobs on an adhoc basis with parameters. The user enters time frame information (years, months) on a form page. Everything worked (form, validation, model, configuration, error checking, etc) until I added the required Talend jars. Some background - I successfully created a simple Web app in Eclipse that has the same use case. For this app, I needed to place the Talend jars into the WEB-INF\lib folder. For various reasons, I need to build a Web app that uses Spring/MVC/Maven technologies.
I loaded all the required Talend jars into the WEB-INF\lib folder (exactly like I did with the previous Web app). I ran ran a successful Maven clean install. But running the embedded Tomcat (version 7.2.2) produced this error:
[ERROR] COMPILATION ERROR :
[ERROR]C:\Documents\TalendAdHoc\src\main\java\com\validator\UserValidator.java:[13] error: package talenddev1.job_gl_master_ad_hoc_0_3 does not exist
[ERROR] C:\Documents\TalendAdHoc\src\main\java\com\validator\UserValidator.java:[141,7] error: cannot find symbol.
I then followed the steps from this site: https://cleanprogrammer.net/adding-3rd-party-jar-to-maven-projects/ to add the third party jars to Maven projects (installed the jar into the local repository, added repository and dependency into the pom.xml, etc)
Running the embedded Tomcat produced this error:
[ERROR] COMPILATION ERROR :
[ERROR] C:\Documents\TalendAdHoc\src\main\java\com\validator\UserValidator.java:[155,16] error: cannot access TalendJob
TalendJob is located in the UserValidator.java:
job_GL_Master_Ad_Hoc TalendJob=new job_GL_Master_Ad_Hoc();
String[] context=new String[] {params...}
TalendJob.runJob(context);
I realize this maybe a Talend issue so I've been also working with the Talend community.
Please provide some help on this issue and let me know if you need more information.
Thanks