WLS 7.0 JTA Oracle example problem

Hi,
I am trying to get the Weblogic 7.0 JTA, Oracle example working.
This example uses two deployed EJB's and different data sources to
transfer money from one to the other.
The example specifies that one of the database pools should be using
an OCI driver. Unfortunatley I don't have these drivers, and really
only want to use the Oracle JDBC thin drivers. The drive I am using is
oracle.jdbc.xa.client.OracleXADataSource
I have set up two database connection pools, both using XA Java thin
drivers.
Every time I run the example is throws an XA error: XAER_PROTO. I
think this is something to do with the XA transaction not being setup.
Have you been able to get the example to work???
Is there some technique in setting up Oracle XA database pools, and
datasources that I am missing?
I am using Oracle 8.1.7.
Thanks for your help.
Regards.
Andy
Here is the stack trace when I try and run the example.
TX: [EJB examples.jta.oracle.SavingAccountBean.findByPrimaryKey(java.lang.String)],
setEntityContex
called
TX: [EJB examples.jta.oracle.SavingAccountBean.findByPrimaryKey(java.lang.String)],
ejbFindByPrimar
Key (ID: 1)
TX: [EJB examples.jta.oracle.SavingAccountBean.findByPrimaryKey(java.lang.String)],
ejbFindByPrimar
Key (ID: 1) found
TX: [EJB examples.jta.oracle.CheckingAccountBean.findByPrimaryKey(java.lang.String)],
setEntityCont
xt called
TX: [EJB examples.jta.oracle.CheckingAccountBean.findByPrimaryKey(java.lang.String)],
ejbFindByPrim
ryKey (ID: 2)
TX: [EJB examples.jta.oracle.CheckingAccountBean.findByPrimaryKey(java.lang.String)],
SQLException:
java.sql.SQLException: XA error: XAER_PROTO : Routine was invoked in
an inproper context start() f
iled on resource 'oracleXAPool': XAER_PROTO : Routine was invoked in
an inproper context
javax.transaction.xa.XAException
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:146)
at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
at weblogic.jdbc.jta.DataSource.start(DataSource.java:569)
at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1165)
at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:1108)
at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourceInfo.java:287)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl
java:391)
at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1146)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1101)
at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:145)
at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java:211)
at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:139)
at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:92)
at examples.jta.oracle.CheckingAccountBean.ejbFindByPrimaryKey(CheckingAccountBean.java:277
at examples.jta.oracle.CheckingAccountBean_qbus5p_Impl.ejbFindByPrimaryKey(CheckingAccountB
an_qbus5p_Impl.java:197)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.BeanManagedPersistenceManager.findByPrimaryKey(BeanManagedPersist
nceManager.java:35)
at weblogic.ejb20.manager.BaseEntityManager.findByPrimaryKey(BaseEntityManager.java:510)
at weblogic.ejb20.manager.BaseEntityManager.remoteFindByPrimaryKey(BaseEntityManager.java:4
4)
at weblogic.ejb20.internal.EntityEJBHome.findByPrimaryKey(EntityEJBHome.java:369)
at examples.jta.oracle.CheckingAccountBean_qbus5p_HomeImpl.findByPrimaryKey(CheckingAccount
ean_qbus5p_HomeImpl.java:100)
at examples.jta.oracle.CheckingAccountBean_qbus5p_HomeImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:785)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)

Thanks it worked. Somehow I missed in documentation this x.509 setting.
I've also had a problem with setting "Client Certificate Requested But Not Enforced"
in WLS 7.0.0 but it seems to be working fine in SP1.
Thanks again
Greg
"kirann" <[email protected]> wrote:
hi,
I believe you need to turn on x.509 Identity Assertion in the server
console..
Please check the documention.
thanks
kiran
"Greg" <[email protected]> wrote in message
news:3e243a25$[email protected]..
Hi!
I'm trying to set up my web application to use client-cert
authentication. I've set in web.xml login config to
<auth-method>CLIENT-CERT</auth-method>. When I'm accessing my
application I'm always getting 401 Unauthorized. If I set
login to BASIC, browser pops up login dialog and everything works
fine.
I've done following:
- created and installed in WLS trusted CA certificate
- created and installed client certificate signed by that CA in
IE 5.5
- configured WLS to use ssl and set "Client Certificate Enforced"
- managed to connect to document root or console application
using https://localhost:7002/console and verified that accually client
certificate
is used (not able to connect without one)
Now I'm really stuck and have no ideas.
Please help. Thanks in advance.
Greg

Similar Messages

  • ConnectionPool problems with WLS 7.0 and Oracle 9.2

    Hi,
    We are using WLS 7.0 SP4, and Oracle 9 and the Oracle thin driver type 4. In our
    application on the productive system (and only there) we constantly encounter
    a whole set of SQLExceptions which have all in common that the Connection from
    the pool is not valid any more when the application tries to use it.
    Typical, recurring error messages are:
    - Exhausted ResultSet
    - Connection has already been closed
    - Closed Statement
    - Transaction is no longer active - status committing
    - NullPointerException at
    weblogic.jdbc.pool.Connection.prepareStatement()
    There are no special Statements which create these errors. They are spread at
    random across practically every query the application creates, and the same queries
    sometimes succeed and sometimes fail.
    I double and triple checked that all Connections, Statements and ResultSets are
    closed immediately after use. As an example, I attached a code snippet and a resulting
    StackTrace which.
    The problem also seems to occur only with an (unknown) minimum of concurrent usern,
    since in the approval tests on an almost identical test system these errors never
    occurred.
    I also followed the advice from Oracle and installed the latest Oracle JDBC driver
    (Oracle 10g) - to no avail.
    What else can I do?
    Another question: Is it correct that my Oracle JDBC driver is in the application
    classpath (via a reference in the Manifest file of the application jar), not in
    the system classpath? There has never been a problem with that, but in a Newsgroup
    answer from Nov 10, 2003 (subject: "ResultSet closes prematurely"), Joe Weinstein
    suggested to "get it listed at the
    front of the -classpath argument that the startWebLogic script creates for the
    java line that starts the server".
    I hesitate to do so, since the driver is in a standard WebApp- directory, WEB-INF/lib.
    Is it possible and safe to add a jar located there to the system classpath? If
    it is possible, why is it necessary?
    Best regards,
    Andreas Zehrt
    [CodeSnippetsAndStackTraceForConnectionPoolProblem.txt]

    Andreas Zehrt wrote:
    Hi Joe,
    Your hint that there is a threading problem was right:
    On further investigation of the code I found out that the class that passes the
    Connection to the DAO not only stores it as a member at some point (which is not
    a good idea anyway) but is also a singleton - then, of course, it's no surprise
    that the Connection gets invalid in a incalculable way when concurrent threads
    share it.
    The singleton instantiation was not so obvious because the way of instantiation
    is controlled by a configuration parameter that can be overridden at different
    levels.
    I changed it and the productive logfiles indicate that the SQLExceptions related
    to that class have disappeared.I am happy to have helped.
    So, thanks a lot for the advice.
    But I am still wondering why this code has worked for so long a time with WLS
    5.1 and Oracle 8 (the system has been productive for over 2 years). Even in the
    approval tests with WLS 7.0 and Oracle 9, we did not run into problems, although
    it was multi-user environment.Mo idea.
    I still believe that there is a difference between WLS 5.1 and 7.0 in the way
    it treats pooled Oracle JDBC Connections. I wished both Oracle and Bea could be
    a little more explicit about those changes and possible version incompatabilities
    beyond the general advice "use the latest thin driver".Though I can think of no change to our pooling which would have had any material
    effect in this case, I will certainly do what I can to see that our documentation
    is explicit about changes.
    Joe
    Best regards, Andreas
    Joe Weinstein <[email protected]> wrote:
    Hi Andreas.
    Andreas Zehrt wrote:
    Hi,
    We are using WLS 7.0 SP4, and Oracle 9 and the Oracle thin driver type4. In our
    application on the productive system (and only there) we constantlyencounter
    a whole set of SQLExceptions which have all in common that the Connectionfrom
    the pool is not valid any more when the application tries to use it.
    Typical, recurring error messages are:
    - Exhausted ResultSetThat is typically if the statement that created it is either re-executed
    or closed.
    - Connection has already been closedAs described. If you give a stacktrace, we could make a debug patch which
    would show
    where it was originally closed.
    - Closed Statementsame as above.
    - Transaction is no longer active - status committingThat implies your code is obtaining a connection from a transactional
    datasource,
    and then later trying to use it after the transaction which it was associated
    with,
    is finished.
    - NullPointerException at
    weblogic.jdbc.pool.Connection.prepareStatement()Maybe any of the above.
    There are no special Statements which create these errors. They arespread at
    random across practically every query the application creates, andthe same queries
    sometimes succeed and sometimes fail.
    I double and triple checked that all Connections, Statements and ResultSetsare
    closed immediately after use. As an example, I attached a code snippetand a resulting
    StackTrace which.
    The problem also seems to occur only with an (unknown) minimum of concurrentusern,
    since in the approval tests on an almost identical test system theseerrors never
    occurred.
    I also followed the advice from Oracle and installed the latest OracleJDBC driver
    (Oracle 10g) - to no avail.
    What else can I do?
    Another question: Is it correct that my Oracle JDBC driver is in theapplication
    classpath (via a reference in the Manifest file of the applicationjar), not in
    the system classpath? There has never been a problem with that, butin a Newsgroup
    answer from Nov 10, 2003 (subject: "ResultSet closes prematurely"),Joe Weinstein
    suggested to "get it listed at the
    front of the -classpath argument that the startWebLogic script createsfor the
    java line that starts the server".
    I hesitate to do so, since the driver is in a standard WebApp- directory,WEB-INF/lib.
    Is it possible and safe to add a jar located there to the system classpath?If
    it is possible, why is it necessary?I was only concerned to ensure we know which driver we are working with.
    We also ship
    an oracle thin driver, which becomes obsolete soon...
    I am concerned that your code creates pool connections to be used later.
    The problems
    can arise if more than one thread ever gets the same connection, or if
    the connection
    is used in the same thread, spanning transactions. It does also seem
    that there may
    be a threading issue, because if two threads each call the code to create
    a connection,
    and two connections are made, but one over-writes the other, the two
    threads can
    end up using the same connection, and closing it. The over-written one
    never gets closed,
    resulting in that leak message you got...
    Joe
    The Connection parameter is opened by a business component class, ComaServiceProviderClassicImpl.It is propagated through
    several classes in the business layer, but not used, until the DAOtakes it to make the query.
    So, the Connection is closed where it was opened, not in the DAO class.
    public class ConcernDAOImpl extends BaseDAO {
         public Collection getConcernsForIncidents(Connection conn, Collectionincidents)
    throws DataAccessException, ConstraintException, ComaParseException{>
    sqlMessage.append(")");
    String sqlStmt = sqlMessage.toString();
    PreparedStatement pstmt = null;
    ResultSet rs = null;
    try {
    pstmt = conn.prepareStatement(sqlStmt);
    rs = pstmt.executeQuery();
    while (rs != null && rs.next()) {
    final Concern concern =
    new Concern(DAOUtil.getComaOID(rs, ComaDBNames.KDANR));
    concern.setIncidentOID(DAOUtil.getComaOID(rs, ComaDBNames.KDAVGENR));
    return concerns;
    } catch (SQLException sqle) {
    // Wrapps real SQL exception
    String[] message = new String[]{sqle.getMessage(), sqlStmt};
    throw new DataAccessException(ExpCode.S_ORACLE_SQL, message,
    sqle);
    } finally {
    closeAll(rs, pstmt);
    _logger.exitDebug(method);
    Here, the Connection is acquired and finally closed
    public class ComaServiceProviderClassicImpl {
         public void updateComplaint(
    final Request updateRequest,
    final ResponseSingleElement response,
    final Principal principal)
    throws SystemException {
    try {
    logger.info("updateComplaint", "store incident");
    // store the incident in the database
    incidentManager.storeIncident(getConnection(), updateIncident);
    // reload the incident from Cache and / or the databaseto get the ContactReferences.
    Incident returnIncident = incidentManager.loadIncident(//IncidentManager passes the Connection to the DAO
    getConnection(), updateIncident.getOID());
    } catch (RemoteException rex) {
    // remote exceptions
    rollbackIfNecessary();
    CoreUtils.unwrapRemoteException(rex, logger);
    } catch (SystemException e) {
    // all other exceptions --> rollback if necessary and rethrow
    rollbackIfNecessary();
    throw e;
    } finally {
    removeConnection();
    logger.exitDebug("updateComplaint");
    This is the resulting StackTrace:
    sql exception: [Closed Statement: next] - sql statement: [select *
         at de.deutschepost.ubbrief.coma.persistence.dao.ConcernDAOImpl.getConcernsForIncidents(ConcernDAOImpl.java:363)
         at de.deutschepost.ubbrief.coma.persistence.dao.CachingConcernDAOImpl.getConcernsForIncidents(CachingConcernDAOImpl.java:129)
         at de.deutschepost.ubbrief.coma.persistence.incidentmanager.IncidentManagerImpl.loadConcernStructuresIntoIncidents(IncidentManagerImpl.java:1067)
         at de.deutschepost.ubbrief.coma.persistence.incidentmanager.IncidentManagerImpl.loadStructureForIncident(IncidentManagerImpl.java:320)
         at de.deutschepost.ubbrief.coma.persistence.incidentmanager.IncidentManagerImpl.loadIncidents(IncidentManagerImpl.java:264)
         at de.deutschepost.ubbrief.coma.persistence.taskmanager.TaskManagerImpl.selectTasksForUser(TaskManagerImpl.java:299)
         at de.deutschepost.ubbrief.coma.service.z2.ComaServiceProviderZ2Impl.getTaskList(ComaServiceProviderZ2Impl.java:113)
         at de.deutschepost.ubbrief.coma.service.z2.ComaServiceProviderZ2Bean_1dhrj7_EOImpl.getTaskList(ComaServiceProviderZ2Bean_1dhrj7_EOImpl.java:154)
         at de.deutschepost.ubbrief.coma.sbba.z2.CMPGetTaskList.runServiceMethod(CMPGetTaskList.java:64)
         at de.deutschepost.ubbrief.coma.sbbx.sp.BasicMethodProvider.execute(BasicMethodProvider.java:145)
         at de.deutschepost.ubbrief.coma.sbba.z2.CMPGetTaskList_9b9mv5_EOImpl.execute(CMPGetTaskList_9b9mv5_EOImpl.java:46)
         at de.deutschepost.ubbrief.coma.sbba.z2.CMPGetTaskList_9b9mv5_EOImpl_WLSkel.invoke(UnknownSource)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
         at de.deutschepost.ubbrief.coma.sbba.z2.CMPGetTaskList_9b9mv5_EOImpl_WLStub.execute(UnknownSource)
         at de.deutschepost.ubbrief.backbone.jazz.impl.core.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:115)
         at de.deutschepost.ubbrief.backbone.common.impl.core.rpc.server.ServerKernelImpl.handleTransportMessage(ServerKernelImpl.java:270)
         at de.deutschepost.ubbrief.backbone.common.impl.core.messaging.MessageTransport.handleMessage(MessageTransport.java:454)
         at de.deutschepost.ubbrief.backbone.common.impl.core.KernelFacade.handleMessage(KernelFacade.java:209)
         at de.deutschepost.ubbrief.backbone.jazz.impl.backbone.BackboneBean.messageArrived(BackboneBean.java:637)
         at de.deutschepost.ubbrief.backbone.jazz.impl.backbone.BackboneBean_ina9d7_ELOImpl.messageArrived(BackboneBean_ina9d7_ELOImpl.java:105)
         at de.deutschepost.ubbrief.backbone.jazz.impl.transport.receive.LocalQueueReceiveBean.deliverMessage(LocalQueueReceiveBean.java:43)
         at de.deutschepost.ubbrief.backbone.jazz.impl.transport.receive.AbstractMessageReceiveBean.onMessage(AbstractMessageReceiveBean.java:127)
         at weblogic.ejb20.internal.MDListener.execute(MDListener.java:377)
         at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:311)
         at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:286)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2351)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:2267)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    ####<May 26, 2004 12:18:43 PM CEST> <Warning> <JDBC> <S0048016> <REMA20Z><Finalizer> <kernel identity> <> <001074> <A JDBC pool connection leak
    was detected. A Connection leak occurs when a connection obtained from
    the pool was not closed explicitly by calling close() and then was disposed
    by the garbage collector and returned to the connection pool. The following
    stack trace at create shows where the leaked connection was created.
    Stack trace at connection create:
         at weblogic.jdbc.pool.Connection.<init>(Connection.java:66)
         at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:294)
         at weblogic.jdbc.pool.Driver.connect(Driver.java:210)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:373)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:129)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:287)
         at de.deutschepost.ubbrief.coma.core.ComaComponentImpl.getConnectionFromPool(ComaComponentImpl.java:163)
         at de.deutschepost.ubbrief.coma.core.ComaComponentImpl.getConnectionInternal(ComaComponentImpl.java:135)
         at de.deutschepost.ubbrief.coma.core.ComaComponentImpl.getConnection(ComaComponentImpl.java:99)
         at de.deutschepost.ubbrief.coma.persistence.customermanager.CurryCustomerManagerImpl.findCustomers(CurryCustomerManagerImpl.java:73)
         at de.deutschepost.ubbrief.coma.service.z2.ComaServiceProviderZ2BaseImpl.resolveCustomerInstances(ComaServiceProviderZ2BaseImpl.java:808)
         at de.deutschepost.ubbrief.coma.service.z2.ComaServiceProviderZ2Impl.getTaskList(ComaServiceProviderZ2Impl.java:213)
         at de.deutschepost.ubbrief.coma.service.z2.ComaServiceProviderZ2Bean_1dhrj7_EOImpl.getTaskList(ComaServiceProviderZ2Bean_1dhrj7_EOImpl.java:154)
         at de.deutschepost.ubbrief.coma.sbba.z2.CMPGetTaskList.runServiceMethod(CMPGetTaskList.java:64)
         at de.deutschepost.ubbrief.coma.sbbx.sp.BasicMethodProvider.execute(BasicMethodProvider.java:145)
         at de.deutschepost.ubbrief.coma.sbba.z2.CMPGetTaskList_9b9mv5_EOImpl.execute(CMPGetTaskList_9b9mv5_EOImpl.java:46)
         at de.deutschepost.ubbrief.coma.sbba.z2.CMPGetTaskList_9b9mv5_EOImpl_WLSkel.invoke(UnknownSource)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
         at de.deutschepost.ubbrief.coma.sbba.z2.CMPGetTaskList_9b9mv5_EOImpl_WLStub.execute(UnknownSource)
         at de.deutschepost.ubbrief.backbone.jazz.impl.core.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:115)
         at de.deutschepost.ubbrief.backbone.common.impl.core.rpc.server.ServerKernelImpl.handleTransportMessage(ServerKernelImpl.java:270)
         at de.deutschepost.ubbrief.backbone.common.impl.core.messaging.MessageTransport.handleMessage(MessageTransport.java:454)
         at de.deutschepost.ubbrief.backbone.common.impl.core.KernelFacade.handleMessage(KernelFacade.java:209)
         at de.deutschepost.ubbrief.backbone.jazz.impl.backbone.BackboneBean.messageArrived(BackboneBean.java:637)
         at de.deutschepost.ubbrief.backbone.jazz.impl.backbone.BackboneBean_ina9d7_ELOImpl.messageArrived(BackboneBean_ina9d7_ELOImpl.java:105)
         at de.deutschepost.ubbrief.backbone.jazz.impl.transport.receive.LocalQueueReceiveBean.deliverMessage(LocalQueueReceiveBean.java:43)
         at de.deutschepost.ubbrief.backbone.jazz.impl.transport.receive.AbstractMessageReceiveBean.onMessage(AbstractMessageReceiveBean.java:127)
         at weblogic.ejb20.internal.MDListener.execute(MDListener.java:377)
         at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:311)
         at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:286)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2351)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:2267)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)

  • "Invalid Content Type" using oracle.example.hr empsecformat in EA2 listener

    We've done a new vanilla install of Apex 4.1.1.00.23 and applied the patch that comes with the EA2 listener
    We then created a workspace and logged in, looking at the Restful services we can see the oracle.example.hr in there.
    Using the empsecformat/JONES
    we just get an error of :
    400 - Bad Request
    Invalid Content Type
    We get this if we use the test button on the page also.
    Has anyone got this working out of the box?
    The listener stdout isn't showing any errors what so ever

    Does not only happen when using JAX-WS.
    the following servlet code is enough to reproduce the problem :
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml;charset=\"utf-8\"");
    It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
    Regards

  • Oracle reports problem in distribution with xml file

    Hi ,
    I am having problem while I am trying to distribute the file with specifing the destination details in the xml. If I am giving the destination details in url then it is working.
    Ex.
    This is Working
    http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&desformat=pdf&destype=file&desname=devlopersuit/reports/output_file.pdf
    Not working :
    http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&DISTRIBUTE=YES&destination=devlopersuit/reports/dis_test.xml
    xml file
    <destinations>
    <file id="test" name="output_file.pdf" format="pdf">
    <include scr="mainSection"/>
    </file>
    </destinations>
    Error : REP-34304: Distribution failed to complete; review the distribution lists
    Its been week I tried many things , but not working.
    Right now I am trying to distribute to single file but my goal is to burst and distribute on basis of account number.
    This is the first stage of the project.
    Thanks a lot for the help
    Anju

    Hello
    see answer in Oracle reports problem in distribution with xml file
    Regards

  • Upgrading from WLS 8.1 to Oracle WLS 10.3

    Hi,
    I'm planning to upgrade a client's system consisting of multiple applications running on WLS 8.1 to Oracle WLS 10.3.
    Is this an officially supported upgrade path? What would be the best way to do the upgrade?
    Are there any tools for automatically importing or converting the old configuration or domains?
    Or is it better to create new installations from scratch and manually configure them?
    Is there any documentation for this upgrade path?
    In practice we would need to run both application servers in parallel for a while.
    Can I expect the different server versions to interoperate with each other?
    The applications mostly communicate using EJB (v2.0) calls but JMS and Web Services are used as well.
    I've tested the EJB calls and they seem to work but what about JMS?

    Thanks.
    Can WLS JMS v8.1 be used as a messaging provider for WLS v10.3 and 8.1 instances
    (using it directly or through the Messaging Bridge)?
    Is this described in the documentation somewhere?
    I also found the following documents that address version compatibility:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs103/compatibility/compatibility.html
    http://download.oracle.com/docs/cd/E13222_01/wls/docs103/upgrade/compat.html

  • Everyones Oracle Linux Problem solved!!!

    Everyones Oracle Linux Problem solved!!!
    Here's something Linux people should relate to: Use what works!
    what works?
    NT works! NT works great with 8i AND OAS.
    No hassles at all!
    Up and running within one day!!!!
    Guaranteed!
    U don't see a NT forum here with people having ridiculous install problems like Linux people?
    Perhaps Oracle should moderate this newsgroup and even give an authorative answer or two?
    null

    I have switched our development and soon production databases to Linux because it runs like a charm. Fast and efficient, no problems. The installer has been a problem no doubt because Oracle put less of an emphasis on debugging their Linux installer than their idiot-proof NT installer.
    By the way, I was able to circumvent installer problems by just linking svrmgrl to svrmgrlO; this avoided the dreaded segmentation fault and kicked everything open just fine.
    BTW, about NT; what makes an OS is not how well everything works when everything is going well, but how bad it gets when something goes bad. For instance, the segmentation faults on Linux weren't a problem because I just picked up and continued; on NT you'd have to restart the whole system...not a pleasant feature.
    null

  • Oracle example tables data ??

    Hi,
    I have created the thread in SQL and PL/SQL ...below is the link
    Oracle example tables data ??
    Any direction is greatly appreciated. Thank you!!

    Recommended procedure
    1) Get the "Oracle Database 11g Release 2 Examples" (win32_11gR2_examples.zip (565,154,740 bytes)) from http://www.oracle.com/technology/software/products/database/oracle11g/112010_win32soft.html
    2) Get and read the "Oracle® Database Examples Installation Guide" http://download.oracle.com/docs/cd/E11882_01/install.112/e10846/toc.htm
    3) Get and read the "Oracle® Database Sample Schemas 11g Release 2 (11.2)" manual at http://download.oracle.com/docs/cd/E11882_01/server.112/e10831/toc.htm

  • Oracle Designer Problem Please help me

    Sir,
    1) I created a database
    2) Run>cd d:\Oracle_home\repadm61\admin\@ckqa
    @ckparams.txt
    @ ckvalqa
    @ ckcreate
    3)Opened Repository Administration Utility
    Log in as 'repos_manager/repos_manager@orcltest'
    Installed Repository.
    4) Opened Oracle 9i Designer. I am able to connect
    as 'repos_manager/repos_manager@orcltest'
    But I am not able to logon as any other user in same database/ any other user in different database. Why?
    Please help me.
    regards
    Mathew

    duplicate thread, see this one -> Re: Oracle Designer Problem Please help me

  • How do I compile one of C/C++ Oracle Examples ? (Windows)

    Is it simple? Can I just create in Visual Studio a Console API and plant the required headers chain to click compile ?
    Or it needs a more specialised procedure ?

    (Was that heronic?) I tried indeed :D
    You have to include in your C/C++ Project the OCI headers and libraries from Server Instalation folder
    In my scenario
    Oracle 11.2g 32bit
    Windows XP 32bit
    Visual C++ 2005 Express Edition (v8)
    Include Oracle Libraries
    Project properties>Linker>General>Additional Library Directories : D:\oracle\product\11.2.0\dbhome_1\OCI\lib\MSVC
    Project properties>Linker>Input >Additional Dependencies : oci.lib
    If you have 64bit You might need to change the project target to 64bit if its 32 bit and vice versa
    http://msdn.microsoft.com/en-us/library/9yb4317s%28v=vs.80%29.aspx
    Additional Info
    Oracle Example code is the one for Client Result Caching
    I dont have the Companion Examples so I downloaded from here along with th header
    http://read.pudn.com/downloads99/sourcecode/windows/database/402662/oci-demo/cdemostc.c__.htm
    http://read.pudn.com/downloads99/sourcecode/windows/database/402662/oci-demo/cdemostc.h__.htm
    For the Client Caching case they might be old and need edit before you activate it
    I don't if I have everything I need and will be able to execute Statements and have full functionality yet.
    But the basic Thread reason is satisfied. Will leave it open today if someone wants to add.

  • Is anybody has the example problem for AD/DA converter controled by PIC16F84?

    In my circuit( Multisim 9), I use PIC16F84 as the
    MCU to control the DAC and ADC. I want to ask if anyone has the example
    problem for the controlling?
    Further more, the I/O port of
    PIC16F84 seems can not be connected with the digital output of DAC, so
    I asked myself, is it right that for PIC16F84, the I/O port can only
    connected with the serial port of DAC and ADC? Or it needs a converter
    to adapt to the  input  port of DAC?
    Looking for any help! Thanks!

    You can test the new Design Circuit Suite (includes Multisim10 with MCU10 and Ultiboard 10 with Ultiroute10). When you open Samples you find the folder MCU with PIC folder. In these you can find some examples to PIC16F84. With that as pattern you should solve the problem.
    I attached you here the MCU examples in the *.zip
    For downloading the 30 days free test version you can use the link:
    http://www.ni.com/academic/multisim/ and click to evaluation software
    or these link:
    https://sine.ni.com/apps/utf8/nigb.confirm?p_gb_prof_id=7350&p_lang=US&p_dl_url=&p_dwnld=N&p_code=GB...
    Attachments:
    MCUPicScreenshot.zip ‏964 KB

  • Oracle BPM - Expense Management Example problem

    Hi,
    I have just started to explore Oracle BPM Version 10.3.2 and I am trying to execute the Expense Management Project as given in the starters documentation.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/tutorial/index.html
    After deploying the process and going into the workspace using
    http://localhost:8585/workspace
    I am not getting anything listed in the Applications tab. It is showing the following error:-
    Could not retrievePrincipal applications for process '/ExpenseReporting'.
    I searched in this same forum and came across this post:-
    Re: Why there is no application in workspace?
    which says that it may be due to version conflicts or some error coming up in the problems tab.
    I checked my problems tab but it is not showing anything.
    Eliminating this I thought it may be due to version conflicts (as i am following the post) so I uninstalled all my JDK's and just installed jdk 1.6 update 21 but still I got the same problem - i think this solved the issue for some users (Satya Anareddy)
    Then in one comment in the same post given by Dan (Daniel Atwood ) i tried using the default 1.5 JM.
    But still I am getting the same error.
    I am completely confused as to what the problem could be.
    Please could anyone give me some directions.
    Thanks,
    Rohit
    Edited by: 801493 on Oct 11, 2010 6:02 AM
    Edited by: 801493 on Oct 11, 2010 6:03 AM

    Please follow this step may this solve your problem.
    please modify any thing in process "ExpenseReporting" for example any transition or any activity to place some where else or any other modification and then save that process. Then clean the project and build and deploy it.
    if this also not solve the problem then export that project to and import it again in your workspace (Create new workspace or change the project name in same workspace ) and then again clean, build and deploy the application then test in work space.
    Thanks,
    Brijesh Kumar Singh

  • WLS 7.0 SP2 Cluster deployment problems

    I am having problems deploying our application to a weblogic cluster. Environment is
    windows 2000/XP and weblogic 7.0 SP2.
    Here's a simplified version of the cluster.
    I have 2 managed servers that are part of the cluster.I have defined the managed server
    configuration in the admin server's config.xml as below.
    <Server Cluster="myCluster" ExpectedToRun="false" ListenPort="7771"
    Machine="machine1" Name="Server1" ServerVersion="7.0.2.0"
    WeblogicPluginEnabled="false" XMLEntityCache="XMLCacheMBean_Server1">
    <COM Name="Server1"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="Server1"/>
    <JTAMigratableTarget Cluster="myCluster" Name="Server1" UserPreferred
    er="Server1"/>
    <JTARecoveryService Name="Server1"/>
    <KernelDebug Name="Server1"/>
    <Log Name="Server1"/>
    <SSL Enabled="false" ListenPort="7772" Name="Server1"/>
    <ServerDebug Name="Server1"/>
    <ServerStart Name="Server1"/>
    <WebServer Name="Server1"/>
    </Server>
    <Server Cluster="myCluster" ExpectedToRun="false" ListenPort="7771"
    Machine="machine2" Name="Server2" ServerVersion="7.0.2.0"
    WeblogicPluginEnabled="false" XMLEntityCache="XMLCacheMBean_Server2">
    <COM Name="Server2"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="Server2"/>
    <JTAMigratableTarget Cluster="myCluster" Name="Server2" UserPreferred
    er="Server2"/>
    <JTARecoveryService Name="Server2"/>
    <KernelDebug Name="Server2"/>
    <Log Name="Server2"/>
    <SSL Enabled="false" ListenPort="7772" Name="Server2"/>
    <ServerDebug Name="Server2"/>
    <ServerStart Name="Server2"/>
    <WebServer Name="Server2"/>
    </Server>
    <Server AcceptBacklog="50" HelpPageURL="c:/public/as"
    InstrumentStackTraceEnabled="true"
    JDBCLogFileName="myserver\jdbc.log" JDBCLoggingEnabled="false"
    ListenPort="7770" LogRemoteExceptionsEnabled="true"
    LoginTimeout="1000" Machine="MyMachine" Name="myserver"
    NativeIOEnabled="false" ReverseDNSAllowed="false"
    ServerVersion="7.0.2.0" StdoutDebugEnabled="true"
    StdoutEnabled="true" StdoutSeverityLevel="32"
    SystemPassword="{3DES}2LwBLCayHcc="
    ThreadPoolPercentSocketReaders="99" TunnelingClientPingSecs="45"
    TunnelingClientTimeoutSecs="40" TunnelingEnabled="false"
    WorkspaceShowUserKeysOnly="false"
    XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="company XMLRegist
    <COM Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="myserver"/>
    <JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="
    rver"/>
    <JTARecoveryService Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <Log FileMinSize="4096" FileName="myserver\company.log"
    FileTimeSpan="24" Name="myserver"
    NumberOfFilesLimited="true" RotationType="bySize"/>
    <SSL ListenPort="7775" Name="myserver"/>
    <ServerDebug Name="myserver"/>
    <ServerStart Name="myserver"/>
    <WebServer DefaultWebApp="go" LogFileName="myserver\access.log"
    LoggingEnabled="true" Name="myserver" Targets="myserver"/>
    </Server>
    <ShutdownClass ClassName="company.appserver.weblogic.companyStartup"
    DeploymentOrder="600" Name="companyShutdown2"
    Targets="myCluster,Server1,Server2,myserver"/>
    <ShutdownClass
    ClassName="company.appserver.weblogic.WLTaskManagerInit"
    DeploymentOrder="675" Name="TaskManagerShutdown" Targets="Server2"/>
    <StartupClass ClassName="company.appserver.weblogic.ContextHandler"
    DeploymentOrder="105" FailureIsFatal="true"
    Name="ContextHandlerStartup1" Targets="myserver"/>
    <XMLEntityCache Name="XMLCacheMBean"/>
    <XMLEntityCache Name="XMLCacheMBean_Server1"/>
    <XMLEntityCache Name="XMLCacheMBean_Server2"/>
    <XMLEntityCache Name="XMLCacheMBean_myserver"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactory
    Name="company XMLRegistry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl" Transf
    rFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
    /Domain>
    The managed server config.xml looks like below.
    $ cat config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Last updated on: Fri Nov 12 15:46:28 CET 2004, If your domain is active, ple
    ase do not edit the config.xml file. Any changes made to that file while the dom
    ain is active will not have any effect on the domain's configuration and are lik
    ely to be lost. If your domain is inactive, you may edit this file with an XML e
    ditor. If you do so, please refer to the BEA Weblogic Server Configuration Refer
    ence documentation available from http://edocs.bea.com/wls/docs70/config_xml.
    In general, we recommend that changes to your configuration file be made through
    the Administration Console.-->
    <Domain ConfigurationVersion="7.0.2.0" Name="company">
    <Application Deployed="true" Name="AGENTMANAGER"
    Path=".\deployments\activity" TwoPhase="false">
    <EJBComponent DeploymentOrder="20" Name="AGENTMANAGER"
    Targets="Server2" URI="AGENTMANAGER.jar"/>
    </Application>
    <Application Deployed="true" Name="MDBERT1"
    Path=".\deployments\service" TwoPhase="false">
    <EJBComponent DeploymentOrder="46" Name="MDBERT1"
    Targets="Server2" URI="MDBERT1.jar"/>
    </Application>
    <Application Deployed="true" Name="TM" Path=".\deployments\service" TwoPhase
    ="false">
    <EJBComponent DeploymentOrder="15" Name="TM.jar"
    Targets="Server2" URI="TM.jar"/>
    </Application>
    </Application>
    <Application Deployed="true" Name="go" Path=".\applications"
    StagedTargets="" TwoPhase="false">
    <WebAppComponent Name="go" Targets="Server2" URI="go"/>
    </Application>
    <Application Deployed="true" Name="im" Path=".\applications"
    StagedTargets="" TwoPhase="false">
    <WebAppComponent Name="im" Targets="Server2" URI="im"/>
    </Application>
    <Application Deployed="true" Name="pmcl" Path=".\applications"
    StagedTargets="" TwoPhase="false">
    <WebAppComponent Name="pmcl" Targets="Server2" URI="pmcl"/>
    </Application>
    <ApplicationManager Name="company"/>
    <CachingRealm ACLCacheEnable="true" ACLCacheSize="2000"
    ACLCacheTTLNegative="60" ACLCacheTTLPositive="60"
    AuthenticationCacheEnable="false" AuthenticationCacheSize="211"
    AuthenticationCacheTTLNegative="10"
    AuthenticationCacheTTLPositive="60" BasicRealm="companyRealm"
    CacheCaseSensitive="true" GroupCacheEnable="true"
    GroupCacheSize="100" GroupCacheTTLNegative="60"
    GroupCacheTTLPositive="60" GroupMembershipCacheTTL="17700"
    Name="companyCacheRealm" PermissionCacheEnable="true"
    PermissionCacheSize="211" PermissionCacheTTLNegative="10"
    PermissionCacheTTLPositive="60" UserCacheEnable="true"
    UserCacheSize="2000" UserCacheTTLNegative="60" UserCacheTTLPositive="60"
    />
    <CustomRealm Name="companyRealm" Password="{3DES}2LwBLCayHcc=" RealmClassName
    ="company.appserver.weblogic.WLRealmStub"/>
    <EmbeddedLDAP
    Credential="{3DES}VW4H4+7OUny8Er78dGhHbIqbB6w7l9btTnLbz4Cu1jE=" Name="Cy
    gent"/>
    <FileRealm Name="myFileRealm"/>
    <JDBCConnectionPool CapacityIncrement="2"
    DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="5"
    MaxCapacity="100" Name="Geneva0"
    PreparedStatementCacheSize="100"
    Properties="user=admin;password=;server=LSUP1"
    Targets="Server2" URL="jdbc:weblogic:oracle"/>
    <JDBCConnectionPool CapacityIncrement="2"
    DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="5"
    MaxCapacity="100" Name="JMSDBConnectionPool"
    PreparedStatementCacheSize="100"
    Properties="user=admin;password=gent;url=jdbc:oracle:thin:@x.x.x.179:1521:SUP1;dll=ocijdbc8;dataSourceName=ejbPool;protocol=thin"
    Targets="Server2" URL="jdbc:oracle:thin:@x.x.x.x:1521:LSUP1"/>
    <JDBCConnectionPool CapacityIncrement="2"
    DriverName="oracle.jdbc.xa.client.OracleXADataSource"
    InitialCapacity="5" MaxCapacity="100" Name="ejbPool"
    PreparedStatementCacheSize="100"
    Properties="user=company_admin;url=jdbc:oracle:thin:@10.28.138.179:1521:P
    MCLSUP1;password=company;dll=ocijdbc8;dataSourceName=ejbPool;protocol=thin"
    SupportsLocalTransaction="true" Targets="Server2,Server2" URL="jdbc:orac
    le:thin:@x.x.x.x:1521:LSUP1"/>
    <JDBCDataSource JNDIName="geneva.jdbc.GenevaNonTrans0"
    Name="GenevaNonTrans0" PoolName="Geneva0" Targets="Server2"/>
    <JDBCTxDataSource EnableTwoPhaseCommit="true"
    JNDIName="geneva.jdbc.Geneva0" Name="Geneva0" PoolName="Geneva0" Targets
    ="Server2"/>
    <JDBCTxDataSource EnableTwoPhaseCommit="false"
    JNDIName="authJtsDataSource" Name="authJtsDataSource"
    PoolName="ejbPool" Targets="Server2"/>
    <JMSConnectionFactory DefaultRedeliveryDelay="5000"
    DefaultTimeToDeliver="3000" JNDIName="company.ctm.QCFactory"
    Name="CTMQCFactory" Targets="Server2"
    UserTransactionsEnabled="true" XAConnectionFactoryEnabled="true"/>
    <JMSConnectionFactory DefaultRedeliveryDelay="5000"
    DefaultTimeToDeliver="3000" JNDIName="company.im.QCFactory"
    Name="QCFactory" Targets="Server2"/>
    <JMSConnectionFactory DefaultRedeliveryDelay="5000"
    DefaultTimeToDeliver="3000" JNDIName="company.im.TCFactory"
    Name="TCFactory" Targets="Server2"/>
    <JMSJDBCStore ConnectionPool="JMSDBConnectionPool"
    Name="companyCTMJDBCStore" PrefixName="CTM"/>
    <JMSJDBCStore ConnectionPool="JMSDBConnectionPool"
    Name="companyJMSJDBCStore" PrefixName="IM"/>
    <JMSServer Name="CIM JMSServer-0" Store="companyJMSJDBCStore" Targets="Server
    2">
    <JMSQueue JNDIName="javax.jms.inRequestQueue" Name="inRequestQueue"/>
    <JMSQueue JNDIName="javax.jms.inResponseQueue" Name="inResponseQueue"/>
    <JMSQueue JNDIName="javax.jms.logQueue" Name="logQueue"/>
    <JMSQueue JNDIName="javax.jms.outRequestQueue" Name="outRequestQueue"/>
    <JMSQueue JNDIName="javax.jms.outResponseQueue" Name="outResponseQueue"/
    >
    <JMSSessionPool ConnectionFactory="company.im.QCFactory"
    ListenerClass="company.service.mg.impl.InboundMsgListener"
    Name="InboundRequestSessionPool" SessionsMaximum="5">
    <JMSConnectionConsumer
    Destination="javax.jms.inRequestQueue"
    MessagesMaximum="10" Name="InboundRequestSessionPool" Selector="
    TRUE"/>
    </JMSSessionPool>
    <JMSSessionPool ConnectionFactory="company.im.QCFactory"
    ListenerClass="company.service.mg.impl.InboundMsgListener"
    Name="InboundResponseSessionPool" SessionsMaximum="5">
    <JMSConnectionConsumer
    Destination="javax.jms.inResponseQueue"
    MessagesMaximum="10"
    Name="InboundResponseConnectionConsumer" Selector="TRUE"/>
    </JMSSessionPool>
    <JMSSessionPool ConnectionFactory="company.im.QCFactory"
    ListenerClass="pmcl.company.service.mg.impl.PmclOutboundMsgListener"
    Name="OutboundRequestSessionPool" SessionsMaximum="5">
    <JMSConnectionConsumer
    Destination="javax.jms.outRequestQueue"
    MessagesMaximum="10"
    Name="OutboundRequestConnectionPool" Selector="TRUE"/>
    </JMSSessionPool>
    <JMSSessionPool ConnectionFactory="company.im.QCFactory"
    ListenerClass="pmcl.company.service.mg.impl.PmclOutboundMsgListener"
    Name="OutboundResponseSessionPool" SessionsMaximum="5">
    <JMSConnectionConsumer
    Destination="javax.jms.outResponseQueue"
    MessagesMaximum="10"
    Name="OutboundResponseConnectionConsumer" Selector="TRUE"/>
    </JMSSessionPool>
    <JMSTopic JNDIName="javax.jms.CreateOfferTopic" Name="createOfferTopic"/
    >
    <JMSTopic JNDIName="javax.jms.CreateProductTopic" Name="createProductTop
    ic"/>
    </JMSServer>
    <JMSServer Name="JMSServer-0">
    <JMSQueue JNDIName="javax.jms.logQueue" Name="logQueue"/>
    </JMSServer>
    <JMSServer DeploymentOrder="1" Name="Task Manager Server-1"
    Store="companyCTMJDBCStore" Targets="Server2">
    <JMSQueue ErrorDestination="ERT1 Queue" JNDIName="activate_task"
    Name="AT1 Queue" RedeliveryLimit="5"/>
    <JMSQueue JNDIName="complete_process_flow" Name="CPF1 Queue" RedeliveryL
    imit="5"/>
    <JMSQueue ErrorDestination="ERT1 Queue" JNDIName="complete_task"
    Name="CT1 Queue" RedeliveryLimit="5"/>
    <JMSQueue JNDIName="error_task" Name="ERT1 Queue" RedeliveryLimit="1"/>
    <JMSQueue ErrorDestination="ERT1 Queue" JNDIName="escalate_task"
    Name="ET1 Queue" RedeliveryLimit="5"/>
    <JMSQueue JNDIName="recover_process_flow" Name="RPF1 Queue" RedeliveryLi
    mit="5"/>
    <JMSQueue JNDIName="terminate_process_flow" Name="TPF1 Queue" Redelivery
    Limit="5"/>
    <JMSQueue ErrorDestination="ERT1 Queue"
    JNDIName="terminate_task" Name="TT1 Queue" RedeliveryLimit="5"/>
    </JMSServer>
    <JTA Name="company" TimeoutSeconds="3600"/>
    <Log FileName="./logs/company.log" Name="company"/>
    <Machine Name="MyMachine">
    <NodeManager Name="MyMachine"/>
    </Machine>
    <PasswordPolicy MinimumPasswordLength="8" Name="mypasswordpolicy"/>
    <Realm CachingRealm="companyCacheRealm" FileRealm="myFileRealm" Name="myRealm
    "/>
    <SNMPAgent Name="company"/>
    <Security CompatibilityMode="true" Name="company"
    PasswordPolicy="mypasswordpolicy" Realm="myRealm" RealmSetup="true"/>
    <SecurityConfiguration Credential="{3DES}Osb3tCLDbyc="
    CredentialGenerated="false" Name="company"/>
    <Server HelpPageURL="c:/public/as" InstrumentStackTraceEnabled="true"
    JDBCLogFileName="Server2\jdbc.log" JDBCLoggingEnabled="false"
    ListenPort="7771" LogRemoteExceptionsEnabled="true"
    LoginTimeout="1000" Machine="MyMachine" Name="Server2"
    NativeIOEnabled="true" ReverseDNSAllowed="false"
    ServerVersion="7.0.2.0" StdoutDebugEnabled="true"
    StdoutEnabled="true" StdoutSeverityLevel="32"
    SystemPassword="{3DES}2LwBLCayHcc="
    ThreadPoolPercentSocketReaders="99" TunnelingClientPingSecs="45"
    TunnelingClientTimeoutSecs="40" TunnelingEnabled="false"
    WorkspaceShowUserKeysOnly="false"
    XMLEntityCache="XMLCacheMBean_Server2" XMLRegistry="company XMLRegistry">
    <COM Name="Server2"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="Server2"/>
    <JTAMigratableTarget Cluster="myCluster" Name="Server2" UserPreferredSer
    ver="Server2"/>
    <JTARecoveryService Name="Server2"/>
    <KernelDebug Name="Server2"/>
    <Log FileMinSize="4096" FileName="Server2\company.log"
    FileTimeSpan="24" Name="Server2"
    NumberOfFilesLimited="true" RotationType="bySize"/>
    <SSL ListenPort="7772" Name="Server2"/>
    <ServerDebug Name="Server2"/>
    <ServerStart Name="Server2"/>
    <WebServer DefaultWebApp="go" LogFileName="Server2\access.log"
    LoggingEnabled="true" Name="Server2" Targets="Server2"/>
    </Server>
    <ShutdownClass ClassName="company.appserver.weblogic.companyStartup"
    DeploymentOrder="200" Name="companyShutdown2" Targets="Server2"/>
    <ShutdownClass
    ClassName="company.appserver.weblogic.WLTaskManagerInit"
    DeploymentOrder="175" Name="TaskManagerShutdown" Targets="Server2"/>
    <StartupClass ClassName="company.appserver.weblogic.ContextHandler"
    DeploymentOrder="105" FailureIsFatal="true"
    Name="ContextHandlerStartup1" Targets="Server2"/>
    <StartupClass ClassName="company.appserver.weblogic.companyStartup"
    DeploymentOrder="100" FailureIsFatal="true"
    Name="companyStartup1" Targets="Server2,Server2"/>
    <StartupClass
    ClassName="company.appserver.weblogic.WLTaskManagerInit"
    DeploymentOrder="125" FailureIsFatal="true"
    Name="TaskManagerStartup" Targets="Server2"/>
    <XMLEntityCache Name="XMLCacheMBean"/>
    <XMLEntityCache Name="XMLCacheMBean_Server2"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImp
    l"
    Name="company XMLRegistry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl" Transform
    erFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
    </Domain>
    I start the admin server first followed by one of the managed servers. The admin server
    starts fine. When I start the managed server 1, it is not deploying the application on the
    managed server and I am getting the following exception on the managed server.
    Setting custom initial context factory<Nov 25, 2004 11:54:44 PM CET> <Notice> <Management> <141053> <Application Polle
    r not started for production server.>
    <Nov 25, 2004 11:54:45 PM CET> <Notice> <Management> <141030> <Starting discover
    y of Managed Server... This feature is on by default, you may turn this off by p
    assing -Dweblogic.management.discover=false>
    <Nov 25, 2004 11:54:45 PM CET> <Notice> <WebLogicServer> <000354> <Thread "Liste
    nThread.Default" listening on port 7770>
    <Nov 25, 2004 11:55:06 PM CET> <Warning> <RJVM> <000519> <Unable to connect to a
    remote server on address x.x.x.x and port 7771 with protocol t3. The Exce
    ption is java.net.ConnectException: Connection refused: connect>
    <Nov 25, 2004 11:55:06 PM CET> <Warning> <Management> <141028> <Unable to locate
    Managed server Server2 on listen address x.x.x.223 listen port 7771. Ignore
    this message if the Managed server was shutdown intentionally. The Managed serv
    er will connect to the Admin server when it is re-started.>
    <Nov 25, 2004 11:55:08 PM CET> <Warning> <RJVM> <000519> <Unable to connect to a
    remote server on address x.x.x.222 and port 7771 with protocol t3. The Exce
    ption is java.net.ConnectException: Connection refused: connect>
    <Nov 25, 2004 11:55:08 PM CET> <Warning> <Management> <141028> <Unable to locate
    Managed server Server1 on listen address x.x.x.222 listen port 7771. Ignore
    this message if the Managed server was shutdown intentionally. The Managed serv
    er will connect to the Admin server when it is re-started.>
    <Nov 25, 2004 11:55:08 PM CET> <Notice> <WebLogicServer> <000329> <Started WebLo
    gic Admin Server "myserver" for domain "company" running in Production Mode>
    <Nov 25, 2004 11:55:09 PM CET> <Notice> <WebLogicServer> <000365> <Server state
    changed to RUNNING>
    <Nov 25, 2004 11:55:09 PM CET> <Notice> <WebLogicServer> <000360> <Server starte
    d in RUNNING mode>
    <Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
    server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
    ing;Ljava.lang.String;)
    javax.management.InstanceNotFoundException: company:Name=Server1,Type=Migratable
    Target
    javax.management.InstanceNotFoundException: company:Name=Server1,Type=MigratableT
    arget
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:144)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:268)
    at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
    meImpl.java:288)
    at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
    eManager.java:821)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:308)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    <Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
    server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
    ing;Ljava.lang.String;)
    javax.management.InstanceNotFoundException: company:Name=Server2,Type=Migratable
    Target
    javax.management.InstanceNotFoundException: company:Name=Server2,Type=MigratableT
    arget
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:144)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:268)
    at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
    meImpl.java:288)
    at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
    eManager.java:821)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:308)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    <Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
    server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
    ing;Ljava.lang.String;)
    javax.management.InstanceNotFoundException: company:Name=Server2,Type=Migratable
    Target
    javax.management.InstanceNotFoundException: company:Name=Server2,Type=MigratableT
    arget
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:144)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:268)
    at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
    meImpl.java:288)
    at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
    eManager.java:821)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:308)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    Can somebody help me find out why this problem is occuring..?

    I am having problems deploying our application to a weblogic cluster. Environment is
    windows 2000/XP and weblogic 7.0 SP2.
    Here's a simplified version of the cluster.
    I have 2 managed servers that are part of the cluster.I have defined the managed server
    configuration in the admin server's config.xml as below.
    <Server Cluster="myCluster" ExpectedToRun="false" ListenPort="7771"
    Machine="machine1" Name="Server1" ServerVersion="7.0.2.0"
    WeblogicPluginEnabled="false" XMLEntityCache="XMLCacheMBean_Server1">
    <COM Name="Server1"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="Server1"/>
    <JTAMigratableTarget Cluster="myCluster" Name="Server1" UserPreferred
    er="Server1"/>
    <JTARecoveryService Name="Server1"/>
    <KernelDebug Name="Server1"/>
    <Log Name="Server1"/>
    <SSL Enabled="false" ListenPort="7772" Name="Server1"/>
    <ServerDebug Name="Server1"/>
    <ServerStart Name="Server1"/>
    <WebServer Name="Server1"/>
    </Server>
    <Server Cluster="myCluster" ExpectedToRun="false" ListenPort="7771"
    Machine="machine2" Name="Server2" ServerVersion="7.0.2.0"
    WeblogicPluginEnabled="false" XMLEntityCache="XMLCacheMBean_Server2">
    <COM Name="Server2"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="Server2"/>
    <JTAMigratableTarget Cluster="myCluster" Name="Server2" UserPreferred
    er="Server2"/>
    <JTARecoveryService Name="Server2"/>
    <KernelDebug Name="Server2"/>
    <Log Name="Server2"/>
    <SSL Enabled="false" ListenPort="7772" Name="Server2"/>
    <ServerDebug Name="Server2"/>
    <ServerStart Name="Server2"/>
    <WebServer Name="Server2"/>
    </Server>
    <Server AcceptBacklog="50" HelpPageURL="c:/public/as"
    InstrumentStackTraceEnabled="true"
    JDBCLogFileName="myserver\jdbc.log" JDBCLoggingEnabled="false"
    ListenPort="7770" LogRemoteExceptionsEnabled="true"
    LoginTimeout="1000" Machine="MyMachine" Name="myserver"
    NativeIOEnabled="false" ReverseDNSAllowed="false"
    ServerVersion="7.0.2.0" StdoutDebugEnabled="true"
    StdoutEnabled="true" StdoutSeverityLevel="32"
    SystemPassword="{3DES}2LwBLCayHcc="
    ThreadPoolPercentSocketReaders="99" TunnelingClientPingSecs="45"
    TunnelingClientTimeoutSecs="40" TunnelingEnabled="false"
    WorkspaceShowUserKeysOnly="false"
    XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="company XMLRegist
    <COM Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="myserver"/>
    <JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="
    rver"/>
    <JTARecoveryService Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <Log FileMinSize="4096" FileName="myserver\company.log"
    FileTimeSpan="24" Name="myserver"
    NumberOfFilesLimited="true" RotationType="bySize"/>
    <SSL ListenPort="7775" Name="myserver"/>
    <ServerDebug Name="myserver"/>
    <ServerStart Name="myserver"/>
    <WebServer DefaultWebApp="go" LogFileName="myserver\access.log"
    LoggingEnabled="true" Name="myserver" Targets="myserver"/>
    </Server>
    <ShutdownClass ClassName="company.appserver.weblogic.companyStartup"
    DeploymentOrder="600" Name="companyShutdown2"
    Targets="myCluster,Server1,Server2,myserver"/>
    <ShutdownClass
    ClassName="company.appserver.weblogic.WLTaskManagerInit"
    DeploymentOrder="675" Name="TaskManagerShutdown" Targets="Server2"/>
    <StartupClass ClassName="company.appserver.weblogic.ContextHandler"
    DeploymentOrder="105" FailureIsFatal="true"
    Name="ContextHandlerStartup1" Targets="myserver"/>
    <XMLEntityCache Name="XMLCacheMBean"/>
    <XMLEntityCache Name="XMLCacheMBean_Server1"/>
    <XMLEntityCache Name="XMLCacheMBean_Server2"/>
    <XMLEntityCache Name="XMLCacheMBean_myserver"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactory
    Name="company XMLRegistry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl" Transf
    rFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
    /Domain>
    The managed server config.xml looks like below.
    $ cat config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Last updated on: Fri Nov 12 15:46:28 CET 2004, If your domain is active, ple
    ase do not edit the config.xml file. Any changes made to that file while the dom
    ain is active will not have any effect on the domain's configuration and are lik
    ely to be lost. If your domain is inactive, you may edit this file with an XML e
    ditor. If you do so, please refer to the BEA Weblogic Server Configuration Refer
    ence documentation available from http://edocs.bea.com/wls/docs70/config_xml.
    In general, we recommend that changes to your configuration file be made through
    the Administration Console.-->
    <Domain ConfigurationVersion="7.0.2.0" Name="company">
    <Application Deployed="true" Name="AGENTMANAGER"
    Path=".\deployments\activity" TwoPhase="false">
    <EJBComponent DeploymentOrder="20" Name="AGENTMANAGER"
    Targets="Server2" URI="AGENTMANAGER.jar"/>
    </Application>
    <Application Deployed="true" Name="MDBERT1"
    Path=".\deployments\service" TwoPhase="false">
    <EJBComponent DeploymentOrder="46" Name="MDBERT1"
    Targets="Server2" URI="MDBERT1.jar"/>
    </Application>
    <Application Deployed="true" Name="TM" Path=".\deployments\service" TwoPhase
    ="false">
    <EJBComponent DeploymentOrder="15" Name="TM.jar"
    Targets="Server2" URI="TM.jar"/>
    </Application>
    </Application>
    <Application Deployed="true" Name="go" Path=".\applications"
    StagedTargets="" TwoPhase="false">
    <WebAppComponent Name="go" Targets="Server2" URI="go"/>
    </Application>
    <Application Deployed="true" Name="im" Path=".\applications"
    StagedTargets="" TwoPhase="false">
    <WebAppComponent Name="im" Targets="Server2" URI="im"/>
    </Application>
    <Application Deployed="true" Name="pmcl" Path=".\applications"
    StagedTargets="" TwoPhase="false">
    <WebAppComponent Name="pmcl" Targets="Server2" URI="pmcl"/>
    </Application>
    <ApplicationManager Name="company"/>
    <CachingRealm ACLCacheEnable="true" ACLCacheSize="2000"
    ACLCacheTTLNegative="60" ACLCacheTTLPositive="60"
    AuthenticationCacheEnable="false" AuthenticationCacheSize="211"
    AuthenticationCacheTTLNegative="10"
    AuthenticationCacheTTLPositive="60" BasicRealm="companyRealm"
    CacheCaseSensitive="true" GroupCacheEnable="true"
    GroupCacheSize="100" GroupCacheTTLNegative="60"
    GroupCacheTTLPositive="60" GroupMembershipCacheTTL="17700"
    Name="companyCacheRealm" PermissionCacheEnable="true"
    PermissionCacheSize="211" PermissionCacheTTLNegative="10"
    PermissionCacheTTLPositive="60" UserCacheEnable="true"
    UserCacheSize="2000" UserCacheTTLNegative="60" UserCacheTTLPositive="60"
    />
    <CustomRealm Name="companyRealm" Password="{3DES}2LwBLCayHcc=" RealmClassName
    ="company.appserver.weblogic.WLRealmStub"/>
    <EmbeddedLDAP
    Credential="{3DES}VW4H4+7OUny8Er78dGhHbIqbB6w7l9btTnLbz4Cu1jE=" Name="Cy
    gent"/>
    <FileRealm Name="myFileRealm"/>
    <JDBCConnectionPool CapacityIncrement="2"
    DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="5"
    MaxCapacity="100" Name="Geneva0"
    PreparedStatementCacheSize="100"
    Properties="user=admin;password=;server=LSUP1"
    Targets="Server2" URL="jdbc:weblogic:oracle"/>
    <JDBCConnectionPool CapacityIncrement="2"
    DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="5"
    MaxCapacity="100" Name="JMSDBConnectionPool"
    PreparedStatementCacheSize="100"
    Properties="user=admin;password=gent;url=jdbc:oracle:thin:@x.x.x.179:1521:SUP1;dll=ocijdbc8;dataSourceName=ejbPool;protocol=thin"
    Targets="Server2" URL="jdbc:oracle:thin:@x.x.x.x:1521:LSUP1"/>
    <JDBCConnectionPool CapacityIncrement="2"
    DriverName="oracle.jdbc.xa.client.OracleXADataSource"
    InitialCapacity="5" MaxCapacity="100" Name="ejbPool"
    PreparedStatementCacheSize="100"
    Properties="user=company_admin;url=jdbc:oracle:thin:@10.28.138.179:1521:P
    MCLSUP1;password=company;dll=ocijdbc8;dataSourceName=ejbPool;protocol=thin"
    SupportsLocalTransaction="true" Targets="Server2,Server2" URL="jdbc:orac
    le:thin:@x.x.x.x:1521:LSUP1"/>
    <JDBCDataSource JNDIName="geneva.jdbc.GenevaNonTrans0"
    Name="GenevaNonTrans0" PoolName="Geneva0" Targets="Server2"/>
    <JDBCTxDataSource EnableTwoPhaseCommit="true"
    JNDIName="geneva.jdbc.Geneva0" Name="Geneva0" PoolName="Geneva0" Targets
    ="Server2"/>
    <JDBCTxDataSource EnableTwoPhaseCommit="false"
    JNDIName="authJtsDataSource" Name="authJtsDataSource"
    PoolName="ejbPool" Targets="Server2"/>
    <JMSConnectionFactory DefaultRedeliveryDelay="5000"
    DefaultTimeToDeliver="3000" JNDIName="company.ctm.QCFactory"
    Name="CTMQCFactory" Targets="Server2"
    UserTransactionsEnabled="true" XAConnectionFactoryEnabled="true"/>
    <JMSConnectionFactory DefaultRedeliveryDelay="5000"
    DefaultTimeToDeliver="3000" JNDIName="company.im.QCFactory"
    Name="QCFactory" Targets="Server2"/>
    <JMSConnectionFactory DefaultRedeliveryDelay="5000"
    DefaultTimeToDeliver="3000" JNDIName="company.im.TCFactory"
    Name="TCFactory" Targets="Server2"/>
    <JMSJDBCStore ConnectionPool="JMSDBConnectionPool"
    Name="companyCTMJDBCStore" PrefixName="CTM"/>
    <JMSJDBCStore ConnectionPool="JMSDBConnectionPool"
    Name="companyJMSJDBCStore" PrefixName="IM"/>
    <JMSServer Name="CIM JMSServer-0" Store="companyJMSJDBCStore" Targets="Server
    2">
    <JMSQueue JNDIName="javax.jms.inRequestQueue" Name="inRequestQueue"/>
    <JMSQueue JNDIName="javax.jms.inResponseQueue" Name="inResponseQueue"/>
    <JMSQueue JNDIName="javax.jms.logQueue" Name="logQueue"/>
    <JMSQueue JNDIName="javax.jms.outRequestQueue" Name="outRequestQueue"/>
    <JMSQueue JNDIName="javax.jms.outResponseQueue" Name="outResponseQueue"/
    >
    <JMSSessionPool ConnectionFactory="company.im.QCFactory"
    ListenerClass="company.service.mg.impl.InboundMsgListener"
    Name="InboundRequestSessionPool" SessionsMaximum="5">
    <JMSConnectionConsumer
    Destination="javax.jms.inRequestQueue"
    MessagesMaximum="10" Name="InboundRequestSessionPool" Selector="
    TRUE"/>
    </JMSSessionPool>
    <JMSSessionPool ConnectionFactory="company.im.QCFactory"
    ListenerClass="company.service.mg.impl.InboundMsgListener"
    Name="InboundResponseSessionPool" SessionsMaximum="5">
    <JMSConnectionConsumer
    Destination="javax.jms.inResponseQueue"
    MessagesMaximum="10"
    Name="InboundResponseConnectionConsumer" Selector="TRUE"/>
    </JMSSessionPool>
    <JMSSessionPool ConnectionFactory="company.im.QCFactory"
    ListenerClass="pmcl.company.service.mg.impl.PmclOutboundMsgListener"
    Name="OutboundRequestSessionPool" SessionsMaximum="5">
    <JMSConnectionConsumer
    Destination="javax.jms.outRequestQueue"
    MessagesMaximum="10"
    Name="OutboundRequestConnectionPool" Selector="TRUE"/>
    </JMSSessionPool>
    <JMSSessionPool ConnectionFactory="company.im.QCFactory"
    ListenerClass="pmcl.company.service.mg.impl.PmclOutboundMsgListener"
    Name="OutboundResponseSessionPool" SessionsMaximum="5">
    <JMSConnectionConsumer
    Destination="javax.jms.outResponseQueue"
    MessagesMaximum="10"
    Name="OutboundResponseConnectionConsumer" Selector="TRUE"/>
    </JMSSessionPool>
    <JMSTopic JNDIName="javax.jms.CreateOfferTopic" Name="createOfferTopic"/
    >
    <JMSTopic JNDIName="javax.jms.CreateProductTopic" Name="createProductTop
    ic"/>
    </JMSServer>
    <JMSServer Name="JMSServer-0">
    <JMSQueue JNDIName="javax.jms.logQueue" Name="logQueue"/>
    </JMSServer>
    <JMSServer DeploymentOrder="1" Name="Task Manager Server-1"
    Store="companyCTMJDBCStore" Targets="Server2">
    <JMSQueue ErrorDestination="ERT1 Queue" JNDIName="activate_task"
    Name="AT1 Queue" RedeliveryLimit="5"/>
    <JMSQueue JNDIName="complete_process_flow" Name="CPF1 Queue" RedeliveryL
    imit="5"/>
    <JMSQueue ErrorDestination="ERT1 Queue" JNDIName="complete_task"
    Name="CT1 Queue" RedeliveryLimit="5"/>
    <JMSQueue JNDIName="error_task" Name="ERT1 Queue" RedeliveryLimit="1"/>
    <JMSQueue ErrorDestination="ERT1 Queue" JNDIName="escalate_task"
    Name="ET1 Queue" RedeliveryLimit="5"/>
    <JMSQueue JNDIName="recover_process_flow" Name="RPF1 Queue" RedeliveryLi
    mit="5"/>
    <JMSQueue JNDIName="terminate_process_flow" Name="TPF1 Queue" Redelivery
    Limit="5"/>
    <JMSQueue ErrorDestination="ERT1 Queue"
    JNDIName="terminate_task" Name="TT1 Queue" RedeliveryLimit="5"/>
    </JMSServer>
    <JTA Name="company" TimeoutSeconds="3600"/>
    <Log FileName="./logs/company.log" Name="company"/>
    <Machine Name="MyMachine">
    <NodeManager Name="MyMachine"/>
    </Machine>
    <PasswordPolicy MinimumPasswordLength="8" Name="mypasswordpolicy"/>
    <Realm CachingRealm="companyCacheRealm" FileRealm="myFileRealm" Name="myRealm
    "/>
    <SNMPAgent Name="company"/>
    <Security CompatibilityMode="true" Name="company"
    PasswordPolicy="mypasswordpolicy" Realm="myRealm" RealmSetup="true"/>
    <SecurityConfiguration Credential="{3DES}Osb3tCLDbyc="
    CredentialGenerated="false" Name="company"/>
    <Server HelpPageURL="c:/public/as" InstrumentStackTraceEnabled="true"
    JDBCLogFileName="Server2\jdbc.log" JDBCLoggingEnabled="false"
    ListenPort="7771" LogRemoteExceptionsEnabled="true"
    LoginTimeout="1000" Machine="MyMachine" Name="Server2"
    NativeIOEnabled="true" ReverseDNSAllowed="false"
    ServerVersion="7.0.2.0" StdoutDebugEnabled="true"
    StdoutEnabled="true" StdoutSeverityLevel="32"
    SystemPassword="{3DES}2LwBLCayHcc="
    ThreadPoolPercentSocketReaders="99" TunnelingClientPingSecs="45"
    TunnelingClientTimeoutSecs="40" TunnelingEnabled="false"
    WorkspaceShowUserKeysOnly="false"
    XMLEntityCache="XMLCacheMBean_Server2" XMLRegistry="company XMLRegistry">
    <COM Name="Server2"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="Server2"/>
    <JTAMigratableTarget Cluster="myCluster" Name="Server2" UserPreferredSer
    ver="Server2"/>
    <JTARecoveryService Name="Server2"/>
    <KernelDebug Name="Server2"/>
    <Log FileMinSize="4096" FileName="Server2\company.log"
    FileTimeSpan="24" Name="Server2"
    NumberOfFilesLimited="true" RotationType="bySize"/>
    <SSL ListenPort="7772" Name="Server2"/>
    <ServerDebug Name="Server2"/>
    <ServerStart Name="Server2"/>
    <WebServer DefaultWebApp="go" LogFileName="Server2\access.log"
    LoggingEnabled="true" Name="Server2" Targets="Server2"/>
    </Server>
    <ShutdownClass ClassName="company.appserver.weblogic.companyStartup"
    DeploymentOrder="200" Name="companyShutdown2" Targets="Server2"/>
    <ShutdownClass
    ClassName="company.appserver.weblogic.WLTaskManagerInit"
    DeploymentOrder="175" Name="TaskManagerShutdown" Targets="Server2"/>
    <StartupClass ClassName="company.appserver.weblogic.ContextHandler"
    DeploymentOrder="105" FailureIsFatal="true"
    Name="ContextHandlerStartup1" Targets="Server2"/>
    <StartupClass ClassName="company.appserver.weblogic.companyStartup"
    DeploymentOrder="100" FailureIsFatal="true"
    Name="companyStartup1" Targets="Server2,Server2"/>
    <StartupClass
    ClassName="company.appserver.weblogic.WLTaskManagerInit"
    DeploymentOrder="125" FailureIsFatal="true"
    Name="TaskManagerStartup" Targets="Server2"/>
    <XMLEntityCache Name="XMLCacheMBean"/>
    <XMLEntityCache Name="XMLCacheMBean_Server2"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImp
    l"
    Name="company XMLRegistry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl" Transform
    erFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
    </Domain>
    I start the admin server first followed by one of the managed servers. The admin server
    starts fine. When I start the managed server 1, it is not deploying the application on the
    managed server and I am getting the following exception on the managed server.
    Setting custom initial context factory<Nov 25, 2004 11:54:44 PM CET> <Notice> <Management> <141053> <Application Polle
    r not started for production server.>
    <Nov 25, 2004 11:54:45 PM CET> <Notice> <Management> <141030> <Starting discover
    y of Managed Server... This feature is on by default, you may turn this off by p
    assing -Dweblogic.management.discover=false>
    <Nov 25, 2004 11:54:45 PM CET> <Notice> <WebLogicServer> <000354> <Thread "Liste
    nThread.Default" listening on port 7770>
    <Nov 25, 2004 11:55:06 PM CET> <Warning> <RJVM> <000519> <Unable to connect to a
    remote server on address x.x.x.x and port 7771 with protocol t3. The Exce
    ption is java.net.ConnectException: Connection refused: connect>
    <Nov 25, 2004 11:55:06 PM CET> <Warning> <Management> <141028> <Unable to locate
    Managed server Server2 on listen address x.x.x.223 listen port 7771. Ignore
    this message if the Managed server was shutdown intentionally. The Managed serv
    er will connect to the Admin server when it is re-started.>
    <Nov 25, 2004 11:55:08 PM CET> <Warning> <RJVM> <000519> <Unable to connect to a
    remote server on address x.x.x.222 and port 7771 with protocol t3. The Exce
    ption is java.net.ConnectException: Connection refused: connect>
    <Nov 25, 2004 11:55:08 PM CET> <Warning> <Management> <141028> <Unable to locate
    Managed server Server1 on listen address x.x.x.222 listen port 7771. Ignore
    this message if the Managed server was shutdown intentionally. The Managed serv
    er will connect to the Admin server when it is re-started.>
    <Nov 25, 2004 11:55:08 PM CET> <Notice> <WebLogicServer> <000329> <Started WebLo
    gic Admin Server "myserver" for domain "company" running in Production Mode>
    <Nov 25, 2004 11:55:09 PM CET> <Notice> <WebLogicServer> <000365> <Server state
    changed to RUNNING>
    <Nov 25, 2004 11:55:09 PM CET> <Notice> <WebLogicServer> <000360> <Server starte
    d in RUNNING mode>
    <Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
    server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
    ing;Ljava.lang.String;)
    javax.management.InstanceNotFoundException: company:Name=Server1,Type=Migratable
    Target
    javax.management.InstanceNotFoundException: company:Name=Server1,Type=MigratableT
    arget
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:144)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:268)
    at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
    meImpl.java:288)
    at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
    eManager.java:821)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:308)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    <Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
    server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
    ing;Ljava.lang.String;)
    javax.management.InstanceNotFoundException: company:Name=Server2,Type=Migratable
    Target
    javax.management.InstanceNotFoundException: company:Name=Server2,Type=MigratableT
    arget
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:144)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:268)
    at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
    meImpl.java:288)
    at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
    eManager.java:821)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:308)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    <Nov 25, 2004 11:56:57 PM CET> <Warning> <rmi> <080005> <Exception thrown by rmi
    server: weblogic.management.internal.AdminMBeanHomeImpl.getMBean(Ljava.lang.Str
    ing;Ljava.lang.String;)
    javax.management.InstanceNotFoundException: company:Name=Server2,Type=Migratable
    Target
    javax.management.InstanceNotFoundException: company:Name=Server2,Type=MigratableT
    arget
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:144)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.jav
    a:268)
    at weblogic.management.internal.AdminMBeanHomeImpl.getMBean(AdminMBeanHo
    meImpl.java:288)
    at weblogic.management.internal.AdminMBeanHomeImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
    eManager.java:821)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:308)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    Can somebody help me find out why this problem is occuring..?

  • "in-doubt distributed transaction" (WLS 8.1 SP2/Oracle 9.2.0.4)

              I've developed an MDB that reads a message from a queue, performs database updates
              against up to 2 databases, and sends an outgoing JMS message when all is complete.
              The MDB uses container-managed transactions to ensure that all DB updates and
              JMS messages are committed or rolled back together. I have had a lot of problems
              related to transactions failing, becoming "in-doubt" in the database and locking
              database resources indefinitely.
              My environment is configured as follows:
              WebLogic 8.1.2 Server
              Oracle 9.2.0.4 database with RAC
              XA Connection Pool with WebLogic Type 2 Oracle Driver OR Oracle 9.2.0.4
              OCI Driver
              I have read the BEA/HP white paper regarding Weblogic 8.1 with Oracle 9i RAC (http://dev2dev.bea.com/products/wlserver81/whitepapers/wls_bea_hp.jsp)
              and have tried all of the solutions suggested in that paper. The only solution
              that worked consistently without causing the in-doubt transactions was to change
              my connection pools to point directly to a single node of the RAC cluster, not
              to the shared instance. However, even with this configuration, I have seen these
              errors occur when certain database failures occur.
              A side-effect of this problem is that the associated WebLogic connection pools
              begin to "forget" connections. The pool thinks that all of the connections are
              in use (even though I am always calling Statement.close() and Connection.close()),
              and the connection pool cannot be reset manually. The only way to clear the connection
              pool is to bounce WebLogic.
              The only posts I have found related to this error were regarding Oracle 8.1.7
              and WebLogic 6.1. Any help would be greatly appreciated.
              Exceptions:
              <Mar 23, 2004 2:59:36 PM EST> <Error> <EJB> <BEA-010026> <Exception occurred during
              commit of transaction Xid=BEA1-0526A28664707F28EDB9(6412513),Status=Rolled back.
              [Reason=javax.transaction.xa.XAException
              : prepare failed for XAResource 'ProfilingPool' with error XAER_NOTA : The XID
              is not valid],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds
              left=60,XAServerResourceInfo[JMS_my
              JmsStore]=(ServerResourceInfo[JMS_myJmsStore]=(state=rolledback,assigned=myserver),xar=JMS_myJmsStore),XAServerResourceInfo[ProfilingPool]=(ServerResourceInfo[ProfilingPool]=(state=rolledback,ass
              igned=myserver),xar=ProfilingPool),SCInfo[mydomain+myserver]=(state=rolledback),local
              properties=({}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+10.41.0.61:7001+m
              ydomain+t3+, XAResources={JMS_myJmsStore, JMS_FileStore, ProfilingPool, SearchManagementPool,
              AnnouncementsTxPool},NonXAResources={})],CoordinatorURL=myserver+10.41.0.61:7001+mydomain+t3+):
              javax.tran
              saction.xa.XAException: prepare failed for XAResource 'ProfilingPool' with error
              XAER_NOTA : The XID is not valid
              at weblogic.jdbc.oci.xa.XA.createException(XA.java:386)
              at weblogic.jdbc.oci.xa.XADataSource.internalPrepare(XADataSource.java:905)
              at weblogic.jdbc.oci.xa.XADataSource.prepare(XADataSource.java:885)
              at weblogic.jdbc.jta.DataSource.prepare(DataSource.java:846)
              at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:1167)
              at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:401)
              at weblogic.transaction.internal.ServerSCInfo$1.execute(ServerSCInfo.java:253)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              --------------- nested within: ------------------
              weblogic.transaction.RollbackException: Could not prepare resource 'ProfilingPool
              prepare failed for XAResource 'ProfilingPool' with error XAER_NOTA : The XID is
              not valid - with nested exception:
              [javax.transaction.xa.XAException: prepare failed for XAResource 'ProfilingPool'
              with error XAER_NOTA : The XID is not valid]
              at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1644)
              at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:300)
              at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:221)
              at weblogic.ejb20.internal.MDListener.execute(MDListener.java:412)
              at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              2004-03-23 15:00:45,406 ERROR IS003989 [ExecuteThread: '17' for queue: 'ProfileCompleteListenerBean.ExecuteQueue']
              my.package.search.business.ProfiledHoldingDAO.setProfilingStatus(ProfiledHoldingDAO.java:350
              ) - Failed to update profiling status for holding 10014 [] (-2)
              java.sql.SQLException: ORA-02049: timeout: distributed transaction waiting for
              lock
              at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:282)
              at weblogic.jdbc.oci.PreparedStatement.executeUpdate(PreparedStatement.java:226)
              at weblogic.jdbc.oci.xa.PreparedStatement.executeUpdate(PreparedStatement.java:81)
              at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:94)
              at my.package.search.business.ProfiledHoldingDAO.setProfilingStatus(ProfiledHoldingDAO.java:345)
              at my.package.search.business.ProfilingManager.disseminateAndAcknowledge(ProfilingManager.java:254)
              at my.package.search.business.ProfileCompleteListenerBean.onMessage(ProfileCompleteListenerBean.java:128)
              at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
              at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              2004-03-23 15:01:43,093 ERROR IS003989 [ExecuteThread: '18' for queue: 'HoldingStatusListenerBean.ExecuteQueue']
              my.package.search.business.ProfiledHoldingDAO.getProfilingStatus(ProfiledHoldingDAO.java:265)
              - Failed to retrieve profiling results for holding 10060 [] (-2)
              java.sql.SQLException: ORA-01591: lock held by in-doubt distributed transaction
              189.47.12
              at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:282)
              at weblogic.jdbc.oci.PreparedStatement.executeQuery(PreparedStatement.java:152)
              at weblogic.jdbc.oci.xa.PreparedStatement.executeQuery(PreparedStatement.java:48)
              at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:80)
              at my.package.search.business.ProfiledHoldingDAO.getProfilingStatus(ProfiledHoldingDAO.java:256)
              at my.package.search.business.ProfiledHoldingDAO.storeHoldingMetadata(ProfiledHoldingDAO.java:489)
              at my.package.search.business.ProfiledHoldingDAO.storeNewHolding(ProfiledHoldingDAO.java:406)
              at my.package.search.business.ProfilingManager.profileHolding(ProfilingManager.java:128)
              at my.package.search.business.HoldingStatusListenerBean.onMessage(HoldingStatusListenerBean.java:121)
              at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
              at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              

    Hi. There is a serious bug in the Oracle DBMS (all versions) where in-doubt
              transactions have their data locked in the DBMS by page rather than by row,
              so it will indefinitely prevent access to all data on the page, including
              logically uninvolved data. Oracle understands the problem but currently
              says they will never fix it (it would take too much work). They offer the
              alternative that you configure your table data to ensure that no more than
              one datarow resides on a page.
              Joe
              Matt Smith wrote:
              > I've developed an MDB that reads a message from a queue, performs database updates
              > against up to 2 databases, and sends an outgoing JMS message when all is complete.
              > The MDB uses container-managed transactions to ensure that all DB updates and
              > JMS messages are committed or rolled back together. I have had a lot of problems
              > related to transactions failing, becoming "in-doubt" in the database and locking
              > database resources indefinitely.
              >
              > My environment is configured as follows:
              > WebLogic 8.1.2 Server
              > Oracle 9.2.0.4 database with RAC
              > XA Connection Pool with WebLogic Type 2 Oracle Driver OR Oracle 9.2.0.4
              > OCI Driver
              >
              > I have read the BEA/HP white paper regarding Weblogic 8.1 with Oracle 9i RAC (http://dev2dev.bea.com/products/wlserver81/whitepapers/wls_bea_hp.jsp)
              > and have tried all of the solutions suggested in that paper. The only solution
              > that worked consistently without causing the in-doubt transactions was to change
              > my connection pools to point directly to a single node of the RAC cluster, not
              > to the shared instance. However, even with this configuration, I have seen these
              > errors occur when certain database failures occur.
              >
              > A side-effect of this problem is that the associated WebLogic connection pools
              > begin to "forget" connections. The pool thinks that all of the connections are
              > in use (even though I am always calling Statement.close() and Connection.close()),
              > and the connection pool cannot be reset manually. The only way to clear the connection
              > pool is to bounce WebLogic.
              >
              > The only posts I have found related to this error were regarding Oracle 8.1.7
              > and WebLogic 6.1. Any help would be greatly appreciated.
              >
              > Exceptions:
              > -----------------
              > <Mar 23, 2004 2:59:36 PM EST> <Error> <EJB> <BEA-010026> <Exception occurred during
              > commit of transaction Xid=BEA1-0526A28664707F28EDB9(6412513),Status=Rolled back.
              > [Reason=javax.transaction.xa.XAException
              > : prepare failed for XAResource 'ProfilingPool' with error XAER_NOTA : The XID
              > is not valid],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds
              > left=60,XAServerResourceInfo[JMS_my
              > JmsStore]=(ServerResourceInfo[JMS_myJmsStore]=(state=rolledback,assigned=myserver),xar=JMS_myJmsStore),XAServerResourceInfo[ProfilingPool]=(ServerResourceInfo[ProfilingPool]=(state=rolledback,ass
              > igned=myserver),xar=ProfilingPool),SCInfo[mydomain+myserver]=(state=rolledback),local
              > properties=({}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+10.41.0.61:7001+m
              > ydomain+t3+, XAResources={JMS_myJmsStore, JMS_FileStore, ProfilingPool, SearchManagementPool,
              > AnnouncementsTxPool},NonXAResources={})],CoordinatorURL=myserver+10.41.0.61:7001+mydomain+t3+):
              > javax.tran
              > saction.xa.XAException: prepare failed for XAResource 'ProfilingPool' with error
              > XAER_NOTA : The XID is not valid
              > at weblogic.jdbc.oci.xa.XA.createException(XA.java:386)
              > at weblogic.jdbc.oci.xa.XADataSource.internalPrepare(XADataSource.java:905)
              > at weblogic.jdbc.oci.xa.XADataSource.prepare(XADataSource.java:885)
              > at weblogic.jdbc.jta.DataSource.prepare(DataSource.java:846)
              > at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:1167)
              > at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:401)
              > at weblogic.transaction.internal.ServerSCInfo$1.execute(ServerSCInfo.java:253)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              > --------------- nested within: ------------------
              > weblogic.transaction.RollbackException: Could not prepare resource 'ProfilingPool
              > prepare failed for XAResource 'ProfilingPool' with error XAER_NOTA : The XID is
              > not valid - with nested exception:
              > [javax.transaction.xa.XAException: prepare failed for XAResource 'ProfilingPool'
              > with error XAER_NOTA : The XID is not valid]
              > at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1644)
              > at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:300)
              > at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:221)
              > at weblogic.ejb20.internal.MDListener.execute(MDListener.java:412)
              > at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
              > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              > at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              > at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              > ...
              > 2004-03-23 15:00:45,406 ERROR IS003989 [ExecuteThread: '17' for queue: 'ProfileCompleteListenerBean.ExecuteQueue']
              > my.package.search.business.ProfiledHoldingDAO.setProfilingStatus(ProfiledHoldingDAO.java:350
              > ) - Failed to update profiling status for holding 10014 [] (-2)
              > java.sql.SQLException: ORA-02049: timeout: distributed transaction waiting for
              > lock
              > at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:282)
              > at weblogic.jdbc.oci.PreparedStatement.executeUpdate(PreparedStatement.java:226)
              > at weblogic.jdbc.oci.xa.PreparedStatement.executeUpdate(PreparedStatement.java:81)
              > at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:94)
              > at my.package.search.business.ProfiledHoldingDAO.setProfilingStatus(ProfiledHoldingDAO.java:345)
              > at my.package.search.business.ProfilingManager.disseminateAndAcknowledge(ProfilingManager.java:254)
              > at my.package.search.business.ProfileCompleteListenerBean.onMessage(ProfileCompleteListenerBean.java:128)
              > at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
              > at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
              > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              > at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              > at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              > ...
              > 2004-03-23 15:01:43,093 ERROR IS003989 [ExecuteThread: '18' for queue: 'HoldingStatusListenerBean.ExecuteQueue']
              > my.package.search.business.ProfiledHoldingDAO.getProfilingStatus(ProfiledHoldingDAO.java:265)
              > - Failed to retrieve profiling results for holding 10060 [] (-2)
              > java.sql.SQLException: ORA-01591: lock held by in-doubt distributed transaction
              > 189.47.12
              > at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:282)
              > at weblogic.jdbc.oci.PreparedStatement.executeQuery(PreparedStatement.java:152)
              > at weblogic.jdbc.oci.xa.PreparedStatement.executeQuery(PreparedStatement.java:48)
              > at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:80)
              > at my.package.search.business.ProfiledHoldingDAO.getProfilingStatus(ProfiledHoldingDAO.java:256)
              > at my.package.search.business.ProfiledHoldingDAO.storeHoldingMetadata(ProfiledHoldingDAO.java:489)
              > at my.package.search.business.ProfiledHoldingDAO.storeNewHolding(ProfiledHoldingDAO.java:406)
              > at my.package.search.business.ProfilingManager.profileHolding(ProfilingManager.java:128)
              > at my.package.search.business.HoldingStatusListenerBean.onMessage(HoldingStatusListenerBean.java:121)
              > at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
              > at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
              > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              > at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              > at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              >
              

  • Oracle insert problem(records not in the order they are inserted)

    hi, all:
    I tried to insert a word list into a oracle table, everything is fine except that the words are not in the order they are inserted. For example, the words are inserted in the following sequence:
    accreted     
    accreting     
    accretion     
    accretionary     
    accretive     
    bladebone
    bladed     
    bladeless
    bladelike
    When I retrived the resultset from the table and iterate through each of the record, the words are not in the order inserted, i.e., it may look like this,
    accreted     
    accreting     
    bladebone
    bladed     
    accretion     
    accretionary     
    accretive     
    bladeless
    bladelike
    This strange phenomenon won't happen when the word list is small, like 500 words or so, but when the number of words reaches around 10,000, it takes place. My coworker also experienced this problem when trying to insert large volume of data into oracle table.
    The code I used to insert into the DB table:
    BufferedReader reader=new BufferedReader(new FileReader("C:\\Dictionary.txt"));
    while( (line=reader.readLine())!=null )
         sql="INSERT INTO DICT " +
         "VALUES ('" + line +"')";                         
         statement.executeUpdate(sql);
    Any advice will be highly appreciated,
    thanks

    Well, the best thing to do is follows scsi-boy's advice and add the additional column and either put a sequence number in it from the Java side as you insert, or use an Oracle sequence object to put a sequence number in it from the Oracle side (which is sort of like an auto-generated value, but different).
    Note that an Oracle sequence generates numbers in sequence, but possibly with gaps (usually if the database is rebooted), unless you do some things that slow sequences down substantially. Sequences can also be something of a bottleneck on RAC clusters. See:
    http://www.dizwell.com/oracle/articles/autonumbering.html
    However, if your coworker is commiting after each and every insert (which is bad form and slows the database down, -10 points), and if your coworker is also never ever ever updating the columns after they've been inserted, and if your coworker is using Oracle 10g and not some older version such as 9i, then your coworker could use the ORA_ROWSCN pseudo-column to order by. Those are very very severe constraints and you shouldn't begin to consider doing it that way without a very good reason, and right now you and your coworker wouldn't know a good reason if it snuck up and bit you on the butt, you've got a lot of learning the basics first.

  • Data source from Oracle 10g problem

    Dear Sir,
    We met a problem when we moved on Oracle 10g from Oracle 9i in the loading process. The scenario is that SQL Server as Data Warehouse, SSIS as ETL tool. But the length of string column as data source table in SSIS grows up 4 times when using Oracle 10g. For example, ABC table x varchar2(8) --> x varchar(32) -->x varchar(8) --> x varchar(8) {Oracle 10g        SSIS(source) }
    This doesn’t influence the loaded result (I did not find any problem until now), but that influence loading performance and we worry about potential problems.
    Do you have any idea or have you met the same problem before? Is I need setup some parameters like "code page"
    Thanks,
    Jacob

    You could try General Database Discussions the main db foum.
    What are you using to migrate your database? Why is it being mapped from varchar2(8) to varchar2(32). It sounds like someone/something is intervening here.
    Barry

Maybe you are looking for