deploying a grails app to tc Server with spring-insight

I'm trying out Spring Insight with my Grails 1.3.4 app.

* installed tc Server developer 2.0.3.RELEASE
* installed IntelliJ's tc Server plugin described at http://blogs.jetbrains.com/idea/2010/09/spring-tc-server-support-in-idea/
* added a tc Server to the Application Servers, creating a new server instance based on the spring-insight-instance
* added a Run/Debug Configuration using that app server
* that configuration's Deployment tab complains that my (Grails) project has no artifacts (IdeaX IU 98.187)
* I fix it by adding an empty Web Application: Exploded artifact to the Project Settings
** and to the <output root> of its Output Layout tab I Add Copy of Extracted Directory, selecting target/myProj-0.1.war to extract
** then adding that artifact to the Run/Debug Configuration > Deployment, to Deploy at the server startup
* use Grails to build the WAR
* start that run configuration, but the WAR artifact isn't added to my new tc instance's webapps, and I get the following errors:

/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java -Djava.endorsed.dirs=/Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tomcat-6.0.29.A.RELEASE/common/endorsed -Dcatalina.base=/Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tapsWithInsight -Dcatalina.home=/Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tomcat-6.0.29.A.RELEASE -Djava.io.tmpdir=/Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tapsWithInsight/temp -Djava.util.logging.manager=com.springsource.tcserver.serviceability.logging.TcServerLogManager -Djava.util.logging.config.file=/Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tapsWithInsight/conf/logging.properties -Dwrapper.dump.port=-1 -Xmx512m -Xss192k -Dfile.encoding=MacRoman -classpath /Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tomcat-6.0.29.A.RELEASE/bin/bootstrap.jar:/Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tapsWithInsight/bin/tomcat-juli.jar:/Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tomcat-6.0.29.A.RELEASE/bin/tomcat-juli.jar:/Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tomcat-6.0.29.A.RELEASE/bin/win32/wrapper.jar:/Users/jbeutel/tools/tcserver/dev-2.0.3.RELEASE/tomcat-6.0.29.A.RELEASE/bin/win32/threaddumpwrapper.jar net.covalent.tomcat.wrapper.ThreadDumpWrapper start
Oct 25, 2010 10:59:40 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1394 ms
Connected to server
2010-10-25 10:59:44,554 WARN  [org.springframework.jmx.support.JmxUtils][main] - Found more than one MBeanServer instance. Returning first from list.
Oct 25, 2010 10:59:49 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9486 ms
[10:59:50.057]Not allowed to connect. Check role and password.
[10:59:50.058]There is an application at /taps. Starting redeploy...
[10:59:50.062]Not allowed to connect. Check role and password.
[10:59:50.062]Starting undeployment of /taps ...
[10:59:50.065]Not allowed to connect. Check role and password.
[10:59:50.065]Starting deployment of 'extracted grails war' to /taps ...
[10:59:50.068]Not allowed to connect. Check role and password.


To fix this and deploy locally, I had to enable JMX authentication on the Run Configuration with role "admin" and password "springsource".

Next, I had to set up my Grails configuration to work with the WAR that I had made.  Now it looks good.

I'm posting this to help others and/or get feedback on if there's a better way to do this.  The artifact and deployment part seems pretty kludgy.

Cheers,
11011011

2 comments

Your http://www.sale-handbags.com/ is the accessory most likely to capture your personality, and you probably have very definite taste in http://www.sale-handbags.com/. But if you want to choose http://www.sale-handbags.com/ which not only say something about who you are, but reflect well on your http://www.sale-handbags.com/, and have the budget to afford one, you will have a hard time going wrong with a http://www.sale-handbags.com/. But you need to keep in mind that there are thousands of http://www.sale-handbags.com/ sold both on and off line, and you could very easily be tricked into getting one.If you come across a http://www.sale-handbags.com/ advertised as genuine http://www.sale-handbags.com/, and the price seems too good to be true, you are almost certainly looking at a knockoff and should simply walk away.Second-Hand Quality Is Better Than Brand-New JunkBefore you decide to go in search of your http://www.sale-handbags.com/, you need to take a realistic look at you finances. A genuine current season http://www.sale-handbags.com/ will often retail at six hundred dollars or http://www.sale-handbags.com/, when purchased at a high-end fashion retailer. If that is more than you can manage, you can look for a pre-owned http://www.sale-handbags.com/ at a good reseller boutique; a pre-owned http://www.sale-handbags.com/, if it has been well-cared for, is still a far better purchase than a replica.While you may have come across http://www.sale-handbags.com/ which seem, to your eye, to be identical to the original, they will be constructed from inferior materials and will not have nearly the quality of workmanship for which authentic http://www.sale-handbags.com/ are famous. Your r http://www.sale-handbags.com/ may disintegrate in a relatively short time, while an original http://www.sale-handbags.com/, if cared for, will last a lifetime.You will never go wrong investing in a http://www.sale-handbags.com/, be it from Louis Vuitton or any of the other respected fashion accessory houses. But if you are forced to settle for a http://www.sale-handbags.com/Anya-Hindmarch-c-28.html, you should still choose one with the best possible quality, keeping in mind that they are seldom put through the same rigorous quality control tests as the real items.Inspect before You BuyIf you are a proponent of http://www.sale-handbags.com/Armani-c-12.html, however, you might be concerned to learn that some reproduction http://www.sale-handbags.com/Balenciaga-c-36.html

---
Original message URL: http://devnet.jetbrains.net/message/5279059#5279059

0

Thank you for your tip. I had one problem: "admin" and "springsource" didn't work for me. To get jmx login/pass check CATALINA_BASE/conf/jmxremote.password file

CATALINA_HOME
0

Please sign in to leave a comment.