Comment on March 8th, 2010.
You should raise a JIRA to make all of this configuration easier
Comment on March 9th, 2010.
Will do so - and might suggest to bundle all logging related aspects within one plugin. There’s already a logging plugin, but it just handles automagic log injects and the jul-bridge.
Comment on March 25th, 2010.
Thx for this blog entry! Though it seems, you solution does not work for Glassfish 3 - am I correct? Do you know what else I have to change there to get my grails 1.2.1 app running?
Comment on March 26th, 2010.
Hi Hauke,
yes, you’re right - this setup won’t work for GlassFish.
JBoss defaults to Log4J and GlassFish uses Java Util Logging.
Thus the approach is similar, but the actual jars to ex- and include have to account for the logging provided by the GlassFish container.
I’ll post configuration details for GlassFish and a tiny ready-to-deploy war including sources this weekend.
Regards,
Reiner
Pingback on March 27th, 2010.
[…] outlined at How to Deploy a Grails Application to JBoss 5, deploying to JBoss 5 just requires to remove some logging jars and disable Grails logging […]
Comment on April 23rd, 2010.
Thank you very much! You save my week ![]()
But after deploying with your indications, I am wondering why you don’t use provided scope dependencies. We use maven with grails project, and when we do a clean install, grails scripts can’t found provided scope dependencies. I am using a similar approach to yours: setting those dependencies with compile scope, and removing them from war.
Are you experiencing the same problem?
Regards
Comment on July 1st, 2010.
Hi Reiner/Graeme.
I ran into difficulty deploying a simple grails app (i.e. grails create-app) on jboss 5/6 yesterday. Reiner, your solution here didn’t work for me as the problem was Hibernate related, not logging. However, Graeme’s solution in this JIRA issue did work… http://jira.codehaus.org/browse/GRAILS-5606. Just adding this here in case anyone else is having similar problems.
Grails version: 1.3.1
Jboss: AS 5 or 6
Now to get it running on Glassfish… uuuugh
Cheers, J ![]()
Comment on November 17th, 2010.
Having spent some time getting Grails to work on JBoss EAP 5.0.1, I created the following JIRA http://jira.codehaus.org/browse/GRAILS-5606 to detail all this information.
Comment on September 8th, 2011.
i tried this with grails 1.3.7. and glassfish 3.0.1.
It complains about multiple slf4j jars.
glassfish also continued to complain about a missing commons logging class
Comment on January 26th, 2012.
Hi ,
i am trying to deploy war release at a server with -
*app server*: jboss 5.1.0
*jdk*: 1.6.0.29 ,
*grails*: 2.0
*wsclient*: groovyws-0.5.1.jar
shows following error-
Line | Method
->> 197 | createContext in com.sun.xml.bind.v2.ContextFactory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 133 | newInstance in javax.xml.bind.ContextFinder
| 286 | find . . . . in ”
| 372 | newInstance in javax.xml.bind.JAXBContext
| 349 | createClient in org.apache.cxf.endpoint.dynamic.DynamicClientFactory
| 196 | createClient in ”
| 175 | createClient in ”
| 198 | createClient in groovyx.net.ws.AbstractCXFWSClient
| 107 | initialize . in groovyx.net.ws.WSClient
| 19 | getClient in org.grails.plugins.wsclient.service.WebService
| 18 | doCall . . . in com.TestController$_closure1
| 96 | doFilter in org.jboss.web.tomcat.filters.ReplyHeaderFilter
| 190 | invoke . . . in org.jboss.web.tomcat.security.SecurityAssociationValve
| 92 | invoke in org.jboss.web.tomcat.security.JaccContextValve
| 126 | process . . . in org.jboss.web.tomcat.security.SecurityContextEstablishmentValve
| 70 | invoke in ”
| 158 | invoke . . . in org.jboss.web.tomcat.service.jca.CachedConnectionValve
^ 662 | run in java.lang.Thread
if i try it on tomcat ,works fine . why not on jboss.?
i tried adding jaxb-api.jar under jdk/jre /lib/endorsed but no help.
Please suggest.
highly appreciate.
thanks
Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.