You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Mendix 7.0.2 creating a new app and importing latest community commons and rest services from app store, I get about 100+ errors of which most complains "org.apache.commons.httpclient" does not exist.
For some I could resolve using org.apache.http instead, but I can't import everything, for instance org.apache.commons.httpclient.methods.GetMethod
Here is the full stacktrace of running the project:
Buildfile: c:\MxMeta-main\deployment\build_core.xml
compile:
[javac] Compiling 230 source files to c:\MxMeta-main\deployment\run\bin
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:3: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpStatus;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:18: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpStatus;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceRequest.java:13: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpStatus;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:22: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpException;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:23: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.GetMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:54: error: cannot find symbol
[javac] private volatile GetMethod currentRequest;
[javac] ^
[javac] symbol: class GetMethod
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:113: error: cannot find symbol
[javac] HttpException {
[javac] ^
[javac] symbol: class HttpException
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:220: error: cannot find symbol
[javac] final String deleteMicroflow, final long timeout) throws HttpException, IOException, Exception {
[javac] ^
[javac] symbol: class HttpException
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:17: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.*;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:18: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthPolicy;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:19: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthScope;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:20: error: package org.apache.commons.httpclient.cookie does not exist
[javac] import org.apache.commons.httpclient.cookie.CookiePolicy;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:21: error: package org.apache.commons.httpclient.cookie does not exist
[javac] import org.apache.commons.httpclient.cookie.CookieSpec;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:22: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.DeleteMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:23: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.GetMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:24: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.InputStreamRequestEntity;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:25: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.PostMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:26: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.PutMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:27: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.RequestEntity;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:28: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.StringRequestEntity;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:29: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.ByteArrayPartSource;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:30: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.FilePart;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:31: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:32: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.Part;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:33: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.StringPart;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:34: error: package org.apache.commons.httpclient.params does not exist
[javac] import org.apache.commons.httpclient.params.HttpMethodParams;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:71: error: cannot find symbol
[javac] private static MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
[javac] ^
[javac] symbol: class MultiThreadedHttpConnectionManager
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:72: error: cannot find symbol
[javac] static HttpClient client = new HttpClient(connectionManager);
[javac] ^
[javac] symbol: class HttpClient
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:213: error: cannot find symbol
[javac] static void includeHeaders(HttpMethodBase request) {
[javac] ^
[javac] symbol: class HttpMethodBase
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:219: error: cannot find symbol
[javac] static void includeHeaders(HttpMethodBase request, Map<String, String> headers) {
[javac] ^
[javac] symbol: class HttpMethodBase
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:232: error: cannot find symbol
[javac] Map<String, String> params, RequestEntity requestEntity, Predicate onSuccess) throws HttpException, IOException {
[javac] ^
[javac] symbol: class RequestEntity
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:232: error: cannot find symbol
[javac] Map<String, String> params, RequestEntity requestEntity, Predicate onSuccess) throws HttpException, IOException {
[javac] ^
[javac] symbol: class HttpException
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:302: error: cannot find symbol
[javac] private static NameValuePair[] mapToNameValuePairs(Map<String, String> params) {
[javac] ^
[javac] symbol: class NameValuePair
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:568: error: cannot find symbol
[javac] private static RequestEntity buildMultiPartEntity(final IContext context,
[javac] ^
[javac] symbol: class RequestEntity
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:621: error: cannot find symbol
[javac] final IMendixObject source, List parts) throws IOException {
[javac] ^
[javac] symbol: class Part
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:84: error: cannot find symbol
[javac] private Header[] headers;
[javac] ^
[javac] symbol: class Header
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:86: error: cannot find symbol
[javac] HttpResponseData(String method, String url, int status, String eTag, Header[] headers) {
[javac] ^
[javac] symbol: class Header
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\publish\ServiceDescriber.java:3: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpStatus;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:10: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.Credentials;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:11: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:12: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.NTCredentials;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:13: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthChallengeParser;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:14: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthScheme;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:15: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthenticationException;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:16: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.InvalidCredentialsException;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:17: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.MalformedChallengeException;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:48: error: cannot find symbol
[javac] public class JCIFS_NTLMScheme implements AuthScheme {
[javac] ^
[javac] symbol: class AuthScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:80: error: cannot find symbol
[javac] public JCIFS_NTLMScheme() throws AuthenticationException {
[javac] ^
[javac] symbol: class AuthenticationException
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:98: error: cannot find symbol
[javac] public String authenticate(Credentials credentials, HttpMethod method)
[javac] ^
[javac] symbol: class Credentials
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:98: error: cannot find symbol
[javac] public String authenticate(Credentials credentials, HttpMethod method)
[javac] ^
[javac] symbol: class HttpMethod
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:100: error: cannot find symbol
[javac] throws AuthenticationException {
[javac] ^
[javac] symbol: class AuthenticationException
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:168: error: cannot find symbol
[javac] public String authenticate(Credentials credentials, String method,
[javac] ^
[javac] symbol: class Credentials
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:170: error: cannot find symbol
[javac] String uri) throws AuthenticationException {
[javac] ^
[javac] symbol: class AuthenticationException
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:338: error: cannot find symbol
[javac] throws MalformedChallengeException {
[javac] ^
[javac] symbol: class MalformedChallengeException
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:13: error: cannot find symbol
[javac] NOT_FOUND(HttpStatus.SC_NOT_FOUND),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:14: error: cannot find symbol
[javac] UNAUTHORIZED(HttpStatus.SC_UNAUTHORIZED),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:15: error: cannot find symbol
[javac] METHOD_NOT_ALLOWED(HttpStatus.SC_METHOD_NOT_ALLOWED),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:16: error: cannot find symbol
[javac] CONFLICTED(HttpStatus.SC_CONFLICT),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:17: error: cannot find symbol
[javac] BAD_REQUEST(HttpStatus.SC_BAD_REQUEST);
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:130: error: cannot find symbol
[javac] started = e.getResponseData().getStatus() != HttpStatus.SC_BAD_GATEWAY;
[javac] ^
[javac] symbol: variable HttpStatus
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:308: error: cannot find symbol
[javac] serveErrorPage(rsr, HttpStatus.SC_BAD_REQUEST, cause.getMessage(), ((WebserviceException) cause).getFaultCode());
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceHandler
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:312: error: cannot find symbol
[javac] serveErrorPage(rsr, HttpStatus.SC_INTERNAL_SERVER_ERROR, "Failed to serve: " + requestStr + ": An internal server error occurred. Please check the application logs or contact a system administrator.", null);
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceHandler
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:324: error: cannot find symbol
[javac] serveErrorPage(rsr, HttpStatus.SC_BAD_REQUEST, "JSON is incorrect. Please review the request data: " + je.getMessage(), "INVALID_JSON");
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceHandler
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:339: error: cannot find symbol
[javac] if (status == HttpStatus.SC_UNAUTHORIZED)
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceHandler
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceRequest.java:109: error: cannot find symbol
[javac] setStatus(HttpStatus.SC_UNAUTHORIZED);
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceRequest
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:116: error: cannot find symbol
[javac] GetMethod get = this.currentRequest = new GetMethod(requestUrl);
[javac] ^
[javac] symbol: class GetMethod
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:116: error: cannot find symbol
[javac] GetMethod get = this.currentRequest = new GetMethod(requestUrl);
[javac] ^
[javac] symbol: class GetMethod
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:71: error: cannot find symbol
[javac] private static MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
[javac] ^
[javac] symbol: class MultiThreadedHttpConnectionManager
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:72: error: cannot find symbol
[javac] static HttpClient client = new HttpClient(connectionManager);
[javac] ^
[javac] symbol: class HttpClient
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:75: error: cannot find symbol
[javac] connectionManager.getParams().setMaxConnectionsPerHost(HostConfiguration.ANY_HOST_CONFIGURATION, 10);
[javac] ^
[javac] symbol: variable HostConfiguration
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:99: error: cannot find symbol
[javac] return status == HttpStatus.SC_NOT_MODIFIED || (status >= 200 && status < 300);
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:142: error: cannot find symbol
[javac] status, status < 0 ? "CONNECTION FAILED" : HttpStatus.getStatusText(status),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:161: error: cannot find symbol
[javac] if (headers != null) for(Header header : headers) {
[javac] ^
[javac] symbol: class Header
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:189: error: cannot find symbol
[javac] connectionManager.getParams().setMaxConnectionsPerHost(HostConfiguration.ANY_HOST_CONFIGURATION, maxConcurrentRequests.intValue());
[javac] ^
[javac] symbol: variable HostConfiguration
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:204: error: package org.apache.commons.httpclient does not exist
[javac] org.apache.commons.httpclient.Cookie rq = new org.apache.commons.httpclient.Cookie("", cookie.getName(), cookie.getValue());
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:204: error: package org.apache.commons.httpclient does not exist
[javac] org.apache.commons.httpclient.Cookie rq = new org.apache.commons.httpclient.Cookie("", cookie.getName(), cookie.getValue());
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:205: error: cannot find symbol
[javac] String cookiestr = CookiePolicy.getDefaultSpec().formatCookie(rq);
[javac] ^
[javac] symbol: variable CookiePolicy
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:236: error: cannot find symbol
[javac] HttpMethodBase request = null;
[javac] ^
[javac] symbol: class HttpMethodBase
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:246: error: cannot find symbol
[javac] request = new GetMethod(url);
[javac] ^
[javac] symbol: class GetMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:248: error: cannot find symbol
[javac] request = new DeleteMethod(url);
[javac] ^
[javac] symbol: class DeleteMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:250: error: cannot find symbol
[javac] request = new PostMethod(url);
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:252: error: cannot find symbol
[javac] request = new PutMethod(url);
[javac] ^
[javac] symbol: class PutMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:256: error: cannot find symbol
[javac] request.getParams().setCookiePolicy(CookiePolicy.IGNORE_COOKIES);
[javac] ^
[javac] symbol: variable CookiePolicy
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:263: error: cannot find symbol
[javac] if (params != null && request instanceof PostMethod)
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:264: error: cannot find symbol
[javac] ((PostMethod)request).addParameters(mapToNameValuePairs(params));
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:266: error: cannot find symbol
[javac] if (request instanceof PostMethod && requestEntity != null)
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:267: error: cannot find symbol
[javac] ((PostMethod)request).setRequestEntity(requestEntity);
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:268: error: cannot find symbol
[javac] else if (request instanceof PutMethod && requestEntity != null)
[javac] ^
[javac] symbol: class PutMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:269: error: cannot find symbol
[javac] ((PutMethod)request).setRequestEntity(requestEntity);
[javac] ^
[javac] symbol: class PutMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:272: error: cannot find symbol
[javac] Header responseEtag = request.getResponseHeader(RestServices.HEADER_ETAG);
[javac] ^
[javac] symbol: class Header
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:303: error: cannot find symbol
[javac] NameValuePair[] res = new NameValuePair[params.size()];
[javac] ^
[javac] symbol: class NameValuePair
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:303: error: cannot find symbol
[javac] NameValuePair[] res = new NameValuePair[params.size()];
[javac] ^
[javac] symbol: class NameValuePair
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:306: error: cannot find symbol
[javac] res[i] = new NameValuePair(e.getKey(), e.getValue());
[javac] ^
[javac] symbol: class NameValuePair
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:344: error: cannot find symbol
[javac] if (response.getStatus() != HttpStatus.SC_OK) {
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:353: error: cannot find symbol
[javac] Credentials defaultcreds = new UsernamePasswordCredentials(username, password);
[javac] ^
[javac] symbol: class Credentials
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:353: error: cannot find symbol
[javac] Credentials defaultcreds = new UsernamePasswordCredentials(username, password);
[javac] ^
[javac] symbol: class UsernamePasswordCredentials
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:355: error: cannot find symbol
[javac] client.getState().setCredentials(new AuthScope(url.getHost(), url.getPort(), AuthScope.ANY_REALM), defaultcreds);
[javac] ^
[javac] symbol: class AuthScope
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:355: error: cannot find symbol
[javac] client.getState().setCredentials(new AuthScope(url.getHost(), url.getPort(), AuthScope.ANY_REALM), defaultcreds);
[javac] ^
[javac] symbol: variable AuthScope
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:363: error: cannot find symbol
[javac] Credentials defaultcreds = new NTCredentials(username, password, url.getHost(), domain);
[javac] ^
[javac] symbol: class Credentials
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:363: error: cannot find symbol
[javac] Credentials defaultcreds = new NTCredentials(username, password, url.getHost(), domain);
[javac] ^
[javac] symbol: class NTCredentials
[javac] location: class RestConsumer
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 100 errors
BUILD FAILED
c:\MxMeta-main\deployment\build_core.xml:25: Compile failed; see the compiler error output for details.
Total time: 3 seconds
The text was updated successfully, but these errors were encountered:
In Mendix 7.0.2 creating a new app and importing latest community commons and rest services from app store, I get about 100+ errors of which most complains "org.apache.commons.httpclient" does not exist.
For some I could resolve using org.apache.http instead, but I can't import everything, for instance org.apache.commons.httpclient.methods.GetMethod
Here is the full stacktrace of running the project:
Buildfile: c:\MxMeta-main\deployment\build_core.xml
compile:
[javac] Compiling 230 source files to c:\MxMeta-main\deployment\run\bin
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:3: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpStatus;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:18: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpStatus;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceRequest.java:13: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpStatus;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:22: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpException;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:23: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.GetMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:54: error: cannot find symbol
[javac] private volatile GetMethod currentRequest;
[javac] ^
[javac] symbol: class GetMethod
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:113: error: cannot find symbol
[javac] HttpException {
[javac] ^
[javac] symbol: class HttpException
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:220: error: cannot find symbol
[javac] final String deleteMicroflow, final long timeout) throws HttpException, IOException, Exception {
[javac] ^
[javac] symbol: class HttpException
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:17: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.*;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:18: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthPolicy;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:19: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthScope;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:20: error: package org.apache.commons.httpclient.cookie does not exist
[javac] import org.apache.commons.httpclient.cookie.CookiePolicy;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:21: error: package org.apache.commons.httpclient.cookie does not exist
[javac] import org.apache.commons.httpclient.cookie.CookieSpec;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:22: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.DeleteMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:23: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.GetMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:24: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.InputStreamRequestEntity;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:25: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.PostMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:26: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.PutMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:27: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.RequestEntity;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:28: error: package org.apache.commons.httpclient.methods does not exist
[javac] import org.apache.commons.httpclient.methods.StringRequestEntity;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:29: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.ByteArrayPartSource;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:30: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.FilePart;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:31: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:32: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.Part;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:33: error: package org.apache.commons.httpclient.methods.multipart does not exist
[javac] import org.apache.commons.httpclient.methods.multipart.StringPart;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:34: error: package org.apache.commons.httpclient.params does not exist
[javac] import org.apache.commons.httpclient.params.HttpMethodParams;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:71: error: cannot find symbol
[javac] private static MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
[javac] ^
[javac] symbol: class MultiThreadedHttpConnectionManager
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:72: error: cannot find symbol
[javac] static HttpClient client = new HttpClient(connectionManager);
[javac] ^
[javac] symbol: class HttpClient
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:213: error: cannot find symbol
[javac] static void includeHeaders(HttpMethodBase request) {
[javac] ^
[javac] symbol: class HttpMethodBase
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:219: error: cannot find symbol
[javac] static void includeHeaders(HttpMethodBase request, Map<String, String> headers) {
[javac] ^
[javac] symbol: class HttpMethodBase
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:232: error: cannot find symbol
[javac] Map<String, String> params, RequestEntity requestEntity, Predicate onSuccess) throws HttpException, IOException {
[javac] ^
[javac] symbol: class RequestEntity
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:232: error: cannot find symbol
[javac] Map<String, String> params, RequestEntity requestEntity, Predicate onSuccess) throws HttpException, IOException {
[javac] ^
[javac] symbol: class HttpException
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:302: error: cannot find symbol
[javac] private static NameValuePair[] mapToNameValuePairs(Map<String, String> params) {
[javac] ^
[javac] symbol: class NameValuePair
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:568: error: cannot find symbol
[javac] private static RequestEntity buildMultiPartEntity(final IContext context,
[javac] ^
[javac] symbol: class RequestEntity
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:621: error: cannot find symbol
[javac] final IMendixObject source, List parts) throws IOException {
[javac] ^
[javac] symbol: class Part
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:84: error: cannot find symbol
[javac] private Header[] headers;
[javac] ^
[javac] symbol: class Header
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:86: error: cannot find symbol
[javac] HttpResponseData(String method, String url, int status, String eTag, Header[] headers) {
[javac] ^
[javac] symbol: class Header
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\publish\ServiceDescriber.java:3: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpStatus;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:10: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.Credentials;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:11: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.HttpMethod;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:12: error: package org.apache.commons.httpclient does not exist
[javac] import org.apache.commons.httpclient.NTCredentials;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:13: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthChallengeParser;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:14: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthScheme;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:15: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.AuthenticationException;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:16: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.InvalidCredentialsException;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:17: error: package org.apache.commons.httpclient.auth does not exist
[javac] import org.apache.commons.httpclient.auth.MalformedChallengeException;
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:48: error: cannot find symbol
[javac] public class JCIFS_NTLMScheme implements AuthScheme {
[javac] ^
[javac] symbol: class AuthScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:80: error: cannot find symbol
[javac] public JCIFS_NTLMScheme() throws AuthenticationException {
[javac] ^
[javac] symbol: class AuthenticationException
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:98: error: cannot find symbol
[javac] public String authenticate(Credentials credentials, HttpMethod method)
[javac] ^
[javac] symbol: class Credentials
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:98: error: cannot find symbol
[javac] public String authenticate(Credentials credentials, HttpMethod method)
[javac] ^
[javac] symbol: class HttpMethod
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:100: error: cannot find symbol
[javac] throws AuthenticationException {
[javac] ^
[javac] symbol: class AuthenticationException
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:168: error: cannot find symbol
[javac] public String authenticate(Credentials credentials, String method,
[javac] ^
[javac] symbol: class Credentials
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:170: error: cannot find symbol
[javac] String uri) throws AuthenticationException {
[javac] ^
[javac] symbol: class AuthenticationException
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\util\JCIFS_NTLMScheme.java:338: error: cannot find symbol
[javac] throws MalformedChallengeException {
[javac] ^
[javac] symbol: class MalformedChallengeException
[javac] location: class JCIFS_NTLMScheme
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:13: error: cannot find symbol
[javac] NOT_FOUND(HttpStatus.SC_NOT_FOUND),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:14: error: cannot find symbol
[javac] UNAUTHORIZED(HttpStatus.SC_UNAUTHORIZED),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:15: error: cannot find symbol
[javac] METHOD_NOT_ALLOWED(HttpStatus.SC_METHOD_NOT_ALLOWED),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:16: error: cannot find symbol
[javac] CONFLICTED(HttpStatus.SC_CONFLICT),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestPublishException.java:17: error: cannot find symbol
[javac] BAD_REQUEST(HttpStatus.SC_BAD_REQUEST);
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestExceptionType
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:130: error: cannot find symbol
[javac] started = e.getResponseData().getStatus() != HttpStatus.SC_BAD_GATEWAY;
[javac] ^
[javac] symbol: variable HttpStatus
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:308: error: cannot find symbol
[javac] serveErrorPage(rsr, HttpStatus.SC_BAD_REQUEST, cause.getMessage(), ((WebserviceException) cause).getFaultCode());
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceHandler
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:312: error: cannot find symbol
[javac] serveErrorPage(rsr, HttpStatus.SC_INTERNAL_SERVER_ERROR, "Failed to serve: " + requestStr + ": An internal server error occurred. Please check the application logs or contact a system administrator.", null);
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceHandler
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:324: error: cannot find symbol
[javac] serveErrorPage(rsr, HttpStatus.SC_BAD_REQUEST, "JSON is incorrect. Please review the request data: " + je.getMessage(), "INVALID_JSON");
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceHandler
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceHandler.java:339: error: cannot find symbol
[javac] if (status == HttpStatus.SC_UNAUTHORIZED)
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceHandler
[javac] c:\MxMeta-main\javasource\restservices\publish\RestServiceRequest.java:109: error: cannot find symbol
[javac] setStatus(HttpStatus.SC_UNAUTHORIZED);
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestServiceRequest
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:116: error: cannot find symbol
[javac] GetMethod get = this.currentRequest = new GetMethod(requestUrl);
[javac] ^
[javac] symbol: class GetMethod
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\ChangeLogListener.java:116: error: cannot find symbol
[javac] GetMethod get = this.currentRequest = new GetMethod(requestUrl);
[javac] ^
[javac] symbol: class GetMethod
[javac] location: class ChangeLogListener
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:71: error: cannot find symbol
[javac] private static MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
[javac] ^
[javac] symbol: class MultiThreadedHttpConnectionManager
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:72: error: cannot find symbol
[javac] static HttpClient client = new HttpClient(connectionManager);
[javac] ^
[javac] symbol: class HttpClient
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:75: error: cannot find symbol
[javac] connectionManager.getParams().setMaxConnectionsPerHost(HostConfiguration.ANY_HOST_CONFIGURATION, 10);
[javac] ^
[javac] symbol: variable HostConfiguration
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:99: error: cannot find symbol
[javac] return status == HttpStatus.SC_NOT_MODIFIED || (status >= 200 && status < 300);
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:142: error: cannot find symbol
[javac] status, status < 0 ? "CONNECTION FAILED" : HttpStatus.getStatusText(status),
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:161: error: cannot find symbol
[javac] if (headers != null) for(Header header : headers) {
[javac] ^
[javac] symbol: class Header
[javac] location: class HttpResponseData
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:189: error: cannot find symbol
[javac] connectionManager.getParams().setMaxConnectionsPerHost(HostConfiguration.ANY_HOST_CONFIGURATION, maxConcurrentRequests.intValue());
[javac] ^
[javac] symbol: variable HostConfiguration
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:204: error: package org.apache.commons.httpclient does not exist
[javac] org.apache.commons.httpclient.Cookie rq = new org.apache.commons.httpclient.Cookie("", cookie.getName(), cookie.getValue());
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:204: error: package org.apache.commons.httpclient does not exist
[javac] org.apache.commons.httpclient.Cookie rq = new org.apache.commons.httpclient.Cookie("", cookie.getName(), cookie.getValue());
[javac] ^
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:205: error: cannot find symbol
[javac] String cookiestr = CookiePolicy.getDefaultSpec().formatCookie(rq);
[javac] ^
[javac] symbol: variable CookiePolicy
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:236: error: cannot find symbol
[javac] HttpMethodBase request = null;
[javac] ^
[javac] symbol: class HttpMethodBase
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:246: error: cannot find symbol
[javac] request = new GetMethod(url);
[javac] ^
[javac] symbol: class GetMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:248: error: cannot find symbol
[javac] request = new DeleteMethod(url);
[javac] ^
[javac] symbol: class DeleteMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:250: error: cannot find symbol
[javac] request = new PostMethod(url);
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:252: error: cannot find symbol
[javac] request = new PutMethod(url);
[javac] ^
[javac] symbol: class PutMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:256: error: cannot find symbol
[javac] request.getParams().setCookiePolicy(CookiePolicy.IGNORE_COOKIES);
[javac] ^
[javac] symbol: variable CookiePolicy
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:263: error: cannot find symbol
[javac] if (params != null && request instanceof PostMethod)
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:264: error: cannot find symbol
[javac] ((PostMethod)request).addParameters(mapToNameValuePairs(params));
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:266: error: cannot find symbol
[javac] if (request instanceof PostMethod && requestEntity != null)
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:267: error: cannot find symbol
[javac] ((PostMethod)request).setRequestEntity(requestEntity);
[javac] ^
[javac] symbol: class PostMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:268: error: cannot find symbol
[javac] else if (request instanceof PutMethod && requestEntity != null)
[javac] ^
[javac] symbol: class PutMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:269: error: cannot find symbol
[javac] ((PutMethod)request).setRequestEntity(requestEntity);
[javac] ^
[javac] symbol: class PutMethod
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:272: error: cannot find symbol
[javac] Header responseEtag = request.getResponseHeader(RestServices.HEADER_ETAG);
[javac] ^
[javac] symbol: class Header
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:303: error: cannot find symbol
[javac] NameValuePair[] res = new NameValuePair[params.size()];
[javac] ^
[javac] symbol: class NameValuePair
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:303: error: cannot find symbol
[javac] NameValuePair[] res = new NameValuePair[params.size()];
[javac] ^
[javac] symbol: class NameValuePair
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:306: error: cannot find symbol
[javac] res[i] = new NameValuePair(e.getKey(), e.getValue());
[javac] ^
[javac] symbol: class NameValuePair
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:344: error: cannot find symbol
[javac] if (response.getStatus() != HttpStatus.SC_OK) {
[javac] ^
[javac] symbol: variable HttpStatus
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:353: error: cannot find symbol
[javac] Credentials defaultcreds = new UsernamePasswordCredentials(username, password);
[javac] ^
[javac] symbol: class Credentials
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:353: error: cannot find symbol
[javac] Credentials defaultcreds = new UsernamePasswordCredentials(username, password);
[javac] ^
[javac] symbol: class UsernamePasswordCredentials
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:355: error: cannot find symbol
[javac] client.getState().setCredentials(new AuthScope(url.getHost(), url.getPort(), AuthScope.ANY_REALM), defaultcreds);
[javac] ^
[javac] symbol: class AuthScope
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:355: error: cannot find symbol
[javac] client.getState().setCredentials(new AuthScope(url.getHost(), url.getPort(), AuthScope.ANY_REALM), defaultcreds);
[javac] ^
[javac] symbol: variable AuthScope
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:363: error: cannot find symbol
[javac] Credentials defaultcreds = new NTCredentials(username, password, url.getHost(), domain);
[javac] ^
[javac] symbol: class Credentials
[javac] location: class RestConsumer
[javac] c:\MxMeta-main\javasource\restservices\consume\RestConsumer.java:363: error: cannot find symbol
[javac] Credentials defaultcreds = new NTCredentials(username, password, url.getHost(), domain);
[javac] ^
[javac] symbol: class NTCredentials
[javac] location: class RestConsumer
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 100 errors
BUILD FAILED
c:\MxMeta-main\deployment\build_core.xml:25: Compile failed; see the compiler error output for details.
Total time: 3 seconds
The text was updated successfully, but these errors were encountered: