Four Stars

[resolved] Error: Module xxxxxx.jar is required in User component

Hello,
i have 2 usercomponents, using the same Module cobol2j.jar which is a bugfixed and extended Version of cobol2j.1.5.3
One component we developed on our own, immideadly using the new jar file:
  <IMPORTS>
   <IMPORT NAME="cobol2j" MODULE="cobol2j.jar" REQUIRED="true" />
   <IMPORT NAME="IMSFileAidFormat" MODULE="IMSFileAidFormat.jar" REQUIRED="true" />
   <IMPORT NAME="commons-lang" MODULE="commons-lang-2.4.jar" REQUIRED="true" />
   <IMPORT NAME="commons-logging" MODULE="commons-logging-1.1.1.jar" REQUIRED="true" />
   <IMPORT NAME="guava" MODULE="guava-19.0.jar" REQUIRED="true" />
  </IMPORTS>
This component work perfektly finding the jar, which is in the componentfolder and also automaticly deployed to <talendbase>\lib\java
The second component is derived from tFileInputEBCDIC, which used cobol2j.1.5.3 and some other older jars
So i updated the XML  as follows:
 <CODEGENERATION>
  <IMPORTS>
   <IMPORT NAME="Talend File Enhanced" MODULE="talend_file_enhanced_20070724.jar" REQUIRED="true" />
   <IMPORT NAME="cobol2j" MODULE="cobol2.jar" REQUIRED="true" />
   <IMPORT NAME="cb2xml" MODULE="cb2xml.jar" REQUIRED="true" />
   <IMPORT NAME="JAXB-api" MODULE="jaxb-api-2.2.jar" REQUIRED="true" />
   <IMPORT NAME="JAXB-impl" MODULE="jaxb-impl-2.1.8.jar" REQUIRED="true" />
   <IMPORT NAME="jsr173" MODULE="jsr173_1.0_api.jar" REQUIRED="true" />
   <IMPORT NAME="commons-lang" MODULE="commons-lang-2.6.jar" REQUIRED="true" />
   <IMPORT NAME="commons-logging" MODULE="commons-logging-1.2.jar" REQUIRED="true" />
  </IMPORTS>
 </CODEGENERATION>
This component has also all the necessary jars in the component Folder, but when pulling the component to a Job ist shows cobol2j.jar is missing.
The modul window shows as this:

when switching to code window the error appears and an Import Assistent::

I click Import and choose the libray from the Position in the userrepository.
Then i close the dialog. When i do this the first time, nothing happens.
But every next try shows then:

which are all jars specified in the component xml, but all are in place (component dir and Java/lib folder) !!!
We are using :
Any hint/help appreciated
dj
1 ACCEPTED SOLUTION

Accepted Solutions
Six Stars JR
Six Stars

Re: [resolved] Error: Module xxxxxx.jar is required in User component

Just stating the obvious here. In your XML you have the following line:
<IMPORT NAME="cobol2j" MODULE="cobol2.jar" REQUIRED="true" />
Should this not be 
<IMPORT NAME="cobol2j" MODULE="cobol2j.jar" REQUIRED="true" />
(like in your first XML)?
2 REPLIES
Six Stars JR
Six Stars

Re: [resolved] Error: Module xxxxxx.jar is required in User component

Just stating the obvious here. In your XML you have the following line:
<IMPORT NAME="cobol2j" MODULE="cobol2.jar" REQUIRED="true" />
Should this not be 
<IMPORT NAME="cobol2j" MODULE="cobol2j.jar" REQUIRED="true" />
(like in your first XML)?
Four Stars

Re: [resolved] Error: Module xxxxxx.jar is required in User component

i am so mortified :-/
You are 100% right, thank you very much