Problem building with non-root user on Linux

Stephen McConnell mcconnell at dpml.net
Wed Jan 11 00:20:21 EST 2006


 

> -----Original Message-----
> From: dev-dpml-bounces at lists.ibiblio.org 
> [mailto:dev-dpml-bounces at lists.ibiblio.org] On Behalf Of 
> Stephen McConnell
> Sent: Wednesday, 11 January 2006 2:31 PM
> To: 'DPML Development'
> Subject: RE: Problem building with non-root user on Linux
> 
>  
> 
> > -----Original Message-----
> > From: dev-dpml-bounces at lists.ibiblio.org
> > [mailto:dev-dpml-bounces at lists.ibiblio.org] On Behalf Of 
> Carel Paradis
> 
> <snip/>
> 
> > BUILD FAILED
> > One or more unit test errors occured.
> > 
> > Total time: 8 seconds
> > [cparadis at localhost main]$
> > 
> > I provide as attachments the build output and the test case result. 
> > You will see that some messages are null.
> > 
> > Do you know how to resolve this problem?
> > 
> 
> The null messages are normal for things like 
> InvocationTargetException and UndeclaredThrowableException as 
> these exceptions are thrown by the JVM with the purpose of 
> supplying a causal exception.  In this case the causal 
> exception is the following:
> 
>   Caused by: java.lang.IllegalArgumentException: Bad temp directory:
> /tmp/http/context
> 	at
> org.mortbay.http.HttpContext.setTempDirectory(HttpContext.java:975)
> 	at
> net.dpml.http.impl.HttpContextImpl.<init>(HttpContextImpl.java:147)
> 	... 49 more
> 
> Presumably we have an issue concerning the creation of the 
> /tmp/http/context directory. One approach could be add code 
> to the net.dpml.http.impl.HttpContextImpl implementation to 
> handle directory creation which presumably will raise a 
> permission exception (which would be more useful). 

After a little more digging it appears that we don't have write access to
the /tmp/http/context directory.  The directory path is established using
the following directive:

   <entry key="tempDirectory" value="$${java.io.tmpdir}/http/context"/>

Perhaps this needs to be changed to:

   <entry key="tempDirectory" value="$${dpml.data}/temp/http/context"/>

WDYT?

/Steve.




More information about the dev-dpml mailing list