| Author |
jsp compile error
|
Robin Zhang
Ranch Hand
Joined: Apr 11, 2002
Posts: 139
|
|
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
Joined: Mar 07, 2002
Posts: 1427
|
|
|
There is an error in your "Deployment descriptor" file. I presume it is the /WEB-INF/web.xml file
|
Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
|
 |
Robin Zhang
Ranch Hand
Joined: Apr 11, 2002
Posts: 139
|
|
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
Joined: May 10, 2001
Posts: 3244
|
|
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
|
Dave
|
 |
Michael Yuan
author
Ranch Hand
Joined: Mar 07, 2002
Posts: 1427
|
|
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
Joined: Apr 11, 2002
Posts: 139
|
|
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?
|
 |
 |
|
|
subject: jsp compile error
|
|
|