简体   繁体   English

在本地运行spring mvc openshift应用程序

[英]running spring mvc openshift application locally

I have created an Java app on openshift platform with JBoss Application Server 7 and MySQL 5.5 using eclipse and Jboss Openshift Tools. 我已经使用Eclipse和Jboss Openshift工具在带有JBoss Application Server 7和MySQL 5.5的openshift平台上创建了一个Java应用程序。 Now I wannt to run this application on localhost but I am unable to find any option to do so. 现在,我想在localhost上运行此应用程序,但找不到任何选择。

I googled and followed some links and was able to create jboss-as-7.1.1 server but cannot figure out how to run the application using this server as there is not option to select a server in Run As window of eclipse. 我搜索并跟踪了一些链接,并且能够创建jboss-as-7.1.1服务器,但由于在Eclipse的“运行方式”窗口中没有选择服务器的选项,因此无法弄清楚如何使用该服务器运行应用程序。 Do i need to modify anything in project settings? 我需要在项目设置中进行任何修改吗?

Did you create a server adapter for your jboss-as-7.1.1 in Eclipse? 您是否在Eclipse中为jboss-as-7.1.1创建了服务器适配器? I assume you did so it looks like your project is missing the required Eclipse WTP nature. 我认为您这样做是因为您的项目似乎缺少必需的Eclipse WTP性质。 Maven project (like any OpenShift Java app) get those for free if you have m2e-wtp installed. 如果您已安装m2e-wtp,则Maven项目(与任何OpenShift Java应用程序一样)可免费获得它们。 To me it looks like you're missing that one (and eventually possibly Eclipse m2e ) and need to install it. 在我看来,您似乎缺少其中一个(最终可能是Eclipse m2e ),需要安装它。 Either use the Eclipse marketplace or point Eclipse to the following update site: http://download.eclipse.org/m2e-wtp/releases/luna/ 使用Eclipse市场或将Eclipse指向以下更新站点: http : //download.eclipse.org/m2e-wtp/releases/luna/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM