jboss as windows service
by Nedim Ozan Tekin
Hi to all,
Since this adres doesnt work today
(http://www.jboss.org/wiki/Wiki.jsp?page=RunJBossAsAServiceOnWindows) i
couldnt get any good information about runking jboss as Windows service.
İ successfully created my service. İt Works but i couldt give the parameter
"-c default -b 0.0.0.0" into run.bat.
How can i achieve this?
Below you see the script that I used while creating the service..
JBossService.exe -install JBoss %JAVA_HOME%\bin\client\jvm.dll
-Dprogram.name=run.bat -Xms128m -Xmx512m
-Djava.endorsed.dirs=%JBOSS_HOME%\lib\endorsed
-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar
-start org.jboss.Main -stop org.jboss.Main
-method systemExit
-out %JBOSS_HOME%\bin\stdout.log
-err %JBOSS_HOME%\bin\stderr.log
-current %JBOSS_HOME%\bin -manual -overwrite
Nedim Ozan Tekin
Uzman Mühendis
Havelsan A.S.
Eskisehir yolu 7.km CANKAYA
219 57 87 / 1915
www.nedimozantekin.com
Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmektedir.Mesajdaki gorusler gondericiye ait olup HAVELSAN A.S. resmi gorusu olmak zorunda degildir.
Attention: This e-mail message is private and privileged.If you are not the recipient for whom this e-mail message is intended, please notify the sender immediately and delete this e-mail message from your system.All sent and received e-mail messages go through a virus scan in our company. Any opinions presented in this e-mail message are solely those of the author and do not necessarily represent HAVELSAN A.S.`s formal and authorized views.
14 years, 11 months
Re: [jboss-user] Switching message store databases: problem with AS 5.1
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=95591 Posted on behalf of a User
We're also having this problem. One way to get past it is to first create the JBM tables either manually or deploying the postgresql-persistence-service.xml first (with the errors you mention) and then using hsqldb-persistence-service.xml.
This seems to work, and indicates that there's configuration problem in postgresql-persistence-service.xml. On default JBoss AS 5.1 hides some very important error information from server.log (we hit couple of issue with JBoss ESB that are using log level DEBUG and are more serious configuration error, the same thing might be with messaging).
jarkko(a)jab.fi
In Response To:
Daniel Bevenius of the JBoss ESB Group suggest me to post my question in this forum:
I'm trying to switch the message store database from the default hypersonic to oracle.
No problem with AS 4.2.2 (JMQ) and esb 4.6, but with AS 5.1 (JBM) I get this exception:
| 19:06:39,478 ERROR [ExceptionUtil] Queue[null, name=DeadMessageQueue] startService
| java.lang.NullPointerException
| at org.jboss.jms.server.ServerPeer.getPostOfficeInstance(ServerPeer.java:1382)
| at org.jboss.jms.server.destination.DestinationServiceSupport.setMaxSizeForQueues(DestinationServic
| eSupport.java:273)
| at org.jboss.jms.server.destination.DestinationServiceSupport.startService(DestinationServiceSuppor
| t.java:110)
| at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:65)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
| at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.ja
| va:140)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
| at $Proxy38.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.
| java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.
| java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleCont
| rollerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContex
| tAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextA
| ctions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:34
| 8)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:2
| 86)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
| at org.jboss.system.ServiceController.start(ServiceController.java:460)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpl
| eRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:5
| 0)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157
| )
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178
| )
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210
| )
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:34
| 8)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
| at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapte
| r.java:117)
| at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployActio
| n.java:70)
| at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileA
| ction.java:53)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfile
| Service.java:361)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:34
| 8)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(Abstrac
| tProfileService.java:306)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.jav
| a:271)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
| at org.jboss.Main.boot(Main.java:221)
| at org.jboss.Main$1.run(Main.java:556)
| at java.lang.Thread.run(Thread.java:619)
| 19:06:39,480 ERROR [AbstractKernelController] Error installing to Start: name=jboss.esb.destination:
| name=DeadMessageQueue,service=Queue state=Create mode=Manual requiredState=Installed
| java.lang.NullPointerException
| at org.jboss.jms.server.ServerPeer.getPostOfficeInstance(ServerPeer.java:1382)
| at org.jboss.jms.server.destination.DestinationServiceSupport.setMaxSizeForQueues(DestinationServic
| eSupport.java:273)
| at org.jboss.jms.server.destination.DestinationServiceSupport.startService(DestinationServiceSuppor
| t.java:110)
| at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:65)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
| at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.ja
| va:140)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
| at $Proxy38.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.
| java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.
| java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleCont
| rollerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContex
| tAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextA
| ctions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:34
| 8)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:2
| 86)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
| at org.jboss.system.ServiceController.start(ServiceController.java:460)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpl
| eRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:5
| 0)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157
| )
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178
| )
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210
| )
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:34
| 8)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
| at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapte
| r.java:117)
| at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployActio
| n.java:70)
| at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileA
| ction.java:53)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfile
| Service.java:361)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:34
| 8)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(Abstrac
| tProfileService.java:306)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.jav
| a:271)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
| at org.jboss.Main.boot(Main.java:221)
| at org.jboss.Main$1.run(Main.java:556)
| at java.lang.Thread.run(Thread.java:619)
|
Can you help me?
Thank you very much
Stefano
14 years, 11 months
Re: [jboss-user] [jbpm 4.2] My first simple application doesn' t work :(
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=109513 Posted on behalf of a User
It is still not working after adding the file
In Response To:
I'm trying to develop my first workflow with jbpm 4.2 and netbeans but it doesn't works.
I created a new project called "displayproject" and imported as libraries the file jbpm.jar that is in the root jbpm's folder and all the files that are in the "lib" folder.
The project contains only those two files:
Display.java
| package displayproject;
|
| import java.util.List;
| import java.util.Map;
| import java.util.Set;
| import org.jbpm.api.Execution;
| import org.jbpm.pvm.internal.model.Activity;
| import org.jbpm.pvm.internal.model.ObservableElement;
| import org.jbpm.pvm.internal.model.OpenProcessDefinition;
| import org.jbpm.pvm.internal.model.Transition;
|
| public class Display implements Activity{
| String message;
|
| public Display(String message){
| this.message=message;
| }
|
| public void execute(Execution execution){
| System.out.println(message);
| }
| }
|
Main.java
| package displayproject;
|
| import org.jbpm.api.Execution;
| import org.jbpm.api.ProcessDefinition;
|
| public class Main{
|
| public static void main(String[] args) {
| ProcessDefinition processDefinition = ProcessFactory.build().node("a")
| .initial.behaviour(new Display("hello")).transition().to("b")
| .node("b").behaviour(new Display("world")).done();
| Execution execution = processDefinition.startExecution();
| }
| }
|
in Main.java netbeans tell me that it's unable to find the object ProcessFactory and the method startExecution() .
What'is wrong?
What libraries have I to import in a process project? In what folder of jbpm4.2 could I find them?
Thanks
14 years, 11 months
[Beginner's Corner] - Re: How to get JBoss and Apache to work together
by rbrtfreund
In short.. yes... your files go in the cfusion.war
Generally, you place your files in the directory (.war) you are creating. When you place a .war in jboss/server/default/ it will be registered as an application and accessible at the location unless you specify otherwise in the jboss-web.xml file. Every application has WEB-INF which is a standard java web application deployment descriptor folder where inside you'll have your web.xml. So your application context (in your case folder) would be http://localhost/cfusion. Now that gets us to the file. Your individual pages exist inside the .war which is your application on the server. So you would have a setup like:
>cfusion.war
>>WEB-INF
>>CFIDE
>>META-INF
>>helloworld.cfm
Any file you want to read should be in the application context. You generally don't need to and shouldn't point your apache docRoot at this folder. By forwarding to jboss, jboss-web is more then capable of handling the request. The DocRoot in the case of any app deployed in Jboss just won't be used - instead the application your working with will be targeted which is probably the desired behavior.
So in your case here's how your setup should work.
Apache with the proxy_mods installed. The directoryRoot of apache is irrelevant because you are not using it. Instead you are forwarding these requests onto your application. Your j2EE Web application is the cfusion.war. This gets targeted and picked up by requests to http://localhost because in your jboss-web.xml you told it to act on the root with : <context-root>/</context-root>.
At this point your coldfusion server application is live at http://localhost. Now.. the actual Website Applications you intend to build will live inside this main cfusion.war directory... which is providing you coldfusion inside a standard J2EE application server. Place all your coldfusion files in the cfusion.war directory or subdirectory's.
Hope that helps!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270315#4270315
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270315
14 years, 11 months
[Beginner's Corner] - Re: How to get JBoss and Apache to work together
by fsweb
Yes, both ports 80 and 8080 are listening and the config is in web-inf...that was a typo on my part :) Nothing else is listening on those ports.
JBoss comes up just fine, I can get to the admin and web console with no problem. I deleted the root.war and added the <context-root>/</context-root> to the WEB-INF folder under cfusion. I can also get to the CF admin just fine as well.
All I'm trying to do get a helloworld.cfm file to parse out and I know this will sound very newbie, but where would I place the coldfusion pages? Would everything go inside the cfusion.war folder in the JBoss directory?
For example in my Apache config I have the DocumentRoot and Directory set to C:/domains. Inside that folder are some test CF sites. If I try to hit devmktgweb.fullsail.com the index.html comes up fine but if I try to get a CF page to load it just shows me the code and not the awesome Hello World! that I would love to see.
I've tried changing the DocRoot to the cfusion folder under JBoss and can hit the CF page and it works but from outside the box it's a no go.
There will be multiple different domains on this box for the developers to test their different sites so there will be different virtual hosts configured. But I just have one site setup and just need one little Hello World!
Yay FullSail!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270306#4270306
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270306
14 years, 11 months