我已经成功地安装了jboss,因为windows服务找到了这篇文章http://www.jboss.org/jbossweb/install/service.html
当我尝试它时localhost:8080/它可以工作,但当我尝试从另一台计算机访问它时,我无法打开它。
当我在eclipse中设置jboss时,我通常会传递参数-b 0.0.0.0,它可以在外部工作,我该如何为这个windows服务执行此操作?非常感谢。
我已经成功地安装了jboss,因为windows服务找到了这篇文章http://www.jboss.org/jbossweb/install/service.html
当我尝试它时localhost:8080/它可以工作,但当我尝试从另一台计算机访问它时,我无法打开它。
当我在eclipse中设置jboss时,我通常会传递参数-b 0.0.0.0,它可以在外部工作,我该如何为这个windows服务执行此操作?非常感谢。
我过去曾通过在service.bat文件中显式指定参数来完成此操作。
您应该看到service.bat文件中对run.bat的调用的位置,此时您可以添加-b 0.0.0.0参数
call run.bat -b 0.0.0.0
我手头没有windows安装,但我认为您只需要编辑run.bat来添加-b 0.0.0.0程序参数,然后重新运行生成JBoss服务的程序。你能公布run.bat的内容吗?
我浏览了服务.bat
,发现
:cmdStart
REM Executed on service start
del .r.lock 2>&1 | findstr /C:"being used" > nul
if not errorlevel 1 (
echo Could not continue. Locking file already in use.
go到cmdEnd
)
echo Y > .r.lock
jbosssvc.exe -p 1 "Starting %SVCDISP%" > run.log
call run.bat -b 0.0.0 .0< .r.lock >> run.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run.log
del .r.lock
go到cmdEnd
编辑<code>调用run.bat<。r.lock>>;run.log 2>&;1
到
call run.bat -b 0.0.0.0 < .r.lock >> run.log 2>&1
您应该看到在service.bat文件中对run.bat的调用位置,然后可以添加-b 0.0.0.0参数
请记住service.bat文件位于jboss_home/bin中。在我的版本中,我有两行调用“call run.bat<;.r.lock>;>;run.log 2>;&;1”,所以我将其更改为“call run-bat-b 192.xxx.xxx.xxx-c all<;.r.lock<;>!run.log 2>;&aamp;1”。
埃尔南。
Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...
Check this, List<String> list = new ArrayList<String>(); for (int i = 0; i < 10000; i++) { String value = (""+UUID.randomUUID().getLeastSignificantBits()).substring(3, ...
I am in the middle of solving a problem where I think it s best suited for a decorator and a state pattern. The high level setting is something like a sandwich maker and dispenser, where I have a set ...
I have been trying to execute a MS SQL Server stored procedure via JDBC today and have been unsuccessful thus far. The stored procedure has 1 input and 1 output parameter. With every combination I ...
I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...
If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...
I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....
I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...