Custom logging formatter not used (XML instead).
I use the built in Java logging API to write log messages to a file. As the SimpleFormatter does not quite the format we would like to have, I wrote a custom formatter and set it in the logging properties file:
java.util.logging.FileHandler.formatter = my.LogFormatter
This works well in a standalone application. But using the same in my servlet application, the log fie does not use my custom formatter but the (default?) XML formatter. I multichecked the JAR that is in cluded in the WAR file and it has my custom LogFormatter class (as the JAR is exactly the same that works in the standalone application).
Does the servlet expect a custom logging formatter somewhere else? I tried adding it to the root directory within the WAR but this also doesn't work.
By default, the LogManager reads its initial configuration from a properties file "lib/logging.properties" in the JRE directory.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/LogManager.html
Similar Messages
-
Can not use XML API from Sun (JAXP)
Some of my EJBs and Servlets uses XML API from Sun (JAXP) but after deployment the J2EE Container uses its own XML engine (Oracle XML Parser....) instead.
I try to add JAXP library to my deployment file and test again but this problem still occurred.
My question is how to add my libraries to J2EE Container and these libraries can be shared by any applications.
Regards,
NarongPlease post this in the misc or xml newsgroup.
vipuld shah wrote:
i have an application which is running through javaWebStart
if u start the application first time(through clicking on
link of .jnlp file), it will download necessary .jar files
& it will store those files in javaWebStart's cache.
when u will visit second time, it will check files in cache
with the files in server, if both are same, then it will not
download but will use from its cache.
it works fine for .jar files, but is it possible for some .xml
files which are changing very rarely.--
Rajesh Mirchandani
Developer Relations Engineer
BEA Support -
Custom hostname verifier not used when business services use a http proxy
On OSB 10.3, we have a business services with an https end point. To access this end point, the business service used an http proxy.
The certificate of the business endpoint is a wildcard certificate *.certificate.be . So we have a custom hostname verifier defined in the ssl configuration on the weblogic Server
As we can see with the verbose mode at the jvm, the custom hostname verifier is not used when we use a http proxy in the business service. Osb use a ALSBHostnameVerifier and this one the defaulthostName
<Mar 2, 2011 7:31:11 AM CET> <Debug> <AlsbTransports> <BEA-000000> <*** Connecting via proxy *** HTTP @ my.proxy.be/XXX.XXX.XXX.XXX:8080>
[Loaded com.bea.wli.sb.transports.http.ALSBHostnameVerifier from file:/bea/osb_10.3/lib/sb-transports-main.jar]
[Loaded weblogic.security.utils.SSLWLSHostnameVerifier$DefaultHostnameVerifier from file:/bea/wlserver_10.3/server/lib/weblogic.jar]
Is there any way to force business service to used hostname verfifier defined in weblogic ssl server config?
ThanksThis is a known issue. Raise a case with support and ask a patch for bug#9182604
Regards,
Anuj -
Been some time since I have used Flash for anything...
I'm working on a little project to dynamically build a map
and set points of interest on the map. At this time I have the
(mySQL) data being queried and formatted with PHP and pushing the
data to Flash as XML.
In starting the project I'm a bit lost... I mean I have my
data and a good XML format but as it is I'm lost on parsing the
data in Flash and assigning its values to movie clips or other...
I've looked at the Loader Component and the XML Connector
Component and find I can get that to work at all...
My second though was to create a single movie clip on stage
and give it an instance name of "Background" and have it load the
URL of an image given in the attached XML doc... Node "a_zone" and
the value given to attribute "image"... But this brings me back to
square one of not quite understanding Flash and parsing XML... With
this second idea I would use AS to create a movie clip, set it's X
& Y cords and load an image to it based on the XML attributes
listed in the "Gatherable" node (one for each node).
Any suggestions, examples or related info is welcome...
Thanks in advance!Okay, that really wasn't what I was looking for... But I did
go back and RTM :-)
Here's what I have... 1st frame:
2nd Layer: movieclip with the instance name "currentPicture"
The image loads into "currentPicture" from the URL given in
the XML "a_zone" node attribute "image" just fine....
But I'm not able to grab the attributes of each "Gatherable"
node it seems... am I missing something or just not pointing to the
right node?
I keep getting:
undefined
undefined
undefined
Error opening URL
"file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
Error opening URL
"file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
Error opening URL
"file:///C|/apache2triad/htdocs/gatherer/flash/undefined" -
Custom spry type menu using images instead of text
Hi.
Before I ask my question properly, I just want to put it out there that I have created my almost finished (apart from this part) website pretty much cometely in design view. I am very very limited with HTML and have zero scripting experience.
I'm looking for a step by step guide to the solution/s if anyone can be so kind as to help.
My website uses a non standard font throughout so my headings are all .png files including the menu bar navigation.
I would like one of my menu buttons to continue to switch to a different image as the others do (it simply changes colour) but also drop down a further two clickable images in the spry style.
Is it possible to create a rollover image that has further hotline regions or clickable images as part of it?
If not, can you create a spry menu with no text, just background images?
Alternatively, is there another way to achieve what I'm looking for.
Thank you very much.Use a background image, keep the original label (e.g. Home) for accessibility (screen readers, search engines etc), but hide the labels by placing them in a span and giving the span a left margin of -1000em. Also give the item an identifying class (home),as per
<li><a class="MenuBarItemSubmenu home" href="#"><span>Home</span></a>
and the CSS
ul.MenuBarHorizontal a span {margin-left: -1000em;}
ul.MenuBarHorizontal a.home {
background: url(home_bg.png);
Give the hover and focus a background image of choice.
Gramps -
Canon HFS 10 log & transfer not using full capacity of camera
I hope someone can help.
Just bought a Canon HFS10 AVCHD handycam that boasts it records at 24 Mbps but when using log and transfer the clips are only recording around 10 to 13 Mbps.
There doesn't appear to be an option in 'Log and Transfer' to up the rate.
How do I get Final Cut Express to take up video from the camera at 24MBps?Here's a recent thread I did on the topic:
http://discussions.apple.com/thread.jspa?threadID=1964703&tstart=0
The basic idea is that Canon boasts it captures at 24mBps, but is actually a variable bit rate and uses whatever rate it needs when capturing. As such, the data rate upon ingest would be the rate it captured at. There is no way to change the data rate within FCE, this solely depends on how the camera captured. 24mBps is probably the maximum data rate the camera has achieved in tests. -
When / why use XML to store data instead of database table ?
Hi All,
I still not use XML much in applications and don't know much about its utilization.
I read here and there about storing data as XML instead of into database tables.
- could any body please tell me when / why use XML to store data instead of database table ?
e.g : store inventory per warehouse in XML format. ?
- What is the other cases or reasons of extracting database records into XML or vice versa ?
- is there any good pdf on this ?
Thank you for your help,
xtantoIt depends entirely what you want to accomplish with the 'XML in the database'. There are basically 3 independent methods: As CLOB, as XMLType views or as native XMLType 'columns'
Each method has advantages and disadvantages, especially in the performance vs purpose tradeoff.
The Oracled Press book "Oracle Database 10g XML & SQL Design, Build, & Manage XML Applications in Java, C, C++, & PL/SQL" is highly recommended for anyone interested in Oracle and XML. http://books.mcgraw-hill.com/getbook.php?isbn=0072229527&template=oraclepress -
Why to use xml ,sax api ,?
Dear friends
1> Can u please tell me why to use xml instead of html. When the developement is
easy & fast in html, then why peoples are going for xml.
2> Please tell me role of SAX api in relevence to XML.
3>What is difference between DOM & SAX.?
If possible spare few seconds to write to me.
regds
shiv
Email: [email protected]1> Can u please tell me why to use xml instead of
html. When the developement is
easy & fast in html, then why peoples are going for
xml.
HTML is only for presentations like web pages. XML, however, is use to define a new language like XHTML that is for presentations. But there are XML based language that is not for presentation, for example, XLink which allows elements to be inserted into XML documents in order to create and describe links between resources. All in all, XML is a much powerful language than HTML.
2> Please tell me role of SAX api in relevence to
XML.
Simplely put, SAX is a XML parser like DOM that is used to process XML data.
3>What is difference between DOM & SAX.?
Take a look at this: http://java.sun.com/webservices/docs/ea2/tutorial/doc/JAXPIntro.html
Hope this help. -
Im developing a small application and choosed to use XML instead of MySql because it's smaller and do not require to install a database on the client after software distribution.
The strategy was not keep all data in the XML file, so some parts are shared over folders.
Example:
Let's say I have 10 logins (remember that login can't be repeated) so I have 10 foldes (packges) eah one with it's on xml file about the login info.
So far, it's working very fast.
The problem is that I don't know what parser (read/write) to use.
1)
There's a lot over the web, but I'm affraid abaout memory and application size (I'd like to keep it small and readable later) ... so should I use Suns DOM or Stax?
2)
There are simple things I really need: read the xml, change it if needed and display the data. So I need to populate my objects, change them and persist again. Also, I'd like to persist only the nodes that were actualy changed, keeping the unchanged data.No 1.
First of all, let me apologize. I kinda lost myself on my own explanation! Sorry.
No. 2.
.....Yeah, I ended up finding an easy way to read those small xml files (the way I'm trying to keep them so far)...You're right, could be even SAX or DOM. I've choosed SAX by now.
.....The big problem was to understand all those acronyms over the web...beyond learning Java, XML we must remember all those words too. Not an easy task.
No. 3.
Can anyone tell me EXACTLY how to use StaX ? Cause I will have to use it later by some xml on demand files i'll need to work with.
No. 4.
As I've choosed SAX, how do I change only the tags that matter on the xml file? Is it possible?
Thaks a LOT for all the patient people from this forum.... You are the BEST -
Revision: 14476
Revision: 14476
Author: [email protected]
Date: 2010-03-01 05:24:17 -0800 (Mon, 01 Mar 2010)
Log Message:
DVR: using Date instead of getInterval to do local recording timing.
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastDVRTrait.as
osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastNetConnectionFactory.as
osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastRecordingInfo.as
osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastTimeTrait.as
osmf/trunk/framework/OSMFTest/org/osmf/net/dvr/TestDVRCastRecordingInfo.asAre you trying to record to "live" application which comes with default installation of FMS, if you are doing that then you will get Record.NoAccess as "live" application does not allow recording. Now hopefully you have FMIS and not FMSS. If you are having FMSS, you will just get live & vod apps and both of them you wont be allowed to record.
Now I will assume you have FMIS :
Please use other app to record other than "live". Renaming "live" to "live_test" or changing its location wont help, you will still get error.
In order to record do following things,
1. Create a folder called "recordApp" - since you are triggering record from client side you dont need any server-side code.
2. Just change application name in your client connection URL to connect to "recordApp" instead of "live_test"
3. You dont have to change anything in fms.ini so keep the default as it comes in installation.
4. As mentioned by JayCharles please use :http://livedocs.adobe.com/flashmediaserver/3.0/docs/help.html?content=03_configtasks_37.ht ml for doing VirtualDirectory settings so that you can record your files in particular directory. (However I would note one thing is that VirtualDirectory feature is more for play than record/ingest)
5.Give write permissions to your folder where you would be recording.
please let me know if this does not work -
How to print total amount in last page of purchase orde using xml publisher
Hi
I customizing purchase order report using xml publisher.
i have to print total amount at last every purchse order.
how to compare carry forward amount in xml publisherI think the guys overhere :
BI Publisher
can help you a lot better -
HELP Create Extenstion using JFrame instead of JPanel (10.1.3 Release 3)
Hi,
I manage to create a custom GUI editor in JDev but if i switch it to JFrame, JDev GUI Designer display nothing but an invinsible frame.
I'm using sample from customeditor in extension sdk
Any ideas ?
ThanksIt seems that you are trying to use a JFrame as the GUI of your custom editor. The JFrame is a heavy weight component (has a real window behind it). In JDeveloper custom editors must not use JFrames or AWT Frames as their root GUIs. The windows of these frames will paint on top of other editors even if they are behind in the component stacking order.
-
Error in tutorial: Could not create XML document carrying AQ Headers
Hi,
We try to run the AQOutboundCorrelation tutorial. After running the enqueue_reply.sql script the message was placed from the request to the reply queue and read by the AQ inbound adapter.
Nothing happened in the flow. The following error occured in the domain log:
Could not create XML document carrying AQ Headers
Please help!!
See log messages below
<2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_addPrimitive: field = PAYLOAD, value = Hallo
<2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_addPrimitive: field = RESULT, value = request received
<2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_getAsXML message:<<<<<<<
<?xml version = '1.0' standalone = 'yes'?>
<CORRELATIONREPLY_TYPE xmlns="http://xmlns.oracle.com/xdb/ANDRE">
<PAYLOAD xmlns="">Hallo</PAYLOAD>
<RESULT xmlns="">request received</RESULT>
</CORRELATIONREPLY_TYPE>
>>>>>>>>
<2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_readMessage: aqHeader = oracle.xml.parser.v2.XMLDocument@eabad
<2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_readMessage:Header<<<<<<<
<?xml version = '1.0' standalone = 'yes'?>
<Header xmlns="http://xmlns.oracle.com/pcbpel/adapter/aq/inbound/">
<MessageId>CA714367FA1B4BB3B2AC0211C9ECF2DB</MessageId>
<Priority>1</Priority>
<Correlation>209EE57CB6AC4B2FA2034C6FA58AD24B</Correlation>
<Attempts>0</Attempts>
<EnqueueTime>2007-01-18T13:58:59.000+01:00</EnqueueTime>
<OrigMessageId></OrigMessageId>
</Header>
>>>>>>>>
<2007-01-18 13:58:59,187> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_ReadMessage: Could not create XML document carrying AQ Headers: [Ljava.lang.StackTraceElement;@12916fe
<2007-01-18 13:58:59,187> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound>
java.lang.NullPointerException
at java.lang.String.<init>(String.java:479)
at oracle.tip.adapter.aq.database.MessageReader.readMessage(MessageReader.java:573)
at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:183)
at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
at java.lang.Thread.run(Thread.java:595)
Message was edited by:
rverbeea1Sorry for not mentioning the product versions:
The bpel process was build and deployed with Jdeveloper Studio edition version 10.1.3.1.0.3984 on a Bpel server/Application Server with version 10.1.3.1 (NT). -
RFE: faster javac compilation using invocation instead of running javac.exe
Sun's JDK contains the Java compiler in tools.jar.
Why not use it instead of running javac.exe?
It should also simplify the code for cross platform compatibility...
Regards,
Yaniv KundaI meant that JDev would invoke the compiler from the libs of the project JDK.
But this is indeed a sort of a hack because the libs are not documented and are sun-specific (a problem with other JDKs).
Anyway, I was just reading a bit on Java 6 (Mustang) and saw that an API (per JSR-199 : http://jcp.org/en/jsr/detail?id=199) for java compilation is one of its new features!
This feature is documented in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4164450.
I guess it would be a feature for a newer major release of JDev, but nevertheless important to mention.
Regards,
Yaniv Kunda -
We have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed using the "Alert Me" feature. We have renamed the
custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and restarted IIS. Once users subscribe to the alerts using the list "alert me"
function they received the customized email as intended.
We needed to auto-subscribe users to the email alerts so what we did was use a powershell script to add users to the alert subscriptions using the script shown below:
Import-Csv D:\Temp\filename.csv | ForEach-Object{
$webUrl=$_.WebUrl
$listTitle=$_.List
$alertTitle=$_.AlertTitle
$subscribedUser=$_.SubscribedUser
$alertType=$_.AlertType
$deliveryChannel=$_.DeliveryChannel
$eventType=$_.EventType
$frequency=$_.Frequency
$oldAlertID=$_.ID
$web=Get-SPWeb $webUrl
$testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
IF ($testAlert) {
$web.Alerts.Delete([GUID]$oldAlertID)
Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
$list=$web.Lists.TryGetList($listTitle)
$user = $web.EnsureUser($subscribedUser)
$newAlert = $user.Alerts.Add()
$newAlert.Title = $alertTitle
$newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
$newAlert.List = $list
$newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
$newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
$newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
if($frequency -ne "Immediate"){
$AlertTime=$_.AlertTime
$newAlert.AlertTime=$AlertTime
$newAlert.Update()
Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
} ELSE {
Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
When we ran the script and added the users and restarted the service, all users who were auto-subscribed via this method get the email without the customizations that were done in teh custom alert template. All users who manually subscribed on their
own to the list using the "Alert Me" function would get the customized email.
Does anyone know why users who manually subscribe to the alerts get the customized email, and users who were auto-subscribed using the powershell script do not get the customized email and get the standard generic email template?Hi ,
According to your code, it create a new alert using SPUser.Alerts.Add() method. For this method, it will create a new alert based on the predefined alert template by default.
If you only assigned the custom alert template to the list, users who manually subscribe to the alerts get the customized email, but users who were auto-subscribed using the PowerShell script get the standard
generic email template.
For your issue, you can set the new alert ‘s alert template:
http://social.technet.microsoft.com/Forums/en-US/1b19c12f-fc37-48cf-8b59-6c09f095dc23/custom-alert-email-templates-issue-list-alerts-emails-not-using-customized-xml-alert-template?forum=sharepointgeneralprevious
Here is a good blog you can have a look:
http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Eric Tao
TechNet Community Support
Maybe you are looking for
-
I am currently running two email accounts on my iPhone 4s. Both accounts have email/contacts/calendar synced to the phone so I can have all contacts on the phone. I now have to close one of these accounts due to work but I would like to keep all the
-
Multiple Reports inside one Single Report
Post Author: maximus85 CA Forum: Crystal Reports Hi....I'm having this problem of having multiple reports inside one single report. Basically what i wanted to built is a Dashboard that contains 4 main subjects:i)Sales - Contains graph that can b
-
Help! Quickest way to get up and running!!
I have suffered a SMART failure after lion install as described here: https://discussions.apple.com/message/19063468#19063468 Ideally I want to be able to get my drive working again but if not reinstall my time machine back up from three days ago! No
-
Calendar won't print black directional triangles
I just received my calender back from Apple and I absolutely LOVE it. However, I had inserted photos on the calendar dates (to commemorate various birthdays/anniversaries), along with captions beside the selected photos. iphoto automatically inserted
-
I am updating MS CS6 and I am getting this for Photoshop
Photoshop Camera Raw 8.1(CS6) There was an error installing this update. Please quit and try again later. Error Code: U44M1I200 Adobe Photoshop 13.0.1.2 There was an error installing this update. Please quit and try again later. Error Code: U44M1I200