Thanks!
It is working with the location tag. :)
Main Topics
Browse All TopicsHi,
I am trying to install the weblogic plugin with Apache. My configuration is Weblogic 9.0/Apache 2.0/Windows XP.
I followed the steps in the bea site for installing the weblogic plugin at: http://edocs.bea.com/wls/d
I did the following changes:
- Copied mod_wl_20.so in APACHE_HOME\modules
- Added following lines in httpd.conf file:
LoadModule weblogic_module modules/mod_wl_20.so
<IfModule mod_weblogic.c>
WebLogicHost AdminServer
WebLogicPort 7001
MatchExpression *.jsp
</IfModule>
My apache configuration is also on localhost:80.
If I start my apache and weblogic servers and give the url http://localhost/weblogic it gives me an error in the error log:
[Mon Aug 21 10:49:36 2006] [error] [client 127.0.0.1] File does not exist: C:/Java/Apache2/htdocs/web
I have not written any testing code yet and am new to weblogic. Is there a quick way to test my weblogic plugin is working i.e. my jsp requests are getting passed to weblogic?
Thanks
Radhika
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: greensuniePosted on 2006-08-21 at 09:36:17ID: 17357159
When you configured ...
p/) do this:
MatchExpression *.jsp
...you told Apache to route any calls to a jsp page to Weblogic. Since you're calling http://xxx/weblogic/ Apache doesn't know how to route it because you're providing a context root (a path) and not a jsp page.
In order to locate your context roots (paths), you need to also configure the proxy to route specific web contexts to Weblogic. It's something you have to edit each time you add a new web application to Weblogic so that Apache can find it.
To proxy requests by path, use the Location tag. Inside the Location tag, use "SetHandler" to specify that Weblogic will be the handler for that particular path, so Apache knows to forward it on:
So, if you have a web application installed on Weblogic with a context root of /myApp (example: http://localhost:7003/myAp
<Location /myApp>
SetHandler weblogic-handler
</Location>
Only use /weblogic in the location tag if your web application context root is actually called /weblogic.
Also remember - it's case sensitive! a context root of /myApp is different from /MYapp
Good luck
-B