NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

J2EE version is default to 1.3 and can't be changed when creating a maven project

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
khvatov
Posted via mailing list.





PostPosted: Wed Jan 21, 2009 6:17 pm    Post subject: J2EE version is default to 1.3 and can't be changed when creating a maven project Reply with quote

As per http://www.adam-bien.com/roller/abien/entry/netbeans_stairway_to_maven
you should edit your web.xml file removing the outdated DTD and replacing it
with the schema definition for JEE 1.4 for example:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

and then restart Netbeans.
This should take care of the problem.
Alex





Ray Lu wrote:
Quote:

Im using NetBeans6.1 with maven plug in.

When I create a maven web project, there is no Java EE version options for
me to choose from, and it is default as 1.3 which is outdated for my
project.

We can specify java ee version from a dropdown list when creating a web
application , but no such function when creating a maven web application
in NetBeans.

Does anybody know how to specify java ee version when creating a maven web
application in NetBeans?


--
View this message in context: http://www.nabble.com/J2EE-version-is-default-to-1.3-and-can%27t-be-changed-when-creating-a-maven-project-tp20099952p21589008.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo