[Installation, Configuration & Deployment] - Re: Deployment on custom server
by PeterJ
Based on the information you have provided, the solution is to deploy to default since that works.
But seriously, we cannot help you if you don't tell us what the problem is, and saying 'I changed some stuff and now get exceptions' is not telling us about the problem. So provide the following:
1) How did you create your custom configuration? Via the installer? If so, what options did you select? If you started with one of the standard configurations (all, default, minimal) and added/removed files, what did you start with and what did you remove?
2) What exceptions are you getting? Usually you need to look only at the first exception, and its 'caused by' exception, if there is one.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008353#4008353
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008353
19 years, 2 months
[Installation, Configuration & Deployment] - JBoss log4j Update Required?
by russray
I am can not seem to get by this error involving the logging with JBOSS. Presently the TOmCat portion of my application is not logging at ALL. I have server the war file to ensure the log4j and commons-logging jar files are removed, but I am still not able to log from the Web portion.
| [09:25:50,099] [INFO ] [TomcatDeployer] [deploy, ctxPath=/EXPAGWeb, warUrl=.../deploy/EXPAG.ear/EXPAGWeb.war/]
| [09:25:50,849] [ERROR] [STDERR] [log4j:ERROR Could not create an Appender. Reported error follows.]
| [09:25:50,849] [ERROR] [STDERR] [java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender cannot be cast to org.apache.log4j.Appender]
|
My two file appenders:
1:
| <!-- A time/date based rolling appender -->
| <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/server.log"/>
| <param name="Append" value="false"/>
|
| <!-- Rollover at midnight each day -->
| <param name="DatePattern" value="'.'yyyy-MM-dd"/>
|
| <!-- Rollover at the top of each hour
| <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
| -->
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="[%d] [%-5p] [%c] [%m]%n"/>
| <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
| <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
| -->
| </layout>
| </appender>
|
2:
|
| <!-- A time/date based rolling appender -->
| <appender name="MYAPP" class="org.jboss.logging.appender.DailyRollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.home.dir}/log/myapp.log"/>
| <param name="Append" value="false"/>
|
|
| <!-- Rollover at midnight each day -->
| <param name="DatePattern" value="'.'yyyy-MM-dd"/>
|
| <!-- Rollover at the top of each hour
| <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
| -->
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="[%d][%t] [%5p] [%m]%n"/>
| </layout>
| </appender>
|
Any recommendations would be greatly appreciated.
Russ
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008350#4008350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008350
19 years, 2 months