Code Monkey home page Code Monkey logo

Comments (5)

mathiasconradt avatar mathiasconradt commented on June 10, 2024

An additional question which I would like to clarify: is the boxUserId parameter in the config.properties supposed to be the box userId, or the enterpriseId. Just to be sure, because app settings json in the console shows just the enterpriseId ?

image

from camunda-7-code-examples.

itlabs-eu avatar itlabs-eu commented on June 10, 2024

I'm also interested in this topic. Thanks.

from camunda-7-code-examples.

mathiasconradt avatar mathiasconradt commented on June 10, 2024

I started off with a new clean database, to be sure that the original invoice process and the box invoice process does not get mixed. I think that was one of the issues mentioned above (issue 2.)

I also made sure that only the camunda-example-invoice-box application is deployed and not the camunda-example-invoice application. I also cleared all relevant files under <tomcat>/work/Catalina/localhost/camunda-example-invoice*

Nevertheless, when I now want to start a new box invoice process, there are a few 404 errors, i.e. when selecting a local document and trying to upload it, the REST API at http://localhost:8080/camunda-invoice-box/rest/rest/upload as well as the icon http://localhost:8080/camunda-invoice-box/assets/img/ajax-loader.gif cannot be found.

image

Update:

I found the reason for the images not being found: in the html forms, the path is hardcoded to /camunda-invoice-box/..., while the example application is called camunda-example-invoice-box due to the artifactId in pom.xml. Note the example in the name.

<artifactId>camunda-example-invoice-box</artifactId>

However, the /rest/upload still fails with a 404. This is on Camunda 7.8.0 CE as well as EE with Tomcat.

Also related: #40

Update 2:

I just tried with Camunda EE 7.8.0 with WildFly 10. On there, I don't get a 404 when calling POST /rest/upload but a 505 instead:

org.jboss.resteasy.spi.UnhandledException: java.lang.ClassCastException: org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo cannot be cast to org.bouncycastle.openssl.PEMKeyPair

from camunda-7-code-examples.

felix-mueller avatar felix-mueller commented on June 10, 2024

Hi @mathiasconradt
this example was only tested on Wildfly.
So I will leave this ticket open, so we can fix it for tomcat.

The second issue you are mentioning is probably an issue with the box.com api that needs a specific JDK extension.
I remember this one here: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html & https://github.com/box/box-java-sdk#quickstart

Hope this helps.

from camunda-7-code-examples.

mathiasconradt avatar mathiasconradt commented on June 10, 2024

@felix-mueller Confirming, it's working fine on Wildfly.

from camunda-7-code-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.