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

Similar Messages

  • 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

  • Problem building application with weblogic.jar placed out of bea install.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

  • Problem in Interacting with Weblogic JMS through Informatica ETL server

    Hi All,
    We are trying to configure Informatica PowerCenter server to interact with JMS queues created on Weblogic 11gR1 server. We have copied the necessary
    jar file - wlfullclient.jar to the classpath of the Informatica server.
    Now when i try to read contents of a JMS queue created on Weblogic server through Informatica, i get this error:-
    Failed to get the Queue Connection Factory [weblogic.jms.common.DestinationImpl]. Reason: Failed to look up object [While trying to lookup 'weblogic.jms.common.DestinationImpl' didn't find subcontext 'common'. Resolved 'weblogic.jms'Exception Stack: javax.naming.NameNotFoundException: While trying to lookup 'weblogic.jms.common.DestinationImpl' didn't find subcontext 'common'. Resolved 'weblogic.jms' [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'weblogic.jms.common.DestinationImpl' didn't find subcontext 'common'. Resolved 'weblogic.jms']; remaining name 'common/DestinationImpl'
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:464)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:272)
         at weblogic.jndi.internal.ServerNamingNode_1211_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:418)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:406)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at com.informatica.powerconnect.jms.server.common.JNDIConnection.getJNDIObject(JNDIConnection.java:84)
         at com.informatica.powerconnect.jms.server.common.PlginJMSConnection$PlginJMSQueueConnection.createConnection(PlginJMSConnection.java:363)
         at com.informatica.powerconnect.jms.server.common.PlginJMSConnection.<init>(PlginJMSConnection.java:90)
         at com.informatica.powerconnect.jms.server.common.PlginJMSConnection$PlginJMSQueueConnection.<init>(PlginJMSConnection.java:352)
         at com.informatica.powerconnect.jms.server.common.PlginJMSConnection.create(PlginJMSConnection.java:115)
         at com.informatica.powerconnect.jms.server.reader.JMSReaderSQDriver.createPartitionDriver(JMSReaderSQDriver.java:557)
    Caused by: javax.naming.NameNotFoundException: While trying to lookup 'weblogic.jms.common.DestinationImpl' didn't find subcontext 'common'
    I have checked that this class file exists in the above said location :- "weblogic/jms/common/DestinationImpl.class" within the wlfullclient.jar but still the
    code is not able to access the class. Similar error came initially while doing JNDI connection using "weblogic.jndi.WLInitialContextFactory" class but it vanished,
    when i explicitly named the jar file on classpth, instead of just the folder containing the jar file.
    To all the users/experts/moderators of Weblogic - Could you please help me understand why Weblogic is not able to look up subcontext 'common'
    for the class - "weblogic.jms.common.DestinationImpl" ??
    Thanks & Regards
    Raj
    Edited by: user8931188 on May 17, 2012 7:39 AM

    You are experiencing a NameNotFoundException, not ClassNotFoundException so it seems there is something wrong about the client connection code or WebLogic config.
    Can you share your client connection connection config/code?

  • Problem while Connecting with oracle thin driver

    I have been trying for the past two days for connecting oracle 8.1.1.6 using thin driver. I set the classpath also. It throws me the following exception.
    Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap
    ter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at Employee.main(Employee.java:23)
    I am trying to acheive the connection using the following piece of code
    Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@THIRU:1521:ORCL",
                        "scott", "tiger");
    The problem lies in that piece of code only,
    In the TNSNAMES.ora the entries are as follows.
    THIRU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Thiru)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = thiru)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    How to solve this one. Can anybody tell me how to provide the proper url.
    thanks in advance

    You were very close.
    "Thiru" as opposed to "THIRU" should be the name of the machine running the database, but that would imply that the DNS lookups are case sensitive, and we know that's not the case.
    My guess, because the network adapter itself is reporting an error, is that "Thiru" evaluates to an IP address that isn't correct, that is, it's trying to make a connection to a specific address and getting nothing back in return.
    Anyway, I think your program(s) are just fine, and your network is misconfigured. Incidently, it is always a good idea in cases like this to use the full name of the machine, for example...
    ...getConnection( "jdbc:oracle:thin:@thiru.maran1977.com:1521:ORCL"...
    and in the database configuration itself...
    (ADDRESS = (PROTOCOL = TCP)(HOST = thiru.maran1977.com)(PORT = 1521))
    You may also use the IP address if you wish.

  • Castor with Weblogic 8.1 problem

    Hi,
    I am encountering problem using Castor with Weblogic 8.1.
    I unmarshal XML files using Castor. My application works fine outside Weblogic,
    but gives incorrect xml content when deployed.
    My xml is like this :
    <emrRoot>
    <emrNode>
    </emrNode>
    </emrRoot>
    When deployed in Weblogic, on parshing this document using Castor API, it shows
    that there are 0 'emrNode' inside 'emrRoot'.
    This is what the Weblogic parser is misinterpreting it as:
    <?xml version="1.0" encoding="UTF-8"?>
    <emr-root emr-node-count="0" emr-dynanode-count="0" valid="true"/>
    Could someone pls help.
    Thanks.
    Regards,
    Shafique.

    Hi,
    Generally this type of exception raised by a class or the serialization runtime when a class may not be serialized.The argument should be the name of the class.
    You might be forgot to implement the serializable interface for the class in struts frame work.
    check it properly.
    Regards
    Anilkumar kari

  • Any issues using Apache's SOAP version 2 with Weblogic

    Hi,
    The Weblogic sever is not one in the list of servers that have been tried
    succesfully with Apache's SOAP. This is the list:
    Apache Tomcat v3.1
    IBM WebSphere v3.02
    JRun vx.y.z
    Microsoft Internet Information Server
    Has anyone tried SOAP with Weblogic?
    A recent thread mentions some problems (and solutions) with Weblogic and Xerces 1.1.2.
    SOAP requires Xerces 1.1.3. Therefore, I would also like to know if there is any issue
    using Weblogic with Xerces 1.1.3. I am using Weblogic 4.5 but I would try 5.1 if necessary
    for this.
    Thanks in advance,
    Javier

    In the apache soap binary download, there is a soap web application ( in the
    form of an exploded war file ). Just copy and paste this directory in the
    domain's "applications" directory. You will need to add a servlet-mapping
    element in the web.xml file, which could be something like this
    <servlet-mapping>
    <servlet-name>rpcrouter</servlet-name>
    <url-pattern>/rpcrouter/*</url-pattern>
    </servlet-mapping>
    Cheers
    Sandeep
    "Jan-Paul" <[email protected]> wrote in message
    news:[email protected]...
    Do you have something similar for the BEA Weblogic 6.0?
    "Sudhir Kolli" <[email protected]> wrote in message
    news:[email protected]...
    You might want to take look at this:
    David Jian <[email protected]> wrote in message
    news:[email protected]...
    Gavin:
    I did the same thing except for servlet register. soap is webapp to WLS,so
    I add:
    weblogic.httpd.webApp.soap=D:/foo/soap-2_0/webapps/soap
    to weblogic.properties. Because sopa20 has a web.xml file in
    /foo/soap-2_0/webapp/soap/web-inf, I can only edit it to registerrpcrouter
    and keep the default webapp as the same. Otherwise, how do you add thesoap
    to you myserver/public_html? Unfortunately, it does not recognize the
    URL
    when I click the Visit link on soap admin page.
    I edit my web.xml as
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name>
    rpcrouter
    </servlet-name>
    <servlet-class>
    org.apache.soap.server.http.RPCRouterServlet
    </servlet-class>
    <init-param>
    <param-name>ServicesStore</param-name>
    <param-value>DeployedServices.ds</param-value>
    </init-param>
    </servlet>
    </web-app>
    Can you try this? How did you add your rpcrouter servlet to the defualt
    webapp?
    Thanks
    DJ
    "Gavin Hyde" <[email protected]> wrote in message
    news:[email protected]...
    After several painstaking hours I finally was able to get Apache Soap
    v2.0
    to work with weblogic. The version of weblogic I'm using is 4.51.
    You
    can
    get Apaceh soap from http://www.apache.org/soap. This version of Soap
    requires xerces v 1.2.1 which you can get from
    http://www.apache.org/xerces-j. To make it work with weblogic you
    have
    to
    first place the soap.jar file included with Apache soap and thexerces.jar
    file in both the classpath AND WEBLOGIC_CLASSPATH. Don't ask me why
    but
    I
    wasn't able to get it to work without it in both. Next you have to
    add
    the
    directory that your class files reside in to the classpath. Next you
    have
    to register the RCPRouter servlet in weblogic. The line to do thislooks
    like this:
    weblogic.httpd.register.rpcrouter=org.apache.soap.server.http.RPCRouterServl
    et
    where rpcrouter can be any name you want to use to call the routerservlet.
    That's all I had to do to set it up to view the stock quote example
    and
    the
    address book. The calculator is giving me a few other probems at the
    moment. Don't forget to deploy the different services but the command
    for
    that is given in the readme file for each example. For the router URL
    I
    used http://localhost:7001/rpcrouter which is that servlet you
    registered
    above.
    Gavin
    "Javier Deniz" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    The Weblogic sever is not one in the list of servers that have been
    tried
    succesfully with Apache's SOAP. This is the list:
    Apache Tomcat v3.1
    IBM WebSphere v3.02
    JRun vx.y.z
    Microsoft Internet Information Server
    Has anyone tried SOAP with Weblogic?
    A recent thread mentions some problems (and solutions) with Weblogic
    and
    Xerces 1.1.2.
    SOAP requires Xerces 1.1.3. Therefore, I would also like to know if
    there
    is any issue
    using Weblogic with Xerces 1.1.3. I am using Weblogic 4.5 but I
    would
    try
    5.1 if necessary
    for this.
    Thanks in advance,
    Javier

  • Problem in getting Time info with webLogic using Oracle Thin Driver

    We have a servlet to store/retrieve date/time data from an Oracle 9i db using use the Oracle thin driver. Everyting is ok when run on JSDK2.1 servlet container or Tomcat. But when run under WebLogic 8.1, we have problem with time portion info, it is lost. After debuging, we found under WebLogic, the returned object type is a java.sql.Date which by definition has no time info, while in other servlet containers, it is a java.sql.Timestamp. Storing date/time data in a Date column is ok under WebLogic because we see the time portion data in the db table. We did not set anything about database/jdbc in WebLogic.
    It would be greatly appreciated if someone can explain what effect WebLogic has on a servlet that has its own jdbc connection or how WebLogic could change data type from a jdbc sql statement.

    That's a function of the JDBC driver, not the J2EE app server.
    Sounds like maybe you're using the WebLogic 8.1 driver when you deploy with WL instead of the Oracle driver. You certainly can deploy with the Oracle driver. Go into the WL config manager and set it up to use the ojdbc14.jar instead.
    %

  • 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

  • Can't create connection pool using weblogic 6.1 with Oracle thin driver

    Hi !
    I have tried to create a connection pool from adminconsole. My CLASSPATH setting
    is as follows :
    F:\SOAP\soap-2_2\lib;F:\SOAP\soap-2_2;
    D:\Oracle\Ora81\jdbc\lib\classes12.zip;
    D:\Oracle\Ora81\jdbc\lib\nls_charset12.zip;
    D:\Oracle\Ora81\jdbc\lib\classes111.zip;
    F:\SOAP\soap-2_2\lib\jaf-1.0.1\activation.jar;
    D:\Oracle\Ora8\Apache\Jsdk\src\javax\servlet\http;
    D:\Oracle\Ora81\Apache\Jsdk\src\javax\servlet;
    D:\Oracle\Ora81\lib;
    F:\ant\jakarta-ant1.\bin;
    E:\weblogic\oci\classes;
    E:\weblogic\oci\classes\weblogic\xml\license;
    E:\weblogic\oci\license;
    E:\bea\wlserver6.1\lib;
    E:\PetStoreHome\petstore1.3;
    Following is the configuration.
    #Oracle thin driver Method #2
    weblogic.jdbc.connectionPool.thin=\      
    url=jdbc:oracle:thin:@test:1521:PROJECT,\      
    driver=oracle.jdbc.driver.OracleDriver,\
         initialCapacity=4,\
         maxCapacity=10,\
         capacityIncrement=1,\
         props=user=xxx;password=xxx;server=test
    #Add a TXDataSource for the connection pool:
    weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.thin=thin
    # Add an ACL for the connection pool:
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.thin=everyone
    I did append the file weblogic.properties with the above config. Now when I start
    the Weblogic server I get the following error :
    Starting WebLogic Server ....
    <Nov 29, 2001 2:24:16 PM EST> <Notice> <Management> <Loading configuration file
    .\config\petstore\config.xml ...>
    <Nov 29, 2001 2:24:22 PM EST> <Notice> <WebLogicServer> <Starting WebLogic Admin
    Server "petstoreServer" for domain "petstore">
    <Nov 29, 2001 2:24:26 PM EST> <Notice> <Management> <Starting discovery of Manag
    ed Server... This feature is on by default, you may turn this off by passing -Dw
    eblogic.management.discover=false>
    <Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data Source creation:
    weblogic.common.ResourceException: DataSource(jdbcthin.SignOnDB) can't be creat
    ed with non-existent Pool (connection or multi) (thin)>
    <Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data Source creation:
    weblogic.common.ResourceException: DataSource(jdbcthin.EstoreDB) can't be creat
    ed with non-existent Pool (connection or multi) (thin)>
    <Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data Source creation:
    weblogic.common.ResourceException: DataSource(jdbcthin.InventoryDB) can't be
    cr
    eated with non-existent Pool (connection or multi) (thin)>
    <Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data Source creation:
    weblogic.common.ResourceException: DataSource(weblogic.jdbc.jts.thin) can't be
    created with non-existent Pool (connection or multi) (thin)>
    <Nov 29, 2001 2:24:41 PM EST> <Notice> <Management> <Application Poller not star
    ted for production server.>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    After the server has booted, your browser should
    automatically launch and point to the WebLogic Server
    Tour running on this server. If your browser fails to
    launch, point your browser to the URL
    "http://burtsun:7001"
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <Nov 29, 2001 2:24:41 PM EST> <Notice> <WebLogicServer> <ListenThread listening
    on port 7001>
    <Nov 29, 2001 2:24:41 PM EST> <Notice> <WebLogicServer> <SSLListenThread listeni
    ng on port 7002>
    <Nov 29, 2001 2:24:42 PM EST> <Notice> <WebLogicServer> <Started WebLogic Admin
    Server "petstoreServer" for domain "petstore" running in Production Mode>
    Could anyone please help me ?
    Thanks
    ..Madhuri

    Madhuri wrote:
    >
    Hi Joe !
    I didn't get what you would like to point out. Actully, I am using same config.,
    but not to disclose the info. I gave you @test and username/password xxx/xxx.Ok. Now, assuming your pool looks like what I showed, the issue is probably
    that there are multiple Oracle driver zips around, and your standlaone program
    is using a different, newer, better one than the server. Our weblogic jar files
    include a classes12.zip Oracle thin driver, but there are multiple versions of
    classes12.zip, and the latest from oracle is better than the one we sealed into
    our packaging. Please use jave -verbose to identify exactly which Oracle sip file
    you are using in the successful case, then make sure this zip file comes before
    any weblogic stuff in your weblogic server's classpath, so we'll use the same
    driver. This should work. Edit the script you sue to start weblogic to verify
    the classpath does end up with the oracle driver ahead of all weblogic stuff.
    Joe
    >
    Please let me know.
    Thanks
    .Madhuri
    Joseph Weinstein <[email protected]> wrote:
    Madhuri wrote:
    Hi Joe !
    Here is the sample java code. Please let me know how I can test thisin weblogic
    6.1.
    Thanks
    .MadhuriWell fine! That was easy. Your pool definition didn't have the same URL
    or
    user or password as this code. Try this for your pool definition:
    weblogic.jdbc.connectionPool.thin=\
    url=jdbc:oracle:thin:@adl-gbsdevel:1521:PROJECT,\
    driver=oracle.jdbc.driver.OracleDriver,\
    initialCapacity=10,\
    maxCapacity=10,\
    capacityIncrement=1,\
    testConnsOnReserve=true,\
    testTable=dual,\
    props=user=mkelkar;password=mkelkar
    Let me know,,,
    Joe
    Joseph Weinstein <[email protected]> wrote:
    The key is in the log:
    Could not create pool connection.
    The DBMS driver exception was:
    java.sql.SQLException: invalid arguments in call
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    Now we need to simplify the problem. Please make a simple 15-line
    standalone
    Java program like you'd find with the Oracle driver's examples, with
    no
    weblogic code in the picture. Just make a JDBC connection using Oracle's
    driver, and show me that code. Then I can translate that into a pool
    definition.
    Joe
    Madhuri wrote:
    Hi Joe !
    Thanks for your prompt reply. I tried the way you suggested but
    it
    still it gives
    me the same error. I am attching here the weblogic.log file.
    Thanks again
    ..Madhuri
    Joseph Weinstein <[email protected]> wrote:
    We'd want to see the log during booting, where the pool
    is being created to see why that failed. Try a pool
    definition with no blank lines, no whitespace at the
    end of lines, and no server property. The thin driver
    doesn't like that:
    weblogic.jdbc.connectionPool.thin=\
    url=jdbc:oracle:thin:@test:1521:PROJECT,\
    driver=oracle.jdbc.driver.OracleDriver,\
    initialCapacity=4,\
    maxCapacity=10,\
    capacityIncrement=1,\
    props=user=xxx;password=xxx
    Joe
    Madhuri wrote:
    Hi !
    I have tried to create a connection pool from adminconsole. My
    CLASSPATH
    setting
    is as follows :
    F:\SOAP\soap-2_2\lib;F:\SOAP\soap-2_2;
    D:\Oracle\Ora81\jdbc\lib\classes12.zip;
    D:\Oracle\Ora81\jdbc\lib\nls_charset12.zip;
    D:\Oracle\Ora81\jdbc\lib\classes111.zip;
    F:\SOAP\soap-2_2\lib\jaf-1.0.1\activation.jar;
    D:\Oracle\Ora8\Apache\Jsdk\src\javax\servlet\http;
    D:\Oracle\Ora81\Apache\Jsdk\src\javax\servlet;
    D:\Oracle\Ora81\lib;
    F:\ant\jakarta-ant1.\bin;
    E:\weblogic\oci\classes;
    E:\weblogic\oci\classes\weblogic\xml\license;
    E:\weblogic\oci\license;
    E:\bea\wlserver6.1\lib;
    E:\PetStoreHome\petstore1.3;
    Following is the configuration.
    #Oracle thin driver Method #2
    weblogic.jdbc.connectionPool.thin=\
    url=jdbc:oracle:thin:@test:1521:PROJECT,\
    driver=oracle.jdbc.driver.OracleDriver,\
    initialCapacity=4,\
    maxCapacity=10,\
    capacityIncrement=1,\
    props=user=xxx;password=xxx;server=test
    #Add a TXDataSource for the connection pool:
    weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.thin=thin
    # Add an ACL for the connection pool:
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.thin=everyone
    I did append the file weblogic.properties with the above config.
    Now
    when I start
    the Weblogic server I get the following error :
    Starting WebLogic Server ....
    <Nov 29, 2001 2:24:16 PM EST> <Notice> <Management> <Loading
    configuration
    file
    \config\petstore\config.xml ...>
    <Nov 29, 2001 2:24:22 PM EST> <Notice> <WebLogicServer> <Starting
    WebLogic
    Admin
    Server "petstoreServer" for domain "petstore">
    <Nov 29, 2001 2:24:26 PM EST> <Notice> <Management> <Starting
    discovery
    of Manag
    ed Server... This feature is on by default, you may turn this
    off
    by
    passing -Dw
    eblogic.management.discover=false>
    <Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data
    Source
    creation:
    weblogic.common.ResourceException: DataSource(jdbcthin.SignOnDB)
    can't
    be creat
    ed with non-existent Pool (connection or multi) (thin)>
    <Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data
    Source
    creation:
    weblogic.common.ResourceException: DataSource(jdbcthin.EstoreDB)
    can't
    be creat
    ed with non-existent Pool (connection or multi) (thin)>
    <Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data
    Source
    creation:
    weblogic.common.ResourceException: DataSource(jdbcthin.InventoryDB)can't be
    cr
    eated with non-existent Pool (connection or multi) (thin)>
    <Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data
    Source
    creation:
    weblogic.common.ResourceException: DataSource(weblogic.jdbc.jts.thin)can't be
    created with non-existent Pool (connection or multi) (thin)>
    <Nov 29, 2001 2:24:41 PM EST> <Notice> <Management> <Application
    Poller
    not star
    ted for production server.>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    After the server has booted, your browser should
    automatically launch and point to the WebLogic Server
    Tour running on this server. If your browser fails to
    launch, point your browser to the URL
    "http://burtsun:7001"
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <Nov 29, 2001 2:24:41 PM EST> <Notice> <WebLogicServer> <ListenThreadlistening
    on port 7001>
    <Nov 29, 2001 2:24:41 PM EST> <Notice> <WebLogicServer> <SSLListenThreadlisteni
    ng on port 7002>
    <Nov 29, 2001 2:24:42 PM EST> <Notice> <WebLogicServer> <Started
    WebLogic
    Admin
    Server "petstoreServer" for domain "petstore" running in ProductionMode>
    Could anyone please help me ?
    Thanks
    ..Madhuri
    Name: weblogic.log
    weblogic.log Type: Text Document (application/x-unknown-content-type-txtfile)
    Encoding: base64
    Name: PrintColumns.java
    PrintColumns.java Type: Visual Cafe File (application/x-unknown-content-type-VisualCafeFile.Document)
    Encoding: base64

  • Performance problems using WLS6.1 with the thin driver for Ora9i from OTN

    Hello everyone,
    Has anyone been experimenting with the thin driver for Oracle 9i under WLS6.1. I got it running, but
    I get extremely bad performance when having multiple concurrent accesses. It works more or less in
    single user mode. Also it seems not to support XA transactions?
    When could we expect the driver from BEA to be out?
    Thanks in advance!
    Samuel Kounev
    TU-Darmstadt, Germany

    I had done this from the very beginning, but I was still getting very bad performance under
    concurrent accesses. I even followed Sree's instructions and removed the old thin driver from
    weblogic.jar, but this didn't help. I am now trying to get the OCI driver for 9i running and hope
    this will solve the problem.
    Samuel
    Tamilselvan Ramasamy wrote:
    You have to use Oracle's Oracle 9i thin driver .
    put this driver infront of the classpath i.e before weblogic_sp.jar and
    weblogic.jar
    /selvan
    "Sree Bodapati" <[email protected]> wrote in message
    news:[email protected]..
    The BEA driver is available in WLS6.1SP2 which is GA.
    hth
    sree
    "Samuel Kounev" <[email protected]> wrote in message
    news:[email protected]..
    Hello everyone,
    Has anyone been experimenting with the thin driver for Oracle 9i under
    WLS6.1. I got it running, but
    I get extremely bad performance when having multiple concurrent accesses.
    It
    works more or less in
    single user mode. Also it seems not to support XA transactions?
    When could we expect the driver from BEA to be out?
    Thanks in advance!
    Samuel Kounev
    TU-Darmstadt, Germany

  • JSP Refresh Problems with Weblogic 8.1

    While Integration testing with Weblogic 8.1, when I make any changes in the Java classes (like interface changes), the JSPs are not able to recognize them. If the interface being used by a JSP changes, the JSP starts giving compilation errors. The other Java classes of the project though, run fine with the changes.
    Have wasted a lot of time in this situation . PLEASE ANY1 HELP!!!
    regards,
    SR

    Not sure on the first problem, store-version-in-cache is a valid element. Make sure you are using the same version of the Mapping Workbench and the runtime library. Please attach the XML for the version locking policy that was generated and the error message.
    The abstract method error seems to indicate that the setFetchSize method is missing on your driver.
    setFetchSize has been part of JDBC and JDK since JDBC 2.0/JDK 1.2, how old is the driver that you are trying to use? I noticed the COM is uppercase, so I assume this is a very old driver, can you use the more update version? TopLink requires JDK 1.3 support as a minimum.

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

     

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

  • Deploy web application in jbuilder 9 with weblogic 7 problem

    when i create a web application and a servlet, and deploy it in jbuilder 9 with weblogic 7.0 ,jbuilder 9 showed me the error,please tell me why, when i choose "redeploy" ,it can be normally work..
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility
    Usage: java weblogic.Deployer [options] [-activate|-deactivate|-remove|-unprepare|-cancel|-list] [files]
    where options include:
    -help Print this help message.
    -version Print version information.
    -adminurl <https://<server>:<port>> The URL of the administration server: default
    http://localhost:7001
    -user <user> A user other than the default of
    "installadministrator"
    -password <password> Specifies the password on the command line.
    If this option is absent the user is
    prompted.
    -verbose Displays additional status during the
    deployment process, including notifications
    when the application is prepared and
    activated on each target.
    -debug Displays debug level messages to the standard
    output.
    -examples Display example usage of this tool.
    -upload Causes the specified source file(s) to be
    transferred to the adminstration server. This
    is used when the Deployer tools is not being
    used on the same machine as the adminstration
    server and the user does not otherwise have
    access to place the targeted files on the
    adminstration server.
    -delete_files Causes the server to remove the files that
    are specified in the file list and leave the
    application activated. This option is valid
    only for unarchived web applications.
    -remote Signals that the tools is not runnning on the
    same machine as the adminstration server and
    that the source path should be made passed
    through unchanged as it represents the path
    on the remote server.
    -nostage Sets the stagingMethod attribute on the
    application mbean when it is created so that
    the application will not be staged and the
    original source is be used.
    -external_stage Sets the stagingMethod attribute on the
    application mbean when it is created so that
    the application will not be staged but the
    value of the staging path will be used when
    preparing the application.
    -stage Sets the stagingMethod staging attribute on
    the application when it is created so that
    the application will always be staged. This
    value will override the stagingMethod
    attribute on any targeted servers.
    -nowait Once the action is initiated the tool will
    print the task id and exit. This is used to
    initiate multiple tasks and then monitor them
    later using the -list action.
    -timeout <seconds> The maximum time in seconds to wait for the
    completion of the deployment task. When the
    time expires the current status is printed
    and the program exits.
    -source <archive file or directory> Location of the file or directory that
    represents the enterprise component or
    application tha is being (re)activated. If
    the source file is relative it is relative to
    the current directory, unless the -remote
    option is used. To specify individual files
    within an application for reployment or
    addition list them at the end of the command
    line.
    -name <application name> The name of the application being deployed.
    -targets <<server 1>,...<component>@<server N>> A comma separated list of the server and/or
    cluster names. Each target may be qualified
    with a J2EE component name. This enables
    different components of the archive to
    deployed on different servers.
    -id <task identifier> Optional client supplied unique identifier
    for the deployment task. The id is first
    specified to -activate, -deactivate,
    -unprepare or -remove. It is then used later
    as an argument to -cancel or -list.
    -activate (Re)activates the <source> application on the
    <targets> with the <name>.
    -deactivate Deactivates the application <name> on the
    <targets> leaving an staged application files
    in a state where the may be quickly
    reactivated.
    -unprepare Deactivates and unloads classes for the
    application <name> on the <targets> leaving
    an staged application files in a state where
    the may be quickly reloaded.
    -remove Deactivates the application <name> on the
    <target> and removes any files that were
    staged for this application. If there are no
    longer any targets for the application, the
    associated configuration is completely
    removed.
    -cancel Atempts to cancel the task <id> if it is has
    not yet completed.
    -list Lists the target status of each task <id>
    -deploy a convenient alias for activate.
    -undeploy a convenient alias for unprepare.
    Optionally a list of the specific files in the archive that are to be
    redeployed may be specified. If a directory is specified the entire subtree is
    redeployed.
    Full documentation on this tool is available at:
    http://edocs.beasys.com/wls/docs70/adminguide/utils.html#1138475
    No actions was specified. Please specify one and only one of:
    -activate, -deactivate, -cancel, -remove, -unprepare, or -list.
    Type java weblogic.Deployer -examples for example usage.

    you use "deploy" under DOS-Mode to deploy your web application?
    i found some differences between "deploy" and "redeploy" function in jbuilder 9.
    when i choose "deploy" ,jbuilder shows me the commond below:
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility
    when i choose redeploy,it shows me: (the -deploy parameter has changed to -activate) ,maybe it's a bug.
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -activate -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility

  • Problem with Oracle ODBC Driver on Windows 7

    Hi,
    Please help with this problem I have with a Windows 7 machine. I have installed Oracle Client 11g on my Windows 7 machine but when I want to create an ODBC Data Source, I cant find any driver for oracle. How can I resolve this issue? I need the data source for an application to work and I cant figure out what is happening. Someone please help!

    There's a dedicated Oracle ODBC forum:
    ODBC
    As this forum deals with connections from Oracle to foreign data stores it would be better to close this thread and post it again in the ODBC forum.

Maybe you are looking for