ESB task creation fails with 'unknown protocol: mvn' error

Talend Version       All versions

Summary

 
Additional Versions  
Product ESB
Component TAC
Problem Description

You are unable to create ESB Task from TAC, and an Operation failed: 500 The call failed on the server error is displayed:

esbTask_fail.jpg

The TAC log shows the following error:

 

ERROR TalendRemoteServiceServlet - Unexpected exception : Service method 'public abstract org.talend.gwtadministrator.client.module.conductor.esbconductor.model.Feature
Bean org.talend.gwtadministrator.client.module.conductor.esbconductor.service.EsbConductorService.getFeature(java.lang.String,java.lang.String,java.lang.String,java.lang.String) throws org. talend.gwttoolkit.client.exception.ClientBusinessException' threw an unexpected exception: org.talend.gwttoolkit.client.exception.ClientSystemException: unknown protocol: mvn : mvn:http://admin:****@localhost:8081/nexus/content/repositories/releases!org.example/test-feature/0.1.0/xml
org.talend.gwttoolkit.client.exception.ClientSystemException: unknown protocol: mvn: mvn:http://admin:****@localhost:8081/nexus/content/repositories/releases!org.example/test-feature/0.1.0/xml
  at org.talend.gwttoolkit.server.TalendRemoteServiceServlet.processException(TalendRemoteServiceServlet.java:86)
  at org.talend.gwtadministrator.server.esbconductor.services.EsbConductorServiceImpl.getFeature(EsbConductorServiceImpl.java:99)
  ..
Problem root cause The talend-url-mvn-1.0.0.jar file is missing.
Solution or Workaround

Ensure that talend-url-mvn-1.0.0.jar is located under the TAC Tomcat endorsed folder, for example, under TAC-HOME/apache-tomcat/endorsed. Then restart TAC.

 

If talend-url-mvn-1.0.0.jar is in the correct folder but you are still getting the error, create an environment variable JAVA_ENDORSED_DIRS and point it to the endorsed folder as shown below:

export JAVA_ENDORSED_DIRS=$CATALINA_BASE/endorsed

or

export JAVA_ENDORSED_DIRS=pathtotomcatendorsedfolder

 

Note: If you are running Tomcat as a service, add the Java property -Djava.endorsed.dirs to the setenv.sh/bat file, or properly set it in TAC, and ensure it is pointing to the folder where talend-url-mvn-1.0.0.jar is located.

For example:

-Djava.endorsed.dirs=TAC-HOME/apache-tomcat/endorsed
JIRA ticket number  
Version history
Revision #:
8 of 8
Last update:
‎07-05-2019 03:48 AM
Updated by:
 
Comments
Seven Stars

Hi 

I am facing same issue.

Even though I am able to deploy\undeploy service sucesfully but its always says mvn unknown protocol on tomcat tac logs and Operation failed: 500 The call failed on...

Looks like its not able to fetch runtime config context.

 

I tried with adding above options but its not working I am using talend 6.2.1

 

sample fetaure xml

<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="ReceiverService-feature">
<feature name="ReceiverService-feature" version="0.1">
<bundle>mvnSmiley Surprisedrg.example/ReceiverService/0.1</bundle>
<config name="ReceiverService.talendcontext.Default">
IR_LOAD_NUM_PARALLEL_JOBS= TRUSTSTORE_PASSWORD= Loader_ID= IR_SCHEMA=public
</config>
</feature>
</features>

 

Thanks

Ashish

Community Manager

Hi Ashish  

Don't forget to restart Tomcat after you put talend-url-mvn-1.0.0.jar to TAC Tomcat endorsed folder. If you still have issues, please tell us which operation system where Tomcat is installed are you using? and what you have done?

 

Regards

Shong

Seven Stars

Thanks shong !

 

Tomcat has been installed as windows service.I have tried with restarting multiple times.

 

Please find below image

 

Also I tried with adding the same in catalina.bat set JAVA_ENDORSED_DIRS=-Djava.endorsed.dirs="%CATALINA_HOME%\endorsed".

mvn_issues.png

 

Log error messags

2019-04-24 18:20:23 ERROR TalendRemoteServiceServlet - Unexpected exception : Service method 'public abstract org.talend.gwtadministrator.client.module.conductor.esbconductor.model.FeatureBean org.talend.gwtadministrator.client.module.conductor.esbconductor.service.EsbConductorService.getFeature(java.lang.String,java.lang.String,java.lang.String,java.lang.String) throws org.talend.gwttoolkit.client.exception.ClientBusinessException' threw an unexpected exception: org.talend.gwttoolkit.client.exception.ClientSystemException: unknown protocol: mvn : mvn:http://********/nexus/content/repositories/AC_QA!org.test/*********-feature/0.1/xml
org.talend.gwttoolkit.client.exception.ClientSystemException: unknown protocol: mvn : mvn:http://********/nexus/content/repositories/AC_QA!org.test/*********-feature/0.1/xml

Thanks

Ashish

Moderator

Hello @ashish_s 

Here exists a related jira issue on talend bug tracker:https://jira.talendforge.org/browse/TESB-20988

It is fixed in V 7.0.1

Could you please clarify in which Tomcat you are?

Best regards

Sabrina