| Author |
use antenna to upload jar file to web server
|
Naveen Akshaye
Greenhorn
Joined: Apr 12, 2009
Posts: 9
|
|
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
Joined: Apr 12, 2009
Posts: 9
|
|
Any guy have suggestions?
Thanks in advance.
|
 |
jacques koorts
Greenhorn
Joined: Apr 17, 2012
Posts: 1
|
|
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.
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8435
|
|
Welcome to the Ranch Jacques.
Thank you for sharing your solution with everyone.
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
 |
|
|
subject: use antenna to upload jar file to web server
|
|
|