Different Physical Paths a type of Fragmentation
I have to take two physical paths to the same target table. Its like fragmentation, but when I ve seen fragmentation its uses two different source tables. I am using one physical source tables with different paths to that source, if acct_id = 1 or 2 then direct path, if acct_id = 3 then indirect path.
path one: If acct_id is 1 or 2 then acccount_desc where account.acct_id = account_description.acct_id
path two: If acct_id is 3 then acccount_desc where account.acct_id = account_to_desc_map.source_id, account_to_desc_map.target_id = account_description.acct_id
I have a tables/columns called:
Table: accounts
column: acct_id values 1,2,3
account_to_desc_map:
column: source id value: 3
column: target id value: 4
table: account_description
column: acct_id values: 1,2,4
column: acct_desc - values: account 1, account 2, account 4
Regards
Hi,
You should create aliases in the Physical Layer.
Good Luck,
Daan Bakboord
Similar Messages
-
Archiving : Change of Logical File Name & physical path
Hello friends,
We are doing archiving for a Z* archiving object.
We run a write job(not delete job till now) for this archiving object and it created archive files in .../SYS/GLOBAL directory as was expected from settings of Logical File Name and hence physical path corresponding to it. So far no problem..
Now, requirement is to change this path and for this i created a new Logical File Name with a different physical path.
My concern is, about already archived data in older path. Should i only run delete job for that session ?
Or should i copy the archive files to new path and then start delete job OR do a write job once again..
please suggest.
thanks
ashishHello Juan,
Ok, i can copy the files, those are not too many as we did it only for 2 months selection.
Can i go for write job again for same selection ? If yes, probably it will create a new session.. correct ? and then i will go for deletion for new session.
If this is also correct way, i want to do this.. as till now this has been one for only 2 months and we are going to do for 8 yrs.
One more question, will the be any problem for having 2 sessions for same selection.. means 2 write or archive job for same selection.
thanks
ashish -
Physical path for KM documents and folders in WAS
Dear All,
Could you please help me in finding the physical path of the KM Content stored in the back-end WAS.
Helpful answers will be rewarded.
Thanks
Prabhakar MHello Prabhakar M,
In the Details of your Document.
Click on Properties.
Under Properties, Click on Access Link.
Under Access Link, there will be WEBDEV URL
Webdev URL is the path where your Documents are Stored.
Also, it is highly dependent on type of Repository.
All the 3 modes of CM Repository have different ways of Storing.
Kindly share, the mode of repository you use?
Regards,
Chinmay Joshi -
Finding of the Logical and Physical filename,Logical and Physical Path
Hello All
Where and how can I find the below details in an SAP server
Logical filename:
Physical filename:
Logical path:
Physical path:
Regards
Kalyanihi
Physical file is what you see from the OS level.
Logical file is what ABAP code can call certain functions to read/write.
Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
To extract the physical path from the logical path name
DATA: lf_mandt TYPE sy-mandt,
lf_opsys TYPE sy-opsys.
lf_mandt = sy-mandt.
lf_opsys = sy-opsys.
To extract the physical path from the logical path name
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
client = lf_mandt
logical_filename = p_unix
operating_system = lf_opsys
IMPORTING
file_name = gwa_input
EXCEPTIONS
file_not_found = 1
OTHERS = 2.
IF sy-subrc EQ 0.
Concatenating the physical path and the input unix file name
CONCATENATE gwa_input p_file INTO gf_file .
ENDIF.
You need to tak ehelp of ABAPer for this
Check the link
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3deb358411d1829f0000e829fbfe/frameset.htm
Regards -
Physical Path in File Adapter for Windows Server
Hi There,
I am trying to read a file from a directory on a windows server and write it to the same server in a different directory.
In the file adapter I gave the value for physical path as below:
"\\10.xx.34.xxx\Share\input".
However I am getting below message in the debug:
"Value specified for input Physical/Logical Directory is not a directory or is not readable."
Hence my question is what should be the value in the physical path for windows server.
Thanks in Advance
Krishna
Edited by: user452458 on Jul 19, 2010 11:30 AMThanks for your reply again.
Actually they are not on the same file system.
I have successfully used FTP Adapter to connect to a UNIX server.
However is it possible to use FTP Adapter for Windows Server. If so how should be the corresponding JNDI defined.
I am getting below error when I use FTP Adapter for Windows Server:
Unable to send file to server. [Caused by: A remote host refused an attempted connect operation.]
; nested exception is:
ORABPEL-11429
Error sending file to FTP Server.
Unable to send file to server. [Caused by: A remote host refused an attempted connect operation.]
Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.
Please Advise.
Thanks
Krishna -
Physical path and Logical name in File adapter
Hi All-
I am using a file adapter, in which i need to specify the physical path or logical path.
In dev environment my file adapter's input path is /c01/interface/dev/input, but in my test environment it is /u01/interface/test/input.
So everytime I have to change the path and deploy it in two different environment.
I am using unix environment, is there any way i can use some environmental variable $INPUT_DIR and use it in logical name so that in logical name i can use as $INPUT_DIR/input, where in dev $INPUT_DIR will be /c01/interface/dev and in test environment it is /u01/interface/test.
I have tried this but there is still some probelm, I want to know is the approach I am using is correct? or is there any other solution for it?
Regards,
SreejitHi,
1. physical name: use a specific directory (e.g. /u01/....
2. logical name: use a LogicalDirectory like "InputFileDir" and rewrite this inside the bpel.xml
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CACDEBBH
and
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/appx_deploydesc.htm#CHDBDIIF
But what about creating a softlink like this on your testsystem:
ln -s /u01 /c01 -
Regarding assignment of physical path to logical file name
Hi All,
We have created one logical file name and assigned physical path to it in FILE tcode.
IN PATH table also these details got updated with correct logical file name & physical path.
But in my program when i have used FILE_GET_NAME F.M to retrieve physical path from logical file.
Here this F.M is not returning anything.
What is the issue over here.
We are working in ECC 6.0
Can anybody resolve this issue!
Thanks,
Deep.do one thing i give my report so according to do this
*& Report ZMIO_MANU_VENDOR_EXTR
report zmio_manu_vendor_extr.
DATA BASE TABLES
tables: lfa1 ,eina, lfm1 .
STRUCTURES
*---structure for the vendor details.
data: begin of ws_lfa1 ,
lifnr type lfa1-lifnr,
name1 type lfa1-name1,
end of ws_lfa1 .
*---structure for the pur org details.
data: begin of ws_lfm1 ,
lifnr type lfm1-lifnr,
kalsk type lfm1-kalsk,
minbw type lfm1-minbw,
end of ws_lfm1 .
*---structure for the pur inf rec.
data: begin of ws_eina,
lifnr type eina-lifnr,
relif type eina-relif,
end of ws_eina .
*--structure for the output file
data: begin of ws_final,
lifnr(10) type c,
name1(35) type c,
kalsk(1) type c,
minbw(13) type c,
eoln(1) type c,
end of ws_final .
INTERNAL TABLES
*---internal table for vendor details
data:i_lfa1 like ws_lfa1 occurs 0.
*---internal table for pur org details
data:i_lfm1 like ws_lfm1 occurs 0.
*---internal table for pur inf details
data:i_eina like ws_eina occurs 0.
*---internal table for final file output
data:i_final like ws_final occurs 0.
*DATA : P_FLAG(1) TYPE C.
CONSTANTS
*-- Default file name
constants: c_filename_default(40) type c
value 'VOLSAP/MAXVRLIB/manu_retail_vendor',
c_kalsk(2) type c value '05'.
SELECTION SCREEN
selection-screen begin of block b1 with frame.
selection-screen: begin of block b2 with frame title text-001 .
select-options:s$lifnr for lfa1-lifnr .
parameters:p$relif as checkbox.
selection-screen end of block b2.
selection-screen: begin of block b3 with frame title text-002 .
parameters: p$file(128) obligatory default c_filename_default.
selection-screen end of block b3.
selection-screen end of block b1 .
START OF SELECTION
start-of-selection.
if not s$lifnr is initial.
perform get_vendor_data .
endif.
perform build_file .
perform display_file .
END OF SELECTION
end-of-selection .
*& Form GET_VENDOR_DATA
form get_vendor_data .
select lifnr
name1
from lfa1
into table i_lfa1
where lifnr in s$lifnr .
if not i_lfa1[] is initial.
sort i_lfa1 by lifnr .
select lifnr
kalsk
minbw
from lfm1
into table i_lfm1
for all entries in i_lfa1
where lifnr = i_lfa1-lifnr .
select lifnr
relif
from eina
into table i_eina
for all entries in i_lfa1
where lifnr = i_lfa1-lifnr
and relif = 'X'.
endif.
endform. " GET_VENDOR_DATA
*& Form BUILD_FILE
form build_file .
loop at i_lfa1 into ws_lfa1 .
ws_final-lifnr = ws_lfa1-lifnr .
ws_final-name1 = ws_lfa1-name1 .
read table i_lfm1 into ws_lfm1 with key lifnr = ws_lfa1-lifnr .
if ws_lfm1-kalsk = c_kalsk .
ws_final-kalsk = 'X'.
endif.
ws_final-minbw = ws_lfm1-minbw .
ws_final-eoln = 'X'.
if p$relif = 'X'.
CLEAR P_FLAG.
LOOP AT I_EINA INTO WS_EINA
WHERE LIFNR = WS_LFA1-LIFNR
AND RELIF = 'X'.
P_FLAG = 'X'.
EXIT.
ENDLOOP.
IF P_FLAG = 'X'.
APPEND WS_FINAL TO I_FINAL .
CLEAR WS_FINAL.
ENDIF
read table i_eina into ws_eina with key lifnr = ws_lfa1-lifnr
relif = 'X'.
if sy-subrc = 0.
append ws_final to i_final .
clear ws_final.
endif.
else.
append ws_final to i_final .
clear ws_final.
endif.
endloop .
endform. " BUILD_FILE
*& Form DISPLAY_FILE
form display_file .
data: l_lines type i.
describe table i_final lines l_lines.
if l_lines > 0.
perform open_file using p$file.
loop at i_final into ws_final.
transfer ws_final to p$file.
endloop.
close dataset p$file.
else.
write: / 'no data found'.
endif.
endform. " DISPLAY_FILE
*& Form open_file
Open an output file, customizing default name to include
vendor number and job completion timestamp.
form open_file using file_nm.
data: l_vendor like eina-lifnr,
l_timestamp(12) type c.
Get correct path/filename for the system we're running on
call function 'FILE_GET_NAME'
exporting
logical_filename = 'ZVOL'
parameter_1 = file_nm
importing
file_name = file_nm.
Open file for output
open dataset file_nm for output in text mode encoding default.
if sy-subrc ne 0.
message e368(00) with 'Error opening output file:' file_nm.
endif.
endform. "open_file
All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.
Edited by: krupa jani on Aug 20, 2008 6:55 AM -
How to create a logical and a physical path?
Hi ,
I want to know how is a logical path created ?
Also , how can a physical path be created from a provided logicall path?
Regards,
Harshit RungtaHi,
Use FM u2018FILE_GET_NAMEu2019 to assign the physical file name using a logical file name.
Remember you need to create u2018logical file nameu2019 using transaction u2013 FILE.
R/3 applications run on various platforms with various file systems. Hence we use platform-independent logical file names in our application programs.
Function module u2018FILE_GET_NAMEu2019 converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.
For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.
Example
logical file name: MONTHLY_SALES_FILE
physical file name: VALUES<PARAM_1>
logical path: SALES_DATA_PATH
physical path (UNIX): /usr/<SYSID>/<FILENAME>
physical path (Windows): C:\SALES\<FILENAME>.
Kind Regards,
Nikhil J. -
Specified physical path folder opening using a href tag
Hi
I am working on some web application, i am trying to do open mentioned physical path folder in my html page.
but its not opening, same thing if i do simple html out side the specified folder drive is opening.
Follows code shows how i am doing in my html page.
link
so it should open D drive venkatesh folder. but its not opening if i deploy in tomcat server.
but if i do out side simple html its opening.
plz guide me.
THnaks
Venkatesh.Oh, a directory. That would require a different approach, yes.
If you want to make use of appserver's default file browser and the appserver's directory index setting is turned on, then just add the following to server.xml:
<Context docBase="c:/path/to/folder/you/want/to/publish" path="/pathyouwanttouseascontextrooturl" />This way you can start with directory browsing by http://example.com/pathyouwanttouseascontextrooturl -
hi friends,
could u plz tell me what is logical path? and what is physicall path?
and also i want to know how to link ogical path and physicall path?
plz tell me in details.
with regards,
Priya.SHi Priya,
Logical File Names
Use
To save data in a file in the cache modes Main Memory Cache with Swapping, Flat File Cache per Application Server, or Cross-Application Server (see Cache Mode), the following specifications must first be set:
● Definition of the logical file path and assignment to a platform-specific physical path
● Definition of the logical file name
From the Cache Monitor screen, using Logical File Names, you can access the complex table maintenance for logical file paths and names. The table maintenance consists of several subdialogs (views). SAP has delivered a proportion of the required settings.
You need to check these settings and make any necessary adjustments for your file system before you can use the persistent OLAP cache with a flat file as a background store.
Note that these assignments are subject to settings made for the transport connection (You need a request that can be transported).
Features
The following section gives an overview of the subdialog in the table maintenance using an example configuration. For more information about the procedure, see Defining Logical Path and File Names.
You can choose the following subdialogs using the dialog structure:
Logical File Path Definition
The (platform-independent) logical file path is evaluated at runtime to generate the (platform-dependent) physical path (see Assignment of Physical Paths to Logical Path).
Two examples of this are:
● Logical file path: BW_OLAP_CACHE
Name: BI OLAP Cache
● Logical file path: BW_OLAP_CACHE_SPAN
Name: BI OLAP Cache Cross-Application Server
Assignment of Physical Paths to Logical Path
At runtime, the physical path assigned to the corresponding operating system is generated from the logical file path.
Since the physical path is platform-dependent, the customer has to specify it. The closer the file is to the application server or, with the cross-application server cache mode, to the application server, the faster it can be found and read.
Log(ical) path: BW_OLAP_CACHE
Name: BI OLAP Cache
Syntax group: UNIX (all Unix platforms)
Phys(ical) path: /usr/<SYSID>/global/<FILENAME> (You can choose the path up to <FILENAME> according to your own configuration.)
If you cannot find the relevant syntax group for file names and paths for your operating system, you can define your own (see Syntax Group Definition and Assignment of Operating System to Syntax Group).
The <FILENAME> parameter must always be set for the physical file name (see Logical File Name Definition, Cross-Client). At runtime, the complete platform-specific file name is automatically formed from the physical path and the physical file name.
Logical File Name Definition, Cross-Client
At runtime, a complete platform-specific file name including the path is generated for a (platform-independent) logical file name.
In the following example, cache data is stored on an application server:
Logical file: BW_OLAP_CACHE (we recommend you use the delivered attributes for the logical file).
Name: BI OLAP Cache Files
Phys(ical) file: CACHE_<HOST>_<SYSID>_<PARAM_1>
Data format: BIN (binary)
Application area: BW (Business Information Warehouse)
Logical path: BW_OLAP_CACHE (see Logical File Path Definition). Input help is available.
In the following example, cache data is stored cross-application server:
Log(ical) file: BW_OLAP_CACHE_SPAN
Name: BI OLAP Cache Cross-Application Server
Phys(ical) file: CACHE_<SYSID>_<PARAM_1>
Data format: BIN
Application area: BW
Log(ical) path: BW_OLAP_CACHE_SPAN
Note that a particular schema is prescribed for the physical file name:
● For application server storage (see Global Cache Parameters and Cache Mode Main Memory Cache with Swapping and Cluster / Flat File Cache per Application Server):
CACHE_<HOST>_<SYSID>_<PARAM_1>
● For cross application server storage (see Global Cache Parameters and Cache Mode Cluster / Flat file Cache Cross-application Server):
CACHE_<SYSID>_<PARAM_1>
The following table offers an overview of the variables that are only replaced with actual values during runtime:
Variables in Physical File Names
Variable
Meaning
<HOST>
Computer/server name (for SY-HOST).
If the data is stored cross-application server, this variable is not required.
<SYSID>
System ID
For example, if two different BI systems are running on one application server, this variable serves to differentiate the systems so that they do not overwrite each other.
<PARAM_1>
External parameter 1 (sequential number in HEX)
Definition of Variables
If you want to use variables in physical file names and paths, you can define these by choosing New Entries.
Syntax Group Definition
You can define a new syntax group for operating systems with the same syntax for file names and paths by choosing New Entries.
Syntax grp: UNIX
Name: All Unix platforms
Length (of file name)
Extension: Choose this option if the data format for the logical data name is allowed as the file name extension for this syntax group.
Active: Choose this option if the operative system for this syntax group is used in the available system configuration.
Assignment of Operating System to Syntax Group
You can assign your operating system to a syntax group by choosing New Entries if necessary.
OP system: SunOS
Name: SUN Unix
check this link also
http://help.sap.com/saphelp_nw70/helpdata/en/8d/3e4ec2462a11d189000000e8323d3a/content.htm
hope this helps u
reward if useful
Jgds
Message was edited by:
Jegadesh Balan -
Creation of user mysites under different managed paths
Hi,
Regarding creation of user Mysites, can two users have different mysites under two different managed paths?
The scenario for my case is like this:
I've a SharePoint 2013 farm attached to a domain contosso.com. Under that AD, I've created two different OUs (Organizational Units), say org1.local and org2.local. Two users are created under the OUs, the usernames being [email protected] and [email protected]
In my SharePoint 2013 farm I've created a Web Application, say SharePoint - 80, to host the MySite Host Site Collections. I've also created two managed paths under SharePoint - 80, say, /personal and /sites.
Now I want to create two user mysites, for the users created above. My question is that can we form the urls for the user mysites as below:
http://HostSiteCollection1/personal/user1_org1_local (for user1 of OU org1.local) and
http://HostSiteCollection2/sites/user1_org2_local (for user1 of OU org2.local)
Please suggest as we are totally stuck.
Thanks in advance,
ArnabHi,
According to your post, my understanding is that you wants to create different MySites under different managed paths.
We can create different managed paths for different MySites for UPA in partitioned mode.
Harbar has written a good blog about creating the MySite host using that same multi-tenant setup.
http://www.harbar.net/archive/2010/09/14/sp2010mt6.aspx
Specifically, you use Set-SPSiteSubscriptionConfig to point to a particular OU for user accounts.
Next, you create a site using New-SPSite bound to that subscription for your MySite Host (e.g. New-SPSite
https://customerA.sharepoint.com/mysites -Template "SPSMSITEHOST#0")
And finally you connect to the UPA Proxy that you previously created in partitioned mode to synchronize users with that particular subscription using Add-SPSiteSubscriptionProfileConfig -ID <Subscription ID> -SynchronizationOU CustomerA -MySiteHostLocation
"https://customerA.sharepoint.com/mysites".
For more reference:
https://social.technet.microsoft.com/Forums/office/en-US/820b1937-4b83-4fd3-8997-118ea13e23ef/sharepoint-2013-my-sites-for-host-based-site-collections?forum=sharepointgeneral
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
I have a problem while typing in my MacBook pro. it is showing different characters when i type. for example: qw`e§r]t[y= this is how when we type "qwerty|" can anyone help me pls?
You could just try changing your Input Sources under System Preferences>Language & Text:
But I kind of doubt that's going to work. It may be a hardware problem or a system problem. If you take it into Apple they might be able to determine which and might advise a reinstallation of System software. I would take it to an Apple Store or an AASP but, first, make sure that you have a backup just in case they suggest a clean install of the system.
Good luck,
Clinton -
How to find the physical path of the ASM disks?
I am in a dilemma on how to find out the physical path of the ASM disks. I tried the following query, but as you can see it is not providing me the physical path of the LUN. This is a 2 node 10.2.0.4 RAC Cluster using asmlib package.
col name format a20
col path format a20
col label format a20
select name, path, label from v$asm_disk;
NAME PATH LABEL
ORCL:ASM103 ASM103
ORCL:ASM104 ASM104
ORCL:ASM117 ASM117
ASM101 ORCL:ASM101 ASM101
ASM102 ORCL:ASM102 ASM102
ASM105 ORCL:ASM105 ASM105
ASM106 ORCL:ASM106 ASM106
ASM107 ORCL:ASM107 ASM107
ASM108 ORCL:ASM108 ASM108
ASM109 ORCL:ASM109 ASM109
ASM110 ORCL:ASM110 ASM110
NAME PATH LABEL
ASM111 ORCL:ASM111 ASM111
ASM112 ORCL:ASM112 ASM112
ASM113 ORCL:ASM113 ASM113
ASM114 ORCL:ASM114 ASM114
ASM115 ORCL:ASM115 ASM115
ASM118 ORCL:ASM118 ASM118
ASM119 ORCL:ASM119 ASM119
ASM120 ORCL:ASM120 ASM120
ASM121 ORCL:ASM121 ASM121
ASM122 ORCL:ASM122 ASM122
ASM123 ORCL:ASM123 ASM123
NAME PATH LABEL
ASM124 ORCL:ASM124 ASM124
ASM125 ORCL:ASM125 ASM125
ASM126 ORCL:ASM126 ASM126
ASM127 ORCL:ASM127 ASM127
ASM302 ORCL:ASM302 ASM302
ASM303 ORCL:ASM303 ASM303
ASM304 ORCL:ASM304 ASM304
ASM305 ORCL:ASM305 ASM305
ASM306 ORCL:ASM306 ASM306
ASM307 ORCL:ASM307 ASM307
32 rows selected.
Any help will be appreciated.
--MMhi
use the following linux command as root:
$oracleasm listdisks
hth -
LSMW - Logical File Path not pointing to Physical Path
Hi All,
I'm trying to upload some MIGO goods movement transactions through LSMW. I'm to step 7, specifying files, and am getting the error "No logical file path has been specified. I saw another thread which helped me, but I am still stuck after reading it.
Re: Error in Creation of Purchase Requisition through LSMW
I have gone into transaction FILE and created the logical file name MM_GOODS_MOVEMENT, and set the physical file as the .lsmw.conv converted data file as the above thread says. I also tried using the logical path LOCAL_TEMPORARY_FILES for the converted data, but I get the error telling me that the path does not point to a physical directory. I then tried creating my own file path, and setting the path to my desktop where the source file is, and the same error occurred.
Does anyone know why it is not recognizing the physical path maintained in the logical path?
Thanks,
JThanks for both replies,
I have full authorization across all transactions in the sandbox system I am working in, so that is not an issue. I filled the logical path field in the MM_GOODS_MOVEMENT logical file with LOCAL_TEMPORARY_FILES, as well as trying my own created file path, and I recieved the same error for each. Here is how the config is currently:
Logical File Path Definition: MM_GOODS_MOVEMENT
Syntax Group: WINDOWS NT
Physical path: C:\Documents and Settings\jchanski\Desktop\<FILENAME>
or,
Logical File Path Definition: LOCAL_TEMPORARY_FILES
Syntax Group: WINDOWS NT
Physical path: C:\temp\<FILENAME>
Logical File Name Definition: MM_GOODS_MOVEMENT
Physical file: MM_MM_MIGO_INVUPLOAD.lsmw.conv
Data format: ASC
Applicat.area: MM
Logical path: LOCAL_TEMPORARY_FILES or MM_GOODS_MOVEMENT
Do you see any error with this Brajvir? Thanks! -
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.
Maybe you are looking for
-
Hello I 've recently put a flash video on my site and used this code: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" height="240" width="360
-
HP c5180 Photsmart All In One - via Airport not working
Hi all. Just got a new MBP 17" with Snow Leapard 10.6.2. Migrated via Time Machine from my older Laptop which was running 10.5.8. Everything is working swell except when I got to print. Tried uninstalling the HP printer software and such but no succe
-
Solaris 10 on Dual Athlon MP, can't install, keeps rebooting
Hi All, I've been trying to install Solaris 10 onto my machine: Tyan Thunder K7X (AMD 760MP Chipset) 2x AMD Athlon 2400+ 2,5 GB Memory Adaptec 2100S Raid Controllers When the installation CD boots, you see a couple of dots appearing, then some text s
-
hi all i have installed EBS 11i on windows xp it worked fine for last few months.now i am getting forms server error. i can login as user and when i try to go to applications like AR transactions jinitiator is also geting intiated.it stops at this st
-
Once upon a time I was very happy with comcast. I moved April 2015 to a new residence. I called comcast to transfer my services. Per phone conversation I was told we could upgrade to hd TV at no charge my monthly bill would stay the same and I would