Thanks for the response.

I have commented xml config files from start.ini except jetty.xml,
jetty-deploy.xml and jetty-webapps.xml to minimize problem domain. I have
changed "monitoredDirName" to "/var/www/jetty" which has .war files from
jetty-webapps.xml file. However Jetty says "Deployment monitor
/usr/local/jetty7/var/www/jetty at interval 1" on startup,
"/usr/local/jetty7" is the installation directory.

I also try to change <Property name="jetty.home" default="." /> to <Property
name="jetty.home" default="/usr/local/jetty7" /> but it has no effect on the
problem.

Here is the content of jetty-webapps.xml, all the other files come from
jetty-distribution-7.4.5.v20110725 and do not contain any change.

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "
http://www.eclipse.org/jetty/configure.dtd";>

<!-- =============================================================== -->
<!-- Add a WebAppProvider to the deployment manager                  -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- This scans the webapps directory for war files and directories  -->
<!-- to deploy.                                                      -->
<!-- This configuration must be used with jetty-deploy.xml, which    -->
<!-- creates the deployment manager instance                         -->
<!-- =============================================================== -->
<Configure id="Server" class="org.eclipse.jetty.server.Server">
    <Ref id="DeploymentManager">
          <Call id="webappprovider" name="addAppProvider">
            <Arg>
              <New
class="org.eclipse.jetty.deploy.providers.WebAppProvider">
                <Set name="monitoredDirName"><Property name="jetty.home"
default="." />/var/www/jetty</Set>
                <Set name="defaultsDescriptor"><Property name="jetty.home"
default="."/>/etc/webdefault.xml</Set>
                <Set name="scanInterval">1</Set>
                <Set name="contextXmlDir"><Property name="jetty.home"
default="." />/contexts</Set>
        <Set name="extractWars">true</Set>
              </New>
            </Arg>
          </Call>
    </Ref>
</Configure>

2011/7/27 Jesse McConnell <[email protected]>

> You should be able to do direct paths in those files, post up your
> files and I'll take a look
>
> jesse
>
> --
> jesse mcconnell
> [email protected]
>
>
>
> On Wed, Jul 27, 2011 at 13:05, Php Coderator <[email protected]>
> wrote:
> > Hello to all,
> >
> > I have installed Jetty under /usr/local/jetty7/ directory on FreeBSD and
> I
> > want to change "etc", "contexts", "logs" and "webapps" folders to
> different
> > locations on the filesystem:
> >
> >     /usr/local/jetty7/etc/*.xml to /etc/jetty/*.xml
> >     /usr/local/jetty7/logs to /var/log/jetty
> >     /usr/local/jetty7/contexts to /etc/jetty/contexts
> >     /usr/local/jetty7/webapps to /var/www/jetty
> >
> > Although it's possible to change paths to the .xml configuration files
> > -which are under etc folder by default- from start.ini, Jetty does not
> > accept absolute paths for "webapps" and "contexts" from
> jetty-contexts.xml
> > and jetty-webapps.xml files. It always interprets paths as relative to
> Jetty
> > Home which is /usr/local/jetty7/.
> >
> > Is there any way to change the paths of Jetty without using symliks? The
> > filesystem is mounted with nosymfollow flag, so using symlinks is not
> > solution for me.
> >
> > Regards,
> > E. Sancak
> >
> >
> > _______________________________________________
> > jetty-users mailing list
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> >
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to