This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Consider Paul's rocket mass heater.
 
subject: Adding header to web.xml causes appc to report basic compile problems
 
Similar Threads
JSTL and EL
problem in deploying war file
EL expressions not evaluating
@EJB doing nothing - jboss-4.2.2.GA
isELIgnored="false"