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

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

 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
** 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic