Logging doesn't work for J2EE App

Hi,
i've defined the following log config as XML in the .ear file of my app:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
     <log-formatters>
          <log-formatter
               name="de.axentiv.hne.format"
               pattern="%l %d %s %m"
               type="TraceFormatter"/>
     </log-formatters>
     <log-destinations>
          <log-destination
               effective-severity="ALL"
               name="de.axentiv.hne"
               pattern="c:\jms.log"
               type="FileLog">
               <formatter-ref
                    name="de.axentiv.hne.format"/>
          </log-destination>
     </log-destinations>
     <log-controllers>
          <log-controller
               minimum-severity="ALL"
               name="de.axentiv.hne">
               <associated-destinations>
                    <destination-ref
                         association-type="LOG"
                         name="de.axentiv.hne"/>
               </associated-destinations>
          </log-controller>
     </log-controllers>
</log-configuration>
I retrieve the logger:
private static final Location loc = Location.getLocation(JmsTestServlet.class);
JmsTestServlet.class resides in the package de.axentiv.hne which corresponds to the log destination defined above.
My logging statement is:
loc.debugT("***> Sending message: Test");
Unfortunately there is no file at c:\jms.log which contains my log statement. Does anybody know what my problem here might be.
Regards in advance and thank's
Heiko

Hi Heiko,
by default the logging api writes to a single trace file (defaultTrace.trc). This is done for performance reasons. At times though (and I would always suggest this on your local J2EE Engine), you want multiple trace files...one for each app.
I did a presentation on how to configure the J2EE Engine to do this. You can see the pdf of this presentation here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/using logging and tracing on the sap web as java.pdf
Hope this helps!
Cheers,
Jeff

Similar Messages

  • The wifi at my school isn't very good. And I can't send iMessages through it. It works for some apps like score center and my radar app, but doesn't work for other apps like clash of clans and iMessage. How can I get it to work on that  wifi network

    The wifi at my school isn't very good. And I can't send iMessages through it. It works for some apps like score center and my radar app, but doesn't work for other apps like clash of clans and iMessage. How can I get it to work on my school wifi. I have an iPhone 4S on AT&T and iOS 7.04

    In a roaming network, your "main" router is the device that would require port mapping/forwarding to be configured in order to access the IP camera from the Internet. This router is also the one that would be provide the private IP address for the camera which you will want to be a static one.
    So as you described your network, the IP cameras should be getting an IP address or you assigned it a static one and this is the address that you would enter in the Private IP address (or equivalent depending on the router used) field when setting up port mapping.
    If you are not able to access this camera from the local network, then this should be troubleshot first.

  • My ow doesn't work for updating apps but does for buying music at ITunes Store.  Why?

    My Apple password works for buying songs on iTunes but not for updating apps that I purchased through Apple.  Why.

    is the driver for your network card up to date?  that could be a reason it will not work with the more up to date HH3
    If want more assistance from the forum members please can you post the adsl stats from your router may need to 'show detail' to get all stats (if hub enter 192.168.1.254 in your browser and navigate to adsl or use a-z, if netgear enter 192.168.0.1) and run btspeedtester (MAC users may have problems) http://speedtester.bt.com or http://bt.custhelp.com/app/answers/detail/a_id/9354/c/346,4740,5520 and post the results .
    are you connected directly to the NTE5 master or test socket or to somewhere else? Is the master the only phone socket in your home?
    Have you tried the quiet line test? - dial 17070 option 2 - should hear nothing - best done with a corded phone. if cordless phone you may hear a 'dull hum' which is normal
    Someone may then be able to offer help/assistance/suggestions to your problem
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Why the 'select & define' doesn't work for some apps? For instance CNN, newsstand.

    As above.

    Sounds like you've probably already looked but the CUPS article in the wiki led me through setting up a printer without any problems.  http://wiki.archlinux.org/index.php/CUPS
    The first section describes how to troubleshoot CUPS and printing problems.
    I've also found a few other posts and links that may help.
    http://hplipopensource.com/hplip-web/mo … eries.html
    http://ubuntuforums.org/showthread.php?t=419163
    Hope this helps!

  • Touch ID doesn't work for App Store

    My iPhone 5s touch ID works only on the lock screen. I verified to make sure the fingerprint settings were for both pass code and iTunes or AppStore purchases (which it was) and it doesn't work for a App Store purchases. Help anyone?

    I had the same problem. I did not have restrictions enabled. After reading through similar threads and the Apple support article for using the fingerprint sensor for App Store and iTunes Store, where it says that resteictions cannot be set to "immediately," I decided to enable restrictions and set to "15 minutes." That did the trick for me!

  • With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    This isn't an issue. Notice the screen prior to the one that shows usage has an iCloud section and a Manage Storage button. For this button to activate ios needs to download a few kb from icloud. Switching back to this screen forces ios to download those few kb.

  • Push notifications doesn't work for apps like (fb viber , whatsapp etc ) iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    Sorry, I've forgotten the actions done.
    I've restarted the iphone, and I've recovered a previous backup.
    Thanks.

  • How can I upload a video from my PC through I tunes to camera roll on my iPhone? Is there an app or format of specific video supported? Sync from photos include video doesn't work for me.

    How can I upload a video from my PC through I tunes to camera roll on my iPhone? Is there an app or format of specific video supported? Sync from photos include video doesn't work for me.

    download the new you tube apps in i tunes, in os6 just pick a video in the photos apps and select share, the old you tube app icon will appear

  • I've bought an app called WhatsApp but I was not told that app doesn't work for ipod. So I would like to know how to turn back and get my money back.

    I've bought an app called WhatsApp but I was not told that app doesn't work for ipod. So I would like to know how to turn back and get my money back.

    Did you fail to look at the requirements before purchasing?
    All sales are final.  You can try contacting itunes support and asking for an exception

  • I tried to airdrop Civilization V from a Macbook Pro with Mountain Lion to a Macbook Pro with Lion and it doesn't work. Other apps have but Civ V has not.

    I tried to airdrop Civilization V from a Macbook Pro with Mountain Lion to a Macbook Pro with Lion and it doesn't work. Other apps have but Civ V has not.

    Likely because it's a not self contained and/or it's game and copy protected, so install it via the developers instructions instead, which likely means it will have ot be uninstalled off the first machine, the developer contacted for a new license key before installing on the newer machine.
    If you want it on both machines, you will need to likely buy another license.
    Most developers are fine with transfering license between machines, you have to contact them.
    They just want to make sure it's only on one machine so they are not getting robbed.

  • Project Conventions for J2EE Apps Early Access...

    Hi
    I am trying to set up a standardized directory structure for J2EE apps that is flexible enough from a simple webapp to a complex J2EE App with multiple EJB components, WARs...etc..etc...
    For this, I turned to Java Blueprints Guidelines, Project Conventions for Enterprise Applications Early Access 1 posted on the Sun's web site...
    This document states among follwoing that (quote)
    -----(quote)
    These conventions, which the Java BluePrints team has followed with its applications (which can be accessed from http://java.sun.com/blueprints/code/index.html), assume that developers use the Ant tool for building projects. Developers using other build tools may have to make slight modifications to the conventions.
    ----(end quote)
    I have downloaded the latest J2EE SDk which has samples directory containing the famous , Adventure BUilder, Petstore, etc, etc.....But they do not follow project directory structure as outlined in this document...Moreover, I found each app has different project directory structure even for the same functional part..
    1. Are the J2EE sample apps bundeled with J2EE SDK different than the ones available as separate download?
    2. If they are not, where can I download sample apps that demonstrate project conventions outlined in the guidelines document...
    Any comments are welcome...
    Thanks
    zambak

    Hi,
    The project conventions are new and early access version1. So it will be changing a little bit and as a result the apps may get a little out of sync. We are currently switching the apps over to match with the project conventions. For an app that dempnstrates project conventions, please see the adventure builder on java.net at https://adventurebuilder.dev.java.net/
    We are working on a revised version of the project conventions, so your feedback/comments would be highly appreciated.
    -Smitha
    Hi
    I am trying to set up a standardized directory
    structure for J2EE apps that is flexible enough from a
    simple webapp to a complex J2EE App with multiple EJB
    components, WARs...etc..etc...
    For this, I turned to Java Blueprints Guidelines,
    Project Conventions for Enterprise Applications Early
    Access 1 posted on the Sun's web site...
    This document states among follwoing that (quote)
    -----(quote)
    These conventions, which the Java BluePrints team has
    followed with its applications (which can be accessed
    from http://java.sun.com/blueprints/code/index.html),
    assume that developers use the Ant tool for building
    projects. Developers using other build tools may have
    to make slight modifications to the conventions.
    ----(end quote)
    I have downloaded the latest J2EE SDk which has
    samples directory containing the famous , Adventure
    BUilder, Petstore, etc, etc.....But they do not
    follow project directory structure as outlined in this
    document...Moreover, I found each app has
    different project directory structure even for the
    same functional part..
    1. Are the J2EE sample apps bundeled with J2EE SDK
    different than the ones available as separate
    download?
    2. If they are not, where can I download sample apps
    that demonstrate project conventions outlined in the
    guidelines document...
    Any comments are welcome...
    Thanks
    zambak

  • Web Dynpro dropdown doesn't work for Adobe Reader 8

    Hi All,
    I've developed a Web Dynpro project which uses Interactive form.
    The form has a dropdown (simple type from WDJ).
    The dropdown works for Adobe Reader 7 but doesn't work for Adobe Reader 8 (when I press the arrow to open the list nothing happens).
    Do I need to config/install something for supporting Adobe Reader 8?
    I'm using J2EE 7.13.
    Thanks,
    Omri

    Dear Omri,
    Make sure that you are using Adobe Reader 8.1.1.
    Thanks and Regards,
    Anto.

  • When I double click home for audio playback doesn't work for movies since I synced it yesterday Why?

    When I double click the home button the audioplayback doesn't work for movies,  it did before I added and synced some items yesterday anybody know why?

    Jeanlewane wrote:
    Why, When I double click the home button and hold down the icon waiting for the red x to appear, it doesn't.?
    How to Close Apps
    Double Tap the Home Button... Then swipe the App (not the icon) Upwards... Tap the Home Button when finished.
    From Here  >  http://support.apple.com/kb/HT4211
    NOTE:  You cannot delete any pre-installed iOS app.

  • F1 help not working for J2EE objects

    Hi,
    I love the F1 help that takes you to the JavaDoc. However, it doesn't seem to
    work for J2EE objects (only J2SE). However, workshop does know about J2EE objects
    because the function completion stuff works.
    The "J2EE Javadoc location" in IDE Properties is set to http://java.sun.com/j2ee/1.4/docs/api/.
    I also changed it to my local install of the Javadoc. Still no satisfaction.
    Anyway to get this working?
    Thanks,
    Phil

    Raj,
    Thanks for the service pack clarification.
    Any ideas why the F1 for J2EE is not working?
    Is anyone else having this problem?
    It seems to be using the J2SE javadoc location instead.
    Thanks,
    Phil
    "Raj Alagumalai" <[email protected]> wrote:
    Phil,
    The installation you have is WebLogic Platform 8.1 GA, which contains
    WebLogic Server 8.1 sp1, which is why the next service pack will be called
    Service Pack 2.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Phil Grimm" <[email protected]> wrote in message
    news:[email protected]...
    Is there an SP1 for Workshop? The build I have (in Help | About) showsBUILD: 2003.0710.190003).
    Is there a newer build? I have not been able to locate a download.
    One file you can try is LoginBacking.java in{sampleportal}/WEB-INF/src/examples/login.
    Postion on "HttpServletRequest" and hit F1 goes to the J2SE javadocand
    displays
    java.lang.Object. It's not going after the correct javadoc file.
    Phil
    "Raj Alagumalai" <[email protected]> wrote:
    Phil,
    I have tested JE22 objects and have not had any issues. Can you attach
    a
    file where F1 help fails ?
    Regarding F1 help for weblogic API's they will be available in Service
    Pack
    2.
    Hope this helps.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Phil Grimm" <[email protected]> wrote in message
    news:[email protected]...
    Oh, it would be nice if F1 would work for BEA APIs. Is this possible?
    Even more cool would be if we could configure it to point to API'sof our
    own
    or others like Struts, etc.
    If this is not possible, please consider this an enhancement request:)
    Phil
    "Phil Grimm" <[email protected]> wrote:
    Hi,
    I love the F1 help that takes you to the JavaDoc. However, it doesn't
    seem to
    work for J2EE objects (only J2SE). However, workshop does know
    about
    J2EE objects
    because the function completion stuff works.
    The "J2EE Javadoc location" in IDE Properties is set to
    http://java.sun.com/j2ee/1.4/docs/api/.
    I also changed it to my local install of the Javadoc. Still nosatisfaction.
    Anyway to get this working?
    Thanks,
    Phil

  • The rotation feature works for every app on my iPad except mail.  Mail always rotated just as everything else did until recently.  I have no idea what I might have done to change this.

    The rotation feature on my iPad works for all apps except my mail.  I've had this iPad for at least a year and this problem came up a few days ago.  Mail always rotated and I can't think of anything I've done differently to cause this change.

    Reboot the iPad and see if that helps.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    If  that doesn't help, quit the mail app completely and restart the iPad.
    Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

Maybe you are looking for

  • How to insert a non-breaking space in a reference page?

    Hello all, Is it possible to insert a non-breaking space in a reference page? I want to control the TOC numbering so that page numbers don't break at the hyphen: In my reference page, I have the following TOC definition: <$paratext> <$chapnum>-<$page

  • Share buttons on Blogspot are not showing up.

    This is my blog address: http://realityhideseek.blogspot.com/ I have www.addtoany.com share buttons under each post that show up in Chrome, but not in Firefox. I've read several help articles, but none seem to do any good. This is only since the upgr

  • I installed a game, where can i find the files and maps? where does iMac store this data?

    I installed a game,Now I need to add some files however, I cannot find where iMac stores it.. where can i find the files and maps? where does iMac store this data? thx alot erik

  • Siri in the uk ?

    When will Siri be able to give directions and list businesses in the UK ?

  • Input to side chain

    Input to side chain Hi I bit of a daft one I'm afraid. How do I rout to a side chain with out the routed sound being audible I what to boost a bass part when the kick drum is hit. Using the kick drum into a noise gate via a the side chain. But always