Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6854

Maven/Spring/MVC Web app - error cannot TalendJob (third party Talend jar)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 3.1.0
    • Fix Version/s: None
    • Component/s: Errors, IDEs
    • Labels:
    • Environment:
      Eclipse, JavaSE1.8, jre1.8.0_201, Maven, Tomcat (version 7.2.2 embedded), Talend 6.4, Windows 10

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elkhounds ray passage

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 336h
                336h
                Remaining:
                Remaining Estimate - 336h
                336h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Issue deployment