Giampaolo Tomassoni [
http://community.jboss.org/people/g.tomassoni] replied to the
discussion
"Isolating the JBoss package tree from the execution environm"
To view the discussion, visit:
http://community.jboss.org/message/539075#539075
--------------------------------------------------------------
Well, I'm sorry for my very late reply to your, Jaikiran. But let me first thank for
your interest in the matter, anyway.
jaikiran pai wrote:
So the data-directory value itself is just an "example". But i see what you
mean. If we are providing an commented out example, we might as well provide one which
uses the JBoss system property ${jboss.server.data.dir}.
Right. That was I meant.
jaikiran pai wrote:You mean after you uncomment that section and
point it to some location, the folder (if non-existent) does not get created, in AS 5.1.0?
Can you post the exact configuration (i.e. the location you are using in that file)?
I have somewhere in my startup config files:
-Djboss.server.data.dir=/var/lib/jboss/data
One would expect that this dir had to be more or less like the default
jboss.server.data.dir: an empty directory owned by jboss. But this doesn't seem
enough, since starting jboss with that setting and an empty /var/lib/jboss/data, one gets
the following error in boot.log:
16:53:41,276 DEBUG [AttributePersistenceService] Starting failed
jboss:service=AttributePersistenceService
java.lang.NullPointerException
at
org.jboss.system.pm.XMLAttributePersistenceManager.create(XMLAttributePersistenceManager.java:184)
at
org.jboss.system.pm.AttributePersistenceService.startService(AttributePersistenceService.java:186)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
...
16:53:41,279 ERROR [AbstractKernelController] Error installing to Start:
name=jboss:service=AttributePersistenceService state=Create mode=Manual
requiredState=Installed
One has to create the xmbean-attrs directory in it, then everything gets fine. Maybe the
problem may be circumvented by specifying some further attribute in the
AttributePersistenceManagerConfig entry,
There is nowere an error explicitly stating that, so it is a bit tricky to isolate this as
the source of the problem.
jaikiran pai wrote:
You mean after you uncomment that section and point it to some location, the folder (if
non-existent) does not get created, in AS 5.1.0? Can you post the exact configuration
(i.e. the location you are using in that file)?
> "g.tomassoni" wrote:
> 2) adding the url of my external deploy directory to the URLs attribute of
URLDeploymentScanner in jboss-service.xml (JBoss 4.x) or as a new uri element to the
property applicationURIs in bootstrap/profile.xml (JBoss 5.x).
>
>
> but I would like to know if I have any way of adding a further deploy uri after
JBoss startup, in example through JMX. The basic idea is to let JBoss start and then use
JMX or whatever to contact the running JBoss and instruct it to have a look to that furter
deploy URL. Is it possible? How?
AS-5.1.0 is backed by ProfileService's DeploymentManager which is the official API
for managing deployments. I am not sure where this feature is available in the current
API.
Ok, thank you: I'm going to see if I can find somthing about the +ProfileService's
DeploymentManager+, then.
jaikiran pai wrote:
You have mix of questions/suggestions in this topic :) And both are not directly
related to JMX itself.
Well, I'm sorry about both my "mixed mode" and, of course, about the fact I
didn't get which was the right place to report/ask about this.
jaikiran pai wrote:
For the second question, i guess the best place would be the "Management"
forum. But that's just my opinion. Let's see, if some moderator knows of a better
place, he will move it appropriately.
I see they didn't move this, but I'm going to stick with your hint anyway.
Thankyou again for your prompt reply, Jaikira.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/539075#539075]
Start a new discussion in JMX Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]