I want to deploy soap web services and some gwt client prefers the services in json format for direct json support of gwt, similar to the situation in http://www.mail-archive.com/users@cxf.apache.org/msg03146.html.
Btw, I use jaxws in developing web services, actually metro web service stack.. I am lucky that jaxws supports json (https://jax-ws-commons.dev.java.net/json/) by just annotating the binding type as json.. @BindingType(JSONBindingID.JSON_BINDING)
Therefore, in the worst case I may deploy that gwt client's json services seperately and still use metro ws stack in ws development..
However, I bumped into a better solution :) http://enunciate.codehaus.org/
I first checked if it is dead and happily saw that the latest release is about a month ago :)
Enunciate is a web service deployment framework. The promise is leaving the developer only source code development with metadata (annotations) and taking care of all the other details such as deployment descriptors including interoperability.. Enunciate promises to give multiple endpoints automatically to the deployed web service.
This is a first step blog on enunciate: http://dustinbreese.blogspot.com/2008/01/enunciate.html
Enunciate's own getiing started doc is here: http://enunciate.codehaus.org/getting_started.html
Lets start!
I used apache tomcat 5.0.28 as web server and Eclipse ide.
-created the example wannabecool project as dynamic web project and added tomcat runtime to the project. -copied stuff $ENUNCIATE/samples/wannabecool/src/main/java under my src folder.
-added jars ander $ENUNCIATE/lib to my project to get rid of compile errors.
-copied $ENUNCIATE/samples/wannabecool/build.xml to my project. In that file,I set enunciate.home properly. While running the ant script, I got this error:
BUILD FAILED
/usr/share/myprograms/ECLIPSEHOME/workspace/ganymede-workspace/wannabecool/build.xml:27: java.lang.NoClassDefFoundError: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
So, I downloaded jaxb-xalan-1.5.jar and added to classpath. This fixed the error.
However, the war file did not work under tomcat (http://jira.codehaus.org/browse/ENUNCIATE-212)
So, I tried jetty.. I got the following error at first:
SEVERE: Context initialization failed
Throwable occurred: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalCommonAnnotationProcessor': Initialization of bean failed; nested exception is java.lang.NullPointerException
So, I commented out the following lines in web.xml (it affected the rest part actually) and bingoo :)
Enter http://localhost:8080/wannabecool/ to check.. Wsdl is here: http://localhost:8080/wannabecool/api.wsdl
However, the REST part is currently problematic due to the change in web.xml..
gwt etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
gwt etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
24 Nisan 2009 Cuma
18 Nisan 2009 Cumartesi
GWT : "wrong ELF class: ELFCLASS32" Error in x64 Linux machine
When I tried to run my web application through eclipse debugger (in hosted mode), I got the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/share/myprograms/ECLIPSEHOME/eclipse-ganymede/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-pi-gtk-3235.so (/usr/share/myprograms/ECLIPSEHOME/eclipse-ganymede/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32)
However, no problem in Windows XP.
After a bit googling, I bumped into the following sites:
http://code.google.com/p/gwt-examples/wiki/gwtEclipseFaqs#Running_32bit_JVM_for_GWT (Problems With GWT and 64bit JVM section)
http://code.google.com/p/google-web-toolkit/issues/detail?id=134 (comment 39, comment 41)
http://code.google.com/p/google-web-toolkit/issues/detail?id=135 (comment 30)
I have just installed 32 bit jvm and set debug configuration for my app as it, and problem solved :)
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/share/myprograms/ECLIPSEHOME/eclipse-ganymede/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-pi-gtk-3235.so (/usr/share/myprograms/ECLIPSEHOME/eclipse-ganymede/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32)
However, no problem in Windows XP.
After a bit googling, I bumped into the following sites:
http://code.google.com/p/gwt-examples/wiki/gwtEclipseFaqs#Running_32bit_JVM_for_GWT (Problems With GWT and 64bit JVM section)
http://code.google.com/p/google-web-toolkit/issues/detail?id=134 (comment 39, comment 41)
http://code.google.com/p/google-web-toolkit/issues/detail?id=135 (comment 30)
I have just installed 32 bit jvm and set debug configuration for my app as it, and problem solved :)
Etiketler:
gwt,
gwt problem in x64 machine,
gwt troobleshoot
15 Nisan 2009 Çarşamba
GWT Beginner Tutorials - 2
Hi all.. My GWT experience continues and lets see some other documentation:
Google plugin for Eclipse(http://code.google.com/intl/tr-TR/eclipse/) both supports supports google app engine & google web toolkit. User s guide for the plugin is http://code.google.com/intl/tr-TR/eclipse/docs/users_guide.html
To those who wonders what is the relationship bw GAE and GWT, like me:
gwt-windows-1.6.4\samples is a good point for warming up!
to be continued..
13 Nisan 2009 Pazartesi
GWT Beginner Tutorials
Hi everybody! I will use GWT in one of my homework projects and here are some useful beginner tutorials for GWT.
Btw, I am using java, not python..
google app engine getting sterted (an excellent starting point :) ): http://code.google.com/intl/tr-TR/appengine/docs/java/gettingstarted/
google plugin for eclipse: http://code.google.com/intl/tr-TR/appengine/docs/java/tools/eclipse.html, http://code.google.com/intl/tr-TR/eclipse/ (comes bundled with the App Engine and GWT SDKs)
google app engine sdk download : http://code.google.com/intl/tr-TR/appengine/downloads.html
java development server: http://code.google.com/intl/tr-TR/appengine/docs/java/tools/devserver.html
My very first step: (http://code.google.com/intl/tr-TR/appengine/docs/java/gettingstarted/installing.html)
Run the following command on linux:
./appengine-java-sdk-1.2.0/bin/dev_appserver.sh appengine-java-sdk-1.2.0/demos/guestbook/war
This is the command to run java development web server from the commandline. It takes the war location as argument. (war archive files are not supported by the SDK yet, so use a war directory for deployment. )The server can be run from eclipse debugger automatically.
Then examine http://localhost:8080/
Btw, I am using java, not python..
google app engine getting sterted (an excellent starting point :) ): http://code.google.com/intl/tr-TR/appengine/docs/java/gettingstarted/
google plugin for eclipse: http://code.google.com/intl/tr-TR/appengine/docs/java/tools/eclipse.html, http://code.google.com/intl/tr-TR/eclipse/ (comes bundled with the App Engine and GWT SDKs)
google app engine sdk download : http://code.google.com/intl/tr-TR/appengine/downloads.html
java development server: http://code.google.com/intl/tr-TR/appengine/docs/java/tools/devserver.html
My very first step: (http://code.google.com/intl/tr-TR/appengine/docs/java/gettingstarted/installing.html)
Run the following command on linux:
./appengine-java-sdk-1.2.0/bin/dev_appserver.sh appengine-java-sdk-1.2.0/demos/guestbook/war
This is the command to run java development web server from the commandline. It takes the war location as argument. (war archive files are not supported by the SDK yet, so use a war directory for deployment. )The server can be run from eclipse debugger automatically.
Then examine http://localhost:8080/
to be contined..
Kaydol:
Kayıtlar (Atom)