Re: web.xml help

2003-07-03 Thread Ben Souther
You have to list all of your servlet elements before listing any of the 
servlet-mapping elements.



On Thursday 03 July 2003 08:21 am, J. W. Ballantine wrote:
 Hi,

 I'm new to this, and quickly going blind looking at a web.xml.

 When I start tomcat I get the following error message during start-up:

 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.24
 Jul 3, 2003 8:09:11 AM org.apache.commons.digester.Digester error
 SEVERE: Parse Error at line 34 column 11: The content of element type
 web-app must match
 (icon?,display-name?,description?,distributable?,context-
 param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-
conf
 ig?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,
reso
 urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-
ref* ,ejb-local-ref*).
 org.xml.sax.SAXParseException: The content of element type web-app must
 match
 (icon?,display-name?,description?,distributable?,context-param*,filter*,
 filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-ma
ppin
 g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,s
ecur
 ity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-
ref* ).

 The file in questions is:
 -top of file (not in xml)
 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app

  servlet
  servlet-name HelloWorld /servlet-name
  servlet-class HelloWorld /servlet-class
  /servlet
servlet-mapping
  servlet-name HelloWorld /servlet-name
  url-pattern /HelloWorld /url-pattern
/servlet-mapping
  servlet
  servlet-name HelloServlet /servlet-name
  servlet-class HelloServlet /servlet-class
  /servlet
servlet-mapping
  servlet-name HelloServlet /servlet-name
  url-pattern /HelloServlet /url-pattern
/servlet-mapping
  servlet
  servlet-name IntsServlet /servlet-name
  servlet-class IntsServlet /servlet-class
  /servlet
servlet-mapping
  servlet-name IntsServlet /servlet-name
  url-pattern /IntsServlet /url-pattern
/servlet-mapping

 /web-app
 - end of file (not in xml)

 Now the file is 34 lines long and the 11th column is after the p and is
 an end of line (same problem if it's a blank).  If I add or delete blank
 line, the
 line number on the error changes, so I have the problem file.

 I've been staring at it for 8 hours and don't see anything wrong, will some
 xml expert take a look and see what I'm doing wrong??

 Thanks

 Jim



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison  Company, Inc.



REGISTER NOW FOR THE SCORPEO USER CONFERENCE!
September 18-19, 2003 in Boston/Brookline, MA
Additional Training Sessions held September 17, 2003
More info  http://www.fwdco.com/services/Uconf03/default.shtm


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: web.xml help

2003-07-03 Thread John Turner
servlet-mapping tags must follow servlet tags.  All of them.  Don't do 
servlet/servlet-mapping, servlet/servlet-mapping, do ALL servlets then do 
ALL servlet-mappings.

John

On Thu, 03 Jul 2003 08:21:21 -0400, J. W. Ballantine [EMAIL PROTECTED] 
wrote:

Hi,

I'm new to this, and quickly going blind looking at a web.xml.

When I start tomcat I get the following error message during start-up:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Jul 3, 2003 8:09:11 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 34 column 11: The content of element type 
web-app must match (icon?,display- 
name?,description?,distributable?,context-
param*,filter*,filter-mapping*,listener*,servlet*,servlet- 
mapping*,session-conf
ig?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env- 
ref*,reso
urce-ref*,security-constraint*,login-config?,security-role*,env- 
entry*,ejb-ref*
,ejb-local-ref*).
org.xml.sax.SAXParseException: The content of element type web-app must 
match (icon?,display-name?,description?,distributable?,context- 
param*,filter*,
filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- 
mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource- 
ref*,secur
ity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb- 
local-ref*
).

The file in questions is:
-top of file (not in xml)
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app

servlet
servlet-name HelloWorld /servlet-name
servlet-class HelloWorld /servlet-class
/servlet
servlet-mapping
servlet-name HelloWorld /servlet-name
url-pattern /HelloWorld /url-pattern
/servlet-mapping
servlet
servlet-name HelloServlet /servlet-name
servlet-class HelloServlet /servlet-class
/servlet
servlet-mapping
servlet-name HelloServlet /servlet-name
url-pattern /HelloServlet /url-pattern
/servlet-mapping
servlet
servlet-name IntsServlet /servlet-name
servlet-class IntsServlet /servlet-class
/servlet
servlet-mapping
servlet-name IntsServlet /servlet-name
url-pattern /IntsServlet /url-pattern
/servlet-mapping
/web-app
- end of file (not in xml)
Now the file is 34 lines long and the 11th column is after the p and is
an end of line (same problem if it's a blank).  If I add or delete blank 
line, the
line number on the error changes, so I have the problem file.

I've been staring at it for 8 hours and don't see anything wrong, will 
some
xml expert take a look and see what I'm doing wrong??

Thanks

Jim



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: web.xml help

2003-07-03 Thread J. W. Ballantine

Thanks,

Is there some place on the web that has this and like info?  I've
been scanning the xml tutorials and either missed it or they don't
go into the amount of depth.



--  In Response to your message -

  Date:  Thu, 3 Jul 2003 08:25:58 -0400
  To:  Tomcat Users List [EMAIL PROTECTED]
  From:  Ben Souther [EMAIL PROTECTED]
  Subject:  Re: web.xml help

  You have to list all of your servlet elements before listing any of the 
  servlet-mapping elements.
  
  
  
  On Thursday 03 July 2003 08:21 am, J. W. Ballantine wrote:
   Hi,
  
   I'm new to this, and quickly going blind looking at a web.xml.
  
   When I start tomcat I get the following error message during start-up:
  
   Starting service Tomcat-Standalone
   Apache Tomcat/4.1.24
   Jul 3, 2003 8:09:11 AM org.apache.commons.digester.Digester error
   SEVERE: Parse Error at line 34 column 11: The content of element type
   web-app must match
   (icon?,display-name?,description?,distributable?,context-
   param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session
-
  conf
   ig?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*
,
  reso
   urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb
-
  ref* ,ejb-local-ref*).
   org.xml.sax.SAXParseException: The content of element type web-app must
   match
   (icon?,display-name?,description?,distributable?,context-param*,filter*,
   filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-m
a
  ppin
   g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,
s
  ecur
   ity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local
-
  ref* ).
  
   The file in questions is:
   -top of file (not in xml)
   ?xml version=1.0 encoding=ISO-8859-1?
  
   !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
  
   web-app
  
servlet
servlet-name HelloWorld /servlet-name
servlet-class HelloWorld /servlet-class
/servlet
  servlet-mapping
servlet-name HelloWorld /servlet-name
url-pattern /HelloWorld /url-pattern
  /servlet-mapping
servlet
servlet-name HelloServlet /servlet-name
servlet-class HelloServlet /servlet-class
/servlet
  servlet-mapping
servlet-name HelloServlet /servlet-name
url-pattern /HelloServlet /url-pattern
  /servlet-mapping
servlet
servlet-name IntsServlet /servlet-name
servlet-class IntsServlet /servlet-class
/servlet
  servlet-mapping
servlet-name IntsServlet /servlet-name
url-pattern /IntsServlet /url-pattern
  /servlet-mapping
  
   /web-app
   - end of file (not in xml)
  
   Now the file is 34 lines long and the 11th column is after the p and is
   an end of line (same problem if it's a blank).  If I add or delete blank
   line, the
   line number on the error changes, so I have the problem file.
  
   I've been staring at it for 8 hours and don't see anything wrong, will som
e
   xml expert take a look and see what I'm doing wrong??
  
   Thanks
  
   Jim
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  -- 
  Ben Souther
  F.W. Davison  Company, Inc.
  
  
  
  REGISTER NOW FOR THE SCORPEO USER CONFERENCE!
  September 18-19, 2003 in Boston/Brookline, MA
  Additional Training Sessions held September 17, 2003
  More info  http://www.fwdco.com/services/Uconf03/default.shtm
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: web.xml help

2003-07-03 Thread Ben Souther
I found out by searching this list.  I haven't looked at the docs that ship 
with Tomcat in a while so I don't know if they're in there.  It might be a 
good idea to note this in the xml comments in the web.xml file that ships 
with Tomcat.





On Thursday 03 July 2003 08:53 am, J. W. Ballantine wrote:
 Thanks,

 Is there some place on the web that has this and like info?  I've
 been scanning the xml tutorials and either missed it or they don't
 go into the amount of depth.



 --  In Response to your message -

   Date:  Thu, 3 Jul 2003 08:25:58 -0400
   To:  Tomcat Users List [EMAIL PROTECTED]
   From:  Ben Souther [EMAIL PROTECTED]
   Subject:  Re: web.xml help
 
   You have to list all of your servlet elements before listing any of the
   servlet-mapping elements.
 
   On Thursday 03 July 2003 08:21 am, J. W. Ballantine wrote:
Hi,
   
I'm new to this, and quickly going blind looking at a web.xml.
   
When I start tomcat I get the following error message during start-up:
   
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Jul 3, 2003 8:09:11 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 34 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-
param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,ses
   sion

 -

   conf
ig?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-
   ref*

 ,

   reso
urce-ref*,security-constraint*,login-config?,security-role*,env-entry*
   ,ejb

 -

   ref* ,ejb-local-ref*).
org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,filte
   r*,
filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mi
   me-m

 a

   ppin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-r
   ef*,

 s

   ecur
ity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-l
   ocal

 -

   ref* ).
   
The file in questions is:
-top of file (not in xml)
?xml version=1.0 encoding=ISO-8859-1?
   
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
   
web-app
   
 servlet
 servlet-name HelloWorld /servlet-name
 servlet-class HelloWorld /servlet-class
 /servlet
   servlet-mapping
 servlet-name HelloWorld /servlet-name
 url-pattern /HelloWorld /url-pattern
   /servlet-mapping
 servlet
 servlet-name HelloServlet /servlet-name
 servlet-class HelloServlet /servlet-class
 /servlet
   servlet-mapping
 servlet-name HelloServlet /servlet-name
 url-pattern /HelloServlet /url-pattern
   /servlet-mapping
 servlet
 servlet-name IntsServlet /servlet-name
 servlet-class IntsServlet /servlet-class
 /servlet
   servlet-mapping
 servlet-name IntsServlet /servlet-name
 url-pattern /IntsServlet /url-pattern
   /servlet-mapping
   
/web-app
- end of file (not in xml)
   
Now the file is 34 lines long and the 11th column is after the p and
is an end of line (same problem if it's a blank).  If I add or delete
blank line, the
line number on the error changes, so I have the problem file.
   
I've been staring at it for 8 hours and don't see anything wrong, will
som

 e

xml expert take a look and see what I'm doing wrong??
   
Thanks
   
Jim
   
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
   --
   Ben Souther
   F.W. Davison  Company, Inc.
 
 
 
   REGISTER NOW FOR THE SCORPEO USER CONFERENCE!
   September 18-19, 2003 in Boston/Brookline, MA
   Additional Training Sessions held September 17, 2003
   More info  http://www.fwdco.com/services/Uconf03/default.shtm
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison  Company, Inc.



REGISTER NOW FOR THE SCORPEO USER CONFERENCE!
September 18-19, 2003 in Boston/Brookline, MA
Additional Training Sessions held September 17, 2003
More info  http://www.fwdco.com/services/Uconf03/default.shtm


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: web.xml help

2003-07-03 Thread Tim Funk
1) Its part of the Servlet API. - Not tomcat dependent
2) If you create an XML document that references a DTD - always verify your 
doc is valid against the DTD.

-Tim

J. W. Ballantine wrote:
Thanks,

Is there some place on the web that has this and like info?  I've
been scanning the xml tutorials and either missed it or they don't
go into the amount of depth.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: web.xml help

2002-09-30 Thread Cooperstock, Dan

What you are suggesting doesn't sound very safe without using a source code
control system.

What we do is to have each developer have a local copy of Tomcat on their
PC, with their own copy of the source code for the web app. That copy is a
sandbox, copied out of the master project in the source code control system
(MKS Source Integrity). When they want to edit a file, they check it out to
their sandbox, work on it, then check it back in to the main project.

 --
 From: Anthony Smith[SMTP:[EMAIL PROTECTED]]
 Reply To: Tomcat Users List
 Sent: Monday, September 30, 2002 5:10 PM
 To:   Tomcat Users List
 Subject:  web.xml help
 
 Let me explain my problem just in case there is another solution...
 
 In my Tomcat enviroment, there may be several developers working on one
 webapp, but I want each one of the developers to use their own web.xml or
 some variant of it. Is this possible?
 
 So for developer 1's folder he can drop his xml file in the WEB-INF folder
 and have access to all its properties, but still have access to web.xml as
 well as the other xml files that may be in existence...
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: web.xml help

2002-09-30 Thread Anthony Smith

Well we got that going, and this may be a Jetspeed question but I want to
have one webapp access another but in the scope of a portlet...

-Original Message-
From: Cooperstock, Dan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 4:15 PM
To: 'Tomcat Users List'
Subject: RE: web.xml help


What you are suggesting doesn't sound very safe without using a source code
control system.

What we do is to have each developer have a local copy of Tomcat on their
PC, with their own copy of the source code for the web app. That copy is a
sandbox, copied out of the master project in the source code control system
(MKS Source Integrity). When they want to edit a file, they check it out to
their sandbox, work on it, then check it back in to the main project.

 --
 From: Anthony Smith[SMTP:[EMAIL PROTECTED]]
 Reply To: Tomcat Users List
 Sent: Monday, September 30, 2002 5:10 PM
 To:   Tomcat Users List
 Subject:  web.xml help

 Let me explain my problem just in case there is another solution...

 In my Tomcat enviroment, there may be several developers working on one
 webapp, but I want each one of the developers to use their own web.xml or
 some variant of it. Is this possible?

 So for developer 1's folder he can drop his xml file in the WEB-INF folder
 and have access to all its properties, but still have access to web.xml as
 well as the other xml files that may be in existence...


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]