aspose file tools*
The moose likes Java Micro Edition and the fly likes use antenna to upload jar file to web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "use antenna to upload jar file to web server" Watch "use antenna to upload jar file to web server" New topic
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: 9990
    
    7

Welcome to the Ranch Jacques.
Thank you for sharing your solution with everyone.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: use antenna to upload jar file to web server
 
Similar Threads
Failed to deploy servlet in netbeans 6.7
Compile jsp into java class file
Ant: Problem with Undeploy Task with Tomcat 6
/build.xml:372: java.net.UnknownHostException: root +ant
Resource not found error.