How to create logs(access logs, debug logs..)
Hi,
I need to catch the exception and create the log file with the exception message in sun access manager. I am using com.sun.identity.log.Logger for doing it. we have methods to create the logRecord without ssotoken, so when I am trying to create a log file without the ssotoken nothing is happining i:e no log file is created, the same thing I am able to do with by passing ssotoken. my question in the application if we get any exception before getting the ssotoken then how to log the message into the log file.
please help me...
Thanks
tatineni.
You may want to use the "Shotdown hooks" API -- http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread).
Similar Messages
-
How to create the Access sequence for the Vendor+material+plant combination
Hi all
Please let me know How to create the Access sequence for the Vendormaterialplant combination..
Whats the use? What its effect in purhcase and taxe..
brief me pleaseHi,
you are asked to maintain the access sequence for the tax condition for which you are putting 7.5%.
goto OBQ1 or img..financial accounting new...global settings.... taxes on sales and purchases ......basic settings.....
find the tax condition type. see in it which access sequence is attached.
if there is none then use JTAX used for taxes in India.
or you can create the similar one for your.
to create the same goto OBQ2.
new entry or copy JTAX.
and assign the access sequence to condition type.
this will resolve your problem if you just need to assign the access sequence.
regards,
Adwait Bachuwar -
What are message tables and their role?How to create and access them ?
hi,
Can any body clarify me about What are messaging tables and their role(use) in DataBase?How to create and access them ?
Thanks in advance
GopiIf you have doubt that's you have an idea. So, explain your idea please, because I don't see what are "messaging tables".
Did you say about Oracle database ? Apps ?...
Nicolas. -
How to create log file...
Hi,
i am using jdeveloper for a process particularly using ESB....
getting an XML file using a inbound file adapter,routing it using a routing service to two targets.....
i have given two filter expression's for the two targets...if it satisfies the first expression the xml file will move to the first target....
the second target is a outbound file adapter....
if the xml data doesnt satisfy the second expression it wil move to the outbound file adapter and it wil write the data to a file(Error.txt)
it is writing the total XML data into Error.txt
But my need is to write only the the data as like in a log file....
date, time, component and some description about tht error
How to create tht???
please help me asap.....Hi User,
You'll probably get better help on the SOA Suite forum: SOA Suite
John -
Hellp Everyone,
I am trying to create a Access-List on my Core Switch, in which I want to allow few internet website & block the rest of them.
I want to allow the whole Intranet but few intranet websites also needs access to the internet.
Can we create such Access-List with the above requirement.
I tried to create the ACL on the switch but it blocks the whole internet access.
i want to do it for a subnet not for a specific IP.
Can someone help me in creating such access list.
Thanks in AdvanceThe exact syntax depends on your subnets and how they connect to the Internet. If you can share a simple diagram that would be much more informative.
In general just remember that access-lists are parsed from the top down and as soon as a match is found, the processing stops. So you put the most specific rules at the top. also, once you add an access-list, there is an implicit "deny any any" at the end.
The best approach is to create some network object-groups and then refer to them in your access list. From your description, that would be something like three object-groups - one for the Intranet (Intranet), one for the allowed servers that can use Internet (allowed_servers), and a third for the permitted Internet sites (allowed_sites).
You would then use them as follows:
ip access-list extended main_acl
permit any object-group intranet any
permit object-group allowed_servers object-group allowed_sites any
interface vlan
ip access-group main_acl in
More details on the syntax and examples can be found here:
http://www.cisco.com/en/US/docs/ios-xml/ios/sec_data_acl/configuration/15-2mt/sec-object-group-acl.html#GUID-BE5C124C-CCE0-423A-B147-96C33FA18C66 -
How to create and access Global variable in Microsoft Lightswitch(VB)?
How to create an integer datatype Global variable in Microsoft Lightswitch 2011(VB) and access it in pre-process query to set value? Can it be accessed and set like Me.Application.<MyGlobalVariable> = 999
Thnx.
jajjaar123If you want to create integer datatype Global variable in lightswitch, you can refer to (Eric Erhardt) blog
Create and Use Global Values In a Query -
How to create .log for sqlplus script
Hi All,
I created a sqlplus script and run it through a window form. My user want to me create a .log file for this script so they can know the job is completed or not. Does any one know how to do it?
Thanks
OFI created a "Login.sql" script that I use for all my sql*plus sessions.
It creates a spool file in my common directory and everything i do is logged unless i set spool off.
Take a look and it gives you an example of using spool files and how to set a directory and unique filename for each spoolfile.
The contents of this file:
-- any uppercase commands are my specific changes.
-- this file must go in the oracle bin path or where sqlplus exe is located
SET HEADING OFF
PROMPT Who What Why Where When, This is SQL*Plus!
Select 'You are connected to ' || GLOBAL_NAME || ' as ' || USER FROM GLOBAL_NAME;
set appinfo ON
set appinfo "SQL*Plus"
set arraysize 15
set autocommit OFF
set autoprint OFF
set autorecovery OFF
set autotrace off
set blockterminator "."
set cmdsep OFF
set colsep " "
set compatibility NATIVE
set concat "."
set copycommit 0
set copytypecheck ON
set define "&"
set describe DEPTH 1 LINENUM OFF INDENT ON
set markup HTML OFF SPOOL OFF ENTMAP ON PRE OFF
set echo OFF
set editfile "afiedt.buf"
set embedded OFF
set endbuftoken ""
set escape OFF
set feedback 6
set flagger OFF
set flush ON
SET HEADING ON
set headsep "|"
SET LINESIZE 250
set logsource ""
set long 80
set longchunksize 80
set newpage 1
set null ""
set numformat ""
set numwidth 10
SET PAGESIZE 24
set pause OFF
set recsep WRAP
set recsepchar " "
SET SERVEROUTPUT ON size 1000000 format WORD_WRAPPED
set shiftinout invisible
set showmode OFF
set sqlblanklines OFF
set sqlcase MIXED
set sqlcontinue "> "
set sqlnumber ON
set sqlprefix "#"
set sqlprompt "SQL> "
set sqlterminator ";"
set suffix "sql"
set tab ON
set termout ON
SET TIME ON
SET TIMING ON
SET TRIMOUT ON
set trimspool OFF
set underline "-"
set verify ON
set wrap ON
COL SPOOLFILE NEW_VALUE SPOOL;
COL SYSTIMESTAMP FORMAT a38
SELECT 'C:\oracle\spoolfiles\'||NAME||'_'||TO_CHAR(SYSDATE,'DD_MON_YYYY_HH24MISS')||'.lst' spoolfile FROM V$DATABASE;
spool &spool
PROMPT -----------------------------------------------
SELECT SYSTIMESTAMP FROM DUAL;
PROMPT ----------------------------------------------- -
How to create log entry when session exceeded profile's limit ?
Hi all,
is there any way to create entry in log_table (or some log file) when session exceeded its profile's limit (i.e. idle_time) ?
If this entry can be created when session status changes to 'SNIPED', it would be great.
I've tried with trigger "AFTER SERVERERROR" but it doesn't fire on errors like below:
ORA-02396: exceeded maximum idle time, please connect againThank for any help in advance.
Oracle ver: 10.2.0.4 (Windows XP and Linux RH4).
Tomasz K.Thanks for your reply.
I had audit enabled already,
but there is no real reason logged in audit trail why the session has been disconnected.
ACTION_NAME has only 'LOGOFF' [clear exit] or 'LOGOFF BY CLEANUP' (which includes all "brute" disonnect reasons, as network failure, app failure or "session limit exceeded).
Is there any way to differentiate 'LOGOFF BY CLEANUP' audit entries into more precise descriptions ?
Thanks
Tomasz K. -
How to create logs in java if the application stops abruptly,
Hi,
I wrote a java code for handling one of my applications in built commands. Right now iam handling the logs using an arrayList and at the end of my java progem iam writing them to a file.
If the program runs completely then my logs are generated, but my application takes almost 6hours to fully complete.. if ther is anyproblem like service of application stops or any other problem then i have to stop my java code forcefully.. in that case my code is not working ...like iam not able to see that part of my logs.
Help me in writing the logs even if the java code stops in between. or iam stopping it.
Thanks in adcanceYou may want to use the "Shotdown hooks" API -- http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread).
-
How to create logs in to diff files for apps deploy on same OC4J instance?
I am using OC4J 10.1.3.5 App server on Windows. I have deployed 2 web applications on the same instance of OC4J where I have defined the shared library. Both applications use Struts, Spring, iBatis, apache commons libraries which I have defined as a shared library. Part of the apache loggins library I had to add log4j jar as well. So indirectly log4j-12.16.jar is declared as a shared-lib as well.
I have log4j.properties for both application pointing to different log file. But still when both applications are deployed and running, the logs are getting populated on only one file. During the deployment, I did check on webapp-classpath-first="true" setting to explicitly have log4j.properties of each individual application being load first. But nothing makes difference.
Please help.
Thanks
JasminJasmin,
Dependent on where the log4j library is installed it will use either one or separate configuration files. Placed in WEB-INF/lib then the log4j logger is initialized separately for the applications using separate configuration files. This is not the case when the log4j library is placed under home/applib.
regards,
Bernhard Jongejan
http://bernhardjongejan.spaces.live.com -
How to create and access a Virtual Host on the J2EE WAS?
Hello, I have searched through the Forums and help.sap.com and found a lot of information on how to set up a Virtual Host on the J2EE server but am having issues with it working.
The goal is to provide a simple virtual host on the J2EE Portal server to host some static image and HTML files. Previously I had stored these files in the standard publicly accessible SAP J2EE folder location /usr/sap/<SID>/JCxx/j2ee/cluster/serverx/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/. This location is resolved to when using the URL <host>:50000 for example.
The main issue here is that during Portal support pack applications this folder gets wiped out and we have to remember to save off any custom files and folders in this location and replace them.
I would like to create a virtual host to store these static files (i.e., branding-image.jpg, etc...).
I have run through the process of creating the virtual host both using Visual Administrator and <host>:50000/nwa but am not able to get the virtual host name to resolve properly.
The following are the steps that I have taken. Let's assume the standard SAP portal (i.e., xSS, etc...) is running properly on <host>:50000.
1. create virtual host via Visual Administrator/NWA called 'sapwebserver1' by using the Create Host option (takes on the attributes of the 'default' standard virtual host)
2. change the root directory for this virtual server to a custom folder at E:/tmp/mimes (where E:/usr is where the J2EE files are all installed), no start files were set up and nothing else was changed in the new virtual host record, no permissions were changed on the /tmp/mimes folder from whatever the default Windows user permissions are normally set, I am using a local Windows administrator account but I have not seen any reference in the help files or the examples that indicate that any specific permissions updates need to be made on the virtual host root folder
3. restarted the J2EE server as well as the HTTP Provider service
4. before updating the company DNS, I wanted to test this locally on the server and so have updated the server's local HOSTS file with a <host IP address> sapwebserver1 entry
5. from that server I can ping the sapwebserver1 virtual host name and it resolves properly to the machine's physical IP address
According to all of the documentation and examples I have seen I should now be able to (from that server) launch a browser and access the static files in the virtual host by referring to http://sapwebserver1:50000/branding-image.jpg for example. This is not working and the browser just brings up a Cannot display the web page error in IE. By referring to the virtual host name sapwebserver1:50000 it's supposed to hit the J2EE server and based on the host name sapwebserver1 realize that it should resolve to the root directory E:/tmp/mimes. This is not happening. Just as a test I have created a copy of the 'default' virtual host and called it sapwebserver2, updated the local HOSTS file for this entry, and tried to see if that would work like the 'default' host. My expectation was that http://sapwebserver2:50000 would behave the same was as http://<host>:50000 but it too fails to resolve just like the sapwebserver1 virtual host refernce.
Would anyone happen to have any pointers on what to do next? I just want a simple virtual host to be able to serve up some static images and files.
Thanks for any insight or assistance you might be able to provide here.
GrahamThis defeats the purpose of trying to centralize SAP-related web resources on the SAP server. Typically IIS/Apache or other non-SAP servers are under the control of IT and not the SAP BASIS group.
We simply would like to have a centralized location to store static web files so that they are not overwritten during Portal support pack applications. -
How to create an Access Point with Two MI424WR (GigE for Verizon FiOS) Routers?
I understand that these routers are fairly new and I cannot seem to find hardly any information on them. I have a fairly large home and I just happen to have two MI424WR's Gig E routers. One is my main and the other I would like to create into an Access Point. Has anyone done this with these routers? I have found plenty of previous information on previous routers similar to these, but I have yet to find any instructions on how to do this with these routers.
Please help!
Mark
http://www.actiontec.com/products/product.php?pid=214How are you going to connect them? cat5 or coax?
cat5 instructions:
Can I use my wireless or an extra router along with the Verizon provided router?
coax instructions:
Can I get an ethernet connection in a room with only coax? -
How to create and access cookie with in iView ?
Hi,
I have created iViews using .Net PDK for SAP.
Is it possible to create a cookie using code of iView and use this cookie to access an external application.
Regards,
Vikas KhandpurU cud add this code to the java iview:
setting a cookie:
Cookie fCooky = new Cookie("flag","false");
response.addCookie(fCooky);
fCooky.setPath("/");
Reading the cookie:
Cookie[] cook = request.getServletRequest().getCookies();
for (int i = 0; i < cook.length; i++){
Cookie cc = cook<i>;
if(cc.getName().equals("flag")){
response.write(cc.getValue()toString());
Iam not sure how u wud do it in a .NET Iview.
Sry!
Regards,
P. -
How to create a Access Port in ASR901
Hi
I was tried to configured an ASR901 access port for my customer POC in ASR 901 but fail.
It does not support for switchport access VLAN commad .
I have suscessful setup a port-channel in ASR901 to the Alcatel switch and the LACP is up and in bundded state.
The question is how can I configure a access port mode (VLAN 100) in ASR901? The PC will need to
perform a PC Ping test from the ASR901 access port to the ALU Access port via the port-channel that I have configured.
I try to plug in my PC to the port Gi0/4 then run the Ping test from my PC to another PC that connected to Alcatel switch but fail as well.
PC (VLAN 100) Gi0/4 --- ASR901 --(LACP)--ALU --- PC (VLAN 100)
ASR901 configuration
interface Port-channel1
no negotiation auto
service instance 10 ethernet
encapsulation dot1q 100
bridge-domain 10
service instance 20 ethernet
encapsulation dot1q 200
bridge-domain 20
interface GigabitEthernet0/0
no negotiation auto
service instance 10 ethernet
encapsulation untagged
bridge-domain 10
interface GigabitEthernet0/1
negotiation auto
channel-group 1 mode active
interface GigabitEthernet0/2
negotiation auto
channel-group 1 mode active
interface GigabitEthernet0/3
speed 100
duplex full
no negotiation auto
interface GigabitEthernet0/4
no negotiation auto
cdp enable
service instance 10 ethernet
encapsulation dot1q 100
rewrite ingress tag pop 1 symmetric
bridge-domain 10
interface GigabitEthernet0/5
speed 100
duplex full
no negotiation auto
service instance 20 ethernet
encapsulation untagged
bridge-domain 10
interface GigabitEthernet0/6
speed 100
duplex full
no negotiation auto
service instance 10 ethernet
encapsulation untagged
bridge-domain 10
interface GigabitEthernet0/7
no negotiation auto
service instance 10 ethernet
encapsulation untagged
bridge-domain 10
TqHi alexander,
But for function module MAster_idoc_distribute.
What are the parameters i need to pass for Logical systems and what i have to give in the Model distribute .
Can you explain me detail.How the sys knows have to maintain for sender and recevier sys.
As File port new to me.
Regards,
Madhavi. -
How to create guest access in wireless by WISM and WCS and ACS?
dear sir
i neeed to know the steps of how we can make guest access to our network like hotels by using our WISM v 7.0.220 and wireless control system and ACS ?You need to define your requirements a little bit. The WLC can do WebAuth and an employee can access either the WLC or WCS to put in the username and password credentials, but you would need to figure out what's best for you.
Here is a support doc that you can reference.
https://supportforums.cisco.com/docs/DOC-13954
Sent from Cisco Technical Support iPhone App
Maybe you are looking for
-
I am getting an error while requesting a new jsp
HTTP ERROR: 500 No Java compiler available RequestURI=/webchat/index1.jsp Caused by: java.lang.IllegalStateException: No Java compiler available at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:224) at or
-
Can I create a dynamic number of inputs during runtime?
Can I create a dynamic number of inputs during runtime? Oracle 11g Application Express 4.0.2.00.06 Here is my problem: We have a table that holds metadata about files (hardcopy or softcopy files). We expect we may need more columns in the table at so
-
Connect unmanaged clients to Software Update Services 10.8.4
Software Update Services 10.8.4 I cannot get unmanaged clients to connect to my ML Software Update Service I tried the following versions: sudo defaults write com.apple.SoftwareUpdate CatalogURL http://my.sus.local:8088/ sudo defaults write com.apple
-
Dear Team, I have my apple id but i cann't access this id because of error is showing while login the internet connection appears to be offine. please help me out for this query. Sumit Agarwal
-
Hardware key and web authentication
is there any way to log on a web site using hardware key? any ideas?