You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nick Wolters <ni...@ivict.com> on 2005/03/17 15:51:47 UTC

Servlet pops up as download

Hello,

Having some issues with an ensim tomcat 4 installation.
Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a
download dialog instead of showing the page.
It downloads MyServlet which does contain all the code it should normally
display in the browser.

I don't have much experience yet with tomcat, planning to read-up on it next
month, but could someone help me with this for now?
What things should I check ?

Kind regards,
Nick


Re: Start and stop Tomcat + Cron

Posted by Lionel Farbos <li...@free.fr>.
Yes and it depends on your crontab version.
In my version,
the system-wide crontab seems like this :
00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh
and the user-wide crontab seems like this :
00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh
...
but are not executed by the same user.


On Thu, 17 Mar 2005 10:27:58 -0600
"Robert r. Sanders" <ro...@ipov.net> wrote:

> Are your JAVA_HOME and other vars defined in a global context?  Other 
> than that I don't really know.
> 
> Cédric Buschini wrote:
> 
> > Hi
> >
> > I'd like to stop and start my tomcat using cron so I added this in the 
> > root's crontab and /etc/crontab :
> >
> > 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh
> > 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh
> >
> > but it does work :s
> >
> > Any got ideas ???
> >
> > Thk
> >
> > Cedric
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> 
> -- 
>     Robert r. Sanders
>     Chief Technologist
>     iPOV
>     (334) 821-5412
>     www.ipov.net
> 
> 
> ---------------------------------------------------------------------
> 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


Re: Start and stop Tomcat + Cron

Posted by Cédric Buschini <cb...@carax.com>.
yes everything is fine.
all vars have been export. I've done a JAVA_HOME=path/to/java then 
export JAVA_HOME.
Same thing for CATALINA_HOME ....

Robert r. Sanders wrote:

> Are your JAVA_HOME and other vars defined in a global context?  Other 
> than that I don't really know.
>
> Cédric Buschini wrote:
>
>> Hi
>>
>> I'd like to stop and start my tomcat using cron so I added this in 
>> the root's crontab and /etc/crontab :
>>
>> 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh
>> 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh
>>
>> but it does work :s
>>
>> Any got ideas ???
>>
>> Thk
>>
>> Cedric
>>
>> ---------------------------------------------------------------------
>> 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


Re: Start and stop Tomcat + Cron

Posted by "Robert r. Sanders" <ro...@ipov.net>.
Are your JAVA_HOME and other vars defined in a global context?  Other 
than that I don't really know.

Cédric Buschini wrote:

> Hi
>
> I'd like to stop and start my tomcat using cron so I added this in the 
> root's crontab and /etc/crontab :
>
> 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh
> 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh
>
> but it does work :s
>
> Any got ideas ???
>
> Thk
>
> Cedric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

-- 
    Robert r. Sanders
    Chief Technologist
    iPOV
    (334) 821-5412
    www.ipov.net


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Start and stop Tomcat + Cron

Posted by Cédric Buschini <cb...@carax.com>.
1/ Sorry having replied to an unrelated message.

2/ Yes Tomcat always run as root.

3/ I am newbie, so I will get info about 'wapper script'.

4/ uhmmm a newbie question : Where can I find these logs ..... sorry :s

QM wrote:

>On Thu, Mar 17, 2005 at 05:24:59PM +0100, C?dric Buschini wrote:
>: I'd like to stop and start my tomcat using cron so I added this in the 
>: root's crontab and /etc/crontab :
>: 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh
>: 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh
>
>1/ please post a *new* message when writing to the list.  Replying to
>an old (unrelated) message confuses thread-aware mailers, which makes
>your question harder to find (and thus answer).
>
>2/ does Tomcat always run as root?  That's just a side concern, but you
>probably don't want to do that.
>
>3/ You mentioned that all of the proper environment variables are set,
>but are they set just in root's shell? Keep in mind, cron is a barebones
>environment.  You'd do well to use wrapper scripts for cron jobs, such
>that the wrapper can set any needed env vars.
>
>4/ What are the messages in the error logs, cron logs, etc?  What
>"doesn't work?"
>
>-QM
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Start and stop Tomcat + Cron

Posted by QM <qm...@brandxdev.net>.
On Thu, Mar 17, 2005 at 05:24:59PM +0100, C?dric Buschini wrote:
: I'd like to stop and start my tomcat using cron so I added this in the 
: root's crontab and /etc/crontab :
: 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh
: 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh

1/ please post a *new* message when writing to the list.  Replying to
an old (unrelated) message confuses thread-aware mailers, which makes
your question harder to find (and thus answer).

2/ does Tomcat always run as root?  That's just a side concern, but you
probably don't want to do that.

3/ You mentioned that all of the proper environment variables are set,
but are they set just in root's shell? Keep in mind, cron is a barebones
environment.  You'd do well to use wrapper scripts for cron jobs, such
that the wrapper can set any needed env vars.

4/ What are the messages in the error logs, cron logs, etc?  What
"doesn't work?"

-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: Start and stop Tomcat + Cron

Posted by Ben Kim <bk...@coe.tamu.edu>.
1. Which platform and crond are you on? Is the crontab format correct for
your environment?

    00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh

vs. 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh

2. You may want to see if shutdown.sh works as root. 

3. You can also try
    00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh >> logfile 2>&1
or whatever works in your shell, and post caught errors.

4. If you're in Fedora, you can put these 2 lines in a script (say,
tomcat1.sh) and 

00 22 * * * root /YOUR/PATH/tomcat1.sh

    su - tomcat /PATH/TO/JAKARTA/bin/setclasspath.sh
    su - tomcat /PATH/TO/JAKARTA/bin/startup.sh

HTH.

Regards,

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas A&M University

------------ Original Message ------------

    Hi
    
    I'd like to stop and start my tomcat using cron so I added this in the 
    root's crontab and /etc/crontab :
    
    00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh
    02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh
    
    but it does work :s
    
    Any got ideas ???
    
    Thk
    
    Cedric
    
    ---------------------------------------------------------------------
    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


Start and stop Tomcat + Cron

Posted by Cédric Buschini <cb...@carax.com>.
Hi

I'd like to stop and start my tomcat using cron so I added this in the 
root's crontab and /etc/crontab :

00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh
02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh

but it does work :s

Any got ideas ???

Thk

Cedric

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Servlet pops up as download

Posted by Nick Wolters <ni...@ivict.com>.
Thanks.
I think the client lied when he told me it did show a while ago :)

With a WML enabled browser everything is ok.

Nick

-----Original Message-----
From: Lionel Farbos [mailto:lionel.farbos@free.fr] 
Sent: donderdag 17 maart 2005 17:23
To: Tomcat Users List
Cc: omar.adobati@gmail.com
Subject: Re: Servlet pops up as download

On Thu, 17 Mar 2005 16:57:04 +0100
Omar Adobati <om...@gmail.com> wrote:

> To browse a wml file you need to use a wml browser, You can't do it
> just using Ie or Mozilla. Maybe you can find a wml browser on the
> Internet.

I think Opera do it.

> 
> 
> On Thu, 17 Mar 2005 16:52:30 +0100, Lionel Farbos <li...@free.fr>
wrote:
> > and, in your browser, what is the default action for this mapping ?
> > 
> > On Thu, 17 Mar 2005 16:19:06 +0100
> > "Nick Wolters" <ni...@ivict.com> wrote:
> > 
> > > In mozilla the download window says: text/vnd.wap.wml
> > >
> > > The file itself begins with the following:
> > >
> > > <?xml version="1.0" encoding="iso-8859-1"?>
> > > <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> > > "http://www.wapforum.org/DTD/wml_1.1.xml">
> > >       <wml>
> > >
> > > .....
> > >
> > > </wml>
> > >
> > >
> > > In web.xml I found the following:
> > >
> > >   <mime-mapping> <!-- WML Source -->
> > >     <extension>wml</extension>
> > >     <mime-type>text/vnd.wap.wml</mime-type>
> > >   </mime-mapping>
> > >
> > >
> > > Didn't write the servlet myself though.
> > >
> > > Nick
> > >
> > >
> > > -----Original Message-----
> > > From: Parsons Technical Services
[mailto:parsonstechnical@earthlink.net]
> > > Sent: donderdag 17 maart 2005 15:59
> > > To: Tomcat Users List
> > > Subject: Re: Servlet pops up as download
> > >
> > > What is your content type set to?
> > >
> > > Doug
> > >
> > >
> > > ----- Original Message -----
> > > From: "Nick Wolters" <ni...@ivict.com>
> > > To: <to...@jakarta.apache.org>
> > > Sent: Thursday, March 17, 2005 9:51 AM
> > > Subject: Servlet pops up as download
> > >
> > >
> > > > Hello,
> > > >
> > > > Having some issues with an ensim tomcat 4 installation.
> > > > Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops
up a
> > > > download dialog instead of showing the page.
> > > > It downloads MyServlet which does contain all the code it should
normally
> > > > display in the browser.
> > > >
> > > > I don't have much experience yet with tomcat, planning to read-up on
it
> > > > next
> > > > month, but could someone help me with this for now?
> > > > What things should I check ?
> > > >
> > > > Kind regards,
> > > > Nick
> > > >
> > > >
> > >
> > >
> > >
----------------------------------------------------------------------------
> > > ----
> > >
> > >
> > > >
---------------------------------------------------------------------
> > > > 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
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> > 
> > 
> 
> 
> -- 
> Adobati Omar
> omar.adobati@gmail.com
> 
> ---------------------------------------------------------------------
> 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




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Servlet pops up as download

Posted by Lionel Farbos <li...@free.fr>.
On Thu, 17 Mar 2005 16:57:04 +0100
Omar Adobati <om...@gmail.com> wrote:

> To browse a wml file you need to use a wml browser, You can't do it
> just using Ie or Mozilla. Maybe you can find a wml browser on the
> Internet.

I think Opera do it.

> 
> 
> On Thu, 17 Mar 2005 16:52:30 +0100, Lionel Farbos <li...@free.fr> wrote:
> > and, in your browser, what is the default action for this mapping ?
> > 
> > On Thu, 17 Mar 2005 16:19:06 +0100
> > "Nick Wolters" <ni...@ivict.com> wrote:
> > 
> > > In mozilla the download window says: text/vnd.wap.wml
> > >
> > > The file itself begins with the following:
> > >
> > > <?xml version="1.0" encoding="iso-8859-1"?>
> > > <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> > > "http://www.wapforum.org/DTD/wml_1.1.xml">
> > >       <wml>
> > >
> > > .....
> > >
> > > </wml>
> > >
> > >
> > > In web.xml I found the following:
> > >
> > >   <mime-mapping> <!-- WML Source -->
> > >     <extension>wml</extension>
> > >     <mime-type>text/vnd.wap.wml</mime-type>
> > >   </mime-mapping>
> > >
> > >
> > > Didn't write the servlet myself though.
> > >
> > > Nick
> > >
> > >
> > > -----Original Message-----
> > > From: Parsons Technical Services [mailto:parsonstechnical@earthlink.net]
> > > Sent: donderdag 17 maart 2005 15:59
> > > To: Tomcat Users List
> > > Subject: Re: Servlet pops up as download
> > >
> > > What is your content type set to?
> > >
> > > Doug
> > >
> > >
> > > ----- Original Message -----
> > > From: "Nick Wolters" <ni...@ivict.com>
> > > To: <to...@jakarta.apache.org>
> > > Sent: Thursday, March 17, 2005 9:51 AM
> > > Subject: Servlet pops up as download
> > >
> > >
> > > > Hello,
> > > >
> > > > Having some issues with an ensim tomcat 4 installation.
> > > > Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a
> > > > download dialog instead of showing the page.
> > > > It downloads MyServlet which does contain all the code it should normally
> > > > display in the browser.
> > > >
> > > > I don't have much experience yet with tomcat, planning to read-up on it
> > > > next
> > > > month, but could someone help me with this for now?
> > > > What things should I check ?
> > > >
> > > > Kind regards,
> > > > Nick
> > > >
> > > >
> > >
> > >
> > > ----------------------------------------------------------------------------
> > > ----
> > >
> > >
> > > > ---------------------------------------------------------------------
> > > > 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
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> > 
> > 
> 
> 
> -- 
> Adobati Omar
> omar.adobati@gmail.com
> 
> ---------------------------------------------------------------------
> 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


Re: Servlet pops up as download

Posted by Omar Adobati <om...@gmail.com>.
To browse a wml file you need to use a wml browser, You can't do it
just using Ie or Mozilla. Maybe you can find a wml browser on the
Internet.


On Thu, 17 Mar 2005 16:52:30 +0100, Lionel Farbos <li...@free.fr> wrote:
> and, in your browser, what is the default action for this mapping ?
> 
> On Thu, 17 Mar 2005 16:19:06 +0100
> "Nick Wolters" <ni...@ivict.com> wrote:
> 
> > In mozilla the download window says: text/vnd.wap.wml
> >
> > The file itself begins with the following:
> >
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> > "http://www.wapforum.org/DTD/wml_1.1.xml">
> >       <wml>
> >
> > .....
> >
> > </wml>
> >
> >
> > In web.xml I found the following:
> >
> >   <mime-mapping> <!-- WML Source -->
> >     <extension>wml</extension>
> >     <mime-type>text/vnd.wap.wml</mime-type>
> >   </mime-mapping>
> >
> >
> > Didn't write the servlet myself though.
> >
> > Nick
> >
> >
> > -----Original Message-----
> > From: Parsons Technical Services [mailto:parsonstechnical@earthlink.net]
> > Sent: donderdag 17 maart 2005 15:59
> > To: Tomcat Users List
> > Subject: Re: Servlet pops up as download
> >
> > What is your content type set to?
> >
> > Doug
> >
> >
> > ----- Original Message -----
> > From: "Nick Wolters" <ni...@ivict.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Thursday, March 17, 2005 9:51 AM
> > Subject: Servlet pops up as download
> >
> >
> > > Hello,
> > >
> > > Having some issues with an ensim tomcat 4 installation.
> > > Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a
> > > download dialog instead of showing the page.
> > > It downloads MyServlet which does contain all the code it should normally
> > > display in the browser.
> > >
> > > I don't have much experience yet with tomcat, planning to read-up on it
> > > next
> > > month, but could someone help me with this for now?
> > > What things should I check ?
> > >
> > > Kind regards,
> > > Nick
> > >
> > >
> >
> >
> > ----------------------------------------------------------------------------
> > ----
> >
> >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> 
> 


-- 
Adobati Omar
omar.adobati@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Servlet pops up as download

Posted by Lionel Farbos <li...@free.fr>.
and, in your browser, what is the default action for this mapping ?

On Thu, 17 Mar 2005 16:19:06 +0100
"Nick Wolters" <ni...@ivict.com> wrote:

> In mozilla the download window says: text/vnd.wap.wml
> 
> The file itself begins with the following:
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> "http://www.wapforum.org/DTD/wml_1.1.xml">
> 	<wml>
> 
> .....
> 
> </wml>
> 
> 
> In web.xml I found the following:
> 
>   <mime-mapping> <!-- WML Source -->
>     <extension>wml</extension>
>     <mime-type>text/vnd.wap.wml</mime-type>
>   </mime-mapping>
> 
> 
> Didn't write the servlet myself though.
> 
> Nick
> 
> 
> -----Original Message-----
> From: Parsons Technical Services [mailto:parsonstechnical@earthlink.net] 
> Sent: donderdag 17 maart 2005 15:59
> To: Tomcat Users List
> Subject: Re: Servlet pops up as download
> 
> What is your content type set to?
> 
> Doug
> 
> 
> ----- Original Message ----- 
> From: "Nick Wolters" <ni...@ivict.com>
> To: <to...@jakarta.apache.org>
> Sent: Thursday, March 17, 2005 9:51 AM
> Subject: Servlet pops up as download
> 
> 
> > Hello,
> >
> > Having some issues with an ensim tomcat 4 installation.
> > Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a
> > download dialog instead of showing the page.
> > It downloads MyServlet which does contain all the code it should normally
> > display in the browser.
> >
> > I don't have much experience yet with tomcat, planning to read-up on it 
> > next
> > month, but could someone help me with this for now?
> > What things should I check ?
> >
> > Kind regards,
> > Nick
> >
> >
> 
> 
> ----------------------------------------------------------------------------
> ----
> 
> 
> > ---------------------------------------------------------------------
> > 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
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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


Re: Servlet pops up as download

Posted by Omar Adobati <om...@gmail.com>.
maybe you need to enable tomcat to manage the wml files.
If I'm not wrong you have to chack the web.xml into yuor
TOMCAT_HOME\conf to verify that the mime mapping to use wml is not
commented or, at least, is presente.
I'm running Tomcat 5.5.7 and I already have the mime mapping enabled
and looks like this:
===
<mime-mapping>
        <!-- WML Source -->
        <extension>wml</extension>
        <mime-type>text/vnd.wap.wml</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- Compiled WML -->
        <extension>wmlc</extension>
        <mime-type>application/vnd.wap.wmlc</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- WML Script Source -->
        <extension>wmls</extension>
        <mime-type>text/vnd.wap.wmlscript</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- Compiled WML Script -->
        <extension>wmlscriptc</extension>
        <mime-type>application/vnd.wap.wmlscriptc</mime-type>
    </mime-mapping>
===

hope this help


On Thu, 17 Mar 2005 16:19:06 +0100, Nick Wolters <ni...@ivict.com> wrote:
> In mozilla the download window says: text/vnd.wap.wml
> 
> The file itself begins with the following:
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> "http://www.wapforum.org/DTD/wml_1.1.xml">
>        <wml>
> 
> .....
> 
> </wml>
> 
> In web.xml I found the following:
> 
>  <mime-mapping> <!-- WML Source -->
>    <extension>wml</extension>
>    <mime-type>text/vnd.wap.wml</mime-type>
>  </mime-mapping>
> 
> Didn't write the servlet myself though.
> 
> Nick
> 
> -----Original Message-----
> From: Parsons Technical Services [mailto:parsonstechnical@earthlink.net]
> Sent: donderdag 17 maart 2005 15:59
> To: Tomcat Users List
> Subject: Re: Servlet pops up as download
> 
> What is your content type set to?
> 
> Doug
> 
> ----- Original Message -----
> From: "Nick Wolters" <ni...@ivict.com>
> To: <to...@jakarta.apache.org>
> Sent: Thursday, March 17, 2005 9:51 AM
> Subject: Servlet pops up as download
> 
> > Hello,
> >
> > Having some issues with an ensim tomcat 4 installation.
> > Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a
> > download dialog instead of showing the page.
> > It downloads MyServlet which does contain all the code it should normally
> > display in the browser.
> >
> > I don't have much experience yet with tomcat, planning to read-up on it
> > next
> > month, but could someone help me with this for now?
> > What things should I check ?
> >
> > Kind regards,
> > Nick
> >
> >
> 
> ----------------------------------------------------------------------------
> ----
> 
> > ---------------------------------------------------------------------
> > 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
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
Adobati Omar
omar.adobati@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Servlet pops up as download

Posted by Jon Wingfield <jo...@mkodo.com>.
Mozilla doesn't understand how to deal with wml. But you can get a plug-in:
http://wmlbrowser.mozdev.org/


Nick Wolters wrote:

> In mozilla the download window says: text/vnd.wap.wml
> 
> The file itself begins with the following:
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> "http://www.wapforum.org/DTD/wml_1.1.xml">
> 	<wml>
> 
> .....
> 
> </wml>
> 
> 
> In web.xml I found the following:
> 
>   <mime-mapping> <!-- WML Source -->
>     <extension>wml</extension>
>     <mime-type>text/vnd.wap.wml</mime-type>
>   </mime-mapping>
> 
> 
> Didn't write the servlet myself though.
> 
> Nick
> 
> 
> -----Original Message-----
> From: Parsons Technical Services [mailto:parsonstechnical@earthlink.net] 
> Sent: donderdag 17 maart 2005 15:59
> To: Tomcat Users List
> Subject: Re: Servlet pops up as download
> 
> What is your content type set to?
> 
> Doug
> 
> 
> ----- Original Message ----- 
> From: "Nick Wolters" <ni...@ivict.com>
> To: <to...@jakarta.apache.org>
> Sent: Thursday, March 17, 2005 9:51 AM
> Subject: Servlet pops up as download
> 
> 
> 
>>Hello,
>>
>>Having some issues with an ensim tomcat 4 installation.
>>Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a
>>download dialog instead of showing the page.
>>It downloads MyServlet which does contain all the code it should normally
>>display in the browser.
>>
>>I don't have much experience yet with tomcat, planning to read-up on it 
>>next
>>month, but could someone help me with this for now?
>>What things should I check ?
>>
>>Kind regards,
>>Nick
>>
>>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Servlet pops up as download

Posted by Nick Wolters <ni...@ivict.com>.
In mozilla the download window says: text/vnd.wap.wml

The file itself begins with the following:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
	<wml>

.....

</wml>


In web.xml I found the following:

  <mime-mapping> <!-- WML Source -->
    <extension>wml</extension>
    <mime-type>text/vnd.wap.wml</mime-type>
  </mime-mapping>


Didn't write the servlet myself though.

Nick


-----Original Message-----
From: Parsons Technical Services [mailto:parsonstechnical@earthlink.net] 
Sent: donderdag 17 maart 2005 15:59
To: Tomcat Users List
Subject: Re: Servlet pops up as download

What is your content type set to?

Doug


----- Original Message ----- 
From: "Nick Wolters" <ni...@ivict.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, March 17, 2005 9:51 AM
Subject: Servlet pops up as download


> Hello,
>
> Having some issues with an ensim tomcat 4 installation.
> Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a
> download dialog instead of showing the page.
> It downloads MyServlet which does contain all the code it should normally
> display in the browser.
>
> I don't have much experience yet with tomcat, planning to read-up on it 
> next
> month, but could someone help me with this for now?
> What things should I check ?
>
> Kind regards,
> Nick
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> 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




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Servlet pops up as download

Posted by Parsons Technical Services <pa...@earthlink.net>.
What is your content type set to?

Doug


----- Original Message ----- 
From: "Nick Wolters" <ni...@ivict.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, March 17, 2005 9:51 AM
Subject: Servlet pops up as download


> Hello,
>
> Having some issues with an ensim tomcat 4 installation.
> Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a
> download dialog instead of showing the page.
> It downloads MyServlet which does contain all the code it should normally
> display in the browser.
>
> I don't have much experience yet with tomcat, planning to read-up on it 
> next
> month, but could someone help me with this for now?
> What things should I check ?
>
> Kind regards,
> Nick
>
>


--------------------------------------------------------------------------------


> ---------------------------------------------------------------------
> 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