Using OPS with JBoss 4.0.4

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Using OPS with JBoss 4.0.4

Brian Weaver-4
Hi,

I'm having some problems getting OPS to work with JBoss 4.0.4 GA. I
followed the installation instructions in the OPS documentation, but I
think there is a class loader problem. Has anyone had any luck getting
OPS to run in JBoss?

Here is the errror that's occuring:

10:04:49,172 INFO  [TomcatDeployer] deploy, ctxPath=/ops,
warUrl=.../deploy/ops.war/
10:04:52,647 INFO  [STDOUT] log4j:INFO Using URL
[file:/tmp/jbossAS/server/default/conf/log4j.xml] for automatic log4j
configuration of repository named [default].
10:04:53,722 ERROR [STDERR] log4j:ERROR A
"org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable
to a "org.apache.log4j.spi.ErrorHandler" variable.
10:04:53,722 ERROR [STDERR] log4j:ERROR The class
"org.apache.log4j.spi.ErrorHandler" was loaded by
10:04:53,722 ERROR [STDERR] log4j:ERROR
[org.jboss.mx.loading.UnifiedClassLoader3@6c570c{
url=file:/tmp/jbossAS/server/default/deploy/ops.war/ ,addedOrder=31}]
whereas obj
ect of type
10:04:53,723 ERROR [STDERR] log4j:ERROR
"org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by
[org.jboss.system.server.NoAnnotationURLClassLoader@19616c7].
10:04:53,734 INFO  [STDOUT] log4j-internal: 0 xml.DOMConfigurator    -
Handling nested <layout> for appender CONSOLE
10:04:53,734 INFO  [STDOUT] log4j-internal: 0 config.PropertySetter  -
Found setter method for property [layout] in class
org.apache.log4j.ConsoleAppender
10:04:53,735 INFO  [STDOUT] log4j-internal: 1 xml.DOMConfigurator    -
Will instantiate instance of class [org.apache.log4j.PatternLayout]
10:04:53,818 INFO  [STDOUT] log4j-internal: 84 config.PropertySetter
- Set child component of type [org.apache.log4j.PatternLayout] for
[org.apache.log4j.ConsoleAppender]
.
10:04:53,819 ERROR [STDERR] log4j:ERROR Could not create an Appender.
Reported error follows.
10:04:53,819 ERROR [STDERR] java.lang.ClassCastException:
org.jboss.logging.appender.DailyRollingFileAppender
10:04:53,821 ERROR [STDERR]     at
org.apache.log4j.xml.DOMConfigurator.parseAppender(Unknown Source)
10:04:53,821 ERROR [STDERR]     at
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(Unknown
Source)
10:04:53,821 ERROR [STDERR]     at
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(Unknown
Source)
10:04:53,821 ERROR [STDERR]     at
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(Unknown
Source)
10:04:53,822 ERROR [STDERR]     at
org.apache.log4j.xml.DOMConfigurator.parseRoot(Unknown Source)
10:04:53,822 ERROR [STDERR]     at
org.apache.log4j.xml.DOMConfigurator.parse(Unknown Source)
10:04:53,822 ERROR [STDERR]     at
org.apache.log4j.xml.DOMConfigurator.doConfigure(Unknown Source)
10:04:53,822 ERROR [STDERR]     at
org.apache.log4j.xml.DOMConfigurator.doConfigure(Unknown Source)
10:04:53,823 ERROR [STDERR]     at
org.apache.log4j.xml.DOMConfigurator.doConfigure(Unknown Source)
10:04:53,823 ERROR [STDERR]     at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:521)
10:04:53,823 ERROR [STDERR]     at
org.apache.log4j.helpers.IntializationUtil.initialConfiguration(IntializationUtil.java:86)


--

/* insert witty comment here */



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Using OPS with JBoss 4.0.4

Erik Bruchez
Administrator
Brian,

An issue has been reported with 4.0.4 in the past, see this bug:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=305894&group_id=168&atid=350207

It looks like things worked fine with 4.0.2.

Your logs below seem to point to an issue with log4j. Try removing the
OPS log4j JAR and see if you have any luck.

-Erik

Brian Weaver wrote:

> Hi,
>
> I'm having some problems getting OPS to work with JBoss 4.0.4 GA. I
> followed the installation instructions in the OPS documentation, but I
> think there is a class loader problem. Has anyone had any luck getting
> OPS to run in JBoss?
>
> Here is the errror that's occuring:
>
> 10:04:49,172 INFO  [TomcatDeployer] deploy, ctxPath=/ops,
> warUrl=.../deploy/ops.war/
> 10:04:52,647 INFO  [STDOUT] log4j:INFO Using URL
> [file:/tmp/jbossAS/server/default/conf/log4j.xml] for automatic log4j
> configuration of repository named [default].
> 10:04:53,722 ERROR [STDERR] log4j:ERROR A
> "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable
> to a "org.apache.log4j.spi.ErrorHandler" variable.
> 10:04:53,722 ERROR [STDERR] log4j:ERROR The class
> "org.apache.log4j.spi.ErrorHandler" was loaded by
> 10:04:53,722 ERROR [STDERR] log4j:ERROR
> [org.jboss.mx.loading.UnifiedClassLoader3@6c570c{
> url=file:/tmp/jbossAS/server/default/deploy/ops.war/ ,addedOrder=31}]
> whereas obj
> ect of type
> 10:04:53,723 ERROR [STDERR] log4j:ERROR
> "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by
> [org.jboss.system.server.NoAnnotationURLClassLoader@19616c7].
> 10:04:53,734 INFO  [STDOUT] log4j-internal: 0 xml.DOMConfigurator    -
> Handling nested <layout> for appender CONSOLE
> 10:04:53,734 INFO  [STDOUT] log4j-internal: 0 config.PropertySetter  -
> Found setter method for property [layout] in class
> org.apache.log4j.ConsoleAppender
> 10:04:53,735 INFO  [STDOUT] log4j-internal: 1 xml.DOMConfigurator    -
> Will instantiate instance of class [org.apache.log4j.PatternLayout]
> 10:04:53,818 INFO  [STDOUT] log4j-internal: 84 config.PropertySetter
> - Set child component of type [org.apache.log4j.PatternLayout] for
> [org.apache.log4j.ConsoleAppender]
> .
> 10:04:53,819 ERROR [STDERR] log4j:ERROR Could not create an Appender.
> Reported error follows.
> 10:04:53,819 ERROR [STDERR] java.lang.ClassCastException:
> org.jboss.logging.appender.DailyRollingFileAppender
> 10:04:53,821 ERROR [STDERR]     at
> org.apache.log4j.xml.DOMConfigurator.parseAppender(Unknown Source)
> 10:04:53,821 ERROR [STDERR]     at
> org.apache.log4j.xml.DOMConfigurator.findAppenderByName(Unknown
> Source)
> 10:04:53,821 ERROR [STDERR]     at
> org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(Unknown
> Source)
> 10:04:53,821 ERROR [STDERR]     at
> org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(Unknown
> Source)
> 10:04:53,822 ERROR [STDERR]     at
> org.apache.log4j.xml.DOMConfigurator.parseRoot(Unknown Source)
> 10:04:53,822 ERROR [STDERR]     at
> org.apache.log4j.xml.DOMConfigurator.parse(Unknown Source)
> 10:04:53,822 ERROR [STDERR]     at
> org.apache.log4j.xml.DOMConfigurator.doConfigure(Unknown Source)
> 10:04:53,822 ERROR [STDERR]     at
> org.apache.log4j.xml.DOMConfigurator.doConfigure(Unknown Source)
> 10:04:53,823 ERROR [STDERR]     at
> org.apache.log4j.xml.DOMConfigurator.doConfigure(Unknown Source)
> 10:04:53,823 ERROR [STDERR]     at
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:521)
>
> 10:04:53,823 ERROR [STDERR]     at
> org.apache.log4j.helpers.IntializationUtil.initialConfiguration(IntializationUtil.java:86)
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws