How to use GWT with JBoss

1,726 views
Skip to first unread message

Jaec

unread,
Aug 29, 2007, 4:08:11 PM8/29/07
to Google Web Toolkit, joeles...@solectron.com
In my company we're planning to use GWT with an existing J2EE
application, with almost all enterprise application stuff could have,
EJB, filters, persistence framework, controller servlet, etc.

We have experience on GWT since we have been developed from scratch
two GWT apps into tomcat.

What are the main things we need to consider in order to debug the
application without the GWT development Shell because we don't have
the services that provides embedded tomcat in JBoss like (JNDI, EJB,
Connection Pools, etc.).

Thanks in advance.

Kind regards.

Jason Essington

unread,
Aug 30, 2007, 6:02:20 PM8/30/07
to Google-We...@googlegroups.com
You'll want to have a look at the -noserver flag ... it allows you to
still debug the client side in the development shell, while running
the server side on a remote server.

-jason

Sumit Chandel

unread,
Aug 31, 2007, 2:29:13 PM8/31/07
to Google-We...@googlegroups.com
Hi Jaec,

As Jason mentioned, what you'll want to check out is the -noserver flag in hosted mode. What this allows you to do is use your own web server rather than GWT's built-in Tomcat instance so that you can do end-to-end debugging with any choice of backend technology.

You can read more about how to use GWT hosted mode with the -noserver flag at the FAQ link below:
http://code.google.com/support/bin/answer.py?answer=55200&topic=10454

Hope that helps,
-Sumit Chandel

darkman97

unread,
Sep 1, 2007, 9:43:45 AM9/1/07
to Google Web Toolkit
On our project we use jboss and eclipse.

We've configured shell on eclipse ( needs some time to do it ), for
jboss you'll need something like this:

-port 8080 -noserver -out ProjectPath /Web context

For fastly developement, we don't recreate every time the war file. We
deploy once one time, and every GWT change we make GWT output compiled
on jboss temp directory ( the directory generated every time you
deploy a war on jboss ), that's more eficient and fastly.

I'll recomend to compile GWT for only one browser client ( on
development )

You'll need some directive on gwt.xml file ( GWT project )
<set-property name="user.agent" value="gecko"/>

Or like a java directive
-Dgwt.property.user.agent=gecko

If you want to take a look of our configuration look at this url
The compilation GWT script ( deploy on project path or on jboss tmp )
http://openkm.cvs.sourceforge.net/openkm/openkm/generate.sh?view=markup

The Shell on eclipse ( and other configuration like run script from
eclipse )
http://openkm.cvs.sourceforge.net/openkm/openkm/extra_eclipse_configuration/

Really Jboss + GWT + Eclipse combination it's great and fastly
developing when you've got the fine configuration for it.

Hope it could be useful

cse.v...@gmail.com

unread,
Sep 4, 2007, 5:18:15 AM9/4/07
to Google Web Toolkit
http://techforb.blogspot.com/2007/09/gwt-with-extenal-application-server.html

On Aug 30, 1:08 am, Jaec <joel.espin...@gmail.com> wrote:
> In my company we're planning to use GWT with an existing J2EE
> application, with almost all enterprise application stuff could have,
> EJB, filters, persistence framework, controller servlet, etc.
>
> We have experience on GWT since we have been developed from scratch
> two GWT apps into tomcat.
>
> What are the main things we need to consider in order to debug the
> application without the GWT development Shell because we don't have

> the services that provides embedded tomcat inJBosslike (JNDI, EJB,

Jaec

unread,
Sep 6, 2007, 3:37:03 PM9/6/07
to Google Web Toolkit
Thank you guys, your posts have been very helpful to our team.

The last link was specially what we need because Eclipse is the IDE
that we use. Another helpful information was that we need to create an
ant task and deploy the static content generated by GWT directly into
JBoss.

Best regards.

On Sep 4, 4:18 am, "cse.vis...@gmail.com" <cse.vis...@gmail.com>
wrote:
> http://techforb.blogspot.com/2007/09/gwt-with-extenal-application-ser...

santhi

unread,
Oct 5, 2007, 6:06:25 AM10/5/07
to Google Web Toolkit

Hi,
We are working with gwt and jboss.We are able to view
textboxes,buttons,hyperlinks on jboss portal but we cant see images in
the jboss portal using gwt.Please help us.It will be very helpful for
us.

Sumit Chandel

unread,
Oct 5, 2007, 2:13:34 PM10/5/07
to Google-We...@googlegroups.com
Hi Santhi,

The most likely cause for images not showing up on a page is a server config issue, although I can't say for sure without more details. For example, on which browsers are the images not showing up?

Also, are you using the ImageBundle feature to load your images? If so, you may want to read up on possible reasons why the images wouldn't show up (in IE) at the link below, particularly if the images you're serving are under a security constraint:

http://code.google.com/webtoolkit/documentation/com.google.gwt.user.client.ui.ImageBundle.html

Cheers,
-Sumit Chandel

raju raju

unread,
Oct 8, 2007, 9:12:07 AM10/8/07
to Google-We...@googlegroups.com
hai this is raju
thanks for ur help we got it now .but we are facing one more proble i.e
how to write code for history .when we are deploying it in server(Jboss) after visiting some pages
if we click back button we come to home page but not to the page previous visited 
please help me i have gone to GWT documentation but i unabele to get it
i have to submit project on 10th of this month
my project contains
it is a web portal
it contains rootpanel,absolute panels ,hyperlinks
intially i am adding all interfaces to absolute panel
once i click hyperlink again i will create one more absolute panel and all my actions
here i am disableing main absolute panel and adding newly created absolute panel to root panel
 but here i unable to visit pevious page
like my project will proceed
 
 
please resolve my problem
 
 
 
    iam doing

 

Sumit Chandel

unread,
Oct 10, 2007, 10:30:11 PM10/10/07
to Google-We...@googlegroups.com
Hi Raju,

I'm not sure which History documentation you have already looked up, but you may find the class reference documentation quite useful:

http://code.google.com/webtoolkit/documentation/com.google.gwt.user.client.History.html

The example in the documentation should be pretty straightforward. The challenge will be integrating it into your application as per your application needs. In this specific case, it seems like what you might want to do is have your root panel implement the HistoryListener interface and clear the newly created absolute panel and re-enable the main absolute panel onHistoryChanged(), but I could be wrong since I may not have the whole picture of how you want your application to behave when pressing back/forward from different states.

The KitchenSink also uses History so that it behaves intuitively to back/forward actions. You can take a look at the application demo and its source code to see if that might help you implement a history solution for your application at the link below:

http://code.google.com/webtoolkit/examples/kitchensink/


Hope that helps,
-Sumit Chandel

Reply all
Reply to author
Forward
0 new messages