You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Aziz Yacoub <Az...@decastar.com.au> on 2004/10/05 09:21:27 UTC
RE: servlet deployed, but Tomcat provides .war file for
download only
Actually I have the same problem. I can deploy expanded web apps no
probs, but I've never been able to deploy a WAR... browser always wants
to download it.
Is there a TC setting that tells it to deploy WARs?
>>> "Shapira, Yoav" <Yo...@mpi.com> 5/10/2004 2:32:20 am >>>
Hi,
Oh, it's very definitely a special case ;) If the examples didn't work
for 99.9% of Tomcat users, we'd have heard about it loudly and clearly
by now. That's based on actual experience, not just hypothesis ;)
Yoav Shapira
Millennium Research Informatics
>-----Original Message-----
>From: Christian Ruediger [ mailto:christian.ruediger@gmail.com]
>Sent: Monday, October 04, 2004 12:27 PM
>To: Tomcat Users List
>Subject: Re: servlet deployed, but Tomcat provides .war file for
download
>only
>
>Thank you so far,
>
>in case i find that the examples dont work on my system,
>whom could I anounce the prevent others from serching to long:
>Perhaps with a little comment in the Readme.
>
>Or should I see it as it is: a special case.
>
>Bye
>Christian
>
>
>On Mon, 4 Oct 2004 12:19:54 -0400, Shapira, Yoav <
yoav.shapira@mpi.com >
>wrote:
>>
>> Hi,
>>
>> >Actually i used the launcher, 'cause the .bat script has some
errors
>> >while calling javac (I haven't tried to fix this yet).
>>
>> Address those before going further. You should be able to launch
Tomcat
>> using startup.bat on Windows out of the box. If not, something
serious
>> is wrong.
>>
>> >There is, as follows an XML parser error in the stdout.log file
>> >
>> >instruction target matching "[xX][mM][lL]" is not allowed.
>> >org.xml.sax.SAXParseException: The processing instruction target
>>
>> You have one messed-up configuration ;) I'm assuming that the
examples
>> and other default web applications that ship with Tomcat are not
>> working? It's not just your webapp or just your servlet.
>>
>> Yoav
>>
>> This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged. This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else. If you are not the(an)
intended
>recipient, please immediately delete this e-mail from your computer
system
>and notify the sender. Thank you.
>>
>>
>>
---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged. This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else. If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender. Thank you.
Re: servlet deployed, but Tomcat provides .war file for download only
Posted by Christian Ruediger <ch...@gmail.com>.
On Tue, 5 Oct 2004 07:04:11 -0500, QM <qm...@brandxdev.net> wrote:
> On Tue, Oct 05, 2004 at 10:48:11AM +0200, Christian Ruediger wrote:
> : I solved my problem:
> : The cause is quite simple:
> : I deleted the leading whitespace from my web.xml file.
>
> Thanks for the solution; for the sake of the archives, could you
> please clarify?
>
> What leading whitespace, and in what XML file?
I don't know whether this will help in your case,
but i meant the web.xml file located in the deploymant path:
{yourWebApp}/WEB-INF/web.xml
Seems like XML files are not allowed to begin with a whitespace.
Means this is wrong:
<xml...
And this is right:
<xml...
So far for my error
Christian
> Thanks,
>
> -QM
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: servlet deployed, but Tomcat provides .war file for download only
Posted by QM <qm...@brandxdev.net>.
On Tue, Oct 05, 2004 at 10:48:11AM +0200, Christian Ruediger wrote:
: I solved my problem:
: The cause is quite simple:
: I deleted the leading whitespace from my web.xml file.
Thanks for the solution; for the sake of the archives, could you
please clarify?
What leading whitespace, and in what XML file?
Thanks,
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: servlet deployed, but Tomcat provides .war file for download only
Posted by Christian Ruediger <ch...@gmail.com>.
I solved my problem:
The cause is quite simple:
I deleted the leading whitespace from my web.xml file.
The lesson I learned: VALIDATE your xml files before using them.
Here is an online checker in case you need one:
http://www.stg.brown.edu/service/xmlvalid/
May the rest of the community never encounter a problem like this again.
Bye
Christian
On Tue, 05 Oct 2004 17:21:27 +1000, Aziz Yacoub <az...@decastar.com.au> wrote:
> Actually I have the same problem. I can deploy expanded web apps no
> probs, but I've never been able to deploy a WAR... browser always wants
> to download it.
>
> Is there a TC setting that tells it to deploy WARs?
>
> >>> "Shapira, Yoav" <Yo...@mpi.com> 5/10/2004 2:32:20 am >>>
>
>
>
> Hi,
> Oh, it's very definitely a special case ;) If the examples didn't work
>
> for 99.9% of Tomcat users, we'd have heard about it loudly and clearly
>
> by now. That's based on actual experience, not just hypothesis ;)
>
> Yoav Shapira
> Millennium Research Informatics
>
> >-----Original Message-----
> >From: Christian Ruediger [ mailto:christian.ruediger@gmail.com]
> >Sent: Monday, October 04, 2004 12:27 PM
> >To: Tomcat Users List
> >Subject: Re: servlet deployed, but Tomcat provides .war file for
> download
> >only
> >
> >Thank you so far,
> >
> >in case i find that the examples dont work on my system,
> >whom could I anounce the prevent others from serching to long:
> >Perhaps with a little comment in the Readme.
> >
> >Or should I see it as it is: a special case.
> >
> >Bye
> >Christian
> >
> >
> >On Mon, 4 Oct 2004 12:19:54 -0400, Shapira, Yoav <
> yoav.shapira@mpi.com >
> >wrote:
> >>
> >> Hi,
> >>
> >> >Actually i used the launcher, 'cause the .bat script has some
> errors
> >> >while calling javac (I haven't tried to fix this yet).
> >>
> >> Address those before going further. You should be able to launch
> Tomcat
> >> using startup.bat on Windows out of the box. If not, something
> serious
> >> is wrong.
> >>
> >> >There is, as follows an XML parser error in the stdout.log file
> >> >
> >> >instruction target matching "[xX][mM][lL]" is not allowed.
> >> >org.xml.sax.SAXParseException: The processing instruction target
> >>
> >> You have one messed-up configuration ;) I'm assuming that the
> examples
> >> and other default web applications that ship with Tomcat are not
> >> working? It's not just your webapp or just your servlet.
> >>
> >> Yoav
> >>
> >> This e-mail, including any attachments, is a confidential business
> >communication, and may contain information that is confidential,
> >proprietary and/or privileged. This e-mail is intended only for the
> >individual(s) to whom it is addressed, and may not be saved, copied,
> >printed, disclosed or used by anyone else. If you are not the(an)
> intended
> >recipient, please immediately delete this e-mail from your computer
> system
> >and notify the sender. Thank you.
> >>
> >>
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> >>
> >>
> >
> >---------------------------------------------------------------------
>
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged. This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else. If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender. Thank you.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org