Check

http://www.jboss.org/community/docs/DOC-9719

The key is to create a directory under server/xxxx/deploy with a name
with .war at the end of it, then JBoss treats it the same as a
compressed WAR file. If you then copy your files into this as per
tutorial it should work. Run it using the directory name minus
the .war extention (same as if it was a WAR file)

If your module is
com.google.gwt.sample.stockwatcher.StockWatcher.gwt.xml, your module
HTML page is StockWatcher.html and you name the expanded deplyment
directory stockwatcher.war then the default URL to fire up the example
is probably:

http://localhost:8080/stockwatcher/com.google.gwt.sample.stockwatcher.StockWatcher/StockWatcher.html

which translates as:

<your JBoss server>/<the expanded directory or WAR file name (minus
the .war)>/<path.to.your.GWT.module.filename(minus the .gwt.xml)/
moduleHTMLfile.html

The long com.google.gwt.sample.stockwatcher.StockWatcher/
StockWatcher.html bit is because that's typically what the GWT
compiler creates under www, so that's how JBoss finds it. You can
manually move the html and js files nearer the root of
stockwatcher.war directory and alter the URL accordingly.

However as I say, learn ant: it means you configure everything in your
IDE (in a place that is convenient for development, not deployment)
and ant takes care of all these boring details every time you want to
deploy. The advantages are a) ant never makes a mistake, b) ant does
it in seconds, c) if more than one person is working on the project
you have a solid baseline compile/deploy system independent of IDEs
that always works for everyone, d) if you put a project down and come
back to it later chances are you will have forgotten some details that
made the deployment work - your ant script won't have.

HTH
gregor




On Nov 20, 7:10 am, Lonifasiko <[EMAIL PROTECTED]> wrote:
> Hi gregor, thanks for the reply.
>
> I'll take a look at the possibility of using an ANT script to deploy
> the .war file under JBoss. Nevertheless, I understand following steps
> of the GWT tutorial (although related to Tomcat deployment), should
> work also for JBoss (zip all the content, rename to .war and place
> the .war under "deploy" directory of Jboss).
>
> Has anybody successfully achieved deploying the GWT example .war under
> JBoss in the way GWT tutorial says?
>
> Thanks veyr much in advance, I'll keep you updated with my
> progresses...
>
> Miguel
> Blog: http//lonifasiko.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to