Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.4:deploy failed

Description

I'm trying to deploy war file remotely in Jetty with help of cargo plugin.
Deployment and loading war all are happening correctly and I can able to access application but when issuing cargo:deploy command, getting Build Failure.

Please find attachment for Error report.

Activity

Show:
Karthikeya
September 7, 2012, 6:07 AM

pom file information

Savas Ali Tokmen
September 7, 2012, 5:26 PM

Hi KarthikeyaCould you please attach the logs from the Jetty server?Thank you

Karthikeya
September 10, 2012, 6:37 AM

Please find the log detail

Karthikeya
September 10, 2012, 6:37 AM

Please find the log

Savas Ali Tokmen
September 10, 2012, 7:17 AM

Hi KarthikeyaYour application has a problem (probably with its DB configuration), see the log below:2012-09-07 11:56:45,774 [main][][][][][][][] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection to query metadata
java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:236) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:207) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:139) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:88) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:1598) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeOneConnection(OracleImplicitConnectionCache.java:515) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleImplicitConnectionCache.getCacheConnection(OracleImplicitConnectionCache.java:475) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:357) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:395) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:179) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:157) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_04]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_04]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_04]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_04]
at net.bull.javamelody.JdbcWrapper$3.invoke(JdbcWrapper.java:673) ~[javamelody-core-1.40.0.jar:1.40.0]
at net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler.invoke(JdbcWrapper.java:259) ~[javamelody-core-1.40.0.jar:1.40.0]
at $Proxy32.getConnection(Unknown Source) ~[na:na]
at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:71) ~[hibernate-entitymanager-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:113) ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863) [hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859) [hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870) [hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:906) [hibernate-entitymanager-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74) [hibernate-entitymanager-3.6.10.Final.jar:3.6.10.Final]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225) [spring-orm-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310) [spring-orm-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:400) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:275) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslationInterceptor.java:139) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.<init>(PersistenceExceptionTranslationInterceptor.java:79) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor.<init>(PersistenceExceptionTranslationAdvisor.java:70) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.setBeanFactory(PersistenceExceptionTranslationPostProcessor.java:102) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1441) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1410) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:710) [spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:410) [spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:733) [jetty-server-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:233) [jetty-servlet-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1222) [jetty-webapp-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:676) [jetty-server-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:455) [jetty-webapp-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36) [jetty-deploy-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183) [jetty-deploy-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:491) [jetty-deploy-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:138) [jetty-deploy-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:142) [jetty-deploy-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:53) [jetty-deploy-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:118) [jetty-deploy-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:552) [jetty-deploy-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:227) [jetty-deploy-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:63) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:53) [jetty-server-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:91) [jetty-server-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.server.Server.doStart(Server.java:260) [jetty-server-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-7.6.3.v20120416.jar:7.6.3.v20120416]
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1215) [jetty-xml-7.6.3.v20120416.jar:7.6.3.v20120416]
at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_04]
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1138) [jetty-xml-7.6.3.v20120416.jar:7.6.3.v20120416]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_04]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_04]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_04]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_04]
at org.eclipse.jetty.start.Main.invokeMain(Main.java:457) [start.jar:7.6.3.v20120416]
at org.eclipse.jetty.start.Main.start(Main.java:602) [start.jar:7.6.3.v20120416]
at org.eclipse.jetty.start.Main.main(Main.java:82) [start.jar:7.6.3.v20120416]
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:392) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:434) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:687) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:247) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1102) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:320) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
... 95 common frames omitted
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.7.0_04]
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.7.0_04]
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.7.0_04]
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.7.0_04]
at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.7.0_04]
at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.7.0_04]
at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.7.0_04]
at java.net.Socket.connect(Unknown Source) ~[na:1.7.0_04]
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:150) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.net.nt.ConnOption.connect(ConnOption.java:133) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:370) ~[ojdbc6-11.2.0.3.0.jar:11.2.0.3.0]
... 100 common frames omitted
There is unfortunately nothing CARGO can do to fix your application. Please do so yourself Thank you

Assignee

Unassigned

Reporter

S. Ali Tokmen

Components

Affects versions

Priority

Major
Configure