Giter Club home page Giter Club logo

Comments (5)

saswatanand avatar saswatanand commented on July 3, 2024

Cannot think of a good reason. But I do see an extra '/' in your tomcat.url after "http:". Can you try: "tomcat.url=http://localhost:8080"?

If that does not work, you may try to deploy the webapp by issuing appropriate command, instead of relying the ant task, and see if that succeeds.

from ella.

agendreau avatar agendreau commented on July 3, 2024

Thanks. That was a typo on my part. However I still can't get it to work. Android and analyzing code coverage are new to me, so I thank you for your patience. What do you mean by issuing the appropriate command to deploy the web app?

I can copy the malformed url and it actually does display at http://localhost:8080/manager/text//deploy?path=%2Fella&war=file%3A%2FUsers%2FAlex%2FDesktop%2FDevelopment%2Fsrc%2Fella%2Fbin%2Fella.war&update=true

with the following message on the site...
OK - Deployed application at context path /ella

Does that mean it is working?

I tried loading the instrumented jar onto my phone but the app keeps crashing. The logcat error that seems to be causing the problem is...

java.lang.Error: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8080 refused

The app has the internet permission in the manifest. Have you encountered problems like this before and/or do you have any advice on how to fix them?

Thanks!
Alex

from ella.

saswatanand avatar saswatanand commented on July 3, 2024

The app is running on the phone, but the webserver is running on the mac. As a result, the app is failing to connect to the localhost url.

If you run the instrumented app in an emulator on the mac, it should work.

The ella url should be such that it should be accessible from the emulator or phone that is running the app.

On Tue, Mar 3, 2015 at 3:25 PM, Alexandra Gendreau <[email protected]

wrote:

Thanks. That was a typo on my part. However I still can't get it to work.
Android and analyzing code coverage are new to me, so I thank you for your
patience. What do you mean by issuing the appropriate command to deploy the
web app?

I can copy the malformed url and it actually does display at
http://localhost:8080/manager/text//deploy?path=%2Fella&war=file%3A%2FUsers%2FAlex%2FDesktop%2FDevelopment%2Fsrc%2Fella%2Fbin%2Fella.war&update=true

with the following message on the site...
OK - Deployed application at context path /ella

Does that mean it is working?

I tried loading the instrumented jar onto my phone but the app keeps
crashing. The logcat error that seems to be causing the problem is...

java.lang.Error: org.apache.http.conn.HttpHostConnectException: Connection
to http://localhost:8080 refused

The app has the internet permission in the manifest. Have you encountered
problems like this before and/or do you have any advice on how to fix them?

Thanks!
Alex


Reply to this email directly or view it on GitHub
#1 (comment).

from ella.

agendreau avatar agendreau commented on July 3, 2024

Thanks for your help and quick responses. I have now loaded an instrumented.apk onto my emulator and run ella.r.sh b and ella.r.sh e, however no coverage.dat file appears in the ellaoutdirectory. I do see the covids file.

The ant -f frontend/build.xml deploy is still failing, but when I go to the website that says it's malformed, I get the following message:
OK - Deployed application at context path /ella

Does this mean that everything is okay? Or do I still need to deploy the web app manually? If I need to deploy this manually, I do not how to do this. Do you have link describing the procedure?

Thanks!
Alex

from ella.

saswatanand avatar saswatanand commented on July 3, 2024

Sorry for the delay. I pushed some fixes. Could you try again after pulling those changes. Now the webapp should deploy without problem as described in the README.

I realized that you should not use "localhost:8080" for the tomcat.url variable (in ella.settings). Instead use the IP address of the computer that is running tomcat. For example: tomcat.url=http://123.45.67.89:8080

After pulling, you should ant clean, followed by ant.

from ella.

Related Issues (14)

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.