Hi,
I have following sun-web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application
Server 9.0 Servlet 2.5//EN"
"
http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-web-app error-url="">
<session-config>
<session-properties>
<property name="timeoutSeconds" value="120"></property>
</session-properties>
</session-config>
<context-root>/DBLackAuswertungen</context-root>
<class-loader delegate="true"/>
<jsp-config>
<property name="keepgenerated" value="true">
<description>Keep a copy of the generated servlet class java
code.</description>
</property>
</jsp-config>
</sun-web-app>
In my eyes everything is OK. But eclipse report following error:
The content of element type "sun-web-app" must match
"(context-root?,security-role-mapping*,servlet*,idempotent-url-pattern*,session-config?,ejb-ref*,resource-ref*,resource-env-ref*,service-ref*,message-destination-ref*,cache?,class-loader?,jsp-config?,locale-charset-info?,parameter-encoding?,property*,message-destination*,webservice-description*)".
sun-web.xml DBLackAuswertungen/WebContent/WEB-INF line 3 XML Problem
Can somebody tell me what' s wrong?
By the way. What does the * or ? mean? I Think ? means the element can
appear only once while * means it can appear more times. Can somebody
confirm this?
Thanks a lot!
--
View this message in context: http://www.nabble.com/Eclipse-show-error-in-sun-web.xml-but-why-tp20807499p20807499.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.