Mapping of Web App context root and the physical directory of the web app
I'm running Weblogic 7.0 on Windows2000.The physical directory of my web application
is D:\WL8\weblogic81\TestDeploy\build\TestWebApp and under these directory I have
my JSPS, static HTML and WEB-INF. I define the context path of this web app in
the weblogic.xml ;-
<weblogic-web-app>
<context-root>/testapp</context-root>
</weblogic-web-app>
As a result of deploying this web app in the server (or it may be created manually
also), the following entry gets inserted in the server's config.xml ,-
<Application Deployed="true" Name="TestWebApp"
Path="D:\WL8\weblogic81\TestDeploy\build" TwoPhase="true">
<WebAppComponent Name="TestWebApp" Targets="myserver" URI="TestWebApp"/>
</Application>
Now, whenever I make a request of the form "http://localhost:7001/testapp/..",
it's properly executing my web app. My question is, how does the container knows
that for any request for the web app with context path as 'testapp', it has to
server files from D:\WL8\weblogic81\TestDeploy\build\TestWebApp. In the above
process, nowhere such mapping is specified. I expected something like Tomcat's
server.xml, where in docbase we clearly specify this mapping between the context
path and the physical directory. Please help.
Let me give some more details and hopefully this will make things clearer.
Say you deploy /foo/bar/myweb.war and in myweb.war you configure a
context-root of /rob
During deployment, the server creates an ApplicationMBean with a path of
/foo/bar/. It then creates a WebAppComponent with a uri of myweb.war.
Next, deployment calls back on the web container and tells it to deploy
the WebAppComponent. The web container reads the myweb.war, parses
descriptors etc. The web container then updates its data structures to
register that myweb.war has a context path of /rob. (It has to figure
out all the other servlet mappings as well.)
When a request for /rob/foo comes in, the web container consults its
data structures to determine which webapp and servlet receives the
request. This is not a linear search of all webapps and servlets.
There's much better ways to do pattern matching.
Hope this clears things up. Let me know if you still have questions.
-- Rob
Arindam Chandra wrote:
Thanks for the answer. Still one thing is not clear. Whatever context path I declare
for my web app as the value of <context-root> element in the weblogic.xml (in
my example it's "/testapp"), it is no where mapped with the "URI" attribute (or
any other attribute, sub-element whatsoever in the <Application> element).
Application Deployed="true" Name="TestWebApp"
Path="D:\WL8\weblogic81\TestDeploy\build" TwoPhase="true">
<WebAppComponent Name="TestWebApp" Targets="myserver" URI="TestWebApp"/>
</Application>
So when a request of the form http://myweblogic.com:7001/testapp/... arrives at
the server, how does the server knows that it has to serve this request with files
from D:\WL8\weblogic81\TestDeploy\build\TestWebApp ? It should not be like the
web container iterates thru all the web application entries in config.xml and
tries to match with one context-root declaration. I repeat, I expected some mapping
similar to Tomcat's server.xml, where in the <docbase> element u clearly specify
the mapping between the context path and the physical directory
Rob Woollen <[email protected]> wrote:
Arindam Chandra wrote:
I'm running Weblogic 7.0 on Windows2000.The physical directory of myweb application
is D:\WL8\weblogic81\TestDeploy\build\TestWebApp and under these directoryI have
my JSPS, static HTML and WEB-INF. I define the context path of thisweb app in
the weblogic.xml ;-
<weblogic-web-app>
<context-root>/testapp</context-root>
</weblogic-web-app>
As a result of deploying this web app in the server (or it may be createdmanually
also), the following entry gets inserted in the server's config.xml,-
<>So the server will look for your web application at the Application Path
(D:\WL8\weblogic81\TestDeploy\build|) + the web uri (TestWebApp). So
it
maps the context-root you've specified /testapp to that path.
It's a little clearer in the case where you had a full-fledged EAR.
Then you'r application path would map to the "root" of the EAR, and the
uris would point to the various modules (eg webapps.)
-- Rob
Now, whenever I make a request of the form "http://localhost:7001/testapp/..",
it's properly executing my web app. My question is, how does the containerknows
that for any request for the web app with context path as 'testapp',it has to
server files from D:\WL8\weblogic81\TestDeploy\build\TestWebApp. Inthe above
process, nowhere such mapping is specified. I expected something likeTomcat's
server.xml, where in docbase we clearly specify this mapping betweenthe context
path and the physical directory. Please help.
Similar Messages
-
How to get the physical path of my web app root context ?
Hi,
I used this code to initialize my LOG4J logger.
System.out.println(Version + "Servlet context path : " + sctx .getContextPath());
String path = sctx .getRealPath("/");
fullyqualifiedlog4jpath = path + "log4j.xml";
File locallogxml = new File(fullyqualifiedlog4jpath);
if (locallogxml.exists()) {
initialized = true;
DOMConfigurator.configure(fullyqualifiedlog4jpath);
log = Logger.getLogger(Log4j.class.getName());
log.info(Version + "Logger initialized");
else {
System.out.println(Version + "Unable to locate the log4j.xml file");
}It works perfectly when running the application with the embedded Jdev11 WLS.
When deploying the application on a standalone WLS server the path is not returned ;-( I get a null value.
Does someone has three lines of code which get the physical path of my web app root context?
YvesChanged the methiod used to access log4j.xml.
FacesContext ctx = FacesContext.getCurrentInstance();
ServletContext sctx = (ServletContext) ctx.getExternalContext().getContext();
String contextPath = sctx.getContextPath();
HttpServletRequest hsr = (HttpServletRequest)ctx.getExternalContext().getRequest();
String host = hsr.getServerName();
int port = hsr.getServerPort();
try
String urlstring = "http://" + host + ":" + port + contextPath + "/faces/log4j.xml";
DOMConfigurator.configure(new URL(urlstring));
log = Logger.getLogger(Log4j.class.getName());
.....using the URL s OK. -
I bought walking dead the game multi pack but I wasn't able to play with it. I tried to remove and reinstall it but things get worst because the paid app was lost and what's left was the free version. Any suggestion how to recover it?
How to Get a Refund from the App Store
-
I cannot seem to get the app to download and install. I get the spinning progress wheel.
Hi profoto3,
Are you trying to download and install the Creative Cloud apps? Which operating system are you using?
Here is a helpful network troubleshooting doc. Go thru the steps in this doc to ensure that you can download.
http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
Free Creative Cloud | Download Adobe Creative Cloud free trial
Thanks
Scott -
Im trying to update my apps from the ipad in the app store section and when i press update the ipad tells me that im not connected to the itunes store??
Saw this on another post.
Applecare Senior Advisor Txx Bxxx (I have his contact info in an email he just sent) just confirmed with me that the problem people are having with the App Store not loading is an apple issue with there servers, ITS NOT YOUR IPAD so don't go restoring it! It's not happening to everyone however but they are looking into it, its really hit or miss.
In the meantime ...........
The Complete Guide to Using the iTunes Store
http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/TS3297
Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
This works for some users. Not sure why.
Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
Cheers, Tom -
I updated to Yosemite and now I can't open my YNAB finance app. There is a question mark in the Dock where the App should be and when I hover over the question mark it does say YNAB but I can't open it. When I double click on the question mark nothing happens. Has the link to YNAB been broken with the update? Has this happened to anyone else?
Check the Application folder.
If it is not there, contact YNAB Finance for a OS X Yosemite compatible version of the application.
Best. -
Using WEB Output HTML Gallery and uploading using ftp upload the HTML page views correctly but images only display the alt tag in the browser window?
After a little investigation, I discovered that PNGs also do not render correctly in IE7 in similar circumstances.
I ended up using Levels in Photoshop to bring the output blacks up to "5", saved the images as PNGs, modified the HTML from .jpg to .png, and that seems to have covered up the problem well enough.
By the way, I did confirm that IE8 beta 2 renders the images correctly.
Brian -
My iPhone 4s is locked in speaker mode where it tells me every time I touch a new app and it outlines the app I touch and requires me to touch the screen twice in order to advance. Please help me remove this setting
Explore Settings > General > Accessibility. Around page 128 of the User Guide is probably appropriate.
The User Guide is available at http://support.apple.com/manuals/ or downloadable from iTunes as an iBook. -
I cannot find the Kindle reader app for iPad and when I click on the link from Amazon there is an error on iTunes
Are you in the US? Not all apps are available in all countries. There is no way to download anything from a website, like Kindle. If it's not in your App Store, you won't be able to have it.
-
I have an iphone 4, iOS 7.1.2
Mac book pro 13in Mid 2012, with OS X VERSION 10.9.4, Processor speed 2.9 Ghz, Memory 8GB 1600MHz DDR3, Intel core i7, Storage capacity 750 GB, 650 GB available.
WHEN I CONNECT, THROUGH USB CABLE, MY IPHONE TO THE MAC BOOK PRO, THE ITUNES APP STOP RUNNING AND I CAN NOT SYNCRONIZE THE IPHONE.Hello skkmmayer,
That is probably a lot of stuff you do not want on your iPhone. So this can be handled a few different was. For you current situation, you can delete the apps directly on your iPhone by holding on the app until it starts to jiggle and then tap on the X of all the apps that you do not want. The second thing you can do is before you sync with iTunes, look at the app section on your iPhone to know what gets transfer to it and you can deselect items that you do not want. Lastly, if you download content on your iPad and it is a universal app, you can actually download it directly to your iPhone by looking at your past purchases and download it directly from the App Store. Check out the articles below for more information if need further assistance.
How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
http://support.apple.com/kb/HT5772
iTunes 11 for Mac: Sync and organize iOS apps
http://support.apple.com/kb/PH12115
Download past purchases
http://support.apple.com/kb/HT2519
Regards,
-Norm G. -
Hello to you
I have download game apps fifa 2014 from the app store of windows 8.1 32x on my laptop.
However, the game started to the mane screen and stopped suddenly.
The window of the game minimized to the manager toolbar on desktop and win I click on it the game work from the beginning and stopped like the first time and didn't work
Why the fifa 2014 apps suddenly started and after some seconds stopped "the window of the game minimized to the desktop toolbar
System Information Report
عام
نظام التشغيل Microsoft Windows 8.1 Pro
المعالج المركزي Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz
اسم المستخدم amjad
العرض
وصلة الفيديو Intel(R) HD Graphics 3000
ذاكرة الفيديو 1.15 GB
دقة الشاشة 1366 x 768
التخزين
إجمالي الذاكرة 2.67 GB
الذاكرة الحرة 1.05 GB
مساحة القرص الصلب 296.54 GB
المساحة الحرة 176.65 GB
I/O
الفأرة Samsung PS/2 Port Input Device
لوحة المفاتيح Standard PS/2 Keyboard
نظام الكمبيوتر
اسم الكمبيوتر SUMSUNG-I3
اسم المستخدم [email protected]
المنظمة N/A
نظام التشغيل
اسم نظام التشغيل Microsoft Windows 8.1 Pro
إصدار نظام التشغيل 6.3.9600
معرّف المنتج 00261-50000-00000-AA602
وقت تشغيل النظام 17/06/2014 23:34:21
إصدار الأنترنت إكسبلورر 11.0.9600.17126
DirectX إصدار DirectX 11
OpenGL إصدار 6.3.9600.16384 (winblue_rtm.130821-1623)
الريجستري
أقصى حجم 682 MB
الحجم الحالي 104 MB
الحالة OK
المعالج المركزي
اسم المعالج Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz
اسم الكود N/A
المنتج GenuineIntel
السرعة الحالية 2200 Mhz
أقصى سرعة 2200 Mhz
Voltage 1.2V
الساعة الخارجية 100 Mhz
الرقم التسلسل BFEBFBFF000206A7
معرّف المعالج x64 Family 6 Model 42 Stepping 7
مأخذ التوصيل CPU
L1-Cache 64 KB
L2-Cache 256 KB
L3-Cache 3072 KB
اللوحة الأم
الطراز 300E4A/300E5A/300E7A
المنتج SAMSUNG ELECTRONICS CO., LTD.
الرقم التسلسل 123490EN400015
BIOS اسم Phoenix SecureCore-Tiano(tm) NB Version 2.1 01QA
BIOS منتج Phoenix Technologies Ltd.
SMBIOS إصدار 01QA
BIOS تاريخ 05/09/2011
BIOS ميزات
PCI is supported نعم
BIOS is Upgradable (Flash) نعم
BIOS shadowing is allowed نعم
Boot from CD is supported نعم
Selectable Boot is supported نعم
EDD (Enhanced Disk Drive) Specification is supported نعم
Int 5h, Print Screen Service is supported نعم
Int 9h, 8042 Keyboard services are supported نعم
Int 14h, Serial Services are supported نعم
Int 17h, printer services are supported نعم
Int 10h, CGA/Mono Video Services are supported نعم
NEC PC-98 نعم
ACPI supported نعم
USB Legacy is supported نعم
مورد الذاكرة
إجمالي الذاكرة 2.67 GB
الذاكرة المستخدمة 1.62 GB
الذاكرة الحرة 1.05 GB
استخدام الذاكرة 60%
الذاكرة الفعلية
صرف الذاكرة BANK 0
الوصف Physical Memory 0
محدد الجهاز ChannelA-DIMM0
المساحة 2.00 GB
السرعة 1333 Mhz
المنتج Hynix/Hyundai
عرض البيانات 64 bit
نوع الذاكرة Unknown
عامل النموذج SODIMM
الذاكرة الفعلية
صرف الذاكرة BANK 2
الوصف Physical Memory 2
محدد الجهاز ChannelB-DIMM0
المساحة 2.00 GB
السرعة 1333 Mhz
المنتج Hynix/Hyundai
عرض البيانات 64 bit
نوع الذاكرة Unknown
عامل النموذج SODIMM
الأقراص الصلبة
الاسم SAMSUNG HM321HI
نوع الوسائط Fixed hard disk media
الحجم الكلي 298.09 GB
نوع الواجهة IDE
عدد الأقراص 3
إجمالي الأسطوانات 38913
إجمالي الكليّة 255
إجمالي القطاعات 625137345
مجموع المسارات 9922815
المسارات لكل اسطوانة 255
بايت لكل قطاع 512
قطاعات لكل مسار 63
S.M.A.R.T دعم نعم
درجة الحرارة الحالية 0C (32F)
CD-ROM Drive
الاسم TSSTcorp CDDVDW SN-208BB
القرص E:
معدل النقل -1
الحالة OK
IDE تحكم
الاسم Standard SATA AHCI Controller
المنتج Standard SATA AHCI Controller
الحالة OK
وصلة الفيديو
الاسم Intel(R) HD Graphics 3000
معالج فيديو Intel(R) HD Graphics Family
المنتج Intel Corporation
فيديو فن العمارة VGA
DAC نوع Internal
حجم الذاكرة 1.15 GB
نوع الذاكرة Unknown
وضع الفيديو 1366 x 768 x 4294967296 colors
معدل التحديث الحالي 60 Hz
إصدار التعريف 9.17.10.3347
سجل الأحداث 29/01/2014
جهاز العرض
الاسم Generic PnP Monitor
ارتفاع الشاشة 768
عرض الشاشة 1366
الحالة OK
Ethernet
اسم المنتج Realtek PCIe GBE Family Controller
اسم الخدمة RTL8168
المنتج Realtek
MAC عنوان NULL
Wi-Fi
اسم المنتج Intel(R) Centrino(R) Wireless-N 130
اسم الخدمة NETwNs32
المنتج Intel Corporation
MAC عنوان DC:A9:71:7A:A9:3B
Local Area Connection
اسم المنتج TAP-Windows Adapter V9
اسم الخدمة tap0901
المنتج TAP-Windows Provider V9
MAC عنوان NULL
أجهزة الصوت
الاسم صوت الشاشة من Intel(R)
المنتج Intel(R) Corporation
الحالة OK
الفأرة
الاسم Samsung PS/2 Port Input Device
المنتج ELAN
الأزرار 0
الحالة OK
لوحة المفاتيح
الاسم Standard PS/2 Keyboard
الوصف Enhanced (101- or 102-key)
وظائف المفاتيح 12
الحالة OK
USB أداة تحكم
اسم المنتج Intel(R) 6 Series/C200 Series Chipset Family USB Enhanced Host Controller - 1C2D
المنتج Intel
بروتوكول معتمد Universal Serial Bus
الحالة OK
USB أداة تحكم
اسم المنتج Intel(R) 6 Series/C200 Series Chipset Family USB Enhanced Host Controller - 1C26
المنتج Intel
بروتوكول معتمد Universal Serial Bus
الحالة OKhttp://apps.microsoft.com/windows/en-us/app/fifa-14/e89c9ccf-de94-45ed-9cd4-7e11d05c3da4
System requirements
OS: Windows 8
CPU: 1.8G core2duo
RAM: 1G
GPU: NVidia card 7800 GT+ with 512M+ vram
This game is not fully optimized to work with some ATI GPU cards.
Keyboard support is not available.
try to contact game manufactured, maybe your GPU doesn't meet requirement -
I am being charged for an app (Pandora Radio) and i want to cancel the service so i am not charged any more - how do i do that?
Purchasing and managing auto-renewing subscriptions -
http://support.apple.com/kb/HT4098 -
Duplicate discussion - please see:
LG Optimus Zone. is there anyway to take the carama button off the screen and use one of the physical buttons on the pho…
Message was edited by: Admin ModeratorHello jr1984
Awesome question. Unfortunately there isn't a way to reassign the buttons. There may be a 3rd party application for the camera that would have a different option.
JoeL_VZW
Follow us on Twitter @VZWSupport -
Hyperlink - The physical location in the page
When I export the A PDF file, how do I know the physical location of the hyperlink in the output page (coordinates)
I need to export from Indesign
- Hyperlink physical location (# page & XY coordinates)
TIAI guess I'm misunderstanding the question, then.
I don't quite understand what you're trying to accomplish with this task. How does Excel factor into this? What value is it to have a report of x and y coordinates for an Acrobat page? This sounds like something you'd need for html coding, not a print document. If so, the pages should be exported as html pages, not Acrobat pdf files, from your original. I only ask because I have a feeling you might be creating way more work or expense for yourself than you need to be. The more information you can provide, the better advice you'll probably get.
If you need a report of x and y coordinates, I'm thinking Acrobat is the wrong application. It's not really a web design app. I don't have Dreamweaver here at my office, but I seem to remember that all that information is available if you open your pages in Dreamweaver, and there may be a way of extracting a report with just what you need. You might try asking your question on the Dreamweaver forum, if that's the route that makes more sense for what you're trying to do. -
The build directory of the test run either does not exist or access permission is required.
i am trying to run automated tests
i follow the steps in the web but when i have 2 issues that does not solve
1. i created console project and add build definition without drop folder and queue builds that success.
2. i created C# unit test and add build definition and run it from VS and it worked and done what i want to do.
3. i built lab with 1 machine and define the controller on this pc ( the machine in the lab is another pc)
4. i created test suite with test cases and from vs 2013 i associated automation nethod that i created in 2.
5. when i try to associate the builds for the test plan i have a PROBLEM(1):
this happened every new build that i try to assign - all the builds appears after refresh and when i press assign to plan button
a pop up shown with error : " The build that you selected for this plan no longer exist " but he chose it in build in use but there no work item under it - the list is empty even that there are 2 tests under this test suite.
and than when i try to run the automated tests i have this PROBLEM(2):
The build directory of the test run either does not exist or access permission is required. and the test failed.
Please Help
RoeyHi Rory,
Thank you for posting in MSDN forum.
According to the error message:
(1) a pop up shown with error : " The build that you selected for this plan no longer exist "
I tried to create a build definition without the drop folder location for unit test solution from the VS IDE, and then I try to select the Build in use option to add the Available builds, then click this Assign to plan. I found that I get same error message
with yours like the following screen shot.
However, when we try to create a build definition with drop folder location for this same unit test solution and then build successfully in the VS IDE.
After you add the Available builds and then click this Assign to plan in the MTM, it work fine.
Therefore, I assume that the issue is related to that you did not specify a build directory for automated test case. MTM need to know where is the drop location of the build building your tests.
http://stackoverflow.com/questions/20033217/couldnt-run-my-test-using-microsoft-test-manager
In addition, I did some research about the problem 2:"The build directory of the test run either does not exist or access permission is required. and the test failed."
I know that the error message occur in either of the following conditions:
1. The account under which test controller is running does not have read permission on the build directory. (The build directory is same as the drop location of build associated with this test run.)
2. The build directory itself does not exist.
So please refer the following blog to check this issue:
http://blogs.msdn.com/b/aseemb/archive/2009/11/25/error-starting-the-test-run-build-directory-of-the-test-run-is-not-specified-or-does-not-exist.aspx
Therefore, I suggest you can try to specify a drop location for build when you run the automated test from the MTM and then check this issue.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Convert color images to black&white bitmaps
Hi, I have black&white scans of public domain books (image format). I use an OCR software to convert them to indexable PDFs (image+text format). However, the OCRed PDFs are insanely big: a 27 MB scanned PDF leads to an indexable PDF of 728 MB! And un
-
Я пытаюсь поставить Business Objects Enterprise на сервер с SuSE 11.1, но процесс инсталляции всё время останавливается на отметке в 57%. Я ставлю новый mysql север. Он поднимается, равно как и CMS c SIA. Данная проблема встречается как при клиентско
-
Mulitple language in Long text
HI all, Is it possible to mainitan multiple languages in long text? I have a message maintained in SE91 transaction in English and i have used translation for this message into French. I also want to maintain long text for this. It is allowing me to
-
Mail is telling me my password is incorrect do i have a " virus" issue?
My mail program has stopped receiving mail from the server, Cincinnati Bell, zoomtown. I have had numerous weird sent items that come back as undeliverable to people not in my contacts. When i try to log in it tells me that my password is incorrect
-
I using a trial version of Onlocation cs-4 and recording from an HDX900, at 1080i it records fine, but there is a 5 second constant offset in the time code I can't seem to get rid of. I am initiating recording at the camera and have the pre-reoord bu