• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

use antenna to upload jar file to web server

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using antenna to build my J2ME application and I want to deploy application to my servlet server.
I configured correct settings for wtk.home, antenna.home. The antenna works well except the wtkdeploy, it always gives me this error message:
/home/naveen/development/eclipse/ant/build.xml:59: java.io.IOException: Internal Server Error (500)

The target of deploy is as follows:
<target name="deploy" depends="package">
<wtkdeploy jarfile="${release.dir}/${midlet.name}.jar"
jadfile="${release.dir}/${midlet.name}.jad"
target="${deploy.target}"
login="${username}"
password="${password}"
delete="${do.delete.on.deploy}">
</wtkdeploy>
</target>

The other targets such as wtkbuild, wtkjad, wtkpackage work very well except this one.
When performing this target, I checked the tomcat logs, it shows as:
127.0.0.1 - - [05/Sep/2009:14:59:35 -0400] "PUT /antenna/firstMIDlet.jar?delete=false&login=admin&password=admin HTTP/1.1" 500 1641

The servlet is at http://localhost:8181/antenna. I followed the instructions at antenna website to setup servlet (copy web.xml from etc dir into WEB-INF, copy antenna-bin.jar into WEB-INF/lib), but didn't work it out. Errors are always there. Didn't figure out how to upload the packaged suites to the web server.

Any body can give some ideas what could the problem be?

Naveen.
 
Naveen Akshaye
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any guy have suggestions?

Thanks in advance.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Naveen Akshaye wrote:Any guy have suggestions?

Thanks in advance.



Yes, I had the same problem. Turns out my antenna webapp folder and subfolders's permissions were all root:root. Made it tomcat:tomcat, and all sorted.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch Jacques.
Thank you for sharing your solution with everyone.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic