A Tip for using EJB 3.0 with WebLogic Ant Tasks

I started out writing this up as a problem, but then I found the answer so I'm, posting a tip instead.
When I tried to write an EJB [stateless] using EJB 3.0 in my legacy Weblogic ear project I started getting this error:
<pre>
No EJBs found in the ejb-jar file 'test'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
</pre>
This is why: wlcompile will put the class files in the App-Inf/classes directory unless it finds an ejb-jar.xml file in the META-INF directory for the module it is working on. With EJB 3.0, I wasn't using an ejb-jar.xml file because it was unnecessary. Later, Appc runs and it complains <b>because there are no classes module directory, they went into the shared ear folder instead.</b>
Here's I how it working again: Use javac [not wlcompile] to compile the EJB 3.0 module and make sure that the class files go into the correct module directory. Then you can use wlappc to generate all the associated files for the EJB. I have sucessfully deployed an ear file that uses both EJB 2.x and EJB 3.0 with this approach.
I wish Weblogic's own ejb3.0 sample application used their split directory deployment.
Good Luck.
John Aronson

Hi John,
I am working on development an enterprise application using EJB 3.0 on Weblogic 10.
While developing, I am keeping all my classes (from ejb's as well as web) into APP-INF/classes directory. It is working fine for Web and ejb 2.0 packages, but ejb 3.0 packages, I get the following error when I keep my ejb 3.0 beans classes in APP-INF/classes directory.
No EJBs found in the ejb-jar file 'customer'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
One solution is to keep the classes under customer ejb directory, but I wan tto keep all the classes in APP-INF/classes directory so that when using Eclipse IDE I can output all compiled sources into APP-INF/classes directory.
Has anyone faced this situation? Any suggestions to fix this issue?

Similar Messages

  • Any tips for using a click track with a sample pad?

    My band and I just purchased a Roland SPD-S and we are using it for some techno oriented samples in our songs. We are trying to run a click track with the samples track to our drummer's headphones so we can stay in time with the samples (as they are all on one timed track and are not constantly playing).
    Does anyone know of a good way of doing this? Is there some way to match the tempo perfectly and trigger the metronome at the same time as the pad?
    Any tips are greatly appreciated.
    Thanks,
    Alex

    You should create a click track that aligns with the song's measures and adjust the tempo via the Master Track's automation curve!

  • Tip for using OneDrive on iPad with Dropbox

    Hi all, just a tip...
    With Office now on iPad, people are frustrated that they can't - yet - open Office docs in any cloud storage app/service but have to use OneDrive.
    Well, here's what you can do: on your Mac, you can install the OneDrive folder anywhere you like. So if you already have Dropbox, just install the OneDrive folder inside Dropbox on your Mac!
    Now, whenever you work on an Office doc on your iPad, it will save to OneDrive and since OneDrive is in Dropbox it will automatically be saved in Dropbox! And you can open the file again straight from Dropbox on your iPad or Mac. All syncs work perfectly - the file is saved simultaneously (apart from a bit of lag) both in OneDrive and in Dropbox.
    I hope I've explained this clearly...apologies if not.
    Cheers,
    David

    You're welcome. Works well, doesn't it?

  • Tips for using Galil Tools with Labview

    This post is not a question, but below is a link to Galil's site that provides various methods and tips for using Galil's software for communicating with their controllers using LabVIEW. Hopefully it will assist others in the future.
    http://www.galilmc.com/techtalk/software/using-labview-with-the-galiltools-communication-library/
    Enjoy!
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Thank you very much!
    This is the information I was looking for.

  • What is the best practice for using the Calendar control with the Dispatcher?

    It seems as if the Dispatcher is restricting access to the Query Builder (/bin/querybuilder.json) as a best practice regarding security.  However, the Calendar relies on this endpoint to build the events for the calendar.  On Author / Publish this works fine but once we place the Dispatcher in front, the Calendar no longer works.  We've noticed the same behavior on the Geometrixx site.
    What is the best practice for using the Calendar control with Dispatcher?
    Thanks in advance.
    Scott

    Not sure what exactly you are asking but Muse handles the different orientations nicely without having to do anything.
    Example: http://www.cariboowoodshop.com/wood-shop.html

  • Using -pack + -standalone switches with Weblogic ?

    Hi,
    Does anyone know as to whats the issue with using -pack + -standalone switches with Weblogic ? Its been mentioned in the documentation that its not advisable to use those in combination when we build and EAR. We have been doing this in our project for atleast a month now and have not come across any issue due to this.
    Please share your thoughts.
    Thanks,
    -Naga

    Hi,
    Does anyone know as to whats the issue with using -pack + -standalone switches with Weblogic ? Its been mentioned in the documentation that its not advisable to use those in combination when we build and EAR. We have been doing this in our project for atleast a month now and have not come across any issue due to this.
    Please share your thoughts.
    Thanks,
    -Naga

  • Using saaj 1.2 with weblogic 8.1

    according to .This link, weblogic 8.1 implements SAAJ 1.1 version. How can i use SAAJ 1.2 with weblogic 8.1?
    I removed webservices.jar from startweblogic.bat script. then i put saaj-api.jar and saaj-impl.jar (from JWSDP 1.4) in app server's classpath. Thirdly, i deployed an EJB that uses SAAJ 1.2 . However, I am getting following exception which shows that the bean is still using weblogic's implementation of SAAJ i.e. version 1.1.
    java.lang.IllegalArgumentException: endpoint should be String or URL
    at weblogic.webservice.core.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:43)[b]
    how can i get rid of this and use SOAPConnection from saaj-impl.jar library????

    Hi,
    just run the SetEnv.cmd and check in classpath,it might still have the webservice.jar.
    Probably remove it from setEnv.cmd.
    Regards,
    Manish

  • Tips for blue screen (BSOD) errors with Windows Vista and Intel Turbo Memory on X61/X61s

    Important note: The symptoms and solutions described below address only a small subset of the possible causes for blue screen errors, aka BSOD.
    This information can help address blue screen errors specifically
    related to Turbo Memory, but may not solve errors related to other
    issues. Please read through the instructions completely, make sure they
    apply to your system, and after attempting the solutions please post
    back with your feedback for the community.
    Some users may experience random blue screen errors with ThinkPad
    systems running Windows Vista with Intel Turbo Memory hardware. These
    blue screens may occur during normal usage on the system or they may
    occur when booting into Windows Vista. Blue screens related to the
    Intel Turbo Memory hardware may reference a stop code of 8086 with
    memory address locations of {0, 0, 0, 0}.
    There are two main steps that you can take to help resolve blue screen issues related to Intel Turbo Memory.
    Step 1: Update Intel Turbo Memory Driver
    If the driver version is before version 1.0.1.1004-7.0.3.1001, please
    update to this version.
    To determine what version of the Intel Turbo Memory driver is installed:
    1.    Click Start, then click Control Panel.
    2.    Click System and Maintenance.
    3.    Click System.
    4.    Click Device Manager.
    5.    Expand the Storage controllers category.
    6.    Double-click Intel Flash Cache Logic Chip.
    7.    Click the Driver tab. Then you will see the driver version (for example, 1.0.1.1004).
    The new driver and installation instructions can be found here.
    Note: The Intel Matrix Storage Driver is updated with this package.
    Step 2: BIOS version
    If your BIOS version is older than those listed below, please update to the version listed.
    How to check your BIOS version:
    Turn off the system.
    Turn on the system.
    While the To interrupt normal startup, press the blue ThinkVantage button message is displayed at the lower-left area of the screen, press the F1 key.
    The
    BIOS Setup Utility menu will be displayed. If you have set a supervisor
    password, the BIOS Setup Utility menu appears after you enter the
    password.
    Check BIOS Version and Embedded Controller Version.
    Turn off the system.
    System BIOS versions:
    ThinkPad X61 or X61s - BIOS version 1.06 (7NET25WW)
    Please
    remember that these updates do not solve every possible system blue
    screen, but they do resolve several problems related to the Intel Turbo
    Memory driver.
    Tim Supples
    Lenovo Social Media
    Got a question? Don't PM me, post it on the forum!
    Lenovo Blogs
    X60 Tablet SXGA+ primary, Z61p fully loaded workhorse

    Dear Tim,
    First off, many thanks for the tips for resolving BSOD with Vista + Turbo Memory on X61.  I've been suffering from this BSOD for countless times since I bought in my X61 7673-CW9 in April 2008.
    Even prior to having the pleasure to visit this wonderful forum, I followed both steps as indicated, and updated my Intel Turbo Memory driver to 1.5.0.1013 and my BIOS to 7NETB4WW (2.14).  However, the BSOD recurrs.
    For the past two months, I've recovered my system to factory default settings using Rescue and Recovery for over twenty times, each time with the latest Intel Turbo Memory driver and BIOS.  Notwithstanding that, BSOD recurrs.
    During these painful experiences, I tried two options: 1) making my X61 up-to-date by using System Update and Windows Update (including Vista SP1 or excluding Vista SP1); 2) keeping my X61 the status as factory default (i.e. without updating through either System Update or Windows Update (the automatic/scheduled update function of both is turned off)).  In either case, BSOD recurrs.
    I'm 100% positive that the BSOD does not arise from any hardware or software/firmware I install.  I never install any hardware (e.g. RAM).  And, it is not caused by any software/firmware I install: the clear and unequivocal evidence is that at one time,I encountered BSOD while having restored back to factory setting and booting for the first time.
    I live in Taiwan, and I seldom heard this BSOD here.  All of my friends (as most of Taiwan residents) using X61 operate in Traditional Chinese environment, whereas I operate in English environment.  In Taiwan, when booting for the first time after purchase/recovery, the Windows Vista Business system provides for lanuage choice (Traditional Chinese or English), and, once chosen, the language cannot be altered later on (unless, of course, the system is restored back to factory default settings).
    My system specs are the same as the day I purchased it and are listed below (as I'm not sure if my machine type X61 7673-CW9 is applicable outside Taiwan):
    Processor: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.4GHz
    Memory: 1.00 G.B.
    System: Windows Vista Business (32-bit)
    Hard Drive: 160 G.B. @ 7,200 r.p.m.
    And, of course, with Intel Turbo Memory 1 G.B.
    I contacted the Lenovo support staff here in Taiwan for countless times, but they seem to be clueless.  I learned that some friends at this forum downgraded their OS back to Windows XP, but I chose not to.  The reason is simple: my purchase price for X61 7673-CW9 includes the Intel Turbo Memory, which cannot function under Windows XP (at least so far).
    Therefore, I just wish to share my experience here and perhaps I can get some advice from you and other friends here.  Any advice will be tremendously and enormously appreciated.
    Kevin Chen @ Taiwan

  • Tips for Using Pages to Write a Short Book?

    Hello- I really don't wanna go back to Word.
    My needs are pretty simple. A short book in 5.5 x 8.5 format (standard, right?).
    Any tips to using (setting up) pages to write a book? Any ideas where to get good templates for this?
    Thanks.

    ePub requires HTML
    Thoughts on that plan?
    For paper-based exchange, Peter's point is that preparing the printing surface encounters problems in Apple's support for ISO 15930 PDF/X-3. Peter also wants support for spot colours which Apple development has resisted for as long as I can remember, and with good reason .
    For paper-less exchange, Apple's implementation of PDF has the problem that it does not support search for glyph substitution, that is, it neither supports search for Apple Advanced Typography (AAT) nor does it support search for Microsoft OpenType Layout (OTL).
    For paper-less exchange, furthermore, whether one is working in a document markup model (SGML implementations such as HTML, ePUB) or a document mastering model (PDL implementations such as PDF, XPS) the audience interacts with the authors input of character information in order to identify and download the digital document, and then image the digital document on a digital graphic device (display, printer). This means that the input of character information must be configured for assumptions compatible between author and audience. It is possible to do a long list of things in the Apple Character Palette that will cause the audience complications in searching for the digital document whether offline on a local computer or online in a distributed network of computers.
    Best,
    Henrik

  • Configuration for using N73 as modem with Infrared...

    Hi,
    Can someone from Nokia explain us how to set-up a configuration to use N73 as modem via infrared or Bluetooth.
    The N73 manual refers to PC Suite manual, I followed this manual step by step but at the end it doesn't work.
    One thing also is that E61 menu refers to a "Connectivity -> Modem" option that is not available on Nokia N73 ?
    I tried to set-up a packet connection but it doesn't worked either ?
    I use PC Suite 6.81 (the latest version) and XP SP2.
    Thanks in advance for your help
    Emmanuel

    Hi,
    Sorry for not coming back earlier.
    I contacted Nokia support in France but they never came back to me.
    The N73 user manual is saying to follow the PC Suite manual instruction :
    "Detailed installation instructions can be found in the user guide for Nokia PC Suite.
    Tip! When using Nokia PC Suite for the first time, to
    connect your device to a compatible PC and to use
    Nokia PC Suite, use the Get Connected wizard available
    in Nokia PC Suite."
    I used the mentioned wizard and I got PC Suite connected to the phone by Infrared ok.
    Then I disconnect PC Suite and use the "Internet connection" wizard I get the following error message :
    "Network connection failed - Modem is used by another application or is badly configured".
    As suggested by the on line help I tried the following option :
    - Make sure that PC Suite is disconnected before trying to connect (I did and it didn't worked)
    - I changed the port used by the connection (and nothing changed)
    - I re-installed the modem driver and I even installed SP2 on my configuration (nothing changed)
    Somebody mentionned to me that I might have to create a Packet data connection, I did it but again it didn't changed anything.
    I'am now almost sure there is an issue using N73 as modem with Infrared.
    Worse saying also that my actual laptop configuration is working fine with a 6310i and that my N73 is working fine as a modem when used with USB cable.
    One interesting point also is that there is in E61 a "Connection->Modem" menu option that apparently is not existing in N73.
    Any new idea welcome
    Thank you and best regards
    Emmanuel

  • Details needed for using two hard drives with one iTunes library

    I posted this under the iTunes section but now that I think of it, it's more of an Apple TV question since I'm only concerned about how it affects my 2 ATVs.
    I have a MacMini(G4) that acts as a media server for our 2 ATVs. I use one library on the Mini which has been using an external 750GB drive. However, I'm at nearly 95% capacity now and want to invest in another external drive and use both. So the question I posted on the iTunes section was...
    "With far too much content in iTunes (mostly for the Apple TVs) and after reading numerous posts about using external hard drives with iTunes I'm convinced that using two external drives is my best solution.
    However, I did want to understand a bit more about the details of how iTunes will manage or at least keep track of, the media. Specifically, I'm thinking of the case were I add a movie to iTunes library (of course it will not copy the file into the iTunes folder).
    What will occur if I later change any of the tags for the movie (e.g., name, genre, year, etc.). Will iTunes update this information and then update the Apple TVs once they resync with the iTunes library?"
    So for the very knowledgeable folks here on the ATV section, what exactly does iTunes do in this case? Will my genres be updated correctly if I change something even though the content is not copied to the iTunes folder?

    If you want to use two external drives to store your itunes content, there are a couple of ways you could go about it.
    You could choose to have just movies (for example) on one HDD and everything else on the other. You could further choose to have your itunes music folder on one HDD and have all content copied to it by default. When it comes to movies (in this example) you can place these on your second HDD and add them to itunes by using OPT-drag, which will temporarily disable itunes from copying the file to your itunes library.
    You could also entirely disable disable itunes copying files to your itunes music folder from the itunes preferences and manually manage all your content.
    Personally I'd just buy a 2 TB (for example) drive and ebay your old drive once you have moved everything from it to your new one.

  • Workaround for using Oracle JDBC extension with WLS pooling

    Reading the newsgroup I saw that many of us encountered the problems
    with ClassCastException when tried to use Oracle JDBC extension
    with WLS pooling. I also had.
    In this case BEA recommends to use dangerous
    method getVendorConnection() which exposes
    the physical connection object to your code.
    Yes it's really dangerous because of unsafe usage may breaks
    WLS pooled connection(s).
    Moreover, this practice will make your JDBC code
    unportable (your JDBC code in addition to Oracle dependence
    became Weblogic dependent):
    void doSmth() {
    Connection con = ...;
    Connection vCon = ((WLConnection)con).getVendorConnection();
    // + mess of usage con in one places and vCon in others
    // (where Oracle extensions are needed)
    // !Don't forget to don't close vCon!
    Sux.
    I found the workaround.
    Introduction
    ============
    Yes the real cause of ClassCastException is that
    in depth of Oracle driver the casting
    to class oracle.jdbc.driver.OracleConnection
    (not to interface oracle.jdbc.OracleConnection)
    is performed.
    Someone can say that this is bug or pure desing.
    Weblogic pooled connection provide dynamic
    implementation for all public interfaces
    which real physical (wrapped) connection object implements.
    Great feature!
    But I guess that all interface methods implemented
    by simple call-delegation to physical (wrapped) connection object.
    In case of oracle.jdbc.OracleConnection interface
    this approach doesn't work for at least one its method:
    public OracleConnection unwrap()
    WLS pooled connection shoudn't implement this method by
    delegation to physical connection object BUT should
    return physical connection object itself!
    // Wrong implementation of unwrap()
    // delegation is used
    public OracleConnection unwrap() {
    return physicalConnection.unwrap();
    // Right implementation of unwrap()
    // physical connection returned
    public OracleConnection unwrap() {
    return physicalConnection;
    Workaround
    ==========
    1. Develop your own OracleConnection wrapper class:
    import oracle.jdbc.OracleConnection;
    import weblogic.jdbc.extensions.WLConnection;
    public class MyOracleConnectionImpl implements OracleConnection {
    private OracleConnection con;
    public MyOracleConnectionImpl(OracleConnection connection)
    throws SQLException
    this.con = connection;
    public OracleConnection unwrap() {
    return (OracleConnection)
    ((WLConnection)con).getVendorConnection();
    /* Implement all other methods by delegation to con object */
    2. Don't get Connections directly from DataSource --
    develop your own simple (may be static) utility
    class which retrives Connections from dataSource
    and returns them wrapped into your MyOracleConnectionImpl
    to your code from some method:
    puclic abstract class MyConnectionSource {
    public static Connection getConnection() {
    Connection con = // get it from DataSource
    return new MyOracleConnectionImpl((OracleConnection)con);
    3. Add attribute RemoveInfectedConnectionsEnabled="false"
    to definition of your JDBCConnectionPool within config.xml
    You may do it because of you `safely` use vendorConnection --
    you don't expose it to application code.
    4. Enjoy the Oracle JDBC extensions in your code!
    Example:
    Connection con = MyConnectionSource.getConnection;
    ArrayDescriptor add =
    ArrayDescriptor.createDescriptor("your_type", con);
    Hope it helps to someone.
    Best regards,
    Eugene Voytitsky

    Hello Eugene Voytitsky,
    Thanks Eugene Voytitsky for your idea
    I have tried the solution suggested by You, but it did not work.
    It still throws ClassCastException.
    I am sorry for posting the whole code of two classes below.
    I did this to give you more clarity.
    I am also indicating the place where the exception was thrown..
    Please let me know if I am doing something wrong.
    OracleConnection Wrapper class
    package ejbTesting;
    // sql imports
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.DatabaseMetaData;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import java.sql.SQLWarning;
    import java.sql.Statement;
    // util imports
    import java.util.Map;
    import java.util.Properties;
    // imports from Oracle Driver Classes
    import oracle.jdbc.OracleConnection;
    import oracle.jdbc.OracleOCIFailover;
    import oracle.jdbc.OracleSavepoint;
    // import from Weblogic extensions
    import weblogic.jdbc.extensions.WLConnection;
    public class WeblogicConnectionWrapper implements OracleConnection
         // oracle connection object
         private OracleConnection connection;
         public WeblogicConnectionWrapper (OracleConnection orclConnection)
              try
                   this.connection = orclConnection;
              catch(Exception unexpected )
                   unexpected.printStackTrace();
         public OracleConnection unwrap()
              try
              // The datasource returns a weblogic.jdbc.pool.Connection
              // This needs to be type casted to weblogic.jdbc.extensions.WLConnection
              // Only this weblogic.jdbc.extensions.WLConnection CAN BE type casted
              // to OracleConnection
         return (OracleConnection) ((WLConnection) connection).getVendorConnection();
         catch(Exception sqlException )
              sqlException.printStackTrace ();
              return null;
         /* Implement all other methods by delegation to connection object */      
    public Connection _getPC()
    return connection._getPC();
    public void archive(int i, int j, String s)
    throws SQLException
    connection.archive(i, j, s);
    public void assertComplete()
    throws SQLException
    connection.assertComplete();
    public void clearWarnings()
    throws SQLException
    connection.clearWarnings();
    public void close()
    throws SQLException
    connection.close();
    public void commit()
    throws SQLException
    connection.commit();
    public Statement createStatement()
    throws SQLException
    return connection.createStatement();
    public Statement createStatement(int i, int j)
    throws SQLException
    return connection.createStatement(i, j);
    public boolean getAutoClose()
    throws SQLException
    return connection.getAutoClose();
    public boolean getAutoCommit()
    throws SQLException
    return connection.getAutoCommit();
    public CallableStatement getCallWithKey(String s)
    throws SQLException
    return connection.getCallWithKey(s);
    public String getCatalog()
    throws SQLException
    return connection.getCatalog();
    public boolean getCreateStatementAsRefCursor()
    return connection.getCreateStatementAsRefCursor();
    public int getDefaultExecuteBatch()
    return connection.getDefaultExecuteBatch();
    public int getDefaultRowPrefetch()
    return connection.getDefaultRowPrefetch();
    public Object getDescriptor(String s)
    return connection.getDescriptor(s);
    public boolean getExplicitCachingEnabled()
    throws SQLException
    return connection.getExplicitCachingEnabled();
    public boolean getImplicitCachingEnabled()
    throws SQLException
    return connection.getImplicitCachingEnabled();
    public boolean getIncludeSynonyms()
    return connection.getIncludeSynonyms();
    public Object getJavaObject(String s)
    throws SQLException
    return connection.getJavaObject(s);
    public DatabaseMetaData getMetaData()
    throws SQLException
    return connection.getMetaData();
    public Properties getProperties()
    return connection.getProperties();
    public boolean getRemarksReporting()
    return connection.getRemarksReporting();
    public boolean getRestrictGetTables()
    return connection.getRestrictGetTables();
    public String getSQLType(Object obj)
    throws SQLException
    return connection.getSQLType(obj);
    public String getSessionTimeZone()
    return connection.getSessionTimeZone();
    public int getStatementCacheSize()
    throws SQLException
    return connection.getStatementCacheSize();
    public PreparedStatement getStatementWithKey(String s)
    throws SQLException
    return connection.getStatementWithKey(s);
    public int getStmtCacheSize()
    return connection.getStmtCacheSize();
    public short getStructAttrCsId()
    throws SQLException
    return connection.getStructAttrCsId();
    public boolean getSynchronousMode()
    return connection.getSynchronousMode();
    public int getTransactionIsolation()
    throws SQLException
    return connection.getTransactionIsolation();
    public Map getTypeMap()
    throws SQLException
    return connection.getTypeMap();
    public String getUserName()
    throws SQLException
    return connection.getUserName();
    public boolean getUsingXAFlag()
    return connection.getUsingXAFlag();
    public SQLWarning getWarnings()
    throws SQLException
    return connection.getWarnings();
    public boolean getXAErrorFlag()
    return connection.getXAErrorFlag();
    public boolean isClosed()
    throws SQLException
    return connection.isClosed();
    public boolean isLogicalConnection()
    return connection.isLogicalConnection();
    public boolean isReadOnly()
    throws SQLException
    return connection.isReadOnly();
    public String nativeSQL(String s)
    throws SQLException
    return connection.nativeSQL(s);
    public Object openJoltConnection(String s, short word0, short word1)
    return connection.openJoltConnection(s, word0, word1);
    public void oracleReleaseSavepoint(OracleSavepoint oraclesavepoint)
    throws SQLException
    connection.oracleReleaseSavepoint(oraclesavepoint);
    public void oracleRollback(OracleSavepoint oraclesavepoint)
    throws SQLException
    connection.oracleRollback(oraclesavepoint);
    public OracleSavepoint oracleSetSavepoint()
    throws SQLException
    return connection.oracleSetSavepoint();
    public OracleSavepoint oracleSetSavepoint(String s)
    throws SQLException
    return connection.oracleSetSavepoint(s);
    public int pingDatabase(int i)
    throws SQLException
    return connection.pingDatabase(i);
    public CallableStatement prepareCall(String s)
    throws SQLException
    return connection.prepareCall(s);
    public CallableStatement prepareCall(String s, int i, int j)
    throws SQLException
    return connection.prepareCall(s, i, j);
    public CallableStatement prepareCallWithKey(String s)
    throws SQLException
    return connection.prepareCallWithKey(s);
    public PreparedStatement prepareStatement(String s)
    throws SQLException
    return connection.prepareStatement(s);
    public PreparedStatement prepareStatement(String s, int i, int j)
    throws SQLException
    return connection.prepareStatement(s, i, j);
    public PreparedStatement prepareStatementWithKey(String s)
    throws SQLException
    return connection.prepareStatementWithKey(s);
    public void purgeExplicitCache()
    throws SQLException
    connection.purgeExplicitCache();
    public void purgeImplicitCache()
    throws SQLException
    connection.purgeImplicitCache();
    public void putDescriptor(String s, Object obj)
    throws SQLException
    connection.putDescriptor(s, obj);
    public void registerApiDescription(String s, short word0, short word1, String
    s1)
    connection.registerApiDescription(s, word0, word1, s1);
    public void registerSQLType(String s, Class class1)
    throws SQLException
    connection.registerSQLType(s, class1);
    public void registerSQLType(String s, String s1)
    throws SQLException
    connection.registerSQLType(s, s1);
    public void registerTAFCallback(OracleOCIFailover oracleocifailover, Object
    obj)
    throws SQLException
    connection.registerTAFCallback(oracleocifailover, obj);
    public void rollback()
    throws SQLException
    connection.rollback();
    public void setAutoClose(boolean flag)
    throws SQLException
    connection.setAutoClose(flag);
    public void setAutoCommit(boolean flag)
    throws SQLException
    connection.setAutoCommit(flag);
    public void setCatalog(String s)
    throws SQLException
    connection.setCatalog(s);
    public void setCreateStatementAsRefCursor(boolean flag)
    connection.setCreateStatementAsRefCursor(flag);
    public void setDefaultExecuteBatch(int i)
    throws SQLException
    connection.setDefaultExecuteBatch(i);
    public void setDefaultRowPrefetch(int i)
    throws SQLException
    connection.setDefaultRowPrefetch(i);
    public void setExplicitCachingEnabled(boolean flag)
    throws SQLException
    connection.setExplicitCachingEnabled(flag);
    public void setImplicitCachingEnabled(boolean flag)
    throws SQLException
    connection.setImplicitCachingEnabled(flag);
    public void setIncludeSynonyms(boolean flag)
    connection.setIncludeSynonyms(flag);
    public void setReadOnly(boolean flag)
    throws SQLException
    connection.setReadOnly(flag);
    public void setRemarksReporting(boolean flag)
    connection.setRemarksReporting(flag);
    public void setRestrictGetTables(boolean flag)
    connection.setRestrictGetTables(flag);
    public void setSessionTimeZone(String s)
    throws SQLException
    connection.setSessionTimeZone(s);
    public void setStatementCacheSize(int i)
    throws SQLException
    connection.setStatementCacheSize(i);
    public void setStmtCacheSize(int i)
    throws SQLException
    connection.setStmtCacheSize(i);
    public void setStmtCacheSize(int i, boolean flag)
    throws SQLException
    connection.setStmtCacheSize(i, flag);
    public void setSynchronousMode(boolean flag)
    connection.setSynchronousMode(flag);
    public void setTransactionIsolation(int i)
    throws SQLException
    connection.setTransactionIsolation(i);
    public void setTypeMap(Map map)
    throws SQLException
    connection.setTypeMap(map);
    public void setUsingXAFlag(boolean flag)
    connection.setUsingXAFlag(flag);
    public void setWrapper(OracleConnection oracleconnection)
    connection.setWrapper(oracleconnection);
    public void setXAErrorFlag(boolean flag)
    connection.setXAErrorFlag(flag);
    public void shutdown(int i)
    throws SQLException
    connection.shutdown(i);
    public void startup(String s, int i)
    throws SQLException
    connection.startup(s, i);
    Util class to get Wrapped Connections from
    datasource
    package ejbTesting;
    // j2ee imports
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    // sql imports
    import java.sql.Connection;
    // imports from Oracle Driver Classes
    import oracle.jdbc.OracleConnection;
    * Wrapper class for the DataSource Connection from Weblogic pool
    public class DataSourceConnectionWrapper
         // datasource variable
         private static transient DataSource datasource = null;
         private static String dbName = "jdbc/workbench";
    * Method that returns the database connection
         public static Connection getConnection()
              try
                   // initialsing the datasource object
                   initialiseDataSource ();
                   // Getting a connection from the datasource
                   Connection con = datasource.getConnection( );
                   // wrapping it custom wrapper class and
                   // returning the connection object
                   return new WeblogicConnectionWrapper((OracleConnection)con);
              catch(Exception exception )
                   exception.printStackTrace();
                   return null;
         private static void initialiseDataSource( ) throws Exception
    if ( datasource == null )
    try
    InitialContext ic = new InitialContext( );
    datasource = (DataSource) ic.lookup( dbName );
    catch (Exception ne )
    throw new Exception( "NamingException while looking up DataSource with
    JNDI name" +
    dbName + ": \n" + ne.getMessage( ) );
    Exception Stack Trace
    The line 46 in DataSourceConnectionWrapper
    corresponds to
    return new WeblogicConnectionWrapper((OracleConnection)con);
    Which I feel is logical as the connection which we get from Weblogic
    datasource cannot be type casted to OracleConnection
    java.lang.ClassCastException: weblogic.jdbc.pool.Connection
    at ejbTesting.DataSourceConnectionWrapper.getConnection(DataSourceConnectionWrapper.java:46)

  • Any tips for using the battery ? T500

    Are there any tips to use the battery for a long time ?
    I've seen the posts somewhere that "conditioning" is not needed for this battery, Li-on based ?
    Is recharging when the battery is half-charged a bad habit ?
    Thanks

    Hello shong9,
    First you should load your battery 36h, then unload it normally, till it will go to sleep or hibernate
    (depends on setting in power manager).
    Second load it 24, then unload it normally till it went to sleep or hibernate.
    Third and last, load it 12h, then unload it normally till it went to sleep or hibernate.
    Then you battery has got it´s full capacity and the powermanger will do all for you, to keep it healthy.
    You should leave the battery in your machine, if using AC.
    When you are working mobile, then charge it, when it´s necessary. 
    That´s it.
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • Solution for using power pc apps with mountain lion

    Options for using my Power Pc Apps with Mountian Lion?   Specificly I need to use Citrix ICA Client editor.

    You would have to erase Mountain Lion and reinstall Lion in order to use PPC apps.  Or you could try to Upgrade to a newer version of the PPC software that would no longer be PPC based.
    Hope this helps

  • Problems with wlserver ant task for WL 8.1

    hi
    i have a problem with using wlserver ant task for Weblogic 8.1
    basically i want to start the server that is already preconfigured and deploy
    one ear.
    here's what i do:
    <taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer">
    <classpath refid="lib.classpath"/>
    </taskdef>
    <wlserver action="start" dir="D:/BEA/user_projects/domains/mydomain"
    output="wls81.log"/>
    (and then the deployment task - irrelevant here)     
    the classpath is generated automatically and includes all jars in the specific
    project directory:
         <path id="lib.classpath">
         <fileset dir="${proj.lib.dir}">
              <include name="**/*.jar"/>
         </fileset>
         </path>
    (weblogic.jar is there as well)
    the problem is when i run it, the following happens:
    - if i have action="start" (or no action attribute at all), i get the following
    exception:
    java.lang.NullPointerException
    at weblogic.Home.<init>(Home.java:29)
    at weblogic.Home.getInstance(Home.java:86)
    at weblogic.Home.getPath(Home.java:94)
    at weblogic.Home.getFile(Home.java:99)
    at weblogic.ant.taskdefs.management.WLServer.execute(WLServer.java:260)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    at org.apache.tools.ant.Main.runBuild(Main.java:609)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    - if i change it to action="startup" as specified on "wlserver Ant Task Reference"
    it seems that this task is skipped completely. no error messages, no stack trace,
    nothing. i tried -verbose and -debug options on ant, but there're no logs displayed
    whatsoever. it takes less than a second to run this task so i presume it's just
    getting skipped completely.
    i run this from the standalone Ant 1.5.4 on Windows environment.
    i've followed the topic "wlserver Ant task for WebLogic 8.1" where kind of similar
    problem is described but putting weblogic.jar on the system CLASSPATH is not an
    option for this project.
    anyone has any idea about how to get this going?
    cheers
    Andrei

    sounds bug to me. NPE should be correctly handled with appropriate error
    message. Please contact BEA support to log the call.
    "Andrei Rusakou" <[email protected]> wrote in message
    news:[email protected]...
    >
    hi
    i have a problem with using wlserver ant task for Weblogic 8.1
    basically i want to start the server that is already preconfigured anddeploy
    one ear.
    here's what i do:
    <taskdef name="wlserver"classname="weblogic.ant.taskdefs.management.WLServer">
    <classpath refid="lib.classpath"/>
    </taskdef>
    <wlserver action="start" dir="D:/BEA/user_projects/domains/mydomain"
    output="wls81.log"/>
    (and then the deployment task - irrelevant here)
    the classpath is generated automatically and includes all jars in thespecific
    project directory:
    <path id="lib.classpath">
    <fileset dir="${proj.lib.dir}">
    <include name="**/*.jar"/>
    </fileset>
    </path>
    (weblogic.jar is there as well)
    the problem is when i run it, the following happens:
    - if i have action="start" (or no action attribute at all), i get thefollowing
    exception:
    java.lang.NullPointerException
    at weblogic.Home.<init>(Home.java:29)
    at weblogic.Home.getInstance(Home.java:86)
    at weblogic.Home.getPath(Home.java:94)
    at weblogic.Home.getFile(Home.java:99)
    atweblogic.ant.taskdefs.management.WLServer.execute(WLServer.java:260)
    atorg.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    at org.apache.tools.ant.Main.runBuild(Main.java:609)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    - if i change it to action="startup" as specified on "wlserver Ant TaskReference"
    it seems that this task is skipped completely. no error messages, no stacktrace,
    nothing. i tried -verbose and -debug options on ant, but there're no logsdisplayed
    whatsoever. it takes less than a second to run this task so i presume it'sjust
    getting skipped completely.
    i run this from the standalone Ant 1.5.4 on Windows environment.
    i've followed the topic "wlserver Ant task for WebLogic 8.1" where kind ofsimilar
    problem is described but putting weblogic.jar on the system CLASSPATH isnot an
    option for this project.
    anyone has any idea about how to get this going?
    cheers
    Andrei

Maybe you are looking for

  • Cursor shows strange behaviour in 10.9.5

    HI, I'm using a 15" MBPr late 2013, i7, 16 GB RAM, 1 TB SSD, running on 10.9.5. Lately I registered a very strange behaviour of the cursor when using the built in trackpad. If hovering over one of the symbols in the bar at the upper right corner of t

  • Any way to get the numeric keypad functionality back on the newest MacBook?

    Hi all - I just bought a MacBook Pro and was dismayed to find they had taken away the "number lock" option that turned the right hand into a keypad (I hadn't even thought to check this in the specs - never occurred to me they'd get rid of it). I know

  • Why can't I insert a 3D pdf file in an InDesign Document?

    I am working on a presentation for a client and need to insert some 3D pdf files to it but I always get an error message from OnDesing. What should I do?

  • Copy hidden system files from admin to client?

    I'm preparing for a large rollout of Macs and one of our apps hides its license file with a . in front of the file name. Rather than type in the serial number 100 times, I'd like to simply blast out the license file via ARD to same relative location,

  • % in parameter form return REP-52006

    Hi, I want to display a report with % in a parameter. But i receive the message: REP-52006 FAILED TO DECODE THE SPECIFIED URL %1 In the Report Builder with paper layout, all works fine. But not with web layout. Everyone find the solution? Can someone