Skip to main content
Solved

Java imports failing


christopherlecky
Byte
Forum|alt.badge.img+16

The following imports:

import commvault.cte.workflow.activities.HttpClient;
import commvault.cte.workflow.types.WebRequest;
import commvault.cte.workflow.types.NameValue;
import commvault.cte.workflow.types.WebMethod;

Produces the following:

Script1.groovy: 8: unable to resolve class commvault.cte.workflow.types.WebRequest
 @ line 8, column 1.
   import commvault.cte.workflow.types.WebRequest;
   ^

Script1.groovy: 9: unable to resolve class commvault.cte.workflow.types.NameValue
 @ line 9, column 1.
   import commvault.cte.workflow.types.NameValue;
   ^

Script1.groovy: 10: unable to resolve class commvault.cte.workflow.types.WebMethod
 @ line 10, column 1.
   import commvault.cte.workflow.types.WebMethod;
   ^

 

Best answer by christopherlecky

Ended up replacing it with basic java httpclient.

 

import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

 

View original
Did this answer your question?

3 replies

Forum|alt.badge.img+14

Hi @christopherlecky 

Which version are you using?

Which Workflow and version is this?

Best Regards,

Sebastien


christopherlecky
Byte
Forum|alt.badge.img+16

11.28,

 

Home cooked workflow. I just need to resolve those methods.


christopherlecky
Byte
Forum|alt.badge.img+16

Ended up replacing it with basic java httpclient.

 

import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings