How do I get the WebLogic server to use the XMLRegistry?

I'm using WebLogic 7.0.2, and I want to use the Apache TransformerFactory and DocumentBuilderFactory
instead of the default weblogic.* classes. I've found the documentation, where
I define an XML Registry as follows (snippet from my config.xml)...
<Server ListenAddress="####" ListenPort="####" Name="myserver"
NativeIOEnabled="true" ServerVersion="7.0.2.0"
StdoutEnabled="true" StdoutSeverityLevel="8"
StuckThreadMaxTime="14400"
XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="CT XML Registry">
<COM Name="myserver"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="myserver"/>
<JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="myserver"/>
<JTARecoveryService Name="myserver"/>
<KernelDebug Name="myserver"/>
<Log FileName="myserver/myserver.log" Name="myserver"/>
<SSL Enabled="true" HostnameVerificationIgnored="true"
ListenPort="###" Name="myserver"
ServerCertificateFileName="democert.pem"
ServerPrivateKeyAlias="demokey" ServerPrivateKeyPassPhrase="{3DES}gAuVwsR68oAlLdIfO1PAtw=="/>
<ServerDebug Name="myserver"/>
<ServerStart Name="myserver"/>
<WebServer DefaultWebApp="DefaultWebApp"
LogFileName="myserver/access.log" LoggingEnabled="true" Name="myserver"/>
</Server>
<XMLEntityCache Name="XMLCacheMBean_myserver"/>
<XMLRegistry
DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
Name="CT XML Registry"
SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
WhenToCache="cache-on-reference"/>
I've played aorund with xercesImpl being in and out of classpaths, etc. But no
matter what I do, calls to TransformerFactory.newInstance creates an instance
of weblogic.xml.jaxp.RegistrySAXTransformerFactory and DocumentBuilderFactory.newInstance()
creates an instance of weblogic.xml.jaxp.RegistryDocumentBuilderFactory.
I don't want to use these classes, and supposedly I can control which classes
I will use, but it's not working for me. Has anyone been able to get this working?
Is there anything else that I'm missing?
Thanks,
Ed

I was unable to use the XMLRegistry touse the Xerces2 libraries with WebLogic 7.
I did find in WebLogic 7 doco that the latest release of Xerces that it would
internally support was 1.4.4 (http://e-docs.bea.com/wls/docs70/xml/xml_admin.html#1066271).
If I wanted to use this version of Xerces, I would need to use WebLogic 8. This
is not an option for me at this stage.
So, I used this approach. When starting the WebLogic server, you can assign ClassPath
entries to an environment variable called PRE_CLASSPATH. This will prepend the
class path used by the App Container's JVM with the values in the variable. I
added the xercesImpl and xalan jars to this entry.
Because the WebLogic class loaders will always defer to the parent class loader,
it will check this class path first. So now I can directly instantiate the apach
implementation classes (typecasting them back to their API interface definitions)
and use them within the container.
"Ed Hillmann" <[email protected]> wrote:
>
I'm using WebLogic 7.0.2, and I want to use the Apache TransformerFactory
and DocumentBuilderFactory
instead of the default weblogic.* classes. I've found the documentation,
where
I define an XML Registry as follows (snippet from my config.xml)...
<Server ListenAddress="####" ListenPort="####" Name="myserver"
NativeIOEnabled="true" ServerVersion="7.0.2.0"
StdoutEnabled="true" StdoutSeverityLevel="8"
StuckThreadMaxTime="14400"
XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="CT XML Registry">
<COM Name="myserver"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="myserver"/>
<JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="myserver"/>
<JTARecoveryService Name="myserver"/>
<KernelDebug Name="myserver"/>
<Log FileName="myserver/myserver.log" Name="myserver"/>
<SSL Enabled="true" HostnameVerificationIgnored="true"
ListenPort="###" Name="myserver"
ServerCertificateFileName="democert.pem"
ServerPrivateKeyAlias="demokey" ServerPrivateKeyPassPhrase="{3DES}gAuVwsR68oAlLdIfO1PAtw=="/>
<ServerDebug Name="myserver"/>
<ServerStart Name="myserver"/>
<WebServer DefaultWebApp="DefaultWebApp"
LogFileName="myserver/access.log" LoggingEnabled="true" Name="myserver"/>
</Server>
<XMLEntityCache Name="XMLCacheMBean_myserver"/>
<XMLRegistry
DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
Name="CT XML Registry"
SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
WhenToCache="cache-on-reference"/>
I've played aorund with xercesImpl being in and out of classpaths, etc.
But no
matter what I do, calls to TransformerFactory.newInstance creates an
instance
of weblogic.xml.jaxp.RegistrySAXTransformerFactory and DocumentBuilderFactory.newInstance()
creates an instance of weblogic.xml.jaxp.RegistryDocumentBuilderFactory.
I don't want to use these classes, and supposedly I can control which
classes
I will use, but it's not working for me. Has anyone been able to get
this working?
Is there anything else that I'm missing?
Thanks,
Ed

Similar Messages

  • I have changed my Apple ID on my iPad, but my iPhone keeps popping up with the old ID.....how do I get all my devices to use the same ID?

    How can I get all my devices to use the same Apple ID?

    Different services on your iOS device (iMessage, Facetime, iCloud, iTunes and App Store) can be signed into with an Apple ID of your choice. Make sure you verify the settings for each device and that you are signed in to each service with the correct Apple ID.
    I'll do an example for iMessage:
    1) Go to settings on your iOS device
    2) Select "Messages"
    3) Select "Send & Receive"
    4) At the very top you will see "Apple ID", by selecting your Apple ID, you will now have the option to sign out of messages with the current Apple ID, and sign in with the new one.
    The steps for changing your Apple ID for other services will be very similar.
    tHIS SHOULD BE VERY HELPFUL TOO YOU.

  • Only Restarting the Weblogic Server will invoke the Stored Procedure???

    Hi,
    I have written a stored procedure which is called using hibernate
    which is working fine when ever i restart the server(Weblogic). That is for each time, when i need to invoke the stored procedure i need to restart the server to invoke it then only the stored procedure gets invoked. Which is very expensive indeed. How to overcome this, is there any way to set in the weblogic server properties, so that i can dont have to restart the server every time when i need to invoke the Stored
    procedure. Any way please do look up the code as well in which i have called the stored procedure in Hibernate.
    public int callPopulateCertDataSP(String barCode,String containerType,String conditionValue) throws SystemException {
         log.debug("Inside the callStoredProcedure Method!!!");
         int checkValue=0;
         Session hibSession = HibernateUtils.getSession();
         Connection con=hibSession.connection();
         CallableStatement cstatement=null;
         if(con!=null){
    try {
         log.debug("Inside con object not null!!!");
              cstatement=con.prepareCall("{call p_populate_cert_data(?,?,?,?)}");
              cstatement.setString(1,barCode);
              cstatement.setString(2,containerType);
              cstatement.setString(3,conditionValue);
              cstatement.registerOutParameter(4,Types.INTEGER);
              cstatement.execute();
              checkValue=cstatement.getInt(4);
              cstatement.close();
              con.commit();
              con.close();
         }catch(SQLException e){
              log.debug("The error Message is what????"+e.getMessage());
         HibernateUtils.closeSession();
         return checkValue;          
    Expecting ur replies....
    Thanks,
    JavaCrazyLover

    No Replies as Yet!!!

  • How do I get iPlanet 6.0 to use the Java Server VM?

    I've tried having java.option=-server in jvm12.conf, but the logs still say that the Client VM is being run.
    Apart from actually modifying the java executable to put -server in the command line, how else can I achieve this?
    Thanks,
    John.

    You also need to edit the start-jvm settings as explained here:
    http://docs.sun.com/source/817-6094-10/rn60sp8.html#wp34277
    Thanks
    Manish

  • How do i get an applet to work using the embedded server?

    every time i use teh builder to make an html file to run the applet i get...
    <APPLET CODE="applet.basic2" ARCHIVE="adfshare.jar,bc4jmt.jar,collections.jar, ...etc
    HEIGHT="200" WIDTH="200" ALIGN="bottom">
    This browser does not support Applets.</APPLET>
    clearly, the browser DOES support applets because i can run them off the net.
    is there anything i am doing wrong?
    thanks for any advice.
    Owen Brandon

    In the Java Control panel check the "<APPLET> tag support" in the Advanced tab.

  • How can i get mynew mac mini to use the drive in my old mac pro

    When I first got my new mac mini it dosen't have an internal drive.   So I hooked it up on the network and fire wire.  I could use the superdrive in the mac pro just fine  both itunes and the dvd player worked as they would with a internal drive.   But now a couple of upgrade down loads later not so much.  yes I can connect with screen share and can get the dvd player to play dvd's but still can't get itunes to use the superdrive.  Iht exect disk icon in the apple menue bar use to open and close the super drive but now it reads "no disk" How can I get my mac mini to automaticly use the superdrive when i turn on the mac pro. 
    I've done all the easy things changing the order of start up and share settings and i sware it did work ok when i first hooked it up.

    http://www.totalapps.net/mac/remote-disc-sharing-when-the-superdrive-doesn’t-wor k-2/
    Mind you, booting off the external optical drive of another computer may not be practical because of the different operating system limitations of the computers.   I would just purchase an external optical drive from http://www.macsales.com/ if you find it doesn't work.

  • Oracle Weblogic Server Installation using the user "oracle"

    Hi,
    I installed two instances of weblogic server for FMW 11g on linux x86-64. One was with the user oracle and other was with the user orawls, both belonging to the group oinstall. I had installed Admin Server and created managed servers soa_server1 and bam_server1. I have issues in starting up the instance with oracle user and the instance with the orawls user starts fine. I have a separate thread going on for that issue.
    I just wanted to know if there were any existing known issues when installing the WLS as oracle user ?
    Cheers,
    - AR

    I have no issues with the oracle user. I do it all the time.
    Which thread are you referring to?
    --olaf                                                                                                                                                                                                                       

  • I imported a photo from my email to my iphoto but now my HP printer is printing my documents from the photo cartridge.  How do I get my printer to print using the regular black cartrigde.

    I imported a photo from my email to my iphoto. I  am on a Mac OSX version 10.6.8.  But now my HP printer 7510 is printing my documents with the photo cartridge rather than the regular black cartridge.  How do I correct this.

    Seems like an odd question for an iPhoto forum and more one for an HP forum.

  • Does the Weblogic JMS implementation use the Time-To-Live values?

              I am trying to send a message to a Queue with a time-to-live. The only way that
              I can get this to work is by going into the console, and setting a default value
              on either the Queue or the connection factory. But this is not the behavior I
              want. I would like to do this programmatically instead so it can be property
              driven and a Sys Admin can change it easily.
              I downloaded the JMS spec and saw that you are supposed to set the time to live
              when calling the MessageProducer's send message. I did this, but it doesn't work.
              Is anybody else having this problem? Does Weblogic's JMS implementation just
              ignore this value? Or do I have my Queues and other JMS components set up incorrectly?
              P.S. All of my time-to-live overrides are set to -1 in the console, so my time
              to live set in the program should be respected.
              

              Tom,
              I was able to track it down to a programming error. Thanks for your help.
              Dan
              Tom Barnes <[email protected]> wrote:
              >Hi Daniel,
              >
              >Yes, client-specified message expiration works. I suspect
              >a programming error. First take a look and make sure that you are
              >not making the common mistake of trying to set the value
              >directly on the message, rather than on the producer - as per
              >the JMS spec and JMS javadoc, setting this value directly
              >on message will have no effect as the producer's value
              >will always override it. If this isn't the case,
              >please post your code and I'll take a look.
              >
              >FYI Note that all management fields can be programmatically
              >set as well. Since you want programmatic administrative
              >control, this means that you have the option of
              >programmatically configuring the destination's time-to-live
              >override field if you so wish.
              >
              >Tom
              >
              >Daniel Livesay wrote:
              >
              >> I am trying to send a message to a Queue with a time-to-live. The
              >only way that
              >> I can get this to work is by going into the console, and setting a
              >default value
              >> on either the Queue or the connection factory. But this is not the
              >behavior I
              >> want. I would like to do this programmatically instead so it can be
              >property
              >> driven and a Sys Admin can change it easily.
              >>
              >> I downloaded the JMS spec and saw that you are supposed to set the
              >time to live
              >> when calling the MessageProducer's send message. I did this, but it
              >doesn't work.
              >> Is anybody else having this problem? Does Weblogic's JMS implementation
              >just
              >> ignore this value? Or do I have my Queues and other JMS components
              >set up incorrectly?
              >>
              >> P.S. All of my time-to-live overrides are set to -1 in the console,
              >so my time
              >> to live set in the program should be respected.
              >
              

  • How Do I get a portlets actual path using the PRC?

    Greetings,
    I have a .NET application and I want to use a config file(text)to set some variables in my load_page method. I plan on putting the config file in a directory relative to where the portlet lives, but I can not seem to get the string of the actual portlet host. This seems easy enough but I can't figure it out.
    I am using G6.
    Thanks In advance.
    Rich
    P.S. Please don't direct me to tags!

    .NET provides about a bajillion ways of doing this - try...
    (As Chris noted, you can try mappath)
    (or) Request.ApplicationPath
    (or) Request.PhysicalPath
    Keep in mind that if you start playing around with config files I would strongly suggest looking at web.config. It's made for this and also supports the idea of "inherited" properties such that a web.config at a higher level in the IIS directory system can set values you intend to share across all apps (EX: database connection information or whatever) - BUT - the nice thing is you can override those values at a lower level by simply placing the value in a web.config within your apps virtual directory (or you could do any number of other things with an app config).
    "How to: View Inherited and Local Configuration Settings Programmatically"
    http://msdn2.microsoft.com/en-us/library/ms228059.aspx
    "ASP.NET Configuration File Hierarchy and Inheritance"
    http://msdn2.microsoft.com/en-us/library/ms178685.aspx
    No tag love?
    Thanks,
    Eric

  • Unable to get a connection to the WebLogic server

     

    After reinstalling WLS and SP it still didn't work, however, after a 3rd
    reinstall in
    the DEFAULT directory of c:\weblogic, it finally worked! It would NOT work
    from c:\tools\weblogic. Who knows, maybe i didn't update a magic variable
    somewhere.
    -b
    "Bob Banks" <[email protected]> wrote in message
    news:397e0db2$[email protected]..
    Pablo, how did you fix your problem? Same thing happening here on Win2000,
    WLS5.1 SP4.
    Thx,
    -Bob
    "Pablo Corinkha" <[email protected]> wrote in message
    news:[email protected]..
    Trying to use the statelessSession EJB example. When attempting to run
    the client, I get the following message:
    Beginning statelessSession.Client...
    We were unable to get a connection to the WebLogic server at
    t3://localhost:7001
    Please make sure that the server is running.
    The WebLogic server is definitely running, though. I am able to access
    it using port 7001 from a browser. What could be wrong?

  • StatelessSession Example: We were unable to get a connection to the WebLogic server at t3://localhost:7001

    I have seen other related posts on this site but really no answers, the users seem to be left hanging.
    Anyway, I am trying to run the statelessSession example, with the WebLogic server running and listening
    on port 7001 on the current machine (i.e. localhost).
    Here is what I am seeing:
    c:\weblogic\myserver\clientclasses>java examples.ejb.basic.statelessSession.Client
    Beginning statelessSession.Client...
    We were unable to get a connection to the WebLogic server at t3://localhost:7001
    Please make sure that the server is running.
    System Configuration:
    Win2000, WebLogic 5.1, WL Sp2, Java 1.2.2, weblogic home==> c:\weblogic
    I have attached the weblogic.log.
    Regards,
    John

    Hello John,
    When I first install "weblogic", I am successfully able to run the examples, but after some time which I completely forget how I make them run, I install it again and encounter the same problem as you.
    After spending nearly a whole day on restarting computer, viewing ports etc. :) :(, I remember that I make weblogic run from the command line. First, in a console run setenv and startWebLogic tools which are located under weblogic directory and in an another console run setenv again(for possible errors, I want to be sure that it is correct again) and run your client as explained in the tutorials html pages.
    As seen, in computer science, simple things, not hard things, always cause you to lose time :)))
    Best regards
    Banu
    "John Pda" <[email protected]> wrote:
    >
    I have seen other related posts on this site but really no answers, the users seem to be left hanging.
    Anyway, I am trying to run the statelessSession example, with the WebLogic server running and listening
    on port 7001 on the current machine (i.e. localhost).
    Here is what I am seeing:
    c:\weblogic\myserver\clientclasses>java examples.ejb.basic.statelessSession.Client
    Beginning statelessSession.Client...
    We were unable to get a connection to the WebLogic server at t3://localhost:7001
    Please make sure that the server is running.
    System Configuration:
    Win2000, WebLogic 5.1, WL Sp2, Java 1.2.2, weblogic home==> c:\weblogic
    I have attached the weblogic.log.
    Regards,
    John

  • I add my comcast email to the mail on a iMac running Maverick. It downloads all my emails from there. How do i get my email to delete of the the server

    I add my comcast email to the mail on a iMac running Maverick. It downloads all my emails from there. How do i get my email to delete of the the server

    Go to Mail Preferences>Accounts, click the '+' button below the list of accounts and insert the settings, username and password as instructed. Some account types can be set up automatically as soon as Mail knows the emails address (because the server settings are built in), in other cases you will have to get them from your ISP.

  • How do shutdown the weblogic server from the command line prompt using web logic 8.1

    I%u2019m currently using weblogic 6.1, but I will upgrade to weblogic 8.1. In weblogic 6.1, the following statements will shutdown the weblogic instance from the command line:
    java weblogic.Admin -url t3://hostname:port -username system -password abc SHUTDOWN
    How do I shutdown the weblogic server from the command line prompt using web logic 8.1.
    Any help will be greatly appreciated.
    Maria

    Maria <[email protected]> wrote:
    How do I shutdown the weblogic server from the
    command line prompt using weblogic 8.1?Greetings Maria! Use this document, located here:
    http://edocs.bea.com/wls/docs81/admin_ref/cli.html#1131733
    Hope this helps...
    Brian J. Mitchell
    Systems Administrator, TRX
    email: [email protected]
    office: +1 404 327 7238
    mobile: +1 678 283 6530

  • How to Configure the Weblogic Server 6.0 Beta version with Solaris 8

    Hello,
    I have problem in starting the weblogic server 6.0 beta version.
    It is occupying hell of space and running very slow. When I try
    to deploy the bean it is throwing exception like timeout.
    Plese do suggest me what to do. and how to configure properly.
    Thank you,

    That typically happens when you have your database connections configured
    incorrectly. WebLogic is timing out on accessing the database.
    Michael Girdley
    BEA Systems Inc
    "Laxmikanth" <[email protected]> wrote in message
    news:3a35523c$[email protected]..
    >
    Hello,
    I have problem in starting the weblogic server 6.0 beta version.
    It is occupying hell of space and running very slow. When I try
    to deploy the bean it is throwing exception like timeout.
    Plese do suggest me what to do. and how to configure properly.
    Thank you,

Maybe you are looking for

  • How can i connect my apple tv 2 to an rca entrance with yellow red and whit

    i need to connect my apple tv to a yellow red and white entrance can anybody help me?

  • 9iAS Release 2 Problem with IE

    I have been warned that there is a problem with the IE browser against 9iAS release 2, and that there may be an IE patch required. Has anyone encountered this problem? Any information would be much appreciated! Thanks, Jane

  • Problem deploying my jsp pages to the BPEL Server

    Hi, I want to invoke a bpel process using a java file that is executed by a jsp page, so I deployed the jsp page and the java file to the bpel server where my bpel processes are, but i get the next error when i execute the jsp page. I use struts to d

  • Using Fields in FI-GL Extractor in FI-AP Extractor

    Hi Guys, I have a new requirement for FI-AP and I was missing three fields(User Name, Session Name and Document Header Text) in the extractor.  I already have these fields in the FI-GL extractor and all the way to to Cube.  Would this pose any proble

  • Article Corruption - Kindle Fire

    I have had numerous issues with a folio for the Kindle Fire and have finally narrowed down the problem to this: The first 15 articles imported into the folio work fine but the 16th article, and it does not matter which article is the 16th imported on