Using Java Logging with WebLogic 8.1

Hello,
I am having problems getting custom Handlers to load using the Java 1.4 Logging
API. Apparently, the custom Handlers are loaded using the System classpath, not
the applications classpath. This is not a viable option for us, does anyone know
of a workaround for this?
Thank you,
Josh

Hello Staffan,
I've just sent to you the code source for this class. By the way I didn't try changing the swing JVM.
Dom
Hi,
This looks like a bug to me. Does it matter which JVM
you use for the swing application?
To be able to find out more about the problem it
would be great if we could look at the class files
for
com.dexia.sofaxis.prestations.business.TypeElementMate
riel and all it's superclasses and interfaces. Please
contact me offline at sta_larsen(at)hotmail (yes, I
work for BEA, but I don't like spam...).
Regards,
/Staffan

Similar Messages

  • Using Java Logging with Tomcat

    Hi in a previous non Tomcat project I wrote some classes that used the java.util.logging library that comes with java 1.4 quite successfully. I am now trying to use the same classes with Tomcat 5.0 but it doesnt like it. With the logging classes you can provide a configuration class which you define with a property "java.util.logging.config.class", I put the class in my WEB_INF\classes with all the other classes.
    When I run with Tomcat i have a servlet that does the following to try and initilse the logging
    com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs();
    System.getProperties().setProperty("java.util.logging.config.class", "com.appserver.util.logging.LogProperties");
    LogManager.getLogManager().readConfiguration();
    it complains it cant find the class, when running readConfiguration(), (The 1st two lines run ok). I think the problem is to do with Tomcat classloader, with a simple Java application the classes would be expected to be on the system classpath, but on Tomcat the system classpath only contains bootstrap.jar.
    I realise I could probably get things working using Apaches log4j instead but it seems a bit silly to use that when there is a perfectly adequate logger built into the language now.
    Anyone done this ?

    OK
    Ive changed my code from
    com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs();
    System.getProperties().setProperty("java.util.logging.config.class", "com.appserver.util.logging.LogProperties");
    LogManager.getLogManager().readConfiguration();to
    com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs();
    LogManager.getLogManager().readConfiguration(com.appserver.util.logging.LogProperties.getPropertiesAsStream());Now I dont get any errors and only messages for the LEVEL is set to the value I specify in my LogProperties class are displayed. However I also specify a Formatter to use for console output but Tomcat just seems to ignore it and uses its own default formatter. Any ideas...please !

  • How to use java integrate with ondemand

    Hi All,
    As i'm new to integration, can anyone help me to use java integrate with ondemand that inserts some records in ondemand and deletes some records from ondemand in secheduled interval basis.?
    Thanks in advance..!
    regards
    sowm

    Greetings,
    hi forum...
    how to use Java WebStart with EJB ? examples ?Well, for starters these are complementing, not 'cooperating', technologies. I presume, since EJB's do not - directly, at least - communicate with a web browser, that you intend for "Java WebStart" to somehow invoke an EJB?? Java WebStart is a technology for running client-side (Java) applications from the web browser - perceptively, the application resides on the server, but technically it, like an applet, is downloaded to the client and run there. Unlike an applet, however, it is not constrained by "sandbox" restrictions and does not have to be re-downloaded each time it is invoked - though the process allows for automagically updating the client-side with new versions of the application. ;) So, with this in mind, to "use Java WebStart with EJB" means little more than deploying an EJB client application with Java WebStart as the distribution channel.
    thanks
    minduRegards,
    Tony "Vee Schade" Cook

  • Using Java UFL with BOE XI

    Post Author: Elvyn
    CA Forum: Migration to XI R2
    We are using CR4E deployed on Linux. Some of our reports use Java UFLs.We are currently migrating to BOE XI and can't find support for Java UFLs.
    1) Is there a way to use Java UFL with BOE XI (on Linux)?2) If it is not supported, is there any alternative?

    Post Author: Elvyn
    CA Forum: Migration to XI R2
    We are using CR4E deployed on Linux. Some of our reports use Java UFLs.We are currently migrating to BOE XI and can't find support for Java UFLs.
    1) Is there a way to use Java UFL with BOE XI (on Linux)?2) If it is not supported, is there any alternative?

  • Using java bean with jsp

    hello friends,
    i'm new to jsp. i want to create an html form that accepts username and a value from four radio buttons and display back the entered name and checked radio button's value using java bean.
    i use the <jsp:setProperty id="" property="*"> method. i don't know how to access the radio buttons value from the html.
    also when i use an additional field other than username the jsp page is showing error.
    Please give me the correct method to use java bean with jsp in this circumstance.
    thank you.

    thank you, but i have a problem left. the case is like this.
    i got the jsp and bean worked fine when i have a sinle input text field.
    but when i added a second text field i recieved the following error.
    javax.servlet.ServletException: basket.newbean.getUserPass()Ljava/lang/String;
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.newform.process_jsp._jspService(process_jsp.java:69)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    where userPass is the new form element. I have made the subsequent chanes in my bean program and jsp file.
    pls hlp.

  • Using JDK1.4 with Weblogic 6.1

    Does ne1 know of any documents(Installion Procedure...) available on Using JDK1.4 with Weblogic 6.1
    I need to upgrade from JDK 1.3 to 1.4 using Wlserver6.1
    Thanks,
    Lloyd
    [att1.html]

    Lloyd,
    The JDK 1.4 is not certified neither supported with WebLogic Server 6.1.
    Lloyd wrote:
    Does ne1 know of any documents(Installion Procedure...) available on
    Using JDK1.4 with Weblogic 6.1
    I need to upgrade from JDK 1.3 to 1.4 using Wlserver6.1
    Thanks,
    Lloyd
    Thank you,
    Laurent Goldsztejn
    Developer Relations Engineer
    BEA Support

  • How to use Java WebStart with EJB ?

    hi forum...
    how to use Java WebStart with EJB ? examples ?
    thanks
    mindu

    Greetings,
    hi forum...
    how to use Java WebStart with EJB ? examples ?Well, for starters these are complementing, not 'cooperating', technologies. I presume, since EJB's do not - directly, at least - communicate with a web browser, that you intend for "Java WebStart" to somehow invoke an EJB?? Java WebStart is a technology for running client-side (Java) applications from the web browser - perceptively, the application resides on the server, but technically it, like an applet, is downloaded to the client and run there. Unlike an applet, however, it is not constrained by "sandbox" restrictions and does not have to be re-downloaded each time it is invoked - though the process allows for automagically updating the client-side with new versions of the application. ;) So, with this in mind, to "use Java WebStart with EJB" means little more than deploying an EJB client application with Java WebStart as the distribution channel.
    thanks
    minduRegards,
    Tony "Vee Schade" Cook

  • Logging with Weblogic 10.3

    Hello,
    I am wondering how to manipulate the server logging with WebLogic 10.3. I get an error while deploying and I need further information for the packages concerning the named queries and for that I need to turn up the log level for this packages. Do I need to manipulate the config/logging.xml or which file?
    Thank you

    If you are deploying via the WebLogic admin console, here's the reference to configure logging level:
    Administration Console Online Help - [View and configure logs|http://edocs.bea.com/wls/docs103/ConsoleHelp/taskhelp/logging/ConfigureAndViewLogs.html]
    If deploying from command line, try including the -debug flag?
    (weblogic.Deployer Command-Line Reference - [Common Arguments|http://download.oracle.com/docs/cd/E12840_01/wls/docs103/deployment/wldeployer.html#wp1010461])

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • Using URL alias with Weblogic - How do you do it?

    Bear with me I have zero experience with Weblogic.
    We use Weblogic as a component of Hyperion Planning, meaning for Hyperion Planning weblogic is installed and acts as the java application AND webserver.
    Currently our Hyperion Planning URL is http://servername:port as per security audit we need to use an alias so that users do not have straight access to the direct URL link.
    Therefore we created on the DNS a URL alias BFS.companyname.com. Now I need to associate this alias with the Planning URL which is in weblogic.
    I have logged into the weblogic admin console and see 'Virtual Hosts', I enter in the host name BFS.companyname.com and select the target which is the Hyperion Planning workspace (http://servername:port) apply changes yet nothing occurs.
    If anyone has done a URL direction could you please post the instructions on how to do so...thanks
    JTS

    Just to share this will all. The URL alias redirection is done within Apache webserver and not the Weblogic program.
    Edit the httpd.conf file with this information below:
    1. Configure Apache to listen on port 80:
    a. Back up the configuration file, e:\Hyperion\common\httpServers\Apache\2.0.52\conf\ht tpd.conf
    b. Add "Listen 80" to the Listen section.
    c. In the Virtual Hosts section, (around line 955), uncomment the line, "NameVirtualHost *:19000"
    d. Add "NameVirtualHost *:80"
    e. Uncomment the "<VirtualHost *:19000>" code block, down to "</VirtualHost>"
    f. Edit and add the following block to Virtual Hosts
    <VirtualHost *:80>
    ServerName www.myserver.com
    DocumentRoot e:/Hyperion/common/httpServers/Apache/2.0.52/htdocs
    </VirtualHost>
    g. Restart Apache.
    2. Redirect Web Page
    a. Create a page in the virtual web directory, index.html that contains the following html code:
    <html><head>
    <meta http-equiv="Refresh" content="0; url=http://myserver:19000/workspace/index.jsp">
    </head><body>
    </body></html>
    b. Have someone in NSE alter or create a DNS entry that redirects "hyperion" to the appropriate IP address. The default page (index.html) on the default port (80) will execute the redirect in the html document above, launching the workspace login screen.
    JTS

  • How to use commons.logging in weblogic (8.1)?

    Greetings,
    I'm trying to use commons.logging framework to manage the logs of my
    application. With Weblogic I will use an implementation that works with
    weblogic.logging package but with other J2EE products I'll use another
    native log implementations or frameworks (for instance, for jboss I will
    use log4j).
    1) I created a class WeblogicLogger which implements the Log interface::
    public final class WeblogicLogger implements Log {
    I packaged this class in a jar file with a properties file,
    commons-logging.properties, which has the property setting my class
    below has the default logger:
    org.apache.commons.logging.Log=pt.ptinovacao.weblogic.logging.WeblogicLogger
    2) My sample code has the following code:
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    private static final Log log = LogFactory.getLog(
    LogTimeStartHandler.class.getName());
    something(){
    log.info(this.getClass()+" test log");
    3) I added the commons-logging jars and my jar with my custom wrapper
    weblogic logger in ${WL_HOME}/common/bin/commEnv.sh:
    WEBLOGIC_CLASSPATH=
    (...)${CLASSPATHSEP}${WL_HOME}/server/lib/weblogiclogger.jar${CLASSPATHSEP}${WL_HOME}/server/lib/commons-logging-api.jar${CLASSPATHSEP}${WL_HOME}/server/lib/commons-logging.jar
    However, my loggings still not appear in my weblogic server. Did I miss
    something?
    thanks,
    Pedro Salazar

    Did you manage to get this working?
    If yes ... what did you do?
    I am having the same problem implementing commons-logging with log4j

  • Use Java Logging mechanism

    We have a requirement to log application errors in a local log file in the form of key/value pairs (from a property object) after every transaction, append to the previous transaction and generate one log file for each day.
    Log file example,
    currentTime=xxxx
    message=xxxxx
    userId=xxxx
    etc.
    What would be the best way to do it ? Can I take advantage of the Java Logging API, like file handler , although it does not do exactly what I wanted ?

    Thanks for the reply. But the company standard does
    not allow open source package like log4j.Then the company standard is completely nuts... but they're like that aren't they... I'd still get a copy of the log4j source from the apache site, to use a working example of how to do it well... then maybe write a simplified "write behind" logging service based on it... a single format "log4j-lite"
    Have fun with it.
    Keith.

  • Using jndi.properties with weblogic 6.1

    Apologies if this is a basic question - I am new to Weblogic.
    I have successfully got a test EJB working with Weblogic 6.1 using a properties object to set up my JNDI InitialContext.
    In the weblogic examples I've downloaded it says you can also use a jndi.properties file to do this. I have set up a jndi.properties file, which is in the classpath for my class calling the EJB. But when I do my jndi .lookup("ejbname") I get the error:
    javax.naming.CommunicationException: Can't find SerialContextProvider
    The weblogic documentation at:
    http://e-docs.bea.com/wls/docs61///rmi_iiop/API_rmi_iiop.html
    refers to using jndi.properties and says to look at:
    http://edocs.bea.com/wls/docs61/jndi/jndi.html
    But at this page there is no mention of the jndi.properties method.
    I'd be grateful for any suggestions - in particular whether it is possible to use this method of configuring the JNDI setup.
    I'm running wlserver6.1 on a Windows 2000 PC, using JDK 1.3.1
    My jndi.properties file looks as follows:
    java.naming.property.names=java.naming.factory.initial,java.naming.provider.url
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://localhost:7001

    It is not WebLogic-specific. See
    http://java.sun.com/j2se/1.3/docs/api/javax/naming/InitialContext.html
    Alison Tunley <[email protected]> wrote:
    Apologies if this is a basic question - I am new to Weblogic.
    I have successfully got a test EJB working with Weblogic 6.1 using a properties object to set up my JNDI InitialContext.
    In the weblogic examples I've downloaded it says you can also use a jndi.properties file to do this. I have set up a jndi.properties file, which is in the classpath for my class calling the EJB. But when I do my jndi .lookup("ejbname") I get the error:
    javax.naming.CommunicationException: Can't find SerialContextProvider
    The weblogic documentation at:
    http://e-docs.bea.com/wls/docs61///rmi_iiop/API_rmi_iiop.html
    refers to using jndi.properties and says to look at:
    http://edocs.bea.com/wls/docs61/jndi/jndi.html
    But at this page there is no mention of the jndi.properties method.
    I'd be grateful for any suggestions - in particular whether it is possible to use this method of configuring the JNDI setup.
    I'm running wlserver6.1 on a Windows 2000 PC, using JDK 1.3.1
    My jndi.properties file looks as follows:
    java.naming.property.names=java.naming.factory.initial,java.naming.provider.url
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://localhost:7001--
    Dimitri

  • Problem while using PrepStmt.executeBach with Weblogic 6.0sp1 and

     

    - I'm getting the same error when I use WLS 6.0 SP1 & thin driver. I'm not
    getting this error when I use thin driver without WLS.
    - This is definitely a bug in WLS. As a workaround put classes.zip {that
    comes with oracle installation} before weblogic.jar in your classpath. This
    way, classloader will load the oracle supplied classes & everything will
    work smoothly
    Manav
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    Ruta wrote:
    Hi Joe
    I tried using a java standlaone program using prep stmts and oracle thin
    driver
    and it works just fine.
    So is this a bug with Weblogic? Finally connection pooling isapplication server's
    responsibility, isnt it..
    I am inlcined to conclude this coz connection pooling works fine withStatement.executeBatch()
    but not with prepStatement.executeBatch()
    How do I resolve this now.
    Thanks
    Ruta
    ...Does it not release the connectionOk. Now let me see the JDBC code example. I'll see what's up.
    Joe
    Joseph Weinstein <[email protected]> wrote:
    The first thing you should do is to reduce the problem to the simplest
    form.
    Write a tiny standalone program that just uses the thin driver
    directly,
    and repeats the code you are trying to run. This will eliminateWebLogic
    from the equation and see if it's an Oracle-only bug.
    Joe
    Ruta wrote:
    Hi,
    I am trying to do multiple inserts in a table using the
    PreparedStatement
    of JDBC2.0.
    I am using a TxDataSource of Weblogic server with a thin driver
    oracle
    pool. I
    am using the driver classes that come with the weblogic.jar.
    The problem is as follows:
    I can manage to succesfully do the executeBatch a few
    times..Interestingly
    it
    executes as many no. of times as the Initial capacity(not even maxcapacity) of
    my connection pool.
    Then it gives me the following error:
    java.sql.SQLException: java.sql.SQLException: Missing IN or OUT
    parameter
    at index::
    1
    at
    weblogic.jdbc.rmi.SerialStatement.executeBatch(SerialStatement.java:394)
    atcom.equitable.acs.common.ACSCtrlBean.saveSDECData(ACSCtrlBean.java:147)
    atcom.equitable.acs.common.ACSCtrlBeanImpl.saveSDECData(ACSCtrlBeanImpl.java:1
    10)
    atcom.equitable.acs.common.ACSCtrlBeanEOImpl.saveSDECData(ACSCtrlBeanEOImpl.ja
    va:30)
    atcom.equitable.acs.common.ACSCtrlBeanEOImpl_WLSkel.invoke(ACSCtrlBeanEOImpl_W
    LSkel.java:133)
    atweblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
    atweblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :128)
    atweblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
    atweblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
    java:118)
    atweblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
    7)
    atweblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    This Oracle error has error code 17041.. I could not find more infoon it, even
    from the Oracle site.
    I conclude that the connections are not getting relesed.
    But i ahve written
    con.close(); even
    con=null; (out of desparation :) )
    but still the connection is not released.
    I am getting the connection in the saveSDECData method
    I need to fix thsi problem ASAP..Any Help/Comments will be
    appreciated..
    Finally the most interesting part is :
    executeBatch works perfectly fine with the Statement object..
    so probably the culprit is the PreparedStatement implementation ofOracle..Can
    anybody validate this pls
    Regards
    Ruta--
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry andadvanced
    positions
    for people who want to work with Java, XML, SOAP and E-Commerceinfrastructure
    products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and SanJose
    CA.
    Send resumes to [email protected]
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advancedpositions
    for people who want to work with Java, XML, SOAP and E-Commerceinfrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San JoseCA.
    Send resumes to [email protected]

  • How to do Front End Validation for JSP Forms using Java Script with 9iJD...

    How to do Front End validation using 9iJD. Any wizard is there. We need to do the val. using Java Script. If its not available, please include that in the Production Release.

    Thanks a lot. When is the Production Release is scheduled. Please tell us whether itll be available for Free Download. Bec, we couldnt buy. Bec, if its working fine with all the options without any bug only, we can ask our company to buy 9iJD by stating the advantages. Just explain us.

Maybe you are looking for

  • Huge credit card issues   fraud?!

    Hi folks. So I recently got an ipad mini and an iphone. Innocently, I put in my credit card information and downloaded a couple apps. Later that day, someone started using my credit card, buying computer software for thousands of dollars and reloadin

  • Passing Multivalued parameter to sub report in SSRS

    Hi Team, I tried passing multi valued parameter to sub report in SSRS but the report is blank. Rgds, Shree

  • Want to change podcast artwork: not showing up in iTunes Store

    Hi. I want to change the icon/artwork for my podcast. My website (created with iWeb) = www.manleywoman.com My podcast in iTunes Store = Manleywoman SkateCast I use Garageband to create my podcast, then save to iWeb, then save to iTunes. So I changed

  • Problems with editing movies...

    So I have some movies that I'm trying to edit with Quicktime Pro. I'm running it on Windows XP. When I use the selection markers, I can select one part of the movie, but when I go to Edit>Delete, it automatically deletes everything in the movie after

  • Captivate 7 not recording clicks suddenly

    I have been using Captivate for about 2.5 years now and have never experienced this problem.  Two days ago, I didn't have an issue, but today it will not record my "clicks" when attempting to record a software simulation.  However, it will record any