Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp compile error

 
Robin Zhang
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I compile a very simple from Jbuilder and got error. Can anyone help?
-------error message------------------------
"error.jsp": <29-May-02 4:01:50 MDT PM> <Info> <HTTP> <Deployment descriptor is malformed, check against the DTD: org.xml.sax.SAXParseException: The content of element type "env-entry" must match "(description?,env-entry-name,env-entry-value?,env-entry-type)"..>
"error.jsp": <29-May-02 4:01:50 MDT PM> <Info> <HTTP> <Deployment descriptor is malformed, check against the DTD: org.xml.sax.SAXParseException: The content of element type "env-entry" must match "(description?,env-entry-name,env-entry-value?,env-entry-type)"..>
"error.jsp": <29-May-02 4:01:50 MDT PM> <Info> <HTTP> <Deployment descriptor is malformed, check against the DTD: org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)"..>
-----------------------------------------------
------------------error.jsp file-----------------
<%--
% $Id: error.jsp,v 1.3.4.2 2001/03/15 00:40:13 brydon Exp $
% Copyright 2001 Sun Microsystems, Inc. All rights reserved.
% Copyright 2001 Sun Microsystems, Inc. Tous droits r?erv?.
--%>

<body>
<h2>Sign In Error</h2>
<hr>
You could not be authenticated with the information provided. <br>
Please check your Username and Password.<br>
<p><a href="signin">Return to Sign in Page</a></p>
</body>
-----------------------------------------------
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an error in your "Deployment descriptor" file. I presume it is the /WEB-INF/web.xml file
 
Robin Zhang
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to compile my jsp. My web.xml is perfect too. I do not know why Jbuilder using DD to check my JSP file.
[ May 29, 2002: Message edited by: Robin Zhang ]
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robin
Try to copy over an empty deployemnt descriptor. I think most containers will have one that is empty (I know tomcat does). Put the new one in your WEB-XML directory and see how it goes. IT could be some syntax error that you can't see.
Hope that helps
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Robin Zhang:
I am trying to compile my jsp. My web.xml is perfect too. I do not know why Jbuilder using DD to check my JSP file.
[ May 29, 2002: Message edited by: Robin Zhang ]

The error you gave in the original message is not a "compile" error. It is a deployment error when the server tries to parse a descriptor XML file ...
Plus, your JSP does not even contain Java code or custom tags.
 
Robin Zhang
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi thank you for all the reply. I checked the DD , there was no problem. I opened the DD editor of Jbuilder and did not change anything, then I compile it again, it passed. There must be some problem of Jbuilder. My friend also said JB is not stable.
By the way I am trying to put whole petStore1.1.2 in Jbuilder. is there anyone who is doing the same?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic