Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Compiling error

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Compiling error

    Hi,

    I tried to compile my codes into .war file so I pressed the usual clean and build button in NetBean IDE 7 version.

    Alas, it gives me this error:-

    <target depends="do-clean" if="status.clean-failed" name="check-clean">
    <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
    <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>

    I hope someone can advise what should I do in order for the IDE to compile my codes into .war file. Many thanks.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Compiling error

    Are you building and then deploying onto a server? Is the server using the old version that you are trying to overwrite? That error indicates the previous war is in use, and cannot be deleted for you to deploy the new version.

  3. #3
    Member
    Join Date
    Jul 2011
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Compiling error

    Quote Originally Posted by copeg View Post
    Are you building and then deploying onto a server? Is the server using the old version that you are trying to overwrite? That error indicates the previous war is in use, and cannot be deleted for you to deploy the new version.

    I think so. The server is tomcat which comes with Netbean IDE. Previously, when I performed the same operation using Netbean 6.8 it didn't give me any trouble.

    What I am trying to do is to compile the code into a .war file and upload to my web hoster.

    But then it gave me the above error.

    Could you please advise how to overcome the problem?

    Many thanks!

  4. #4
    Member
    Join Date
    Jul 2011
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Compiling error

    Hi copeg,

    I tried compiling using Netbean IDE ver 6.8, my previous version and it works!

    Thanks for the tip-off

Similar Threads

  1. Compiling Error?
    By Arkeshen in forum Java Theory & Questions
    Replies: 2
    Last Post: June 22nd, 2011, 04:31 AM
  2. compiling from a txt file
    By gib65 in forum Java Theory & Questions
    Replies: 4
    Last Post: April 6th, 2011, 11:01 AM
  3. Help with Compiling
    By w.spidey in forum Object Oriented Programming
    Replies: 10
    Last Post: September 9th, 2010, 01:48 PM
  4. compiling a file
    By jkoracle23 in forum Java Theory & Questions
    Replies: 4
    Last Post: June 19th, 2010, 03:20 PM
  5. Strange Compiling Error
    By crism85 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 13th, 2009, 12:59 AM