Changing default Google App Engine port from 8080

•September 3, 2009 • Leave a Comment

For those who have installed Tomcat or any other server which runs on 8080, starting GAE server will give some error like this
[cc]
Sep 3, 2009 5:25:18 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed SelectChannelConnector@127.0.0.1:8080
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:211)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:309)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:152)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:116)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:218)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Sep 3, 2009 5:25:18 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed Server@1a7ddcf
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:211)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:309)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:152)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:116)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:218)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)

************************************************
Could not open the requested socket: Address already in use: bind
Try overriding –address and/or –port.
[/cc]

To resolve go to %SDK_HOME%\config\user and update ant-macros.html line 23
[cc]

[/cc]

Foe Eclipse users this file is located in

%ECLIPSE_HOME\plugins\com.google.appengine.eclipse.sdkbundle_1.2.2.v200907291526\
appengine-java-sdk-1.2.2\config\user
if using SDK 1.2.2

Purely Annotation based webservice using JAX-WS 2.1 on tomcat

•May 17, 2009 • Leave a Comment

In this article i will be discussing how to quickly create a JAX-WS 2.1 based web service using Java Annotations and to get it deployed to tomcat. I am also adding a download link of eclipse project for the same at the bottom of the post.

These kind of web-service’s are quick to develop and deploy. This style does not necessarily need to implement an interface and also there is no need to draw up a wsdl. I would recommend this type of service’s for people who are new to web-service world and for those who want to quickly create a web-service.
Continue reading ‘Purely Annotation based webservice using JAX-WS 2.1 on tomcat’

Google AppEngine for Java SDK Updated

•May 14, 2009 • Leave a Comment

Google AppEngine SDK for Java has been updated to version 1.2.1. Full post on Google AppEngine Official blog is available here. For those who have installed Google Eclipse Plugin and SDK as part of Eclipse, it should be automatically updated.

Creating Soft or Symbolic Link in Windows

•May 13, 2009 • Leave a Comment

While working on my RMI article i tried using a windows directory having a space in its name. It was C:\My DropBox\Projects. I use DropBox to sync my projects between my work and home. As you are reading this you would have suggested changing folder name to eliminate space but DropBox does not allow me to do so. The space in classpath was creating issues while executing the command.
Continue reading ‘Creating Soft or Symbolic Link in Windows’

Simple Java RMI based Chat

•May 12, 2009 • 1 Comment

While experimenting with Java 6 RMI, i have written a small chat server/client application. This examples shows RMI push/pull in action. I am making this application available as an eclipse project which is my favourite Java IDE. Continue reading ‘Simple Java RMI based Chat’

 
Follow

Get every new post delivered to your Inbox.