External Java Callout

Not applicable

How to load reference jar files in environment folder for maven project.

We got following error while deploying our jar file in java callout policy,We are using maven java project in java callout.

The revision is deployed and traffic can flow, but flow may be impaired. Unexpected error occurred while processing the updates.

Solved Solved
0 2 277
1 ACCEPTED SOLUTION

To answer your specific question about loading JARs into an apigee Edge environment:

you cannot do that from the Apigee Edge UI today.

You can load these JARs as resources via the Administrative API. A curl command might look like this:

curl -i -H -X POST 'Content-Type: application/octet-stream \
 -H 'Authorization: ***' \ 
 "$MGMTSERVER/v1/o/ORG/e/ENV/resourcefiles?type=java&name=foo.jar" \ 
 -d @jarfilehere.jar

^^should show above. OMG I'm pasting the code and it shows in the editor, but it won't display in the view. Sheesh. I'm enclosing a screenshot as a workaround.

7095-screenshot-20180709-110256.png

View solution in original post

2 REPLIES 2

To answer your specific question about loading JARs into an apigee Edge environment:

you cannot do that from the Apigee Edge UI today.

You can load these JARs as resources via the Administrative API. A curl command might look like this:

curl -i -H -X POST 'Content-Type: application/octet-stream \
 -H 'Authorization: ***' \ 
 "$MGMTSERVER/v1/o/ORG/e/ENV/resourcefiles?type=java&name=foo.jar" \ 
 -d @jarfilehere.jar

^^should show above. OMG I'm pasting the code and it shows in the editor, but it won't display in the view. Sheesh. I'm enclosing a screenshot as a workaround.

7095-screenshot-20180709-110256.png