Como mudar a pasta das libs
22/02/2011 00:00
0
Pessoal, como faço para, ao invés da aplicação buscar os jars dentro de web-inf/lib, buscar na pasta do servidor ou numa pasta solta em tomcat/webapps? Pq tenho várias apps num mesmo servidor e como os jars são os mesmos, eu gostaria de fazer todas elas buscarem da mesma fonte ao invés de cada uma ter sua pasta lib com seus jars.
Tags: Grails


0
*** AVISO: forte chance do que eu disser abaixo ser bobagem ***
Você quer dizer em produção? Neste caso, se não me engano, basta copiar os arquivos .jar para o diretório lib do Tomcat.


*** AVISO: o que eu vou dizer abaixo está correto ***
Agora, você também pode, se quiser, usar o suporte que o próprio Grails tem para Ivy. Assim você só inclui as dependências, tal como faria em um projeto Java tradicional usando Maven.
É uma mão na roda.


0
[quote="kicolobo"]*** AVISO: o que eu vou dizer abaixo está correto ***
Agora, você também pode, se quiser, usar o suporte que o próprio Grails tem para Ivy. Assim você só inclui as dependências, tal como faria em um projeto Java tradicional usando Maven.
É uma mão na roda.[/quote]

Como se faz isso? Não sei fazer em java ><.


Lembrei de uma coisa, cheguei a por no eclipse/build path os jars diretamente e removê-los do web-inf/lib. Tb não funcionou. Ele não reconhece o build path.


[quote=&quot;kicolobo&quot;]*** AVISO: forte chance do que eu disser abaixo ser bobagem ***
Você quer dizer em produção? Neste caso, se não me engano, basta copiar os arquivos .jar para o diretório lib do Tomcat.
[/quote]

Já experimentei fazer isso. Dá problema no tomcat. Vou postar a exception.


22/02/2011 17&#58;09&#58;36 org.apache.catalina.core.AprLifecycleListener init
INFO&#58; Loaded APR based Apache Tomcat Native library 1.1.20.
22/02/2011 17&#58;09&#58;36 org.apache.catalina.core.AprLifecycleListener init
INFO&#58; APR capabilities&#58; IPv6 [true], sendfile [true], accept filters [false], random [true].
22/02/2011 17&#58;09&#58;36 org.apache.coyote.http11.Http11AprProtocol init
INFO&#58; Initializing Coyote HTTP/1.1 on http-8080
22/02/2011 17&#58;09&#58;36 org.apache.coyote.ajp.AjpAprProtocol init
INFO&#58; Initializing Coyote AJP/1.3 on ajp-8009
22/02/2011 17&#58;09&#58;36 org.apache.catalina.startup.Catalina load
INFO&#58; Initialization processed in 591 ms
22/02/2011 17&#58;09&#58;36 org.apache.catalina.core.StandardService start
INFO&#58; Starting service Catalina
22/02/2011 17&#58;09&#58;36 org.apache.catalina.core.StandardEngine start
INFO&#58; Starting Servlet Engine&#58; Apache Tomcat/6.0.32
22/02/2011 17&#58;09&#58;36 org.apache.catalina.startup.HostConfig deployDescriptor
INFO&#58; Deploying configuration descriptor host-manager.xml
22/02/2011 17&#58;09&#58;36 org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE&#58; Error deploying configuration descriptor host-manager.xml
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java&#58;675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;36 org.apache.catalina.startup.HostConfig deployDescriptor
INFO&#58; Deploying configuration descriptor manager.xml
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE&#58; Error deploying configuration descriptor manager.xml
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java&#58;675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployWAR
INFO&#58; Deploying web application archive financas.war
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployWAR
SEVERE&#58; Error deploying web application archive financas.war
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java&#58;943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java&#58;778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory docs
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory docs
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory examples
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory examples
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory host-manager
22/02/2011 17&#58;09&#58;38 org.apache.catalina.core.NamingContextListener lifecycleEvent
SEVERE&#58; Creation of the naming context failed&#58; javax.naming.NamingException&#58; Context is read only
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory host-manager
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory manager
22/02/2011 17&#58;09&#58;38 org.apache.catalina.core.NamingContextListener lifecycleEvent
SEVERE&#58; Creation of the naming context failed&#58; javax.naming.NamingException&#58; Context is read only
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory manager
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory ROOT
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory ROOT
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;38 org.apache.coyote.http11.Http11AprProtocol start
INFO&#58; Starting Coyote HTTP/1.1 on http-8080
22/02/2011 17&#58;09&#58;38 org.apache.coyote.ajp.AjpAprProtocol start
INFO&#58; Starting Coyote AJP/1.3 on ajp-8009
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.Catalina start
INFO&#58; Server startup in 2211 ms

22/02/2011 00:00


0
[quote=&quot;Yarkhs&quot;][quote=&quot;kicolobo&quot;]*** AVISO: o que eu vou dizer abaixo está correto ***
Agora, você também pode, se quiser, usar o suporte que o próprio Grails tem para Ivy. Assim você só inclui as dependências, tal como faria em um projeto Java tradicional usando Maven.
É uma mão na roda.[/quote]

Como se faz isso? Não sei fazer em java ><.


Lembrei de uma coisa, cheguei a por no eclipse/build path os jars diretamente e removê-los do web-inf/lib. Tb não funcionou. Ele não reconhece o build path.


[quote=&quot;kicolobo&quot;]*** AVISO: forte chance do que eu disser abaixo ser bobagem ***
Você quer dizer em produção? Neste caso, se não me engano, basta copiar os arquivos .jar para o diretório lib do Tomcat.
[/quote]

Já experimentei fazer isso. Dá problema no tomcat. Vou postar a exception.


22/02/2011 17&#58;09&#58;36 org.apache.catalina.core.AprLifecycleListener init
INFO&#58; Loaded APR based Apache Tomcat Native library 1.1.20.
22/02/2011 17&#58;09&#58;36 org.apache.catalina.core.AprLifecycleListener init
INFO&#58; APR capabilities&#58; IPv6 [true], sendfile [true], accept filters [false], random [true].
22/02/2011 17&#58;09&#58;36 org.apache.coyote.http11.Http11AprProtocol init
INFO&#58; Initializing Coyote HTTP/1.1 on http-8080
22/02/2011 17&#58;09&#58;36 org.apache.coyote.ajp.AjpAprProtocol init
INFO&#58; Initializing Coyote AJP/1.3 on ajp-8009
22/02/2011 17&#58;09&#58;36 org.apache.catalina.startup.Catalina load
INFO&#58; Initialization processed in 591 ms
22/02/2011 17&#58;09&#58;36 org.apache.catalina.core.StandardService start
INFO&#58; Starting service Catalina
22/02/2011 17&#58;09&#58;36 org.apache.catalina.core.StandardEngine start
INFO&#58; Starting Servlet Engine&#58; Apache Tomcat/6.0.32
22/02/2011 17&#58;09&#58;36 org.apache.catalina.startup.HostConfig deployDescriptor
INFO&#58; Deploying configuration descriptor host-manager.xml
22/02/2011 17&#58;09&#58;36 org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE&#58; Error deploying configuration descriptor host-manager.xml
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java&#58;675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;36 org.apache.catalina.startup.HostConfig deployDescriptor
INFO&#58; Deploying configuration descriptor manager.xml
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE&#58; Error deploying configuration descriptor manager.xml
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java&#58;675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployWAR
INFO&#58; Deploying web application archive financas.war
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployWAR
SEVERE&#58; Error deploying web application archive financas.war
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java&#58;943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java&#58;778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory docs
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory docs
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory examples
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory examples
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;37 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory host-manager
22/02/2011 17&#58;09&#58;38 org.apache.catalina.core.NamingContextListener lifecycleEvent
SEVERE&#58; Creation of the naming context failed&#58; javax.naming.NamingException&#58; Context is read only
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory host-manager
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory manager
22/02/2011 17&#58;09&#58;38 org.apache.catalina.core.NamingContextListener lifecycleEvent
SEVERE&#58; Creation of the naming context failed&#58; javax.naming.NamingException&#58; Context is read only
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory manager
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
INFO&#58; Deploying web application directory ROOT
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE&#58; Error deploying web application directory ROOT
java.lang.NoSuchMethodError&#58; javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java&#58;616)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java&#58;4699)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java&#58;799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java&#58;779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java&#58;601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java&#58;1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java&#58;1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java&#58;506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java&#58;1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java&#58;324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java&#58;142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java&#58;840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java&#58;1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java&#58;463)
at org.apache.catalina.core.StandardService.start(StandardService.java&#58;525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java&#58;754)
at org.apache.catalina.startup.Catalina.start(Catalina.java&#58;595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java&#58;39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java&#58;25)
at java.lang.reflect.Method.invoke(Method.java&#58;585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java&#58;289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java&#58;414)
22/02/2011 17&#58;09&#58;38 org.apache.coyote.http11.Http11AprProtocol start
INFO&#58; Starting Coyote HTTP/1.1 on http-8080
22/02/2011 17&#58;09&#58;38 org.apache.coyote.ajp.AjpAprProtocol start
INFO&#58; Starting Coyote AJP/1.3 on ajp-8009
22/02/2011 17&#58;09&#58;38 org.apache.catalina.startup.Catalina start
INFO&#58; Server startup in 2211 ms

[/quote]

Você manteve as bibliotecas do Tomcat?

Além disso um bom padrão é configurar uma pasta shared no catalina.properties:


#
# List of comma-separated paths defining the contents of the &quot;shared&quot;
# classloader. Prefixes should be used to define what is the repository type.
# Path may be relative to the CATALINA_BASE path or absolute. If left as blank,
# the &quot;common&quot; loader will be used as Catalina's &quot;shared&quot; loader.
# Examples&#58;
# &quot;foo&quot;&#58; Add this folder as a class repository
# &quot;foo/*.jar&quot;&#58; Add all the JARs of the specified folder as class
# repositories
# &quot;foo/bar.jar&quot;&#58; Add bar.jar as a class repository
# Please note that for single jars, e.g. bar.jar, you need the URL form
# starting with file&#58;.
shared.loader=


Na ordem de execução dos class loader´s definidos no tomcat, o shared irá executar logo após o Loader da aplicação:

http&#58;//tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

Ou seja, ele irá procurar a lib primeiro na aplicação e caso não encontre ele irá buscar no shared, observe que o algoritmo utilizado para buscar a classe difere do padrão da JVM -
...Normally, when a class loader is asked to load a particular class or resource, it delegates the request to a parent class loader first...
22/02/2011 00:00


0
[quote=&quot;brucesan&quot;]

Você manteve as bibliotecas do Tomcat?

Além disso um bom padrão é configurar uma pasta shared no catalina.properties:


#
# List of comma-separated paths defining the contents of the &quot;shared&quot;
# classloader. Prefixes should be used to define what is the repository type.
# Path may be relative to the CATALINA_BASE path or absolute. If left as blank,
# the &quot;common&quot; loader will be used as Catalina's &quot;shared&quot; loader.
# Examples&#58;
# &quot;foo&quot;&#58; Add this folder as a class repository
# &quot;foo/*.jar&quot;&#58; Add all the JARs of the specified folder as class
# repositories
# &quot;foo/bar.jar&quot;&#58; Add bar.jar as a class repository
# Please note that for single jars, e.g. bar.jar, you need the URL form
# starting with file&#58;.
shared.loader=


Na ordem de execução dos class loader´s definidos no tomcat, o shared irá executar logo após o Loader da aplicação:

http&#58;//tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

Ou seja, ele irá procurar a lib primeiro na aplicação e caso não encontre ele irá buscar no shared, observe que o algoritmo utilizado para buscar a classe difere do padrão da JVM -
...Normally, when a class loader is asked to load a particular class or resource, it delegates the request to a parent class loader first...
[/quote]

Eu mantive sim as libs do tomcat. Inclusive adicionei as usadas pela app em tomcat/lib. E eu não sabia deste lance de shared. Vou usar isto e ver como se comporta.



Tomcat/lib como era


Tomcat/lib após as cópias dos jars


app/lib
22/02/2011 00:00


0
Olá Yarkhs,

eu tentei seguir as instruções deste post (para diminuir o tamanho do war):
http&#58;//thevirtualmachine.wordpress.com/2008/12/04/reducing-grails-deployment-size-part-2/
mas não conseguir compartilhar as bibliotecas instaladas em uma pasta diferente da lib do Tomcat.

Quando utilizo a aplicação em Localhost e coloco as bibliotecas na Lib do Tomcat elas são compartilhadas, mas testei em um site que utiliza uma pasta diferente da lib e não consegui.

Se conseguir, por favor, informe como foi feito.
24/02/2011 00:00


0
Arisales, vou dar uma olhada nesta solução. Estou cheio de esperança ;P.

Quando terminar darei o feedback.
24/02/2011 00:00



Ainda não faz parte da comunidade???

Para se registrar, clique aqui.


Aprenda Groovy e Grails com a Formação itexto!

Newsletter Semana Groovy

Assinar

Envie seu link!


Livro de Grails


/dev/All

Os melhores blogs de TI (e em português) em um único lugar!

 
Creative Commons
RSS Grails Brasil é mantido por itexto Consultoria.
Em caso de problemas contacte Henrique Lobo Weissmann (Kico) por e-mail: kico@itexto.com.br
Todo o conteúdo presente neste site adota o Creative Commons como licença padrão.
Ver: 4.14.0
itexto