It's intriguing why alternate docroot does not work. Jan -- do you know?
Maybe you need to deploy an application and then Request with have enough
information to be able to serve it from alt docroot? I don't know.
Also, I think you can file an RFE against admin console to better assist
you in defining alternate docroots. As you can see, it does have a property
sheet, but you need to know the exact syntax for the alt docroot specification.
Regards,
Kedar
Pavneet Kaur wrote:
> We need to monitor the logs via Site Scope and/or Load runner. These
> tools directly hit the log files but our remote so cannot access via the
> file system.
> Other alternative was to change the docroot but I haven't had much
> success with that either. I tried setting the domain.xml but no change:
>
> <virtual-server hosts="${com.sun.aas.hostName}"
> http-listeners="http-listener-1,http-listener-2" id="server"
> log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
> <property name="docroot"
> value="${com.sun.aas.instanceRoot}/docroot"/>
> <property name="alternatedocroot_1" value="from=/logs/*
> dir=${com.sun.aas.instanceRoot}"/>
> <property name="accesslog"
> value="${com.sun.aas.instanceRoot}/logs/access"/>
> <property name="sso-enabled" value="false"/>
> </virtual-server>
>
> And the alternate root is not even listed in the asadmin GUI, see below:
>
>
>
> Thanks,
>
> P
>
>
> Kedar Mhaswade wrote:
>> Right, doing docroot based copying/linking is fragile.
>>
>> I know there is no RBAC in GlassFish admin yet, but I'd like
>> to know why a non-admin user would like to see server's log files?
>>
>> -Kedar
>>
>> Pavneet Kaur wrote:
>>> All,
>>>
>>> Creating a soft link doesn't work either :-(.
>>>
>>> p
>>>
>>> Jacob Kessler wrote:
>>>> Since the name of the log files won't change, can you add a link
>>>> directly to the file?
>>>>
>>>> Pavneet Kaur wrote:
>>>>> Thanks for the response.
>>>>> We need a web viewer hence a direct url would be useful. I tried
>>>>> adding a soft link to the logs directory under the docroot for the
>>>>> domain but that doesn't work.
>>>>>
>>>>> - P
>>>>>
>>>>>
>>>>> Jacob Kessler wrote:
>>>>>> The logs are stored as text files in glassfish/domains/{name of
>>>>>> domain}/logs, though that will only work if you have read access
>>>>>> to the directory that glassfish is installed in. Failing that, you
>>>>>> could set up a link to those files from somewhere that you can
>>>>>> read from.
>>>>>> Pavneet Kaur wrote:
>>>>>>> All,
>>>>>>>
>>>>>>> We need a way to be able to view the log files without logging
>>>>>>> into the asadmin GUI. Is there a direct url to the domain log files?
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> P
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net For
>>> additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>