RE: servlet deployed, but Tomcat provides .war file for download only

2004-10-05 Thread Aziz Yacoub
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 [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 
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 
[EMAIL PROTECTED]  
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: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 
-

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




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

2004-10-05 Thread Christian Ruediger
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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:[EMAIL PROTECTED]
 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 
 [EMAIL PROTECTED] 
 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet deployed, but Tomcat provides .war file for download only

2004-10-05 Thread QM
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet deployed, but Tomcat provides .war file for download only

2004-10-05 Thread Christian Ruediger
On Tue, 5 Oct 2004 07:04:11 -0500, QM [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Shapira, Yoav

Hi,
How about starting with the simplest approach: forget the manager,
forget Ant.  Do a clean Tomcat installation.  Copy your webapp into the
webapps folder (not as a WAR file, just the unpacked directory
structure).  Start the server.  That's it.

Your web.xml looks fine.  It's always a good idea to validate it using a
tool like XMLSpy (there are free alternatives online as well) if you're
unsure that it's valid.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Christian Ruediger [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 10:55 AM
To: Tomcat Users List
Subject: servlet deployed, but Tomcat provides .war file for download
only

Hi folks,

i have deployed a .war file, but Tomcat doesen't execute the servlet.
Instead he provides the deployed war file for download.
I have tried the deployment procedure by ANT task, by startup with war
file.
I also tried the manager web frontend.

The manager shows me the option to start the app, but when clicking the
link
the page is reloaded but the state of the app is still shown as
inactive.

The error.log is empty

The log of tomcat shows the following after depoyment

2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: start:
Starting web application at '/LocasugeGSM-0.1-dev'
2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: list:
Listing contexts for virtual host 'localhost'

Regards
Christian Ruediger

Here is the deployment descriptor:

?xml version=1.0 encoding=ISO-8859-1 ?
 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

 display-nameTestservlet/display-name
 servlet
   servlet-nameRpcServlet/servlet-name
   servlet-classtestserveur.RpcServlet/servlet-class
 /servlet
 servlet-mapping
   servlet-nameRpcServlet/servlet-name
   url-pattern/servlet/RpcServlet/url-pattern
 /servlet-mapping
/web-app

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




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread QM
On Mon, Oct 04, 2004 at 04:54:40PM +0200, Christian Ruediger wrote:
: i have deployed a .war file, but Tomcat doesen't execute the servlet.
: Instead he provides the deployed war file for download.

Where, specifically, is the WAR file?

If Tomcat's offering the file for download, then you likely have it one
directory too deep.

What are the contents of server.xml and, if you use it, context.xml?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Christian Ruediger
OK,
i did as you said.
I deinstalled my tomcat, installed a new into a new folder (just to be sure).
After that I copied the extracted app into the webapp folder:
in my case the class file goes here (Just to document the path):
C:\Program Files\Tomcat 5.0\webapps\LocasugeGSM-0.1-dev\WEB-INF\classes

The browser only shows an 404 error

What do I do wrong?

Paths I have tried:
http://localhost:8080/LocasugeGSM-0.1-dev
http://localhost:8080/LocasugeGSM-0.1-dev/
http://localhost:8080/LocasugeGSM-0.1-dev/RpcServlet
http://localhost:8080/LocasugeGSM-0.1-dev/servlet/RpcServlet

I'd do anything to fix this.

Christian


On Mon, 4 Oct 2004 10:57:35 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 How about starting with the simplest approach: forget the manager,
 forget Ant.  Do a clean Tomcat installation.  Copy your webapp into the
 webapps folder (not as a WAR file, just the unpacked directory
 structure).  Start the server.  That's it.
 
 Your web.xml looks fine.  It's always a good idea to validate it using a
 tool like XMLSpy (there are free alternatives online as well) if you're
 unsure that it's valid.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 
 
 -Original Message-
 From: Christian Ruediger [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 04, 2004 10:55 AM
 To: Tomcat Users List
 Subject: servlet deployed, but Tomcat provides .war file for download
 only
 
 Hi folks,
 
 i have deployed a .war file, but Tomcat doesen't execute the servlet.
 Instead he provides the deployed war file for download.
 I have tried the deployment procedure by ANT task, by startup with war
 file.
 I also tried the manager web frontend.
 
 The manager shows me the option to start the app, but when clicking the
 link
 the page is reloaded but the state of the app is still shown as
 inactive.
 
 The error.log is empty
 
 The log of tomcat shows the following after depoyment
 
 2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: start:
 Starting web application at '/LocasugeGSM-0.1-dev'
 2004-10-04 16:27:42 StandardContext[/manager]HTMLManager: list:
 Listing contexts for virtual host 'localhost'
 
 Regards
 Christian Ruediger
 
 Here is the deployment descriptor:
 
 ?xml version=1.0 encoding=ISO-8859-1 ?
  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
 
  display-nameTestservlet/display-name
  servlet
servlet-nameRpcServlet/servlet-name
servlet-classtestserveur.RpcServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameRpcServlet/servlet-name
url-pattern/servlet/RpcServlet/url-pattern
  /servlet-mapping
 /web-app
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Shapira, Yoav

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Christian Ruediger
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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: servlet deployed, but Tomcat provides .war file for download only

2004-10-04 Thread Shapira, Yoav

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:[EMAIL PROTECTED]
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 [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]