You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Martin L <pm...@gmail.com> on 2009/09/09 15:39:08 UTC

No localhost logging in solaris

I use this logging.properties file to configure java util logging in tomcat.
When a servlet throws a ServletException in the init() method it is shown in
the file localhost.<date>.log like this:
INFO: startup: WCES: admin started
2009-sep-09 13:44:56 org.apache.catalina.core.ApplicationContext log
INFO: startup: WCES: Initializing data access before log4j...
2009-sep-09 13:44:56 org.apache.catalina.core.ApplicationContext log
INFO: startup: WCES home
path:E:\Projects\Workspaces\Wces\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\wcesAdmin\WEB-INF
2009-sep-09 13:44:57 org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /wcesAdmin threw load() exception
javax.servlet.ServletException: Bad data for parameter 'uploadDir',
directory did not exist: /WEB-INF/config2

This works perfectly in windows, but when I do the same thing in solaris
(same properties file) the localhost.<date>.log file is empty. Tomcat does
not write anything in the file. Does anyone knows what the problem is?
Regards
/Martin

Tomcat version on solaris : 5.5.27
The logging.properties file:
http://www.nabble.com/file/p25365227/logging.properties logging.properties 
-- 
View this message in context: http://www.nabble.com/No-localhost-logging-in-solaris-tp25365227p25365227.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: No localhost logging in solaris

Posted by Rainer Jung <ra...@kippdata.de>.
Shot in the dark: Is it left over from a previous test with another user
(permission problem)?

On 09.09.2009 21:43, Martin L wrote:
> 
> The file is created, but it is empty. 
> The file catalina.<date>.log is also created and Tomcat writes to it.
> /Martin
> 
> 
> JoshInWV wrote:
>>
>> Isn't Solaris based on a Unix kernel? try \ instead of the / for your
>> directory designators.
>>
>> On Wed, Sep 9, 2009 at 9:39 AM, Martin L <pm...@gmail.com> wrote:
>>
>>>
>>> I use this logging.properties file to configure java util logging in
>>> tomcat.
>>> When a servlet throws a ServletException in the init() method it is shown
>>> in
>>> the file localhost.<date>.log like this:
>>> INFO: startup: WCES: admin started
>>> 2009-sep-09 13:44:56 org.apache.catalina.core.ApplicationContext log
>>> INFO: startup: WCES: Initializing data access before log4j...
>>> 2009-sep-09 13:44:56 org.apache.catalina.core.ApplicationContext log
>>> INFO: startup: WCES home
>>>
>>> path:E:\Projects\Workspaces\Wces\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\wcesAdmin\WEB-INF
>>> 2009-sep-09 13:44:57 org.apache.catalina.core.StandardContext
>>> loadOnStartup
>>> SEVERE: Servlet /wcesAdmin threw load() exception
>>> javax.servlet.ServletException: Bad data for parameter 'uploadDir',
>>> directory did not exist: /WEB-INF/config2
>>>
>>> This works perfectly in windows, but when I do the same thing in solaris
>>> (same properties file) the localhost.<date>.log file is empty. Tomcat
>>> does
>>> not write anything in the file. Does anyone knows what the problem is?
>>> Regards
>>> /Martin
>>>
>>> Tomcat version on solaris : 5.5.27
>>> The logging.properties file:
>>> http://www.nabble.com/file/p25365227/logging.properties
>>> logging.properties
>>> --
>>> View this message in context:
>>> http://www.nabble.com/No-localhost-logging-in-solaris-tp25365227p25365227.html
>>> Sent from the Tomcat - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: No localhost logging in solaris

Posted by Martin L <pm...@gmail.com>.
The file is created, but it is empty. 
The file catalina.<date>.log is also created and Tomcat writes to it.
/Martin


JoshInWV wrote:
> 
> Isn't Solaris based on a Unix kernel? try \ instead of the / for your
> directory designators.
> 
> On Wed, Sep 9, 2009 at 9:39 AM, Martin L <pm...@gmail.com> wrote:
> 
>>
>> I use this logging.properties file to configure java util logging in
>> tomcat.
>> When a servlet throws a ServletException in the init() method it is shown
>> in
>> the file localhost.<date>.log like this:
>> INFO: startup: WCES: admin started
>> 2009-sep-09 13:44:56 org.apache.catalina.core.ApplicationContext log
>> INFO: startup: WCES: Initializing data access before log4j...
>> 2009-sep-09 13:44:56 org.apache.catalina.core.ApplicationContext log
>> INFO: startup: WCES home
>>
>> path:E:\Projects\Workspaces\Wces\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\wcesAdmin\WEB-INF
>> 2009-sep-09 13:44:57 org.apache.catalina.core.StandardContext
>> loadOnStartup
>> SEVERE: Servlet /wcesAdmin threw load() exception
>> javax.servlet.ServletException: Bad data for parameter 'uploadDir',
>> directory did not exist: /WEB-INF/config2
>>
>> This works perfectly in windows, but when I do the same thing in solaris
>> (same properties file) the localhost.<date>.log file is empty. Tomcat
>> does
>> not write anything in the file. Does anyone knows what the problem is?
>> Regards
>> /Martin
>>
>> Tomcat version on solaris : 5.5.27
>> The logging.properties file:
>> http://www.nabble.com/file/p25365227/logging.properties
>> logging.properties
>> --
>> View this message in context:
>> http://www.nabble.com/No-localhost-logging-in-solaris-tp25365227p25365227.html
>> Sent from the Tomcat - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/No-localhost-logging-in-solaris-tp25365227p25371970.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: No localhost logging in solaris

Posted by Josh Gooding <jo...@gmail.com>.
Isn't Solaris based on a Unix kernel? try \ instead of the / for your
directory designators.

On Wed, Sep 9, 2009 at 9:39 AM, Martin L <pm...@gmail.com> wrote:

>
> I use this logging.properties file to configure java util logging in
> tomcat.
> When a servlet throws a ServletException in the init() method it is shown
> in
> the file localhost.<date>.log like this:
> INFO: startup: WCES: admin started
> 2009-sep-09 13:44:56 org.apache.catalina.core.ApplicationContext log
> INFO: startup: WCES: Initializing data access before log4j...
> 2009-sep-09 13:44:56 org.apache.catalina.core.ApplicationContext log
> INFO: startup: WCES home
>
> path:E:\Projects\Workspaces\Wces\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\wcesAdmin\WEB-INF
> 2009-sep-09 13:44:57 org.apache.catalina.core.StandardContext loadOnStartup
> SEVERE: Servlet /wcesAdmin threw load() exception
> javax.servlet.ServletException: Bad data for parameter 'uploadDir',
> directory did not exist: /WEB-INF/config2
>
> This works perfectly in windows, but when I do the same thing in solaris
> (same properties file) the localhost.<date>.log file is empty. Tomcat does
> not write anything in the file. Does anyone knows what the problem is?
> Regards
> /Martin
>
> Tomcat version on solaris : 5.5.27
> The logging.properties file:
> http://www.nabble.com/file/p25365227/logging.properties logging.properties
> --
> View this message in context:
> http://www.nabble.com/No-localhost-logging-in-solaris-tp25365227p25365227.html
> Sent from the Tomcat - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>