GWT-Project with JBoss 5.1

158 views
Skip to first unread message

Sascha Hoffmann

unread,
Sep 27, 2011, 8:48:29 AM9/27/11
to Google Web Toolkit
Hallo

I have a gwt project and would like to deploy it in the JBoss 5.1-
Server. Can somebody give me a hint where or how I can do this?

Mariano Ortega

unread,
Sep 27, 2011, 9:22:09 AM9/27/11
to google-we...@googlegroups.com
Hi Sascha,

There is not much to say here, you have to deploy your GWT app like a normal WAR or EAR application (depending on your needs).

If you just want to do a quick try, do a GWT compile and create a WAR file (with the contents of your war directory) and put it into one of your JBOSS servers 'deploy' directory (pick the right one depending on your needs, but typically for a quick test you can use the one named 'default'). 

This deployment process is not related with GWT at all, after GWT compilation is done you just end up with static stuff (html, js, css, etc...) and class files for your server side (ie: servlets); If you are not familiar with it, I'd recommend you to search on google for "war deployment" or something the like.

Hope it helps,
Mariano

Sascha Hoffmann

unread,
Sep 27, 2011, 9:58:55 AM9/27/11
to google-we...@googlegroups.com
Hi Mariano
 
I've done this and it works in the JBoss 4.2.3 but not in the JBoss 5.1 or higher.
 

Caused by:

org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/XQuality.war/WEB-INF/web.xml[88,11]at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)

at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(

UnmarshallerImpl.java:168)

at org.jboss.xb.util.JBossXBHelper.parse(

JBossXBHelper.java:189)

at org.jboss.xb.util.JBossXBHelper.parse(

JBossXBHelper.java:166)

at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(

SchemaResolverDeployer.java:137)

at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(

SchemaResolverDeployer.java:121)

at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(

AbstractVFSParsingDeployer.java:256)

at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(

AbstractVFSParsingDeployer.java:188)

at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(

AbstractParsingDeployerWithOutput.java:348)

My web.xml looks like this:

<?

xml version="1.0"
encoding="UTF-8"?>

<!

DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

"http://java.sun.com/dtd/web-app_2_3.dtd">

<

web-app>

<!-- Servlets -->

<servlet>

<servlet-name>loginServlet</servlet-name>

<servlet-class>xquality.server.LoginServiceImpl</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>loginServlet</servlet-name>

<url-pattern>/xquality/login</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>TargetAttributKategorieServlet</servlet-name>

<servlet-class>xquality.server.TargetAttributeKategorieServiceImpl</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>TargetAttributKategorieServlet</servlet-name>

<url-pattern>/xquality/targetAttributKate</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>TargetAttributServlet</servlet-name>

<servlet-class>xquality.server.TargetAttributServiceImpl</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>TargetAttributServlet</servlet-name>

<url-pattern>/xquality/targetAttribut</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>SperrkennzeichenServlet</servlet-name>

<servlet-class>xquality.server.SperrkennzeichenServiceImpl</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>SperrkennzeichenServlet</servlet-name>

<url-pattern>/xquality/sperrKennzeichen</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>MasterMandantServlet</servlet-name>

<servlet-class>xquality.server.MasterMandantServiceImpl</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>MasterMandantServlet</servlet-name>

<url-pattern>/xquality/masterMandant</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>SubMandantServlet</servlet-name>

<servlet-class>xquality.server.SubMandantServiceImpl</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>SubMandantServlet</servlet-name>

<url-pattern>/xquality/subMandant</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>SubMandantCountryServlet</servlet-name>

<servlet-class>xquality.server.SubMandantCountryServiceImpl</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>SubMandantCountryServlet</servlet-name>

<url-pattern>/xquality/subMandantCountry</url-pattern>

</servlet-mapping>

<servlet>

<servlet-name>SourceTypeNameServlet</servlet-name>

<servlet-class>xquality.server.SourceTypeNameServiceImpl</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>SourceTypeNameServlet</servlet-name>

<url-pattern>/xquality/sourceTypeName</url-pattern>

</servlet-mapping>

<!-- Default page to serve -->

<welcome-file-list>

<welcome-file>XQuality.html</welcome-file>

</welcome-file-list>

</

web-app>

What I have to do to corect the web.xml?

Sascha



2011/9/27 Mariano Ortega <mgo...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Q7PeKHgRGkkJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Mauro

unread,
Sep 27, 2011, 10:23:22 AM9/27/11
to google-we...@googlegroups.com

Sascha Hoffmann

unread,
Sep 28, 2011, 4:10:40 AM9/28/11
to google-we...@googlegroups.com
Hi
 
Thanks a lot. I fixed the problem. The "servlet" and "servlet-mapping" tags were disorderd.
Again thank you.
 
Sascha

2011/9/27 Mauro <mauro...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

lakumc

unread,
Sep 28, 2011, 11:37:50 AM9/28/11
to Google Web Toolkit
Hi Sascha,
i think there is no problem to deploy on JBoss 5.1.
I use weblogic 11g and the only thing i had to do was compile with one
click on 'GWT Compile Project' icon in Eclipse
and copy the war directory in autodeploy dir. I think it's similar on
JBoss 5.1.

On 27 Set, 14:48, Sascha Hoffmann <sascha.hoffman...@googlemail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages