RE: Tomcat URL Rewrite. Help with configuration.

2009-03-18 Thread Rodro

THERE'S NO context.xml.
Also, since my app is a third party (not properly Tomcat or Apache's)
server.xml does not contain any information ab them.
Server.xml was uploaded.
Thanks for the reply.


Caldarale, Charles R wrote:
 
 From: Rodro [mailto:rodrigo_alle...@ibi.com] 
 Subject: Re: Tomcat URL Rewrite. Help with configuration.
 
 Though redirection didn't work, but furthermore when I try to see
 http://localhost:8080/rewrite-status, I get the below error:
 Estado HTTP 404 - /rewrite-status
 
 That would be expected, since you don't appear to have a webapp named
 rewrite-status.
 
 You likely do not have your webapp deployed properly.  If you want your
 webapp to be the default one, it must be named ROOT (case sensitive, even
 on Windows).  Post your server.xml and the META-INF/context.xml file from
 your webapp (if it exists).
 
  - 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
 
 
 
http://www.nabble.com/file/p22588199/server.xml server.xml 
-- 
View this message in context: 
http://www.nabble.com/Tomcat-URL-Rewrite.-Help-with-configuration.-tp22446210p22588199.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: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Rodro

Dear awarnier.
Ok, Now I found such WEB-INF directory (in my app it's 
C:\ibi\WebFOCUS76\webapps\webfocus76\WEB-INF), and followed the installation
and configuration steps.

1) copied urlrewrite.xml into such WEB-INF
2) edited web.xml with the below lines:
  filter
filter-nameUrlRewriteFilter/filter-name

filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter-class
  /filter
  filter-mapping
filter-nameUrlRewriteFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
3) edited urlrewrite with my own rewriting config:
rule
from/car/from
to type=redirect/ibi_apps/WFServlet?IBIF_ex=carinst/to
/rule
4) copied urlrewrite-2.6.0.jar into WEB-INF/lib directory
5) restarted Tomcat

Though redirection didn't work, but furthermore when I try to see
http://localhost:8080/rewrite-status, I get the below error:

Estado HTTP 404 - /rewrite-status

type Informe de estado
mensaje /rewrite-status
descripción El recurso requerido (/rewrite-status) no está disponible.

Apache Tomcat/5.5.25

Already looked into urlrewrite.xml and such rule is there:
rule
note
The rule means that requests to /test/status/ will be redirected
to /rewrite-status
the url will be rewritten.
/note
from/test/status//from
to type=redirect%{context-path}/rewrite-status/to
/rule


WHAT AM I DOING WRONG???
APPRECIATTE YOUR HELP ON THIS.
Rodrigo.



awarnier wrote:
 
 Rodro wrote:
 Dear Tomcat Users.
 I'm trying to do a URL masking on Tomcat 5.5.25.
 
 What I specifically want to do is:
 I execute (call) an app with the following URL:   
 http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst
 Now, I need to mask the URL to get the same result calling the app as:   
 http://localhost:8080/car
 i.e. mask /ibi_apps/WFServlet?IBIF_ex=carinst  as /car.
 
 I found a Solution with URLREWRITE on 
 http://tuckey.org/urlrewrite/manual/2.6
 Under Install I see on STEP 1:“Download the zip (or tar.gz) and
 extract it into your context'sdirectory ie, so that urlrewrite.xml goes
 into
 the WEB-INF directory”. 
 
 However, looking into my file directory I found 6 WEB-INF directories:
 C:\Archivos de programa\Apache Software Foundation\Tomcat
 5.5\webapps\ROOT
 C:\Archivos de programa\Apache Software Foundation\Tomcat
 5.5\webapps\tomcat-docs
 C:\Archivos de programa\Apache Software Foundation\Tomcat
 5.5\server\webapps\admin
 C:\Archivos de programa\Apache Software Foundation\Tomcat
 5.5\server\webapps\host-manager
 C:\Archivos de programa\Apache Software Foundation\Tomcat
 5.5\server\webapps\manager
 C:\Archivos de programa\Apache Software Foundation\Tomcat
 5.5\webapps\tomcat-docs\appdev\sample\web 
 
 In which one should I extract the zip file into?
 Thanks and best regards.
 Rodrigo Allende.
 
 Rodrigo,
 somewhere above there, you mention your original URL
 http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst
 
 So, apart from all the webapp/* directories which you are mentioning 
 just above here, you must have a /ibi_apps/WEB-INF directory somewhere, no
 ?
 If you do, then that's the one in which you should unpack that zip.
 And if you don't, then there is something that you are not telling us..
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-URL-Rewrite.-Help-with-configuration.-tp22446210p22461196.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: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Ben Hu
Rodrigo,
What is the error message in English?

And i think this one is just an example config file coming with urlrewriter.
If you do not need it, you can just delete it.

 rule
   note
   The rule means that requests to /test/status/ will be redirected
to /rewrite-status
   the url will be rewritten.
   /note
   from/test/status//from
   to type=redirect%{context-path}/rewrite-status/to
   /rule


-Ben

On Wed, Mar 11, 2009 at 2:09 PM, Rodro rodrigo_alle...@ibi.com wrote:


 Dear awarnier.
 Ok, Now I found such WEB-INF directory (in my app it's
 C:\ibi\WebFOCUS76\webapps\webfocus76\WEB-INF), and followed the
 installation
 and configuration steps.

 1) copied urlrewrite.xml into such WEB-INF
 2) edited web.xml with the below lines:
  filter
filter-nameUrlRewriteFilter/filter-name


 filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter-class
  /filter
  filter-mapping
filter-nameUrlRewriteFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
 3) edited urlrewrite with my own rewriting config:
rule
from/car/from
to type=redirect/ibi_apps/WFServlet?IBIF_ex=carinst/to
/rule
 4) copied urlrewrite-2.6.0.jar into WEB-INF/lib directory
 5) restarted Tomcat

 Though redirection didn't work, but furthermore when I try to see
 http://localhost:8080/rewrite-status, I get the below error:

 Estado HTTP 404 - /rewrite-status

 
 type Informe de estado
 mensaje /rewrite-status
 descripción El recurso requerido (/rewrite-status) no está disponible.

 
 Apache Tomcat/5.5.25

 Already looked into urlrewrite.xml and such rule is there:
rule
note
The rule means that requests to /test/status/ will be redirected
 to /rewrite-status
the url will be rewritten.
/note
from/test/status//from
to type=redirect%{context-path}/rewrite-status/to
/rule


 WHAT AM I DOING WRONG???
 APPRECIATTE YOUR HELP ON THIS.
 Rodrigo.



 awarnier wrote:
 
  Rodro wrote:
  Dear Tomcat Users.
  I'm trying to do a URL masking on Tomcat 5.5.25.
 
  What I specifically want to do is:
  I execute (call) an app with the following URL:
  http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst
  Now, I need to mask the URL to get the same result calling the app as:
  http://localhost:8080/car
  i.e. mask /ibi_apps/WFServlet?IBIF_ex=carinst  as /car.
 
  I found a Solution with URLREWRITE on
  http://tuckey.org/urlrewrite/manual/2.6
  Under Install I see on STEP 1:“Download the zip (or tar.gz) and
  extract it into your context'sdirectory ie, so that urlrewrite.xml goes
  into
  the WEB-INF directory”.
 
  However, looking into my file directory I found 6 WEB-INF directories:
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\webapps\ROOT
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\webapps\tomcat-docs
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\server\webapps\admin
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\server\webapps\host-manager
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\server\webapps\manager
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\webapps\tomcat-docs\appdev\sample\web
 
  In which one should I extract the zip file into?
  Thanks and best regards.
  Rodrigo Allende.
 
  Rodrigo,
  somewhere above there, you mention your original URL
  http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst
 
  So, apart from all the webapp/* directories which you are mentioning
  just above here, you must have a /ibi_apps/WEB-INF directory somewhere,
 no
  ?
  If you do, then that's the one in which you should unpack that zip.
  And if you don't, then there is something that you are not telling us..
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Tomcat-URL-Rewrite.-Help-with-configuration.-tp22446210p22461196.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: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Caldarale, Charles R
 From: Rodro [mailto:rodrigo_alle...@ibi.com] 
 Subject: Re: Tomcat URL Rewrite. Help with configuration.
 
 Though redirection didn't work, but furthermore when I try to see
 http://localhost:8080/rewrite-status, I get the below error:
 Estado HTTP 404 - /rewrite-status

That would be expected, since you don't appear to have a webapp named 
rewrite-status.

You likely do not have your webapp deployed properly.  If you want your webapp 
to be the default one, it must be named ROOT (case sensitive, even on Windows). 
 Post your server.xml and the META-INF/context.xml file from your webapp (if it 
exists).

 - 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: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Rodro

According to the documentation, such context should give you a wellcome
page to the urlrewriting service, but yes I don't need it indeed.

The error message in English is:

HTTP Status 404 - /rewrite-status

type Status report
message /rewrite-status
description The requested resource (/rewrite-status) is not available.

Apache Tomcat/5.5.25


Ben Hu wrote:
 
 Rodrigo,
 What is the error message in English?
 
 And i think this one is just an example config file coming with
 urlrewriter.
 If you do not need it, you can just delete it.
 
  rule
note
The rule means that requests to /test/status/ will be
 redirected
 to /rewrite-status
the url will be rewritten.
/note
from/test/status//from
to type=redirect%{context-path}/rewrite-status/to
/rule
 
 
 -Ben
 
 On Wed, Mar 11, 2009 at 2:09 PM, Rodro rodrigo_alle...@ibi.com wrote:
 

 Dear awarnier.
 Ok, Now I found such WEB-INF directory (in my app it's
 C:\ibi\WebFOCUS76\webapps\webfocus76\WEB-INF), and followed the
 installation
 and configuration steps.

 1) copied urlrewrite.xml into such WEB-INF
 2) edited web.xml with the below lines:
  filter
filter-nameUrlRewriteFilter/filter-name


 filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter-class
  /filter
  filter-mapping
filter-nameUrlRewriteFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
 3) edited urlrewrite with my own rewriting config:
rule
from/car/from
to type=redirect/ibi_apps/WFServlet?IBIF_ex=carinst/to
/rule
 4) copied urlrewrite-2.6.0.jar into WEB-INF/lib directory
 5) restarted Tomcat

 Though redirection didn't work, but furthermore when I try to see
 http://localhost:8080/rewrite-status, I get the below error:

 Estado HTTP 404 - /rewrite-status

 
 type Informe de estado
 mensaje /rewrite-status
 descripción El recurso requerido (/rewrite-status) no está disponible.

 
 Apache Tomcat/5.5.25

 Already looked into urlrewrite.xml and such rule is there:
rule
note
The rule means that requests to /test/status/ will be
 redirected
 to /rewrite-status
the url will be rewritten.
/note
from/test/status//from
to type=redirect%{context-path}/rewrite-status/to
/rule


 WHAT AM I DOING WRONG???
 APPRECIATTE YOUR HELP ON THIS.
 Rodrigo.



 awarnier wrote:
 
  Rodro wrote:
  Dear Tomcat Users.
  I'm trying to do a URL masking on Tomcat 5.5.25.
 
  What I specifically want to do is:
  I execute (call) an app with the following URL:
  http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst
  Now, I need to mask the URL to get the same result calling the app as:
  http://localhost:8080/car
  i.e. mask /ibi_apps/WFServlet?IBIF_ex=carinst  as /car.
 
  I found a Solution with URLREWRITE on
  http://tuckey.org/urlrewrite/manual/2.6
  Under Install I see on STEP 1:“Download the zip (or tar.gz) and
  extract it into your context'sdirectory ie, so that urlrewrite.xml
 goes
  into
  the WEB-INF directory”.
 
  However, looking into my file directory I found 6 WEB-INF directories:
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\webapps\ROOT
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\webapps\tomcat-docs
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\server\webapps\admin
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\server\webapps\host-manager
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\server\webapps\manager
  C:\Archivos de programa\Apache Software Foundation\Tomcat
  5.5\webapps\tomcat-docs\appdev\sample\web
 
  In which one should I extract the zip file into?
  Thanks and best regards.
  Rodrigo Allende.
 
  Rodrigo,
  somewhere above there, you mention your original URL
  http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst
 
  So, apart from all the webapp/* directories which you are mentioning
  just above here, you must have a /ibi_apps/WEB-INF directory somewhere,
 no
  ?
  If you do, then that's the one in which you should unpack that zip.
  And if you don't, then there is something that you are not telling us..
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Tomcat-URL-Rewrite.-Help-with-configuration.-tp22446210p22461196.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To 

Re: Tomcat URL Rewrite. Help with configuration.

2009-03-10 Thread André Warnier

Rodro wrote:

Dear Tomcat Users.
I'm trying to do a URL masking on Tomcat 5.5.25.

What I specifically want to do is:
I execute (call) an app with the following URL:   
http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst
Now, I need to mask the URL to get the same result calling the app as:   
http://localhost:8080/car

i.e. mask /ibi_apps/WFServlet?IBIF_ex=carinst  as /car.

I found a Solution with URLREWRITE on 
http://tuckey.org/urlrewrite/manual/2.6

Under Install I see on STEP 1:“Download the zip (or tar.gz) and
extract it into your context'sdirectory ie, so that urlrewrite.xml goes into
the WEB-INF directory”. 


However, looking into my file directory I found 6 WEB-INF directories:
C:\Archivos de programa\Apache Software Foundation\Tomcat 5.5\webapps\ROOT
C:\Archivos de programa\Apache Software Foundation\Tomcat
5.5\webapps\tomcat-docs
C:\Archivos de programa\Apache Software Foundation\Tomcat
5.5\server\webapps\admin
C:\Archivos de programa\Apache Software Foundation\Tomcat
5.5\server\webapps\host-manager
C:\Archivos de programa\Apache Software Foundation\Tomcat
5.5\server\webapps\manager
C:\Archivos de programa\Apache Software Foundation\Tomcat
5.5\webapps\tomcat-docs\appdev\sample\web 


In which one should I extract the zip file into?
Thanks and best regards.
Rodrigo Allende.


Rodrigo,
somewhere above there, you mention your original URL
http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst

So, apart from all the webapp/* directories which you are mentioning 
just above here, you must have a /ibi_apps/WEB-INF directory somewhere, no ?

If you do, then that's the one in which you should unpack that zip.
And if you don't, then there is something that you are not telling us..


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