cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Unable to build Custom Plugin: ERROR package org.apache.http does not exist

Bert_VanderHeyd
Advisor

If I just export the URL Monitor plugin and try to build it again, even without any change, I see following exceptions:

ERRORS: 
ERROR package org.apache.http does not exist
ERROR package org.apache.http.client does not exist
ERROR package org.apache.http.conn does not exist
ERROR package org.apache.http.util does not exist
ERROR cannot find symbol
symbol: class ClientProtocolException
location: class com.dynatrace.diagnostics.plugin.urlmonitor.UrlMonitor
ERROR cannot find symbol
symbol: class ConnectTimeoutException
location: class com.dynatrace.diagnostics.plugin.urlmonitor.UrlMonitor
ERROR cannot find symbol
symbol: variable EncodingUtils
location: class com.dynatrace.diagnostics.plugin.urlmonitor.UrlMonitor
ERROR cannot access org.apache.http.auth.AuthScope
class file for org.apache.http.auth.AuthScope not found
ERROR cannot find symbol
symbol: class Header
location: class com.dynatrace.diagnostics.plugin.urlmonitor.UrlMonitor

What could be wrong?

2 REPLIES 2

andreas_grabner
Dynatrace Guru
Dynatrace Guru

Seems like a depending library is missing. The URL Monitor uses org.apache.http which is part of Apache HttpComponents: https://hc.apache.org/

The export should include any depending libraries - but maybe there is an issue with the export. BTW - there is a custom version of the URLMonitor Plugin already out there on the community - have you checked that project? https://github.com/Dynatrace/Dynatrace-URL-Monitor...

that project on github includes all the depending libraries!

Bert_VanderHeyd
Advisor

You are correct. Although com.dynatrace.diagnostics.httpclient is a dependency at plugin level, the httpclient libraries do not come along automatically. For some reason, my eclipse found them.

Adding them in the lib solved my issue.