This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Adding header to web.xml causes appc to report basic compile problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Adding header to web.xml causes appc to report basic compile problems" Watch "Adding header to web.xml causes appc to report basic compile problems" New topic
Author

Adding header to web.xml causes appc to report basic compile problems

Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
** I get basic java compile problems reporting classpath issues about java.util.List, Date etc if I use following header on top of web.xml
===
<web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID"
version="2.5">
===

** The appc works fine If I change the header to following:
===
<web-app xmlns="http://java.sun.com/xml/ns/j2ee">
===

But keeping above header gives me following warning message:
===
<Warning> <Munger> <BEA-2156203> <A version attribute was not found in element web-app in the deployment descriptor in X:\TEMP\appcgen_1312819326158_maap_app.ear\appcgen_1312819326158_maap_web.war/WEB-I <br /> NF/web.xml. A version attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of the Weblogic Server will reject descriptors that do not specify the JEE version.>
===

Not sure what causes appc to fail when I use proper header.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Adding header to web.xml causes appc to report basic compile problems