spring – 在Idea中部署到tc Server

前端之家收集整理的这篇文章主要介绍了spring – 在Idea中部署到tc Server前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我正在尝试使用tc Server Idea插件在Idea中运行我的应用程序并收到以下日志

  1. Connected to server
  2. wrapper | Starting the VMware vFabric tc Runtime instance - tcruntime-C-STS-vfabric-tc-server-developer-2.8.2.RELEASE-insight service...
  3. wrapper | VMware vFabric tc Runtime instance - tcruntime-C-STS-vfabric-tc-server-developer-2.8.2.RELEASE-insight started.
  4. [11:53:08.709] Not allowed to connect. Check role and password.
  5. [11:53:08.709] There is an application at /bps. Starting redeploy...
  6. [11:53:08.714] Not allowed to connect. Check role and password.
  7. [11:53:08.715] Starting undeployment of /bps ...
  8. [11:53:08.720] Not allowed to connect. Check role and password.
  9. [11:53:08.721] Starting deployment of 'bps:war exploded' to /bps ...
  10. [11:53:08.725] Not allowed to connect. Check role and password.

任何人都可以描述出什么问题吗?我不能完全理解如何在tc Server中配置用户和角色.

UPDATE

通过启用jmx解决了上述问题.但现在又出现了另一个问题

  1. 16-Apr-2013 14:36:36.023 SEVERE [RMI TCP Connection(4)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method deployApplication
  2. java.lang.RuntimeException: Unable to find host
  3. at com.springsource.tcserver.serviceability.deploy.TcContainerDeployer.deployApplication(TcContainerDeployer.java:409)
  4. at com.springsource.tcserver.serviceability.deploy.TcContainerDeployer.deployApplication(TcContainerDeployer.java:399)
  5. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  6. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  7. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  8. at java.lang.reflect.Method.invoke(Method.java:601)
  9. at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
  10. at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
  11. at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
  12. at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
  13. at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1486)
  14. at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:96)
  15. at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1327)
  16. at java.security.AccessController.doPrivileged(Native Method)
  17. at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1426)
  18. at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:847)
  19. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  20. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  21. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  22. at java.lang.reflect.Method.invoke(Method.java:601)
  23. at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
  24. at sun.rmi.transport.Transport$1.run(Transport.java:177)
  25. at sun.rmi.transport.Transport$1.run(Transport.java:174)
  26. at java.security.AccessController.doPrivileged(Native Method)
  27. at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
  28. at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
  29. at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
  30. at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
  31. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  32. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  33. at java.lang.Thread.run(Thread.java:722)
最佳答案
重写CrazyCoders评论作为答案:

我需要检查运行/调试配置|服务器选项卡|启用JMX身份验证.

密码和角色可以在:CATALINA_BASE / conf / jmxremote.password中找到

猜你在找的IDEA相关文章