Configuring Log4j within a Portal WAR

I'm having difficulty setting up log4j through commons-logging within my portal WAR project.
I've put commons-logging.jar, and log4j.jar in my WEB-INF/lib directory and made sure my log4j.properties file is in the classpath. However, when I run the application, the logging occurs based on the settings defined in the Admin Console. Regardless of what I have defined in the log4j.properties file, the server seems to take priority.
Can this be changed? If so, how?
Thanks,
Dan

Dan,
I had a similar problem because I wanted to define my own log4j config regardless of what other portal apps were deployed in the BEA domain or what log4j was the default for the domain. This is what I do:
1) Put your log4j config file in the WEB-INF classes dir (or I guess it could be in some other place that the CLASSPATH knows of)
2) Create a servlet that looks like:
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.log4j.xml.*;
public class Log4jInitServlet extends HttpServlet {
private static final long serialVersionUID = 23456;
public void init(ServletConfig config) throws ServletException {
super.init(config);
DOMConfigurator.configure(Thread.currentThread().getContextClassLoader().getResource("myLog4jConfigFile.xml"));
public void doGet(HttpServletRequest req, HttpServletResponse resp) {
3) Add the servlet definition in the web.xml and add a <load-on-startup>1</load-on-startup>
That should do it.
- Peter

Similar Messages

  • Log4J with weblogic Portal 9.2

    Can anybody have sample process to configure Log4J with weblogic Portal 9.2?
    Sample code alongwith log4jConfig.xml and other required jsr files would be helpful.
    I want to store all the log messages to defult weblogic dirctory. i.e base_doman\servers\AdminServer\logs

    Do you want your app to log messages using log4j (in which case the setup is no different in WLP than with any other app using log4j, read the log4j docs) or do you want weblogic server messages to be sent to Log4j?

  • MSS Configuration within SAP Portal

    Hi!
    I have successfuly set up ESS for SAP ECC 6.0 IDES system within SAP Portal 7.0.
    Now I would like to set up MSS scenario.
    How to set up the following MSS functions?
    - Team
    - Budget
    - Project
    - Planing and Peporting
    The errors I currently get by executing these functions:
    Error loading template 0TPLS_0PA_C01_Q0110_V02_C
    Which SAP course covers MSS?
    Thank you very much!
    regards
    Jürgen

    Hi
    This SAP Course Covers ESS/MSS.
    HR290 ESS/MSS System Configuration
    Check  these [Details|http://www.sap.com/services/education/catalog/course.epx?context=%5B%5B%7CHR290%7C%7C%7C073%7CG%5D%5D%7C]
    Regards
    Rajendra

  • Configure log4j to write to different log files conditionally

    Hi folks,
    Is there is way log4j could be configured to write to multiple log files conditionally? Let me try to explain what i am trying to do.
    I have two classes DatabaseChecker and FTPChecker extends Checker class. Within Checker class, there is a method logTestResult(CheckerType c, boolean isFailed, int retry, int isMaxRetryExceeded). Depending on the CheckerType(database or FTP), I need to write log outputs to different files (dbchecker.log or ftpchecker.log). How do i configure log4j to do this?
    I've seen how to configure log4j based on classes from different package, but not sure on this one. Any clue would be much appreciated.

    lgmqy2000 wrote:
    I have two classes DatabaseChecker and FTPChecker extends Checker class. Within Checker class, there is a method logTestResult(CheckerType c, boolean isFailed, int retry, int isMaxRetryExceeded). Depending on the CheckerType(database or FTP), I need to write log outputs to different files (dbchecker.log or ftpchecker.log). How do i configure log4j to do this?
    if (checker.isType(CheckerType.DATABASE)) {
        dbLogger.info(someMessage);
    } else if (checker.isType(CheckerType.FTP)) {
        ftpLogger.info(someMessage);
    } else {
        defaultLogger.info(someMessage);
    }~

  • Want to Generate custom logs with Log4J within Java Embedding activity

    Hi Gurus,
    i want to Generate custom logs with Log4J within Java Embedding activity. For that i have performed some steps, but the log file has not been created.
    ServerSide Configuration:
    *===============*
    1. I have copied the log4j-1.2.15.jar file to the "oracle.soa.ext_11.1.1" location and recreate the oracle.soa.ext.jar file using an-script, which appends the log4j.jar file to the classpath.( That was created successfully)
    2. Specify a File location in log4j.xml for creating the log file. (e.g. (<middleware_home>/config/customLog.log)
    3. Then create a folder and add log4j.xml and log4j.dtd file under the folder.
    4. Modify the startManagedWeblogicServer by adding JAVA_OPTIONS="-Dlog4j.configuration=<middleware_home>/config/log4j.debug.xml”
    5. Then restart the SOA server.
    log4j.xml :
    I have used fileAppender.
    DevelopmentSide Configuration:
    *===================*
    1. Create synchronous BPEL process and Add "JAVA Embedding Activity" inbetween receiveInput and replyOutput activity.
    2.Import the log4j-1.2.15.jar to the project libs
    3.In the BPEL source code, import the Logger class.
    4.Insert the code in the JAVA Embedding Activity
    Logger logger = Logger.getLogger("CustomLog");
    logger.info("CustomeLog " + getTitle());
    Compile and deploy the project into the SOA_server and test it. Test status is completed but log is not created in the mentioned location.
    Ref: http://blog.andrade.inf.br/search/label/Log4j
    Is there any other way to achieve this requirement. Please suggest.
    Thanks in Advance,
    Sharmistha

    You can try this.
    http://veejai24.blogspot.co.uk/2008/04/simple-way-to-implement-log4j-in-your.html
    Thanks,
    Vijay

  • Steps to configuring log4j with plain text file

    can anyone help me with the steps involved with configuring log4j with a plain text configuration file...Where should log4j.properties file be stored?.....do you have a simple example of a config file using a file appender?.....do I have to make changes within the startWebLogic.cmd script?.....Is it possible for you to lay out the procedure for me to begin logging?.....nothing I have tried thus far has worked.....Any help you may be able to provide will be greatly appreciated.

    i am using sun jsf implementaion version 1.2
    can i know do we need to specify anything for application bean to be called. beacause when i tried to print in sample application also my log was not getting printed.
    i have mentioned in my managed bean
    <managed-bean>
    <managed-bean-name>ApplicationBean1</managed-bean-name>
    <managed-bean-class>webapplication3.ApplicationBean1</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    i my page class
    protected webapplication3.ApplicationBean1 getApplicationBean1() {
    return (webapplication3.ApplicationBean1)getBean("ApplicationBean1");
    can i know why it is not getting called.

  • Configure page in Azure portal does not load

    Hi,
    Whenever I try to load the "Configure" tab/view of my Mobile Service the page never stops loading. I can see some information in the background but I cannot change anything since it never stops loading. I have waited a couple of weeks if this was
    something temporary but it seems permanent. I do not want to recreate my mobile service and my plan (MSDN sub) does not include the regular support within the portal.
    Here is a pic, describing the problem: http://tinypic.com/r/2dqvqc1/8
    Any ideas?

    It's possible that your mobile services has gotten into a bad state. Does the same thing happen if you create a new mobile service and use the Configure tab?  Also, can you access other tabs for your service?
    Either way, please email us your subscription ID and mobile service name to [email protected], and we'll investigate.

  • Recommended configuration for load balanced Portal with load balancer, multiple gateways and multiple servers.

    Does anyone have a recommended network, hardware and software configuration guide for a Portal installation running with multiple gateways load balanced (ie one URL) that talk to multiple servers?

    David,
    We've used Resonate (software) to load balance the gateways. It allows
    you to group all the gateways under 1 virtual URL and load balance the
    incoming connections over each gateway depending on the rules that you
    define in Resonate. Look in the SUN portal whitepapers there is one that
    talks about it specifically.
    As far as load balancing the calls to the portals, the gateways will
    automatically load balance across all the portals that they know about
    using a simple round-robin rotation. You may be able to use Resonate in
    front of the portals but you may need to activate persistance within
    Resonate to ensure that the user always ends up on the portal that he
    established his initial connection on (if you want that), check with Sun
    on this one.
    David Broeren wrote:
    Recommended configuration for load balanced Portal with load balancer,
    multiple gateways and multiple servers.
    Does anyone have a recommended network, hardware and software
    configuration guide for a Portal installation running with multiple
    gateways load balanced (ie one URL) that talk to multiple servers?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • How to configure log4J ?

    Hi All,
    Can anyone please let me know how to configure log4J in portal?
    I searched in sdn, help.sap and market place, but in vain. Could n't really get any help.
    Thanks in advance
    -Sudheer

    Hi Kathik,
    That's pretty much not very different from configuring log4j in another IDE. Look at the documentation website of the Log4J project, see: http://logging.apache.org/log4j/docs/documentation.html.
    You can find a good intro at: http://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/log4j/log4j.html.
    You could also use the logging mechanism of the Java SE.
    Ronald

  • Configuring log4j in jboss ??

    Hi All,
    i am using jboss.i need to configure log4j with my log4j.properties file.
    i did for this is ..
    1) under WEB-INF i created one xml file named ,jboss-web.xml. under this..
    <jboss-web>
    <class-loading java2ClassLoadingCompliance="false">
    <loader-repository>
         com.WIL:loader=WIL.war
    <loader-repository-config>java2ParentDelegation=false</loader- repository-config>
    </loader-repository>
    </class-loading>
    </jboss-web>
    2) raname \server\default\conf\log4j.xml to jboss-log4j.xml
    3) change in \server\default\conf\jboss-service.xml ......... reource:log4j.xml to resource:jboss-log4j.xml
    <mbean code="org.jboss.logging.Log4jService"
    name="jboss.system:type=Log4jService,service=Logging">
    <attribute name="ConfigurationURL">resource:jboss-log4j.xml</attribute>
    4) write log4j.properties...
    log4j.rootCategory=DEBUG, Default
    log4j.appender.Default=org.apache.log4j.FileAppender
    log4j.appender.Default.File=c:/newLog.log
    log4j.appender.Default.layout=org.apache.log4j.PatternLayout
    log4j.appender.Default.layout.ConversionPattern=%d{DATE} %-5p: %m%n
    log4j.appender.Default.Append=false
    i restarted the jboss server.
    Every time i am getting ClassCastException..
    java.lang.ClassCastException
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1001)
    can anybody solve this. it is very urgent.
    Thanks in advance.

    In my web.xml i wrote like this..
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>Times Warner Cable</display-name>
    <servlet>
         <servlet-name>RequestHandler</servlet-name>
         <servlet-class>com.mportal.twc.wil.controller.RequestHandler</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
         <servlet-name>RequestHandler</servlet-name>
         <url-pattern>/RequestHandler/*</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>com.mportal.twc.wil.common.WILSessionListener</listener-class>
    </listener>
    </web-app>
    i need Request Handler class has to be load on start up.
    when i started jboss server i am getting exception..
    08:53:20,750 INFO [TomcatDeployer] deploy, ctxPath=/WIL, warUrl=file:/C:/jboss-3.2.8.SP1/server/default/deploy/WIL.war/
    08:53:22,578 INFO [Engine] StandardContext[WIL]Marking servlet RequestHandler as unavailable
    08:53:22,578 ERROR [Engine] StandardContext[WIL]Servlet /WIL threw load() exception
    javax.servlet.ServletException: Class com.mportal.twc.wil.controller.RequestHandler is not a Servlet
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1005)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4017)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
    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:324)
    at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:163)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.apache.catalina.core.StandardContext.init(StandardContext.java:5456)
    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:324)
    at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:163)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:288)
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:98)
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:334)
    at org.jboss.web.WebModule.startModule(WebModule.java:83)
    at org.jboss.web.WebModule.startService(WebModule.java:61)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:968)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:404)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
    at $Proxy27.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:371)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:841)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:653)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
    at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
    at $Proxy7.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:316)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:490)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:213)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:286)
    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:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:968)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:404)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:263)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:841)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:653)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:600)
    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:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:462)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:353)
    at org.jboss.Main.boot(Main.java:201)
    at org.jboss.Main$1.run(Main.java:459)
    at java.lang.Thread.run(Thread.java:534)
    08:53:22,578 ERROR [Engine] ----- Root Cause -----
    java.lang.ClassCastException
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1001)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4017)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
    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:324)
    at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:163)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.apache.catalina.core.StandardContext.init(StandardContext.java:5456)
    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:324)
    at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:163)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:288)
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:98)
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:334)
    at org.jboss.web.WebModule.startModule(WebModule.java:83)
    at org.jboss.web.WebModule.startService(WebModule.java:61)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:968)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:404)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
    at $Proxy27.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:371)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:841)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:653)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
    at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
    at $Proxy7.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:316)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:490)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:213)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:286)
    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:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:968)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:404)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:263)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:841)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:653)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:600)
    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:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:462)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:353)
    at org.jboss.Main.boot(Main.java:201)
    at org.jboss.Main$1.run(Main.java:459)
    at java.lang.Thread.run(Thread.java:534)
    Can Plaease give me solution.It is very urgent..

  • How to configur log4j logging for weblogic 10.1

    Hi,
    I am tried to set log4j logging for my application running in weblogic 10.1. I set a log4j.properties file and loaded the properties by a servlet. Where its load the properties files and configure it by PropertyConfigurator.
    The same logic has worked out in websphere. But in weblogic, it is not working. I set the server logging and domain logging to Log4j in Admin console. Now it is writing all the log statements.
    If i write a property for a package to Error level and root level is Debug. Its not working, all debug statements are getting written.
    Can you please tell me the steps to configure log4j logging in weblogic 10.1.
    Thanks & Regards,
    Nasrin.N

    Did you manage to get this working?
    If yes ... what did you do?
    I am having the same problem implementing commons-logging with log4j

  • Using Log4J in a Portal Application

    I am using Log4J in my portal app, but no log messages are getting printed. Here
    is what I am doing -
    In a Pageflow I have the following code
    public static final String CLASS_ID = MyPageFlow.class.getName() + " - ";
    private static Logger logger = Logger.getLogger(MyPageFlow.class.getName());
    In the begin method I have -
    logger.debug(CLASS_ID+"In Begin Action");
    Then in my startWebLogic.cmd I have
    set LOG4J=-Dlog4j.config=myconfig\log4j.properties
    And I add this to the start line
    Here is my log4j.properties file
    log4j.rootLogger=debug, stdout, R
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    # Pattern to output the caller's file name and line number.
    log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=logs/myspt.log
    log4j.appender.R.MaxFileSize=1000KB
    log4j.appender.R.MaxBackupIndex=100
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
    What could be wrong?
    Thanks in advance.
    Mark

    After read some more forums i notice that i can´t place the dll's on java project, so i placed them on system32.
    Now i don't have any error of Native Library already loaded in another classloader, but i continue with the error UnsatisfiedLinkError: jni_init on line "if ((javacurl_handle = jni_init()) == 0)"
    Does anyone can help me?
    Thanks,
    Luis Cruz

  • How to use a Webservice (deployableproxy) within a portal component?

    hi,
    i need to know how to use a webservice using a deployable proxy within a portal component?
    i've created the proxies and they work (with servlets).
    i know how to use them in servletes (context lookup, jndi mapping, application references) but i cant find a way to use them in a portal component.. tried the context lookup way but cant figure out which jndi mapping to use.
    any help?
    thanks in advance,
    constantin

    i've found this document:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/cb2e29578c0262e10000000a11466f/frameset.htm
    but it doesn't help...
    i should add a privatesharing resource...
    <property name="PrivateSharingReference" value="SAPJ2EE::rh21.de/pca~wsproxy"/>
    which works
    this is my code
    public void doContent(IPortalComponentRequest request,IPortalComponentResponse response) {
       try {
         Context context = new InitialContext();
         WSPhonebook obj = (WSPhonebook) context.lookup("/wsclients/proxies/rh21.de/pca~wsproxy/de.rh21.wsproxy.phonebook.WSPhonebook");
         WSPhonebookViDocument phonebook = (WSPhonebookViDocument) obj.getLogicalPort("Config1Port_Document", WSPhonebookViDocument.class);
    } catch.....
    now the lookup works (i guess, no messages about that anymore), but i catch ClassNotDefFoundError-Exceptions, but the classes are there, i can strg+click them in the editor, they are in the used dc's etc.
    any help? its quite uurgent :/

  • How to configure KM in federated portal network

    Dear Friends,
      Can anyone help me in configuring KM in federated portal network. If KM is configured in producer portal how to make use of that KM content in consumer portal.
       Is it possible to directly configure KM in consumer portal?
      Please help me out.
      Thanks & Regards
      Sireesha.

    Hi Sireesha,
    1) In order to use all capabilities provided by Knowledge Management, the
    recommended solution would be to use KM only on one portal in the federation.
    This could be the central consumer portal or alternatively one of the producer
    portals. Then all features, like versioning, taxonomies, approval workflows,
    subscriptions, template-based publishing … will be available in this portal.
    2) In case KM has to be federated to different producer portals, KM iViews (e.g.
    Document iViews, Navigation iViews) could be integrated with the content sharing
    modes provided by FPN. However, this is not a deep integration, because only a
    redirect to the remotely located iViews is performed. The services themselves, like
    taxonomies, will not be available in the consumer portal.
    The recommended approach is to Configure KM on Consumer Portal only or Producer portal only.
    Regards,
    Shailesh Nagar

  • Configuring UWL in Federated Portal Network(FPN)

    Hi,
    I have a requirement to integrate UWL in FPN. Could some one throw light on this?
    Thanks.
    Best Regards,
    Shiva

    Hi,
    mabye this statement from SAP note https://service.sap.com/sap/support/notes/880482 does help you:
    Universal Worklist (UWL): It is recommended to configure only one UWL in the central consumer portal, for the following reasons:
    Multiple UWL instances are not synchronized. It is not possible to aggregate the work items from more than one UWL iView into a single UWL iView. UWL items from KM like subscriptions and approval workflows cannot be sent to remote UWLs either (thus KM and UWL should be configured in the same portal).
    Regards,
    Sascha

Maybe you are looking for

  • [SOLVED] XFCE customize menu help: applications and directory menu

    I've been trying to make some progress with customizing XFCE menus. There are two menus I'm trying to create, listed below. Yes, i have read http://wiki.xfce.org/howto/customize-menu No, I'm not saying I understood all of it. 1. I want to have a cust

  • Can't drag bookmarks into new tab page

    Every time I try to drag and drop a bookmark into the new tab page, it opens the web page in that tab instead of adding it to the square. I've tried it on safe mode as well with the same results. Any suggestions on what I'm doing wrong would be appre

  • Keyboard settings stuck on Key Caps/Link Troubles

    Somewhere between finishing the installation of a Belkin wireless G router on my iMac, and rebooting the system to finalise, something has gone horribly wrong. My G3's keyboard now types in nothing but non-English symbols - the key cap settings have

  • Probs with versions of iPhoto

    Hi there, after reinstalling Lion and iPhoto (9.2.1, build 628) on my iMac, each time I start the iPhoto-library, I get the following message (Your library has to be updatet to be compatible with this version of iPhoto) and afterwards (iPhoto detecte

  • While using FM 'HR_FORMS_TIM_GET_B2_RESULTS' some emps FT_ZES remains blank

    Dear Sir,      For calculating overtime we have use 'HR_FORMS_TIM_GET_B2_RESULTS' function module. But for some employees,it is not fetching values in FT_ZES. Please help me if any changes to be done in master data of those employees. Thanks.