JDBC application distribution issue?

My application use an ODBC entry to access a database. Should I create this
ODBC entry for each client if I distribut the applet?
Also, if the odbc is using file database system, such as Access, how to
enable client JDBC access the access file on remote server?
I used 3rd part java class (bean). is it possible to compile the bean into
the applet so i needn't install the class on every clients' machine?

My application use an ODBC entry to access a database.
Should I create this
ODBC entry for each client if I distribut the applet?
Also, if the odbc is using file database system, such
as Access, how to
enable client JDBC access the access file on remote
server?
I used 3rd part java class (bean). is it possible to
compile the bean into
the applet so i needn't install the class on every
clients' machine?you cannot compile the bean into the applet but you can archive the applet class and the bean class into a jar file and download the whole jar file at once. it will be much faster. A bigger problem is your data access. an applet cannot access an odbc driver on the local machine. you must use a type 3 or type 4 driver. remember an applet is limited to what it can access on the local machine.

Similar Messages

  • JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..

    JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
    I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
    Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
    at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Code is as follow for reference
    import oracle.jdbc.driver.*;
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
    eNVIRONMENT VARIABLES set are as follows:
    classpath
    C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
    JAVA_HOME
    C:\Program Files\Java\jdk1.5.0_04
    PATH
    C:\Program Files\Java\jdk1.5.0_04\bin
    ORACLE_HOME
    D:\Oracle11\product\11.2.0\client_1\BIN

    Apr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
         at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

  • Application redraw issue over Citrix and Terminal Server

    Hi All,
    We provide a client-server application which connects to a SQL Server database. The middle-tier is hosted on an application server (Windows Server 2008 R2) which in turn connects to the SQL Server database. The fat client can either be installed on user laptops/desktops
    or published using Citix/Terminal services.
    We have a long standing issue which frankly I just cannot fathom. A customer has published the client via Citrix to users and using roaming profiles. If an employee is using the application in London, the roaming profile is created on a server in London and
    connects to the middle-tier in London. If an employee is using the application in Glasgow, the roaming profile is created in Edinburgh and the user connects to the middle-tier in London. The customer is also using DFS
    The roaming profile consists of the 'My Documents', 'My Pictures', 'My Videos', 'My Music' and 'Windows' folder. Distributed File System (DFS) is used for roaming profile folder replication between offices. See http://technet.microsoft.com/en-gb/library/cc732863%28v=ws.10%29.aspx
    The Edinburgh users are experiencing application redraw issue where the interface loads in chunks. For example, when a user scrolls up and down or left and right, the data loads immediately (from SQL Server) but the interface (GUI) loads in blocks. You can
    actually see each segment of the GUI components loading. The issue also occurs if connecting via a Terminal Server where the application is also installed.
    For London users, it all works fine. If an Edinburgh user comes to London, they have no issues.
    The network connection is super fast between the various offices.
    The application is built using C++ and Delphi and uses the GDI API to draw the objects.
    Any guidance is appreciated.

    Hello partner,
    Thanks for contacting Microsoft. This is Sophia who is going to help with this issue. From your description, I learnt that users from Edinburgh have application redraw issue. However, London users worked fine. Please let me know if I misunderstand your purpose.
    Based on the information, it seems that the issue located in the middle-tier in London. Could you try building a middle-tier in Edinburgh and then test how the issue goes?
    Besides, based on my experience and research, by default the allocation of the bandwidth is 70 percent for graphics data and 30 percent for virtual channel data, meaning when bandwidth usage is under pressure, graphics data is guaranteed to get 70 percent
    of the available bandwidth.  And we can tweak the settings a bit for some scenarios. To change the settings, we can set registry values. Please reference the information below.
    ===========================================================================================================================================
    Note: For these settings to take effect, the computer must be restarted.
    Following is the list of registry values that affect the bandwidth allocation behavior. These are all DWORD values under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD:
    ·         FlowControlDisable: When set to 1, this value disables the new flow control algorithm, making it essentially First-In-First-Out (FIFO) for all packet requests. This provides results similar to Windows Server
    2003. (The default for this value is 0).
    ·         FlowControlDisplayBandwidth / FlowControlChannelBandwidth: These two values together determine the bandwidth distribution between display and virtual channels. You can set these values in the range of 0–255.
    For example, setting FlowControlDisplayBandwidth = 100 and FlowControlChannelBandwidth = 100 creates an equal bandwidth distribution between video and VCs. The default is 70 for FlowControlDisplayBandwidth and 30 for FlowControlChannelBandwidth, thus making
    the default distribution equal to 70–30.
    ·         FlowControlChargePostCompression: If set to 1, this value bases the bandwidth allocation on post-compression bandwidth usage. The default for this value is 0, which means that the bandwidth distribution is applied
    on pre-compressed data.
    For more information about RDP Bandwidth, please reference the article below.
    ================================================
    Bandwidth Allocation for Terminal Server connections over RDP
    http://blogs.msdn.com/b/rds/archive/2007/04/09/bandwidth-allocation-for-terminal-server-connections-over-rdp.aspx
    Top 10 RDP Protocol Misconceptions – Part 1
    http://blogs.msdn.com/b/rds/archive/2009/03/03/top-10-rdp-protocol-misconceptions-part-1.aspx
    If you have any concerns about the action plan above, feel free to let me know.
    Best regards,
    Sophia Sun
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Desktop Application Distribution with Files in ZFS 6.5

    I'm trying to do a Desktop Application Distribution with a simple NAL and
    can not get the files associated with the NAL to copy to the subscriber
    server. I am using ZFS 6.5 SP1. I am using a mapped drive letter in the NAL
    and have chosen "Keep the same source paths for the replicated objects" in
    the distribution. I also have defined a variable in the service location
    package as 'drive letter'='volume name' and associated this policy with the
    container that the distributor and subscriber are in. I checked the box in
    the subscriber's variable property to use this policy. The documentation
    also says to use a SOURCE_PATH macro and 'Package Source List' to define the
    mapped drive but I am unsure how those should be defined. Should they be
    just a drive letter or the entire path to the applications files? Also, I'm
    not sure if anything else is need to make this work.
    Any Ideas of what I might need to do to get this to work?
    Thanks!
    John

    Graham,
    Thanks for the suggestions. I thought this type of distribution still
    worked in Zen 6.5. It used to work great for us under Zen 6 and I hadn't
    seen anything that said it didn't work with Zen 6.5. We'll probably use a
    second distribution for the short term and then try one of your other
    suggestions or see if we can find another way that works better.
    John
    "Graham Mitchell" <[email protected]> wrote in message
    news:[email protected]...
    > Depends on the kind of app you're trying to distribute... If it's a simple
    > one ie you run something like setup.exe in a directory of files, then the
    > files will NOT replicate out. If it's an MSI you're trying to distribute,
    > even one with a file of support files (like say office), these WILL
    > replicate out. Unfortunately, this is working as designed. You'll also
    > find
    > that file rights are NOT copied out yet either...
    >
    > There are a couple of ways round it... One is to do a seperate file
    > distribution object to copy out the needed files/directories - I think
    > this
    > is messy, as you need to have 2 distributions for each application.
    >
    > You can use the repackager that comes with Zen to repackage the files into
    > an MSI and use that to install the application on the workstations. This
    > will replicate out fine.
    >
    > Another way, and they way we're starting to look at doing it, since it
    > resolves some issues with workstation associated installs, is to have the
    > application object copy all the files from the server onto the local
    > workstation and run the install from there. To do that, you need a
    > SOURCE_PATH pointing to the server distribution point, and another
    > variable
    > (we call it INSTALL_PATH) pointing to somewhere on the local workstation
    > (C:\Install\MS\Office2k3). We then run the install from this location.
    > Since
    > all the files are mentioned in the distribution portion of the application
    > object, when we distribute the application out to the remote servers, all
    > the required files are copied out too.
    >
    > To do this manually for more than a couple of files is a royal pain in the
    > ass... however, there's a makeaxt.pl PERL script available on
    > coolsolutions
    > that does most of the donkey work for you - give it the source and
    > destination directories, and it will make an AXT file you can import. The
    > only thing we have to do is to hit it with an editor, and replace the
    > absolute paths (C:\Install\MS\Office2k3) with the variable we want to use
    > (INSTALL_PATH).
    >
    > We're actually doing this, combined with the MSIs at the moment, since
    > we're
    > doing an image/application refresh for WinXPSP2, so we're rebuilding all
    > the
    > apps this way.
    >
    > If anyone is doing it differently, or has other suggestions, I'd love to
    > hear...
    >
    >
    >
    > Graham
    >
    >
    >
    > "John Malinowski" <[email protected]> wrote in message
    > news:[email protected]...
    >> I'm trying to do a Desktop Application Distribution with a simple NAL and
    >> can not get the files associated with the NAL to copy to the subscriber
    >> server. I am using ZFS 6.5 SP1. I am using a mapped drive letter in the
    > NAL
    >> and have chosen "Keep the same source paths for the replicated objects"
    >> in
    >> the distribution. I also have defined a variable in the service
    >> location
    >> package as 'drive letter'='volume name' and associated this policy with
    > the
    >> container that the distributor and subscriber are in. I checked the box
    > in
    >> the subscriber's variable property to use this policy. The documentation
    >> also says to use a SOURCE_PATH macro and 'Package Source List' to define
    > the
    >> mapped drive but I am unsure how those should be defined. Should they be
    >> just a drive letter or the entire path to the applications files? Also,
    > I'm
    >> not sure if anything else is need to make this work.
    >>
    >> Any Ideas of what I might need to do to get this to work?
    >>
    >> Thanks!
    >>
    >> John
    >>
    >>
    >
    >

  • Regarding Sun Java System Application Server Issue with JVM

    Regarding Sun Java System Application Server Issue with JVM
    Hi
    I have installed SJSAS9.1 on solaris system. I m trying to deploy war file which i compiled in windows enviorment by jdk1.5.0_05. Every time i got the following error :
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
    PWC6199: Generated servlet error:
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler is doing
    [javac] -deprecation Output source locations where deprecated APIs are used
    [javac] -classpath Specify where to find user class files
    [javac] -sourcepath Specify where to find input source files
    [javac] -bootclasspath Override location of bootstrap class files
    [javac] -extdirs Override location of installed extensions
    [javac] -d Specify where to place generated class files
    [javac] -encoding Specify character encoding used by source files
    [javac] -source Provide source compatibility with specified release
    [javac] -target Generate class files for specific VM version
    [javac] -help Print a synopsis of standard options
    note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.
    I have cheked jvm version on both system the only difference is :
    Solaris points to jdk 1.5.0_09
    Windows point to jdk1.5.0_05
    Even i tried to run blank jsp also but again i got the same error.
    Can any help me to sort out the problem or give me any idea so i can do something by my own.
    Thanks in Advance
    Gagan

    Do you have ANT installed and available?
    Thanks,
    Kedar

  • Error While Compiling Jdbc Application

    Hi,
    I am getting an error while compiling a JDBC application ... as shon below...
    please help me regardinmg this and also please specify how to include jar file ....
    JdbcApp.java:5: package Oracle.jdbc.driver does not exist
    DriverManager.registerDriver(new Oracle.jdbc.driver.OracleDriver());

    Thanx for that!!!
    but i am still getting the exception...
    D:\Java>java JdbcApp
    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:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
    at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:366
    8)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:551)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at JdbcApp.main(JdbcApp.java:7)
    kindly solve this...

  • Application Deloyment issue...

    hi,
    i am getting this Deployment error...
    we got two servers one for developers at offshore and
    one at the onsite...
    the strange thing is that it is deploying n running fine on the offshore server.
    but not getting deployed on the onsite server!!!
    i have put the required references required and
    checked them too...!!!
    regards,
    -Amol Gupta
    Oct 18, 2007 11:11:04 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [004]Deployment aborted
    Settings
    SDM host : bp1xeuaa558
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/amolg/LOCALS1/Temp/temp26291bp.comexmplsupplier_lds_create_adobe.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/amolg/LOCALS1/Temp/temp26291bp.comexmplsupplier_lds_create_adobe.ear
    Aborted: development component 'exmpl/supplier_lds_create_adobe'/'bp.com'/'LOKAL'/'0.2007.10.18.11.10.17'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application bp.com/exmplsupplier_lds_create_adobe.. Reason: Clusterwide exception: Failed to deploy application bp.com/exmplsupplier_lds_create_adobe. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is: com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application bp.com/exmpl~supplier_lds_create_adobe. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted

    >
    I have oracle PL/SQL application performance issue. To open a screen populated with 7,000 records takes 5 minutes.
    I have used SQL Analyze to get Index recomendation. Indexing did not help that much.Switch on a trace on a user who is just about to run that screen - let them rip.
    Stop your trace. Get your trace file. Run it through TKProf.
    Read the book by Cary Millsap that Sybrand recommends (or take a look
    at Chris Lawson) - i.e. read up on trace files and looking at them.
    Get the SQL that is run by the user and try running it from SQLPlus
    on the server (no network or app issues) - set timing on.
    That would be my approach.
    Do you think upgrading or replacing with newer machine can improve performance? Getting a newer machine often satisfies the geek's primeval urge to
    get his grubby little paws onto fancy shiny hardware - it may well
    work for a while, however you're not tackling the underlying cause
    of your problem, and it will (probably) reappear when the limits
    of the new RAM/CPU have been hit.
    If you what is suggested above, at least you'll be able to say
    to your management - "well, if we get a new server, performance
    will improve by this much, until we have (say) 14.000 records in
    the table, when performance will go back to the way it was before".
    Until you run a trace, you will have no idea if the problem will
    scale linearly with the no. of records or how it will
    behave into the future.
    You cannon manage what you cannot measure.
    Paul...
    Taf

  • JDBC application will not compile

    I have a fairly simple Oracle JDBC application that used to compile and now it won't
    C:\java>javac CreateCompViews.java
    CreateCompViews.java:64: incompatible types
    found : java.sql.ResultSet
    required: ResultSet
    rset1 = stmt.executeQuery (SQLQuery1);
    ^
    CreateCompViews.java:72: cannot resolve symbol
    symbol : method next ()
    location: class ResultSet
    while (rset1.next ())
    ^
    CreateCompViews.java:77: cannot resolve symbol
    symbol : method getString (int)
    location: class ResultSet
    viewName = rset1.getString (1);
    ^
    CreateCompViews.java:83: incompatible types
    found : java.sql.ResultSet
    required: ResultSet
    rset2 = ViewQuery.executeQuery ();
    ^
    CreateCompViews.java:84: cannot resolve symbol
    symbol : method next ()
    location: class ResultSet
    rset2.next ();
    ^
    CreateCompViews.java:85: cannot resolve symbol
    symbol : method getString (int)
    location: class ResultSet
    ViewDefinition = rset2.getString(1);
    ^
    CreateCompViews.java:104: cannot resolve symbol
    symbol : method close ()
    location: class ResultSet
    rset1.close();
    ^
    .\ResultSet.java:82: cannot resolve symbol
    symbol : method next ()
    location: class ResultSet
    while (rset.next())
    ^
    .\ResultSet.java:84: cannot resolve symbol
    symbol : method getString (int)
    location: class ResultSet
    String myText = rset.getString(1);
    ^
    .\ResultSet.java:88: cannot resolve symbol
    symbol : method close ()
    location: class ResultSet
    rset.close();
    ^
    10 errors
    C:\java>
    I am running Windows 2000, Oracle 9.2 and JDK 1.4.1.01
    Please Help!
    lad

    I have a fairly simple Oracle JDBC application that
    used to compile and now it won't
    C:\java>javac CreateCompViews.java
    CreateCompViews.java:64: incompatible types
    found : java.sql.ResultSet
    required: ResultSet
    rset1 = stmt.executeQuery (SQLQuery1);
    ^
    CreateCompViews.java:72: cannot resolve symbol
    symbol : method next ()
    location: class ResultSet
    while (rset1.next ())
    ^
    CreateCompViews.java:77: cannot resolve symbol
    symbol : method getString (int)
    location: class ResultSet
    viewName = rset1.getString (1);
    ^
    CreateCompViews.java:83: incompatible types
    found : java.sql.ResultSet
    required: ResultSet
    rset2 = ViewQuery.executeQuery ();
    ^
    CreateCompViews.java:84: cannot resolve symbol
    symbol : method next ()
    location: class ResultSet
    rset2.next ();
    ^
    CreateCompViews.java:85: cannot resolve symbol
    symbol : method getString (int)
    location: class ResultSet
    ViewDefinition = rset2.getString(1);
    ^
    CreateCompViews.java:104: cannot resolve symbol
    symbol : method close ()
    location: class ResultSet
    rset1.close();
    ^
    .\ResultSet.java:82: cannot resolve symbol
    symbol : method next ()
    location: class ResultSet
    while (rset.next())
    ^
    .\ResultSet.java:84: cannot resolve symbol
    symbol : method getString (int)
    location: class ResultSet
    String myText = rset.getString(1);
    ^
    .\ResultSet.java:88: cannot resolve symbol
    symbol : method close ()
    location: class ResultSet
    rset.close();
    ^
    10 errors
    C:\java>
    I am running Windows 2000, Oracle 9.2 and JDK
    1.4.1.01
    Please Help!
    ladHere's the CLASSPATH settings
    .;c:\oracle\jdbc\lib\classes12.zip;c:\oracle\jdbc\lib\nls_charset12.zip
    The packages included in the source code are
    import java.sql.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    import oracle.sql.*;
    The Java directory is
    c:\j2sdk1.4.1_01
    Oracle 9.2 directory is
    c:\oracle\jdbc\lib

  • I have an Ipad, I activated the time capsule with no issues. I added the airport Utility application without issue.  However, I do not know how to access the hard drive with either my Windows computer or the Ipad.  Does someone know how?

    I have an Ipad, I activated the time capsule with no issues. I added the airport Utility application without issue.  However, I do not know how to access the hard drive with either my Windows computer or the Ipad.  Does someone know how?

    On windows load the airport utility .. latest correct version as possible.. there is no windows 8 but win7 works after a fashion.
    Make sure the TC is using SMB compatible names.. short no spaces and pure alphanumeric.
    Type the name directly into windows explorer.
    \\TCname or \\TCIPaddress
    If no luck turn off all the firewalls.. internal windows plus security software plus whatever other gargyoles and other rubbish AV software you have running.
    Ensure windows is able to at least ping the TC by IP address and name..
    Use the utility in windows to set file sharing to guest account on with full read and write access.. and set workgroup to WORKGROUP.

  • TED Application distribution errors

    We have a NW65 SP5 server running ZFS 7 SP1 with the latest IR patches.
    I am trying to setup a TED application distribution for all our ZEN
    applications and keep getting errors when ZFS is compiling the
    applications. I have about 300 to send out, and the server keeps giving
    java.io errors as per below.
    Any takers?
    2008.01.23 12:39:57 [TED:Gather
    ZFS_Applications.DISTRIBUTIONS.ZENWORKS.XXX_120105 1797019_TEMP] Error in
    building the Distribution for XXX Account Reporting.XP_APPS.ZEN.XXX.
    DATA:\zenworks\pds\ted\dist\XXX~zfs_applications.d istributions.zenworks.XXX\1201051797019_TEMP\App27 .xml,
    please see the distributor log file for more details.
    2008.01.23 12:39:57 [TED:Gather
    ZFS_Applications.DISTRIBUTIONS.ZENWORKS.XXX_120105 1797019_TEMP] ***
    Exception: java.io.FileNotFoundException:
    DATA:\zenworks\pds\ted\dist\XXX~zfs_applications.d istributions.zenworks.XXX\1201051797019_TEMP\App27 .xml
    2008.01.23 12:39:57 [TED:Gather
    ZFS_Applications.DISTRIBUTIONS.ZENWORKS.XXX_120105 1797019_TEMP]
    java.io.FileNotFoundException:
    DATA:\zenworks\pds\ted\dist\XXX~zfs_applications.d istributions.zenworks.XXX\1201051797019_TEMP\App27 .xml
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.j ava:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.j ava:131)
    at
    com.novell.application.zenworks.nalted.common.NalT edAppReplicationUtil.writeReplicatedAttributesXML( NalTedAppReplicationUtil.java:909)
    at
    com.novell.application.zenworks.nalted.common.NalT edAppReplicationUtil.<init>(NalTedAppReplicationUt il.java:124)
    at
    com.novell.application.zenworks.nalted.application .ApplicationObject.writeAttributesToXMLFile(Applic ationObject.java:160)
    at
    com.novell.application.zenworks.nalted.services.Ge nerateNalAppSPK.createComponentPrep(GenerateNalApp SPK.java:378)
    at
    com.novell.application.zenworks.nalted.services.Ge nerateNalAppSPK.start(GenerateNalAppSPK.java:202)
    at
    com.novell.application.zenworks.nalted.services.Ge nerateNalAppCPK.start(GenerateNalAppCPK.java:212)
    at
    com.novell.application.zenworks.nalted.tedagent.TE DNalSequentialGatherAgent.createCPK(TEDNalSequenti alGatherAgent.java:208)
    at
    com.novell.application.zenworks.nalted.tedagent.TE DNalSequentialGatherAgent.sequentialGather(TEDNalS equentialGatherAgent.java:543)
    at
    com.novell.application.zenworks.ted.agents.TEDSequ entialGatherAgent.gatherDistribution(TEDSequential GatherAgent.java:238)
    at
    com.novell.application.zenworks.ted.agents.Distrib utorAgentThread.runAgent(DistributorAgentThread.ja va:97)
    at
    com.novell.application.zenworks.ted.agents.AgentTh read.run(AgentThread.java:108)

    Hi dot@com
    From the log it looks like the gather process can't find the files specified
    within the app object.
    Ron
    "." <[email protected]> wrote in message
    news:[email protected]. ..
    > We have a NW65 SP5 server running ZFS 7 SP1 with the latest IR patches. I
    > am trying to setup a TED application distribution for all our ZEN
    > applications and keep getting errors when ZFS is compiling the
    > applications. I have about 300 to send out, and the server keeps giving
    > java.io errors as per below.
    >
    > Any takers?
    >
    > 2008.01.23 12:39:57 [TED:Gather
    > ZFS_Applications.DISTRIBUTIONS.ZENWORKS.XXX_120105 1797019_TEMP] Error in
    > building the Distribution for XXX Account Reporting.XP_APPS.ZEN.XXX.
    > DATA:\zenworks\pds\ted\dist\XXX~zfs_applications.d istributions.zenworks.XXX\1201051797019_TEMP\App27 .xml,
    > please see the distributor log file for more details.
    > 2008.01.23 12:39:57 [TED:Gather
    > ZFS_Applications.DISTRIBUTIONS.ZENWORKS.XXX_120105 1797019_TEMP] ***
    > Exception: java.io.FileNotFoundException:
    > DATA:\zenworks\pds\ted\dist\XXX~zfs_applications.d istributions.zenworks.XXX\1201051797019_TEMP\App27 .xml
    > 2008.01.23 12:39:57 [TED:Gather
    > ZFS_Applications.DISTRIBUTIONS.ZENWORKS.XXX_120105 1797019_TEMP]
    > java.io.FileNotFoundException:
    > DATA:\zenworks\pds\ted\dist\XXX~zfs_applications.d istributions.zenworks.XXX\1201051797019_TEMP\App27 .xml
    > at java.io.FileOutputStream.open(Native Method)
    > at java.io.FileOutputStream.<init>(FileOutputStream.j ava:179)
    > at java.io.FileOutputStream.<init>(FileOutputStream.j ava:131)
    > at
    > com.novell.application.zenworks.nalted.common.NalT edAppReplicationUtil.writeReplicatedAttributesXML( NalTedAppReplicationUtil.java:909)
    > at
    > com.novell.application.zenworks.nalted.common.NalT edAppReplicationUtil.<init>(NalTedAppReplicationUt il.java:124)
    > at
    > com.novell.application.zenworks.nalted.application .ApplicationObject.writeAttributesToXMLFile(Applic ationObject.java:160)
    > at
    > com.novell.application.zenworks.nalted.services.Ge nerateNalAppSPK.createComponentPrep(GenerateNalApp SPK.java:378)
    > at
    > com.novell.application.zenworks.nalted.services.Ge nerateNalAppSPK.start(GenerateNalAppSPK.java:202)
    > at
    > com.novell.application.zenworks.nalted.services.Ge nerateNalAppCPK.start(GenerateNalAppCPK.java:212)
    > at
    > com.novell.application.zenworks.nalted.tedagent.TE DNalSequentialGatherAgent.createCPK(TEDNalSequenti alGatherAgent.java:208)
    > at
    > com.novell.application.zenworks.nalted.tedagent.TE DNalSequentialGatherAgent.sequentialGather(TEDNalS equentialGatherAgent.java:543)
    > at
    > com.novell.application.zenworks.ted.agents.TEDSequ entialGatherAgent.gatherDistribution(TEDSequential GatherAgent.java:238)
    > at
    > com.novell.application.zenworks.ted.agents.Distrib utorAgentThread.runAgent(DistributorAgentThread.ja va:97)
    > at
    > com.novell.application.zenworks.ted.agents.AgentTh read.run(AgentThread.java:108)

  • How to enter the time from the jdbc application

    Hello,
    I have a problem while entering time from my jdbc application.
    I was entering time with TIMESTAMP but it is also entering the date,i want to enter only the time in to database from my application.

    Conceptal problem
    I doubt any database supports a data type that only takes a time. The most common data type always takes a date component and time component.
    That means it will ALWAYS have a date component.
    The solution is for you to write code that ignores the date part. That can involve something like using a fixed date for all entries, stripping to seconds, using SimpleDateFormat to display/parse etc.
    Or don't use a database data type that is time specific. Instead just use a integer and stored seconds from midnight. Or some variation of that.

  • Application Deployment Issue on JBoss 4.2.3

    Hi,
    I am trying to deploy a Java Application on JBoss 4.2.3 AS. This application run seamlessly on JBoss 3.0.5. After deploying, I could see errors below.
    Could any one please suggest what could be the issue? Were there any changes in the deployment file structure? Please advice.
    Thanks,
    2009-09-29 15:43:41,112 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/D:/Java/jboss-4.2.3.GA/server/grmbs/deploy/ejb-management.jar
    org.jboss.deployment.DeploymentException: expected one container-name tag
    2009-09-29 15:43:41,128 ERROR [org.jboss.deployment.MainDeployer] DeploymentException while trying to deploy a package with a new deployer
    org.jboss.deployment.DeploymentException: expected one container-name tag
    2009-09-29 15:43:41,165 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/D:/Java/jboss-4.2.3.GA/server/grmbs/deploy/jmx-ejb-adaptor.jar
    org.jboss.deployment.DeploymentException: expected one container-name tag
    2009-09-29 15:43:41,177 ERROR [org.jboss.deployment.MainDeployer] DeploymentException while trying to deploy a package with a new deployer
    org.jboss.deployment.DeploymentException: expected one container-name tag
    2009-09-29 15:43:41,198 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/D:/Java/jboss-4.2.3.GA/server/grmbs/deploy/notification-listener.jar
    org.jboss.deployment.DeploymentException: expected one container-name tag
    2009-09-29 15:43:41,208 ERROR [org.jboss.deployment.MainDeployer] DeploymentException while trying to deploy a package with a new deployer
    org.jboss.deployment.DeploymentException: expected one container-name tag
    2009-09-29 15:43:41,256 ERROR [org.jboss.system.server.Server] Root deployment has missing dependencies; continuing
    Incomplete Deployment listing:
    --- Incompletely deployed packages ---
    org.jboss.deployment.DeploymentInfo@cad26b26 { url=file:/D:/Java/jboss-4.2.3.GA/server/grmbs/deploy/ejb-management.jar }
    deployer: org.jboss.ejb.EJBDeployer@ab835a
    status: Deployment FAILED reason: expected one container-name tag
    state: FAILED
    watch: file:/D:/Java/jboss-4.2.3.GA/server/grmbs/deploy/ejb-management.jar
    altDD: null
    lastDeployed: 1254203021081
    lastModified: 1254203019961
    mbeans:
    org.jboss.deployment.DeploymentInfo@7888101a { url=file:/D:/Java/jboss-4.2.3.GA/server/grmbs/deploy/jmx-ejb-adaptor.jar }
    deployer: org.jboss.ejb.EJBDeployer@ab835a
    status: Deployment FAILED reason: expected one container-name tag
    state: FAILED
    watch: file:/D:/Java/jboss-4.2.3.GA/server/grmbs/deploy/jmx-ejb-adaptor.jar
    altDD: null
    lastDeployed: 1254203021154
    lastModified: 1254203020008
    mbeans:
    org.jboss.deployment.DeploymentInfo@8d818653 { url=file:/D:/Java/jboss-4.2.3.GA/server/grmbs/deploy/notification-listener.jar }
    deployer: org.jboss.ejb.EJBDeployer@ab835a
    status: Deployment FAILED reason: expected one container-name tag
    state: FAILED
    watch: file:/D:/Java/jboss-4.2.3.GA/server/grmbs/deploy/notification-listener.jar
    altDD: null
    lastDeployed: 1254203021190
    lastModified: 1254203020008
    mbeans:
    --- MBeans waiting for other MBeans ---
    ObjectName: jboss:service=invoker,type=jrmp
    State: FAILED
    Reason: java.lang.AbstractMethodError: org.jboss.invocation.jrmp.server.JRMPInvoker.jbossInternalLifecycle(Ljava/lang/String;)V
    I Depend On:
    jboss:service=TransactionManager
    ObjectName: jboss:service=invoker,type=http
    State: FAILED
    Reason: java.lang.NoSuchMethodError: org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/String;
    ObjectName: jboss:service=invoker,type=httpHA
    State: FAILED
    Reason: java.lang.NoSuchMethodError: org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/String;
    ObjectName: jboss:service=invoker,type=http,target=Naming
    State: FAILED
    Reason: java.lang.NoSuchMethodError: org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/String;
    ObjectName: jboss:service=invoker,type=http,target=Naming,readonly=true
    State: FAILED
    Reason: java.lang.NoSuchMethodError: org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/String;
    ObjectName: jboss.jca:service=LocalTxCM,name=hsqldbDS
    State: CONFIGURED
    I Depend On:
    jboss.jca:service=LocalTxDS,name=hsqldbDS
    jboss.jca:service=LocalTxPool,name=hsqldbDS
    jboss.jca:service=CachedConnectionManager
    jboss.security:service=JaasSecurityManager
    jboss.jca:service=RARDeployer
    ObjectName: jboss.jca:service=LocalTxDS,name=hsqldbDS
    State: CONFIGURED
    I Depend On:
    jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
    jboss:service=Hypersonic
    Depends On Me:
    jboss.jca:service=LocalTxCM,name=hsqldbDS
    ObjectName: jboss.jca:service=XaTxCM,name=jmsra
    State: CONFIGURED
    I Depend On:
    jboss.jca:service=RARDeployer
    jboss.jca:service=XaTxDS,name=jmsra
    jboss.jca:service=XaTxPool,name=jmsra
    jboss.jca:service=CachedConnectionManager
    jboss.security:service=JaasSecurityManager
    ObjectName: jboss.jca:service=XaTxDS,name=jmsra
    State: CONFIGURED
    I Depend On:
    jboss.jca:service=RARDeployment,name=JMS Adapter
    Depends On Me:
    jboss.jca:service=XaTxCM,name=jmsra
    --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
    ObjectName: jboss.jca:service=RARDeployment,name=JMS Adapter
    State: NOTYETINSTALLED
    Depends On Me:
    jboss.jca:service=XaTxDS,name=jmsra
    ObjectName: jboss:service=invoker,type=http
    State: FAILED
    Reason: java.lang.NoSuchMethodError: org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/String;
    ObjectName: jboss:service=invoker,type=http,target=Naming,readonly=true
    State: FAILED
    Reason: java.lang.NoSuchMethodError: org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/String;
    ObjectName: jboss:service=invoker,type=jrmp
    State: FAILED
    Reason: java.lang.AbstractMethodError: org.jboss.invocation.jrmp.server.JRMPInvoker.jbossInternalLifecycle(Ljava/lang/String;)V
    I Depend On:
    jboss:service=TransactionManager
    ObjectName: jboss:service=invoker,type=http,target=Naming
    State: FAILED
    Reason: java.lang.NoSuchMethodError: org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/String;
    ObjectName: jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
    State: NOTYETINSTALLED
    Depends On Me:
    jboss.jca:service=LocalTxDS,name=hsqldbDS
    ObjectName: jboss:service=invoker,type=httpHA
    State: FAILED
    Reason: java.lang.NoSuchMethodError: org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/String;

    continued....
    <!-- ==================================================================== -->
      <!-- Security                                                             -->
      <!-- ==================================================================== -->
      <mbean code="org.jboss.security.plugins.SecurityConfig"
          name="jboss.security:name=SecurityConfig">
        <attribute name="LoginConfig">jboss.security:service=XMLLoginConfig</attribute>
      </mbean>
      <mbean code="org.jboss.security.auth.login.XMLLoginConfig"
          name="jboss.security:service=XMLLoginConfig">
        <attribute name="ConfigResource">login-config.xml</attribute>
      </mbean>
      <!-- JAAS security manager and realm mapping -->
      <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
          name="jboss.security:service=JaasSecurityManager">
        <attribute name="SecurityManagerClassName">
          org.jboss.security.plugins.JaasSecurityManager
        </attribute>
      </mbean>
      <!-- ==================================================================== -->
      <!-- Transactions                                                         -->
      <!-- ==================================================================== -->
      <mbean code="org.jboss.tm.XidFactory"
          name="jboss:service=XidFactory">
      </mbean>
      <mbean code="org.jboss.tm.TransactionManagerService"
          name="jboss:service=TransactionManager">
        <attribute name="TransactionTimeout">300</attribute>
        <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
      </mbean>
      <!--
         | Uncomment to use Tyrex (tyrex.exolab.org) transaction manager plugin
         | instead of the org.jboss.tm.TransactionManagerService and comment out
         | the TransactionManagerService above.
         | Make sure you have Xerces in lib/. At the moment JBoss does not
         | ship Xerces as part of distribution. Version 1.x seems to work fine,
         | though 2.x should as well, use whichever you like.
         |
      <mbean code="org.jboss.tm.plugins.tyrex.TransactionManagerService"
             name="jboss:service=TransactionManager">
            <attribute name="ConfigFileName">../conf/default/domain.xml</attribute>
      </mbean>
      -->
      <!--commented to run grmbs on JBoss 4.2.3, comment removed -->
      <mbean code="org.jboss.tm.usertx.server.ClientUserTransactionService"
          name="jboss:service=ClientUserTransaction">
      </mbean>
      <!-- The CachedConnectionManager is used partly to relay started UserTransactions to
        open connections so they may be enrolled in the new tx-->
      <mbean code="org.jboss.resource.connectionmanager.CachedConnectionManager" name="jboss.jca:service=CachedConnectionManager">
      </mbean>
      <!-- ==================================================================== -->
      <!-- The deployers...                                                     -->
      <!-- ==================================================================== -->
      <!-- Main Deployer and SARDeployer are provided by main -->
      <!-- EJB deployer, remove to disable EJB behavior-->
      <mbean code="org.jboss.ejb.EJBDeployer" name="jboss.ejb:service=EJBDeployer">
        <attribute name="VerifyDeployments">true</attribute>
        <attribute name="ValidateDTDs">false</attribute>
        <attribute name="MetricsEnabled">false</attribute>
        <attribute name="VerifierVerbose">true</attribute>
        <!-- Add a dependency on the JMS provider(jms-service.xml) for MDBs. If
          you are not using MDBs and JMS remove these.
        -->
        <depends>jboss.mq:service=JMSProviderLoader,name=JBossMQProvider</depends>
        <depends>jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool</depends>
      </mbean>
      <!-- EAR deployer -->
      <mbean code="org.jboss.deployment.EARDeployer" name="jboss.j2ee:service=EARDeployer">
      </mbean>
      <!-- WAR Deployer is provided by tomcat or jetty -->
      <!-- RAR Deployer is provided by the rar.sar package -->
      <!-- Uncomment to activate the BeanShell script sub-deployer --> 
      <!--mbean code="org.jboss.varia.deployment.BeanShellSubDeployer"
               name="jboss.scripts:service=BSHDeployer">
      </mbean-->
      <!-- ==================================================================== -->
      <!-- JBoss Server Management                                              -->
      <!-- ==================================================================== -->
      <!-- ==================================================================== -->
      <!-- Monitoring and Management                                            -->
      <!-- ==================================================================== -->
      <!-- Uncomment to enable JMX monitoring of the entity bean locking
      <mbean code="org.jboss.monitor.EntityLockMonitor"
             name="jboss.monitor:name=EntityLockMonitor"/>
      -->
      <!-- ==================================================================== -->
      <!-- Invokers to the JMX node                                             -->
      <!-- ==================================================================== -->
      <!-- RMI/JRMP invoker -->
      <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker"
             name="jboss:service=invoker,type=jrmp">
        <attribute name="RMIObjectPort">4444</attribute>
        <attribute name="ServerAddress">${jboss.bind.address}</attribute>
        <attribute name="RMIClientSocketFactory">custom</attribute>
        <attribute name="RMIServerSocketFactory">custom</attribute>
        <attribute name="RMIServerSocketAddr">custom</attribute>
        <!-- Added as per JBoss 4.2.3 Server defaults, starts -->
         <depends>jboss:service=TransactionManager</depends>
        <!-- Added as per JBoss 4.2.3 Server defaults, ends -->
      </mbean>
      <mbean code="org.jboss.invocation.pooled.server.PooledInvoker"
             name="jboss:service=invoker,type=pooled">
      </mbean>
      <mbean code="org.jboss.invocation.local.LocalInvoker"
             name="jboss:service=invoker,type=local">
      </mbean>
      <!-- ==================================================================== -->
      <!-- Deployment Scanning                                                  -->
      <!-- ==================================================================== -->
      <!-- Uncomment to enable caching of deployment units
      <mbean code="org.jboss.deployment.cache.FileDeploymentStore"
          name="jboss.deployment:type=DeploymentStore,flavor=File">
        <attribute name="DirectoryName">data/deployment-cache</attribute>
      </mbean>
      <mbean code="org.jboss.deployment.cache.DeploymentCache"
          name="jboss.deployment:type=DeploymentCache">
        <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends>
        <depends optional-attribute-name="Store">jboss.deployment:type=DeploymentStore,flavor=File</depends>
      </mbean>
      -->
      <!-- An mbean for hot deployment/undeployment of archives.
      -->
      <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
          name="jboss.deployment:type=DeploymentScanner,flavor=URL">
        <!-- Uncomment (and comment/remove version below) to enable usage of the
          DeploymentCache
        <depends optional-attribute-name="Deployer">jboss.deployment:type=DeploymentCache</depends>
        -->
        <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends>

  • Oracle 8i jdbc/Tomcat connection issues

    Tomcat 4.1.8
    Oracle 8i JDBC Driver
    I have been able to create the DataSource as a global resource and as a local resource inside the context of the application.
    The code hangs when it attempts to create a connection. I have been able to connect to the database and perform the necessary query in a standalone application to ensure that I actually can connect.
    JSP Code:
    <html>
    <head>
    <title>VTW App</title>
    </head>
    <body>
    <%
    vtw.VTWApp tst = new vtw.VTWApp();
    tst.init();
    %>
    <h2>Results</h2>
    <%= tst.getList() %>
    </body>
    </html>
    Java Code (Class called by JSP):
    package vtw;
    import javax.naming.*;
    import javax.sql.*;
    import java.sql.*;
    public class VTWApp {
    String list = "EMPTY";
    public void init() {
    try{
    Context ctx = new InitialContext();
    if(ctx == null )
    throw new Exception("Boom - No Context");
    System.out.println("Context Created ...");
    DataSource ds =
    (DataSource)ctx.lookup(
    "java:comp/env/jdbc/oracleDB");
    if (ds != null) {
              System.out.println("DataSource Created ...");
    Connection conn = ds.getConnection();
    System.out.println("Connection Pulled");
    if(conn != null) {
                   System.out.println("Connection Good");
                   Statement st = conn.createStatement();
                   String query = "";
                   query += "select grpid, to_char(min(dtlastendtime),'mm-dd-yyyy hh24:mi:ss') ";
                   query += "from calc_table where equipmentsernum in (";
                   query += "'888000','888001'";
                   query += ") group by grpid";
                   ResultSet rs = st.executeQuery(query);
                   if(rs != null) {
                        list = "";
                        while(rs.next()) {
                             list += (rs.getString(1) + "," + rs.getString(2));
                   rs.close();
                   conn.close();
                   System.out.println("Connection Closed");
              } else {
                   System.out.println("Connection Not Established");
    }catch(Exception e) {
    e.printStackTrace();
    public String getList() { return list; }
    }

    I figured out the issue ...
    In the server.xml file the resource & resource params needed to be modified..
    1. Set type to oracle.jdbc.pool.OracleDataSource
    2. Set factory to oracle.jdbc.pool.OracleDataSourceFactory
    3. In the Java code cast the context lookup to an OracleDataSource instead of a java.sql.DataSource
    Oracles DataSource does not subclass the jdbc DataSource for its OracleDataSource class everything works fine now.
    <Resource name="jdbc/mydb" scope="Shareable" type="oracle.jdbc.pool.OracleDataSource"/>
    <ResourceParams name="jdbc/mydb">
    <parameter>
    <name>validationQuery</name>
    <value></value>
    </parameter>
                   <parameter>
                        <name>factory</name>
                        <value>oracle.jdbc.pool.OracleDataSourceFactory</value>
                   </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
         <name>url</name>
         <value>jdbc:oracle:thin:@server.company.com:1521:dbname</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>guest</value>
    </parameter>
                   <parameter>
                        <name>maxWait</name>
                        <value>10000</value>
                   </parameter>
                   <parameter>
                        <name>maxActive</name>
                        <value>100</value>
                   </parameter>
    <parameter>
    <name>user</name>
    <value>guest</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>

  • Jdbc wsdl binding issue

    Hi,
    I am new to BPEL, facing a small issue. I am creating a BPEL project, after creating a connection with MySQL. I am calling it in my project. when I am building the composite application then jdbc wsdl port is not being visible on casa editor (using netbeans 6.1 IDE).
    Please advise.
    Thanks.
    Edited by: kash.aksh on Dec 1, 2008 10:56 PM

    Please post your request at https://open-esb.dev.java.net/MailingLists.html ([email protected]) for quick response.

  • JDBC Connector - Datasource issue

    Hi,
    We have a datasource created in JDBC Connector in Visual Admin Services. The issue is whenever there is a connection failure due to network or the database system is restarted the JDBC datasource doesn't work and we get invalid connection in our application.We have to stop and restart the datasource through Visual Admin to make it work.
    Is there any resolution that we dont have to restart the datasource manually in case of connection failure.
    Appreciate your support

    Hi,
    I had same problems!
    I only know of a workaround for JMS adapter which showed same issues after a MQ restart. There an option got introduced to "ping" the source / target to recreate the connection by a parameter to be set in the channel itself. I'm not sure this option is also available for JDBC channels...
    Does anybody got news here?
    Thanks,
    Kai

Maybe you are looking for

  • Good Receipt is posted to price variance account instead of Inventory account

    Dear All, My client have a PO with three materials. All those materials have been assigned to same valuation class. Client has posted GR for this PO and one material has been recorded a misbehavior when selecting the accounts. That mean, it has been

  • BPM processes,receiving signals (events) & correlation to existing instance

    Hi, BPM 11g/SOA Suite 11g (R1 PS2) I am wondering whether it is possible to receive signals (EDN events) into a running process instance. The documentation describes how a process can be started by an event. I would like to be able to feed an event (

  • I-Movie 09 is a Big Bummer!

    Am I the only one who is really let down by Apples reconfiguration of I-Movie 06? As a video instructor who start's his kids off with I-Movie 06 I was awfully disappointed with 08, and never installed it. After hearing the bugs were out of 08, I boug

  • WebLogic Web Server

    Hello! Actually we have an 3 layer infrastructure (web server <FIREWALL> application server and database) based in Apache HTTP Server, Apache Tomcat and Oracle Database. We are studying the alternative of using Bea Weblogic, but we have some doubts:

  • Auto Eject of Install Disc

    I was testing out my Mac OS X Leopard install disk (v 10.5 Family Pack) in anticipation of erasing and reformatting my hard drive. Once slotted in, the CD/DVD drive does all its usual noises but then automatically ejects the disk. I have a MacBook 2,