[Installation, Configuration & DEPLOYMENT] - Re: Logging
by jwilleke
Try this again.
Yes, I added my appender to .../jboss/conf/log4j.xml
My Appender looks as below.
Thanks
-jim
|
| <appender name="APASS" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.home.dir}/log/apass.log"/>
| <param name="Append" value="false"/>
| <param name="MaxFileSize" value="5000KB"/>
| <param name="MaxBackupIndex" value="10"/>
| <param name="Threshold" value="DEBUG"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %p %c %C{1} %M(%L) %m%n"/>
| </layout>
| </appender>
|
|
| <category name="APASSfileLogger" additivity="false">
| <priority value="DEBUG" />
| <appender-ref ref="APASS"/>
| </category>
|
| <root>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="FILE"/>
| <appender-ref ref="APASS"/>
| </root>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144845#4144845
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144845
18 years, 3 months
[JBoss Portal] - custom-window-state
by tinico
Hi,
I've read lot of pages about that... But When I want to reproduce all what I've read, it doesn't work... That why I post a new subject in order to help me...
The problem : I just want to add a custom-window-state called "solo" (in order to display the portlet on page without any other portlet, header, footer, etc...).
I've add the following lines on my application portlet.xml :
| ...
| <custom-window-state>
| <window-state>solo</window-state>
| </custom-window-state>
| </portlet-app>
|
On the *-object.xml, I've added :
| ...
| <supported-modes>
| <mode>view</mode>
| <mode>edit</mode>
| <mode>help</mode>
| <mode>admin</mode>
| </supported-modes>
| ...
|
On all my personal layout, I've add :
| <layout>
| <name>HGPP-Layout-4R</name>
| <uri>/layouts/HGPP-Layout-4R/index.jsp</uri>
| <uri state="maximized">/layouts/generic/maximized.jsp</uri>
| <uri state="solo">/layouts/generic/solo.jsp</uri>
| <regions>
| <region name="top"/>
| <region name="LeftColumn"/>
| <region name="RightColumn"/>
| <region name="bottom"/>
| </regions>
| </layout>
|
And I declare my /layouts/generic/solo.jsp like that :
| <%@ page import="org.jboss.portal.server.PortalConstants"%>
| <%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p" %>
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml">
| <head>
| <title>Printed Mode</title>
| <meta http-equiv="Content-Type" content="text/html;"/>
| <!-- to correct the unsightly Flash of Unstyled Content. -->
| <script type="text/javascript"></script>
| <!-- inject the theme; default to the HGPP-Theme theme if nothing is selected for the portal or the page -->
| <p:theme themeName='Printed-Theme'/>
| <!-- inject header content that was generated by the portlets on the requested page -->
| <p:headerContent/>
| </head>
|
| <body id="body">
| <p:region regionName='solo' regionID='regionSolo' />
| </body>
| </html>
|
I've declare a "Printed-Theme" without header, and in the css, I've add
| .portlet-mode-solo {
| background-image: url( images/ico_16_maximize.gif );
| background-repeat: no-repeat;
| width: 16px;
| height: 16px;
| float: left;
| display: inline;
| cursor: pointer;
| padding-left: 3px;
| }
|
| .portlet-mode-solo:hover {
| text-decoration: none;
| }
|
My application is like that :
| + layouts
| + generic
| + solo.jsp
| + maximized.jsp
| + ...
| + themes
| + Printed-Theme
| + images
| + portal_styles.css
| + ...
| + WEB-INF
| + *.layouts.xml
| + *.themes.xml
| + porlets-object.xml
|
The problem is : the state "solo" doesn't work... The render is like "normal" state and I havn't any error message...
Thank you in advance for your help !!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144837#4144837
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144837
18 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Strange deployment problem: DatabasePersistencePolicy.listTi
by JavaDeveloperX
I have three JBoss app server, all version 4.2.1 GA. My project deploys on two of them, but on the third I get the following error. All server use the same data source. I get the error for three different EJB components, all others are correctly installed.
2008-04-16 15:24:10,303 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: com.company.TAPS.action.UserSessionHandlerBean ejbName: UserSessionHandlerBean
| 2008-04-16 15:24:10,393 INFO [org.jboss.ejb3.JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
| 2008-04-16 15:24:10,393 INFO [org.jboss.ejb3.JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=TAPS.ear,jar=TAPS-ejb.jar,name=FeedbackOrderSearchingAction,service=EJB3 with dependencies:
| 2008-04-16 15:24:10,413 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: com.company.TAPS.action.FeedbackOrderSearchingAction ejbName: FeedbackOrderSearchingAction
| 2008-04-16 15:24:10,421 INFO [org.jboss.ejb3.JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 2008-04-16 15:24:10,422 INFO [org.jboss.ejb3.JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=TAPS.ear,jar=TAPS-ejb.jar,name=ImportExportDAO,service=EJB3 with dependencies:
| 2008-04-16 15:24:10,422 INFO [org.jboss.ejb3.JmxKernelAbstraction] persistence.units:ear=TAPS.ear,jar=TAPS-ejb.jar,unitName=TAPS
| 2008-04-16 15:24:10,443 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: com.company.TAPS.dao.ImportExportDAO ejbName: ImportExportDAO
| 2008-04-16 15:24:10,471 INFO [org.jboss.ejb3.EJBContainer] STOPPED EJB: com.company.TAPS.dao.ImportExportDAO ejbName: ImportExportDAO
| 2008-04-16 15:24:10,471 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:ear=TAPS.ear,jar=TAPS-ejb.jar,name=ImportExportDAO,service=EJB3
| java.lang.NullPointerException
| at org.jboss.ejb.txtimer.DatabasePersistencePolicy.listTimerHandles(DatabasePersistencePolicy.java:165)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy31.listTimerHandles(Unknown Source)
| at org.jboss.ejb.txtimer.EJBTimerServiceImpl.restoreTimers(EJBTimerServiceImpl.java:408)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:291)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy429.restoreTimers(Unknown Source)
| at org.jboss.ejb3.timerservice.jboss.JBossTimerServiceFactory.restoreTimerService(JBossTimerServiceFactory.java:120)
| at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:98)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor998.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy398.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy34.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy35.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy10.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144834#4144834
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144834
18 years, 3 months