简体   繁体   English

在Eclipse中的JBoss中启动项目

[英]Getting a project started in JBoss within Eclipse

I've inherited a project which i'd like to test in JBoss - the problem is I cant get it to start within Eclipse. 我继承了一个要在JBoss中测试的项目-问题是我无法使其在Eclipse中启动。 It works outside of Eclipse but I have to do a maven build, deploy the WAR files to JBoss and restart JBoss each time I make a change which is a nightmare. 它可以在Eclipse之外运行,但是每次进行更改时,我都要做一个Maven构建,将WAR文件部署到JBoss,然后重新启动JBoss,这是一场噩梦。

In Eclipse I have added a JBoss 6 server, started it which appears to be fine (ie no errors in the console), then I try to run the 2 applications (one server then one client) - however nothing gets printed to the console log - no error or anything. 在Eclipse中,我添加了一个JBoss 6服务器,启动它似乎很好(例如,控制台中没有错误),然后尝试运行2个应用程序(一个服务器,然后一个客户端)-但是,控制台日志中没有任何内容-没有错误或其他任何内容。 It says started pretty much straight away. 它说马上就开始了。 Just get a 404 error when going to the localhost:8080/name address . 转到localhost:8080/name address时,只会收到404错误。

I understand this may be difficult for someone to assist me here as there is no error message but if anyone has any suggestions or advice it would be much appreciated. 我了解这对于某人可能很难在这里提供帮助,因为没有错误消息,但是如果有人有任何建议或意见,将不胜感激。 I would have thought this should be simple but dont know what im doing wrong... 我本以为这应该很简单,但是不知道我在做什么错...

Eclipse may be running the JBoss server so it listens to a different port. Eclipse可能正在运行JBoss服务器,因此它侦听其他端口。 Either that or the 8080 port is already bound so Eclipse can't open it. 要么8080端口已经绑定,否则Eclipse无法打开它。

Try configuring the JBoss project in Eclipse so it listens at a different port. 尝试在Eclipse中配置JBoss项目,以便它侦听其他端口。

[Edit] [编辑]
Here is a thread on jboss.org that discusses changing the port used by JBoss when running in Eclipse . 这是jboss.org上的一个线程,讨论在Eclipse中运行时更改JBoss使用的端口

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

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