tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brent80301a <brent80...@yahoo.com>
Subject Ant deploy/undeploy task failure
Date Tue, 04 Nov 2008 17:26:45 GMT

Hello All,

I am developing a Java 1.6 application using Tomcat 6.0.18 in embedded mode. 
I am attempting to use the tomcat manager application and associated Ant
tasks to perform operations on the running tomcat instance.  Tasks such as
list, serverinfo, sessions, and jmxproxy tasks work fine, however the deploy
and undeploy tasks fail with the following exception (see below).  I
actually get the same exception when trying to use the manager web interface
which leads me to believe that it is a systemic configuration issue
somewhere.  Any suggestions on what I might be missing or where I should
look?  Unfortunately, Googling doesn't yield much.  I realize that I can
always switch to an SCP Ant task for remote deployment if necessary, but I
also want to ensure that my configuration is correct.

Regards,
Brent

----------------------------------------
Ant reports the following:

[deploy] FAIL - Encountered exception
javax.management.InstanceNotFoundException:
Catalina:type=Deployer,host=localhost

----------------------------------------
Tomcat reports the following:

[INFO] [2008-05-04 10:05:09]
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager]] -
Manager: init: Associated with Deployer
'Catalina:type=Deployer,host=localhost'
[INFO] [2008-05-04 10:05:09]
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager]] -
Manager: deploy: Deploying web application at '/services'
[INFO] [2008-05-04 10:05:09]
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager]] -
Manager: Uploading WAR file to
/Users/brent/Projects/ZZZ/trunk/Manager/tomcat/webapps/services.war
[ERROR] [2008-05-04 10:05:14]
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager]] -
Manager: managerServlet.check[/services]
javax.management.InstanceNotFoundException:
Catalina:type=Deployer,host=localhost
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
	at
org.apache.catalina.manager.ManagerServlet.isServiced(ManagerServlet.java:1482)
	at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:631)
	at
org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:432)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:637)
-- 
View this message in context: http://www.nabble.com/Ant-deploy-undeploy-task-failure-tp20327057p20327057.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message