How to redirect all Tomcat request to a servlet
How can I set up Tomcat to redirect all request to a certain sevlets which sends the user to the right web-application.
What ever the user type in the URL, i.e.:
http://customer01.myDomain.dk
or
http://customer02.myDomain.dk
or
http://customer01.myDomain.dk/myApp/login.jsp
- I want tomcat to redirect to a servlet class. Is that possible?
Thanks
Yes but pretend each customer has more than one web-application. Then it is not possible for the customer to use only this URL:
http://customer01.myDomain.dk
Each customer need a seperate url for each application, something like this:
http://customer01.myDomain.dk/myApp01/login.jsp
http://customer01.myDomain.dk/myApp02/login.jsp
( easy URL�s they can remember )
And I don�t think it is possible to make an alias to the exact URL to the web application. That�s why I need Tomcat to redirect all request to i.e. Index.jsp which then redirect to the correct application.
Here is an example:
Customer01 type in:
http://customer01.myDomain.dk/myApp01/login.jsp
Tomcat calls Index.jsp which redirect to this URL:
http://www.myDomain.dk/myApp01_ID0921/login.jsp
Can you help me with this problem?
Similar Messages
-
How to run all Concurrent Requests in a single node in a multi node env
DB;11.1.0.7
Oracle Apps:12.1.1
OS:Linux 86x64 Red Hat
PCP setting is enabled.
Load Balancer is enabled.
APPLDCP=ON
Could anyone please share - How to run all Concurrent Requests in a single node in a multi node env where there are 3 web tier nodes?
Thanks for your time!
Regards,PCP setting is enabled.
Load Balancer is enabled.
APPLDCP=ON
Could anyone please share - How to run all Concurrent Requests in a single node in a multi node env where there are 3 web tier nodes?Concurrent requests will be processed by the CM nodes and it has nothing to do with the 3 web tier nodes you have.
If you mean the database instance, then please see these docs.
How to run a concurrent program against a specific RAC instance with PCP/RAC setup? [ID 1129203.1]
In A PCP/RAC Configuration, How To Find Out On Which RAC Instance FNDSM Is Currently Running? [ID 1089396.1]
Thanks,
Hussein -
How to redirect the tomcat (5.0) console output to a text file
Hello,
I am looking for a way of redirecting the tomcat console output [the System.out.println("xyzabc")�s from the java classes running on the container] to a text file.
The reason is that the programmers need to have that console�s output and the server (windows) have to be rebooted often (no wonder: windows) and then Tomcat start as a service -> console is not visible.
Thanks!The console out put should still be in the log files if tomcat is running as a windows service. It will either be in logs\stdout_xxxx.log and logs\stderr_xxxx.log or in logs\catalina.xxxx.log.
If you are using 5.5.
It will either be in logs\stdout.log and logs\stderr.log or in logs\catalina.out.
if you are using 5.0 -
How to redirect the tomcat to my project folder!
instead of putting all the files inside of the <tomcat>/webapps/<myfolder>
I try to move the <myfolder> to another directory.
say, /home/<myname>/<myfolder>
so that, i can work in my home directory by /<hostname>:<port>/<myfolder>
what procedures i should take ?In the server.xml file:
<!-- Tomcat myApp Context -->
<Context path="/Kiosk" docBase="c:\myApp" reloadable="true" debug="0">
</Context>
Not sure about the format of the docBase string. -
Redirect all DNS requests for a certain domain to a specific DNS Server
Hello,
I have setup a home lab to do some Microsoft training on. My lab domain name is "demo.lab". What I want to do is configure my cisco router to forward any dns requests to demo.lab to my Active Directory Server.
For example
If I ping mail.demo.lab, I want that reqest to be forwarded to my lab domain controller (dc01.demo.lab).
I have configured a SOA record on the Cisco router like so, but it still does not foward the reqest on (10.10.10.10 is the IP address of dc01.demo.lab).
ip dns primary demo.lab soa 10.10.10.10 postmaster.demo.lab
Any clues as to what i'm missing?
Thanks
PeterHi Karsten,
Yep my computer had the router as its primary DNS Server. The config you supplied worked! Thanks very much :)
Hi Cisco Freak,
Yep my AD server was also a DNS server. Yes that was one option, but I just didn't want to keep changing my DNS as my laptop goes to/from work with me. The config that Karsten supplied worked though.
Hi Terry,
Thanks for the link. I believe I had configured it correctly as per that docuemnt, but it didn't work for some reason. Still go reference material though.
The other option would have been to configure the router to use my AD server as its primary name server host like so;
ip name-server 10.10.10.10
ip name-server 8.8.8.8
The only problem would be that if/when my DC is offline, there would be a small delay when doing DNS requests, and since my internet is shared with my house mate, I didn't want to disrupt her too much.
Thanks again for your help!
Cheers
Peter -
How to map ALL .jsp to a Main servlet ?
the problem is that i want to submit all forms on web pages to be processed by servler but to see in adress bar of my browser url with .jsp
i tried to map main sertvlet in such a way
<url-mapping>/*.jsp</url-mapping>
but it didn't work...
is there a way to invoke servlet but to see *. jsp as an url ?
in other word, is it possible by calling index.jsp invoke some servlet behind the scene ?
if i could map *.jsp this could be done automatically.....In theory you can use:<url-mapping>/*.jsp</url-mapping>However most web servers already intercept that mapping and it may bypass your mapping.
For example in Tomcat there is a web descriptor in the <TOMCAT_HOME>/conf directory that maps all jsp extensions to org.apache.jasper.servlet.JspServlet.
If you want to work with jsps on this level, try using filters intead, they may not be affected by the JspServlet as they have to pass through the filter first.
Anthony -
How to conditionally forward a request to a Servlet for processing?
Hi,
I am writing a middleware application, where the application receives HTTPRequest from front end, and based on the URL string it will forward the request to one of the servlets which will handle the processing.
I need ideas about what is the best way to write the forwarding logic. Should it be a Servlet Filter, or an initial Servlet that only does forwarding? Any code samples will be greatly appreciated.
Thanks.This is almost textbook definition of a Controller Servlet. I would use a Servlet that switches on what option needs to be performed and forwards to the proper URL.
-
How to delete multiple yellow request in PSA
I am in BI7 and I have to delete the all the request present in PSA But in my PSA there are around more than 500 request which are in yellow status.Please suggest how to delete all the request in one go ,Since it very cumbersome to change status of every request to red and then delte it
Hi,
Debjani thanks for your reply,
It helped me
I have first deleted the contents from PSA table and
then I have searched for request in RSTSODSREQUEST but this table does not contain that requests
then i have got another table RSREQDONE whcih contains that request so I have deleted request from that table.
Final solution is
Go to SE14 >> Give the PSA Table name >> delete it
Then delete the requests from the table RSTSODSREQUEST/RSREQDONE -
Automatically redirecting all root home page requests
How is it possible to automatically re-direct all pages requests for the sites root at http://www.mydomain.com/ to http://www.mydomain.com/myapp/ such that any subsequesnt requests for http://www.mydomain.com/myapp/otherpages.hmtl etc. are not affected?
Currently all requests to http://www.myhome.com/myapp/ all captured and passed through the reverse proxy plugin to a backend application server:
NameTrans fn="assign-name" from="/myapp(|/*)" name="passthrough"
<Object name="passthrough" 2=">">
ObjectType fn="force-type" type="magnus-internal/passthrough"
Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://192.168.1.1:80"
</Object>Any requests to the root directory are handled by a client-side HTML redirect to http://www.mydomain.com/myapp/ which is then picked up by the web servers reverse-proxy passthrough.
I would like to remove the client-side re-direct and have all root requests automatically rewitten as the subdirectory and then passed through the reverse proxy.Okay, I have dug back through the forums and elving gave the solution back in April '05:
http://forum.sun.com/jive/thread.jspa?threadID=52552&tstart=850I have added the following lines to the default object in obj.conf - this redirects requests for the root folder to a subfolder, myapp, and these are then reverse proxied to another server:
<Object name="default">
<Client uri="/">
NameTrans fn="redirect" from="/" url-prefix="/myapp"
</Client>
NameTrans fn="assign-name" from="/myapp(|/*)" name="passthrough"
</Object>
<Object name="passthrough" 2=">">
ObjectType fn="force-type" type="magnus-internal/passthrough"
Service type="magnus-internal/passthrough" fn="service-passthrough" servers="https://192.168.1.1:80"
</Object>This now re-directs without any cient scripting.... which is tidier. -
How to get all request from database between two dates in servlets
I am having a servlet in which i am I accepting two form values i.e 'fromdate' and 'todate' by using req.getParameter(fromdate & todate).
Now i have to query a table called REQUEST which has 4 columns like req_id, name, createdate and status.
In the servlet I would like to retrieve all the request during that period say for example. between 1st July to 31stJuly, and then display it on the browser with all req_id(first column in the table) having a hyperlink to another XML file which consists of all the details when a user had send his request in the month of July.
The output on the browser is preferable in a Table format which has to be created dynamically depending the number of request.
Kindly let me know how I can proceed with this .
Thanks,
Regards,
LijoyThe topic seems a little broad.
The SQL would look something like
select req_id, name, createdate, status
from request
where createdate > fromdate and <= todate -
Reporting In Service Manager 2012 - How To Get A List Of All Service Requests Regardless of Status
Within the Custom Reporting Options available to users of Ssystem Center Service Manager 2012, which would one use to create reports that do not contain any agregated data but are instead detail level info such as a list of all Service Requests reardless
of status? I want to include within the report the same data you see on the main page of a Service Request when you double-click a Service Request within Service Manager and it pops opne the details of the Service Request.
I'm trying to get the following info for each Service Requests
SR ID (i.e. SR1234)
Affected User
Title
Description
Priority
Source
Area
Support Group
Assigned To
Created By and Created On
I know the cubes w/Excel offer a great way to get data for a **piece meal report or for getting agregated data (I.E. counts, sums, avergares, Max's & Mins) but I need a report that has zero totals and no agregations.
Thanks
** A piece meal report is a report that has to be manually pieced together by combining data from others reports and other sources because no single report can be constructed to bring all the data togethere into a single report. If you've ever
worked with an accountant taht uses Excel for everything but who has no idea how SQL or databases in general are deisgned then chances are you've either been asked to create a piece meal report for them and or seen them do one them selves when they open a
spreadshet and dump into it disperate data from a variety of sources and then ask you why you can't automate that same report for them.the following thread covers some good SQL queries to get details about the Incident Request, just amend them to cover the Service Request
http://social.technet.microsoft.com/Forums/systemcenter/en-US/e703641d-3e05-4df4-be2b-bf9bd62534f8/how-to-generate-incident-report-with-incident-description-field-in-scsm-2012-sp1 -
How to redirect tomcat's (not in jwsdp) output to catalina.out
how to redirect tomcat's (not in jwsdp) output from consolee to catalina.out
Finally we solve this.
In startup.bat we've changed string
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
to
call "%EXECUTABLE%" run %CMD_LINE_ARGS% 1>..\logs\catalina.out 2>..\logs\catalina-err.out
(the above in one string)
May be someone know something better? -
How to erase all content and settings when ipad requests password
How to erase all content and settings when ipad requests password?
gomike! wrote:
when I dont remember my Apple ID password
It should be the same AppleID and password you use to log in here.
I haven't installed Find my iPhone app on the phone?
Installing the app will simply allow you to locate a different iDevice.
You don’t need to use it to locate the iPhone in your hands. If it’s not in your hands, you cannot use the app on that device... -
How can I redirect all messages to 2 another mail servers?
Hi all
./imsimta version
Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009)
I wanted to redirect all messages(in and out) to another mail server, I configured as follows,
- imta.cnf
! tcp_local
tcp_local smtp mx single_sys ....... sourcefilter file:///backother.filter
! tcp_intranet
tcp_intranet smtp mx single_sys ....... sourcefilter file:///backother.filter
- backother.filter
require ["fileinto"];
if address :all :matches ["From"]["*"]{
redirect "[email protected]";
keep;
stop;
One e-mail account receives all messgaes and those messages will be kept in sender's or receiver's mail storage.
I want , however, redirect all messages 2 or 3 mail servers.
I tried several things to do this include edit backother.filter(this is written in Sieve ), but I failed.
Is there any way to redirect messages to another mail servers?
Any way would be good , using sieve script, make antoher channel or channel keyword
Thanks
Edited by: leeky41 on Mar 9, 2010 10:58 PM
Edited by: leeky41 on Mar 9, 2010 11:06 PM
Edited by: leeky41 on Mar 9, 2010 11:07 PMleeky41 wrote:
Redirecting the message means it will not be delivered to the original recipient.I know so I wrote 'keep' keyword to deliver messages to the original recipient.
capture "[email protected]";
I tested it but the capture's behavior was very weird, subject had changed to something like,'deliverd status notice', sender had changed to postmaster and additional notice messgae inserted into mail body.The default sieve capture action encapsulates the email to keep a copy of both the envelope information and the original message. MS7u3 also supports the Exchange journal encapsulation format through the addition of the ":journal" parameter.
I edited 'capture' like this..
capture :message "[email protected]";
The ":message" flag removes the encapsulation -- therefore you will have no idea of who the original sender/recipients were as the envelope information has been discarded.
It worked fine. It was same as the result of 'redirect'.
but the following line, sent10 messages to each recipients.(receive_01,receive_02)
capture :message "[email protected],[email protected]";
maybe there was some 'loop' actions happened.The email produced by the capture sieve action is being "captured" which is resulting in a loop. You can stop this by adding an envelope test e.g.
require ["envelope"];
if not envelope :is ["to"] ["[email protected]","[email protected]"]
capture :message "[email protected]";
capture :message "[email protected]";
}Regards,
Shane. -
How can I delete all delta request and init from InfoCube?
Hi,
We are working with an extractor that support deltas, but we are presenting problems with it, some changes in the data are not displayed. For this reason we are thinking change this type of processing and make a full load (with the full updating the changes are shown).
For this reason we need to delete all requests of delta and its init. But in manage option of the infocube we cant see the init and the first deltas.
If I delete the initialization information at info package (menu option scheduler-> initialization). With this only we will delete the Initialization. I need to delete the data in the infocube.
I would appreciate your help.
Regards,
VictoriaHi Victoria,
You can either display all the requests in the manage tab and delete from there. Or you can use the Automatic Request Deletion option in the Data Target tab of the InfoPackage. See here for details:
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a65a8e07211d2acb80000e829fbfe/content.htm
Hope this helps...
Maybe you are looking for
-
Acrobat XI pro, no toolbar in Word 2013
How can I get the Acrobat toolbar in Word 2013? Yes I can print to pdf, but I want all the bookmarking etc etc from the pdf maker. Can anyone help? cheers, Rob
-
Widgets in offline mode?
Hello.. Shouldn't the "widget in offline-mode"-setting overrule the settings for each widget? If I set my RSS/mail to sync every 2 hours, and set the "widget in offline-mode"-setting on, both RSS and mail sync during the online time - which it should
-
Help i need a case for my macbook anybody know any sites?
i need a case would prefer a rubberized one for my macbook? its 2010 so the macbook pro cases wont fit? i carnt seem to find any for the normal macbook any1 know any sites
-
Premiere Pro Final Product is Grainy
I have been using Premiere Pro (currently Premiere 3.0) for a few years now. My video export has always looked good on my computer and on a burnt DVD. That said...my photos which ae High quality do not look as impressive. They look slightly pixilated
-
I attempted to load Adobe Reader and received the error message "Object already Exists" with Adobe failing to load. Please help.