Weblogic Sybase driver from weblogic 8.1 sp2

This issue involves retrieving multiple resultsets from a CallableStatement.
Lets assume by default when executing the CallableStatment I retrieve 3 result
sets.
The first one has 5 records
The second 10
The third 15
If I execute the same CallableStatment with different parameters and the second
result set has
no records I get the following, the secode result set is not returned.
The first one has 5 records
The second 15.
It is normal to return 0 records for a specific result set.
Is it normal to have dynamic number of result sets, I think not.
Can anyone help?
Tommy Lapierre
[email protected]

We found the issue, we don't know why by at least is works:
We chaged part on the stored procedure, see comments in the sql statement.
(This is only a subset of the whol;e stored proc.)
--Fx InstrumentPrice
--Todo load fx only if the swap.useInstrumentCurrency is true.
select
@currencyPairId,
isnull(cr.resetDate, r.resetDate),
@foreignExchangeResetSource,
isnull(cr.resetValue,r.resetValue),
isnull(cr.resetValue2,r.resetValue2)
from
ResetMarkerEq rm,
CustomReset cr,
Reset r
where
rm.tradeDateFx *= cr.resetDate
and rm.tradeDateFx *= r.resetDate
and cr.instrId=@currencyPairId
and r.fiId=@currencyPairId
and rm.swapId=@swapId
and cr.swapId=@swapId
--This line was causing the weblogic driver to not return result of this select
--and isnull(cr.resetValue,r.resetValue)!=null
and (cr.resetValue is not null or r.resetValue is not null)
and r.resetSource=@foreignExchangeResetSource
and rm.settleDate > @asOfDate
--No fx if both are equal
and @instrumentTradeCurrencyId != @payCurrencyId
end;
"Tommy Lapierre" <[email protected]> wrote:
>
After investigating even more!!!!!!
At the last two seclect I removed the CustomReset table from the statement
and
all of its references in that statement, I GET RESULTS.
Something is fishy with that statement I guess.
select
@instrumentId,
isnull(cr.resetDate, r.resetDate),
@equityResetSource,
isnull(cr.resetValue,r.resetValue),
isnull(cr.resetValue2,r.resetValue2)
from
ResetMarkerEq rm,
CustomReset cr,
Reset r
where
rm.tradeDate *= cr.resetDate
and rm.tradeDate *= r.resetDate
and cr.instrId=@instrumentId
and r.fiId=@instrumentId
and rm.swapId=@swapId
and cr.swapId=@swapId
and isnull(cr.resetValue,r.resetValue)!=null
and rm.settleDate > @asOfDate
and r.resetSource=@equityResetSource
"Tommy Lapierre" <[email protected]> wrote:
After investigating more I realized that the result sets returned with
jconn2 and
not returned with wlsybase.jar is normal and the code fuctions fine.
I am still getting unaceptable results because with the jconn2 driver
the last
result set has data and with the weblogic sybase driver I get no data.
This is the store proc. look for --Fx InstrumentPrice, this is the result
set
that returns no data/
-- SwapInstrument Store Procedure--
create procedure dbo.essGetSwapInstrument @swapId int, @instrumentId
int, @asOfDate
smalldatetime
as
begin
--Swap
declare @swapStartDate smalldatetime
declare @payCurrencyId int, @tradeCurrencyId int
declare @moveTradeDate int, @moveSettleDate int
--SwapLeg
declare @equityLongLeg int, @equityShortLeg int
declare @equityResetSource varchar(30), @foreignExchangeResetSourcevarchar(30)
--SwapTypeDomain
declare @quantityOrderPosition int
declare @settleDate int
--Instrument
declare @multiplier int
declare @instrumentTradeCurrencyId int
--CurrencyPair
declare @currencyPairId int, @majorCurrencyId int, @minorCurrencyIdint
--Getting some mv trade/settle date flags because it has to be use before
loading
data
select
distinct
@moveTradeDate = isnull(std.mvTrdDtToSwpStrt,0),
@moveSettleDate = isnull(std.mvStlDtToSwpStrt,0),
@swapStartDate = s.startDate,
@quantityOrderPosition = isnull(std.qtyOrderPos,0),
@settleDate = isnull(std.settleDate,0)
from
Swap s,
SwapTypeDomain std
where
s.fiId = @swapId
and s.swapType *= std.type
--Getting the Equity Long and Short legs
select
@equityLongLeg = slLong.fiId,
@equityShortLeg = slShort.fiId,
@tradeCurrencyId = slLong.fxId,
@payCurrencyId = slLong.currencyId,
@equityResetSource = slLong.resetSource,
@foreignExchangeResetSource = slLong.fxResetSource
from
--todo to track down those index. Taken from old code.
SwapLeg slLong (index xxx),
SwapLeg slShort (index xxx),
SwapLeg slLongInt (index xxx),
SwapLeg slShortInt (index xxx)
where
slLong.parentId = @swapId
and slShort.parentId = @swapId
and slLongInt.parentId = @swapId
and slShortInt.parentId = @swapId
and slLongInt.linkedLegId=slLong.fiId
and slShortInt.linkedLegId=slShort.fiId
and slLongInt.structureType=1
and slShortInt.structureType=1
and slLong.structureType=0
and slShort.structureType=0
and slLong.longShort=1
and slShort.longShort=2
and slLong.status <> 2
and slShort.status <> 2
and slLongInt.status <> 2
and slShortInt.status <> 2
--Getting instrument values
select
@multiplier=multiplier,
@instrumentTradeCurrencyId=trdCcyId
from
Instrument
where
fiId = @instrumentId
--Getting currency pair
select
@currencyPairId=ccyPairId,
@majorCurrencyId=majorCcyId,
@minorCurrencyId=minorCcyId
from
CurrencyPair
where
(majorCcyId = @instrumentTradeCurrencyId
and minorCcyId = @payCurrencyId)
or
(majorCcyId = @payCurrencyId
and minorCcyId = @instrumentTradeCurrencyId)
and @instrumentTradeCurrencyId != @payCurrencyId
--Returning SwapInstrument properties
select
@equityLongLeg,
@equityShortLeg,
@quantityOrderPosition
--Returning Instrument
select
@instrumentId,
@multiplier,
@instrumentTradeCurrencyId
--Returning instrument trade currency
select
ccyId,
display
from
Currency
where
ccyId = @instrumentTradeCurrencyId
--Returning currency pair
select
@currencyPairId,
@majorCurrencyId,
@minorCurrencyId
--Returning trades to calulate
select
isnull(be.eventId, 0 ) as eventId,
be.legId,
--tradeDate
case
     when @moveTradeDate=1 and be.tradeDate<@swapStartDate then @swapStartDate
     else be.tradeDate
end as 'tradeDate',
--settleDate
case
     when @moveSettleDate=1 and be.settleDate<@swapStartDate then @swapStartDate
     when @settleDate=0 then be.tradeDate
     else be.settleDate
end as 'settleDate',
be.qty,
be.price,
be.basePrice,
be.fxRate,
be.intRate
--ber.realizedAmt,
--ber.realizedAmtBase,
--ber.avgCost,
--ber.avgBaseCost
--ecf.cashFlow as equityCashFlow,
--ecf.payDate as equityPayDate,
--ccf.cashFlow as commissionCashFlow,
--ccf.payDate as commissionPayDate
from
BasketEvent be
--BasketEventRealized ber
--cashFlow ecf,
--cashFlow ccf
where
be.legId in (@equityLongLeg, @equityShortLeg)
and be.instrId = @instrumentId
and be.settleDate > @asOfDate
and be.qty!=0
and be.eventType = 0
--RealizedAmount and Average cost
--and be.eventId *= ber.eventId
--and be.legId *= ber.legId
--Equity CashFlow (type 0)
--and be.eventId *= ecf.eventId
--and be.legId *= ecf.legId
--and ecf.type = 0
--Divident CashFlow (type 2) -> Is it related to one trade?? no related
to position
--and be.eventId *= dcf.eventId
--and be.legId *= dcf.legId
--and ccf.type = 2
--Commission CashFlow (type 3)
--and be.eventId *= ccf.eventId
--and be.legId *= ccf.legId
--and ccf.type = 3
union all
--Returning trades still open before asOfDate
select
be.eventId,
be.legId,
--tradeDate
case
     when @moveTradeDate=1 and be.tradeDate<@swapStartDate then @swapStartDate
     else be.tradeDate
end as 'tradeDate',
--settleDate
case
     when @moveSettleDate=1 and be.settleDate<@swapStartDate then @swapStartDate
     when @settleDate=0 then be.tradeDate
     else be.settleDate
end as 'settleDate',
be.qty,
be.price,
be.basePrice,
be.fxRate,
be.intRate
from
TradeOpenQty t,
BasketEvent be
where
t.eventId != 0
and be.legId =
case
     when t.qty > 0 then @equityLongLeg
     else @equityShortLeg
end
and t.swapId = @swapId
and t.instrId = @instrumentId
and t.date <= @asOfDate
and t.dateEnd > @asOfDate
and t.instrId=be.instrId
and t.settleDate=be.settleDate
--Returning TradeRealized for trade to recalc
select
ber.eventId,
ber.legId,
ber.settleDate,
ber.realizedAmt,
ber.realizedAmtBase,
ber.avgCost,
ber.avgBaseCost
from
BasketEventRealized ber
where
--Don't include reset.
ber.eventId is not null
and ber.legId in (@equityLongLeg, @equityShortLeg)
and ber.instrId = @instrumentId
and ber.settleDate > @asOfDate
--Returning reset trade and reset traderealized
select
ber.legId,
ber.settleDate,
ber.realizedAmt,
ber.realizedAmtBase,
ber.avgCost,
ber.avgBaseCost
from
BasketEventRealized ber
where
ber.legId in (@equityLongLeg, @equityShortLeg)
and ber.instrId = @instrumentId
and ber.settleDate > @asOfDate
and ber.eventId is null
union all
--reset that are still open
select
ber.legId,
ber.settleDate,
ber.realizedAmt,
ber.realizedAmtBase,
ber.avgCost,
ber.avgBaseCost
from
TradeOpenQty t,
BasketEventRealized ber
where
t.eventId = 0
and ber.eventId is null
and ber.legId =
case
     when t.qty > 0 then @equityLongLeg
     else @equityShortLeg
end
and t.swapId = @swapId
and t.instrId = @instrumentId
and t.date <= @asOfDate
and t.dateEnd > @asOfDate
and t.instrId = ber.instrId
and t.settleDate = ber.settleDate
--Returning trade match
select
f.eventIdMatch,
f.eventId,
f.legId,
f.matchId,
f.settleDate,
f.qty,
f.avgCost,
f.avgBaseCost,
f.realizedAmt,
f.realizedAmtBase
from
FifoMatch f,
BasketEvent be
where
--todo do we need to join to BasketEvent? FifoMatch already has thesettle
date.
be.legId in (@equityLongLeg , @equityShortLeg)
and f.legId in (@equityLongLeg , @equityShortLeg)
and be.instrId = @instrumentId
and be.settleDate > @asOfDate
and f.instrId=be.instrId
and f.eventId=be.eventId
and f.legId =be.legId
and be.eventType = 0
order by f.eventId
--Returning trade match custom
select
f.eventIdMatch,
isnull(f.eventId, 0) eventId,
f.legId,
f.matchId,
f.settleDate,
f.qty,
f.avgCost,
f.avgBaseCost,
f.realizedAmt,
f.realizedAmtBase
from
FifoMatchCustom f,
BasketEvent be
where
f.eventId = be.eventId
and f.legId = be.legId
and be.legId in (@equityLongLeg , @equityShortLeg)
and be.qty!=0
and be.instrId = @instrumentId
and be.settleDate > @asOfDate
and be.eventType = 0
--Returning TradeOpenQty
--TradeOpenQuantity covering asOfDate
select
t.eventId,
t.settleDate,
case
     when t.qty > 0 then @equityLongLeg
     else @equityShortLeg
end as legId,
t.date,
t.qty,
t.dateEnd
from
TradeOpenQty t
where
t.swapId = @swapId
and t.instrId = @instrumentId
and t.date <= @asOfDate
and t.dateEnd > @asOfDate
union all
--TradeOpenQuantity after asOfDate
select
t.eventId,
t.settleDate,
case
     when t.qty > 0 then @equityLongLeg
     else @equityShortLeg
end as legId,
t.date,
t.qty,
t.dateEnd
from
TradeOpenQty t
where
t.swapId = @swapId
and t.instrId = @instrumentId
and t.dateEnd > @asOfDate
--Returning daily positions
--Position covering asOfDate
select
bp.date as startDate,
bp.legId,
bp.dateEnd as endDate,
bp.qty,
bp.avgCost,
bp.avgBaseCost,
bp.totalRealized,
bp.totalBaseRealized
from BasketPosition bp
where
bp.legId in (@equityLongLeg , @equityShortLeg)
and bp.instrId = @instrumentId
and bp.date <= @asOfDate
and bp.dateEnd >@asOfDate
union all
--Position after asOfDate
select
bp.date as startDate,
bp.legId,
bp.dateEnd as endDate,
bp.qty,
bp.avgCost,
bp.avgBaseCost,
bp.totalRealized,
bp.totalBaseRealized
from BasketPosition bp
where
bp.legId in (@equityLongLeg , @equityShortLeg)
and bp.instrId = @instrumentId
and bp.dateEnd > @asOfDate
--Returning Instrument base price from Reset/CustomReset table
select
@instrumentId,
isnull(cr.resetDate, r.resetDate),
@equityResetSource,
isnull(cr.resetValue,r.resetValue),
isnull(cr.resetValue2,r.resetValue2)
from
ResetMarkerEq rm,
CustomReset cr,
Reset r
where
rm.tradeDate *= cr.resetDate
and rm.tradeDate *= r.resetDate
and cr.instrId=@instrumentId
and r.fiId=@instrumentId
and rm.swapId=@swapId
and cr.swapId=@swapId
and isnull(cr.resetValue,r.resetValue)!=null
and rm.settleDate > @asOfDate
and r.resetSource=@equityResetSource
--Fx InstrumentPrice
--Todo load fx only if the swap.useInstrumentCurrency is true.
select
@currencyPairId,
isnull(cr.resetDate, r.resetDate),
@foreignExchangeResetSource,
isnull(cr.resetValue,r.resetValue),
isnull(cr.resetValue2,r.resetValue2)
from
ResetMarkerEq rm,
CustomReset cr,
Reset r
where
rm.tradeDateFx *= cr.resetDate
and rm.tradeDateFx *= r.resetDate
and cr.instrId=@currencyPairId
and r.fiId=@currencyPairId
and rm.swapId=@swapId
and cr.swapId=@swapId
and isnull(cr.resetValue,r.resetValue)!=null
and r.resetSource=@foreignExchangeResetSource
and rm.settleDate > @asOfDate
--No fx if both are equal
and @instrumentTradeCurrencyId != @payCurrencyId
end;
Joe Weinstein <[email protected]> wrote:
Tommy Lapierre wrote:
This issue involves retrieving multiple resultsets from a CallableStatement.
Lets assume by default when executing the CallableStatment I retrieve3 result
sets.
The first one has 5 records
The second 10
The third 15
If I execute the same CallableStatment with different parameters
and
the second
result set has
no records I get the following, the secode result set is not returned.
The first one has 5 records
The second 15.
It is normal to return 0 records for a specific result set.
Is it normal to have dynamic number of result sets, I think not.
Can anyone help?
Tommy Lapierre
[email protected]
Hi. I'd like to see the stored procedure. If the procedure does dothe
three selects, the jdbc driver should/will return a result set foreach
one,
and any query that returns no rows should result in a result set that
returns false from the first call to next().
If the procedure may skip a given query under some executions,then
there would be no result set for a given skipped query. In other words,
JDBC doesn't care or know whether a given execution of a statementwill
return the same number of result sets as it did last time.
It is not common to have a procedure return a variable number of
result sets, but it has been done, and is fine as far as JDBC is concerned.
The 'canonical style' for handling Prepared/Callable statements will
handle
this just fine.
Joe

Similar Messages

  • URGENT!Oracle Type 2 XA Driver(9.2.0.3)problem with EJB on Weblogic 8.1 SP2

    Hi all,
    In our production environment, we're getting the following exception when client requesting the transaction from EJB but it is not happening all the time. It just happens a couple time on day. I assume that it happens 5 out 100 requests.
    Here is the exception...<br>
    <b>================================<br>
    Exception occurred during commit of transaction Name=[EJB com.xxx.xxx.ejb.MappingTrlsBean.getTranslation(java.math.BigDecimal,java.math.BigDecimal,java.math.BigDecimal,java.sql.Date,java.sql.Date)],Xid=BEA1-48F084989933A1C25F07(31980664),Status=Rolled back. [Reason=oracle.jdbc.xa.OracleXAException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=76,seconds left=60,XAServerResourceInfo[DS35Pool]=(ServerResourceInfo[DS35Pool]=(state=rolledback,assigned=TTMsvr),xar=DS35Pool),XAServerResourceInfo[DS11Pool]=(ServerResourceInfo[DS11Pool]=(state=rolledback,assigned=TTMsvr),xar=DS11Pool),SCInfo[TTM+TTMsvr]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.bcbsmn.mappingtrls.ejb.MappingTrlsBean.getTranslation(java.math.BigDecimal,java.math.BigDecimal,java.math.BigDecimal,java.sql.Date,java.sql.Date)]}),local properties=({}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=TTMsvr+172.16.208.50:6333+TTM+t3+, XAResources={},NonXAResources={})],CoordinatorURL=TTMsvr+172.16.208.50:6333+TTM+t3+): oracle.jdbc.xa.OracleXAException
    <br>...............<br><br>
    --------------- nested within: ------------------
    weblogic.transaction.RollbackException: Could not prepare resource 'DS35Pool - with nested exception:
    [oracle.jdbc.xa.OracleXAException]
    <br>==============================</b><br>
    I have a couple of connection pools setup called DS35Pool and DS11Pool.
    The configuration of the both driver is
    1)Driver Classname:oracle.jdbc.xa.client.OracleXADataSource
    using ojdbc14.jar from weblogic 8.1 sp2
    2)Remove Infected Connections Enabled is checked
    3)Allow Shrinking is checked with 900 seconds
    4)Test Reserved Connections is checked
    5)Keep XA Connection Till Transaction Complete is checked
    6)Supports Local Transaction is checked.
    Thank you in advance for any help!!!

    That appears to be a bug in the console. You might try the command-line tool java weblogic.Deployer for deploying apps. java weblogic.Deployer -examples will give detailed usage info.
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Problem preparing CallableStatement with Weblogic Sybase driver

    I recently switched to using Weblogic's Sybase driver and immediately ran into a problem with some existing JDBC code that ran fine with Sybase's driver. Here is an excerpt of the code:
    String sql = "{call my_sybase_procedure ?,?,?,?,?,?,?,?,?}";
    Connection c = null;
    CallableStatement stmt = null;
    try {     
         stmt = c.prepareCall(sql);
    On the prepareCall method call the following Exception is thrown:
    java.sql.SQLException: [BEA][Sybase JDBC Driver][Sybase]Incorrect syntax near '{'.
    As I said this code runs fine using the Sybase driver com.sybase.jdbc2.jdbc.SybDriver but when I switched to weblogic.jdbc.sybase.SybaseDriver I ran into the problem. I'm using Weblogic Server 8.1 SP4 and the Sybase version is 12.5.
    For now I will revert to using the Sybase driver but if anyone has any insight into this problem I would appreciate the help. Thanks.

    slambert wrote:
    I was looking at the example syntax provided here:
    [url http://java.sun.com/j2se/1.4.2/docs/api/java/sql/CallableStatement.html]http://java.sun.com/j2se/1.4.2/docs/api/java/sql/CallableStatement.html
    It shows square brackets which I interpret as meaning that the parameters are optional. It would have been clearer to me if parentheses were included inside the square brackets.
    Hi. Here's what I get from my JavaSoft doc contacts:
    "For Java SE 6/JDBC 4.0 we corrected it to be:
    {?= call <procedure-name>[(<arg1>,<arg2>, ...)]}
    {call <procedure-name>[(<arg1>,<arg2>, ...)]}
    { call foo} is valid if there are no arguments but you must have
    {call foo(?)|}
    if parameters are passed.
    The javadocs finally now match 13.4.4 of the spec."
    Joe

  • Problems storing CLOBs with build-in Oracle 8.1.6 thin driver of WebLogic 6.0 SP2

    Hi,
    I'm using the build-in Oracle 8.1.6 thin driver that comes with
    weblogic.jar of WebLogic 6.0 SP2. It doesn't store CLOBs. Here I have
    to use the class weblogic.jdbc.common.OracleClob. Why?
    WebLogic 5.1 SP 9 + Oracle 8.1.6 thin driver (external) does. Here I
    use the class oracle.sql.CLOB.
    Must I use a OCI driver?
    Thanks,
    Juergen

    I'd also recommend to switch to 8.1.7 thin driver. It's more stable.
    Regards,
    Slava Imeshev
    "NhaBep" <[email protected]> wrote in message
    news:3b71bbcf$[email protected]..
    >
    You can use thin driver to persist CLOB. One thing you must be sure to setautocommit
    to false. Hope this help.
    [email protected] (Juergen) wrote:
    Hi,
    I'm using the build-in Oracle 8.1.6 thin driver that comes with
    weblogic.jar of WebLogic 6.0 SP2. It doesn't store CLOBs. Here I have
    to use the class weblogic.jdbc.common.OracleClob. Why?
    WebLogic 5.1 SP 9 + Oracle 8.1.6 thin driver (external) does. Here I
    use the class oracle.sql.CLOB.
    Must I use a OCI driver?
    Thanks,
    Juergen

  • Unable to invoke WebLogic 8.1 sp2 web service from a java proxy client...

    I am not able to invoke a web service deployed on WebLogic 8.1 SP2 via a client using the proxy jar provided by WebLogic's JWS > Overview > Generate Java Proxy tool.
    I am getting a java.net.ConnectException.
    Both the client and the WebService are on the same server.
    Thanks!!
    Inder./

    Please see the instructions below. If this does not help, please open a case with customer support and tell them it may be related to CR235479
    DESCRIPTION:
    When a platform domain is created, the admin server can be started without
    any issues and a managed server can also be started without any errors if
    using startManagedWebLogic.sh. But when a managed server is started using the
    nodemanager, the managed server fails to start with the following error.
    The WebLogic Server did not start up properly.
    java.lang.NoClassDefFoundError: com/bea/wsrp/util/debug/Debug
    (Complete stack trace with be added as a note)
    The reason for this is that:
    startWebLogic.sh(cmd) and startManagedWebLogic.sh(cmd) for platform domains
    call <User domain>/setDomainEnv.sh which includes all the jars necessary for
    a platform domain in the CLASSPATH.
    Whereas startNodeManager.sh calls <WL_HOME>/common/bin/commEnv.sh, which is
    the same for both platform and server installations of weblogic and has only
    weblogic.jar in the CLASSPATH.
    Looking at historical cases, the steps to start NodeManager successfully in a
    platform domain are:
    1.
    a. Copy admin server classpath (from <user Domain>/startWebLogic.sh) to
    that of all managed servers in the 'Remote Start' tab of the WLS Console
    OR
    b. Copy admin server classpath to <WL_HOME>/server/bin/startNodeManager.sh
    (If the same nodemanager is used to manage server domain servers and platform
    domain servers, will there be any issue with this approach??)
    2. Copy the wsrpKeystore.jks file from your domain directory to the
    nodemanager directory (the parent of the directory where all the server
    directories are replicated in the node manager. By default: <WL
    HOME>/common/nodemanager)
    But these steps are not publicly documented in edocs.
    CONFIGURATION:
    Weblogic Platform Domain 8.1 (all service packs)
    WORKAROUND:
    Steps 1 and 2 above.

  • WebLogic 8.1 SP2 bug in JDBC Pool creation for IBM Informix Driver - Type 4 XA

    Funny business happens when you create a JDBC Connection Pool with IBM's Informix Driver - Type 4 XA under WebLogic 8.1 SP2
    I have included the ifxjdbc.jar and ifxjdbcx.jar in the classpath in the the extENV.cmd, but I kept getting errors on connection:
    weblogic.common.ResourceException: 0:com.informix.asf.IfxASFException: Attempt to connect to database server (myhost) failed. - with nested exception:
    [weblogic.common.ResourceException: com.informix.asf.IfxASFException: Attempt to connect to database server (myhost) failed.]
    at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1180)
    at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1040)
    Then I realised the WebLogic console was swapping these properties:
    serverName=ol_myserver
    ifxIFXHOST=myhost
    Terrible forehead-slap!
    I rechecked and this what happens:
    Informix Server: -> ifxIFXHOST
    Host Name: -> serverName
    But the URL is correct.
    jdbc:informix-sqli://myhost:1543/mydb:informixServer=ol_myserver
    Notice that the exception message says:
    Attempt to connect to database server (myhost) failed.
    Alpha

    Alpha Lau wrote:
    Funny business happens when you create a JDBC Connection Pool with IBM's
    Informix Driver - Type 4 XA under WebLogic 8.1 SP2
    I have included the ifxjdbc.jar and ifxjdbcx.jar in the classpath in the
    the extENV.cmd, but I kept getting errors on connection:
    weblogic.common.ResourceException: 0:com.informix.asf.IfxASFException:
    Attempt to connect to database server (myhost) failed. - with nested
    exception:
    [weblogic.common.ResourceException: com.informix.asf.IfxASFException:
    Attempt to connect to database server (myhost) failed.]
    at
    weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1180)
    at
    weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1040)
    Then I realised the WebLogic console was swapping these properties:
    serverName=ol_myserver
    ifxIFXHOST=myhost
    Terrible forehead-slap!
    I rechecked and this what happens:
    Informix Server: -> ifxIFXHOST
    Host Name: -> serverName
    But the URL is correct.
    jdbc:informix-sqli://myhost:1543/mydb:informixServer=ol_myserver
    Notice that the exception message says:
    Attempt to connect to database server (myhost) failed.
    AlphaHi. If the URL has a particular property value, then don't add the property
    redundantly in the pool's properties.
    Joe

  • Does Oracle 8.1.5 with weblogic 6.1 sp2 suppports Distributed Transactions ---A really night Mare

              Which version of jdbc thin driver should i use to achieve distributed transaction
              with oracle 8.1.5 in weblogic 6.1 sp2
              right now if iam using the driver classes provided in weblogic.jar iam gettig the
              following Exception
              AccountBean.ejbCreate( id = accountId, initial balance = $ 3000.0)
              java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured
              in the transaction branch start(
              ) failed on resource 'OracleXAPool' Unexpected error during start for XAResource
              'OracleXAPool': null
              at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1044)
              at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1010)
              at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:148)
              at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java:226)
              at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:135)
              at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:76)
              at examples.ejb.basic.beanManaged.AccountBean.ejbCreate(Unknown Source)
              at examples.ejb.basic.beanManaged.AccountBean_g1748h_Impl.ejbCreate(AccountBean_g1748h_Impl.java:172)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.ejb20.manager.DBManager.create(DBManager.java:492)
              at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:462)
              at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:190)
              at examples.ejb.basic.beanManaged.AccountBean_g1748h_HomeImpl.create(AccountBean_g1748h_HomeImpl.java:76)
              at examples.ejb.basic.beanManaged.AccountBean_g1748h_HomeImpl_WLSkel.invoke(Unknown
              Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:288)
              at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:257)
              at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:158)
              at weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92)
              at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:253)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:220)
              at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
              at $Proxy126.create(Unknown Source)
              at examples.wtc.atmi.simpapp.ToupperBean.putMessage(ToupperBean.java:194)
              at examples.wtc.atmi.simpapp.ToupperBean_8roqg7_EOImpl.putMessage(ToupperBean_8roqg7_EOImpl.java:284)
              at examples.wtc.atmi.simpapp.ToupperBean_8roqg7_EOImpl_WLSkel.invoke(Unknown
              Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:288)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:257)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              Regards
              Ranga Rao
              

              Oracle Server 8.1.5 does not provide support for 2PC.
              Full XA support is provided from version 8.1.7.
              Sergi
              "Lawrence" <[email protected]> wrote:
              >
              >Ranga,
              >Please use classes12.zip for this.If you still find problem, please let
              >me know.
              >Thanks
              >Lawrence
              >
              >"Ranga Rao" <[email protected]> wrote:
              >>
              >>
              >>Which version of jdbc thin driver should i use to achieve distributed transaction
              >>with oracle 8.1.5 in weblogic 6.1 sp2
              >>
              >>right now if iam using the driver classes provided in weblogic.jar iam
              >gettig
              >>the
              >>following Exception
              >>
              >>////////////////////////////////////////////////////////////////////////////////////////////
              >>AccountBean.ejbCreate( id = accountId, initial balance = $ 3000.0)
              >>java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
              >has
              >>occured
              >>in the transaction branch start(
              >>) failed on resource 'OracleXAPool' Unexpected error during start for XAResource
              >>'OracleXAPool': null
              >> at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1044)
              >> at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1010)
              >> at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:148)
              >> at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java:226)
              >> at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:135)
              >> at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:76)
              >> at examples.ejb.basic.beanManaged.AccountBean.ejbCreate(Unknown
              >>Source)
              >> at examples.ejb.basic.beanManaged.AccountBean_g1748h_Impl.ejbCreate(AccountBean_g1748h_Impl.java:172)
              >> at java.lang.reflect.Method.invoke(Native Method)
              >> at weblogic.ejb20.manager.DBManager.create(DBManager.java:492)
              >> at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:462)
              >> at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:190)
              >> at examples.ejb.basic.beanManaged.AccountBean_g1748h_HomeImpl.create(AccountBean_g1748h_HomeImpl.java:76)
              >> at examples.ejb.basic.beanManaged.AccountBean_g1748h_HomeImpl_WLSkel.invoke(Unknown
              >>Source)
              >> at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:288)
              >> at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
              >> at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:257)
              >> at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:158)
              >> at weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92)
              >> at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112)
              >> at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:253)
              >> at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:220)
              >> at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
              >> at $Proxy126.create(Unknown Source)
              >> at examples.wtc.atmi.simpapp.ToupperBean.putMessage(ToupperBean.java:194)
              >> at examples.wtc.atmi.simpapp.ToupperBean_8roqg7_EOImpl.putMessage(ToupperBean_8roqg7_EOImpl.java:284)
              >> at examples.wtc.atmi.simpapp.ToupperBean_8roqg7_EOImpl_WLSkel.invoke(Unknown
              >>Source)
              >> at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:288)
              >> at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:257)
              >> at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >>/////////////////////////////////////////////////////////////////////////////////
              >>
              >>Regards
              >>Ranga Rao
              >>
              >>
              >
              

  • Weblogic 8.1 SP2 ORA-01000 caused by Weblogic's pending XA recovery process.

    Hi, we are migrating our application from Weblogic 6.1 SP5 to Weblogic 8.1
    SP2 and we are facing the nasty ORA-01000 problem.
    After tracking it for some days we happened to find "what" was causing it.
    After issuing the following select on an Oracle instance used by a weblogic
    running for a day
    SELECT sql_text,count(*) FROM V$OPEN_CURSOR
    GROUP BY sql_text
    ORDER BY sql_text
    and this is what we get::
    SQL_TEXT COUNT(*)
    ALTER SESSION SET NLS_LANGUAGE = 'AMERICAN' 2
    ALTER SESSION SET NLS_TERRITORY = 'AMERICA' 2
    SELECT 1 FROM DUAL 2
    SELECT VALUE FROM NLS_INSTANCE_PARAMETERS WHERE PARAMETER =' 2
    SELECT count (*) FROM SYS.DBA_PENDING_TRANSACTIONS 2
    SELECT formatid, globalid, branchid FROM SYS.DBA_PENDING_TRA 2669
    SELECT max(version) FROM "SYS"."JAVA$POLICY$SHARED$TABLE" 2
    begin :1 := JAVA_XA.xa_commit_new (:2,:3,:4,:5); end; 2
    begin :1 := JAVA_XA.xa_end_new(:2,:3,:4,:5); end; 2
    begin :1 := JAVA_XA.xa_start_new(:2,:3,:4,:5,:6); end; 2
    insert into javasnm$(short, longname, longdbcs) values(:1,:2 2
    select longname from javasnm$ where short = :1 2
    (In fact there are two Weblogic instances running against the same Oracle
    instance and as we didn't filtered by connection I supouse that's why
    numbers "seem" to be "duplicated")
    We do currently have 1500 cursors max declared for session in our Oracle's
    ora.init file.
    After activating Weblogic's jdbc.log we have seen that with an interval of 5
    seconds the
    SELECT formatid, globalid, branchid FROM SYS.DBA_PENDING_TRANSACTIONS
    is issued against the DBMS.
    After executing both selects on an SQLPLUS console we have seen that the
    SELECT count(*)... sentence returns 1 and after looking at
    SYS.DBA_2PC_PENDING table there is one transaction on it (although it was
    already manually rollback forced three months ago). I know we should delete
    already forced transactions in order to clean up that table but the fact is
    we didn't and maybe that is what is causing Weblogic issuing the second
    select (the SELECT formatid, globalid... one) periodically.
    A number of questions come to our mind:
    1. Is this Weblogic's correct behaviour? I mean, is it normal for weblogic
    to issue this select every five seconds?
    If yes.
    2. Why is this select leaving opened cursors? I presume that this select is
    being executed within a transaction and it's neither commited nor rolledback
    If actually it is being executed within a transaction then:
    3. Why is Weblogic opening a transaction to issue a select?
    As additional info we have two datasources configured into our weblogic
    server, I must say we do use TopLink as our persistence manager and it
    requires both transactional (XA) and not transactional datasources to work.
    We are using Oracle thin drivers (classes12.zip) to connect to an Oracle
    8.1.7 database instance. I know that Weblogic 8.1 now ships with the
    ojdbc14.jar Oracle thin driver classes but we are not sure if we can use it
    with Oracle 8.1.7 (as it seems to be prepared to be used with Oracle 9.0.2.
    Is it?).
    Looking at jdbc.log we can also see this at the beginging of the file:
    java.sql.SQLException: SQL operations are not allowed with no global
    transaction by default for XA drivers. If the XA driver supports performing
    SQL operations with no global transaction, explicitly allow it by setting
    "SupportsLocalTransaction" JDBC connection pool property to true. In this
    case, also remember to complete the local transaction before using the
    connection again for global transaction, else a XAER_OUTSIDE XAException may
    result. To complete a local transaction, you can either set auto commit to
    true or call Connection.commit() or Connection.rollback().
    I have readed somewhere at edocs.bea.com that Weblogic 8.1 -by default-
    begins a transaction whenever using an XA connection (as some XA drivers
    require a transaction to be started when using them, although IIRC this can
    be disabled on Weblogic's console). If in fact it happens that we can
    disable the default transaction oppening when using an XA connection, is it
    safe? Is there a prefered way to solve this than disabling the transaction
    "auto begining" feature?
    I think there is also possible to disable Weblogic's pending transactions
    auto-recover mechanism but we think this is a great Weblogic feature and we
    would prefer not having to do it. As in two years we have managed to get
    about three of them due to unexpected server crashes (even if it those cases
    Weblogic 6.1 didn't managed to recover them at least it showed the problem
    on the log).
    Thanks if advance.
    Regards.
    Ignacio.

    Seems that removing classes12.zip from the classpath solves the problem. I
    don't get that periodic error any more so now I don't get the ORA-01000. I
    still seeing -from time to time- the "SQL operations are not allowed with no
    global
    transaction by default for XA drivers" error in the jdbc.log though, so I
    presume the ORA-01000 would raise sooner or later but now with a much larger
    period after starting the server.
    Well there seems that ojdbc14.jar has not so subtle changes. Let's hope
    there are not "newer" issues with it that would not happen with
    classes12.zip.
    Ignacio.

  • Weblogic 6.1 sp2 & Oracle9i

    Background:
    Our system is running on weblogic 6.1 sp2 & oracle 8i rel 8.1.7.
    We are intend to migrate the DB to oracle 9i rel 2.
    Query:
    i have succesfully migrated DB to oracle 9i and i have no problem to connect DB
    from client. The problem i faced is our system fails to connect to DB which is
    on 9i via weblogic connection pool, but if i divert to DB connection in weblogic
    to DB in oracle 8i, it is running smooth. What i have not done?

    You need to have /export/home/bea/wlserver6.1/lib/solaris/oci901_8 in your LD_LIBRARY_PATH env variable so that the library
    can be found and loaded dynamically. Check the startWebLogic.sh script for an example and make sure that it is getting set
    appropriately when you start the server.
    Bill
    Winson Lee wrote:
    Hello,
    I have a problem about jDriver
    the configuration is:
    solaris 8
    WLS 6.1 sp2
    Oracle9i 9.0.1
    jDriver oci 901_8
    (Weblogic server and Oracle db in same machine)
    I follow the "Installing WebLogic jDriver for Oracle" setting from BEA online
    documantation.
    but I got some error and exception as follow:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.UnsatisfiedLinkError:
    /export/home/bea/wlserver6.1/lib/solaris/oci901_8/libweblogicoci37.so: ld.so.1:
    /export/home/bea/jdk131/jre/bin/../bin/sparc/native_threads/java: ?P?R??: /usr/local/oracle/OraHome1/lib/libclntsh.so.9.0:
    ???~?? ELF ??§O?G ELFCLASS64
    at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
    at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
    somebody can give me a hang,thanks!!!
    -Winson

  • Weblogic 6.1 SP2 hangs up at database command, PATCH needed!

    Hello,
    I use weblogic 6.1 SP2 on Windows and Solaris
    DB-Driver: Oracle Thin Driver for Oracle 9i
    Database OP System: Win2000
    My application runs fine. After some time (about 15.000 db operations)
    at load tests, the weblogic 6.1 server hangs up without an error message
    in the logs at a any desired database command.
    I use the database pool from weblogic.
    The database operations are made with the TX-Datasource.
    The main database operation is a call of an oracle stored
    procedure.
    I suppose, that the weblogic hangs up in a synchronized
    block of the pool, but the crash could also have an other reason.
    After the crash, the whole instance is dead and must be restarted.
    I can reconstruct the crash on windows and solaris.
    I always thought, weblogic is reliably?
    Is there any patch to fix this problem?
    I am very thankful for every help to fix this problem.
    Thank you in advance
    Markus

    Hi,
    here is the source code of the the stateless session bean (S1), which
    calles the oracle stored procedure.The commit or rollback is done in
    the main interface (stateless session bean with user managed
    transactions).
    java.sql.CallableStatement stmt=null;
    java.sql.Connection conn = null;
    try {
    javax.sql.DataSource ds =
    at.one.bmw.system.SystemConfig.getDataSource();
    conn=ds.getConnection();
    stmt=conn.prepareCall("{call routeChargingRecord(?,?,?,?,?,
    int i=1;
    stmt.setString(i++,seq_number);
    stmt.setInt(i++,custTypeID.intValue());
    stmt.setString(i++,msisdn.toString());
    stmt.setLong(i++,billing_serviceID.longValue());
    stmt.setLong(i++,serviceGroupID.longValue());
    stmt.setString(i++,transactionID);
    stmt.setInt(i++,typeID.intValue());
    stmt.setInt(i++,applicationID.intValue());
    stmt.setString(i++,gateway_number);
    stmt.setString(i++,smsc_serviceID);
    stmt.setString(i++,smsc_tarifID);
    stmt.setString(i++,desc);
    stmt.setString(i++,beneficiaries);
    stmt.setString(i++,attr0);
    stmt.setString(i++,attr1);
    stmt.setString(i++,attr2);
    stmt.setString(i++,attr3);
    stmt.setString(i++,deliveryNotes);
    int xx=stmt.executeUpdate();
    try { stmt.close();  } catch (Exception en) {}
    try { conn.close();  } catch (Exception eb) {}
    conn=null; stmt=null;
    } // end try
    catch (Exception e) {
    this.sessionContext.setRollbackOnly();
    try { stmt.close();  } catch (Exception en) {}
    try { conn.close();  } catch (Exception eb) {}
    throw new EJBAppException(msg+"\n"+e.getMessage());
    } // end catch
    Thank you for your help.
    "Sree Bodapati" <[email protected]> wrote in message news:<[email protected]>...
    Hi Markus,
    Can you please post the test code that can demonstrate the hang here.
    sree
    "Markus Häusler" <[email protected]> wrote in message
    news:[email protected]...
    Hello,
    I use weblogic 6.1 SP2 on Windows and Solaris
    DB-Driver: Oracle Thin Driver for Oracle 9i
    Database OP System: Win2000
    My application runs fine. After some time (about 15.000 db operations)
    at load tests, the weblogic 6.1 server hangs up without an error message
    in the logs at a any desired database command.
    I use the database pool from weblogic.
    The database operations are made with the TX-Datasource.
    The main database operation is a call of an oracle stored
    procedure.
    I suppose, that the weblogic hangs up in a synchronized
    block of the pool, but the crash could also have an other reason.
    After the crash, the whole instance is dead and must be restarted.
    I can reconstruct the crash on windows and solaris.
    I always thought, weblogic is reliably?
    Is there any patch to fix this problem?
    I am very thankful for every help to fix this problem.
    Thank you in advance
    Markus

  • How to use call back and user session id based conversation with web service in weblogic 6.1 sp2 ?????????

    Hi, every one:
    Here's my question of my day - >>>
    I am using weblogic 6.1 SP2 right now - running on Unix and Win 2K, and
    I got a web service up and running called Price Update web service through
    which user can pick up a price and push a deal to another web service
    called: deal service, the deal service will take the user deal and book the
    deal ( sending a JMS message to a Queue, a MD will pick up and do the work,
    then send the confirmation to another JMS Queue ), then the confirmation
    will be picked up and sent to another web service , called: User Deal
    Confirmation Service, here's the question:
    1. Since the client application is only allowed to see its own confirmed
    deals, how I can make the confirmed deal encrypted based on a server
    generated key or the session id that client application provides
    2. Now, I have 3 webservices: update, deal and confirm, each of them has a
    client.jar file available - from the client application point of view, do I
    need all these 3 client.jar, or I just need one of them ?????
    3. How can I use web service call back in wls 6.1 sp2 ?????? - in the 7.0
    beta, you can do this easily in the workshop, in the second question above,
    I think I need some how relate the confirmation to the client conversation
    id ??
    thanks a lot for the input, have a nice day.
    regards,
    mark.

    Any comments ?
    mark
    "markhu" <[email protected]> wrote in message
    news:[email protected]..
    Hi, every one:
    Here's my question of my day - >>>
    I am using weblogic 6.1 SP2 right now - running on Unix and Win 2K,and
    I got a web service up and running called Price Update web service through
    which user can pick up a price and push a deal to another web service
    called: deal service, the deal service will take the user deal and bookthe
    deal ( sending a JMS message to a Queue, a MD will pick up and do thework,
    then send the confirmation to another JMS Queue ), then the confirmation
    will be picked up and sent to another web service , called: User Deal
    Confirmation Service, here's the question:
    1. Since the client application is only allowed to see its own confirmed
    deals, how I can make the confirmed deal encrypted based on a server
    generated key or the session id that client application provides
    2. Now, I have 3 webservices: update, deal and confirm, each of them has a
    client.jar file available - from the client application point of view, doI
    need all these 3 client.jar, or I just need one of them ?????
    3. How can I use web service call back in wls 6.1 sp2 ?????? - in the 7.0
    beta, you can do this easily in the workshop, in the second questionabove,
    I think I need some how relate the confirmation to the client conversation
    id ??
    thanks a lot for the input, have a nice day.
    regards,
    mark.

  • Can't deploy a SINGLE bean in weblogic 6.1 SP2 w/o application reload

    Anyone know how to update a single bean in an application without
    redeploying the entire application?
    We have a project containing 101 beans (session and entity) and 372
    jsps which we are deploying on weblogic 6.1, SP2 as a single
    application. The project is deployed in an exploded directory format
    as follows:
    trader/
    META-INF/application.xml
    lib/
    third-party.jar
    third-party.jar (etc.)
    SessionBean.jar
    EntityBean.jar (etc.)
    trader/
    WEB-INF/web.xml
    META-INF/MANIFEST.MF (contains Class-Path: entry to lib dir)
    jsp/html/gif's reside below this point.
    Each bean jar has a META-INF/MANIFEST.MF to resolve third-party
    library dependencies through the use of the Class-Path entry.
    When we we try to update a single bean's implementation, the
    entire application reloads, which can take between 10 - 30 minutes.
    We have tried using the weblogic.deploy tool as well as undeploying
    and redeploying the bean from the console. In both cases, the
    entire application reloads.
    When we use weblogic.deploy, we've tried the following:
    weblogic.deploy
    -url T3://localhost:7001
    update weblogicpwd trader ~/trader/build/SessionBean.jar
    and
    weblogic.deploy
    -url T3://localhost:7001
    -component SessionBean:srvr1
    update weblogicpwd trader ~/trader/build/SessionBean.jar

    Anyone know how to update a single bean in an application without
    redeploying the entire application?
    We have a project containing 101 beans (session and entity) and 372
    jsps which we are deploying on weblogic 6.1, SP2 as a single
    application. The project is deployed in an exploded directory format
    as follows:
    trader/
    META-INF/application.xml
    lib/
    third-party.jar
    third-party.jar (etc.)
    SessionBean.jar
    EntityBean.jar (etc.)
    trader/
    WEB-INF/web.xml
    META-INF/MANIFEST.MF (contains Class-Path: entry to lib dir)
    jsp/html/gif's reside below this point.
    Each bean jar has a META-INF/MANIFEST.MF to resolve third-party
    library dependencies through the use of the Class-Path entry.
    When we we try to update a single bean's implementation, the
    entire application reloads, which can take between 10 - 30 minutes.
    We have tried using the weblogic.deploy tool as well as undeploying
    and redeploying the bean from the console. In both cases, the
    entire application reloads.
    When we use weblogic.deploy, we've tried the following:
    weblogic.deploy
    -url T3://localhost:7001
    update weblogicpwd trader ~/trader/build/SessionBean.jar
    and
    weblogic.deploy
    -url T3://localhost:7001
    -component SessionBean:srvr1
    update weblogicpwd trader ~/trader/build/SessionBean.jar

  • Weblogic 8.1 SP2 + Struts + Internal Servlet Session Process Error Found!

    Hi,
              I have developed a struts 1.1 based webapplication which runs fine on
              weblogic 7 (for one year in production), tomcat 4.1,5 and others but
              refuses to function in weblogic 8.1 sp2!
              This is the stacktrace I get when I try to call an action via the browser:
              java.lang.IllegalStateException: Internal Servlet Session Process Error
              Found!
                   at
                   weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1148)
                   at
                   weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:501)
                   at
                   org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor.java:638)
                   at
                   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
                   at
                   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
                   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
                   javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
                   weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
                   at
                   weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
                   at
                   weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at
                   weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at
                   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
                   at
                   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at
                   weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Just out of curiosity I deployed the struts-examples webapplication from
              the apache jakarta struts distribution and it also fails to run with the
              same error!
              Can anybody help me out with this one? Does anybody experience the same
              thing?
              regards,
              oliver
              p.s. I will also post this message on the struts user list.
              

    Hi,
              I have developed a struts 1.1 based webapplication which runs fine on
              weblogic 7 (for one year in production), tomcat 4.1,5 and others but
              refuses to function in weblogic 8.1 sp2!
              This is the stacktrace I get when I try to call an action via the browser:
              java.lang.IllegalStateException: Internal Servlet Session Process Error
              Found!
                   at
                   weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1148)
                   at
                   weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:501)
                   at
                   org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor.java:638)
                   at
                   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
                   at
                   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
                   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
                   javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
                   weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
                   at
                   weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
                   at
                   weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at
                   weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at
                   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
                   at
                   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at
                   weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Just out of curiosity I deployed the struts-examples webapplication from
              the apache jakarta struts distribution and it also fails to run with the
              same error!
              Can anybody help me out with this one? Does anybody experience the same
              thing?
              regards,
              oliver
              p.s. I will also post this message on the struts user list.
              

  • Using JSTL on Weblogic 8.1 SP2

              I'm trying to create a web app running on Weblogic 8.1 SP2 that uses JSTL tags.
              I've downloaded the Apache 1.0.5 Reference Implementation of the JSTL 1.0 spec,
              but I can't get the sample web-app (standard-examples.war) to work correctly.
              When I go to the "General Purpose Tag Examples" and try to view the Out example
              JSP, I get a large exception saying that java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException
              (full stack trace at bottom). This also happens when I try to view the JSP source
              and pretty much any other example. I found that the German example in "I18N &
              Formatting" works, but running the Italian example gives a new exception:
              Parsing of JSP File '/format/ItalianLocale.jsp' failed:
              /format/ItalianLocale.jsp(12): for tag 'message', property 'bundle' of tag handler
              class 'org.apache.taglibs.standard.tag.rt.fmt.MessageTag', the value must be a
              runtime expression "<%=...%>", since we cannot do an automatic conversion from
              "${itBundle}" to type 'javax.servlet.jsp.jstl.fmt.LocalizationContext' and there
              is no custom property editor for that type
              probably occurred due to an error in /format/ItalianLocale.jsp line 12:
              <fmt:message key="greetingMorning" bundle="${itBundle}"/>
              I can, however, get this to work on Tomcat 5.0. Has any else had this problem?
              Is there something that I'm doing incorrectly?
              Thanks in advance.
              -Kelvin
              ===========================================================
              java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException
                   at java.lang.Class.getDeclaredMethods0(Native Method)
                   at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)
                   at java.lang.Class.getDeclaredMethods(Class.java:1114)
                   at java.beans.Introspector$1.run(Introspector.java:1103)
                   at java.security.AccessController.doPrivileged(Native Method)
                   at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1101)
                   at java.beans.Introspector.getTargetMethodInfo(Introspector.java:966)
                   at java.beans.Introspector.getBeanInfo(Introspector.java:370)
                   at java.beans.Introspector.getBeanInfo(Introspector.java:207)
                   at java.beans.Introspector.(Introspector.java:351)
                   at java.beans.Introspector.getBeanInfo(Introspector.java:207)
                   at java.beans.Introspector.getBeanInfo(Introspector.java:193)
                   at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1323)
                   at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1261)
                   at weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:292)
                   at weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:314)
                   at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
                   at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5015)
                   at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4853)
                   at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4699)
                   at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2094)
                   at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1880)
                   at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1753)
                   at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:963)
                   at weblogic.servlet.jsp.JspParser.doit(JspParser.java:106)
                   at weblogic.servlet.jsp.JspParser.parse(JspParser.java:230)
                   at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125)
                   at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
                   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:367)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:223)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:172)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:518)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:362)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              

              I'm having the same problem, did you find a solution?
              "Kelvin" <[email protected]> wrote:
              >
              >I'm trying to create a web app running on Weblogic 8.1 SP2 that uses
              >JSTL tags.
              > I've downloaded the Apache 1.0.5 Reference Implementation of the JSTL
              >1.0 spec,
              >but I can't get the sample web-app (standard-examples.war) to work correctly.
              >
              >When I go to the "General Purpose Tag Examples" and try to view the Out
              >example
              >JSP, I get a large exception saying that java.lang.NoClassDefFoundError:
              >javax/servlet/jsp/el/ELException
              >(full stack trace at bottom). This also happens when I try to view the
              >JSP source
              >and pretty much any other example. I found that the German example in
              >"I18N &
              >Formatting" works, but running the Italian example gives a new exception:
              >
              >Parsing of JSP File '/format/ItalianLocale.jsp' failed:
              >--------------------------------------------------------------------------------
              > /format/ItalianLocale.jsp(12): for tag 'message', property 'bundle'
              >of tag handler
              >class 'org.apache.taglibs.standard.tag.rt.fmt.MessageTag', the value
              >must be a
              >runtime expression "<%=...%>", since we cannot do an automatic conversion
              >from
              >"${itBundle}" to type 'javax.servlet.jsp.jstl.fmt.LocalizationContext'
              >and there
              >is no custom property editor for that type
              >probably occurred due to an error in /format/ItalianLocale.jsp line 12:
              ><fmt:message key="greetingMorning" bundle="${itBundle}"/>
              >
              >
              >I can, however, get this to work on Tomcat 5.0. Has any else had this
              >problem?
              > Is there something that I'm doing incorrectly?
              >
              >
              >Thanks in advance.
              >-Kelvin
              >
              >===========================================================
              >java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException
              >     at java.lang.Class.getDeclaredMethods0(Native Method)
              >     at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)
              >     at java.lang.Class.getDeclaredMethods(Class.java:1114)
              >     at java.beans.Introspector$1.run(Introspector.java:1103)
              >     at java.security.AccessController.doPrivileged(Native Method)
              >     at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1101)
              >     at java.beans.Introspector.getTargetMethodInfo(Introspector.java:966)
              >     at java.beans.Introspector.getBeanInfo(Introspector.java:370)
              >     at java.beans.Introspector.getBeanInfo(Introspector.java:207)
              >     at java.beans.Introspector.(Introspector.java:351)
              >     at java.beans.Introspector.getBeanInfo(Introspector.java:207)
              >     at java.beans.Introspector.getBeanInfo(Introspector.java:193)
              >     at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1323)
              >     at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1261)
              >     at weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:292)
              >     at weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:314)
              >     at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
              >     at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5015)
              >     at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4853)
              >     at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4699)
              >     at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2094)
              >     at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1880)
              >     at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1753)
              >     at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:963)
              >     at weblogic.servlet.jsp.JspParser.doit(JspParser.java:106)
              >     at weblogic.servlet.jsp.JspParser.parse(JspParser.java:230)
              >     at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125)
              >     at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
              >     at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:367)
              >     at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:223)
              >     at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:172)
              >     at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:518)
              >     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:362)
              >     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
              >     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
              >     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
              >     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
              >     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
              >     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
              >     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              >     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              

  • Java.lang.OutOfMemory error when transforming xml using xsl with Weblogic 6.1 sp2

    Hello,
    I have an OutOfMemoryError when applying an xsl transformation to generate html
    code in a web page. I'm running Weblogic 6.1 sp2
    I think the problem comes from the objectin which th html is stored during the
    transformation. The problem only occurs from a minimal xml size. I could fix
    it by increasing JVM allocated size but I would like to find a more flexible solution.
    If I know an other way to solve this problem, I really would appreciate !
    Thanl you,
    Laurent.
    [AgentsGeres.jsp]

    Hello,
    You might try asking your question in the JSP newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    There just may not be a more flexible solution :-)
    This doc may be of some value, see chapter 2:
    http://edocs.bea.com/wls/docs61/pdf/perform.pdf
    HTH,
    Bruce
    Laurent Gosuin wrote:
    >
    Hello,
    I have an OutOfMemoryError when applying an xsl transformation to generate html
    code in a web page. I'm running Weblogic 6.1 sp2
    I think the problem comes from the objectin which th html is stored during the
    transformation. The problem only occurs from a minimal xml size. I could fix
    it by increasing JVM allocated size but I would like to find a more flexible solution.
    If I know an other way to solve this problem, I really would appreciate !
    Thanl you,
    Laurent.
    Name: AgentsGeres.jsp
    AgentsGeres.jsp Type: Hypertext Markup Language (text/html)
    Encoding: base64

Maybe you are looking for