You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Lars Heinemann (JIRA)" <ji...@apache.org> on 2009/02/06 16:13:59 UTC
[jira] Created: (SMX4-205) Logging not fully working with Windows
(Vista?)
Logging not fully working with Windows (Vista?)
-----------------------------------------------
Key: SMX4-205
URL: https://issues.apache.org/activemq/browse/SMX4-205
Project: ServiceMix 4
Issue Type: Bug
Affects Versions: 4.0-m2
Environment: Windows Vista
latest JDK 1.5
Reporter: Lars Heinemann
Fix For: 4.0-m2
The startup output looks like this:
{noformat}
C:\devtools\javakit\apache-servicemix-4.0-m2-SNAPSHOT>bin\servicemix.bat
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [9.0] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
log4j:ERROR Could not instantiate appender named "A1".
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [9.0] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
log4j:ERROR Could not instantiate appender named "A1".
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [9.0] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
log4j:ERROR Could not instantiate appender named "A1".
log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [9.0] whereas object of type
log4j:ERROR "org.apache.log4j.FileAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
log4j:ERROR Could not instantiate appender named "out".
____ _ __ __ _
/ ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
___) | __/ | \ V /| | (_| __/ | | | |> <
|____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
ServiceMix Kernel (1.1.0-SNAPSHOT)
ServiceMix (4.0-m2-SNAPSHOT)
Type 'help' for more information.
--------------------------------------------------------------------------------------------------------------------------
{noformat}
There is no folder ./data/log/ created and therefor also no servicemix.log. Using the shell command log/d works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-205) Logging not fully working with Windows
(Vista?)
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49198#action_49198 ]
Lars Heinemann commented on SMX4-205:
-------------------------------------
This happened with the full smx4 version (freshly built from trunk today).
I wanted to verify that here at home with Windows Vista 64 Home Premium but I ran into another issue.
Maybe I will try to build under Vista and then try again. The archives from dev snapshots as well as a self built version done under Linux didn't worked.
(see SMX4-206)
> Logging not fully working with Windows (Vista?)
> -----------------------------------------------
>
> Key: SMX4-205
> URL: https://issues.apache.org/activemq/browse/SMX4-205
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.0-m2
> Environment: Windows Vista
> latest JDK 1.5
> Reporter: Lars Heinemann
> Fix For: 4.0-m2
>
>
> The startup output looks like this:
> {noformat}
> C:\devtools\javakit\apache-servicemix-4.0-m2-SNAPSHOT>bin\servicemix.bat
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.FileAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "out".
> ____ _ __ __ _
> / ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
> \___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
> ___) | __/ | \ V /| | (_| __/ | | | |> <
> |____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
>
> ServiceMix Kernel (1.1.0-SNAPSHOT)
> ServiceMix (4.0-m2-SNAPSHOT)
>
> Type 'help' for more information.
> --------------------------------------------------------------------------------------------------------------------------
> {noformat}
> There is no folder ./data/log/ created and therefor also no servicemix.log. Using the shell command log/d works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-205) Logging not fully working with Windows
(Vista?)
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49187#action_49187 ]
Guillaume Nodet commented on SMX4-205:
--------------------------------------
It looks like, for some unknown reason, log4j is loaded from the boot classpath instead of the osgi bundle.
I guess there must be a copy of it in your classpath maybe ?
> Logging not fully working with Windows (Vista?)
> -----------------------------------------------
>
> Key: SMX4-205
> URL: https://issues.apache.org/activemq/browse/SMX4-205
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.0-m2
> Environment: Windows Vista
> latest JDK 1.5
> Reporter: Lars Heinemann
> Fix For: 4.0-m2
>
>
> The startup output looks like this:
> {noformat}
> C:\devtools\javakit\apache-servicemix-4.0-m2-SNAPSHOT>bin\servicemix.bat
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.FileAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "out".
> ____ _ __ __ _
> / ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
> \___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
> ___) | __/ | \ V /| | (_| __/ | | | |> <
> |____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
>
> ServiceMix Kernel (1.1.0-SNAPSHOT)
> ServiceMix (4.0-m2-SNAPSHOT)
>
> Type 'help' for more information.
> --------------------------------------------------------------------------------------------------------------------------
> {noformat}
> There is no folder ./data/log/ created and therefor also no servicemix.log. Using the shell command log/d works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SMX4-205) Logging not fully working with Windows
(Vista?)
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Heinemann resolved SMX4-205.
---------------------------------
Resolution: Fixed
You were right, Guillaume.
There was another log4j library in the class path which caused this mess.
> Logging not fully working with Windows (Vista?)
> -----------------------------------------------
>
> Key: SMX4-205
> URL: https://issues.apache.org/activemq/browse/SMX4-205
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.0-m2
> Environment: Windows Vista
> latest JDK 1.5
> Reporter: Lars Heinemann
> Fix For: 4.0-m2
>
>
> The startup output looks like this:
> {noformat}
> C:\devtools\javakit\apache-servicemix-4.0-m2-SNAPSHOT>bin\servicemix.bat
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.FileAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "out".
> ____ _ __ __ _
> / ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
> \___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
> ___) | __/ | \ V /| | (_| __/ | | | |> <
> |____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
>
> ServiceMix Kernel (1.1.0-SNAPSHOT)
> ServiceMix (4.0-m2-SNAPSHOT)
>
> Type 'help' for more information.
> --------------------------------------------------------------------------------------------------------------------------
> {noformat}
> There is no folder ./data/log/ created and therefor also no servicemix.log. Using the shell command log/d works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-205) Logging not fully working with Windows
(Vista?)
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49211#action_49211 ]
Lars Heinemann commented on SMX4-205:
-------------------------------------
So, I finally tried this here with my Vista version and it looks fine. Maybe you are right with the log4j in the classpath. Need to check this next week.
> Logging not fully working with Windows (Vista?)
> -----------------------------------------------
>
> Key: SMX4-205
> URL: https://issues.apache.org/activemq/browse/SMX4-205
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.0-m2
> Environment: Windows Vista
> latest JDK 1.5
> Reporter: Lars Heinemann
> Fix For: 4.0-m2
>
>
> The startup output looks like this:
> {noformat}
> C:\devtools\javakit\apache-servicemix-4.0-m2-SNAPSHOT>bin\servicemix.bat
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.FileAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "out".
> ____ _ __ __ _
> / ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
> \___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
> ___) | __/ | \ V /| | (_| __/ | | | |> <
> |____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
>
> ServiceMix Kernel (1.1.0-SNAPSHOT)
> ServiceMix (4.0-m2-SNAPSHOT)
>
> Type 'help' for more information.
> --------------------------------------------------------------------------------------------------------------------------
> {noformat}
> There is no folder ./data/log/ created and therefor also no servicemix.log. Using the shell command log/d works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-205) Logging not fully working with Windows
(Vista?)
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49191#action_49191 ]
Guillaume Nodet commented on SMX4-205:
--------------------------------------
Does this happen with a simple servicemix kernel or with the whole distribution ? If so, we need to move this issue to SMX4KNL jira project.
> Logging not fully working with Windows (Vista?)
> -----------------------------------------------
>
> Key: SMX4-205
> URL: https://issues.apache.org/activemq/browse/SMX4-205
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.0-m2
> Environment: Windows Vista
> latest JDK 1.5
> Reporter: Lars Heinemann
> Fix For: 4.0-m2
>
>
> The startup output looks like this:
> {noformat}
> C:\devtools\javakit\apache-servicemix-4.0-m2-SNAPSHOT>bin\servicemix.bat
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "A1".
> log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
> log4j:ERROR [9.0] whereas object of type
> log4j:ERROR "org.apache.log4j.FileAppender" was loaded by [sun.misc.Launcher$AppClassLoader@13f5d07].
> log4j:ERROR Could not instantiate appender named "out".
> ____ _ __ __ _
> / ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
> \___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
> ___) | __/ | \ V /| | (_| __/ | | | |> <
> |____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
>
> ServiceMix Kernel (1.1.0-SNAPSHOT)
> ServiceMix (4.0-m2-SNAPSHOT)
>
> Type 'help' for more information.
> --------------------------------------------------------------------------------------------------------------------------
> {noformat}
> There is no folder ./data/log/ created and therefor also no servicemix.log. Using the shell command log/d works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.