Different log4j outputs using same compiler

Hello.
I've created a desktop application and recently added log4j logging. When I compile my application using the NetBeans' generated ant script and run it, I get output like:
[java] 2008-06-17 15:42:16,383 INFO [main] (MainFrame.java:1604) - Starting application...My log4j conversion pattern is: %d %5p [%t] (%F:%L) - %m%nWhen I then recompile it using my own ant file, I get output like:
[java] 2008-06-17 15:42:16,383 INFO [main] (?:?) - Starting application...It seems log4j cannot access the locations in the source anymore. I've narrowed it down to a compiler issue, because when I compile using NetBeans and create the jar, etc. using my custom ant script, the filename and line are correctly printed. When I compile using my custom ant script and jar, etc. using the NetBeans ant script, the ?'s are printed.
My ant script for compilation:
<path id="classpath">       
    <fileset dir="${lib.dir}" includes="**/*.jar"/>       
</path>
<target name="compile">
    <mkdir dir="${classes.dir}"/>             
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath"/>
    <!-- include data and resources, excluding others -->
    <copy todir="${classes.dir}">
        <fileset dir="${src.dir}" includes="**" excludes="**/*.java,**/*.form"/>
    </copy>
</target>Could anybody tell me why this is happening? Am I forgetting something in my ant script? I've tried just about anything :<

Sorry, I mean Dennis!
Vhha1972 wrote:
Thanks a lot Nick!
It works -- really appreciate
Saif

Similar Messages

  • WLC in two different WAN sites using same DNS

    I have two different wlc's that are located in different locations and WAN sites.  I want them to use the same DNS for both sites since there is no need to add a specific server in the small areas.  When adding a DNS entry for "cisco-capwap-controller" for AP discovery, is there a way to make it distinguish which local controller to use?

    Hi,
    We had a similar issue with different controllers in different sites, for different wireless networks. I got around the issue by creating wireless specific subdomains to hold the relevant dns records in.
    For example:
    Site A = siteA.rf.mycompany.com
         A Record =  cisco-capwap-controller 10.1.1.100
    Site B = siteB.rf.mycompany.com
         A Record = cisco-capwap-controller 10.2.2.100
    Site C = siteC.rf.mycompany.com
          A Record = cisco-capwap-controller 10.3.3.100
    HTH
    Paul

  • Question re: iCloud with different family members using same AppleID

    Ok, here's the scenario... Everyone in the family is using the same AppleID for iTunes. Is there a way to set up iCloud so, for instance, my son sends a document or song to iCloud from his iPhone it only gets pushed down to his Macbook and doesn't go to my devices, and vice versa. My guess is I will need to create seperate iTunes accounts for everyone, but don't really prefer doing that. Would that be the best solution, though?

    Same situation here. I use a gmail address for apple id. A set of instructions would be nice Apple.

  • IMessage - when two people use same password to sign into iTunes and Apple

        Myself and partner both use the same password to sign in to Apple and iTunes - we have different emails but use same email to sign in, and we both have different Apple iPhone numbers.
    iMessages used to work really well - he would get his texts on his phone, and mine on mine. Now it's all over the place.
    How do I fix this? I don't know if I've done anything, or if the system has changed. But very frustrating.
    Thanks,
    Belinda

    I would recommend creating a separate Apple ID for yourself and then set up Family Sharing/Home Sharing in order to continue sharing iTunes content between the two accounts. This will help keep your iMessage and FaceTime services separate between the two of you while also saving you from having to purchase content twice.

  • Can we write data to different sheets in the same excel output file ?

    Hi,
    I am using XML publisher and generating output in the excel sheet format.
    Is it possible to write the data to different sheets on the same excel file using XMLP?
    Please let me know how to do this.
    Thanks in advance,
    Raj.

    Hi,
    No, it's not possible with 5.6.2. Excel based templates are supposed to be coming but I don't know when the release date will be.
    Thanks
    Paul

  • Can two peeps use iChat with different accounts on the same computer?

    What do I do to REMOVE an old AIM account and replace it with a new account in IChat?
    Can two peeps use iChat with different accounts in the same computer?
    (Actually, two people share a laptop, but one of us cannot use her AIM account cuz mine is in iChat already... And, when traveling, I have the computer - and I would like to use iChat on the computer...)

    In iChat 4 you can have more than one AIM Valid name logged in at once.
    AIM valid = AIM, @mac.com or a MobileMe name.
    What you are then stuck with is that iChat is linked to one Buddy Picture and The one Mac User Account's Address Book which may or may not have Full Names, emails details, or a Nickname in iChat 4 linked to the Screen Names.
    Whilst it does let you both log in whilst using one Mac User Account there are drawbacks about who uses the keyboard and reading meesages from the other persons Buddies.
    8:50 PM Sunday; November 30, 2008

  • How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?

    How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?
    We are two people using three difrent Macs, 1 Iphone and 1 Ipad with separate USERS  on each Mac but sharing the same Apple ID: xxxxxx
    I set up the first user to iCloud and it was OK but when I set up the second user to use iCoud the first users's info gets mixed with the second user's info?
    Do we have to set up a diffrent Apple ID for each other?
    Sometime ago I added my friends E mail (yyyyy) to the main Apple ID (xxxx) as for using his E mail account (to separate our e mail accounts, and it's working ok) but now when I try to create a new apple ID whith the same friend's e mail (yyyyyy)  it says that his mail (yyyyy) is already an apple ID when the Apple ID is really my E mail (xxxxx)... any clue?
    Thanks

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • We have 3 devices used by 3 different people under the same Apple ID, how do I stop getting my daughters texts, both sent and received?

    We have 3 devices used by 3 different people under the same Apple ID, how do I stop receiving my daughters texts? Both sent and received.

    When you use the same Apple ID on 3 devices it means you are all using the same (email, imessaging, calendar etc).  Since iCloud (MobileMe) is designed to be shared across all devices included Macs, it means all devices setup with the same ID will have access to the information.
    Text messaging is relevant only to the number you are texting.  This is done through your telecom companys lines and not on Apples.
    If you do not want to have others be able to read any of your information then it is best you each have your own account.

  • TS3510 I have 3 different apple devices using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I have 3 different apple devices (iPod Touch, iPad and MacBook Pro) using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I found this on a related question in the Community:
    Yes you can do it. I do it with 4 different devices all using the same Apple ID.
    You need to associate different email addresses for each device in order to use those email addresses as the "contact at" email address. The reason the calls are dropping on you now is that what you are trying to do is like calling yourself on your own phone.
    You can also create new iCloud accounts on each device simply to use for FaceTime, but I'm guessing that the users of the other two devices have their own email addresses which will make this work for you quite easily.
    Take a look at this for more information.
    The seems to go against what Gail said and the issue you raised about buying dup apps was my first concern.  If this other post is correct, how to I set a different "contact at" in the iPod Touch?
    Goose

  • HT4436 I have 2 I phone which is using same apple id to back to icloud and restore it. I want to use different id on the one phone what can I do or change the id?

    I have 2 I phone which is using same apple id to back to icloud and restore it. I want to use different id on the one phone what can I do or change the id?

    Welcome to the Apple community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add a new account by tapping the "create Apple ID" button. (Settings > iCloud, scroll down and hit "Delete Account")

  • HT3529 iMessage appearing in 2 different iPhones with distinct phone numbers but using same apple ID

    I and my friend both use same apple ID. When someone sends me an iMessage to my iPhone, it goes to his iPhone with separate phone number also. When I send someone an iMessage from my iPhone, the message will appear as sent from his iPhone also. But the receiving person will get only one iMessage (from my number).
    Both of us have ios 6 and separate phone numbers but same apple ID.
    How is this possible?
    When I checked setting on iMessage on my phone, send and receive shows my phone number and email address only.
    Has my iPhone been hacked by him?
    Please help

    cheonweb wrote:
    iMessage is linked to a phone number AND an email (Apple ID) address.
    Sorry for bugging cheonweb but I just want to be clarified:
    1) If the phone numbers are different but the Apple ID is same, he would still get iMessages sent from/to my Phone number?
    2) Why is it not vice versa? Why do I not get messages sent from/to his iPhone?
    Thanks in advance

  • HOW TO?: Need help setting up 3 different iCloud accounts for my kids (so each has own iMessanger)using same Apple ID (mine) ....they don't have their own separate email addresses to work from...how do I do this?

    Need help setting up 3 different iCloud accounts for my kids (so each has own iMessanger)using same Apple ID (mine) ....they don't have their own separate email addresses to work from...how do I do this?

    Any devices connected to the same icloud account can sync all the data on that account.  For this reason an icloud account is really for a single user.
    On a mac, if each user has their own account, then the itunes for that mac account should be set up to connect to that user's icloud account (System preferences>icloud).

  • Can 2 different users with 2 different Iphones use the same itunes to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    can 2 different users with 2 different Iphones use the same itune program to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    Here is your answer:
    http://support.apple.com/kb/HT1495

  • How can I use different presets on the same instrument?

    I use Session Horns Pro with Kontakt Played in Mainstage 3.
    You can choose different presets within Session Horns without having to load additional samples and take up more memory.
    How can I create different patches that use the changes of Session Horn Patches without duplicating the samples in Kontakt?
    If I copy the channel strip and 'Paste as alias" changes made to one copy are the same as the alias. It seems there must be a way to "Automate" controls in an alias that is unique to each patch. I could also use to do this on instruments like Vintage Clav and Vintage B3 where I don't want to create duplicate instances of CPU hungry plug ins just to use different presets in different patches.
    Thanks in advance to anyone out there who knows of a workaround!
    Larry Ketchell

    Yes.  You can sync apps/music/etc to as many of your iphones/ipads/ipods as you like.
    Here is how to use the iphone without a wireless plan:
    Using an iPhone without a wireless service plan

  • In Bte can i use same Product for 2 different process

    in Bte can i use same Product for 2 different process

    hi
    as per i know yes but since there r two type of interface behaviour is defferent .
    For
    Publish & Subscribe interfaces 
    if any event occur in this type both the process can work simultaneously and they will not intervene each other
    whereas in
    Process interfaces
    at an time any one process can be active.
    Reward if usefull
    Cheers
    Snehi

Maybe you are looking for

  • NI-DAQmx base vi's compatibility

    Hi All I have two questions 1. I am using a PCMCIA card 6024E to perform analogue input on a pda. The specifications state that a sampling frequency of 200kS/s is guaranteed. Is there any way I can measure the sampling frequency programmatically or i

  • Nokia 6300, iSync, and Contact Photos-

    Thanks to the following links, I was able to get my new Nokia 6300 to successfully sync with my Mac’s Address Book via iSync: http://klauskjeldsen.dk/2007/06/08/free-nokia-6300-isync-plugin/ http://nokia6300.net/8/new-version-of-the-nokia-6300-isync-

  • How to use adobe 5.0 on windows 7 to install 2 upgrades.

    how to use adobe 5.0 on windows 7 to install 2 upgrades.

  • CS 3 crashes

    I'm using xp sp3 and for no reason Photoshop closes on more than one occasion. Attached are the error logs messages. Thanks for any help. Marion

  • ITunes Files Lost & Really Cannot Locate, Please Help!

    Hi all I have just downloaded the latest iTunes update and the latest IOS sodtware update 8.1 for my iPhone. However, I have noticed my iTunes on my laptop has all gone wrong.  The majority of my music has the ' ! ' symbol next to it and the usual 'C