java - Installing two grails app on Tomcat causes exception -


i need have tomcat 2 grails applications installed.
both applications should using 8080 follows:
localhost:8080/app1
localhost:8080/app2

i tried put 2 war files in webapps folder , upload server.
while server uploading, got exception in catalina.out log file:

apr 23, 2014 1:27:27 pm org.apache.coyote.abstractprotocol init
info: initializing protocolhandler ["http-bio-8080"]
apr 23, 2014 1:27:27 pm org.apache.coyote.abstractprotocol init
severe: failed initialize end point associated protocolhandler ["http-bio-8080"]
java.net.bindexception: address in use :8080
@ org.apache.tomcat.util.net.jioendpoint.bind(jioendpoint.java:410)
@ org.apache.tomcat.util.net.abstractendpoint.init(abstractendpoint.java:640)
@ org.apache.coyote.abstractprotocol.init(abstractprotocol.java:434)
@ org.apache.coyote.http11.abstracthttp11jsseprotocol.init(abstracthttp11jsseprotocol.java:119)
@ org.apache.catalina.connector.connector.initinternal(connector.java:978)
@ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102)
@ org.apache.catalina.core.standardservice.initinternal(standardservice.java:559)
@ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102)
@ org.apache.catalina.core.standardserver.initinternal(standardserver.java:813)
@ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102)
@ org.apache.catalina.startup.catalina.load(catalina.java:638)
@ org.apache.catalina.startup.catalina.load(catalina.java:663)
@ sun.reflect.nativemethodaccessorimpl.invoke0(native method)
@ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)
@ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)
@ java.lang.reflect.method.invoke(method.java:606)
@ org.apache.catalina.startup.bootstrap.load(bootstrap.java:280)
@ org.apache.catalina.startup.bootstrap.main(bootstrap.java:454)

therefore, need know best practice upload tomcat 2 grails apps.

thanks helping.

how these war files generated? grails war?

i frequent deployer of grails apps on tomcat. since there no other service running on port 8080, can issue caused trash in tomcat. so, avoid find wasting time inner workings of tomcat. if can (your example localhost), fast solution may try fresh install of tomcat. otherwise, try clean work , temp directories.

you asked best practices... if can stop tomcat, it, put .war file in webapps folder, , then, clean work , temp directories before restarting it. otherwise, put .war file in webapps folder or send through tomcat manager app (http://localhost:8080/manager). however, common permgen space error after redeploys. in case, option restart tomcat.

as tip, better alternative tomcat manager psi probe (http://code.google.com/p/psi-probe/), provides both more information , control on applications , on tomcat.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -