[
https://issues.apache.org/jira/browse/MNG-6854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MNG-6854.
-------------------------------
Resolution: Invalid
This is not a support forum. Go to the users list or stackoverflow.
> Maven/Spring/MVC Web app - error cannot TalendJob (third party Talend jar)
> --------------------------------------------------------------------------
>
> Key: MNG-6854
> URL: https://issues.apache.org/jira/browse/MNG-6854
> Project: Maven
> Issue Type: Bug
> Components: Errors, IDEs
> Affects Versions: 3.1.0
> Environment: Eclipse, JavaSE1.8, jre1.8.0_201, Maven, Tomcat (version
> 7.2.2 embedded), Talend 6.4, Windows 10
> Reporter: ray passage
> Priority: Major
> Labels: newbie
> Original Estimate: 336h
> Remaining Estimate: 336h
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)