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 6 of 6

Thread: J2EE Upload War File

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default J2EE Upload War File

    All,

    So I am brand new to Java. I did my college degree 12 years ago in Visual Basic and really never used it again. My job wants me to start doing performance analysis of Java.

    I guess they feel my .Net and infrastrcuture experience will be helpful.

    That said I started the J2EE course at vtc.com. It's dated, but is the same version of Java I am told we use at work. So this matched up I suppose.

    I created a simple hello world JSP and use the Deployment tool to create and deploy the WAR file. Worked great. I attempted to do the same thing using Sun Java System Applicatoin Server Admin console. I converted my JSP into a WAR from DOS without issue.

    PS C:\jwork\jsp02> jar cvf second.war WEB-INF outloop.jsp
    added manifest
    adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/web.xml(in = 257) (out= 195)(deflated 24%)
    adding: outloop.jsp(in = 178) (out= 126)(deflated 29%)

    But following the deploy web application link from the System application Server admin console seems to fail. I get this message.

    An error has occurred.

    Deploying application in domain failed; Error loading deployment descriptors for second Line 10 Column 11 -- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)". ; requested operation cannot be completed Error loading deployment descriptors for second Line 10 Column 11 -- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".



    Any idea where I would get started troubleshooting something like that?


  2. #2
    Member
    Join Date
    Apr 2012
    Location
    Superior, CO, USA
    Posts
    80
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default Re: J2EE Upload War File

    Depending on your environment versions it looks like you've either got an error in your web.xml or it is the wrong version.

    Can you post your web.xml?
    Need Java help? Check out the HotJoe Java Help forums!

  3. #3

    Default Re: J2EE Upload War File

    From the error, it's absolutely that your web.xml document does not conform to the syntax. Check at line 10 column 11.

  4. #4
    Junior Member
    Join Date
    Oct 2011
    Posts
    11
    My Mood
    Cool
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: J2EE Upload War File

    Dear one as of my knowledge you have to restart your server after each change of web.xml

  5. #5
    Member vigneshwaran's Avatar
    Join Date
    Nov 2012
    Location
    Chennai, TamilNadu
    Posts
    35
    My Mood
    Cheerful
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Re: J2EE Upload War File

    You have to make changes in web.xml by including servlet-name, servlet-mapping and uri's so on

  6. #6
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: J2EE Upload War File

    Post your web.xml.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

Similar Threads

  1. How do I upload an audio wav file?!
    By mcgras22 in forum File Input/Output Tutorials
    Replies: 5
    Last Post: June 15th, 2012, 08:29 PM
  2. Upload File - JSP + Servlet + Netbeans
    By bitos2002 in forum Web Frameworks
    Replies: 4
    Last Post: November 16th, 2011, 09:29 AM
  3. why i can't upload file to database
    By hidden_daisy in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: November 13th, 2011, 01:15 PM
  4. File upload problem
    By antonic in forum Web Frameworks
    Replies: 2
    Last Post: September 28th, 2011, 07:25 PM
  5. Want to upload csv file of greter than 200 Mb
    By shreyansh in forum Java Servlet
    Replies: 6
    Last Post: February 8th, 2011, 07:43 PM

Tags for this Thread