Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. Bind existing services to 'hello-weeels'? [yN]:
  2. Create services to bind to 'hello-weeels'? [yN]: y
  3. 1: mongodb
  4. 2: mysql
  5. 3: postgresql
  6. 4: rabbitmq
  7. 5: redis
  8. What kind of service?: 1
  9. Specify the name of the service [mongodb-9c56b]:
  10. Create another? [yN]: n
  11. Would you like to save this configuration? [yN]: y
  12. Manifest written to manifest.yml.
  13. Creating Application: OK
  14. Creating Service [mongodb-9c56b]: OK
  15. Binding Service [mongodb-9c56b]: OK
  16. Uploading Application:
  17. Checking for available resources: OK
  18. Processing resources: OK
  19. Packing application: OK
  20. Uploading (3K): OK
  21. Push Status: OK
  22. Staging Application 'hello-weeels': OK
  23. Starting Application 'hello-weeels': ..
  24. Error: Application [hello-weeels] failed to start, logs information below.
  25.  
  26. ====> /logs/stderr.log <====
  27.  
  28. Aug 27, 2012 9:17:24 PM org.apache.coyote.http11.Http11Protocol init
  29. INFO: Initializing Coyote HTTP/1.1 on http-54519
  30. Aug 27, 2012 9:17:24 PM org.apache.catalina.startup.Catalina load
  31. INFO: Initialization processed in 392 ms
  32. Aug 27, 2012 9:17:24 PM org.apache.catalina.realm.JAASRealm setContainer
  33. INFO: Set JAAS app name Catalina
  34. Aug 27, 2012 9:17:24 PM org.apache.catalina.core.StandardService start
  35. INFO: Starting service Catalina
  36. Aug 27, 2012 9:17:24 PM org.apache.catalina.core.StandardEngine start
  37. INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
  38. Aug 27, 2012 9:17:24 PM org.apache.catalina.startup.HostConfig deployDirectory
  39. INFO: Deploying web application directory ROOT
  40. Aug 27, 2012 9:17:24 PM org.cloudfoundry.reconfiguration.CloudAutoStagingBeanFactoryPostProcessor usingCloudService
  41. INFO: Found an instance of org.cloudfoundry.runtime.service.AbstractCloudServiceFactory. Autostaging will be skipped.
  42. Aug 27, 2012 9:17:25 PM org.apache.catalina.core.StandardContext start
  43. SEVERE: Error listenerStart
  44. Aug 27, 2012 9:17:25 PM org.apache.catalina.core.StandardContext start
  45. SEVERE: Context [] startup failed due to previous errors
  46.  
  47. ====> /logs/stdout.log <====
  48.  
  49. INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
  50. INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Mon Aug 27 21:17:24 UTC 2012]; root of context hierarchy
  51. INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [root-context.xml]
  52. INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/cloud/cloudfoundry-auto-reconfiguration-context.xml]
  53. INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c292cb2: defining beans [mongoTemplate,mongoDbFactory,__appCloudJpaPostgreSQLReplacementProperties,__appCloudJpaMySQLReplacementProperties,__appCloudHibernatePostgreSQLReplacementProperties,__appCloudHibernateMySQLReplacementProperties,org.cloudfoundry.reconfiguration.CloudAutoStagingBeanFactoryPostProcessor#0]; root of factory hierarchy
  54. INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c292cb2: defining beans [mongoTemplate,mongoDbFactory,__appCloudJpaPostgreSQLReplacementProperties,__appCloudJpaMySQLReplacementProperties,__appCloudHibernatePostgreSQLReplacementProperties,__appCloudHibernateMySQLReplacementProperties,org.cloudfoundry.reconfiguration.CloudAutoStagingBeanFactoryPostProcessor#0]; root of factory hierarchy
  55. ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
  56. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoTemplate' defined in class path resource [root-context.xml]: Cannot resolve reference to bean 'mongoDbFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoDbFactory': Invocation of init method failed; nested exception is org.cloudfoundry.runtime.env.CloudServiceException: Expected 1 service of class org.cloudfoundry.runtime.env.MongoServiceInfo type, but found0
  57. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
  58. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
  59. at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
  60. at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
  61. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
  62.  
  63. <beans profile="default">
  64. <mongo:db-factory id="mongoDbFactory" dbname="pwdtest" host="127.0.0.1" port="27017" username="mongo_user" password="passwd"/>
  65. </beans>
  66.  
  67. <beans profile="cloud">
  68. <cloud:mongo-db-factory id="mongoDbFactory"/>
  69. </beans>
  70.  
  71. <mongo:db-factory
  72. id="mongoDbFactory"
  73. dbname="${mongo.name}"
  74. host="${mongo.host}"
  75. port="27017"
  76. username="${mongo.username}"
  77. password="${mongo.password}" />
  78.  
  79. vmc create-service mongoDB
  80.  
  81. C:eclipseWorkIndigohello-spring-mongodbtarget>vmc push hello-spring-mongodb
  82. Would you like to deploy from the current directory? [Yn]:
  83. Detected a Java SpringSource Spring Application, is this correct? [Yn]:
  84. Application Deployed URL [hello-spring-mongodb.vcap.me]:
  85. Memory reservation (128M, 256M, 512M, 1G, 2G) [512M]:
  86. How many instances? [1]:
  87. Bind existing services to 'hello-spring-mongodb'? [yN]: y
  88. 1: mongodb-86f0e
  89. Which one?: 1
  90. Create services to bind to 'hello-spring-mongodb'? [yN]:
  91. Would you like to save this configuration? [yN]:
  92. Creating Application: OK
  93. Binding Service [mongodb-86f0e]: OK
  94. Uploading Application:
  95. Checking for available resources: OK
  96. Processing resources: OK
  97. Packing application: OK
  98. Uploading (2K): OK
  99. Push Status: OK
  100. Staging Application 'hello-spring-mongodb': OK
  101. Starting Application 'hello-spring-mongodb': OK
  102.  
  103. <bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
  104. <constructor-arg ref="mongoDbFactory"/>
  105. </bean>
  106.  
  107.  
  108. <beans profile="default">
  109. <mongo:db-factory id="mongoDbFactory" dbname="pwdtest" host="127.0.0.1" port="27017" username="mongo_user" password="passwd"/>
  110. </beans>
  111.  
  112. <beans profile="cloud">
  113. <cloud:mongo-db-factory id="mongoDbFactory"/>
  114. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement