RE: can't call my servlet on Tomcat 6 (Error 404)

2010-02-01 Thread hbral



n828cl wrote:
 
 From: hbral [mailto:nro...@web.de]
 Subject: RE: can't call my servlet on Tomcat 6 (Error 404)
 
 i call: /download/file
 and i get the 404 error
 
 What's the entire URL?
 
 Enable the AccessLogValve in server.xml and see if the request is even
 getting to Tomcat.
 
 do you mean the tomcat server.xml?
 
 Indeed, and it looks o.k.
  
 Connector port=8080 protocol=HTTP/1.1
connectionTimeout=2
redirectPort=8443 /
 Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /
 
 Do you have Tomcat front-ended by httpd or some other server?  If so,
 you'll need to configure it to pass the desired requests to Tomcat.  If
 not, you'll need to use port 8080 on your URL.
 
 war file: download.war
 path: apache-tomcat-6.0.24\webapps\download
 
 So Tomcat has expanded the download.war file into the download directory? 
 (It should; just checking.)
 
 web.xml:
   servlet-mapping
 servlet-nameDLServlet/servlet-name
 url-pattern/download/file/url-pattern
   /servlet-mapping
 
 Change the url-pattern to just /file; the webapp name must not be part
 of the pattern.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 


Thank you guys.

i called only for /download/file 
when i should have called for /download/download/file as u guys told me.
i guess eclipse leaves out that first download some how.

best regards


-- 
View this message in context: 
http://old.nabble.com/can%27t-call-my-servlet-on-Tomcat-6-%28Error-404%29-tp27397388p27405562.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: can't call my servlet on Tomcat 6 (Error 404)

2010-02-01 Thread Caldarale, Charles R
 From: hbral [mailto:nro...@web.de]
 Subject: RE: can't call my servlet on Tomcat 6 (Error 404)
 
 i called only for /download/file
 when i should have called for /download/download/file as u guys told
 me.

Or correct the url-pattern to avoid the redundancy.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread David Smith
On 1/31/2010 5:36 PM, hbral wrote:

 Hi everyone. 
 I have a serlvet that reads a file from disk and then starts streaming 
 the file. 
 i have mapped the servlet to url in the web.xml file. 
 it works perfect on my local machine (i'm using gwt with eclipse which uses
 jetty i think) but when i deploy it on my tomcat server i can't call that
 url that is mapped to the servlet instead i 
 get a page with the 404 error (the requested resource was not found). 
 thank you 
   

Help us help you.  We need to see the logs for the moment your webapp
was deployed and the moment you requested the servlet.  Also some
details on your system -- os, jvm, tomcat version, etc., ... would help
all the more.


--David


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread hbral



David Smith-2 wrote:
 
 On 1/31/2010 5:36 PM, hbral wrote:

 Hi everyone. 
 I have a serlvet that reads a file from disk and then starts streaming 
 the file. 
 i have mapped the servlet to url in the web.xml file. 
 it works perfect on my local machine (i'm using gwt with eclipse which
 uses
 jetty i think) but when i deploy it on my tomcat server i can't call that
 url that is mapped to the servlet instead i 
 get a page with the 404 error (the requested resource was not found). 
 thank you 
   
 
 Help us help you.  We need to see the logs for the moment your webapp
 was deployed and the moment you requested the servlet.  Also some
 details on your system -- os, jvm, tomcat version, etc., ... would help
 all the more.
 
 
 --David
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

sorry about that.

tomcat: 6.0.24
os: debian linux 2.6.12.6-xenU
jvm: 1.6.0_12-b04

log files contain nothing use full other than that i successfully deployed
the war file

regards 

-- 
View this message in context: 
http://old.nabble.com/can%27t-call-my-servlet-on-Tomcat-6-%28Error-404%29-tp27397388p27397698.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread David Smith
On 1/31/2010 6:15 PM, hbral wrote:


 David Smith-2 wrote:
   
 On 1/31/2010 5:36 PM, hbral wrote:
 
 Hi everyone. 
 I have a serlvet that reads a file from disk and then starts streaming 
 the file. 
 i have mapped the servlet to url in the web.xml file. 
 it works perfect on my local machine (i'm using gwt with eclipse which
 uses
 jetty i think) but when i deploy it on my tomcat server i can't call that
 url that is mapped to the servlet instead i 
 get a page with the 404 error (the requested resource was not found). 
 thank you 
   
   
 Help us help you.  We need to see the logs for the moment your webapp
 was deployed and the moment you requested the servlet.  Also some
 details on your system -- os, jvm, tomcat version, etc., ... would help
 all the more.


 --David


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



 
 sorry about that.

 tomcat: 6.0.24
 os: debian linux 2.6.12.6-xenU
 jvm: 1.6.0_12-b04

 log files contain nothing use full other than that i successfully deployed
 the war file

 regards 

   
Then I'm guessing your servlet isn't getting hit on the production
environment.  I would add some logging so even successful attempts show
up in the log file and test w/ your server env. again.

--David


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread Konstantin Kolinko
2010/2/1 hbral nro...@web.de:

 tomcat: 6.0.24
 os: debian linux 2.6.12.6-xenU
 jvm: 1.6.0_12-b04

 log files contain nothing use full other than that i successfully deployed
 the war file


What URL are you calling by your browser?

If your war was named mywar.war then you should call
http://localhost:8080/mywar/myservlet

Also,
http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application_.3F

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread hbral



Konstantin Kolinko wrote:
 
 2010/2/1 hbral nro...@web.de:

 tomcat: 6.0.24
 os: debian linux 2.6.12.6-xenU
 jvm: 1.6.0_12-b04

 log files contain nothing use full other than that i successfully
 deployed
 the war file

 
 What URL are you calling by your browser?
 
 If your war was named mywar.war then you should call
 http://localhost:8080/mywar/myservlet
 
 Also,
 http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application_.3F
 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

yes i called it that way.
as i said, it worked perfectly on my local testing environment with eclipse
and gwt plugin. 

-- 
View this message in context: 
http://old.nabble.com/can%27t-call-my-servlet-on-Tomcat-6-%28Error-404%29-tp27397388p27398666.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread Caldarale, Charles R
 From: hbral [mailto:nro...@web.de]
 Subject: Re: can't call my servlet on Tomcat 6 (Error 404)
 
 yes i called it that way.

You seem reluctant to provide real data.  Show us your web.xml, server.xml, the 
webapp's Context element (if any), the location of the .war file, and the 
actual URL.

 it worked perfectly on my local testing environment with
 eclipse and gwt plugin.

Note that Eclipse has a habit of using its own configurations for things, 
rather than the ones you think you've set up.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread hbral



n828cl wrote:
 
 From: hbral [mailto:nro...@web.de]
 Subject: Re: can't call my servlet on Tomcat 6 (Error 404)
 
 yes i called it that way.
 
 You seem reluctant to provide real data.  Show us your web.xml,
 server.xml, the webapp's Context element (if any), the location of the
 .war file, and the actual URL.
 
 it worked perfectly on my local testing environment with
 eclipse and gwt plugin.
 
 Note that Eclipse has a habit of using its own configurations for things,
 rather than the ones you think you've set up.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

i call: /download/file
and i get the 404 error

i don't have a server.xml
or do you mean the tomcat server.xml?
here it is:





?xml version='1.0' encoding='utf-8'?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
!-- Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves at this level.
 Documentation at /docs/config/server.html
 --
Server port=8005 shutdown=SHUTDOWN

  !--APR library loader. Documentation at /docs/apr.html --
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  !--Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener /
  !-- Prevent memory leaks due to use of particular java/javax APIs--
  Listener
className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
  !-- JMX Support for the Tomcat server. Documentation at
/docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  !-- Global JNDI resources
   Documentation at /docs/jndi-resources-howto.html
  --
  GlobalNamingResources
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users
--
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container Note:  A Service is not itself a Container, 
   so you may not define subcomponents such as Valves at this level.
   Documentation at /docs/config/service.html
   --
  Service name=Catalina
  
!--The connectors can use a shared executor, you can define one or more
named thread pools--
!--
Executor name=tomcatThreadPool namePrefix=catalina-exec- 
maxThreads=150 minSpareThreads=4/
--


!-- A Connector represents an endpoint by which requests are received
 and responses are returned. Documentation at :
 Java HTTP Connector: /docs/config/http.html (blocking 
non-blocking)
 Java AJP  Connector: /docs/config/ajp.html
 APR (HTTP/AJP) Connector: /docs/apr.html
 Define a non-SSL HTTP/1.1 Connector on port 8080
--
Connector port=8080 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
!-- A Connector using the shared thread pool--
!--
Connector executor=tomcatThreadPool
   port=8080 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
--   
!-- Define a SSL HTTP/1.1 Connector on port 8443
 This connector uses the JSSE configuration, when using APR, the 
 connector should be using the OpenSSL style configuration
 described in the APR documentation --
!--
Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https secure

RE: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread Caldarale, Charles R
 From: hbral [mailto:nro...@web.de]
 Subject: RE: can't call my servlet on Tomcat 6 (Error 404)
 
 i call: /download/file
 and i get the 404 error

What's the entire URL?

Enable the AccessLogValve in server.xml and see if the request is even getting 
to Tomcat.

 do you mean the tomcat server.xml?

Indeed, and it looks o.k.
 
 Connector port=8080 protocol=HTTP/1.1
connectionTimeout=2
redirectPort=8443 /
 Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

Do you have Tomcat front-ended by httpd or some other server?  If so, you'll 
need to configure it to pass the desired requests to Tomcat.  If not, you'll 
need to use port 8080 on your URL.

 war file: download.war
 path: apache-tomcat-6.0.24\webapps\download

So Tomcat has expanded the download.war file into the download directory?  (It 
should; just checking.)

 web.xml:
   servlet-mapping
 servlet-nameDLServlet/servlet-name
 url-pattern/download/file/url-pattern
   /servlet-mapping

Change the url-pattern to just /file; the webapp name must not be part of the 
pattern.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread Ningappa Koneri
As Konstantin said in ur case the URL should be 
http://localhost:8080/download/download/file.


Regards,
Ningappa Koneri
mLifestyle | www.comviva.com



-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
Sent: Monday, February 01, 2010 5:30 AM
To: Tomcat Users List
Subject: Re: can't call my servlet on Tomcat 6 (Error 404)

2010/2/1 hbral nro...@web.de:

 tomcat: 6.0.24
 os: debian linux 2.6.12.6-xenU
 jvm: 1.6.0_12-b04

 log files contain nothing use full other than that i successfully deployed
 the war file


What URL are you calling by your browser?

If your war was named mywar.war then you should call
http://localhost:8080/mywar/myservlet

Also,
http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application_.3F

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are those of the individual sender only and no binding nature of the contents 
shall be implied or assumed unless the sender does so expressly with due 
authority of Comviva Technologies Limited. E-mail and any contents transmitted 
with it are prone to viruses and related defects despite all efforts to avoid 
such by Comviva Technologies Limited.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org