Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Change my deploy path in JBoss

  Asked By: Leona    Date: Jul 21    Category: Java    Views: 1654
  

would you mind telling me how can i change the deploy path in JBoss?
All my ejb's components are deployed in this path /opt/jboss-4.2.1.GA/server/default/deploy
Now how can i change it to this path for example /root/myejbscomponents ?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Jarvia Miller     Answered On: Jul 21

In jboss  AS you can change  deployment directory.
In JBoss-x.x.x/server/default/conf/jboss-service.xml you can change deploy/ to your favourite url like this :


<attribute name="URLs">
<!-- deploy/ -->
file:/root/myejbscomponents
</attribute>

 
Answer #2    Answered By: Allan Bailey     Answered On: Jul 21

First of all tanx for your attention and your instruction but,


I've changed
<attribute name="">org.jboss.deployment.DeploymentSorter</attribute>
to
<attribute name=" /root">org.jboss.deployment.DeploymentSorter</attribute>

result

-------------------------------------------------------------------------------


--- MBeans waiting for other MBeans ---
ObjectName: jboss.deployment:type=DeploymentScanner,flavor=URL
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: /root
I Depend On:
jboss.system:service=MainDeployer

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.deployment:type=DeploymentScanner,flavor=URL
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: /root
I Depend On:
jboss.system:service=MainDeployer


at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1385)
at org.jboss.deployment.MainDeployer.deploy (MainDeployer.java:785)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
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:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke (Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java :210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot (Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)

what should i do?

 
Didn't find what you were looking for? Find more on Change my deploy path in JBoss Or get search suggestion and latest updates.




Tagged: