SJSW7-Directing virtual server log

all my virtual server logging are stored in the default directory. I have one instance running, however, I would like to create a separate folder for each virtual server and store their log information in it. I tried configuring a virtual server under log preferences and have both server log and access log boxes checked and the location set but after testing it out, both directories are empty.

[403 byte] By [ptrwinna] at [2007-11-26 23:44:27]
# 1
ptrwinn, we're still waiting to see your access and error logs over at http://forum.java.sun.com/thread.jspa?threadID=5153537.
elvinga at 2007-7-11 15:15:54 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
anyone?
ptrwinna at 2007-7-11 15:15:54 > top of Java-index,Web & Directory Servers,Web Servers...
# 3
Assuming you are using Admin. GUI, did you Apply changes or restart the server instance after your changes? As Elving said, can you send obj.conf and server.xml so we can manually see with our eyes and then only we can find out whats happening.
mva at 2007-7-11 15:15:54 > top of Java-index,Web & Directory Servers,Web Servers...
# 4

I already applied changes and reboot instance. my virtual server that I'm configuring is "uc.memphis.edu"

server.xml

<?xml version="1.0" encoding="UTF-8"?>

<!--

Copyright 2006 Sun Microsystems, Inc. All rights reserved.

Use is subject to license terms.

-->

<server>

<cluster>

<local-host>peter-vm2-2003.memphis.edu</local-host>

<instance>

<host>peter-vm2-2003.memphis.edu</host>

</instance>

</cluster>

<log>

<log-file>../logs/errors</log-file>

<log-level>info</log-level>

</log>

<jvm>

<java-home>C:/Sun/WebServer7/jdk</java-home>

<server-class-path>C:/Sun/WebServer7/lib/webserv-rt.jar;C:/Sun/WebServer7 /lib/pwc.jar;C:/Sun/WebServer7/lib/ant.jar;${java.home}/lib/tools.jar;C:/Sun/Web Server7/lib/ktsearch.jar;C:/Sun/WebServer7/lib/webserv-jstl.jar;C:/Sun/WebServer 7/lib/jsf-impl.jar;C:/Sun/WebServer7/lib/jsf-api.jar;C:/Sun/WebServer7/lib/webse rv-jwsdp.jar;C:/Sun/WebServer7/lib/container-auth.jar;C:/Sun/WebServer7/lib/mail .jar;C:/Sun/WebServer7/lib/activation.jar</server-class-path>

<debug>false</debug>

<debug-jvm-options>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7896</debug-jvm-opt ions>

<jvm-options>-Djava.security.auth.login.config=login.conf</jvm-options >

<jvm-options>-Xms128m -Xmx256m</jvm-options>

</jvm>

<thread-pool>

<max-threads>128</max-threads>

<stack-size>131072</stack-size>

</thread-pool>

<default-auth-db-name>keyfile</default-auth-db-name>

<auth-db>

<name>keyfile</name>

<url>file</url>

<property>

<name>syntax</name>

<value>keyfile</value>

</property>

<property>

<name>keyfile</name>

<value>keyfile</value>

</property>

</auth-db>

<acl-file>default.acl</acl-file>

<mime-file>mime.types</mime-file>

<access-log>

<file>../logs/access</file>

</access-log>

<http-listener>

<name>http-listener-1</name>

<port>80</port>

<server-name>peter-vm2-2003.memphis.edu</server-name>

<default-virtual-server-name>peter-vm2-2003.memphis.edu</default-virtu al-server-name>

</http-listener>

<http-listener>

<name>http-listener-2</name>

<port>83</port>

<server-name>webtest.memphis.edu</server-name>

<default-virtual-server-name>webtest</default-virtual-server-name>

</http-listener>

<http-listener>

<name>http-listener-3</name>

<port>86</port>

<server-name>uc.memphis.edu</server-name>

<default-virtual-server-name>uc</default-virtual-server-name>

</http-listener>

<virtual-server>

<name>peter-vm2-2003.memphis.edu</name>

<http-listener-name>http-listener-1</http-listener-name>

<host>peter-vm2-2003.memphis.edu</host>

<object-file>peter-vm2-2003.memphis.edu-obj.conf</object-file>

<document-root>c:/webprod/temp1</document-root>

<acl-file>peter-vm2-2003.memphis.edu.acl</acl-file>

<access-log>

<file>C:/logs/peter-vm2</file>

<format>%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] "%Req->reqpb.clf-request%" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length% %Req->headers.referer% %Req->headers.user-agent% %Req->reqpb.method% %Req->reqpb.uri% %Req->reqpb.query% %Req->reqpb.protocol% %vsid% </format>

</access-log>

</virtual-server>

<virtual-server>

<name>webtest</name>

<http-listener-name>http-listener-2</http-listener-name>

<host>webtest.memphis.edu</host>

<object-file>webtest-obj.conf</object-file>

<document-root>c:/webprod/webtest</document-root>

<acl-file>webtest.acl</acl-file>

</virtual-server>

<virtual-server>

<name>uc</name>

<http-listener-name>http-listener-3</http-listener-name>

<host>uc.memphis.edu</host>

<object-file>uc-obj.conf</object-file>

<document-root>c:/webprod/uc</document-root>

<access-log>

<file>c:/webprod/logs/uc</file>

<format>%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] "%Req->reqpb.clf-request%" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length% %Req->headers.referer% %Req->headers.user-agent% %Req->reqpb.method% %Req->reqpb.uri% %Req->reqpb.query% %Req->reqpb.protocol% %vsid% </format>

</access-log>

<log-file>c:/webprod/logs/uc</log-file>

</virtual-server>

</server>

And this is my obj.conf for the virtual server "uc-obj.conf"

#

# Copyright 2007 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

#

# You can edit this file, but comments and formatting changes

# might be lost when you use the administration GUI or CLI.

# Use only forward slashes in pathnames as backslashes can cause

# problems. Refer to the documentation for more information.

<Object name="default">

AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"

NameTrans fn="ntrans-j2ee" name="j2ee"

NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/Sun/WebServer7/lib/icons" name="es-internal"

NameTrans fn="home-page" path=""

PathCheck fn="nt-uri-clean"

PathCheck fn="check-acl" acl="default"

PathCheck fn="find-pathinfo"

PathCheck fn="find-index-j2ee"

PathCheck fn="find-index" index-names="index.htm,index.html,home.html,index.jsp"

PathCheck fn="set-cache-control" control="public"

ObjectType fn="type-j2ee"

ObjectType fn="type-by-extension"

ObjectType fn="force-type" type="text/plain"

Service fn="php5_execute" type="magnus-internal/x-httpd-php"

Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"

Service fn="append-trailer" type="text/html" timefmt="%B %d, %Y %I:%M" trailer=""

Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"

Service method="TRACE" fn="service-trace"

Error fn="error-j2ee"

AddLog fn="flex-log"

</Object>

<Object name="j2ee">

Service fn="service-j2ee" method="*"

</Object>

<Object name="es-internal">

PathCheck fn="check-acl" acl="es-internal"

</Object>

<Object name="cgi">

ObjectType fn="force-type" type="magnus-internal/cgi"

Service fn="send-cgi"

</Object>

<Object name="send-precompressed">

PathCheck fn="find-compressed"

</Object>

<Object name="compress-on-demand">

Output fn="insert-filter" filter="http-compression"

</Object>

<Object name="x-httpd-php">

ObjectType fn="force-type" type="magnus-internal/x-httpd-php"

Service fn="php5_execute"

</Object>

ptrwinna at 2007-7-11 15:15:54 > top of Java-index,Web & Directory Servers,Web Servers...
# 5
i got it to work!! woohoo!!! I had to create an access and an error file in the folder on the server that I pointed to under Log Preferences.
ptrwinna at 2007-7-11 15:15:54 > top of Java-index,Web & Directory Servers,Web Servers...